Delete legacy v1 frontend (resources/scripts)

The resources/scripts/ directory was the original Vue 2 / Pinia v1 admin and customer-portal SPA. It has been fully orphaned for some time — vite.config.js has zero entry points pointing at it and the only blade @vite() reference in resources/views/app.blade.php loads scripts-v2/main.ts. The directory was pure dead code.

Removes 424 .vue / .js / store / router / helper files (~2.7 MB) so that resources/scripts-v2/ can be renamed back to resources/scripts/ in a follow-up commit, dropping the v2 suffix now that there is no v1 left.
This commit is contained in:
Darko Gjorgjijoski
2026-04-07 12:48:15 +02:00
parent f83ec6e78f
commit 064bdf5395
424 changed files with 0 additions and 62746 deletions

View File

@@ -1,47 +0,0 @@
import { defineStore } from 'pinia'
export const useDialogStore = (useWindow = false) => {
const defineStoreFunc = useWindow ? window.pinia.defineStore : defineStore
const { global } = window.i18n
return defineStoreFunc('dialog', {
state: () => ({
active: false,
title: '',
message: '',
size: 'md',
data: null,
variant: 'danger', // primary || danger
yesLabel: global.t('settings.custom_fields.yes'),
noLabel: global.t('settings.custom_fields.no'),
resolve: null,
hideNoButton: false,
}),
actions: {
openDialog(data) {
this.active = true
this.title = data.title
this.message = data.message
this.size = data.size
this.data = data.data
this.variant = data.variant
this.yesLabel = data.yesLabel
this.noLabel = data.noLabel
this.hideNoButton = data.hideNoButton
return new Promise((resolve, reject) => {
this.resolve = resolve
})
},
closeDialog() {
this.active = false
setTimeout(() => {
this.title = ''
this.message = ''
this.data = null
}, 300)
},
},
})()
}

View File

@@ -1,75 +0,0 @@
import { defineStore } from 'pinia'
export const useModalStore = (useWindow = false) => {
const defineStoreFunc = useWindow ? window.pinia.defineStore : defineStore
const { global } = window.i18n
return defineStoreFunc('modal', {
state: () => ({
active: false,
content: '',
title: '',
componentName: '',
id: '',
size: 'md',
data: null,
refreshData: null,
variant: '',
}),
getters: {
isEdit() {
return (this.id ? true : false)
}
},
actions: {
openModal(payload) {
this.componentName = payload.componentName
this.active = true
if (payload.id) {
this.id = payload.id
}
this.title = payload.title
if (payload.content) {
this.content = payload.content
}
if (payload.data) {
this.data = payload.data
}
if (payload.refreshData) {
this.refreshData = payload.refreshData
}
if (payload.variant) {
this.variant = payload.variant
}
if (payload.size) {
this.size = payload.size
}
},
resetModalData() {
this.content = ''
this.title = ''
this.componentName = ''
this.id = ''
this.data = null
this.refreshData = null
},
closeModal() {
this.active = false
setTimeout(() => {
this.resetModalData()
}, 300)
}
}
})()
}

View File

@@ -1,28 +0,0 @@
import { defineStore } from 'pinia'
export const useNotificationStore = (useWindow = false) => {
const defineStoreFunc = useWindow ? window.pinia.defineStore : defineStore
return defineStoreFunc('notification', {
state: () => ({
active: false,
autoHide: true,
notifications: [],
}),
actions: {
showNotification(notification) {
this.notifications.push({
...notification,
id: (Math.random().toString(36) + Date.now().toString(36)).substr(2),
})
},
hideNotification(data) {
this.notifications = this.notifications.filter((notification) => {
return notification.id != data.id
})
}
}
})()
}