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