From 2e5dcb8e90787df3a4663ef4101ec6a4e462616e Mon Sep 17 00:00:00 2001 From: Zurab Developer <75216044+ZurabDev@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:49:24 +0300 Subject: [PATCH] feat: update doc v4 --- .firebaserc | 11 +++- .github/workflows/beta-publish-ng17.yml | 2 +- .github/workflows/main-publish-ng16.yml | 2 +- .github/workflows/pr-ng17.yml | 2 +- .../workflows/pre-release-publish-ng17.yml | 2 +- .../app/version-manager/versions.constants.ts | 65 ++++++++++++------- package.json | 2 +- package.json.ng17 | 2 +- 8 files changed, 57 insertions(+), 31 deletions(-) diff --git a/.firebaserc b/.firebaserc index 3bacedd614..de9fc132b5 100644 --- a/.firebaserc +++ b/.firebaserc @@ -40,9 +40,18 @@ ], "beta": [ "prizmui-beta" + ], + "v4": [ + "prizm-v4" + ], + "v4-next": [ + "prizm-v4-next" + ], + "v4-beta": [ + "prizm-v4-beta" ] } } }, "etags": {} -} +} \ No newline at end of file diff --git a/.github/workflows/beta-publish-ng17.yml b/.github/workflows/beta-publish-ng17.yml index d4b06a4c8e..1182431ba1 100644 --- a/.github/workflows/beta-publish-ng17.yml +++ b/.github/workflows/beta-publish-ng17.yml @@ -112,7 +112,7 @@ jobs: firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PRIZMUI }}' projectId: prizmui channelId: live - target: v3-beta + target: v4-beta publish-components: needs: build diff --git a/.github/workflows/main-publish-ng16.yml b/.github/workflows/main-publish-ng16.yml index 721e719fac..5ffc566805 100644 --- a/.github/workflows/main-publish-ng16.yml +++ b/.github/workflows/main-publish-ng16.yml @@ -104,7 +104,7 @@ jobs: firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PRIZMUI }}' projectId: prizmui channelId: live - target: main + target: v3 publish-components: needs: build diff --git a/.github/workflows/pr-ng17.yml b/.github/workflows/pr-ng17.yml index db9f332eb8..bed4434fbe 100644 --- a/.github/workflows/pr-ng17.yml +++ b/.github/workflows/pr-ng17.yml @@ -66,7 +66,7 @@ jobs: repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PRIZMUI }}' expires: 5d - target: v3 + target: v4 projectId: prizmui lint_build_test: diff --git a/.github/workflows/pre-release-publish-ng17.yml b/.github/workflows/pre-release-publish-ng17.yml index cbbdd11ef1..6084b8a570 100644 --- a/.github/workflows/pre-release-publish-ng17.yml +++ b/.github/workflows/pre-release-publish-ng17.yml @@ -112,7 +112,7 @@ jobs: firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PRIZMUI }}' projectId: prizmui channelId: live - target: v3-next + target: v4-next publish-components: needs: build diff --git a/apps/doc/src/app/version-manager/versions.constants.ts b/apps/doc/src/app/version-manager/versions.constants.ts index 433a1e09bf..33c0a60c50 100644 --- a/apps/doc/src/app/version-manager/versions.constants.ts +++ b/apps/doc/src/app/version-manager/versions.constants.ts @@ -26,12 +26,22 @@ export const PRIZM_LANGUAGES_META: readonly PrizmLanguageMeta[] = [ }, ]; export const PRIZM_VERSIONS_META: readonly PrizmVersionMeta[] = [ + { + label: '4.0.0 (ng17)', + version: '4.0.0', + stackblitz: 'https://stackblitz.com/edit/prizm-v4-demo', + link: new URL('http://prizm.site'), + otherLinks: [new URL('https://prizm-v4.web.app')], + cb: (hostName: string, current: PrizmVersionMeta) => { + return hostName.startsWith('prizm-v4--'); + }, + }, { label: '3.9.0 (ng16)', version: '3.9.0', - stackblitz: 'https://stackblitz.com/edit/prizm-v3-demo', - link: new URL('http://prizm.site'), - otherLinks: [new URL('https://prizm-v3.web.app')], + stackblitz: 'https://stackblitz.com/edit/prizm-v2-demo', + link: new URL('https://prizm-v3.web.app'), + otherLinks: [], cb: (hostName: string, current: PrizmVersionMeta) => { return hostName.startsWith('prizm-v3--'); }, @@ -56,6 +66,13 @@ export const PRIZM_VERSIONS_META: readonly PrizmVersionMeta[] = [ return hostName.startsWith('prizm-v1--'); }, }, + { + label: '4.0.0-next (ng16)', + version: '4.0.0-next', + stackblitz: 'https://stackblitz.com/edit/prizm-v4-next-demo', + link: new URL('https://prizm-v4-next.web.app'), + otherLinks: [], + }, { label: '3.9.0-next (ng16)', version: '3.9.0-next', @@ -77,25 +94,25 @@ export const PRIZM_VERSIONS_META: readonly PrizmVersionMeta[] = [ link: new URL('https://prizm-v1-next.web.app'), otherLinks: [], }, - { - label: '3.9.0-beta (ng16)', - version: '3.9.0-beta', - stackblitz: 'https://stackblitz.com/edit/prizm-v3-beta-demo', - link: new URL('https://prizm-v3-beta.web.app'), - otherLinks: [], - }, - { - label: '2.10.0-beta (ng15)', - version: '2.10.0-beta', - stackblitz: 'https://stackblitz.com/edit/prizm-v2-beta-demo', - link: new URL('https://prizm-v2-beta.web.app'), - otherLinks: [], - }, - { - label: '1.13.0-beta (ng14)', - version: '1.13.0-beta', - stackblitz: 'https://stackblitz.com/edit/prizm-v1-beta-demo', - link: new URL('https://prizm-v1-beta.web.app'), - otherLinks: [], - }, + // { + // label: '3.9.0-beta (ng16)', + // version: '3.9.0-beta', + // stackblitz: 'https://stackblitz.com/edit/prizm-v3-beta-demo', + // link: new URL('https://prizm-v3-beta.web.app'), + // otherLinks: [], + // }, + // { + // label: '2.10.0-beta (ng15)', + // version: '2.10.0-beta', + // stackblitz: 'https://stackblitz.com/edit/prizm-v2-beta-demo', + // link: new URL('https://prizm-v2-beta.web.app'), + // otherLinks: [], + // }, + // { + // label: '1.13.0-beta (ng14)', + // version: '1.13.0-beta', + // stackblitz: 'https://stackblitz.com/edit/prizm-v1-beta-demo', + // link: new URL('https://prizm-v1-beta.web.app'), + // otherLinks: [], + // }, ]; diff --git a/package.json b/package.json index cf3c67247d..e8daa7ca0a 100644 --- a/package.json +++ b/package.json @@ -164,6 +164,6 @@ "typescript": "5.2.2" }, "volta": { - "node": "16.20.2" + "node": "18.19.0" } } diff --git a/package.json.ng17 b/package.json.ng17 index cf3c67247d..e8daa7ca0a 100644 --- a/package.json.ng17 +++ b/package.json.ng17 @@ -164,6 +164,6 @@ "typescript": "5.2.2" }, "volta": { - "node": "16.20.2" + "node": "18.19.0" } }