From b50c91d05d4f0d26194e30bc7790ceee1177eb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20L=2E=20Maravilha?= Date: Wed, 15 May 2024 16:27:48 -0300 Subject: [PATCH] =?UTF-8?q?Modifica=20nome=20dos=20componentes=20e=20faz?= =?UTF-8?q?=20pequenas=20corre=C3=A7=C3=B5es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-deploy.yml | 27 ++++++--- package.json | 3 + src/components/Board.vue | 32 +++++----- src/components/{Card.vue => Carta.vue} | 17 +++--- src/composables/card-utils.js | 35 ----------- src/lib/hep-cartas.js | 84 ++++++++++++++++++++++++++ src/lib/hep-game.js | 10 +++ src/views/DecksView.vue | 34 +++++------ 8 files changed, 159 insertions(+), 83 deletions(-) rename src/components/{Card.vue => Carta.vue} (80%) delete mode 100644 src/composables/card-utils.js create mode 100644 src/lib/hep-cartas.js create mode 100644 src/lib/hep-game.js diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index dafc71a..4b06e26 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -1,7 +1,7 @@ name: Build and Deploy on: - # Runs on pushes targeting the default branch + # Runs on pushes targeting the main branch push: branches: - main @@ -31,25 +31,38 @@ jobs: - name: Checkout 🛎️ uses: actions/checkout@v3 + + #- name: Rename image files to lowercase characters only 🔧 + # run: | + # sudo apt-get install -y rename + # find ./src/assets/cards/imagens/ -depth -exec rename 's/(.*)\/([^\/]*)/$1\/\L$2/' {} \; - name: Resize images for production 🔧 run: | sudo apt-get install -y imagemagick - mogrify -resize 600 ./src/assets/cards/imagens/*[.png,.jpg,.jpeg,.PNG,.JPG,.JPEG] + mogrify -resize 600 -format png ./src/assets/cards/imagens/*[.png,.jpg,.jpeg,.PNG,.JPG,.JPEG] + + - name: Remove unnecessary files 🔧 + run: | + rm -f ./src/assets/cards/imagens/*.jpg + rm -f ./src/assets/cards/imagens/*.jpeg + rm -f ./src/assets/cards/imagens/*.PNG + rm -f ./src/assets/cards/imagens/*.JPG + rm -f ./src/assets/cards/imagens/*.JPEG - - name: Set up Node 🔧 + - name: Set up Node.js 🔧 uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: 'npm' - - name: Install dependencies 🔧 + - name: Install project dependencies 🔧 run: npm install - - name: Build 🔧 + - name: Build project 🔧 run: npm run build - - name: Setup Pages 🔧 + - name: Setup GitHub Pages 🔧 uses: actions/configure-pages@v3 - name: Upload artifact 🔧 diff --git a/package.json b/package.json index 65e259e..d8abd2a 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,9 @@ "bugs": { "url": "https://github.com/cefetmg-dv/hepgame/issues" }, + "engines": { + "node": ">=18.0.0" + }, "dependencies": { "@popperjs/core": "^2.11.7", "bootstrap": "^5.2.3", diff --git a/src/components/Board.vue b/src/components/Board.vue index 1ecc2bd..92eca9f 100644 --- a/src/components/Board.vue +++ b/src/components/Board.vue @@ -6,20 +6,20 @@
- +
- +
- +
-
- +
+
@@ -31,28 +31,28 @@ @@ -38,14 +39,14 @@ export default {