forked from FoundKeyGang/FoundKey
client: prefer absolute over relative imports
This commit is contained in:
parent
41e7af1662
commit
b9f20ca16d
10 changed files with 14 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
||||||
import { defineAsyncComponent, reactive } from 'vue';
|
import { defineAsyncComponent, reactive } from 'vue';
|
||||||
import * as foundkey from 'foundkey-js';
|
import * as foundkey from 'foundkey-js';
|
||||||
import { showSuspendedDialog } from './scripts/show-suspended-dialog';
|
import { showSuspendedDialog } from '@/scripts/show-suspended-dialog';
|
||||||
import { i18n } from './i18n';
|
import { i18n } from '@/i18n';
|
||||||
import { del, get, set } from '@/scripts/idb-proxy';
|
import { del, get, set } from '@/scripts/idb-proxy';
|
||||||
import { apiUrl } from '@/config';
|
import { apiUrl } from '@/config';
|
||||||
import { waiting, api, popup, popupMenu, success, alert } from '@/os';
|
import { waiting, api, popup, popupMenu, success, alert } from '@/os';
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent } from 'vue';
|
import { defineAsyncComponent } from 'vue';
|
||||||
import { toUnicode } from 'punycode/';
|
import { toUnicode } from 'punycode/';
|
||||||
import { showSuspendedDialog } from '../scripts/show-suspended-dialog';
|
import { showSuspendedDialog } from '@/scripts/show-suspended-dialog';
|
||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
import MkInput from '@/components/form/input.vue';
|
import MkInput from '@/components/form/input.vue';
|
||||||
import MkInfo from '@/components/ui/info.vue';
|
import MkInfo from '@/components/ui/info.vue';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Directive } from 'vue';
|
import { Directive } from 'vue';
|
||||||
import { makeHotkey } from '../scripts/hotkey';
|
import { makeHotkey } from '@/scripts/hotkey';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mounted(el, binding) {
|
mounted(el, binding) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { computed, reactive } from 'vue';
|
import { computed, reactive } from 'vue';
|
||||||
import * as foundkey from 'foundkey-js';
|
import * as foundkey from 'foundkey-js';
|
||||||
import { api } from './os';
|
import { api } from '@/os';
|
||||||
|
|
||||||
// TODO: 他のタブと永続化されたstateを同期
|
// TODO: 他のタブと永続化されたstateを同期
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { computed, ref, reactive } from 'vue';
|
import { computed, ref, reactive } from 'vue';
|
||||||
import { $i } from './account';
|
import { $i } from '@/account';
|
||||||
import { mainRouter } from '@/router';
|
import { mainRouter } from '@/router';
|
||||||
import { search } from '@/scripts/search';
|
import { search } from '@/scripts/search';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// PIZZAX --- A lightweight store
|
// PIZZAX --- A lightweight store
|
||||||
|
|
||||||
import { onUnmounted, Ref, ref, watch } from 'vue';
|
import { onUnmounted, Ref, ref, watch } from 'vue';
|
||||||
import { $i } from './account';
|
import { $i } from '@/account';
|
||||||
import { api } from './os';
|
import { api } from '@/os';
|
||||||
import { stream } from './stream';
|
import { stream } from '@/stream';
|
||||||
|
|
||||||
type StateDef = Record<string, {
|
type StateDef = Record<string, {
|
||||||
where: 'account' | 'device' | 'deviceAccount';
|
where: 'account' | 'device' | 'deviceAccount';
|
||||||
|
|
|
@ -8,6 +8,6 @@ export type UnicodeEmojiDef = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// initial converted from https://github.com/muan/emojilib/commit/242fe68be86ed6536843b83f7e32f376468b38fb
|
// initial converted from https://github.com/muan/emojilib/commit/242fe68be86ed6536843b83f7e32f376468b38fb
|
||||||
import _emojilist from '../emojilist.json';
|
import _emojilist from '@/emojilist.json';
|
||||||
|
|
||||||
export const emojilist = _emojilist as UnicodeEmojiDef[];
|
export const emojilist = _emojilist as UnicodeEmojiDef[];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { markRaw, ref } from 'vue';
|
import { markRaw, ref } from 'vue';
|
||||||
import { Storage } from './pizzax';
|
import { Storage } from '@/pizzax';
|
||||||
import { Theme } from './scripts/theme';
|
import { Theme } from '@/scripts/theme';
|
||||||
|
|
||||||
export const postFormActions = [];
|
export const postFormActions = [];
|
||||||
export const userActions = [];
|
export const userActions = [];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Theme } from './scripts/theme';
|
import { Theme } from '@/scripts/theme';
|
||||||
import { api } from '@/os';
|
import { api } from '@/os';
|
||||||
import { $i } from '@/account';
|
import { $i } from '@/account';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { throttle } from 'throttle-debounce';
|
import { throttle } from 'throttle-debounce';
|
||||||
import { markRaw } from 'vue';
|
import { markRaw } from 'vue';
|
||||||
import { notificationTypes } from 'foundkey-js';
|
import { notificationTypes } from 'foundkey-js';
|
||||||
import { Storage } from '../../pizzax';
|
import { Storage } from '@/pizzax';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
import { api } from '@/os';
|
import { api } from '@/os';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue