|
@@ -124,14 +183,14 @@
:disabled="idx === 0 || null"
role="button"
:title="labels.up"
- :class="['up', 'arrow', {disabled: idx === 0}, 'icon']"
+ :class="['up', 'arrow', { disabled: idx === 0 }, 'icon']"
@click="move(idx, -1)"
/>
|
diff --git a/front/src/components/notifications/NotificationRow.vue b/front/src/components/notifications/NotificationRow.vue
index e524241ca..50e6d309d 100644
--- a/front/src/components/notifications/NotificationRow.vue
+++ b/front/src/components/notifications/NotificationRow.vue
@@ -20,7 +20,7 @@
v-html="notificationData.message"
/>
-
diff --git a/front/src/components/semantic/Modal.vue b/front/src/components/semantic/Modal.vue
index 33fe65ba2..4a4e602b3 100644
--- a/front/src/components/semantic/Modal.vue
+++ b/front/src/components/semantic/Modal.vue
@@ -27,6 +27,7 @@ const show = useVModel(props, 'show', emit)
const control = ref()
const initModal = () => {
+ // @ts-expect-error
control.value = $(modal.value).modal({
duration: 100,
onApprove: () => emit('approved'),
diff --git a/front/src/embed.ts b/front/src/embed.ts
index 49bfd6b1b..046391e72 100644
--- a/front/src/embed.ts
+++ b/front/src/embed.ts
@@ -1,7 +1,9 @@
import EmbedFrame from './EmbedFrame.vue'
-import VuePlyr from 'vue-plyr'
import { createApp } from 'vue'
+// @ts-expect-error
+import VuePlyr from 'vue-plyr'
+
const app = createApp(EmbedFrame)
app.use(VuePlyr)
app.mount('#app')
diff --git a/front/src/init/directives.ts b/front/src/init/directives.ts
index 7d692754a..dcd5b5761 100644
--- a/front/src/init/directives.ts
+++ b/front/src/init/directives.ts
@@ -7,7 +7,7 @@ export const install: InitModule = ({ app, store }) => {
})
app.directive('dropdown', function (el, binding) {
- // @ts-ignore
+ // @ts-expect-error
jQuery(el).dropdown({
selectOnKeydown: false,
action (text: string, value: string, $el: JQuery) {
@@ -15,7 +15,7 @@ export const install: InitModule = ({ app, store }) => {
// works as expected
const button = $el[0]
button.click()
- // @ts-ignore
+ // @ts-expect-error
jQuery(el).find('.ui.dropdown').dropdown('hide')
},
...(binding.value || {})
diff --git a/front/src/main.ts b/front/src/main.ts
index 698d9f860..21d4638e3 100644
--- a/front/src/main.ts
+++ b/front/src/main.ts
@@ -3,10 +3,12 @@ import store from '~/store'
import { configureCompat, createApp, defineAsyncComponent, h } from 'vue'
import useLogger from '~/composables/useLogger'
import useTheme from '~/composables/useTheme'
+
+// NOTE: Set the theme as fast as possible
useTheme()
configureCompat({
- RENDER_FUNCTION: false,
+ RENDER_FUNCTION: false
// COMPONENT_V_MODEL: false
})
@@ -32,7 +34,7 @@ const app = createApp({
app.use(router)
app.use(store)
-const modules: Promise[] = []
+const modules: Array> = []
for (const module of Object.values(import.meta.globEager('./init/*.ts'))) {
modules.push(module.install?.({
app,
@@ -50,8 +52,10 @@ Promise.all(modules).finally(() => {
// TODO (wvffle): Migrate to pinia
// TODO (wvffle): Remove global Vue (Only vuex files affected)
// TODO (wvffle): Remove shims-vue2.d.ts
+// TODO (wvffle): Replace $set and $delete with reactive()
// TODO (wvffle): Check for mixin merging: https://v3-migration.vuejs.org/breaking-changes/data-option.html#mixin-merge-behavior-change=
// TODO (wvffle): Use emits options: https://v3-migration.vuejs.org/breaking-changes/emits-option.html
// TODO (wvffle): Migrate to new v-model: https://v3-migration.vuejs.org/breaking-changes/v-model.html
// TODO (wvffle): Migrate to |