Skip to content

Commit

Permalink
feat: add i18n support on server side
Browse files Browse the repository at this point in the history
  • Loading branch information
tautcony committed Sep 15, 2023
1 parent 59547c1 commit 1e93988
Show file tree
Hide file tree
Showing 43 changed files with 4,058 additions and 11 deletions.
3 changes: 2 additions & 1 deletion setup/dashboard/inc/panel.app_status.ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
time: 1000
}, {
key: "UPTIME",
url: "/widgets/up.php",
url: "/node/up.php",
id: "#uptime",
time: 60000
}, {
Expand Down Expand Up @@ -337,4 +337,5 @@
document.addEventListener("DOMContentLoaded", function () {
Visibility.afterPrerendering(start_status_update);
});
// socket.emit("i18n", "zh");
})(window.jQuery);
8 changes: 2 additions & 6 deletions setup/dashboard/ws/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module.exports = {
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/adjacent-overload-signatures": "off",
"arrow-body-style": "error",
"arrow-parens": [
"off",
Expand Down Expand Up @@ -135,12 +136,7 @@ module.exports = {
"no-redeclare": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": [
"error",
{
"hoist": "all"
}
],
"no-shadow": "off",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
Expand Down
4 changes: 4 additions & 0 deletions setup/dashboard/ws/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ module.exports = {
],
exclude: /node_modules/,
},
{
test: /.js$/,
exclude: /node_modules/,
},
],
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion setup/dashboard/ws/dist/server.js

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions setup/dashboard/ws/dist/server.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* @license React
* react-dom-server-legacy.node.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-dom-server.node.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions setup/dashboard/ws/lang
Loading

0 comments on commit 1e93988

Please sign in to comment.