- mail_settings_controller for setting smtp settings - added view ror rjecting dataset for editor - added new model AppConfig for stroing appwide config values - better validate_chesum.ts command with process chunking - added vue3 apps 'BasicSettings' like email, profile settings - started with 2 multilingual capabilities - npm updates
This commit is contained in:
parent
010bead723
commit
b06ccae603
67 changed files with 7820 additions and 1463 deletions
|
@ -7,6 +7,7 @@ import { createInertiaApp } from '@inertiajs/vue3';
|
|||
import { createPinia } from 'pinia';
|
||||
import { StyleService } from '@/Stores/style.service';
|
||||
import { LayoutService } from '@/Stores/layout';
|
||||
import { LocaleStore } from '@/Stores/locale';
|
||||
import { darkModeKey, styleKey } from '@/config';
|
||||
// import type { DefineComponent } from 'vue';
|
||||
// import { resolvePageComponent } from '@adonisjs/inertia/helpers';
|
||||
|
@ -17,6 +18,10 @@ import { EmitterPlugin } from '@/EmitterDirective';
|
|||
import { initRoutes } from '@eidellev/adonis-stardust/client/index.js';
|
||||
initRoutes();
|
||||
|
||||
// import { loadTranslations } from './utils/tethyscloud-l10n';
|
||||
import asyncPlugin from '@/apps/settings/asyncPlugin';
|
||||
// const translation = await asyncPlugin.install('settings');
|
||||
|
||||
// interface SetupOptions {
|
||||
// el: Element;
|
||||
// App: App;
|
||||
|
@ -59,19 +64,26 @@ createInertiaApp({
|
|||
// )
|
||||
// },
|
||||
|
||||
setup({ el, App, props, plugin}) {
|
||||
createApp({ render: () => h(App, props) })
|
||||
setup({ el, App, props, plugin }) {
|
||||
const app = createApp({ render: () => h(App, props) })
|
||||
.use(plugin)
|
||||
.use(pinia)
|
||||
// .use(i18n)
|
||||
.use(EmitterPlugin)
|
||||
// .component('inertia-link', Link)
|
||||
.mount(el);
|
||||
.use(EmitterPlugin);
|
||||
// .component('inertia-link', Link)
|
||||
|
||||
asyncPlugin.install('settings').then(() => {
|
||||
app.mount(el);
|
||||
});
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
const styleService = StyleService(pinia);
|
||||
const layoutService = LayoutService(pinia);
|
||||
const localeService = LocaleStore(pinia);
|
||||
|
||||
localeService.initializeLocale();
|
||||
// const mainService = MainService(pinia);
|
||||
// mainService.setUser(user);
|
||||
|
||||
|
@ -83,7 +95,6 @@ if ((!localStorage[darkModeKey] && window.matchMedia('(prefers-color-scheme: dar
|
|||
styleService.setDarkMode(true);
|
||||
}
|
||||
|
||||
|
||||
/* Collapse mobile aside menu on route change */
|
||||
Inertia.on('navigate', () => {
|
||||
layoutService.isAsideMobileExpanded = false;
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue