diff --git a/web/_data/serverState.ts b/web/_data/serverState.ts index b0cfd0bee..4dff636e3 100644 --- a/web/_data/serverState.ts +++ b/web/_data/serverState.ts @@ -29,7 +29,7 @@ const randomGuid = `1111-1111-${makeid(4)}-123412341234`; // this guid is regist // EBLACKLISTED1 // EBLACKLISTED2 // ENOCONN -const state: ServerState = 'TRIAL'; +const state: ServerState = 'EEXPIRED'; const uptime = Date.now() - 60 * 60 * 1000; // 1 hour ago let expireTime = 0; diff --git a/web/components/Registration.ce.vue b/web/components/Registration.ce.vue index bbd0fb67b..a7ad6493f 100644 --- a/web/components/Registration.ce.vue +++ b/web/components/Registration.ce.vue @@ -15,6 +15,10 @@ else echo "Third party plugins found - PLEASE CHECK YOUR UNRAID NOTIFICATIONS AND WAIT FOR THE MESSAGE THAT IT IS SAFE TO REBOOT!" fi */ +import { + ShieldCheckIcon, + ShieldExclamationIcon, +} from '@heroicons/vue/24/solid'; import dayjs from 'dayjs' import { storeToRefs } from 'pinia'; import { useI18n } from 'vue-i18n'; @@ -51,41 +55,59 @@ const { const items = computed(() => { return [ - { - label: 'Registered to:', - text: regTo.value, - }, - { - label: 'Registered on:', - text: dayjs(regTm.value).format('YYYY-MM-DD HH:mm'), - }, - { - label: 'Updates Expire:', - text: dayjs(regTm.value).format('YYYY-MM-DD HH:mm'), - }, + ...(regTo.value + ? [ + { + label: 'Registered to', + text: regTo.value, + }, + ] + : [] + ), + ...(regTo.value + ? [ + { + label: 'Registered on', + text: dayjs(regTm.value).format('YYYY-MM-DD HH:mm'), + }, + ] + : [] + ), + /** + * @todo factor in grandfathered users and display a different message + */ + ...(regTo.value + ? [ + { + label: 'Updates Expire', + text: dayjs(regTm.value).format('YYYY-MM-DD HH:mm'), + }, + ] + : [] + ), ...(state.value === 'EGUID' ? [ { - label: 'Registered GUID:', + label: 'Registered GUID', text: regGuid.value, }, ] : [] ), { - label: 'Flash GUID:', + label: 'Flash GUID', text: guid.value, }, { - label: 'Flash Vendor:', + label: 'Flash Vendor', text: flashVendor.value, }, { - label: 'Flash Product:', + label: 'Flash Product', text: flashProduct.value, }, { - label: 'Attached Storage Devices:', + label: 'Attached Storage Devices', text: deviceCount.value, }, ]; @@ -93,38 +115,40 @@ const items = computed(() => {