Files
dragonroll/frontend/app/services/WindowDefinitions.js
Aran Roig 2b07cc98a6
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 42s
Whatever ClearWindow needs to be in json
2026-04-26 22:57:29 +02:00

35 lines
897 B
JavaScript

import { ClearWindowsWithType, GetFirstWindowId } from './Windows'
/*
Put here all dragonroll windows
*/
const defWindows = {
login: {
title: 'windows.login',
movable: false,
component: () => import('~/components/windows/LoginWindow.vue'),
},
register: {
title: 'windows.register',
movable: false,
component: () => import('~/components/windows/RegisterWindow.vue'),
},
main_menu: {
title: 'windows.main-menu',
component: () => import('~/components/windows/MainMenuWindow.vue'),
},
example: {
title: 'windows.example',
component: () => import('~/components/windows/ExampleWindow.vue'),
},
edit_profile: {
title: "windows.edit-profile",
component: () => import('~/components/windows/EditProfileWindow.vue'),
close: () => ClearWindowsWithType(GetFirstWindowId('edit_profile')),
movable: true
},
}
export {
defWindows
}