Skip to content

Commit

Permalink
versioning
Browse files Browse the repository at this point in the history
sub
  • Loading branch information
Weedshaker committed Dec 12, 2023
1 parent 41376b2 commit bc6bdfa
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/es/chat
45 changes: 30 additions & 15 deletions src/es/components/pages/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
21 changes: 14 additions & 7 deletions src/es/components/pages/Index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit bc6bdfa

Please sign in to comment.