refactor: Tweak path alias of client

This commit is contained in:
syuilo
2021-03-23 17:30:14 +09:00
parent 8432c2c9ea
commit d6e23b803b
338 changed files with 1234 additions and 1229 deletions

View File

@ -1,5 +1,5 @@
import { Directive } from 'vue';
import { getScrollContainer, getScrollPosition } from '@/scripts/scroll';
import { getScrollContainer, getScrollPosition } from '@client/scripts/scroll';
export default {
mounted(src, binding, vn) {

View File

@ -1,5 +1,5 @@
import Particle from '@/components/particle.vue';
import { popup } from '@/os';
import Particle from '@client/components/particle.vue';
import { popup } from '@client/os';
export default {
mounted(el, binding, vn) {

View File

@ -1,6 +1,6 @@
import { Directive, ref } from 'vue';
import { isDeviceTouch } from '@/scripts/is-device-touch';
import { popup } from '@/os';
import { isDeviceTouch } from '@client/scripts/is-device-touch';
import { popup } from '@client/os';
const start = isDeviceTouch ? 'touchstart' : 'mouseover';
const end = isDeviceTouch ? 'touchend' : 'mouseleave';
@ -30,7 +30,7 @@ export default {
if (self.text == null) return;
const showing = ref(true);
popup(import('@/components/ui/tooltip.vue'), {
popup(import('@client/components/ui/tooltip.vue'), {
showing,
text: self.text,
source: el

View File

@ -1,6 +1,6 @@
import { Directive, ref } from 'vue';
import autobind from 'autobind-decorator';
import { popup } from '@/os';
import { popup } from '@client/os';
export class UserPreview {
private el;
@ -24,7 +24,7 @@ export class UserPreview {
const showing = ref(true);
popup(import('@/components/user-preview.vue'), {
popup(import('@client/components/user-preview.vue'), {
showing,
q: this.user,
source: this.el