From b2d93034dcb499ebde522e279b96be3348c467d7 Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Tue, 27 Jan 2026 01:30:46 +0700 Subject: [PATCH 1/3] console role --- Services/client/src/router/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Services/client/src/router/index.ts b/Services/client/src/router/index.ts index 32534ef..446941f 100644 --- a/Services/client/src/router/index.ts +++ b/Services/client/src/router/index.ts @@ -29,10 +29,14 @@ const router = createRouter({ name: 'AdminModule', component: () => import('@/views/MainLayout.vue'), beforeEnter: async (_to, _from, next) => { + console.log('AdminModule - beforeEnter') const token = await getToken() + console.log(token) if (token) { + console.log('11111') const roles = getRole() + console.log(roles) if ( token && From e809dfde4a77a5afda3293ca3d6521a3f956928f Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Tue, 27 Jan 2026 01:34:26 +0700 Subject: [PATCH 2/3] add remote deploy --- .forgejo/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 285a66a..eaf2d93 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -47,3 +47,14 @@ jobs: file: ./Services/Dockerfile tags: ${{ env.CONTAINER_IMAGE_NAME }}:latest,${{ env.CONTAINER_IMAGE_NAME }}:${{ env.IMAGE_VERSION }} push: true + - name: Remote Deploy + uses: appleboy/ssh-action@v1.2.1 + with: + host: ${{ vars.SSH_DEPLOY_HOST }} + port: ${{ vars.SSH_DEPLOY_PORT }} + username: ${{ secrets.SSH_DEPLOY_USER }} + password: ${{ secrets.SSH_DEPLOY_PASSWORD }} + script: | + cd ~/repo + ./replace-env.sh API_ORG "${{ env.IMAGE_VERSION }}" + ./deploy.sh hrms-api-org From e632125ef4e478ca949b7cd9be65944e371bd21b Mon Sep 17 00:00:00 2001 From: kittapath <> Date: Tue, 27 Jan 2026 11:04:14 +0700 Subject: [PATCH 3/3] remove deploy tag --- .forgejo/workflows/build.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index eaf2d93..285a66a 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -47,14 +47,3 @@ jobs: file: ./Services/Dockerfile tags: ${{ env.CONTAINER_IMAGE_NAME }}:latest,${{ env.CONTAINER_IMAGE_NAME }}:${{ env.IMAGE_VERSION }} push: true - - name: Remote Deploy - uses: appleboy/ssh-action@v1.2.1 - with: - host: ${{ vars.SSH_DEPLOY_HOST }} - port: ${{ vars.SSH_DEPLOY_PORT }} - username: ${{ secrets.SSH_DEPLOY_USER }} - password: ${{ secrets.SSH_DEPLOY_PASSWORD }} - script: | - cd ~/repo - ./replace-env.sh API_ORG "${{ env.IMAGE_VERSION }}" - ./deploy.sh hrms-api-org