mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
Add Conf.EnableExtraPages
This commit is contained in:
@ -51,6 +51,7 @@ import PaymentEditPage from "./PaymentEditPage";
|
|||||||
import AccountPage from "./account/AccountPage";
|
import AccountPage from "./account/AccountPage";
|
||||||
import HomePage from "./basic/HomePage";
|
import HomePage from "./basic/HomePage";
|
||||||
import CustomGithubCorner from "./CustomGithubCorner";
|
import CustomGithubCorner from "./CustomGithubCorner";
|
||||||
|
import * as Conf from "./Conf";
|
||||||
|
|
||||||
import * as Auth from "./auth/Auth";
|
import * as Auth from "./auth/Auth";
|
||||||
import SignupPage from "./auth/SignupPage";
|
import SignupPage from "./auth/SignupPage";
|
||||||
@ -434,20 +435,24 @@ class App extends Component {
|
|||||||
</Link>
|
</Link>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
);
|
);
|
||||||
res.push(
|
|
||||||
<Menu.Item key="/products">
|
if (Conf.EnableExtraPages) {
|
||||||
<Link to="/products">
|
res.push(
|
||||||
{i18next.t("general:Products")}
|
<Menu.Item key="/products">
|
||||||
</Link>
|
<Link to="/products">
|
||||||
</Menu.Item>
|
{i18next.t("general:Products")}
|
||||||
);
|
</Link>
|
||||||
res.push(
|
</Menu.Item>
|
||||||
<Menu.Item key="/payments">
|
);
|
||||||
<Link to="/payments">
|
res.push(
|
||||||
{i18next.t("general:Payments")}
|
<Menu.Item key="/payments">
|
||||||
</Link>
|
<Link to="/payments">
|
||||||
</Menu.Item>
|
{i18next.t("general:Payments")}
|
||||||
);
|
</Link>
|
||||||
|
</Menu.Item>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
res.push(
|
res.push(
|
||||||
<Menu.Item key="/swagger">
|
<Menu.Item key="/swagger">
|
||||||
<a target="_blank" rel="noreferrer" href={Setting.isLocalhost() ? `${Setting.ServerUrl}/swagger` : "/swagger"}>
|
<a target="_blank" rel="noreferrer" href={Setting.isLocalhost() ? `${Setting.ServerUrl}/swagger` : "/swagger"}>
|
||||||
|
@ -17,3 +17,5 @@ export const GithubRepo = "https://github.com/casdoor/casdoor";
|
|||||||
|
|
||||||
export const ForceLanguage = "";
|
export const ForceLanguage = "";
|
||||||
export const DefaultLanguage = "en";
|
export const DefaultLanguage = "en";
|
||||||
|
|
||||||
|
export const EnableExtraPages = false;
|
||||||
|
Reference in New Issue
Block a user