mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
chore: cleanup packages (#1198)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated configuration versions and connection status settings for improved consistency. - Restructured build and tooling processes with refined script organization, including new commands for type checking and cleanup. - Updated dependency management to support enhanced styling and state management. - Removed legacy scripts related to environment handling and CSS utilities. - **Refactor** - Streamlined module imports to align with an updated theme management structure. - **Bug Fixes** - Enhanced error handling in various components to provide more informative error messages during operations. - Improved error reporting in the update cancellation process. - Improved error reporting in date difference calculations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -19,6 +19,7 @@ const origins = computed<string[]>(() => {
|
||||
try {
|
||||
const newUrl = new URL(origin.trim());
|
||||
newOrigins.push(newUrl.toString());
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (e) {
|
||||
errors.value.push(`Invalid origin: ${origin}`);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,11 @@ const checkButton = computed((): BrandButtonProps => {
|
||||
return {
|
||||
variant: 'outline',
|
||||
click: () => {
|
||||
props.showExternalDowngrade ? accountStore.downgradeOs() : accountStore.updateOs();
|
||||
if (props.showExternalDowngrade) {
|
||||
accountStore.downgradeOs();
|
||||
} else {
|
||||
accountStore.updateOs();
|
||||
}
|
||||
},
|
||||
icon: ArrowTopRightOnSquareIcon,
|
||||
text: props.t('More options'),
|
||||
|
||||
Reference in New Issue
Block a user