mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
manual proxy cert install
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
"game_exec": "Set Game Executable",
|
"game_exec": "Set Game Executable",
|
||||||
"grasscutter_jar": "Set Grasscutter JAR",
|
"grasscutter_jar": "Set Grasscutter JAR",
|
||||||
"toggle_encryption": "Toggle Encryption",
|
"toggle_encryption": "Toggle Encryption",
|
||||||
|
"install_certificate": "Install Proxy Certificate",
|
||||||
"java_path": "Set Custom Java Path",
|
"java_path": "Set Custom Java Path",
|
||||||
"grasscutter_with_game": "Automatically launch Grasscutter with game",
|
"grasscutter_with_game": "Automatically launch Grasscutter with game",
|
||||||
"language": "Select Language",
|
"language": "Select Language",
|
||||||
@@ -43,7 +44,8 @@
|
|||||||
"components": {
|
"components": {
|
||||||
"select_file": "Select file or folder...",
|
"select_file": "Select file or folder...",
|
||||||
"select_folder": "Select folder...",
|
"select_folder": "Select folder...",
|
||||||
"download": "Download"
|
"download": "Download",
|
||||||
|
"install": "Install"
|
||||||
},
|
},
|
||||||
"news": {
|
"news": {
|
||||||
"latest_commits": "Recent Commits",
|
"latest_commits": "Recent Commits",
|
||||||
|
|||||||
@@ -188,6 +188,12 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async installCert() {
|
||||||
|
await invoke('generate_ca_files', {
|
||||||
|
path: await dataDir() + 'cultivation'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Menu closeFn={this.props.closeFn} className="Options" heading="Options">
|
<Menu closeFn={this.props.closeFn} className="Options" heading="Options">
|
||||||
@@ -219,6 +225,16 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
</BigButton>
|
</BigButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className='OptionSection' id="menuOptionsContainerInstallCert">
|
||||||
|
<div className='OptionLabel' id="menuOptionsLabelInstallCert">
|
||||||
|
<Tr text="options.install_certificate" />
|
||||||
|
</div>
|
||||||
|
<div className='OptionValue' id="menuOptionsButtonInstallCert">
|
||||||
|
<BigButton disabled={false} onClick={this.installCert} id="installCert">
|
||||||
|
<Tr text="components.install" />
|
||||||
|
</BigButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{
|
{
|
||||||
this.state.swag && (
|
this.state.swag && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user