${t("etapi.title")}
+ // TriliumNextTODO: src/public/app/services/link.ts -> prevents regular click behavior on "a" element here
+ // because it is a relative path, and not a URL starting with http(s) -> onclick="window.open(...)" is used as workaround for now
${t("etapi.description")}
${t("etapi.see_more", {
link_to_wiki: `${t("etapi.wiki")}`,
From bee1df4fdf7d9cf37969100c226ea98935cf706d Mon Sep 17 00:00:00 2001
From: Elian Doran
Date: Wed, 26 Feb 2025 23:06:35 +0200
Subject: [PATCH 4/6] feat(options/etapi): open swagger UI in in-app-help
---
src/public/app/widgets/type_widgets/options/etapi.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/public/app/widgets/type_widgets/options/etapi.ts b/src/public/app/widgets/type_widgets/options/etapi.ts
index dd0ffb789..fc6336f3c 100644
--- a/src/public/app/widgets/type_widgets/options/etapi.ts
+++ b/src/public/app/widgets/type_widgets/options/etapi.ts
@@ -15,7 +15,7 @@ const TPL = `
${t("etapi.see_more", {
link_to_wiki: `${t("etapi.wiki")}`,
link_to_openapi_spec: `${t("etapi.openapi_spec")}`,
- link_to_swagger_ui: `${t("etapi.swagger_ui")}`
+ link_to_swagger_ui: `${t("etapi.swagger_ui")}`
})}
From 8e5762b125140b09b32e39c61df40f5f12c01ba1 Mon Sep 17 00:00:00 2001
From: Elian Doran
Date: Wed, 26 Feb 2025 23:09:39 +0200
Subject: [PATCH 5/6] chore(i18n/ro): translate new messages
---
src/public/translations/ro/translation.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json
index 90c70cae4..9393f76db 100644
--- a/src/public/translations/ro/translation.json
+++ b/src/public/translations/ro/translation.json
@@ -491,11 +491,11 @@
"new_token_title": "Token ETAPI nou",
"no_tokens_yet": "Nu există încă token-uri. Clic pe butonul de deasupra pentru a crea una.",
"openapi_spec": "Specificația OpenAPI pentru ETAPI",
- "swagger_ui": "",
+ "swagger_ui": "UI-ul Swagger pentru ETAPI",
"rename_token": "Redenumește token-ul",
"rename_token_message": "Introduceți denumirea noului token",
"rename_token_title": "Redenumire token",
- "see_more": "",
+ "see_more": "Vedeți mai multe detalii în {{- link_to_wiki}} și în {{- link_to_openapi_spec}} sau în {{- link_to_swagger_ui }}.",
"title": "ETAPI",
"token_created_message": "Copiați token-ul creat în clipboard. Trilium stochează token-ul ca hash așadar această valoare poate fi văzută doar acum.",
"token_created_title": "Token ETAPI creat",
From fd66da95f3d417d29e631e97aed8d5f770a677bc Mon Sep 17 00:00:00 2001
From: Elian Doran
Date: Wed, 26 Feb 2025 23:42:03 +0200
Subject: [PATCH 6/6] fix(options/etapi): comments being visible to the user
---
src/public/app/widgets/type_widgets/options/etapi.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/public/app/widgets/type_widgets/options/etapi.ts b/src/public/app/widgets/type_widgets/options/etapi.ts
index fc6336f3c..36a37cc27 100644
--- a/src/public/app/widgets/type_widgets/options/etapi.ts
+++ b/src/public/app/widgets/type_widgets/options/etapi.ts
@@ -9,11 +9,10 @@ const TPL = `
${t("etapi.title")}
- // TriliumNextTODO: src/public/app/services/link.ts -> prevents regular click behavior on "a" element here
- // because it is a relative path, and not a URL starting with http(s) -> onclick="window.open(...)" is used as workaround for now
${t("etapi.description")}
${t("etapi.see_more", {
link_to_wiki: `${t("etapi.wiki")}`,
+ // TODO: We use window.open src/public/app/services/link.ts -> prevents regular click behavior on "a" element here because it's a relative path
link_to_openapi_spec: `${t("etapi.openapi_spec")}`,
link_to_swagger_ui: `${t("etapi.swagger_ui")}`
})}