mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:21:10 +02:00
refactor(help): drop standalone /help route, use workbench app
The help workbench module (lib/modules/help/ListView.svelte) already renders the same HelpPage component with identical props. The standalone route was redundant. - Delete routes/(app)/help/+page.svelte - Update PillNavigation helpHref to /?app=help Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1266b583e4
commit
5d46aa19a0
2 changed files with 1 additions and 35 deletions
|
|
@ -979,7 +979,7 @@
|
|||
spiralHref="/?app=spiral"
|
||||
creditsHref="/credits"
|
||||
themesHref="/?app=themes"
|
||||
helpHref="/help"
|
||||
helpHref="/?app=help"
|
||||
allAppsHref="/apps"
|
||||
{spotlightActions}
|
||||
{contentSearcher}
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
<script lang="ts">
|
||||
import { goto } from '$app/navigation';
|
||||
import { locale } from 'svelte-i18n';
|
||||
import { HelpPage, getHelpTranslations } from '@mana/help';
|
||||
import { PageHeader } from '@mana/shared-ui';
|
||||
import { getManaHelpContent } from '$lib/content/help/index.js';
|
||||
|
||||
const content = $derived(getManaHelpContent($locale ?? 'de'));
|
||||
const translations = $derived(
|
||||
getHelpTranslations($locale ?? 'de', {
|
||||
subtitle:
|
||||
$locale === 'de'
|
||||
? 'Finde Antworten und lerne Mana kennen'
|
||||
: 'Find answers and learn how to use Mana',
|
||||
})
|
||||
);
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{translations.title} | Mana</title>
|
||||
</svelte:head>
|
||||
|
||||
<PageHeader title={translations.title} backHref="/" sticky />
|
||||
|
||||
<HelpPage
|
||||
{content}
|
||||
appName="Mana"
|
||||
appId="mana"
|
||||
{translations}
|
||||
showBackButton={false}
|
||||
showGettingStarted={false}
|
||||
showChangelog={false}
|
||||
defaultSection="faq"
|
||||
/>
|
||||
Loading…
Add table
Add a link
Reference in a new issue