game object module

This commit is contained in:
2024-11-06 20:09:02 +02:00
parent e3a2a0251d
commit 7180cfeb7f
16 changed files with 201 additions and 70 deletions
+3
View File
@@ -16,6 +16,9 @@ export default {
},
async search(query){
return await $ax.post('/game-object', query);
},
async remove(id){
return await $ax.delete(`/game-object/${id}`)
}
}
}
+2
View File
@@ -7,6 +7,7 @@
// Plugins
import vuetify from './vuetify'
import lang from './lang'
import params from './params'
import pinia from '@/stores'
import router from '@/router'
import api from './api'
@@ -18,4 +19,5 @@ export function registerPlugins (app) {
.use(pinia)
.use(api)
.use(lang)
.use(params)
}
+5 -2
View File
@@ -14,13 +14,16 @@ const lang = {
player3d: 'Играч',
saveAndPreview: 'Запис и преглед',
preview: 'Преглед',
captureThumbnail: 'Capture thumbnail',
captureThumbnail: 'Save thumbnail',
publish: 'Публикуване',
gameObjects: 'Обекти',
gameScenarios: 'Сценарии',
gameRules: 'Правила',
games: 'Игри',
darkMode: 'Тъмен режим'
darkMode: 'Тъмен режим',
confirmDeletionOf: 'Потвърдете изтриването на',
yes: 'Да',
no: 'Не'
},
en: {
+37
View File
@@ -0,0 +1,37 @@
export default {
install: (app, options) => {
// inject a globally available $translate() method
let l = app.config.globalProperties.$l;
app.config.globalProperties.$p = {
objectTypes: [{
value: 'panorama2d',
icon: 'panorama-variant-outline',
title: l.panorama2d,
render: true
}, {
value: 'environment3d',
icon: 'panorama-sphere-outline',
title: l.environment3d,
render: true
}, {
value: 'object3d',
icon: 'video-3d',
title: l.object3d,
render: true
}, {
value: 'object2d',
icon: 'file-image-outline',
title: l.object2d
}, {
value: 'player3d',
icon: 'human-greeting',
title: l.player3d,
render: true
}, {
value: 'audio',
icon: 'volume-medium',
title: l.audio
}]
}
}
}