diff --git a/RELEASE.md b/RELEASE.md index 9cb1002..48dcc16 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,5 +1,5 @@ -## v0.3.14 - in progress - updated 2023-12-30 +## v0.3.14 - in progress - updated 2024-01-07 ### platform * [done] improve API integration with galaxies [v0.3.1] * [done] document multiverse API integration [starpeace-server-multiverse-api] @@ -34,7 +34,7 @@ * [done] fixed galaxy and research menu bugs [v0.3.13] * [done] building inspect API [v0.3.13] * [done] player and building event handling [v0.3.13] -* [in progress] admin API [v0.3.14] +* [done] admin API [v0.3.14] ### assets * [done] finish initial language translation for assets [v0.3.1] diff --git a/assets/stylesheets/starpeace-bulma.sass b/assets/stylesheets/starpeace-bulma.sass index 6438c6b..8f7e0d3 100644 --- a/assets/stylesheets/starpeace-bulma.sass +++ b/assets/stylesheets/starpeace-bulma.sass @@ -129,8 +129,10 @@ html background: linear-gradient(to bottom, $sp-primary-bg, #000) color: $sp-primary + &.sp-dark-background + background: $sp-dark-bg + &.sp-menu-background - //background: linear-gradient(to bottom, darken($sp-primary-bg, 2.5%), darken($sp-primary-bg, 25%)) !important background: darken($sp-dark-bg, 12.5%) a @@ -221,3 +223,63 @@ html &:active, &.is-active background-color: lighten($sp-dark-bg, 15%) + +.menu + &.is-starpeace + p + color: $sp-light + + &:not(:first-child) + margin-top: 1.5rem + + a + &.is-active + background-color: $sp-light-bg + + &:hover + background-color: $sp-light-bg + color: #fff !important + + +.tag + &.is-starpeace + &.is-primary + background-color: $sp-primary + +.table + &.is-starpeace + background-color: transparent + border-color: $sp-dark-bg + + tr + &:not(:last-child) + th, + td + border-bottom: 1px solid $sp-dark-bg + + tr + &.nowrap + th + white-space: nowrap + + th, + td + border-color: $sp-dark-bg + color: $sp-primary + vertical-align: middle + + &.sp-striped + tr:nth-child(even) + td + background-color: darken($sp-dark-bg, 10%) + + &.sp-solid-header + th + background-color: $sp-dark-bg + color: $sp-light + z-index: 500 + + &.sp-sticky-header + th + position: sticky + top: 0 diff --git a/assets/stylesheets/starpeace-inspect.sass b/assets/stylesheets/starpeace-inspect.sass index 1a5647a..678da00 100644 --- a/assets/stylesheets/starpeace-inspect.sass +++ b/assets/stylesheets/starpeace-inspect.sass @@ -56,6 +56,7 @@ th background-color: $sp-dark-bg color: $sp-light + z-index: 500 &.sp-sticky-header th @@ -72,6 +73,9 @@ position: relative overflow: hidden + .loading-container + grid-row: start-tabs / end-details + .inspect-tabs grid-column: 1 / 2 grid-row: start-tabs / end-tabs diff --git a/components/admin/buildings/buildings.vue b/components/admin/buildings/buildings.vue new file mode 100644 index 0000000..5c6b9a4 --- /dev/null +++ b/components/admin/buildings/buildings.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/components/admin/dashboard/dashboard.vue b/components/admin/dashboard/dashboard.vue new file mode 100644 index 0000000..f32438a --- /dev/null +++ b/components/admin/dashboard/dashboard.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/components/admin/menu.vue b/components/admin/menu.vue new file mode 100644 index 0000000..613cc65 --- /dev/null +++ b/components/admin/menu.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/components/admin/simulation/simulation.vue b/components/admin/simulation/simulation.vue new file mode 100644 index 0000000..baaac6c --- /dev/null +++ b/components/admin/simulation/simulation.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/components/admin/tycoons/tycoons.vue b/components/admin/tycoons/tycoons.vue new file mode 100644 index 0000000..06be4e6 --- /dev/null +++ b/components/admin/tycoons/tycoons.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/components/toolbar/inspect/toolbar-inspect-portal.vue b/components/toolbar/inspect/toolbar-inspect-portal.vue index 6f6fa46..e39d017 100644 --- a/components/toolbar/inspect/toolbar-inspect-portal.vue +++ b/components/toolbar/inspect/toolbar-inspect-portal.vue @@ -2,30 +2,44 @@ .inspect-details .inspect-tabs.tabs.is-small.is-marginless ul - template(v-for='tab in tabs') - li(:class="{ 'is-active': tab.id == tabId }" @click.stop.prevent='tabId = tab.id') - a - span {{ $translate(tab.label) }} + li(v-for='tab in tabs' :class="{ 'is-active': tabId == tab.id }" @click.stop.prevent='tabId = tab.id') + a {{ $translate(tab.label) }} - .inspect-body.is-marginless + .inspect-body.columns.is-marginless template(v-if="tabId == 'general'") .column.is-paddingless.is-relative.is-clipped.p-4 span.is-italic {{ message }} + template(v-else-if="tabId == 'jobs'") + .column.is-paddingless.is-relative.is-clipped + toolbar-inspect-shared-tab-jobs( + :client-state='clientState' + :jobs='jobs' + :building='building' + :definition='definition' + :simulation='simulation' + )