chore: update import path (#1477)

This commit is contained in:
boojack 2023-04-05 23:31:15 +08:00 committed by GitHub
parent 6ceafc1827
commit cc23f69f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
import { absolutifyLink } from "../../../helpers/utils";
import { absolutifyLink } from "@/helpers/utils";
import { matcher } from "../matcher";
export const IMAGE_REG = /!\[.*?\]\((.+?)\)/;

View File

@ -1,9 +1,9 @@
import * as api from "../../helpers/api";
import * as storage from "../../helpers/storage";
import * as api from "@/helpers/api";
import * as storage from "@/helpers/storage";
import i18n from "@/i18n";
import { convertLanguageCodeToLocale } from "@/utils/i18n";
import store, { useAppSelector } from "../";
import { setAppearance, setGlobalState, setLocale } from "../reducer/global";
import i18n from "../../i18n";
import { convertLanguageCodeToLocale } from "../../utils/convertLanguageCodeToLocale";
export const initialGlobalState = async () => {
const defaultGlobalState = {

View File

@ -1,6 +1,6 @@
import { omit } from "lodash-es";
import * as api from "../../helpers/api";
import { DEFAULT_MEMO_LIMIT } from "../../helpers/consts";
import * as api from "@/helpers/api";
import { DEFAULT_MEMO_LIMIT } from "@/helpers/consts";
import { useUserStore } from "./";
import store, { useAppSelector } from "../";
import { createMemo, deleteMemo, patchMemo, setIsFetching, upsertMemos } from "../reducer/memo";

View File

@ -1,7 +1,7 @@
import * as api from "@/helpers/api";
import { DEFAULT_MEMO_LIMIT } from "@/helpers/consts";
import store, { useAppSelector } from "../";
import { patchResource, setResources, deleteResource, upsertResources } from "../reducer/resource";
import * as api from "../../helpers/api";
import { DEFAULT_MEMO_LIMIT } from "../../helpers/consts";
const MAX_FILE_SIZE = 32 << 20;

View File

@ -1,6 +1,6 @@
import * as api from "@/helpers/api";
import store, { useAppSelector } from "../";
import { createShortcut, deleteShortcut, patchShortcut, setShortcuts } from "../reducer/shortcut";
import * as api from "../../helpers/api";
const convertResponseModelShortcut = (shortcut: Shortcut): Shortcut => {
return {

View File

@ -1,5 +1,5 @@
import * as api from "@/helpers/api";
import store, { useAppSelector } from "..";
import * as api from "../../helpers/api";
import { deleteTag, setTags, upsertTag } from "../reducer/tag";
import { useUserStore } from "./";

View File

@ -1,9 +1,9 @@
import { camelCase } from "lodash-es";
import * as api from "@/helpers/api";
import * as storage from "@/helpers/storage";
import { UNKNOWN_ID } from "@/helpers/consts";
import { getSystemColorScheme } from "@/helpers/utils";
import store, { useAppSelector } from "..";
import * as api from "../../helpers/api";
import * as storage from "../../helpers/storage";
import { UNKNOWN_ID } from "../../helpers/consts";
import { getSystemColorScheme } from "../../helpers/utils";
import { setAppearance, setLocale } from "../reducer/global";
import { setUser, patchUser, setHost, setUserById } from "../reducer/user";