From bc6bdfa0ffa903d27f518c02981d3df1b0ee50d3 Mon Sep 17 00:00:00 2001 From: Weedshaker Date: Tue, 12 Dec 2023 10:25:07 +0100 Subject: [PATCH] versioning sub --- src/es/chat | 2 +- src/es/components/pages/Chat.js | 45 +++++++++++++++++++++----------- src/es/components/pages/Index.js | 21 ++++++++++----- src/es/web-components-toolbox | 2 +- 4 files changed, 46 insertions(+), 24 deletions(-) diff --git a/src/es/chat b/src/es/chat index b4082aa..5b6990d 160000 --- a/src/es/chat +++ b/src/es/chat @@ -1 +1 @@ -Subproject commit b4082aa2a6986f1aac94df7bf24fc0a545675af1 +Subproject commit 5b6990d7927a07474c7ff4c945842cd01611b510 diff --git a/src/es/components/pages/Chat.js b/src/es/components/pages/Chat.js index 2e6b512..411aea6 100644 --- a/src/es/components/pages/Chat.js +++ b/src/es/components/pages/Chat.js @@ -33,72 +33,87 @@ export default class Chat extends Index { renderHTML () { return this.fetchModules([ { - path: `${this.importMetaUrl}../organisms/header/Header.js`, + // @ts-ignore + path: `${this.importMetaUrl}../organisms/header/Header.js?${Environment?.version || ''}`, name: 'o-header' }, { - path: `${this.importMetaUrl}../atoms/logo/Logo.js`, + // @ts-ignore + path: `${this.importMetaUrl}../atoms/logo/Logo.js?${Environment?.version || ''}`, name: 'a-logo' }, { - path: `${this.importMetaUrl}../organisms/body/Body.js`, + // @ts-ignore + path: `${this.importMetaUrl}../organisms/body/Body.js?${Environment?.version || ''}`, name: 'o-body' }, { - path: `${this.importMetaUrl}../organisms/footer/Footer.js`, + // @ts-ignore + path: `${this.importMetaUrl}../organisms/footer/Footer.js?${Environment?.version || ''}`, name: 'o-footer' }, { - path: `${this.importMetaUrl}../atoms/iconChat/IconChat.js`, + // @ts-ignore + path: `${this.importMetaUrl}../atoms/iconChat/IconChat.js?${Environment?.version || ''}`, name: 'a-icon-chat' }, { - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/src/es/EventDrivenYjs.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/src/es/EventDrivenYjs.js?${Environment?.version || ''}`, name: 'c-event-driven-yjs' }, { - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/src/es/controllers/Providers.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/src/es/controllers/Providers.js?${Environment?.version || ''}`, name: 'c-providers' }, { - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/src/es/controllers/Users.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/src/es/controllers/Users.js?${Environment?.version || ''}`, name: 'c-users' }, { // TODO: yjs-awareness-change is inside yjs-details-awareness-change, this has nickname and room name functionality, which has to be split to one: user class and two: room class // TODO: Example artifact, properly redo with https://github.com/feross/p2p-graph event-driven-web-components-yjs/readme.md - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleOne/AwarenessChange.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleOne/AwarenessChange.js?${Environment?.version || ''}`, name: 'yjs-awareness-change' }, { // TODO: Example artifact, properly redo with https://github.com/feross/p2p-graph event-driven-web-components-yjs/readme.md - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/DetailsAwarenessChange.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/DetailsAwarenessChange.js?${Environment?.version || ''}`, name: 'yjs-details-awareness-change' }, { // TODO: chat and chat update are typically view and model/controller in the chat repo, properly split to mvc // TODO: Example artifact, properly redo and move to chat sub-repo - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/controllers/YjsChat.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/controllers/YjsChat.js?${Environment?.version || ''}`, name: 'c-yjs-chat' }, { // TODO: Example artifact, properly redo and move to chat sub-repo - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/YjsChatUpdate.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/YjsChatUpdate.js?${Environment?.version || ''}`, name: 'yjs-chat-update' }, { // TODO: Example artifact, properly redo - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/Room.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/Room.js?${Environment?.version || ''}`, name: 'yjs-room' }, { // TODO: Example artifact, properly redo - path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/ShareApi.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../event-driven-web-components-yjs/tests/exampleTwo/ShareApi.js?${Environment?.version || ''}`, name: 'yjs-share-api' }, { // TODO NEXT: Example artifact, properly redo - path: `${this.importMetaUrl}../../chat/es/components/atoms/Input.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../chat/es/components/atoms/Input.js?${Environment?.version || ''}`, name: 'chat-input' } ]).then((children) => { diff --git a/src/es/components/pages/Index.js b/src/es/components/pages/Index.js index 90b5738..35354e0 100644 --- a/src/es/components/pages/Index.js +++ b/src/es/components/pages/Index.js @@ -120,31 +120,38 @@ export default class Index extends Mutation() { renderHTML () { return this.fetchModules([ { - path: `${this.importMetaUrl}../organisms/header/Header.js`, + // @ts-ignore + path: `${this.importMetaUrl}../organisms/header/Header.js?${Environment?.version || ''}`, name: 'o-header' }, { - path: `${this.importMetaUrl}../atoms/logo/Logo.js`, + // @ts-ignore + path: `${this.importMetaUrl}../atoms/logo/Logo.js?${Environment?.version || ''}`, name: 'a-logo' }, { - path: `${this.importMetaUrl}../organisms/body/Body.js`, + // @ts-ignore + path: `${this.importMetaUrl}../organisms/body/Body.js?${Environment?.version || ''}`, name: 'o-body' }, { - path: `${this.importMetaUrl}../organisms/footer/Footer.js`, + // @ts-ignore + path: `${this.importMetaUrl}../organisms/footer/Footer.js?${Environment?.version || ''}`, name: 'o-footer' }, { - path: `${this.importMetaUrl}../atoms/iconChat/IconChat.js`, + // @ts-ignore + path: `${this.importMetaUrl}../atoms/iconChat/IconChat.js?${Environment?.version || ''}`, name: 'a-icon-chat' }, { - path: `${this.importMetaUrl}../../web-components-toolbox/src/es/components/organisms/grid/Grid.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../web-components-toolbox/src/es/components/organisms/grid/Grid.js?${Environment?.version || ''}`, name: 'o-grid' }, { - path: `${this.importMetaUrl}../../web-components-toolbox/src/es/components/atoms/button/Button.js`, + // @ts-ignore + path: `${this.importMetaUrl}../../web-components-toolbox/src/es/components/atoms/button/Button.js?${Environment?.version || ''}`, name: 'a-button' } ]).then((children) => { diff --git a/src/es/web-components-toolbox b/src/es/web-components-toolbox index d2c21d6..9e32b56 160000 --- a/src/es/web-components-toolbox +++ b/src/es/web-components-toolbox @@ -1 +1 @@ -Subproject commit d2c21d6c2610961264a4688422a36d269f63d148 +Subproject commit 9e32b56d64c86ba1ce19ed091d582b2abc4d90fb