-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(seaside): #185 fix UI after daisyUI upgrade
- Loading branch information
Showing
5 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
<template> | ||
<nav class="tabs tabs-boxed"> | ||
<a class="tab" :class="{'tab-active': 'UserAdminTab' === activeTab}" | ||
@click.prevent="onChangeTab('UserAdminTab')">Users</a> | ||
<a class="tab" :class="{'tab-active': 'ConfigAdminTab' === activeTab}" | ||
@click.prevent="onChangeTab('ConfigAdminTab')">Configuration</a> | ||
<a class="tab" :class="{'tab-active': 'StatisticsAdminTab' === activeTab}" | ||
@click.prevent="onChangeTab('StatisticsAdminTab')">Statistiques</a> | ||
</nav> | ||
<component :is="activeTab"></component> | ||
<nav role="tablist" class="tabs tabs-boxed place-content-start"> | ||
<a role="tab" class="tab" :class="{'tab-active': 'UserAdminTab' === activeTab}" | ||
@click.prevent="onChangeTab('UserAdminTab')">Users</a> | ||
<a role="tab" class="tab" :class="{'tab-active': 'ConfigAdminTab' === activeTab}" | ||
@click.prevent="onChangeTab('ConfigAdminTab')">Configuration</a> | ||
<a role="tab" class="tab" :class="{'tab-active': 'StatisticsAdminTab' === activeTab}" | ||
@click.prevent="onChangeTab('StatisticsAdminTab')">Statistiques</a> | ||
</nav> | ||
<component :is="activeTab"></component> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import {Component, Vue} from 'vue-facing-decorator'; | ||
import { Component, Vue } from 'vue-facing-decorator'; | ||
import UserAdminTab from '@/administration/component/UserAdminTab.vue'; | ||
import ConfigAdminTab from '@/administration/component/ConfigAdminTab.vue'; | ||
import {defineAsyncComponent} from "vue"; | ||
import { defineAsyncComponent } from 'vue'; | ||
const StatisticsAdminTab = defineAsyncComponent(() => import('@/administration/component/StatisticsAdminTab.vue')); | ||
type Tab = 'UserAdminTab' | 'ConfigAdminTab' | 'StatisticsAdminTab'; | ||
@Component({ | ||
name: 'AdministrationPage', | ||
components: { | ||
UserAdminTab, | ||
ConfigAdminTab, | ||
StatisticsAdminTab, | ||
}, | ||
name: 'AdministrationPage', | ||
components: { | ||
UserAdminTab, | ||
ConfigAdminTab, | ||
StatisticsAdminTab, | ||
}, | ||
}) | ||
export default class AdministrationPage extends Vue { | ||
private activeTab: Tab = 'UserAdminTab'; | ||
private activeTab: Tab = 'UserAdminTab'; | ||
private onChangeTab(toBeActivate: Tab): void { | ||
this.activeTab = toBeActivate; | ||
} | ||
private onChangeTab(toBeActivate: Tab): void { | ||
this.activeTab = toBeActivate; | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters