fix doclinks
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let service: any;
|
||||
import { status } from '$lib/store';
|
||||
export let template: any;
|
||||
import { page } from '$app/stores';
|
||||
import ServiceLinks from './_ServiceLinks.svelte';
|
||||
</script>
|
||||
@@ -10,7 +10,7 @@
|
||||
<span>General</span>
|
||||
</li>
|
||||
<li class="rounded">
|
||||
<ServiceLinks {service} linkToDocs={true} />
|
||||
<ServiceLinks {template} {service} linkToDocs={true} />
|
||||
</li>
|
||||
<li class="rounded" class:bg-coollabs={$page.url.pathname === `/services/${$page.params.id}`}>
|
||||
<a href={`/services/${$page.params.id}`} class="no-underline w-full"
|
||||
|
||||
@@ -1,36 +1,14 @@
|
||||
<script lang="ts">
|
||||
import DocLink from '$lib/components/DocLink.svelte';
|
||||
export let service: any;
|
||||
export let template: any;
|
||||
export let linkToDocs: boolean = false;
|
||||
import * as Icons from '$lib/components/svg/services';
|
||||
const name: any = service.type && service.type[0].toUpperCase() + service.type.substring(1);
|
||||
|
||||
const links: any = {
|
||||
plausible: 'https://plausible.io/doc/',
|
||||
nocodb: 'https://docs.nocodb.com',
|
||||
minio: 'https://min.io/docs/minio',
|
||||
vscodeserver: 'https://coder.com/docs/coder-oss/latest',
|
||||
wordpress: 'https://wordpress.org/',
|
||||
vaultwarden: 'https://github.com/dani-garcia/vaultwarden',
|
||||
languagetool: 'https://languagetool.org/dev',
|
||||
n8n: 'https://docs.n8n.io',
|
||||
uptimekuma: 'https://github.com/louislam/uptime-kuma',
|
||||
ghost: 'https://ghost.org/resources/',
|
||||
umami: 'https://umami.is/docs/getting-started',
|
||||
hasura: 'https://hasura.io/docs/latest/index/',
|
||||
fider: 'https://fider.io/docs',
|
||||
appwrite: 'https://appwrite.io/docs',
|
||||
moodle: 'https://docs.moodle.org/400/en/Main_page',
|
||||
glitchtip: 'https://glitchtip.com/documentation',
|
||||
searxng: 'https://searxng.org',
|
||||
weblate: 'https://docs.weblate.org/en/latest/',
|
||||
grafana: 'https://github.com/grafana/grafana',
|
||||
trilium: 'https://github.com/zadam/trilium'
|
||||
};
|
||||
</script>
|
||||
|
||||
{#if linkToDocs}
|
||||
<DocLink url={links[service.type]} text={`Documentation`} isExternal={true} />
|
||||
<DocLink url={template[service.id].documentation} text={`Documentation`} isExternal={true} />
|
||||
{:else}
|
||||
<svelte:component this={Icons[name]} />
|
||||
{/if}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
export let service: any;
|
||||
|
||||
export let template: any;
|
||||
import { page } from '$app/stores';
|
||||
import { del, get, post } from '$lib/api';
|
||||
import { t } from '$lib/translations';
|
||||
@@ -415,7 +415,7 @@
|
||||
>
|
||||
{#if !$page.url.pathname.startsWith(`/services/${id}/configuration/`)}
|
||||
<nav class="header flex flex-col lg:pt-0 ">
|
||||
<Menu {service} />
|
||||
<Menu {service} {template} />
|
||||
</nav>
|
||||
{/if}
|
||||
<div class="pt-0 col-span-0 lg:col-span-3 pb-24 px-4 lg:px-0">
|
||||
|
||||
Reference in New Issue
Block a user