mirror of
https://github.com/Luzifer/ots.git
synced 2025-05-15 20:42:24 -04:00
Port frontend to Bootstrap 5.3, split components
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b8fd877654
commit
8c0807d486
14 changed files with 813 additions and 830 deletions
82
src/components/navbar.vue
Normal file
82
src/components/navbar.vue
Normal file
|
@ -0,0 +1,82 @@
|
|||
<template>
|
||||
<nav class="navbar navbar-expand-lg bg-primary-subtle">
|
||||
<div class="container-fluid">
|
||||
<a
|
||||
class="navbar-brand"
|
||||
href="#"
|
||||
@click.prevent="$root.navigate('/')"
|
||||
>
|
||||
<i
|
||||
v-if="!$root.customize.appIcon"
|
||||
class="fas fa-user-secret mr-1"
|
||||
/>
|
||||
<img
|
||||
v-else
|
||||
class="mr-1"
|
||||
:src="$root.customize.appIcon"
|
||||
>
|
||||
<span v-if="!$root.customize.disableAppTitle">{{ $root.customize.appTitle }}</span>
|
||||
</a>
|
||||
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarSupportedContent"
|
||||
aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
>
|
||||
<span class="navbar-toggler-icon" />
|
||||
</button>
|
||||
|
||||
<div
|
||||
id="navbarSupportedContent"
|
||||
class="collapse navbar-collapse"
|
||||
>
|
||||
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 me-2">
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
href="#"
|
||||
@click.prevent="$root.navigate('/explanation')"
|
||||
>
|
||||
<i class="fas fa-circle-info" /> {{ $t('btn-show-explanation') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
href="#"
|
||||
@click.prevent="$root.navigate('/')"
|
||||
>
|
||||
<i class="fas fa-plus" /> {{ $t('btn-new-secret') }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form
|
||||
v-if="!$root.customize.disableThemeSwitcher"
|
||||
class="d-flex align-items-center"
|
||||
>
|
||||
<i class="fas fa-sun me-2" />
|
||||
<div class="form-check form-switch">
|
||||
<input
|
||||
id="themeswitch"
|
||||
v-model="$root.darkTheme"
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
role="switch"
|
||||
>
|
||||
</div>
|
||||
<i class="fas fa-moon" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppNavbar',
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue