diff --git a/web/src/App.js b/web/src/App.js index 97634c4..710d188 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -276,41 +276,38 @@ class App extends Component { ); - res.push( - - - {i18next.t("general:Permissions")} - - - ); - // res.push( - // - // - // {i18next.t("general:Clustering")} - // - // - // ); - res.push( - - - {i18next.t("general:Wordsets")} - - - ); - res.push( - - - {i18next.t("general:Factorsets")} - - - ); - res.push( - - - {i18next.t("general:Videos")} - - - ); + + if (Conf.EnableExtraPages) { + res.push( + + + {i18next.t("general:Clustering")} + + + ); + res.push( + + + {i18next.t("general:Wordsets")} + + + ); + res.push( + + + {i18next.t("general:Factorsets")} + + + ); + res.push( + + + {i18next.t("general:Videos")} + + + ); + } + res.push( @@ -325,12 +322,19 @@ class App extends Component { ); + res.push( + + + {i18next.t("general:Permissions")} + + + ); if (Setting.isLocalAdminUser(this.state.account)) { res.push( - + - {i18next.t("general:Records")} + {i18next.t("general:Logs")} ); diff --git a/web/src/Conf.js b/web/src/Conf.js index 165eace..e8e27d2 100644 --- a/web/src/Conf.js +++ b/web/src/Conf.js @@ -1,17 +1,17 @@ -// Copyright 2023 The casbin Authors. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - +// Copyright 2023 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + export const AuthConfig = { // serverUrl: "https://door.casdoor.com", serverUrl: "http://localhost:7001", @@ -24,6 +24,8 @@ export const AuthConfig = { export const DefaultOwner = "admin"; export const DefaultWordsetName = "word"; +export const EnableExtraPages = false; + export const ForceLanguage = ""; export const DefaultLanguage = "en"; diff --git a/web/src/locales/en/data.json b/web/src/locales/en/data.json index f903fdf..f5f6bc3 100644 --- a/web/src/locales/en/data.json +++ b/web/src/locales/en/data.json @@ -21,7 +21,7 @@ "No.": "No.", "Permissions": "Permissions", "Preview": "Preview", - "Records": "Records", + "Logs": "Logs", "Result": "Result", "Save": "Save", "Stores": "Stores", diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json index a8a20f1..9166a08 100644 --- a/web/src/locales/zh/data.json +++ b/web/src/locales/zh/data.json @@ -21,7 +21,7 @@ "No.": "序号", "Permissions": "我的权限", "Preview": "预览", - "Records": "我的日志", + "Logs": "我的日志", "Result": "结果", "Save": "保存", "Stores": "我的数据仓库",