mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
Redirect more domains
This commit is contained in:
@@ -42,6 +42,7 @@ interface IState {
|
||||
swag: boolean
|
||||
platform: string
|
||||
un_elevated: boolean
|
||||
redirect_more: boolean
|
||||
|
||||
// Swag stuff
|
||||
akebi_path: string
|
||||
@@ -72,6 +73,7 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
auto_mongodb: false,
|
||||
platform: '',
|
||||
un_elevated: false,
|
||||
redirect_more: false,
|
||||
|
||||
// Swag stuff
|
||||
akebi_path: '',
|
||||
@@ -123,6 +125,7 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
auto_mongodb: config.auto_mongodb || false,
|
||||
platform,
|
||||
un_elevated: config.un_elevated || false,
|
||||
redirect_more: config.redirect_more || false,
|
||||
|
||||
// Swag stuff
|
||||
akebi_path: config.akebi_path || '',
|
||||
@@ -388,6 +391,18 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="OptionSection" id="menuOptionsContainerRedirect">
|
||||
<div className="OptionLabel" id="menuOptionsLabelRedirect">
|
||||
<Tr text="options.redirect_more" />
|
||||
</div>
|
||||
<div className="OptionValue" id="menuOptionsCheckboxRedirect">
|
||||
<Checkbox
|
||||
onChange={() => this.toggleOption('redirect_more')}
|
||||
checked={this.state?.redirect_more}
|
||||
id="RedirectMore"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Divider />
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ let defaultConfig: Configuration
|
||||
horny_mode: false,
|
||||
auto_mongodb: false,
|
||||
un_elevated: false,
|
||||
redirect_more: false,
|
||||
}
|
||||
})()
|
||||
|
||||
@@ -55,6 +56,7 @@ export interface Configuration {
|
||||
swag_mode?: boolean
|
||||
auto_mongodb: boolean
|
||||
un_elevated: boolean
|
||||
redirect_more: boolean
|
||||
|
||||
// Swag stuff
|
||||
akebi_path?: string
|
||||
|
||||
Reference in New Issue
Block a user