Compare commits

..

2 Commits

Author SHA1 Message Date
f3cc07c009
Fixed imports and naming 2023-02-02 17:05:34 +01:00
068076dd47
Added Statsclients to sidebar
ref #143
2023-02-02 17:03:18 +01:00
4 changed files with 29 additions and 9 deletions

View File

@ -256,6 +256,26 @@
<span>{$_('scanstations')}</span>
</a>
{/if}
{#if store.state.jwtinfo.userdetails.permissions.includes('STATSCLIENT:GET')}
<a
class:bg-gray-100={$router.path === '/statsclients/'}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
href="/statsclients/">
<svg
class="flex-shrink-0 w-5 h-5 mr-2 text-gray-400 transition group-hover:text-gray-600"
fill="currentColor"
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"><path
fill="none"
d="M0 0h24v24H0z" />
<path
fill="currentColor"
d="M4 5v11h16V5H4zM2 4a1 1 0 011-1h18a1 1 0 011 1v14H2V4zM1 19h22v2H1v-2z" /></svg>
<span>{$_('statsclients')}</span>
</a>
{/if}
<a
class:bg-gray-100={$router.path === '/settings/'}
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"

View File

@ -1,13 +1,13 @@
<script>
import { _ } from "svelte-i18n";
import store from "../../store";
import AddStatsClientsModal from "./AddStatsClientsModal.svelte";
import CopyStatsClientsTokenModal from "./CopyStatsClientsTokenModal.svelte";
import AddStatsClientModal from "./AddStatsClientModal.svelte";
// import CopyStatsClientsTokenModal from "./CopyStatsClientsTokenModal.svelte";
import StatsClientssOverview from "./StatsClientsOverview.svelte";
export let modal_open = false;
export let copy_modal_open = false;
export let new_station = {};
let current_stations = [];
export let new_client = {};
let current_clients = [];
</script>
<section class="container p-5">
@ -24,10 +24,10 @@ import CopyStatsClientsTokenModal from "./CopyStatsClientsTokenModal.svelte";
</button>
{/if}
</span>
<StatsClientssOverview bind:current_stations bind:modal_open bind:new_station bind:copy_modal_open />
<StatsClientssOverview bind:current_clients bind:modal_open bind:new_client bind:copy_modal_open />
</section>
{#if store.state.jwtinfo.userdetails.permissions.includes('STATSCLIENT:CREATE')}
<AddStatsClientsModal bind:modal_open bind:current_stations bind:new_station bind:copy_modal_open/>
<CopyStatsClientsTokenModal bind:copy_modal_open bind:new_station />
<AddStatsClientModal bind:modal_open bind:current_clients bind:new_client bind:copy_modal_open/>
<!-- <CopyStatsClientsTokenModal bind:copy_modal_open bind:new_client /> -->
{/if}

View File

@ -458,7 +458,7 @@
"you-have-to-save-your-changes-to-generate-a-link": "Du musst deine Änderungen speichern, um einen Link zu generieren.",
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen (oder abbrechen).",
"zip-postal-code": "Postleitzahl",
"statsclients": "Beamershow (aka Statsclient)",
"statsclients": "Statsclient (aka Beamershow)",
"create-a-new-statsclient": "Neuen Statsclient erstellen",
"statsclients-are-being-loaded": "Statsclients werden geladen",
"prefix": "Prefix",

View File

@ -459,7 +459,7 @@
"you-have-to-save-your-changes-to-generate-a-link": "You have to save your changes to generate a link.",
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card (or cancel).",
"zip-postal-code": "ZIP/ postal code",
"statsclients": "Beamershow (aka statsclient)",
"statsclients": "Statsclients (aka Beamershow)",
"create-a-new-statsclient": "Create a new statsclient",
"statsclients-are-being-loaded": "Loading statsclients",
"prefix": "Prefix",