Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions assets/src/dashboard/parts/connected/help/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ const DOCS_SECTION = [
items: [
{
label: optimoleDashboardApp.strings.help.account_item_one,
value: 'https://docs.optimole.com/article/1134-how-optimole-counts-the-number-of-visitors'
value: optimoleDashboardApp.docs_links.visitors_count
},
{
label: optimoleDashboardApp.strings.help.account_item_two,
value: 'https://docs.optimole.com/article/1008-what-happens-if-i-exceed-plan-limits'
value: optimoleDashboardApp.docs_links.plan_limits
},
{
label: optimoleDashboardApp.strings.help.account_item_three,
value: 'https://docs.optimole.com/article/1133-visitors-based-plan'
value: optimoleDashboardApp.docs_links.visitors_plan
}
]
},
Expand All @@ -62,15 +62,15 @@ const DOCS_SECTION = [
items: [
{
label: optimoleDashboardApp.strings.help.image_processing_item_one,
value: 'https://docs.optimole.com/article/1173-how-to-get-started-with-optimole-in-just-3-steps'
value: optimoleDashboardApp.docs_links.getting_started
},
{
label: optimoleDashboardApp.strings.help.image_processing_item_two,
value: 'https://docs.optimole.com/article/1068-how-optimole-can-serve-webp-images'
value: optimoleDashboardApp.docs_links.webp
},
{
label: optimoleDashboardApp.strings.help.image_processing_item_three,
value: 'https://docs.optimole.com/article/1475-adding-watermarks-to-your-images'
value: optimoleDashboardApp.docs_links.watermarks
}
]
},
Expand All @@ -79,15 +79,15 @@ const DOCS_SECTION = [
items: [
{
label: optimoleDashboardApp.strings.help.api_item_one,
value: 'https://docs.optimole.com/article/1323-cloud-library-browsing'
value: optimoleDashboardApp.docs_links.cloud_library
},
{
label: optimoleDashboardApp.strings.help.api_item_two,
value: 'https://docs.optimole.com/article/1191-exclude-from-optimizing-or-lazy-loading'
value: optimoleDashboardApp.docs_links.exclusions
},
{
label: optimoleDashboardApp.strings.help.api_item_three,
value: 'https://docs.optimole.com/article/1307-custom-integration'
value: optimoleDashboardApp.docs_links.custom_integration
}
]
}
Expand Down Expand Up @@ -134,7 +134,7 @@ const Help = () => {
<div className="flex items-center justify-between">
<p className="font-bold text-base">{ optimoleDashboardApp.strings.help.section_two_title }</p>

<ExternalLink href="https://docs.optimole.com/">{ optimoleDashboardApp.strings.help.section_two_sub }</ExternalLink>
<ExternalLink href={ optimoleDashboardApp.docs_links.home }>{ optimoleDashboardApp.strings.help.section_two_sub }</ExternalLink>
</div>

<div className="flex gap-5 flex-col md:flex-row">
Expand Down
2 changes: 1 addition & 1 deletion assets/src/dashboard/parts/connected/settings/Watermark.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Watermark = () => {
className="border border-gray-300 text-gray-700 px-6 py-3 rounded-lg font-medium hover:bg-gray-50"
target="_blank"
rel="noopener noreferrer"
href="https://docs.optimole.com/article/1475-adding-watermarks-to-your-images"
href={ optimoleDashboardApp.docs_links.watermark_settings }
>
{options_strings.learn_more}
</Button>
Expand Down
15 changes: 15 additions & 0 deletions assets/src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface IOptimoleDashboardApp {
optimoleHome: string
optimoleDashHome: string
optimoleDashBilling: string
docs_links: DocsLinks
days_since_install: string
is_offload_media_available: string
auto_connect: string
Expand All @@ -38,6 +39,20 @@ export interface IOptimoleDashboardApp {
report_issue_url: string
}

export interface DocsLinks {
home: string
visitors_count: string
plan_limits: string
visitors_plan: string
getting_started: string
webp: string
watermarks: string
cloud_library: string
exclusions: string
custom_integration: string
watermark_settings: string
}

export interface Strings {
optimole: string
version: string
Expand Down
Loading
Loading