diff --git a/.smartconfig.json b/.smartconfig.json index 3126c9e..d3e786c 100644 --- a/.smartconfig.json +++ b/.smartconfig.json @@ -14,7 +14,7 @@ "outputMode": "bundle", "bundler": "esbuild", "production": true, - "includeFiles": ["./html/**/*.html"] + "includeFiles": ["./html/**/*"] } ] }, @@ -45,7 +45,7 @@ "triggerReload": true, "bundler": "esbuild", "production": false, - "includeFiles": ["./html/**/*.html"] + "includeFiles": ["./html/**/*"] } ] }, @@ -62,6 +62,7 @@ "legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n" }, "@git.zone/cli": { + "schemaVersion": 2, "projectType": "service", "module": { "githost": "code.foss.global", @@ -98,6 +99,15 @@ "backend", "security" ] + }, + "release": { + "targets": { + "docker": { + "enabled": true, + "engine": "tsdocker", + "patterns": [] + } + } } } } diff --git a/changelog.md b/changelog.md index 32348f6..90f89ba 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,13 @@ ## Pending +### Fixes + +- clean up Cloudly dashboard console and asset errors + - replace invalid Lucide icon references in table actions and context menu items + - add PWA manifest and local SVG favicon assets to avoid 404s + - align local Cloudly custom element tags with canonical kebab-case names + - remove noisy frontend debug logging from login and revenue checks ## 2026-05-21 - 5.7.0 diff --git a/html/favicon.svg b/html/favicon.svg new file mode 100644 index 0000000..880372e --- /dev/null +++ b/html/favicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/html/index.html b/html/index.html index 0649f86..0dc54df 100644 --- a/html/index.html +++ b/html/index.html @@ -14,7 +14,7 @@ - + @@ -114,7 +114,6 @@ } else { window.revenueEnabled = false; } - console.log(`revenue enabled: ${window.revenueEnabled}`); }; runRevenueCheck(); diff --git a/html/manifest.json b/html/manifest.json new file mode 100644 index 0000000..694166d --- /dev/null +++ b/html/manifest.json @@ -0,0 +1,18 @@ +{ + "name": "Cloudly", + "short_name": "Cloudly", + "description": "Cloudly infrastructure management dashboard", + "start_url": "/", + "scope": "/", + "display": "standalone", + "background_color": "#000000", + "theme_color": "#000000", + "icons": [ + { + "src": "/favicon.svg", + "sizes": "any", + "type": "image/svg+xml", + "purpose": "any maskable" + } + ] +} diff --git a/ts_web/elements/cloudly-dashboard.ts b/ts_web/elements/cloudly-dashboard.ts index 16c4f1c..7fcc896 100644 --- a/ts_web/elements/cloudly-dashboard.ts +++ b/ts_web/elements/cloudly-dashboard.ts @@ -213,7 +213,6 @@ export class CloudlyDashboard extends DeesElement { const simpleLogin = this.shadowRoot!.querySelector('dees-simple-login') as any; simpleLogin.addEventListener('login', (eventArg: Event) => { const loginEvent = eventArg as CustomEvent; - console.log(loginEvent.detail); this.login(loginEvent.detail.data.username, loginEvent.detail.data.password); }); @@ -244,7 +243,7 @@ export class CloudlyDashboard extends DeesElement { plugins.deesCatalog.DeesContextmenu.openContextMenuWithOptions(eventArg, [ { name: 'About', - iconName: 'mugHot', + iconName: 'lucide:Coffee', action: async () => { await plugins.deesCatalog.DeesModal.createAndShow({ heading: 'About', @@ -267,7 +266,6 @@ export class CloudlyDashboard extends DeesElement { // lets deal with initial state const domtools = await this.domtoolsPromise; const loginState = appstate.loginStatePart.getState(); - console.log(loginState); if (loginState?.identity) { this.identity = loginState.identity; try { @@ -284,7 +282,6 @@ export class CloudlyDashboard extends DeesElement { private async login(username: string, password: string) { const domtools = await this.domtoolsPromise; - console.log(`attempting to login...`); const simpleLogin = this.shadowRoot!.querySelector('dees-simple-login') as any; const form = simpleLogin.shadowRoot.querySelector('dees-form') as any; form.setStatus('pending', 'Logging in...'); @@ -293,7 +290,6 @@ export class CloudlyDashboard extends DeesElement { password, }); if (state?.identity) { - console.log('got jwt'); this.identity = state.identity; form.setStatus('success', 'Logged in!'); await simpleLogin.switchToSlottedContent(); diff --git a/ts_web/elements/views/baseos/index.ts b/ts_web/elements/views/baseos/index.ts index 08a17b0..1212258 100644 --- a/ts_web/elements/views/baseos/index.ts +++ b/ts_web/elements/views/baseos/index.ts @@ -23,7 +23,7 @@ const sourcePresetArchitectures: Record = { 'balena-raspberrypi4-64': 'rpi', }; -@customElement('cloudly-view-baseos') +@customElement('cloudly-view-base-os') export class CloudlyViewBaseOs extends DeesElement { @state() private accessor builds: TBaseOsImageBuild[] = []; @state() private accessor isLoading = false; @@ -300,6 +300,6 @@ export class CloudlyViewBaseOs extends DeesElement { declare global { interface HTMLElementTagNameMap { - 'cloudly-view-baseos': CloudlyViewBaseOs; + 'cloudly-view-base-os': CloudlyViewBaseOs; } } diff --git a/ts_web/elements/views/externalregistries/index.ts b/ts_web/elements/views/externalregistries/index.ts index f102956..31a2f07 100644 --- a/ts_web/elements/views/externalregistries/index.ts +++ b/ts_web/elements/views/externalregistries/index.ts @@ -12,7 +12,7 @@ import { import * as appstate from '../../../appstate.js'; -@customElement('cloudly-view-externalregistries') +@customElement('cloudly-view-external-registries') export class CloudlyViewExternalRegistries extends DeesElement { @state() private accessor data: appstate.IDataState = { secretGroups: [], secretBundles: [], externalRegistries: [] } as any; @@ -114,4 +114,4 @@ export class CloudlyViewExternalRegistries extends DeesElement { } } -declare global { interface HTMLElementTagNameMap { 'cloudly-view-externalregistries': CloudlyViewExternalRegistries; } } +declare global { interface HTMLElementTagNameMap { 'cloudly-view-external-registries': CloudlyViewExternalRegistries; } } diff --git a/ts_web/elements/views/images/index.ts b/ts_web/elements/views/images/index.ts index fbbacae..3825d1d 100644 --- a/ts_web/elements/views/images/index.ts +++ b/ts_web/elements/views/images/index.ts @@ -64,7 +64,7 @@ export class CloudlyViewImages extends DeesElement { { name: 'edit', type: ['contextmenu', 'inRow', 'doubleClick'], - iconName: 'penToSquare', + iconName: 'lucide:SquarePen', actionFunc: async (dataArg: plugins.deesCatalog.ITableActionDataArg) => { const environmentsArray: Array = []; for (const environmentName of Object.keys(dataArg.item.data.environments)) { @@ -94,7 +94,7 @@ export class CloudlyViewImages extends DeesElement { }, { name: 'history', - iconName: 'clockRotateLeft', + iconName: 'lucide:History', type: ['contextmenu', 'inRow'], actionFunc: async (dataArg: plugins.deesCatalog.ITableActionDataArg) => { const historyArray: Array<{ environment: string; value: string; }> = []; diff --git a/ts_web/elements/views/secretbundles/index.ts b/ts_web/elements/views/secretbundles/index.ts index d221653..5773d56 100644 --- a/ts_web/elements/views/secretbundles/index.ts +++ b/ts_web/elements/views/secretbundles/index.ts @@ -12,7 +12,7 @@ import { import * as appstate from '../../../appstate.js'; -@customElement('cloudly-view-secretbundles') +@customElement('cloudly-view-secret-bundles') export class CloudlyViewSecretBundles extends DeesElement { @state() private accessor data: appstate.IDataState = {} as any; @@ -63,7 +63,7 @@ export class CloudlyViewSecretBundles extends DeesElement {
${actionDataArg.item.id}
`, menuOptions: [ { name: 'cancel', action: async (modalArg: any) => { await modalArg.destroy(); } }, { name: 'delete', action: async (modalArg: any) => { appstate.dataState.dispatchAction(appstate.deleteSecretBundleAction, { configBundleId: actionDataArg.item.id, }); await modalArg.destroy(); } } ] }); } }, - { name: 'edit', iconName: 'penToSquare', type: ['doubleClick', 'contextmenu', 'inRow'], actionFunc: async () => { + { name: 'edit', iconName: 'lucide:SquarePen', type: ['doubleClick', 'contextmenu', 'inRow'], actionFunc: async () => { await plugins.deesCatalog.DeesModal.createAndShow({ heading: 'Edit SecretBundle', content: html``, menuOptions: [ { name: 'save', action: async (modalArg: any) => {} }, { name: 'cancel', action: async (modalArg: any) => { modalArg.destroy(); } } ] }); } }, ] as plugins.deesCatalog.ITableAction[]} @@ -72,4 +72,4 @@ export class CloudlyViewSecretBundles extends DeesElement { } } -declare global { interface HTMLElementTagNameMap { 'cloudly-view-secretbundles': CloudlyViewSecretBundles; } } +declare global { interface HTMLElementTagNameMap { 'cloudly-view-secret-bundles': CloudlyViewSecretBundles; } } diff --git a/ts_web/elements/views/secretgroups/index.ts b/ts_web/elements/views/secretgroups/index.ts index 5d0ebf0..eed71bf 100644 --- a/ts_web/elements/views/secretgroups/index.ts +++ b/ts_web/elements/views/secretgroups/index.ts @@ -5,7 +5,7 @@ import { DeesElement, customElement, html, state, css, cssManager } from '@desig import * as appstate from '../../../appstate.js'; -@customElement('cloudly-view-secretsgroups') +@customElement('cloudly-view-secret-groups') export class CloudlyViewSecretGroups extends DeesElement { @state() private accessor data: appstate.IDataState = {} as any; @@ -46,7 +46,7 @@ export class CloudlyViewSecretGroups extends DeesElement { `, menuOptions: [ { name: 'cancel', action: async (modalArg: any) => { await modalArg.destroy(); } }, { name: 'save', action: async (modalArg: any) => { const deesForm = modalArg.shadowRoot.querySelector('dees-form'); const formData = await deesForm.collectFormData(); const environments: plugins.interfaces.data.ISecretGroup['data']['environments'] = {}; for (const itemArg of formData['environments'] as any[]) { environments[itemArg.environment] = { value: itemArg.value, history: [], lastUpdated: Date.now(), }; } await appstate.dataState.dispatchAction(appstate.createSecretGroupAction, { data: { name: formData['data.name'] as string, description: formData['data.description'] as string, key: formData['data.key'] as string, environments, tags: [], }, }); await modalArg.destroy(); } } ] }); } }, - { name: 'edit', type: ['contextmenu', 'inRow', 'doubleClick'], iconName: 'penToSquare', actionFunc: async (dataArg: plugins.deesCatalog.ITableActionDataArg) => { + { name: 'edit', type: ['contextmenu', 'inRow', 'doubleClick'], iconName: 'lucide:SquarePen', actionFunc: async (dataArg: plugins.deesCatalog.ITableActionDataArg) => { const environmentsArray: Array = []; for (const environmentName of Object.keys(dataArg.item.data.environments)) { environmentsArray.push({ environment: environmentName, ...dataArg.item.data.environments[environmentName], }); } await plugins.deesCatalog.DeesModal.createAndShow({ heading: 'Edit Secret', content: html` @@ -60,7 +60,7 @@ export class CloudlyViewSecretGroups extends DeesElement { `, menuOptions: [ { name: 'Cancel', iconName: undefined, action: async (modalArg: any) => { await modalArg.destroy(); } }, { name: 'Save', iconName: undefined, action: async (modalArg: any) => { const data = await modalArg.shadowRoot.querySelector('dees-form').collectFormData(); console.log(data); } } ] }); } }, - { name: 'history', iconName: 'clockRotateLeft', type: ['contextmenu', 'inRow'], actionFunc: async (dataArg: plugins.deesCatalog.ITableActionDataArg) => { + { name: 'history', iconName: 'lucide:History', type: ['contextmenu', 'inRow'], actionFunc: async (dataArg: plugins.deesCatalog.ITableActionDataArg) => { const historyArray: Array<{ environment: string; value: string; }> = []; for (const environment of Object.keys(dataArg.item.data.environments)) { for (const historyItem of dataArg.item.data.environments[environment].history) { historyArray.push({ environment, value: historyItem.value, }); } } await plugins.deesCatalog.DeesModal.createAndShow({ heading: `history for ${dataArg.item.data.key}`, content: html`) => { console.log('delete', itemArg); }, }] as plugins.deesCatalog.ITableAction[]}>`, menuOptions: [ { name: 'close', action: async (modalArg: any) => { await modalArg.destroy(); } } ] }); } }, @@ -73,4 +73,4 @@ export class CloudlyViewSecretGroups extends DeesElement { } } -declare global { interface HTMLElementTagNameMap { 'cloudly-view-secretsgroups': CloudlyViewSecretGroups; } } +declare global { interface HTMLElementTagNameMap { 'cloudly-view-secret-groups': CloudlyViewSecretGroups; } }