mirror of
https://github.com/unraid/api.git
synced 2026-01-04 15:39:52 -06:00
refactor: config error messages (#862)
This commit is contained in:
@@ -46,9 +46,9 @@ import type {
|
||||
|
||||
// '1111-1111-5GDB-123412341234' Starter.key = TkJCrVyXMLWWGKZF6TCEvf0C86UYI9KfUDSOm7JoFP19tOMTMgLKcJ6QIOt9_9Psg_t0yF-ANmzSgZzCo94ljXoPm4BESFByR0K7nyY9KVvU8szLEUcBUT3xC2adxLrAXFNxiPeK-mZqt34n16uETKYvLKL_Sr5_JziG5L5lJFBqYZCPmfLMiguFo1vp0xL8pnBH7q8bYoBnePrAcAVb9mAGxFVPEInSPkMBfC67JLHz7XY1Y_K5bYIq3go9XPtLltJ53_U4BQiMHooXUBJCKXodpqoGxq0eV0IhNEYdauAhnTsG90qmGZig0hZalQ0soouc4JZEMiYEcZbn9mBxPg
|
||||
|
||||
const state: ServerState = 'STARTER';
|
||||
const currentFlashGuid = '1111-1111-SDFF-TEST1234ZACK'; // this is the flash drive that's been booted from
|
||||
const regGuid = '1111-1111-SDFF-TEST1234ZACK'; // this guid is registered in key server
|
||||
const state: ServerState = 'TRIAL';
|
||||
const currentFlashGuid = '1111-1111-NUIK-TEST1234ZACK'; // this is the flash drive that's been booted from
|
||||
const regGuid = '1111-1111-NUIK-TEST1234ZACK'; // this guid is registered in key server
|
||||
const keyfileBase64 = ''; // @todo raycast download key to base64
|
||||
|
||||
// const randomGuid = `1111-1111-${makeid(4)}-123412341234`; // this guid is registered in key server
|
||||
@@ -145,7 +145,7 @@ export const serverState: Server = {
|
||||
},
|
||||
connectPluginInstalled,
|
||||
description: 'DevServer9000',
|
||||
deviceCount: 8,
|
||||
deviceCount: 3,
|
||||
expireTime,
|
||||
flashBackupActivated: !!connectPluginInstalled,
|
||||
flashProduct: 'SanDisk_3.2Gen1',
|
||||
|
||||
@@ -691,14 +691,14 @@ export const useServerStore = defineStore('server', () => {
|
||||
const serverConfigError = computed((): Error | undefined => {
|
||||
if (!config.value?.valid && config.value?.error) {
|
||||
switch (config.value?.error) {
|
||||
case 'UNKNOWN_ERROR':
|
||||
return {
|
||||
heading: 'Unknown Error',
|
||||
level: 'error',
|
||||
message: 'An unknown internal error occurred.',
|
||||
ref: 'configError',
|
||||
type: 'server',
|
||||
};
|
||||
// case 'UNKNOWN_ERROR':
|
||||
// return {
|
||||
// heading: 'Unknown Error',
|
||||
// level: 'error',
|
||||
// message: 'An unknown internal error occurred.',
|
||||
// ref: 'configError',
|
||||
// type: 'server',
|
||||
// };
|
||||
case 'INELIGIBLE':
|
||||
return {
|
||||
heading: 'Ineligible for OS Version',
|
||||
@@ -716,7 +716,7 @@ export const useServerStore = defineStore('server', () => {
|
||||
return {
|
||||
heading: 'Too Many Devices',
|
||||
level: 'error',
|
||||
message: 'You have exceeded the number of devices allowed for your license. Please remove a device before adding another or upgrade your key to support more devices.',
|
||||
message: 'You have exceeded the number of devices allowed for your license. Please remove a device to start the array, or upgrade your key to support more devices.',
|
||||
ref: 'configError',
|
||||
type: 'server',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user