Update: Vue 2 to Vue 3 with Typescript, node 14 to node 22, Jenkinsfile, Dockerfile, vapor.yml (Post PROD Deployment)

This commit is contained in:
Dillon Ngo
2026-07-04 22:48:14 +08:00
parent c70d6244f2
commit d41b82bcee
11 changed files with 18 additions and 8 deletions
@@ -27,6 +27,7 @@
import { useComponentHandler } from '@/composables/useComponentHandler';
import { useModalFormHandler } from '@/composables/useModalFormHandler';
import { useRequest } from '@/composables/useRequest';
import route from '@/general/functions/router';
const props = defineProps<{
section: string;
@@ -68,6 +68,8 @@ const props = withDefaults(defineProps<{
emptyListSection: true
});
const asset = window.Vapor.asset;
const queueStore = useQueueStore();
const uiStore = useUiStore();
const jobPollingStore = useJobPollingStore();
@@ -85,6 +85,8 @@ interface Props {
const props = defineProps<Props>();
const asset = window.Vapor.asset;
const authStore = useAuthStore();
const { submit } = useRequest();
@@ -100,6 +100,8 @@ interface Props {
const props = defineProps<Props>();
const asset = window.Vapor.asset;
const authStore = useAuthStore();
const { submit } = useRequest();
@@ -194,6 +194,8 @@ import { useRequest } from '@/composables/useRequest';
import { route } from '@/general/functions/router';
import PaginationComponent from '@/components/general/elements/PaginationComponent.vue';
const asset = window.Vapor.asset;
const authStore = useAuthStore();
const uiStore = useUiStore();
const queueStore = useQueueStore();
@@ -344,6 +344,7 @@ import { ref, computed, onMounted } from 'vue';
import { useComponentHandler } from '@/composables/useComponentHandler';
import { useRequest } from '@/composables/useRequest';
import { useAuthStore } from '@/stores/auth';
import route from '@/general/functions/router';
const props = withDefaults(defineProps<{
data: any;
@@ -45,6 +45,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useComponentHandler } from '@/composables/useComponentHandler';
import route from '@/general/functions/router';
const props = defineProps<{
data?: any;
@@ -130,6 +130,7 @@
import { ref } from 'vue';
import { useComponentHandler } from '@/composables/useComponentHandler';
import { useAuthStore } from '@/stores/auth';
import route from '@/general/functions/router';
const props = withDefaults(defineProps<{
data: any;
@@ -45,6 +45,7 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { useComponentHandler } from '@/composables/useComponentHandler';
import route from '@/general/functions/router';
const props = defineProps<{
data?: any;
+3 -6
View File
@@ -1,18 +1,15 @@
export { };
export {};
declare global {
interface Window {
route: any;
route: (...args: any[]) => string;
Vapor: import('laravel-vapor').Vapor;
pusher_key?: string;
pusher?: any;
LARAVEL_VAPOR_ENABLED?: boolean;
$: any; // jQuery
$: any;
}
// Declare route as a global function
const route: (...args: any[]) => string;
// Declare jQuery as a global
const $: any;
}
+2 -2
View File
@@ -3,8 +3,8 @@ import '@vue/runtime-dom';
declare module 'vue' {
interface ComponentCustomProperties {
asset(path: string): string;
route(...args: any[]): string;
// asset(path: string): string;
// route(...args: any[]): string;
}
}