Skip to content

Commit 78b9214

Browse files
committed
Update more imports to use #root
1 parent 6f00695 commit 78b9214

16 files changed

+20
-61
lines changed

components/Doc.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,9 @@
2626
</template>
2727

2828
<script>
29-
import { micromark } from 'micromark'
30-
import { gfm, gfmHtml } from 'micromark-extension-gfm'
3129
import moment from 'moment'
3230
import CoreDivider from '#root/components/CoreDivider.vue'
33-
34-
import {
35-
DISCARD_DOCUMENT,
36-
RESTORE_DOCUMENT,
37-
} from '/src/store/actions.js';
31+
import { DISCARD_DOCUMENT, RESTORE_DOCUMENT } from '#root/src/store/actions'
3832
3933
export default {
4034
components: {

components/DocList.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@
5353
<script>
5454
import Doc from '#root/components/Doc.vue'
5555
import Tag from '#root/components/Tag.vue'
56-
57-
import {
58-
MERGE_DOCUMENTS,
59-
} from '/src/store/actions.js'
56+
import { MERGE_DOCUMENTS } from '#root/src/store/actions'
6057
6158
const REGEX_QUERY = /^\/(?<regex>.+)\/(?<flags>[a-z]*)$/s
6259

components/SettingsEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import {
110110
SET_EDITOR_SPELLCHECK,
111111
SET_EDITOR_TAB_SIZE,
112112
SET_EDITOR_TOOLBAR,
113-
} from '/src/store/modules/settings.js'
113+
} from '#root/src/store/modules/settings'
114114
115115
export default {
116116
computed: {

components/settings/Encryption.vue

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,9 @@
5151
</template>
5252

5353
<script>
54-
import { exportKeys, generateKeys } from '#root/src/common/crypto/asymmetric.js';
55-
56-
import { TOUCH_DOCUMENT } from '#root/src/store/actions.js';
57-
58-
import {
59-
SET_CRYPTO_ENABLED,
60-
SET_CRYPTO_KEYS,
61-
} from '/src/store/modules/settings.js';
54+
import { exportKeys, generateKeys } from '#root/src/common/crypto/asymmetric'
55+
import { TOUCH_DOCUMENT } from '#root/src/store/actions'
56+
import { SET_CRYPTO_ENABLED, SET_CRYPTO_KEYS } from '#root/src/store/modules/settings'
6257
6358
export default {
6459
data() {

pages/menu.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,10 @@ import ModK from '#root/components/ModK.vue'
136136
import ModKKey from '#root/components/ModKKey.vue'
137137
import TagLink from '#root/components/TagLink.vue'
138138
import TheLogo from '#root/components/TheLogo.vue'
139+
import { DEACTIVATE_CONTEXT, SET_CONTEXT_TAGS } from '#root/src/store/actions'
139140
import { useFiles } from '#root/src/stores/useFiles'
140141
import { AsyncIterable } from '#root/src/utils/iterables'
141142
142-
import {
143-
DEACTIVATE_CONTEXT,
144-
SET_CONTEXT_TAGS,
145-
} from '/src/store/actions.js'
146-
147143
export default {
148144
components: {
149145
AccountIcon,

pages/notepad.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
import moment from 'moment'
77
import EditorPage from '#root/pages/docs/[docId]/index.vue'
88
import Doc from '#root/src/models/doc.js'
9-
10-
import {
11-
DOCUMENTS_LOADED,
12-
EDIT_DOCUMENT,
13-
} from '/src/store/actions.js'
9+
import { DOCUMENTS_LOADED, EDIT_DOCUMENT } from '#root/src/store/actions'
1410
1511
export default {
1612
components: {

pages/workspaces.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,8 @@ import { TrashIcon, Square2StackIcon as WorkspaceIcon } from '@heroicons/vue/24/
5858
import { nanoid } from 'nanoid'
5959
import CoreButton from '#root/components/CoreButton.vue'
6060
import Tag from '#root/components/Tag.vue'
61-
62-
import {
63-
SET_CONTEXT_TAGS,
64-
} from '/src/store/actions.js';
65-
66-
import {
67-
ADD_CONTEXT,
68-
REMOVE_CONTEXT,
69-
} from '/src/store/modules/contexts.js'
61+
import { SET_CONTEXT_TAGS } from '#root/src/store/actions'
62+
import { ADD_CONTEXT, REMOVE_CONTEXT } from '#root/src/store/modules/contexts'
7063
7164
export default {
7265
components: {

src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
SET_ONLINE,
3030
SET_RIGHT_SIDEBAR_VISIBILITY,
3131
SET_SHOW_WELCOME,
32-
} from '/src/store/actions'
32+
} from '#root/src/store/actions'
3333

3434
export const store = createStore({
3535
state() {

src/store/modules/auth.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { getAuth } from 'firebase/auth'
2-
3-
import {
4-
SIGN_OUT,
5-
} from '/src/store/actions'
2+
import { SIGN_OUT } from '#root/src/store/actions'
63

74
export const SET_SUBSCRIPTION = 'SET_SUBSCRIPTION'
85
export const SET_USER = 'SET_USER'

src/store/modules/documents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
SET_DOCUMENT,
1616
SHARE_DOCUMENT,
1717
TOUCH_DOCUMENT,
18-
} from '/src/store/actions'
18+
} from '#root/src/store/actions'
1919

2020
const findDoc = (state, id) => {
2121
// only return docs that are decrypted

src/store/modules/sync.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { unwrap } from '#root/src/common/vue'
22
import { addDoc, fetchDocs, updateDoc } from '#root/src/firebase/firestore'
33
import { pack, unpack } from '#root/src/models/doc'
4-
5-
import {
6-
MERGE_DOCUMENT,
7-
SYNC,
8-
} from '/src/store/actions'
4+
import { MERGE_DOCUMENT, SYNC } from '#root/src/store/actions'
95

106
// local actions
117
const PULL_DOCUMENT = 'PULL_DOCUMENT'

src/store/plugins/caching/contexts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
ADD_CONTEXT,
88
LOAD_CONTEXTS,
99
REMOVE_CONTEXT,
10-
} from '/src/store/modules/contexts'
10+
} from '#root/src/store/modules/contexts'
1111

1212
import { SETTINGS_LOADED } from '#root/src/store/modules/settings'
1313

src/store/plugins/caching/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
SET_EXPERIMENTAL,
2020
SET_THEME,
2121
SETTINGS_LOADED,
22-
} from '/src/store/modules/settings'
22+
} from '#root/src/store/modules/settings'
2323

2424
const CACHE_KEY = 'main'
2525
const cache = localforage.createInstance({

src/store/plugins/keybindings.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
import {
2-
LOAD_KEYBINDINGS,
3-
} from '/src/store/modules/keybindings'
4-
5-
import {
6-
SETTINGS_LOADED,
7-
} from '/src/store/modules/settings'
1+
import { LOAD_KEYBINDINGS } from '#root/src/store/modules/keybindings'
2+
import { SETTINGS_LOADED } from '#root/src/store/modules/settings'
83

94
export default (store) => {
105
store.subscribe(({ type, _payload }, state) => {

src/store/plugins/packages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
LOAD_DOCUMENTS,
99
RESTORE_DOCUMENT,
1010
TOUCH_DOCUMENT,
11-
} from '/src/store/actions';
11+
} from '#root/src/store/actions'
1212

1313
export default (store) => {
1414
store.subscribe(({ type, payload: { id } }, state) => {

src/store/plugins/sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
SHARE_DOCUMENT,
1212
SYNC,
1313
TOUCH_DOCUMENT,
14-
} from '/src/store/actions'
14+
} from '#root/src/store/actions'
1515

1616
import { SET_USER } from '#root/src/store/modules/auth'
1717

0 commit comments

Comments
 (0)