CI/CD / preconditions (pull_request) Successful in 1s
Native JavaScript checks / Native launcher and release tests (pull_request) Successful in 1m2s
macOS checks / Native Rust tests and unsigned build (pull_request) Successful in 1m38s
CI/CD / test_and_check_app (pull_request) Successful in 6m47s
CI/CD / Publish immutable image (pull_request) Skipped
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import { createInertiaApp } from '@inertiajs/vue3';
|
|
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
|
|
import type { DefineComponent } from 'vue';
|
|
import { createApp, h } from 'vue';
|
|
import '../css/app.css';
|
|
import {
|
|
initializeNativeApp,
|
|
registerNativeRecovery,
|
|
} from '@/composables/useNativeApp';
|
|
import { createAppearance } from '@/composables/useAppearance';
|
|
import { createLocalization } from '@/lib/localization';
|
|
|
|
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
|
|
|
|
createInertiaApp({
|
|
title: (title) => (title ? `${title} - ${appName}` : appName),
|
|
resolve: (name) =>
|
|
resolvePageComponent(
|
|
`./pages/${name}.vue`,
|
|
import.meta.glob<DefineComponent>('./pages/**/*.vue'),
|
|
),
|
|
setup({ el, App, props, plugin }) {
|
|
createApp({ render: () => h(App, props) })
|
|
.use(plugin)
|
|
.use(createLocalization(props.initialPage.props.localization))
|
|
.use(createAppearance(props.initialPage.props.appearance))
|
|
.mount(el);
|
|
registerNativeRecovery();
|
|
window.addEventListener('kanban-native-ready', () => {
|
|
void initializeNativeApp();
|
|
});
|
|
void initializeNativeApp();
|
|
},
|
|
progress: {
|
|
color: 'var(--primary)',
|
|
},
|
|
});
|