mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	feat(options/etapi): link to the swagger UI that we ship
since we are shipping it, why not link to it as well :-)
This commit is contained in:
		
							parent
							
								
									ba84c694b2
								
							
						
					
					
						commit
						f1f5839ea2
					
				| @ -12,7 +12,8 @@ const TPL = ` | |||||||
|     <p>${t("etapi.description")} <br/> |     <p>${t("etapi.description")} <br/> | ||||||
|       ${t("etapi.see_more", { |       ${t("etapi.see_more", { | ||||||
|         link_to_wiki: `<a class="tn-link" href="https://triliumnext.github.io/Docs/Wiki/etapi.html">${t("etapi.wiki")}</a>`, |         link_to_wiki: `<a class="tn-link" href="https://triliumnext.github.io/Docs/Wiki/etapi.html">${t("etapi.wiki")}</a>`, | ||||||
|         link_to_openapi_spec: `<a class="tn-link" onclick="window.open('etapi/etapi.openapi.yaml')" href="etapi/etapi.openapi.yaml">${t("etapi.openapi_spec")}</a>` |         link_to_openapi_spec: `<a class="tn-link" onclick="window.open('etapi/etapi.openapi.yaml')" href="etapi/etapi.openapi.yaml">${t("etapi.openapi_spec")}</a>`, | ||||||
|  |         link_to_swagger_ui: `<a class="tn-link" onclick="window.open('etapi/docs')" href="etapi/docs">${t("etapi.swagger_ui")}</a>` | ||||||
|       })} |       })} | ||||||
|     </p> |     </p> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1224,6 +1224,7 @@ | |||||||
|     "see_more": "", |     "see_more": "", | ||||||
|     "wiki": "维基", |     "wiki": "维基", | ||||||
|     "openapi_spec": "ETAPI OpenAPI 规范", |     "openapi_spec": "ETAPI OpenAPI 规范", | ||||||
|  |     "swagger_ui": "", | ||||||
|     "create_token": "创建新的 ETAPI 令牌", |     "create_token": "创建新的 ETAPI 令牌", | ||||||
|     "existing_tokens": "现有令牌", |     "existing_tokens": "现有令牌", | ||||||
|     "no_tokens_yet": "目前还没有令牌。点击上面的按钮创建一个。", |     "no_tokens_yet": "目前还没有令牌。点击上面的按钮创建一个。", | ||||||
|  | |||||||
| @ -1248,9 +1248,10 @@ | |||||||
|   "etapi": { |   "etapi": { | ||||||
|     "title": "ETAPI", |     "title": "ETAPI", | ||||||
|     "description": "ETAPI ist eine REST-API, die für den programmgesteuerten Zugriff auf die Trilium-Instanz ohne Benutzeroberfläche verwendet wird.", |     "description": "ETAPI ist eine REST-API, die für den programmgesteuerten Zugriff auf die Trilium-Instanz ohne Benutzeroberfläche verwendet wird.", | ||||||
|     "see_more": "Weitere Details können im {{- link_to_wiki}} und in der {{- link_to_openapi_spec}} gefunden werden.", |     "see_more": "Weitere Details können im {{- link_to_wiki}} und in der {{- link_to_openapi_spec}} oder der {{- link_to_swagger_ui }} gefunden werden.", | ||||||
|     "wiki": "Wiki", |     "wiki": "Wiki", | ||||||
|     "openapi_spec": "ETAPI OpenAPI-Spezifikation", |     "openapi_spec": "ETAPI OpenAPI-Spezifikation", | ||||||
|  |     "swagger_ui": "ETAPI Swagger UI", | ||||||
|     "create_token": "Erstelle ein neues ETAPI-Token", |     "create_token": "Erstelle ein neues ETAPI-Token", | ||||||
|     "existing_tokens": "Vorhandene Token", |     "existing_tokens": "Vorhandene Token", | ||||||
|     "no_tokens_yet": "Es sind noch keine Token vorhanden. Klicke auf die Schaltfläche oben, um eine zu erstellen.", |     "no_tokens_yet": "Es sind noch keine Token vorhanden. Klicke auf die Schaltfläche oben, um eine zu erstellen.", | ||||||
|  | |||||||
| @ -1252,9 +1252,10 @@ | |||||||
|   "etapi": { |   "etapi": { | ||||||
|     "title": "ETAPI", |     "title": "ETAPI", | ||||||
|     "description": "ETAPI is a REST API used to access Trilium instance programmatically, without UI.", |     "description": "ETAPI is a REST API used to access Trilium instance programmatically, without UI.", | ||||||
|     "see_more": "See more details in the {{- link_to_wiki}} and the {{- link_to_openapi_spec}}.", |     "see_more": "See more details in the {{- link_to_wiki}} and the {{- link_to_openapi_spec}} or the {{- link_to_swagger_ui }}.", | ||||||
|     "wiki": "wiki", |     "wiki": "wiki", | ||||||
|     "openapi_spec": "ETAPI OpenAPI spec", |     "openapi_spec": "ETAPI OpenAPI spec", | ||||||
|  |     "swagger_ui": "ETAPI Swagger UI", | ||||||
|     "create_token": "Create new ETAPI token", |     "create_token": "Create new ETAPI token", | ||||||
|     "existing_tokens": "Existing tokens", |     "existing_tokens": "Existing tokens", | ||||||
|     "no_tokens_yet": "There are no tokens yet. Click on the button above to create one.", |     "no_tokens_yet": "There are no tokens yet. Click on the button above to create one.", | ||||||
|  | |||||||
| @ -1248,6 +1248,7 @@ | |||||||
|     "see_more": "", |     "see_more": "", | ||||||
|     "wiki": "wiki", |     "wiki": "wiki", | ||||||
|     "openapi_spec": "Especificación ETAPI OpenAPI", |     "openapi_spec": "Especificación ETAPI OpenAPI", | ||||||
|  |     "swagger_ui": "", | ||||||
|     "create_token": "Crear nuevo token ETAPI", |     "create_token": "Crear nuevo token ETAPI", | ||||||
|     "existing_tokens": "Tokens existentes", |     "existing_tokens": "Tokens existentes", | ||||||
|     "no_tokens_yet": "Aún no hay tokens. Dé clic en el botón de arriba para crear uno.", |     "no_tokens_yet": "Aún no hay tokens. Dé clic en el botón de arriba para crear uno.", | ||||||
|  | |||||||
| @ -1255,6 +1255,7 @@ | |||||||
|     "see_more": "", |     "see_more": "", | ||||||
|     "wiki": "wiki", |     "wiki": "wiki", | ||||||
|     "openapi_spec": "Spec ETAPI OpenAPI", |     "openapi_spec": "Spec ETAPI OpenAPI", | ||||||
|  |     "swagger_ui": "", | ||||||
|     "create_token": "Créer un nouveau jeton ETAPI", |     "create_token": "Créer un nouveau jeton ETAPI", | ||||||
|     "existing_tokens": "Jetons existants", |     "existing_tokens": "Jetons existants", | ||||||
|     "no_tokens_yet": "Il n'y a pas encore de jetons. Cliquez sur le bouton ci-dessus pour en créer un.", |     "no_tokens_yet": "Il n'y a pas encore de jetons. Cliquez sur le bouton ci-dessus pour en créer un.", | ||||||
|  | |||||||
| @ -491,6 +491,7 @@ | |||||||
|     "new_token_title": "Token ETAPI nou", |     "new_token_title": "Token ETAPI nou", | ||||||
|     "no_tokens_yet": "Nu există încă token-uri. Clic pe butonul de deasupra pentru a crea una.", |     "no_tokens_yet": "Nu există încă token-uri. Clic pe butonul de deasupra pentru a crea una.", | ||||||
|     "openapi_spec": "Specificația OpenAPI pentru ETAPI", |     "openapi_spec": "Specificația OpenAPI pentru ETAPI", | ||||||
|  |     "swagger_ui": "", | ||||||
|     "rename_token": "Redenumește token-ul", |     "rename_token": "Redenumește token-ul", | ||||||
|     "rename_token_message": "Introduceți denumirea noului token", |     "rename_token_message": "Introduceți denumirea noului token", | ||||||
|     "rename_token_title": "Redenumire token", |     "rename_token_title": "Redenumire token", | ||||||
|  | |||||||
| @ -1199,10 +1199,10 @@ | |||||||
|   "etapi": { |   "etapi": { | ||||||
|     "title": "ETAPI", |     "title": "ETAPI", | ||||||
|     "description": "ETAPI 是一個 REST API,用於以編程方式訪問 Trilium 實例,而無需 UI。", |     "description": "ETAPI 是一個 REST API,用於以編程方式訪問 Trilium 實例,而無需 UI。", | ||||||
|     "see_more": "更多詳情見", |     "see_more": "", | ||||||
|     "wiki": "維基", |     "wiki": "維基", | ||||||
|     "and": "和", |  | ||||||
|     "openapi_spec": "ETAPI OpenAPI 規範", |     "openapi_spec": "ETAPI OpenAPI 規範", | ||||||
|  |     "swagger_ui": "", | ||||||
|     "create_token": "新增新的 ETAPI 令牌", |     "create_token": "新增新的 ETAPI 令牌", | ||||||
|     "existing_tokens": "現有令牌", |     "existing_tokens": "現有令牌", | ||||||
|     "no_tokens_yet": "目前還沒有令牌。點擊上面的按鈕新增一個。", |     "no_tokens_yet": "目前還沒有令牌。點擊上面的按鈕新增一個。", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos