This commit is contained in:
hhhkkk520
2022-05-20 19:03:03 +00:00
parent d605a3dcd1
commit 06357b8408
56 changed files with 65 additions and 65 deletions
+1
View File
@@ -0,0 +1 @@
import{_ as e,c as o,o as t,d as r}from"./app.2c402e15.js";const u='{"title":"\u4ECB\u7ECD","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u4ECB\u7ECD","slug":"\u4ECB\u7ECD"}],"relativePath":"developer/l10n.md"}',a={},l=r('<p><strong>\u54EA\u5412\u76D1\u63A7\u7684Dashboard\u5DF2\u7ECF\u6DFB\u52A0\u672C\u5730\u5316\uFF0C\u652F\u6301\u591A\u4E2A\u8BED\u8A00\uFF0C\u4F60\u53EF\u4EE5\u5728\u5F00\u53D1\u65B0\u529F\u80FD\u65F6\u9075\u5FAA\u4EE5\u4E0B\u6B65\u9AA4\u6765\u652F\u6301\u672C\u5730\u5316</strong></p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>\u54EA\u5412\u76D1\u63A7\u4F7F\u7528 Crowdin \u5E73\u53F0\u7FFB\u8BD1\u6587\u672C\uFF0C\u8BF7\u4E0D\u8981\u76F4\u63A5\u4FEE\u6539\u9664 <code>zh-CN.toml</code> \u4EE5\u5916\u7684toml\u6587\u4EF6</p></div><h2 id="\u4ECB\u7ECD" tabindex="-1">\u4ECB\u7ECD <a class="header-anchor" href="#\u4ECB\u7ECD" aria-hidden="true">#</a></h2><ol><li>\u4F60\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 <code>/resource/l10n/zh-CN.toml</code> \u4E2D\u7684\u914D\u7F6E\u6765\u66FF\u6362\u65B0\u529F\u80FD\u4E2D\u7684\u6587\u672C</li><li>\u5982\u679C\u65B0\u529F\u80FD\u4E2D\u6709\u65B0\u7684\u6587\u672C\uFF0C\u8BF7\u5C06\u65B0\u6587\u672C\u62C9\u53D6\u5230 <code>zh-CN.toml</code> \u4E2D</li><li>\u5728Pull Request\u88AB\u5408\u5E76\u540E\uFF0C\u4F60\u53EF\u4EE5\u524D\u5F80 <a href="https://crowdin.com/project/nezha" target="_blank" rel="noopener noreferrer">Crowdin \u5E73\u53F0</a>\u8D21\u732E\u65B0\u6587\u672C\u7684\u7FFB\u8BD1</li></ol>',4),c=[l];function n(s,d,i,_,p,h){return t(),o("div",null,c)}var f=e(a,[["render",n]]);export{u as __pageData,f as default};
@@ -0,0 +1 @@
import{_ as e,c as o,o as t,d as r}from"./app.2c402e15.js";const u='{"title":"\u4ECB\u7ECD","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u4ECB\u7ECD","slug":"\u4ECB\u7ECD"}],"relativePath":"developer/l10n.md"}',a={},l=r("",4),c=[l];function n(s,d,i,_,p,h){return t(),o("div",null,c)}var f=e(a,[["render",n]]);export{u as __pageData,f as default};
-1
View File
@@ -1 +0,0 @@
import{_ as e,c as o,o as t,d as r}from"./app.2c402e15.js";const u='{"title":"\u4F7F\u7528\u8BF4\u660E","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u4F7F\u7528\u8BF4\u660E","slug":"\u4F7F\u7528\u8BF4\u660E"}],"relativePath":"developer/l10n.md"}',a={},l=r('<p><strong>\u54EA\u5412\u76D1\u63A7\u7684Dashboard\u5DF2\u7ECF\u6DFB\u52A0\u672C\u5730\u5316\uFF0C\u652F\u6301\u591A\u4E2A\u8BED\u8A00\uFF0C\u4F60\u53EF\u4EE5\u5728\u5F00\u53D1\u65B0\u529F\u80FD\u65F6\u9075\u5FAA\u4EE5\u4E0B\u6B65\u9AA4\u6765\u652F\u6301\u672C\u5730\u5316</strong></p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>\u54EA\u5412\u76D1\u63A7\u4F7F\u7528 Crowdin \u5E73\u53F0\u7FFB\u8BD1\u6587\u672C\uFF0C\u8BF7\u4E0D\u8981\u76F4\u63A5\u4FEE\u6539\u9664 <code>zh-CN.toml</code> \u4EE5\u5916\u7684toml\u6587\u4EF6</p></div><h2 id="\u4F7F\u7528\u8BF4\u660E" tabindex="-1">\u4F7F\u7528\u8BF4\u660E <a class="header-anchor" href="#\u4F7F\u7528\u8BF4\u660E" aria-hidden="true">#</a></h2><ol><li>\u4F60\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 <code>/resource/l10n/zh-CN.toml</code> \u4E2D\u7684\u914D\u7F6E\u6765\u66FF\u6362\u65B0\u529F\u80FD\u4E2D\u7684\u6587\u672C</li><li>\u5982\u679C\u65B0\u529F\u80FD\u4E2D\u6709\u65B0\u7684\u6587\u672C\uFF0C\u8BF7\u5C06\u65B0\u6587\u672C\u62C9\u53D6\u5230 <code>zh-CN.toml</code> \u4E2D</li><li>\u5728Pull Request\u88AB\u5408\u5E76\u540E\uFF0C\u4F60\u53EF\u4EE5\u524D\u5F80 <a href="https://crowdin.com/project/nezha" target="_blank" rel="noopener noreferrer">Crowdin \u5E73\u53F0</a>\u8D21\u732E\u65B0\u6587\u672C\u7684\u7FFB\u8BD1</li></ol>',4),c=[l];function n(s,d,i,_,p,h){return t(),o("div",null,c)}var f=e(a,[["render",n]]);export{u as __pageData,f as default};
@@ -1 +0,0 @@
import{_ as e,c as o,o as t,d as r}from"./app.2c402e15.js";const u='{"title":"\u4F7F\u7528\u8BF4\u660E","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u4F7F\u7528\u8BF4\u660E","slug":"\u4F7F\u7528\u8BF4\u660E"}],"relativePath":"developer/l10n.md"}',a={},l=r("",4),c=[l];function n(s,d,i,_,p,h){return t(),o("div",null,c)}var f=e(a,[["render",n]]);export{u as __pageData,f as default};
+1
View File
@@ -0,0 +1 @@
import{_ as e,c as a,o,d as t}from"./app.2c402e15.js";const u='{"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","slug":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883"},{"level":2,"title":"\u4F7F\u7528\u8BF4\u660E","slug":"\u4F7F\u7528\u8BF4\u660E"},{"level":2,"title":"FAQ","slug":"faq"}],"relativePath":"developer/theme.md"}',c={},d=t('<h2 id="\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883" tabindex="-1">\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883 <a class="header-anchor" href="#\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883" aria-hidden="true">#</a></h2><p>\u54EA\u5412\u9762\u677F\u63D0\u4F9B\u4E86\u4E3B\u9898\u5F00\u53D1\u73AF\u5883\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u5B83\u6765\u521B\u5EFA\u65B0\u7684\u54EA\u5412\u76D1\u63A7\u4E3B\u9898</p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>\u8BF7\u6CE8\u610F\uFF1A \u6B64\u5F00\u53D1\u73AF\u5883\u4EC5\u652F\u6301 <code>dashboard v0.13.16</code> \u53CA\u66F4\u65B0\u7248\u672C\u3002</p></div><h2 id="\u4F7F\u7528\u8BF4\u660E" tabindex="-1">\u4F7F\u7528\u8BF4\u660E <a class="header-anchor" href="#\u4F7F\u7528\u8BF4\u660E" aria-hidden="true">#</a></h2><ol><li>\u514B\u9686<a href="https://github.com/nezhahq/skeleton-custom-theme" target="_blank" rel="noopener noreferrer">\u6B64\u4ED3\u5E93</a>\u5230\u672C\u5730</li><li>\u4FEE\u6539 <code>data/config.yaml</code> \u4E2D\u7684 Oauth2 \u914D\u7F6E\uFF08\u56DE\u8C03\u8FDE\u63A5\u53EF\u4EE5\u586B <code>http://localhost</code>\uFF09</li><li>\u8FD0\u884C <code>docker-compose up</code></li><li>\u5F00\u59CB\u5F00\u53D1</li><li>\u4E3B\u9898\u5236\u4F5C\u5B8C\u6210\u4E4B\u540E\u53EF\u4EE5\u5C06 <code>theme-custom</code> \u653E\u7F6E\u5230\u670D\u52A1\u5668\u4E0A\u7684 <code>/opt/nezha/dashboard/theme-custom</code> \u4F4D\u7F6E</li></ol><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><ul><li>\u5982\u679C\u4E0D\u80FD\u4F7F\u7528 <code>80</code> \u7AEF\u53E3\uFF0C\u5728 <code>docker-compose.yaml</code> \u4E2D\u4FEE\u6539\u914D\u7F6E\u3002</li></ul>',7),l=[d];function r(i,s,h,n,_,p){return o(),a("div",null,l)}var f=e(c,[["render",r]]);export{u as __pageData,f as default};
@@ -0,0 +1 @@
import{_ as e,c as a,o,d as t}from"./app.2c402e15.js";const u='{"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","slug":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883"},{"level":2,"title":"\u4F7F\u7528\u8BF4\u660E","slug":"\u4F7F\u7528\u8BF4\u660E"},{"level":2,"title":"FAQ","slug":"faq"}],"relativePath":"developer/theme.md"}',c={},d=t("",7),l=[d];function r(i,s,h,n,_,p){return o(),a("div",null,l)}var f=e(c,[["render",r]]);export{u as __pageData,f as default};
-1
View File
@@ -1 +0,0 @@
import{_ as e,c as o,o as a,d as t}from"./app.2c402e15.js";const u='{"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","slug":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883"},{"level":2,"title":"\u4F7F\u7528\u8BF4\u660E","slug":"\u4F7F\u7528\u8BF4\u660E"},{"level":2,"title":"FAQ","slug":"faq"}],"relativePath":"developer/theme.md"}',c={},d=t('<h2 id="\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883" tabindex="-1">\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883 <a class="header-anchor" href="#\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883" aria-hidden="true">#</a></h2><p>\u54EA\u5412\u9762\u677F\u63D0\u4F9B\u4E86\u4E3B\u9898\u5F00\u53D1\u73AF\u5883\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u5B83\u6765\u521B\u5EFA\u65B0\u7684\u54EA\u5412\u76D1\u63A7\u4E3B\u9898</p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>\u8BF7\u6CE8\u610F\uFF1A \u6B64\u5F00\u53D1\u73AF\u5883\u4EC5\u652F\u6301 <code>dashboard v0.13.16</code> \u53CA\u66F4\u65B0\u7248\u672C\u3002</p></div><h2 id="\u4F7F\u7528\u8BF4\u660E" tabindex="-1">\u4F7F\u7528\u8BF4\u660E <a class="header-anchor" href="#\u4F7F\u7528\u8BF4\u660E" aria-hidden="true">#</a></h2><ol><li>\u514B\u9686<a href="https://github.com/nezhahq/skeleton-custom-theme" target="_blank" rel="noopener noreferrer">\u6B64\u4ED3\u5E93</a>\u5230\u672C\u5730</li><li>\u4FEE\u6539 <code>data/config.yaml</code> \u4E2D\u7684oauth2 \u914D\u7F6E\uFF08\u56DE\u8C03\u8FDE\u63A5\u53EF\u4EE5\u586B <code>http://localhost</code> \u7684\uFF09</li><li><code>docker-compose up</code></li><li>\u5F00\u59CB\u5F00\u53D1</li><li>\u4E3B\u9898\u5236\u4F5C\u5B8C\u6210\u4E4B\u540E\u53EF\u4EE5\u5C06 <code>theme-custom</code> \u653E\u7F6E\u5230\u670D\u52A1\u5668\u4E0A\u7684 <code>/opt/nezha/dashboard/theme-custom</code> \u4F4D\u7F6E</li></ol><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><ul><li>\u5982\u679C\u4E0D\u80FD\u4F7F\u7528 <code>80</code> \u7AEF\u53E3\uFF0C\u5728 <code>docker-compose.yaml</code> \u4E2D\u4FEE\u6539\u914D\u7F6E\u3002</li></ul>',7),l=[d];function r(i,s,h,n,_,p){return a(),o("div",null,l)}var f=e(c,[["render",r]]);export{u as __pageData,f as default};
@@ -1 +0,0 @@
import{_ as e,c as o,o as a,d as t}from"./app.2c402e15.js";const u='{"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883","slug":"\u54EA\u5412\u4E3B\u9898\u5F00\u53D1\u73AF\u5883"},{"level":2,"title":"\u4F7F\u7528\u8BF4\u660E","slug":"\u4F7F\u7528\u8BF4\u660E"},{"level":2,"title":"FAQ","slug":"faq"}],"relativePath":"developer/theme.md"}',c={},d=t("",7),l=[d];function r(i,s,h,n,_,p){return a(),o("div",null,l)}var f=e(c,[["render",r]]);export{u as __pageData,f as default};
@@ -1 +0,0 @@
import{_ as e,c as t,o,a}from"./app.2c402e15.js";const u='{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md"}',n={},s=a("p",null,"Comming soon",-1),r=[s];function c(_,l,d,i,p,m){return o(),t("div",null,r)}var h=e(n,[["render",c]]);export{u as __pageData,h as default};
@@ -1 +0,0 @@
import{_ as e,c as t,o,a}from"./app.2c402e15.js";const u='{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md"}',n={},s=a("p",null,"Comming soon",-1),r=[s];function c(_,l,d,i,p,m){return o(),t("div",null,r)}var h=e(n,[["render",c]]);export{u as __pageData,h as default};
@@ -0,0 +1 @@
import{_ as e,c as t,o,d as n}from"./app.2c402e15.js";const f='{"title":"Introduction","description":"","frontmatter":{},"headers":[{"level":2,"title":"Introduction","slug":"introduction"}],"relativePath":"en_US/developer/l10n.md"}',a={},l=n('<p><strong>Nezha Monitoring&#39;s Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features</strong></p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>Nezha uses the Crowdin platform to translate text, please do not directly modify the toml files other than <code>zh-CN.toml</code>.</p></div><h2 id="introduction" tabindex="-1">Introduction <a class="header-anchor" href="#introduction" aria-hidden="true">#</a></h2><ol><li>You can replace the text in the new feature directly using the configuration in <code>/resource/l10n/zh-CN.toml</code></li><li>If there is new text in the new feature, pull the new text into <code>zh-CN.toml</code></li></ol><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>If you don&#39;t understand Chinese at all, you can translate the text using Google or DeepL Translate, and specify in the Pull Request, we will revise the Chinese translation after you add the English translation</p></div><ol start="3"><li>After the Pull Request has been merged, you can go to <a href="https://crowdin.com/project/nezha" target="_blank" rel="noopener noreferrer">Crowdin Platform</a> to contribute translations of the new text</li></ol>',6),r=[l];function i(s,c,d,h,u,p){return o(),t("div",null,r)}var m=e(a,[["render",i]]);export{f as __pageData,m as default};
@@ -0,0 +1 @@
import{_ as e,c as t,o,d as n}from"./app.2c402e15.js";const f='{"title":"Introduction","description":"","frontmatter":{},"headers":[{"level":2,"title":"Introduction","slug":"introduction"}],"relativePath":"en_US/developer/l10n.md"}',a={},l=n("",6),r=[l];function i(s,c,d,h,u,p){return o(),t("div",null,r)}var m=e(a,[["render",i]]);export{f as __pageData,m as default};
@@ -1 +0,0 @@
import{_ as e,c as t,o,a}from"./app.2c402e15.js";const h='{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md"}',s={},n=a("p",null,"Comming soon",-1),r=[n];function c(_,d,i,p,l,m){return o(),t("div",null,r)}var u=e(s,[["render",c]]);export{h as __pageData,u as default};
@@ -1 +0,0 @@
import{_ as e,c as t,o,a}from"./app.2c402e15.js";const h='{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md"}',s={},n=a("p",null,"Comming soon",-1),r=[n];function c(_,d,i,p,l,m){return o(),t("div",null,r)}var u=e(s,[["render",c]]);export{h as __pageData,u as default};
@@ -0,0 +1 @@
import{_ as e,c as o,o as t,d as n}from"./app.2c402e15.js";const v='{"title":"Nezha Theme Development Environment","description":"","frontmatter":{},"headers":[{"level":2,"title":"Nezha Theme Development Environment","slug":"nezha-theme-development-environment"},{"level":2,"title":"How to use","slug":"how-to-use"},{"level":2,"title":"FAQ","slug":"faq"}],"relativePath":"en_US/developer/theme.md"}',a={},i=n('<h2 id="nezha-theme-development-environment" tabindex="-1">Nezha Theme Development Environment <a class="header-anchor" href="#nezha-theme-development-environment" aria-hidden="true">#</a></h2><p>Nezha Monitoring provides a theme development environment that you can use to create new Nezha Monitoring themes</p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>Please note: This development environment only supports <code>dashboard v0.13.16</code> and newer versions.</p></div><h2 id="how-to-use" tabindex="-1">How to use <a class="header-anchor" href="#how-to-use" aria-hidden="true">#</a></h2><ol><li>Clone <a href="https://github.com/nezhahq/skeleton-custom-theme" target="_blank" rel="noopener noreferrer">this repository</a> to local</li><li>Modify the Oauth2 configuration in <code>data/config.yaml</code>\uFF08The callback connection can be filled with <code>http://localhost</code>\uFF09</li><li>Run <code>docker-compose up</code></li><li>Start development</li><li>Once the theme has been created, you can place <code>theme-custom</code> in <code>/opt/nezha/dashboard/theme-custom</code> on the server</li></ol><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><ul><li>If you can&#39;t use port <code>80</code>, change the configuration in <code>docker-compose.yaml</code>.</li></ul>',7),c=[i];function r(l,h,d,s,m,p){return t(),o("div",null,c)}var _=e(a,[["render",r]]);export{v as __pageData,_ as default};
@@ -0,0 +1 @@
import{_ as e,c as o,o as t,d as n}from"./app.2c402e15.js";const v='{"title":"Nezha Theme Development Environment","description":"","frontmatter":{},"headers":[{"level":2,"title":"Nezha Theme Development Environment","slug":"nezha-theme-development-environment"},{"level":2,"title":"How to use","slug":"how-to-use"},{"level":2,"title":"FAQ","slug":"faq"}],"relativePath":"en_US/developer/theme.md"}',a={},i=n("",7),c=[i];function r(l,h,d,s,m,p){return t(),o("div",null,c)}var _=e(a,[["render",r]]);export{v as __pageData,_ as default};