feat!: rewrite frontend in Vue 3 with Pinia, DaisyUI, vite-plugin-pwa

Migrates every component from class-based vue-property-decorator to
<script setup> + Composition API. Replaces Vuex 3 + vuex-class with a
single Pinia store (persisted via pinia-plugin-persistedstate). Swaps
Bulma + bulma-{checkradio,switch,pricingtable} for DaisyUI 5 utilities
on Tailwind 4. Replaces register-service-worker with vite-plugin-pwa
(workbox, skipWaiting/clientsClaim preserved).

Plugins replaced:
- vue-class-component / vue-property-decorator -> <script setup>
- vuex / vuex-class / vuex-persist -> pinia + persistedstate
- vue-i18n 8 -> vue-i18n 11 (composition mode, legacy: false)
- vue-click-outside -> @vueuse/core onClickOutside
- @xkeshi/vue-qrcode -> qrcode.vue
- vue-currency-input 1 -> vue-currency-input 3 (composable wrapper)
- bus-event (Vue instance) -> mitt
- Vue filters -> plain functions imported per component

BREAKING: drops Stripe / pricing entirely (Payment, PricingTable,
/pricing route, vue-stripe-checkout, bulma-pricingtable).

Clears unused Cypress and Jest test scaffolding; leaves a Vitest
harness behind for future tests.
This commit is contained in:
Julien Calixte
2026-06-01 21:03:34 +02:00
parent f6a518a43d
commit d4dab8c03f
95 changed files with 3359 additions and 7627 deletions

View File

@@ -1,40 +1,39 @@
<template>
<a href="#" class="queue-notif" v-if="newVersion" @click.prevent="reloadApp">
nouvelle version disponible
</a>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount } from 'vue'
import queueNotifService from '@/services/QueueNotifService'
import notif from '@/utils/notif'
@Component
export default class QueueNotif extends Vue {
private newVersion = queueNotifService.getNewVersion
const newVersion = ref(false)
private mounted() {
queueNotifService.subscribe((notification) => {
switch (notification.type) {
case 'success':
notif.success(notification.message)
break
case 'error':
notif.error(notification.message)
break
}
})
queueNotifService.subscribeToNewVersion((newVersion: boolean) => {
this.newVersion = newVersion
})
}
onMounted(() => {
queueNotifService.subscribe((notification) => {
if (notification.type === 'success') {
notif.success(notification.message)
} else if (notification.type === 'error') {
notif.error(notification.message)
}
})
queueNotifService.subscribeToNewVersion((hasNew: boolean) => {
newVersion.value = hasNew
})
})
private beforeDestroy() {
queueNotifService.unsubscribe()
}
onBeforeUnmount(() => {
queueNotifService.unsubscribe()
})
private reloadApp() {
location.reload(true)
}
const reloadApp = () => {
location.reload()
}
</script>
<template>
<a
v-if="newVersion"
href="#"
class="queue-notif alert alert-info"
@click.prevent="reloadApp"
>
nouvelle version disponible
</a>
</template>