diff --git a/frontend/src/lib/components/Headline.svelte b/frontend/src/lib/components/Headline.svelte index e6598818..fe307584 100644 --- a/frontend/src/lib/components/Headline.svelte +++ b/frontend/src/lib/components/Headline.svelte @@ -1,5 +1,27 @@ -

- -

+ + +
+

+ +

+ {#if docSlug} + + ? + + {/if} +
diff --git a/frontend/src/lib/consts/docs.js b/frontend/src/lib/consts/docs.js new file mode 100644 index 00000000..a2a19b9a --- /dev/null +++ b/frontend/src/lib/consts/docs.js @@ -0,0 +1,8 @@ +// Public documentation guide location. +export const DOCS_BASE = 'https://phishing.club/guide'; + +// Build a link to a guide page. The anchor is optional. +export function guideURL(slug, anchor) { + const base = `${DOCS_BASE}/${slug}/`; + return anchor ? `${base}#${anchor}` : base; +} diff --git a/frontend/src/routes/api-sender/+page.svelte b/frontend/src/routes/api-sender/+page.svelte index 2a9f9e32..6a0a22cc 100644 --- a/frontend/src/routes/api-sender/+page.svelte +++ b/frontend/src/routes/api-sender/+page.svelte @@ -364,7 +364,7 @@
- API Senders + API Senders New API sender
- Asset by domains + Asset by domains {#if !contextCompanyID} { diff --git a/frontend/src/routes/asset/[domain]/+page.svelte b/frontend/src/routes/asset/[domain]/+page.svelte index 47b716da..9fc8e167 100644 --- a/frontend/src/routes/asset/[domain]/+page.svelte +++ b/frontend/src/routes/asset/[domain]/+page.svelte @@ -446,7 +446,7 @@
- + {#if isCompanyFolder} Company assets {:else} diff --git a/frontend/src/routes/attachment/+page.svelte b/frontend/src/routes/attachment/+page.svelte index 561b5e8b..e3512c58 100644 --- a/frontend/src/routes/attachment/+page.svelte +++ b/frontend/src/routes/attachment/+page.svelte @@ -294,7 +294,7 @@
- Attachments + Attachments New attachment
- Campaigns templates + Campaigns templates New template
- Campaigns + Campaigns
- + Campaign: {campaign.name ?? ''} {#if campaign.isTest} diff --git a/frontend/src/routes/company/+page.svelte b/frontend/src/routes/company/+page.svelte index 37a4b83b..b4812fad 100644 --- a/frontend/src/routes/company/+page.svelte +++ b/frontend/src/routes/company/+page.svelte @@ -134,7 +134,7 @@
- Companies + Companies New company Export shared
- Dashboard + Dashboard diff --git a/frontend/src/routes/dashboard/campaigns/+page.svelte b/frontend/src/routes/dashboard/campaigns/+page.svelte index 898e94e3..4572df18 100644 --- a/frontend/src/routes/dashboard/campaigns/+page.svelte +++ b/frontend/src/routes/dashboard/campaigns/+page.svelte @@ -201,7 +201,7 @@
- Dashboard + Dashboard diff --git a/frontend/src/routes/dashboard/events/+page.svelte b/frontend/src/routes/dashboard/events/+page.svelte index b9992256..1dd308fa 100644 --- a/frontend/src/routes/dashboard/events/+page.svelte +++ b/frontend/src/routes/dashboard/events/+page.svelte @@ -126,7 +126,7 @@
- Dashboard + Dashboard diff --git a/frontend/src/routes/domain/+page.svelte b/frontend/src/routes/domain/+page.svelte index 16cdab60..dacb6fd2 100644 --- a/frontend/src/routes/domain/+page.svelte +++ b/frontend/src/routes/domain/+page.svelte @@ -642,7 +642,7 @@
- Domains + Domains
New domain
- Emails + Emails await openCreateModal()}>New Email
- Attachments: {emailName} + Attachments: {emailName} Add attachement
- Filters + Filters New filter
- OAuth + OAuth
New OAuth Import Token diff --git a/frontend/src/routes/page/+page.svelte b/frontend/src/routes/page/+page.svelte index 777b8dfb..6f83ed45 100644 --- a/frontend/src/routes/page/+page.svelte +++ b/frontend/src/routes/page/+page.svelte @@ -338,7 +338,7 @@
- Pages + Pages { diff --git a/frontend/src/routes/profile/+page.svelte b/frontend/src/routes/profile/+page.svelte index 1d02ea8d..66607a05 100644 --- a/frontend/src/routes/profile/+page.svelte +++ b/frontend/src/routes/profile/+page.svelte @@ -352,7 +352,7 @@
- Profile + Profile {#if isInitiallyLoaded}
diff --git a/frontend/src/routes/proxy/+page.svelte b/frontend/src/routes/proxy/+page.svelte index 9d95e436..23ea428f 100644 --- a/frontend/src/routes/proxy/+page.svelte +++ b/frontend/src/routes/proxy/+page.svelte @@ -668,7 +668,7 @@ portal.example.com:
- Proxies + Proxies
- Recipients + Recipients
New recipient diff --git a/frontend/src/routes/recipient/[id]/+page.svelte b/frontend/src/routes/recipient/[id]/+page.svelte index b87e2a71..16355ead 100644 --- a/frontend/src/routes/recipient/[id]/+page.svelte +++ b/frontend/src/routes/recipient/[id]/+page.svelte @@ -142,7 +142,7 @@
- + {recipient.email}
- Groups + Groups
New group New dynamic group diff --git a/frontend/src/routes/recipient/group/[id]/+page.svelte b/frontend/src/routes/recipient/group/[id]/+page.svelte index 3fe45b72..b0e5937c 100644 --- a/frontend/src/routes/recipient/group/[id]/+page.svelte +++ b/frontend/src/routes/recipient/group/[id]/+page.svelte @@ -401,7 +401,7 @@
- Group Recipients + Group Recipients {#if groupValues.isDynamic} diff --git a/frontend/src/routes/recipient/orphaned/+page.svelte b/frontend/src/routes/recipient/orphaned/+page.svelte index 6e6524da..3bff97e4 100644 --- a/frontend/src/routes/recipient/orphaned/+page.svelte +++ b/frontend/src/routes/recipient/orphaned/+page.svelte @@ -118,7 +118,7 @@
- Orphaned Recipients + Orphaned Recipients
goto('/recipient/')}>View recipients diff --git a/frontend/src/routes/remote-browser/+page.svelte b/frontend/src/routes/remote-browser/+page.svelte index e6031edc..05a7809a 100644 --- a/frontend/src/routes/remote-browser/+page.svelte +++ b/frontend/src/routes/remote-browser/+page.svelte @@ -285,7 +285,7 @@ s.keepAlive();
- Remote Browsers + Remote Browsers Experimental
- Scripts + Scripts {#if featureDisabled}
diff --git a/frontend/src/routes/sessions/+page.svelte b/frontend/src/routes/sessions/+page.svelte index e13503b3..a6413967 100644 --- a/frontend/src/routes/sessions/+page.svelte +++ b/frontend/src/routes/sessions/+page.svelte @@ -125,7 +125,7 @@
- Sessions + Sessions Delete all sessions
- Settings + Settings
- Webhooks + Webhooks New webhook