From 41fba30e4a3f43abbdb6dd80e94de17c7118f7c5 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 22 Oct 2023 21:43:45 +0000 Subject: [PATCH] fix: use pnpm for build + add not implemented to buttons --- .github/workflows/build.yml | 17 ++-- ux/src/components/PageActionsCol.vue | 8 ++ ux/src/components/PageHeader.vue | 9 +++ ux/src/components/WelcomeOverlay.vue | 2 +- ux/src/layouts/MainLayout.vue | 13 +++ ux/src/pages/AdminDashboard.vue | 117 +++------------------------ 6 files changed, 52 insertions(+), 114 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3ddbb0f..fbc78895 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,11 @@ jobs: with: node-version: 20.x + - name: Enable pnpm + run: | + corepack enable + corepack prepare pnpm@latest --activate + - name: Set Build Variables run: | echo "REL_VERSION=3.0.0-alpha.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV @@ -41,14 +46,14 @@ jobs: - name: Build Assets working-directory: ux run: | - npm ci --audit=false --fund=false - npm run build + pnpm install --frozen-lockfile + pnpm build - name: Build Blocks working-directory: blocks run: | - npm ci --audit=false --fund=false - npm run build + pnpm install --frozen-lockfile + pnpm build - name: Login to GitHub Container Registry uses: docker/login-action@v2 @@ -85,7 +90,7 @@ jobs: cp LICENSE _dist/LICENSE cp config.sample.yml _dist/config.sample.yml cd _dist/server - npm ci --omit=dev --audit=false --fund=false + pnpm install --prod --frozen-lockfile cd - find ./_dist/ -printf "%P\n" | tar -czf wiki-js.tar.gz --no-recursion -C ./_dist/ -T - @@ -118,7 +123,7 @@ jobs: tar -xzf $env:GITHUB_WORKSPACE\build\wiki-js.tar.gz -C $env:GITHUB_WORKSPACE\win --exclude=server/node_modules - name: Install Dependencies - run: npm ci --omit=dev --audit=false --fund=false + run: pnpm install --prod --frozen-lockfile working-directory: win\server - name: Create Bundle diff --git a/ux/src/components/PageActionsCol.vue b/ux/src/components/PageActionsCol.vue index a99c4510..032434d4 100644 --- a/ux/src/components/PageActionsCol.vue +++ b/ux/src/components/PageActionsCol.vue @@ -69,6 +69,7 @@ icon='las la-history' :color='editorStore.isActive ? `white` : `grey`' aria-label='Page History' + @click='notImplemented' ) q-tooltip(anchor='center left' self='center right') Page History q-btn.q-py-md( @@ -264,6 +265,13 @@ function removePendingAsset (item) { menuPendingAssets.value.hide() } } + +function notImplemented () { + $q.notify({ + type: 'negative', + message: 'Not implemented' + }) +}