diff --git a/app.vue b/app.vue index ebb9f7ad2..2a9197d4b 100644 --- a/app.vue +++ b/app.vue @@ -13,6 +13,7 @@ onBeforeMount(() => {

Vue Components

+ @@ -23,6 +24,7 @@ onBeforeMount(() => {

Web Components

+ diff --git a/components/ApiLogs.ce.vue b/components/ApiLogs.ce.vue new file mode 100644 index 000000000..3a9126db6 --- /dev/null +++ b/components/ApiLogs.ce.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/helpers/urls.ts b/helpers/urls.ts index 643fbdf96..640046cb5 100644 --- a/helpers/urls.ts +++ b/helpers/urls.ts @@ -4,6 +4,7 @@ const ACCOUNT = 'https://account.unraid.net'; const CONNECT_DOCS = 'https://docs.unraid.net/category/unraid-connect'; const CONNECT_DASHBOARD = 'https://connect.myunraid.net'; +const DEV_GRAPH_URL = ''; const PURCHASE = 'https://unraid.net/preflight'; const PLUGIN_SETTINGS = '/Settings/ManagementAccess#UnraidNetSettings'; @@ -11,6 +12,7 @@ export { ACCOUNT, CONNECT_DASHBOARD, CONNECT_DOCS, + DEV_GRAPH_URL, PURCHASE, PLUGIN_SETTINGS, }; \ No newline at end of file diff --git a/store/server.ts b/store/server.ts index ef9b64f4b..8f72100d1 100644 --- a/store/server.ts +++ b/store/server.ts @@ -16,6 +16,7 @@ export const useServerStore = defineStore('server', () => { * State */ const avatar = ref(''); // @todo potentially move to a user store + const apiKey = ref(''); // @todo potentially move to a user store const description = ref(''); const deviceCount = ref(0); const expireTime = ref(0); @@ -50,6 +51,7 @@ export const useServerStore = defineStore('server', () => { const server = computed(():Server => { return { + apiKey: apiKey.value, avatar: avatar.value, description: description.value, deviceCount: deviceCount.value, @@ -204,6 +206,7 @@ export const useServerStore = defineStore('server', () => { */ const setServer = (data: Server) => { console.debug('[setServer]', data); + if (data?.apiKey) apiKey.value = data.apiKey; if (data?.avatar) avatar.value = data.avatar; if (data?.description) description.value = data.description; if (data?.deviceCount) deviceCount.value = data.deviceCount; @@ -229,6 +232,7 @@ export const useServerStore = defineStore('server', () => { return { // state + apiKey, avatar, description, deviceCount, diff --git a/types/server.ts b/types/server.ts index ea6db28e6..2deb79d72 100644 --- a/types/server.ts +++ b/types/server.ts @@ -20,6 +20,7 @@ export enum ServerState { ENOCONN = 'ENOCONN', } export interface Server { + apiKey?: string; avatar?: string; description?: string; deviceCount?: number;