games group and order

This commit is contained in:
2026-04-11 18:16:53 +03:00
parent b155012e6c
commit 32b95fc140
8 changed files with 41 additions and 19 deletions
+2 -2
View File
@@ -2,15 +2,15 @@
<v-app-bar color="blue" scroll-behavior="collapse" scroll-threshold="50" :height="100" image="/static/bck-2.webp">
<!-- <v-app-bar-nav-icon variant="text" @click.stop="drawer = !drawer"></v-app-bar-nav-icon> -->
<template v-slot:prepend>
<v-avatar class="ml-3" size="66" rounded="0">
<v-avatar class="ml-4 mr-3" size="66" rounded="0">
<v-img src="/logo.webp" alt="ProNature Logo"></v-img>
</v-avatar>
</template>
<v-app-bar-title>
<router-link to="/">{{ l.playground }}</router-link>
</v-app-bar-title>
<v-btn to="/manage" icon="mdi-wrench-cog-outline" v-if="roles.editor" v-tooltip="l.workshop"></v-btn>
<CommonHeader></CommonHeader>
<v-btn to="/manage" icon="mdi-wrench-cog-outline" v-if="roles.editor" v-tooltip="l.workshop" variant="flat" color="secondary"></v-btn>
</v-app-bar>
</template>
@@ -4,7 +4,7 @@
<v-card title="Assets">
<AssetBrowser :query="query" @select="select" :hideFilter="true"></AssetBrowser>
<v-card-actions>
<v-btn text="Close" color="primary" @click="dialog = false"></v-btn>
<v-btn :text="l.close" color="primary" @click="dialog = false"></v-btn>
</v-card-actions>
</v-card>
</v-dialog>
+18 -9
View File
@@ -3,7 +3,7 @@
<!-- <v-app-bar-nav-icon variant="text" @click.stop="drawer = !drawer"></v-app-bar-nav-icon> -->
<template v-slot:prepend>
<router-link to="/manage">
<v-avatar class="ml-3" size="66" rounded="0">
<v-avatar class="ml-4 mr-3" size="66" rounded="0">
<v-img src="/logo.webp" alt="ProNature Logo"></v-img>
</v-avatar>
</router-link>
@@ -12,7 +12,6 @@
<router-link to="/manage">{{ l.workshop }}</router-link>
</v-app-bar-title>
<template v-slot:append>
<v-btn to="/" icon="mdi-controller" v-tooltip="l.playground"></v-btn>
<v-menu>
<template v-slot:activator="{ props }">
<v-btn icon="mdi-plus" variant="text" v-bind="props"></v-btn>
@@ -24,21 +23,31 @@
</v-list>
</v-menu>
<CommonHeader></CommonHeader>
<v-btn to="/" icon="mdi-controller" v-tooltip="l.playground" variant="flat" color="primary"></v-btn>
</template>
</v-app-bar>
<v-navigation-drawer class="bg-secondary" expand-on-hover rail>
<v-divider></v-divider>
<v-list nav>
<v-list-item prepend-icon="mdi-database" to="/manage/game-objects/list"
:title="l.gameObjects"></v-list-item>
<v-list-item prepend-icon="mdi-receipt-text-edit-outline" to="/manage/scenarios/list"
:title="l.gameScenarios"></v-list-item>
<v-list-item prepend-icon="mdi-database" to="/manage/game-objects/list" :title="l.gameObjects">
<template v-slot:append>
<v-btn icon="mdi-plus" variant="text" to="/manage/game-objects/add"></v-btn>
</template>
</v-list-item>
<v-list-item prepend-icon="mdi-receipt-text-edit-outline" to="/manage/scenarios/list" :title="l.gameScenarios">
<template v-slot:append>
<v-btn icon="mdi-plus" variant="text" to="/manage/scenarios/add"></v-btn>
</template>
</v-list-item>
<!-- <v-list-item prepend-icon="mdi-cogs" :title="l.gameRules"></v-list-item> -->
<v-divider></v-divider>
<v-list-item prepend-icon="mdi-controller" :title="l.games" to="/manage/games/list"></v-list-item>
<!-- <v-divider></v-divider> -->
<v-list-item prepend-icon="mdi-controller" :title="l.games" to="/manage/games/list">
<template v-slot:append>
<v-btn icon="mdi-plus" variant="text" to="/manage/games/add"></v-btn>
</template>
</v-list-item>
<v-list-item prepend-icon="mdi-cog-play" :title="l.preview" to="/manage/preview/list"></v-list-item>
</v-list>
<v-divider></v-divider>
</v-navigation-drawer>