|
|
@ -69,10 +69,17 @@ export default ErrorBoundary.wrap(function Settings() {
|
|
|
|
</Forms.FormTitle>
|
|
|
|
</Forms.FormTitle>
|
|
|
|
|
|
|
|
|
|
|
|
<Forms.FormText>
|
|
|
|
<Forms.FormText>
|
|
|
|
SettingsDir: {settingsDir}
|
|
|
|
SettingsDir: <code style={{ userSelect: 'text', cursor: 'text' }}>{settingsDir}</code>
|
|
|
|
</Forms.FormText>
|
|
|
|
</Forms.FormText>
|
|
|
|
|
|
|
|
|
|
|
|
<Flex className={classes(Margins.marginBottom20)}>
|
|
|
|
<Flex className={classes(Margins.marginBottom20)}>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
onClick={() => window.DiscordNative.app.relaunch()}
|
|
|
|
|
|
|
|
size={Button.Sizes.SMALL}
|
|
|
|
|
|
|
|
color={Button.Colors.GREEN}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
Reload
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
onClick={() => window.DiscordNative.fileManager.showItemInFolder(settingsDir)}
|
|
|
|
onClick={() => window.DiscordNative.fileManager.showItemInFolder(settingsDir)}
|
|
|
|
size={Button.Sizes.SMALL}
|
|
|
|
size={Button.Sizes.SMALL}
|
|
|
@ -88,24 +95,25 @@ export default ErrorBoundary.wrap(function Settings() {
|
|
|
|
Open QuickCSS File
|
|
|
|
Open QuickCSS File
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Flex>
|
|
|
|
</Flex>
|
|
|
|
|
|
|
|
<Forms.FormDivider />
|
|
|
|
|
|
|
|
<Forms.FormTitle tag="h5">Settings</Forms.FormTitle>
|
|
|
|
<Switch
|
|
|
|
<Switch
|
|
|
|
value={settings.useQuickCss}
|
|
|
|
value={settings.useQuickCss}
|
|
|
|
onChange={v => settings.useQuickCss = v}
|
|
|
|
onChange={(v: boolean) => settings.useQuickCss = v}
|
|
|
|
note="Enable QuickCss"
|
|
|
|
note="Enable QuickCSS"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
Use QuickCss
|
|
|
|
Use QuickCss
|
|
|
|
</Switch>
|
|
|
|
</Switch>
|
|
|
|
<Switch
|
|
|
|
<Switch
|
|
|
|
value={settings.notifyAboutUpdates}
|
|
|
|
value={settings.notifyAboutUpdates}
|
|
|
|
onChange={v => settings.notifyAboutUpdates = v}
|
|
|
|
onChange={(v: boolean) => settings.notifyAboutUpdates = v}
|
|
|
|
note="Shows a Toast on StartUp"
|
|
|
|
note="Shows a Toast on StartUp"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
Get notified about new Updates
|
|
|
|
Get notified about new Updates
|
|
|
|
</Switch>
|
|
|
|
</Switch>
|
|
|
|
<Switch
|
|
|
|
<Switch
|
|
|
|
value={settings.unsafeRequire}
|
|
|
|
value={settings.unsafeRequire}
|
|
|
|
onChange={v => settings.unsafeRequire = v}
|
|
|
|
onChange={(v: boolean) => settings.unsafeRequire = v}
|
|
|
|
note="Enables VencordNative.require. Useful for testing, very bad for security. Leave this off unless you need it."
|
|
|
|
note="Enables VencordNative.require. Useful for testing, very bad for security. Leave this off unless you need it."
|
|
|
|
>
|
|
|
|
>
|
|
|
|
Enable Unsafe Require
|
|
|
|
Enable Unsafe Require
|
|
|
|