From 5b819fa409f2588e2c386873e6cf0aa61872afe5 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 21 Jun 2023 17:59:59 -0500 Subject: [PATCH] refactor: theme, colors --- _data/serverState.ts | 44 +++++++++++++------ components/Auth.ce.vue | 4 +- components/Brand/Avatar.vue | 4 +- components/Brand/Button.vue | 4 +- components/DownloadApiLogs.ce.vue | 2 +- components/KeyActions.ce.vue | 2 +- components/Modal.vue | 16 ++++++- components/UserProfile.ce.vue | 12 +++-- components/UserProfile/CallbackFeedback.vue | 24 +++++----- .../UserProfile/DropdownConnectStatus.vue | 4 +- components/UserProfile/DropdownError.vue | 2 +- components/UserProfile/DropdownItem.vue | 4 +- components/UserProfile/DropdownLaunchpad.vue | 2 +- components/UserProfile/DropdownTrigger.vue | 4 +- components/UserProfile/DropdownWrapper.vue | 2 +- components/UserProfile/Keyline.vue | 2 +- components/UserProfile/Promo.vue | 2 +- components/UserProfile/ServerState.vue | 4 +- components/WanIpCheck.ce.vue | 2 +- store/callbackActions.ts | 16 ++++++- store/server.ts | 1 + tailwind.config.ts | 6 +-- types/server.ts | 1 + 23 files changed, 106 insertions(+), 58 deletions(-) diff --git a/_data/serverState.ts b/_data/serverState.ts index 6cbf9bc2b..8bd75eafb 100644 --- a/_data/serverState.ts +++ b/_data/serverState.ts @@ -37,21 +37,39 @@ if (state === 'TRIAL') expireTime = Date.now() + 60 * 60 * 1000; // in 1 hour if (state === 'EEXPIRED') expireTime = uptime; // 1 hour ago const serverState = { - // avatar: '', - avatar: 'https://source.unsplash.com/300x300/?portrait', - name: 'DevServer9000', - description: 'Fully automated media server', - guid: randomGuid, - deviceCount: 8, + "apiKey": "unupc_12312313123", + "avatar": "https://source.unsplash.com/300x300/?portrait", + "description": "DevServer9000", + "deviceCount": "3", expireTime, - lanIp: '192.168.0.1', - locale: 'en', - pluginInstalled: true, - registered: true, - site: 'http://localhost:4321', - state, + "flashProduct": "SanDisk_3.2Gen1", + "flashVendor": "USB", + "guid": "0781-5583-8355-81071A2B0211", + "keyfile": "DUMMY_KEYFILE", + "lanIp": "192.168.254.36", + "license": "", + "locale": "en_US", + "name": "fuji", + // "pluginInstalled": "dynamix.unraid.net.staging.plg", + "pluginInstalled": false, + "registered": true, + "regGen": 0, + "regGuid": "0781-5583-8355-81071A2B0211", + "site": "http://localhost:4321", + "state": state, + "theme": { + "banner": false, + "bannerGradient": false, + "bgColor": "", + "descriptionShow": true, + "metaColor": "", + "name": "black", + // "name": "white", + "textColor": "" + }, uptime, - username: 'zspearmint' + "username": "zspearmint", + "wanFQDN": "" }; export default serverState; \ No newline at end of file diff --git a/components/Auth.ce.vue b/components/Auth.ce.vue index 3f36f79c4..ef9b8ed7a 100644 --- a/components/Auth.ce.vue +++ b/components/Auth.ce.vue @@ -27,7 +27,7 @@ const button = computed(() => {