refactor(frontend): use ESM

This commit is contained in:
syuilo
2023-09-19 16:37:43 +09:00
parent 299c9c4118
commit b0f6c44f36
459 changed files with 1643 additions and 1642 deletions

View File

@@ -4,7 +4,7 @@
*/
import { Directive } from 'vue';
import { defaultStore } from '@/store';
import { defaultStore } from '@/store.js';
export default {
mounted(el: HTMLElement, binding, vn) {

View File

@@ -4,7 +4,7 @@
*/
import { Directive } from 'vue';
import { getScrollContainer, getScrollPosition } from '@/scripts/scroll';
import { getScrollContainer, getScrollPosition } from '@/scripts/scroll.js';
export default {
mounted(src, binding, vn) {

View File

@@ -4,7 +4,7 @@
*/
import MkRippleEffect from '@/components/MkRippleEffect.vue';
import { popup } from '@/os';
import { popup } from '@/os.js';
export default {
mounted(el, binding, vn) {

View File

@@ -7,8 +7,8 @@
// ただディレクティブ内でonUnmountedなどのcomposition api使えるのか不明
import { defineAsyncComponent, Directive, ref } from 'vue';
import { isTouchUsing } from '@/scripts/touch';
import { popup, alert } from '@/os';
import { isTouchUsing } from '@/scripts/touch.js';
import { popup, alert } from '@/os.js';
const start = isTouchUsing ? 'touchstart' : 'mouseenter';
const end = isTouchUsing ? 'touchend' : 'mouseleave';

View File

@@ -4,7 +4,7 @@
*/
import { defineAsyncComponent, Directive, ref } from 'vue';
import { popup } from '@/os';
import { popup } from '@/os.js';
export class UserPreview {
private el;