client: prefer absolute over relative imports

This commit is contained in:
Johann150 2022-10-01 13:41:59 +02:00
parent cb888673b8
commit cb72d45672
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
10 changed files with 14 additions and 14 deletions

View file

@ -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';

View file

@ -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';

View file

@ -1,5 +1,5 @@
import { Directive } from 'vue';
import { makeHotkey } from '../scripts/hotkey';
import { makeHotkey } from '@/scripts/hotkey';
export default {
mounted(el, binding) {

View file

@ -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を同期

View file

@ -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';

View file

@ -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';

View file

@ -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[];

View file

@ -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 = [];

View file

@ -1,4 +1,4 @@
import { Theme } from './scripts/theme';
import { Theme } from '@/scripts/theme';
import { api } from '@/os';
import { $i } from '@/account';

View file

@ -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';