PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
73
scripts/_ALL_SITES/kolibrilab.it/db/static_data.ts
Executable file
73
scripts/_ALL_SITES/kolibrilab.it/db/static_data.ts
Executable file
@@ -0,0 +1,73 @@
|
||||
import {
|
||||
IListRoutes,
|
||||
ILang,
|
||||
IPreloadImages,
|
||||
ISites,
|
||||
} from '@model'
|
||||
|
||||
const firstPage = {
|
||||
active: true,
|
||||
order: 5,
|
||||
path: '/',
|
||||
materialIcon: 'home',
|
||||
name: 'pages.home',
|
||||
component: () => import('@src/root/home/home.vue'),
|
||||
reqauth: false,
|
||||
inmenu: true,
|
||||
infooter: true,
|
||||
}
|
||||
|
||||
function getDynamicPages(site: ISites): IListRoutes[] {
|
||||
|
||||
const baseroutes: IListRoutes[] = [
|
||||
firstPage,
|
||||
{
|
||||
active: true,
|
||||
order: 120,
|
||||
path: '/editprofile',
|
||||
materialIcon: 'fas fa-user',
|
||||
name: 'pages.profile3',
|
||||
component: () => import('@src/views/user/editprofile/editprofile.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 135,
|
||||
path: '/my/:username',
|
||||
materialIcon: 'fas fa-user',
|
||||
name: 'pages.profile2',
|
||||
component: () => import('@src/views/user/myprofile/myprofile.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
},
|
||||
]
|
||||
|
||||
return baseroutes
|
||||
}
|
||||
|
||||
export function firstimagehome() {
|
||||
|
||||
let img = 'statics/images/background.jpg'
|
||||
return img
|
||||
}
|
||||
|
||||
const preLoadImages: IPreloadImages[] = []
|
||||
|
||||
export const lang_available: ILang[] = []
|
||||
export const arrLangUsed: string[] = []
|
||||
|
||||
export const preloadedimages = []
|
||||
|
||||
export const routes: IListRoutes[] = [firstPage]
|
||||
|
||||
export const static_data = {
|
||||
routes,
|
||||
arrLangUsed,
|
||||
getDynamicPages,
|
||||
lang_available,
|
||||
preLoadImages,
|
||||
preloadedimages,
|
||||
}
|
||||
Reference in New Issue
Block a user