Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
cc23f69f
Unverified
Commit
cc23f69f
authored
Apr 05, 2023
by
boojack
Committed by
GitHub
Apr 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update import path (#1477)
parent
6ceafc18
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
15 deletions
+15
-15
Image.tsx
web/src/labs/marked/parser/Image.tsx
+1
-1
global.ts
web/src/store/module/global.ts
+4
-4
memo.ts
web/src/store/module/memo.ts
+2
-2
resource.ts
web/src/store/module/resource.ts
+2
-2
shortcut.ts
web/src/store/module/shortcut.ts
+1
-1
tag.ts
web/src/store/module/tag.ts
+1
-1
user.ts
web/src/store/module/user.ts
+4
-4
i18n.ts
web/src/utils/i18n.ts
+0
-0
No files found.
web/src/labs/marked/parser/Image.tsx
View file @
cc23f69f
import
{
absolutifyLink
}
from
"
../../..
/helpers/utils"
;
import
{
absolutifyLink
}
from
"
@
/helpers/utils"
;
import
{
matcher
}
from
"../matcher"
;
import
{
matcher
}
from
"../matcher"
;
export
const
IMAGE_REG
=
/!
\[
.*
?\]\((
.+
?)\)
/
;
export
const
IMAGE_REG
=
/!
\[
.*
?\]\((
.+
?)\)
/
;
...
...
web/src/store/module/global.ts
View file @
cc23f69f
import
*
as
api
from
"../../helpers/api"
;
import
*
as
api
from
"@/helpers/api"
;
import
*
as
storage
from
"../../helpers/storage"
;
import
*
as
storage
from
"@/helpers/storage"
;
import
i18n
from
"@/i18n"
;
import
{
convertLanguageCodeToLocale
}
from
"@/utils/i18n"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
{
setAppearance
,
setGlobalState
,
setLocale
}
from
"../reducer/global"
;
import
{
setAppearance
,
setGlobalState
,
setLocale
}
from
"../reducer/global"
;
import
i18n
from
"../../i18n"
;
import
{
convertLanguageCodeToLocale
}
from
"../../utils/convertLanguageCodeToLocale"
;
export
const
initialGlobalState
=
async
()
=>
{
export
const
initialGlobalState
=
async
()
=>
{
const
defaultGlobalState
=
{
const
defaultGlobalState
=
{
...
...
web/src/store/module/memo.ts
View file @
cc23f69f
import
{
omit
}
from
"lodash-es"
;
import
{
omit
}
from
"lodash-es"
;
import
*
as
api
from
"
../..
/helpers/api"
;
import
*
as
api
from
"
@
/helpers/api"
;
import
{
DEFAULT_MEMO_LIMIT
}
from
"
../..
/helpers/consts"
;
import
{
DEFAULT_MEMO_LIMIT
}
from
"
@
/helpers/consts"
;
import
{
useUserStore
}
from
"./"
;
import
{
useUserStore
}
from
"./"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
{
createMemo
,
deleteMemo
,
patchMemo
,
setIsFetching
,
upsertMemos
}
from
"../reducer/memo"
;
import
{
createMemo
,
deleteMemo
,
patchMemo
,
setIsFetching
,
upsertMemos
}
from
"../reducer/memo"
;
...
...
web/src/store/module/resource.ts
View file @
cc23f69f
import
*
as
api
from
"@/helpers/api"
;
import
{
DEFAULT_MEMO_LIMIT
}
from
"@/helpers/consts"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
{
patchResource
,
setResources
,
deleteResource
,
upsertResources
}
from
"../reducer/resource"
;
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
;
const
MAX_FILE_SIZE
=
32
<<
20
;
...
...
web/src/store/module/shortcut.ts
View file @
cc23f69f
import
*
as
api
from
"@/helpers/api"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
store
,
{
useAppSelector
}
from
"../"
;
import
{
createShortcut
,
deleteShortcut
,
patchShortcut
,
setShortcuts
}
from
"../reducer/shortcut"
;
import
{
createShortcut
,
deleteShortcut
,
patchShortcut
,
setShortcuts
}
from
"../reducer/shortcut"
;
import
*
as
api
from
"../../helpers/api"
;
const
convertResponseModelShortcut
=
(
shortcut
:
Shortcut
):
Shortcut
=>
{
const
convertResponseModelShortcut
=
(
shortcut
:
Shortcut
):
Shortcut
=>
{
return
{
return
{
...
...
web/src/store/module/tag.ts
View file @
cc23f69f
import
*
as
api
from
"@/helpers/api"
;
import
store
,
{
useAppSelector
}
from
".."
;
import
store
,
{
useAppSelector
}
from
".."
;
import
*
as
api
from
"../../helpers/api"
;
import
{
deleteTag
,
setTags
,
upsertTag
}
from
"../reducer/tag"
;
import
{
deleteTag
,
setTags
,
upsertTag
}
from
"../reducer/tag"
;
import
{
useUserStore
}
from
"./"
;
import
{
useUserStore
}
from
"./"
;
...
...
web/src/store/module/user.ts
View file @
cc23f69f
import
{
camelCase
}
from
"lodash-es"
;
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
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
{
setAppearance
,
setLocale
}
from
"../reducer/global"
;
import
{
setUser
,
patchUser
,
setHost
,
setUserById
}
from
"../reducer/user"
;
import
{
setUser
,
patchUser
,
setHost
,
setUserById
}
from
"../reducer/user"
;
...
...
web/src/utils/
convertLanguageCodeToLocale
.ts
→
web/src/utils/
i18n
.ts
View file @
cc23f69f
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment