refactor: 상대경로를 @ 시작 절대경로로

This commit is contained in:
2021-12-10 22:34:14 +09:00
parent bd42042a61
commit 975f77e907
68 changed files with 395 additions and 365 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { escapeHtml } from "../legacy/escapeHtml";
import { escapeHtml } from '@/legacy/escapeHtml';
import linkifyStr from 'linkifyjs/string';
/**
* 단순한 Template 함수. <%변수명%>으로 template 가능
+2 -2
View File
@@ -1,5 +1,5 @@
import { htmlReady } from "./htmlReady";
import { unwrap } from "./unwrap";
import { htmlReady } from "@util/htmlReady";
import { unwrap } from "@util/unwrap";
export function auto500px(targetHeight = 700): void {
let deviceWidth = -1;
+1 -1
View File
@@ -1,4 +1,4 @@
import { unwrap } from "./unwrap";
import { unwrap } from "@util/unwrap";
export function autoResizeTextarea(e: InputEvent): void {
const el = unwrap(e.target) as HTMLInputElement;
+1 -1
View File
@@ -1,4 +1,4 @@
import { IDItem } from "../defs";
import { IDItem } from '@/defs';
export function convertIDArray<T>(array: Iterable<T>): IDItem<T>[] {
const result: IDItem<T>[] = [];
+1 -1
View File
@@ -1,4 +1,4 @@
import { formatTime } from './formatTime';
import { formatTime } from '@util/formatTime';
export function getDateTimeNow(withFraction = false): string {
return formatTime(new Date(), withFraction);
}
+2 -2
View File
@@ -1,5 +1,5 @@
import { unwrap } from "./unwrap";
import { hexToRgb } from "./hexToRgb";
import { unwrap } from "@util/unwrap";
import { hexToRgb } from "@util/hexToRgb";
export function isBrightColor(color: string): boolean {
const cv = unwrap(hexToRgb(color));
+1 -1
View File
@@ -1,6 +1,6 @@
import Schema, { Rule, Values } from "async-validator";
import { isArray } from "lodash";
import { mergeKVArray } from "./mergeKVArray";
import { mergeKVArray } from "@util/mergeKVArray";
import $ from 'jquery';
type Option = {
+1 -1
View File
@@ -1,4 +1,4 @@
import { mb_strwidth } from "./mb_strwidth";
import { mb_strwidth } from "@util/mb_strwidth";
/**
* mb_strimwidth
+1 -1
View File
@@ -1,6 +1,6 @@
import axios from "axios";
import { isArray } from "lodash";
import { InvalidResponse } from "../defs";
import { InvalidResponse } from '@/defs';
type ValidResponse = {
result: true
+2 -2
View File
@@ -1,5 +1,5 @@
import { Nullable } from "./Nullable";
import { NotNullExpected } from "./NotNullExpected";
import { Nullable } from "@util/Nullable";
import { NotNullExpected } from "@util/NotNullExpected";
export function unwrap<T>(result: Nullable<T>): T {
if (result === null || result === undefined) {
+2 -2
View File
@@ -1,5 +1,5 @@
import { Nullable } from "./Nullable";
import { NotNullExpected } from "./NotNullExpected";
import { Nullable } from "@util/Nullable";
import { NotNullExpected } from "@util/NotNullExpected";
export function unwrap_any<T>(result: Nullable<unknown>): T {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Nullable } from "./Nullable";
import { Nullable } from "@util/Nullable";
type ErrType<T> = { new(msg?: string): T }