mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
[client] Hide channels from guest view
This commit is contained in:
parent
2166ea019d
commit
be02bc78ad
4 changed files with 3 additions and 10 deletions
|
@ -85,7 +85,6 @@
|
||||||
<nav class="nav">
|
<nav class="nav">
|
||||||
<MkA to="/announcements">{{ i18n.ts.announcements }}</MkA>
|
<MkA to="/announcements">{{ i18n.ts.announcements }}</MkA>
|
||||||
<MkA to="/explore">{{ i18n.ts.explore }}</MkA>
|
<MkA to="/explore">{{ i18n.ts.explore }}</MkA>
|
||||||
<MkA to="/channels">{{ i18n.ts.channel }}</MkA>
|
|
||||||
<MkA to="/featured">{{ i18n.ts.featured }}</MkA>
|
<MkA to="/featured">{{ i18n.ts.featured }}</MkA>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -415,10 +415,12 @@ export const routes = [
|
||||||
{
|
{
|
||||||
path: "/channels/:channelId",
|
path: "/channels/:channelId",
|
||||||
component: page(() => import("./pages/channel.vue")),
|
component: page(() => import("./pages/channel.vue")),
|
||||||
|
loginRequired: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/channels",
|
path: "/channels",
|
||||||
component: page(() => import("./pages/channels.vue")),
|
component: page(() => import("./pages/channels.vue")),
|
||||||
|
loginRequired: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/registry/keys/system/:path(*)?",
|
path: "/registry/keys/system/:path(*)?",
|
||||||
|
|
|
@ -45,10 +45,6 @@
|
||||||
><i class="ph-compass ph-bold ph-lg icon"></i
|
><i class="ph-compass ph-bold ph-lg icon"></i
|
||||||
>{{ i18n.ts.explore }}</MkA
|
>{{ i18n.ts.explore }}</MkA
|
||||||
>
|
>
|
||||||
<MkA to="/channels" class="link" active-class="active"
|
|
||||||
><i class="ph-television ph-bold ph-lg icon"></i
|
|
||||||
>{{ i18n.ts.channel }}</MkA
|
|
||||||
>
|
|
||||||
<MkA to="/pages" class="link" active-class="active"
|
<MkA to="/pages" class="link" active-class="active"
|
||||||
><i class="ph-file-text ph-bold ph-lg icon"></i
|
><i class="ph-file-text ph-bold ph-lg icon"></i
|
||||||
>{{ i18n.ts.pages }}</MkA
|
>{{ i18n.ts.pages }}</MkA
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
><i class="ph-compass ph-bold ph-lg icon"></i
|
><i class="ph-compass ph-bold ph-lg icon"></i
|
||||||
>{{ i18n.ts.explore }}</MkA
|
>{{ i18n.ts.explore }}</MkA
|
||||||
>
|
>
|
||||||
<MkA to="/channels" class="link" active-class="active"
|
|
||||||
><i class="ph-television ph-bold ph-lg icon"></i
|
|
||||||
>{{ i18n.ts.channel }}</MkA
|
|
||||||
>
|
|
||||||
<MkA to="/pages" class="link" active-class="active"
|
<MkA to="/pages" class="link" active-class="active"
|
||||||
><i class="ph-file-text ph-bold ph-lg icon"></i
|
><i class="ph-file-text ph-bold ph-lg icon"></i
|
||||||
>{{ i18n.ts.pages }}</MkA
|
>{{ i18n.ts.pages }}</MkA
|
||||||
|
@ -198,7 +194,7 @@ export default defineComponent({
|
||||||
&.page {
|
&.page {
|
||||||
border-bottom-color: var(--accent);
|
border-bottom-color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
&._button {
|
&._button {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-decoration-color: transparent;
|
text-decoration-color: transparent;
|
||||||
|
|
Loading…
Reference in a new issue