UI improvements

This commit is contained in:
Tamius Han 2025-04-22 02:36:34 +02:00
parent 4aa96bb288
commit 0681c3ae08
3 changed files with 25 additions and 14 deletions

View File

@ -168,11 +168,16 @@ export interface AardSettings {
} }
} }
interface DevSettings {
loadFromSnapshot: boolean,
}
interface SettingsInterface { interface SettingsInterface {
_updateFlags?: { _updateFlags?: {
requireReload?: SettingsReloadFlags, requireReload?: SettingsReloadFlags,
forSite?: string forSite?: string
} }
dev: DevSettings,
arDetect: AardSettings, arDetect: AardSettings,

View File

@ -144,11 +144,13 @@
Site compatibility: Site compatibility:
<SupportLevelIndicator <SupportLevelIndicator
:siteSupportLevel="siteSupportLevel" :siteSupportLevel="siteSupportLevel"
supportLevelStyle="font-size: 0.69rem !important;"
tooltipStyle="font-size: 0.8rem;"
> >
</SupportLevelIndicator> </SupportLevelIndicator>
<div v-if="statusFlags.hasDrm" class="aard-blocked"> <div v-if="statusFlags.hasDrm" class="aard-blocked">
Autodetection potentially<br/> Autodetection blocked<br/>
unavailable due to <a style="color: #fff" href="https://en.wikipedia.org/wiki/Digital_rights_management" target="_blank">DRM</a>. by <a style="color: #fff" href="https://en.wikipedia.org/wiki/Digital_rights_management" target="_blank">DRM</a>.
</div> </div>
<div v-else-if="statusFlags.aardErrors?.cors" class="aard-blocked"> <div v-else-if="statusFlags.aardErrors?.cors" class="aard-blocked">
Autodetection blocked<br/> Autodetection blocked<br/>
@ -156,7 +158,7 @@
</div> </div>
<div v-else-if="statusFlags.aardErrors?.webglError" class="aard-blocked"> <div v-else-if="statusFlags.aardErrors?.webglError" class="aard-blocked">
Autodetection unavailable<br/> Autodetection unavailable<br/>
due to webgl error. (webgl error)
</div> </div>
</GhettoContextMenuItem> </GhettoContextMenuItem>
</div> </div>
@ -483,7 +485,8 @@ export default {
}, },
acknowledgeNewFeature(featureKey) { acknowledgeNewFeature(featureKey) {
delete this.settings.active.newFeatureTracker[featureKey]; this.settings.active.newFeatureTracker[featureKey].show = 0;
this.settings.active.newFeatureTracker[featureKey].acknowledged = true;
this.settings.saveWithoutReload(); this.settings.saveWithoutReload();
}, },
newFeatureViewUpdate(featureKey) { newFeatureViewUpdate(featureKey) {
@ -721,6 +724,7 @@ export default {
} }
.aard-blocked { .aard-blocked {
font-size: 0.8rem;
color: #fa6; color: #fa6;
} }

View File

@ -1,44 +1,44 @@
<template> <template>
<div v-if="siteSupportLevel === 'official'" class="site-support official"> <div v-if="siteSupportLevel === 'official'" class="site-support official" :style="supportLevelStyle">
<mdicon name="check-decagram" /> <mdicon name="check-decagram" />
<div v-if="!small">Verified</div> <div v-if="!small">Verified</div>
<div class="tooltip"> <div class="tooltip" :style="tooltipStyle">
<template v-if="small">Verified&nbsp;&nbsp;</template> <template v-if="small">Verified&nbsp;&nbsp;</template>
The extension is being tested and should work on this site. The extension is being tested and should work on this site.
</div> </div>
</div> </div>
<div v-if="siteSupportLevel === 'community'" class="site-support community"> <div v-if="siteSupportLevel === 'community'" class="site-support community" :style="supportLevelStyle">
<mdicon name="account-group" /> <mdicon name="account-group" />
<div v-if="!small">Community</div> <div v-if="!small">Community</div>
<div class="tooltip"> <div class="tooltip" :style="tooltipStyle">
<template v-if="small">Community&nbsp;&nbsp;</template> <template v-if="small">Community&nbsp;&nbsp;</template>
People say extension works on this site (or have provided help getting the extension to work if it didn't).<br/><br/> People say extension works on this site (or have provided help getting the extension to work if it didn't).<br/><br/>
Tamius (the dev) does not test the extension on this site, probably because it requires a subscription or Tamius (the dev) does not test the extension on this site, probably because it requires a subscription or
is geoblocked. is geoblocked.
</div> </div>
</div> </div>
<div v-if="siteSupportLevel === 'no-support' || siteSupportLevel === 'unknown'" class="site-support no-support"> <div v-if="siteSupportLevel === 'no-support' || siteSupportLevel === 'unknown'" class="site-support no-support" :style="supportLevelStyle">
<mdicon name="help-circle-outline" /> <mdicon name="help-circle-outline" />
<div v-if="!small">Unknown</div> <div v-if="!small">Unknown</div>
<div class="tooltip"> <div class="tooltip" :style="tooltipStyle">
<template v-if="small">Unknown&nbsp;&nbsp;</template> <template v-if="small">Unknown&nbsp;&nbsp;</template>
Not officially supported. Extension will try to fix things, but no promises.<br/><br/> Not officially supported. Extension will try to fix things, but no promises.<br/><br/>
Tamius (the dev) does not test the extension on this site for various reasons Tamius (the dev) does not test the extension on this site for various reasons
(unaware, not using the site, language barrier, geoblocking, paid services Tam doesn't use). (unaware, not using the site, language barrier, geoblocking, paid services Tam doesn't use).
</div> </div>
</div> </div>
<div v-if="siteSupportLevel === 'user-added' || siteSupportLevel === 'user-defined'" class="site-support user-added"> <div v-if="siteSupportLevel === 'user-added' || siteSupportLevel === 'user-defined'" class="site-support user-added" :style="supportLevelStyle">
<mdicon name="account" /> <mdicon name="account" />
<div v-if="!small">Modified by you</div> <div v-if="!small">Modified by you</div>
<div class="tooltip"> <div class="tooltip" :style="tooltipStyle">
<template v-if="small">Modified by you&nbsp;&nbsp;</template> <template v-if="small">Modified by you&nbsp;&nbsp;</template>
You have manually changed settings for this site. The extension is doing what you told it to do. You have manually changed settings for this site. The extension is doing what you told it to do.
</div> </div>
</div> </div>
<div v-if="siteSupportLevel === 'officially-disabled'" class="site-support officially-disabled"> <div v-if="siteSupportLevel === 'officially-disabled'" class="site-support officially-disabled" :style="supportLevelStyle">
<mdicon class="site-support no-support" name="checkbox-marked-circle" /> <mdicon class="site-support no-support" name="checkbox-marked-circle" />
<div v-if="!small">Not supported</div> <div v-if="!small">Not supported</div>
<div class="tooltip"> <div class="tooltip" :style="tooltipStyle">
<template v-if="small">Not supported&nbsp;&nbsp;</template> <template v-if="small">Not supported&nbsp;&nbsp;</template>
Extension is known to not work with this site. Extension is known to not work with this site.
</div> </div>
@ -50,6 +50,8 @@ export default {
props: { props: {
siteSupportLevel: String, siteSupportLevel: String,
small: Boolean, small: Boolean,
supportLevelStyle: String,
tooltipStyle: String,
} }
} }
</script> </script>