|
|
|
@ -109,84 +109,98 @@ export default memo(({ builtin, search = '' }) => {
|
|
|
|
|
>{pathsRevealed ? path : maskPath(path)}</a>
|
|
|
|
|
</div>;
|
|
|
|
|
|
|
|
|
|
return <FormNotice
|
|
|
|
|
type={FormNotice.Types.PRIMARY}
|
|
|
|
|
body={<div className={ joinClassNames('vz-updater-debug-info', { copied: copyText === Messages.COPIED })}>
|
|
|
|
|
<code>
|
|
|
|
|
<b>System / Discord</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>Locale: {chosenLocale}</div>
|
|
|
|
|
<div className='column'>OS: {(window.platform.os).toString()}</div>
|
|
|
|
|
<div className='column'>Architecture: {superProperties.os_arch}</div>
|
|
|
|
|
{process.platform === 'linux' && (
|
|
|
|
|
<div className='column'>Distro: {superProperties.distro || 'n/a'}</div>
|
|
|
|
|
)}
|
|
|
|
|
<div className='column'>Release Channel: {superProperties.release_channel}</div>
|
|
|
|
|
<div className='column'>App Version: {superProperties.client_version}</div>
|
|
|
|
|
<div className='column'>Build Number: {superProperties.client_build_number}</div>
|
|
|
|
|
<div className='column'>Build ID: {window.GLOBAL_ENV.SENTRY_TAGS.buildId}</div>
|
|
|
|
|
<div className='column'>Experiments: {experimentOverrides} / {availableExperiments}</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<b>Process Versions</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>React: {React.version}</div>
|
|
|
|
|
{[ 'electron', 'chrome', 'node' ].map(proc =>
|
|
|
|
|
<div className='column'>{proc.charAt(0).toUpperCase() + proc.slice(1)}: {process.versions[proc]}</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
return (
|
|
|
|
|
<FormNotice
|
|
|
|
|
type={FormNotice.Types.PRIMARY}
|
|
|
|
|
body={<div className={ joinClassNames('vz-updater-debug-info', { copied: copyText === Messages.COPIED })}>
|
|
|
|
|
<code>
|
|
|
|
|
<b>System / Discord</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>Locale: {chosenLocale}</div>
|
|
|
|
|
<div className='column'>OS: {(window.platform.os).toString()}</div>
|
|
|
|
|
<div className='column'>Architecture: {superProperties.os_arch}</div>
|
|
|
|
|
{process.platform === 'linux' && (
|
|
|
|
|
<div className='column'>Distro: {superProperties.distro || 'n/a'}</div>
|
|
|
|
|
)}
|
|
|
|
|
<div className='column'>Release Channel: {superProperties.release_channel}</div>
|
|
|
|
|
<div className='column'>App Version: {superProperties.client_version}</div>
|
|
|
|
|
<div className='column'>Build Number: {superProperties.client_build_number}</div>
|
|
|
|
|
<div className='column'>Build ID: {window.GLOBAL_ENV.SENTRY_TAGS.buildId}</div>
|
|
|
|
|
<div className='column'>Experiments: {experimentOverrides} / {availableExperiments}</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<b>Vizality</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>Commands: {vizality.api.commands.getAllCommands().length}</div>
|
|
|
|
|
<div className='column'>Settings: {Object.keys(vizality.api.settings?.store?.getAllSettings()).length}</div>
|
|
|
|
|
<div className='column'>Plugins: {vizality.manager.plugins.getEnabledKeys().length} / {vizality.manager.plugins.count}
|
|
|
|
|
<b>Process Versions</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>React: {React.version}</div>
|
|
|
|
|
{[ 'electron', 'chrome', 'node' ].map(proc =>
|
|
|
|
|
<div className='column'>{proc.charAt(0).toUpperCase() + proc.slice(1)}: {process.versions[proc]}</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
<div className='column'>Themes: {vizality.manager.themes.getEnabledKeys().length} / {vizality.manager.themes.count}
|
|
|
|
|
|
|
|
|
|
<b>Vizality</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>Commands: {vizality.api.commands.getAllCommands().length}</div>
|
|
|
|
|
<div className='column'>Settings: {Object.keys(vizality.api.settings?.store?.getAllSettings()).length}</div>
|
|
|
|
|
<div className='column'>Plugins: {vizality.manager.plugins.getEnabledKeys().length} / {vizality.manager.plugins.count}
|
|
|
|
|
</div>
|
|
|
|
|
<div className='column'>Themes: {vizality.manager.themes.getEnabledKeys().length} / {vizality.manager.themes.count}
|
|
|
|
|
</div>
|
|
|
|
|
<div className='column'>Cached Files: {cachedFiles}</div>
|
|
|
|
|
<div className='column'>APIs: {vizality.manager.apis._apis.length}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className='column'>Cached Files: {cachedFiles}</div>
|
|
|
|
|
<div className='column'>APIs: {vizality.manager.apis._apis.length}</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<b>Git</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>Upstream: {vizality.git.upstream.replace(Repositories.VIZALITY, 'Official')}</div>
|
|
|
|
|
<div className='column'>Revision:
|
|
|
|
|
<a
|
|
|
|
|
href={`https://github.com/${vizality.git.upstream}/commit/${vizality.git.revision}`}
|
|
|
|
|
target='_blank'
|
|
|
|
|
>
|
|
|
|
|
[{vizality.git.revision.substring(0, 7)}]
|
|
|
|
|
</a>
|
|
|
|
|
<b>Git</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
<div className='column'>Upstream: {vizality.git.upstream.replace(Repositories.VIZALITY, 'Official')}</div>
|
|
|
|
|
<div className='column'>Revision:
|
|
|
|
|
<a
|
|
|
|
|
href={`https://github.com/${vizality.git.upstream}/commit/${vizality.git.revision}`}
|
|
|
|
|
target='_blank'
|
|
|
|
|
>
|
|
|
|
|
[{vizality.git.revision.substring(0, 7)}]
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div className='column'>Branch: {vizality.git.branch}</div>
|
|
|
|
|
<div className='column'>{`Latest:\n${!vizality.manager.builtins.get('updater').settings.get('updates', []).find(update => update.updateId === 'vizality')}`}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className='column'>Branch: {vizality.git.branch}</div>
|
|
|
|
|
<div className='column'>{`Latest:\n${!vizality.manager.builtins.get('updater').settings.get('updates', []).find(update => update.updateId === 'vizality')}`}</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<b>Listings</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
{createPathReveal('Vizality Path', vizality.dir)}
|
|
|
|
|
{createPathReveal('Discord Path', discordPath)}
|
|
|
|
|
<div className='full-column'>Experiments: {experimentOverrides ? Object.keys(getExperimentOverrides()).join(', ') : 'n/a'}</div>
|
|
|
|
|
<div className='full-column'>
|
|
|
|
|
Plugins:
|
|
|
|
|
{(plugins.length > 6 ? `${(pluginsRevealed ? plugins : plugins.slice(0, 6)).join(', ')}` : plugins.join(', ')) || 'n/a'}
|
|
|
|
|
{plugins.length > 6 &&
|
|
|
|
|
<Clickable tag='a' onClick={() => setPluginsRevealed(!pluginsRevealed)}>
|
|
|
|
|
{pluginsRevealed ? 'Show less' : 'Show more'}
|
|
|
|
|
</Clickable>}
|
|
|
|
|
<b>Listings</b>
|
|
|
|
|
<div className='row'>
|
|
|
|
|
{createPathReveal('Vizality Path', vizality.dir)}
|
|
|
|
|
{createPathReveal('Discord Path', discordPath)}
|
|
|
|
|
<div className='full-column'>Experiments: {experimentOverrides ? Object.keys(getExperimentOverrides()).join(', ') : 'n/a'}</div>
|
|
|
|
|
<div className='full-column'>
|
|
|
|
|
Plugins:
|
|
|
|
|
{(plugins.length > 6 ? `${(pluginsRevealed ? plugins : plugins.slice(0, 6)).join(', ')}` : plugins.join(', ')) || 'n/a'}
|
|
|
|
|
{plugins.length > 6 &&
|
|
|
|
|
<Clickable tag='a' onClick={() => {
|
|
|
|
|
try {
|
|
|
|
|
setPluginsRevealed(!pluginsRevealed);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
builtin.error(err);
|
|
|
|
|
}
|
|
|
|
|
}}>
|
|
|
|
|
{pluginsRevealed ? 'Show less' : 'Show more'}
|
|
|
|
|
</Clickable>}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</code>
|
|
|
|
|
<Button
|
|
|
|
|
size={Button.Sizes.SMALL}
|
|
|
|
|
color={copyText === Messages.COPIED ? Button.Colors.GREEN : Button.Colors.BRAND}
|
|
|
|
|
onClick={() => handleDebugInfoCopy()}
|
|
|
|
|
>
|
|
|
|
|
{copyText}
|
|
|
|
|
</Button>
|
|
|
|
|
</div>}
|
|
|
|
|
/>;
|
|
|
|
|
</code>
|
|
|
|
|
<Button
|
|
|
|
|
size={Button.Sizes.SMALL}
|
|
|
|
|
color={copyText === Messages.COPIED ? Button.Colors.GREEN : Button.Colors.BRAND}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
try {
|
|
|
|
|
handleDebugInfoCopy();
|
|
|
|
|
} catch (err) {
|
|
|
|
|
builtin.error(err);
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{copyText}
|
|
|
|
|
</Button>
|
|
|
|
|
</div>}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const items = [
|
|
|
|
@ -200,7 +214,13 @@ export default memo(({ builtin, search = '' }) => {
|
|
|
|
|
<SwitchItem
|
|
|
|
|
description={Messages.VIZALITY_SETTINGS_TRANSPARENT_WINDOW_DESC}
|
|
|
|
|
value={transparentWindow}
|
|
|
|
|
onChange={() => setTransparentWindow(!transparentWindow)}
|
|
|
|
|
onChange={() => {
|
|
|
|
|
try {
|
|
|
|
|
setTransparentWindow(!transparentWindow);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
builtin.error(err);
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
info={Messages.VIZALITY_SETTINGS_TRANSPARENT_WINDOW_INFO.format()}
|
|
|
|
|
requiresRestart
|
|
|
|
|
>
|
|
|
|
@ -218,7 +238,13 @@ export default memo(({ builtin, search = '' }) => {
|
|
|
|
|
note={Messages.VIZALITY_SETTINGS_CACHE_VIZALITY_DESC}
|
|
|
|
|
button={isVizalityCacheCleared ? Messages.VIZALITY_SETTINGS_CACHE_CLEARED : Messages.VIZALITY_SETTINGS_CACHE_VIZALITY}
|
|
|
|
|
success={isVizalityCacheCleared}
|
|
|
|
|
onClick={() => clearVizalityCache()}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
try {
|
|
|
|
|
clearVizalityCache();
|
|
|
|
|
} catch (err) {
|
|
|
|
|
builtin.error(err);
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Messages.VIZALITY_SETTINGS_CACHE_VIZALITY}
|
|
|
|
|
</ButtonItem>
|
|
|
|
@ -234,7 +260,13 @@ export default memo(({ builtin, search = '' }) => {
|
|
|
|
|
note={Messages.VIZALITY_SETTINGS_CACHE_DISCORD_DESC}
|
|
|
|
|
button={isDiscordCacheCleared ? Messages.VIZALITY_SETTINGS_CACHE_CLEARED : Messages.VIZALITY_SETTINGS_CACHE_DISCORD}
|
|
|
|
|
success={isDiscordCacheCleared}
|
|
|
|
|
onClick={() => clearDiscordCache()}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
try {
|
|
|
|
|
clearDiscordCache();
|
|
|
|
|
} catch (err) {
|
|
|
|
|
builtin.error(err);
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Messages.VIZALITY_SETTINGS_CACHE_DISCORD}
|
|
|
|
|
</ButtonItem>
|
|
|
|
|