mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
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:
@@ -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();
|
||||
|
||||
+2
@@ -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();
|
||||
|
||||
+1
@@ -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;
|
||||
|
||||
+1
@@ -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;
|
||||
|
||||
+1
@@ -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;
|
||||
|
||||
+1
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user