mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 00:51:30 +03:00
chore: update import path (#1477)
This commit is contained in:
parent
6ceafc1827
commit
cc23f69f66
@ -1,4 +1,4 @@
|
||||
import { absolutifyLink } from "../../../helpers/utils";
|
||||
import { absolutifyLink } from "@/helpers/utils";
|
||||
import { matcher } from "../matcher";
|
||||
|
||||
export const IMAGE_REG = /!\[.*?\]\((.+?)\)/;
|
||||
|
@ -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 = {
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 "./";
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user