UI: fix docs links after docs site restructuring (#33160)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
9beca9b22f
commit
1defa5f7fc
20 changed files with 22 additions and 23 deletions
|
|
@ -61,7 +61,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
resetUrl() {
|
resetUrl() {
|
||||||
return `${docsPrefix()}/docs/faq#password-reset`;
|
return `${docsPrefix()}/faq#password-reset`;
|
||||||
},
|
},
|
||||||
modalSize() {
|
modalSize() {
|
||||||
return this.demoMode ? "md" : "sm";
|
return this.demoMode ? "md" : "sm";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="circuits"
|
name="circuits"
|
||||||
:title="$t('config.circuits.title')"
|
:title="$t('config.circuits.title')"
|
||||||
:description="$t('config.circuits.description')"
|
:description="$t('config.circuits.description')"
|
||||||
docs="/docs/features/loadmanagement"
|
docs="/features/loadmanagement"
|
||||||
:defaultYaml="defaultYaml"
|
:defaultYaml="defaultYaml"
|
||||||
removeKey="circuits"
|
removeKey="circuits"
|
||||||
endpoint="/config/circuits"
|
endpoint="/config/circuits"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
:label="$t('config.control.labelInterval')"
|
:label="$t('config.control.labelInterval')"
|
||||||
:help="$t('config.control.descriptionInterval')"
|
:help="$t('config.control.descriptionInterval')"
|
||||||
example="30 s"
|
example="30 s"
|
||||||
docsLink="/docs/reference/configuration/interval"
|
docsLink="/reference/configuration/interval"
|
||||||
>
|
>
|
||||||
<div class="input-group input-width">
|
<div class="input-group input-width">
|
||||||
<input
|
<input
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
:label="$t('config.control.labelResidualPower')"
|
:label="$t('config.control.labelResidualPower')"
|
||||||
:help="$t('config.control.descriptionResidualPower')"
|
:help="$t('config.control.descriptionResidualPower')"
|
||||||
example="100 W"
|
example="100 W"
|
||||||
docsLink="/docs/reference/configuration/site#residualpower"
|
docsLink="/reference/configuration/site#residualpower"
|
||||||
>
|
>
|
||||||
<div class="input-group input-width">
|
<div class="input-group input-width">
|
||||||
<input
|
<input
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
docsLink() {
|
docsLink() {
|
||||||
return `${docsPrefix()}/docs/devices/plugins#${this.type}`;
|
return `${docsPrefix()}/user-defined-devices#${this.type}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="eebus"
|
name="eebus"
|
||||||
:title="$t('config.eebus.title')"
|
:title="$t('config.eebus.title')"
|
||||||
:description="$t('config.eebus.description')"
|
:description="$t('config.eebus.description')"
|
||||||
docs="/docs/reference/configuration/eebus"
|
docs="/reference/configuration/eebus"
|
||||||
endpoint="/config/eebus"
|
endpoint="/config/eebus"
|
||||||
state-key="eebus.config"
|
state-key="eebus.config"
|
||||||
:no-buttons="fromYaml"
|
:no-buttons="fromYaml"
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ export default defineComponent({
|
||||||
return (this as any).fmtTimeAgo(ms - Date.now());
|
return (this as any).fmtTimeAgo(ms - Date.now());
|
||||||
},
|
},
|
||||||
docsLink(): string {
|
docsLink(): string {
|
||||||
return `${docsPrefix()}/docs/external-limit`;
|
return `${docsPrefix()}/external-limit`;
|
||||||
},
|
},
|
||||||
experimental(): boolean {
|
experimental(): boolean {
|
||||||
return store.state?.experimental === true;
|
return store.state?.experimental === true;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="influx"
|
name="influx"
|
||||||
:title="$t('config.influx.title')"
|
:title="$t('config.influx.title')"
|
||||||
:description="$t('config.influx.description')"
|
:description="$t('config.influx.description')"
|
||||||
docs="/docs/reference/configuration/influx"
|
docs="/reference/configuration/influx"
|
||||||
endpoint="/config/influx"
|
endpoint="/config/influx"
|
||||||
state-key="influx"
|
state-key="influx"
|
||||||
@changed="$emit('changed')"
|
@changed="$emit('changed')"
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ export default defineComponent({
|
||||||
return `claude mcp add --transport http evcc ${this.mcpUrl}`;
|
return `claude mcp add --transport http evcc ${this.mcpUrl}`;
|
||||||
},
|
},
|
||||||
docsLink(): string {
|
docsLink(): string {
|
||||||
return `${docsPrefix()}/docs/integrations/mcp`;
|
return `${docsPrefix()}/integrations/mcp`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
/>
|
/>
|
||||||
<div class="text-end small text-gray mt-1">
|
<div class="text-end small text-gray mt-1">
|
||||||
<a
|
<a
|
||||||
:href="`${docsPrefix()}/docs/notifications#placeholders`"
|
:href="`${docsPrefix()}/notifications#placeholders`"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="text-gray"
|
class="text-gray"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
name="messaginglegacy"
|
name="messaginglegacy"
|
||||||
:title="`${$t('config.messaging.title')} (${$t('config.general.legacy')})`"
|
:title="`${$t('config.messaging.title')} (${$t('config.general.legacy')})`"
|
||||||
:description="$t('config.messaging.description')"
|
:description="$t('config.messaging.description')"
|
||||||
docs="/docs/reference/configuration/messaging"
|
docs="/reference/configuration/messaging"
|
||||||
:defaultYaml="defaultYaml"
|
:defaultYaml="defaultYaml"
|
||||||
endpoint="/config/messaging"
|
endpoint="/config/messaging"
|
||||||
removeKey="messaging"
|
removeKey="messaging"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
name="messaging"
|
name="messaging"
|
||||||
:title="$t('config.messaging.title')"
|
:title="$t('config.messaging.title')"
|
||||||
:description="$t('config.messaging.description')"
|
:description="$t('config.messaging.description')"
|
||||||
docs="/docs/notifications"
|
docs="/notifications"
|
||||||
endpoint="/config/messagingEvents"
|
endpoint="/config/messagingEvents"
|
||||||
state-key="messagingEvents"
|
state-key="messagingEvents"
|
||||||
data-testid="messaging-modal"
|
data-testid="messaging-modal"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="modbusproxy"
|
name="modbusproxy"
|
||||||
:title="$t('config.modbusproxy.title')"
|
:title="$t('config.modbusproxy.title')"
|
||||||
:description="$t('config.modbusproxy.description')"
|
:description="$t('config.modbusproxy.description')"
|
||||||
docs="/docs/reference/configuration/modbusproxy"
|
docs="/reference/configuration/modbusproxy"
|
||||||
endpoint="/config/modbusproxy"
|
endpoint="/config/modbusproxy"
|
||||||
state-key="modbusproxy"
|
state-key="modbusproxy"
|
||||||
store-values-in-array
|
store-values-in-array
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="mqtt"
|
name="mqtt"
|
||||||
:title="$t('config.mqtt.title')"
|
:title="$t('config.mqtt.title')"
|
||||||
:description="$t('config.mqtt.description')"
|
:description="$t('config.mqtt.description')"
|
||||||
docs="/docs/reference/configuration/mqtt"
|
docs="/reference/configuration/mqtt"
|
||||||
endpoint="/config/mqtt"
|
endpoint="/config/mqtt"
|
||||||
state-key="mqtt"
|
state-key="mqtt"
|
||||||
@changed="$emit('changed')"
|
@changed="$emit('changed')"
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ export default defineComponent({
|
||||||
return !!store.state?.evopt;
|
return !!store.state?.evopt;
|
||||||
},
|
},
|
||||||
docsLink(): string {
|
docsLink(): string {
|
||||||
return `${docsPrefix()}/docs/features/optimizer`;
|
return `${docsPrefix()}/features/optimizer`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="shm"
|
name="shm"
|
||||||
:title="$t('config.shm.title')"
|
:title="$t('config.shm.title')"
|
||||||
:description="$t('config.shm.description')"
|
:description="$t('config.shm.description')"
|
||||||
docs="/docs/reference/configuration/hems"
|
docs="/reference/configuration/hems"
|
||||||
endpoint="/config/shm"
|
endpoint="/config/shm"
|
||||||
state-key="shm"
|
state-key="shm"
|
||||||
disable-remove
|
disable-remove
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ export default {
|
||||||
return this.token && !this.fromYaml;
|
return this.token && !this.fromYaml;
|
||||||
},
|
},
|
||||||
trialTokenLink() {
|
trialTokenLink() {
|
||||||
return `${docsPrefix()}/docs/sponsorship#trial`;
|
return `${docsPrefix()}/sponsorship#trial`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
name="tariffsLegacy"
|
name="tariffsLegacy"
|
||||||
:title="`${$t('config.tariff.title')} (${$t('config.general.legacy')})`"
|
:title="`${$t('config.tariff.title')} (${$t('config.general.legacy')})`"
|
||||||
:description="$t('config.tariff.description')"
|
:description="$t('config.tariff.description')"
|
||||||
docs="/docs/tariffs"
|
docs="/tariffs"
|
||||||
:defaultYaml="defaultYaml"
|
:defaultYaml="defaultYaml"
|
||||||
removeKey="tariffs"
|
removeKey="tariffs"
|
||||||
endpoint="/config/tariffs"
|
endpoint="/config/tariffs"
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
docsLink() {
|
docsLink() {
|
||||||
return `${docsPrefix()}/docs/faq#telemetry`;
|
return `${docsPrefix()}/faq#telemetry`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
docsUrl(): string {
|
docsUrl(): string {
|
||||||
return `${docsPrefix()}/docs/features/limits`;
|
return `${docsPrefix()}/features/limits`;
|
||||||
},
|
},
|
||||||
modeOptions(): SelectOption<string>[] {
|
modeOptions(): SelectOption<string>[] {
|
||||||
return [
|
return [
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,6 @@ export async function ensureCurrentLocaleMessages(i18n: VueI18nInstance) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function docsPrefix() {
|
export function docsPrefix() {
|
||||||
const locale = getLocale();
|
const lang = getLocale() === "de" ? "de" : "en";
|
||||||
const path = locale === "de" ? "" : `/en`;
|
return `https://docs.evcc.io/${lang}`;
|
||||||
return `https://docs.evcc.io${path}`;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue