From 179420ff3466e65f3dbf47f35e9227f18d02adb0 Mon Sep 17 00:00:00 2001 From: "rothwell.andy@gmail.com" Date: Tue, 21 Jan 2025 15:25:16 -0500 Subject: [PATCH] uses pinboard 2.1.12, sets up dev and prod pushes to s3 --- .env.development | 3 +- .env.production | 3 +- .../workflows/dev_cache_and_push_to_s3.yml | 56 +++++ .github/workflows/dev_push_to_s3.yml | 47 ---- .../workflows/prod_cache_and_push_to_s3.yml | 57 +++++ .github/workflows/prod_push_to_s3.yml | 49 ---- .github/workflows/testing_cache_and_push.yml | 53 ++++ .github/workflows/testing_push_to_s3.yml | 40 --- package-lock.json | 236 +++++++----------- package.json | 6 +- src/main.js | 10 +- 11 files changed, 273 insertions(+), 287 deletions(-) create mode 100644 .github/workflows/dev_cache_and_push_to_s3.yml delete mode 100644 .github/workflows/dev_push_to_s3.yml create mode 100644 .github/workflows/prod_cache_and_push_to_s3.yml delete mode 100644 .github/workflows/prod_push_to_s3.yml create mode 100644 .github/workflows/testing_cache_and_push.yml delete mode 100644 .github/workflows/testing_push_to_s3.yml diff --git a/.env.development b/.env.development index 33bb7a1..0dc535b 100644 --- a/.env.development +++ b/.env.development @@ -1 +1,2 @@ -VUE_APP_PUBLICPATH=/dev/ost/ +VITE_PUBLICPATH=/dev/ost/ +VITE_DEBUG=false diff --git a/.env.production b/.env.production index 96ede2d..776d0bd 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,2 @@ -VUE_APP_PUBLICPATH=/ost/program-locator/ +VITE_PUBLICPATH=/ost/program-locator/ +VITE_DEBUG=false diff --git a/.github/workflows/dev_cache_and_push_to_s3.yml b/.github/workflows/dev_cache_and_push_to_s3.yml new file mode 100644 index 0000000..d68e0ec --- /dev/null +++ b/.github/workflows/dev_cache_and_push_to_s3.yml @@ -0,0 +1,56 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Development caching with npm and push + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Cache node modules + id: cache-npm + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + name: List the state of node modules + continue-on-error: true + run: npm list + + - name: Install dependencies + run: | + printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc + npm ci + npm list + env: + FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }} + + - name: Build for development + run: npm run build:development + + - name: Deploy to Dev s3, Set index headers + env: + AWS_DEFAULT_REGION: 'us-east-1' + AWS_S3_BUCKET: phila-resource-finder-v2/dev/ost/ + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: | + aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete + aws s3 cp s3://$AWS_S3_BUCKET s3://$AWS_S3_BUCKET --recursive --exclude "*" --include "*.html" --metadata-directive REPLACE --acl public-read --cache-control max-age=0,no-cache,no-store,must-revalidate,proxy-revalidate,public --expires "0" --content-type "text/html; charset=utf-8" + \ No newline at end of file diff --git a/.github/workflows/dev_push_to_s3.yml b/.github/workflows/dev_push_to_s3.yml deleted file mode 100644 index d905689..0000000 --- a/.github/workflows/dev_push_to_s3.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: dev Push to S3 - -on: - push: - branches: - - dev - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js 16.x - uses: actions/setup-node@v3 - with: - node-version: '16.x' - cache: 'npm' - - - name: install npm 6 - run: | - npm install -g npm@6 - - - name: npm install, and build - run: | - printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc - git config --global url."https://".insteadOf ssh:// - npm ci - npm run build:development - env: - FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }} - VUE_APP_GATEKEEPER_KEY: ${{ secrets.VUE_APP_GATEKEEPER_KEY }} - - - name: Deploy to Dev s3, Set index headers - env: - AWS_DEFAULT_REGION: 'us-east-1' - AWS_S3_BUCKET: phila-resource-finder-v2/dev/ost/ - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: | - aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete - aws s3 cp s3://$AWS_S3_BUCKET s3://$AWS_S3_BUCKET --recursive --exclude "*" --include "*.html" --metadata-directive REPLACE --acl public-read --cache-control max-age=0,no-cache,no-store,must-revalidate,proxy-revalidate,public --expires "0" --content-type "text/html; charset=utf-8" diff --git a/.github/workflows/prod_cache_and_push_to_s3.yml b/.github/workflows/prod_cache_and_push_to_s3.yml new file mode 100644 index 0000000..71d43b1 --- /dev/null +++ b/.github/workflows/prod_cache_and_push_to_s3.yml @@ -0,0 +1,57 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Production caching with npm and push + +on: + push: + branches: + - production + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Cache node modules + id: cache-npm + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + name: List the state of node modules + continue-on-error: true + run: npm list + + - name: Install dependencies + run: | + printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc + npm ci + npm list + env: + FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }} + + - name: Build for production + run: npm run build:production + + - name: Deploy to Production s3, Set index headers + env: + AWS_DEFAULT_REGION: 'us-east-1' + AWS_S3_BUCKET: phila-resource-finder-v2/ost/program-locator/ + AWS_CLOUDFRONT_DISTRIBUTION: E2K2DCUMZ188JW + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: | + aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete + aws s3 cp s3://$AWS_S3_BUCKET s3://$AWS_S3_BUCKET --recursive --exclude "*" --include "*.html" --metadata-directive REPLACE --acl public-read --cache-control max-age=0,no-cache,no-store,must-revalidate,proxy-revalidate,public --expires "0" --content-type "text/html; charset=utf-8" + aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION --paths "/*" diff --git a/.github/workflows/prod_push_to_s3.yml b/.github/workflows/prod_push_to_s3.yml deleted file mode 100644 index 3e625d3..0000000 --- a/.github/workflows/prod_push_to_s3.yml +++ /dev/null @@ -1,49 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: prod Push to S3 - -on: - push: - branches: - - production - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js 16.x - uses: actions/setup-node@v3 - with: - node-version: '16.x' - cache: 'npm' - - - name: install npm 6 - run: | - npm install -g npm@6 - - - name: npm install, and build - run: | - printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc - git config --global url."https://".insteadOf ssh:// - npm ci - npm run build:production - env: - FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }} - VUE_APP_GATEKEEPER_KEY: ${{ secrets.VUE_APP_GATEKEEPER_KEY }} - - - name: Deploy to Prod s3, Set index headers, and Invalidate Cloudfront - env: - AWS_DEFAULT_REGION: 'us-east-1' - AWS_S3_BUCKET: phila-resource-finder-v2/ost/program-locator/ - AWS_CLOUDFRONT_DISTRIBUTION: E2K2DCUMZ188JW - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: | - aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete - aws s3 cp s3://$AWS_S3_BUCKET s3://$AWS_S3_BUCKET --recursive --exclude "*" --include "*.html" --metadata-directive REPLACE --acl public-read --cache-control max-age=0,no-cache,no-store,must-revalidate,proxy-revalidate,public --expires "0" --content-type "text/html; charset=utf-8" - aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION --paths "/*" diff --git a/.github/workflows/testing_cache_and_push.yml b/.github/workflows/testing_cache_and_push.yml new file mode 100644 index 0000000..070dc79 --- /dev/null +++ b/.github/workflows/testing_cache_and_push.yml @@ -0,0 +1,53 @@ +name: Testing caching with npm and push + +on: + push: + branches: + - vue3-pinboard + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Cache node modules + id: cache-npm + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + name: List the state of node modules + continue-on-error: true + run: npm list + + - name: Install dependencies + run: | + printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc + npm ci + npm list + env: + FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }} + + - name: Build for testing + run: npm run build:testing + + - name: Deploy to Testing s3, Set index headers + env: + AWS_DEFAULT_REGION: 'us-east-1' + AWS_S3_BUCKET: phila-resource-finder-v2/testing/ost/program-locator/ + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: | + aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete + aws s3 cp s3://$AWS_S3_BUCKET s3://$AWS_S3_BUCKET --recursive --exclude "*" --include "*.html" --metadata-directive REPLACE --acl public-read --cache-control max-age=0,no-cache,no-store,must-revalidate,proxy-revalidate,public --expires "0" --content-type "text/html; charset=utf-8" + \ No newline at end of file diff --git a/.github/workflows/testing_push_to_s3.yml b/.github/workflows/testing_push_to_s3.yml deleted file mode 100644 index 1422d2d..0000000 --- a/.github/workflows/testing_push_to_s3.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: testing Push to S3 - -on: - push: - branches: - - vue3-pinboard - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js 20.x - uses: actions/setup-node@v3 - with: - node-version: '20.x' - cache: 'npm' - - - name: npm install, and build - run: | - printf "@fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> ~/.npmrc - npm ci - npm run build:testing - env: - FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_AUTH_TOKEN }} - - - name: Deploy to Dev s3, Set index headers - env: - AWS_DEFAULT_REGION: 'us-east-1' - AWS_S3_BUCKET: phila-resource-finder-v2/testing/ost/program-locator/ - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: | - aws s3 sync dist s3://$AWS_S3_BUCKET --region us-east-1 --delete - aws s3 cp s3://$AWS_S3_BUCKET s3://$AWS_S3_BUCKET --recursive --exclude "*" --include "*.html" --metadata-directive REPLACE --acl public-read --cache-control max-age=0,no-cache,no-store,must-revalidate,proxy-revalidate,public --expires "0" --content-type "text/html; charset=utf-8" diff --git a/package-lock.json b/package-lock.json index 2dbf003..19cee17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@fortawesome/pro-regular-svg-icons": "^6.6.0", "@fortawesome/pro-solid-svg-icons": "^6.6.0", "@phila/phila-ui-core": "^1.0.18", - "@phila/pinboard": "2.0.96", + "@phila/pinboard": "2.1.12", "date-fns": "^4.1.0", "unplugin-auto-import": "^0.18.3", "unplugin-vue-router": "^0.10.8", @@ -1028,28 +1028,28 @@ } }, "node_modules/@fortawesome/fontawesome-pro": { - "version": "6.6.0", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/6.6.0/fontawesome-pro-6.6.0.tgz", - "integrity": "sha512-I1Fp+yiUYrK0q0UMoO0o9ZEGa0CWhqr0UibM/gcrKl40uYUkVmSemQJPV8+uOJgo4dnOHnTOqIL0r6kcH2hZlQ==", + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-pro/-/6.7.2/fontawesome-pro-6.7.2.tgz", + "integrity": "sha512-5ZocZMRSZ0ECojDoRMJji6jHTq4ymc4LaaKrYCY55Lir2GxFRBrsm27r2sKQWjIkaVYZ3tbgjMeXb3aFbSo0Vw==", "engines": { "node": ">=6" } }, "node_modules/@fortawesome/fontawesome-svg-core": { - "version": "6.7.1", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-svg-core/-/6.7.1/fontawesome-svg-core-6.7.1.tgz", - "integrity": "sha512-8dBIHbfsKlCk2jHQ9PoRBg2Z+4TwyE3vZICSnoDlnsHA6SiMlTwfmW6yX0lHsRmWJugkeb92sA0hZdkXJhuz+g==", + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-svg-core/-/6.7.2/fontawesome-svg-core-6.7.2.tgz", + "integrity": "sha512-yxtOBWDrdi5DD5o1pmVdq3WMCvnobT0LU6R8RyyVXPvFRd2o79/0NCuQoCjNTeZz9EzA9xS3JxNWfv54RIHFEA==", "dependencies": { - "@fortawesome/fontawesome-common-types": "6.7.1" + "@fortawesome/fontawesome-common-types": "6.7.2" }, "engines": { "node": ">=6" } }, "node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types": { - "version": "6.7.1", - "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.7.1/fontawesome-common-types-6.7.1.tgz", - "integrity": "sha512-gbDz3TwRrIPT3i0cDfujhshnXO9z03IT1UKRIVi/VEjpNHtSBIP2o5XSm+e816FzzCFEzAxPw09Z13n20PaQJQ==", + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.7.2/fontawesome-common-types-6.7.2.tgz", + "integrity": "sha512-Zs+YeHUC5fkt7Mg1l6XTniei3k4bwG/yo3iFUtZWd/pMx9g3fdvkSK9E0FOC+++phXOka78uJcYb8JaFkW52Xg==", "engines": { "node": ">=6" } @@ -1066,16 +1066,24 @@ } }, "node_modules/@fortawesome/free-solid-svg-icons": { - "version": "6.6.0", - "resolved": "https://npm.fontawesome.com/@fortawesome/free-solid-svg-icons/-/6.6.0/free-solid-svg-icons-6.6.0.tgz", - "integrity": "sha512-IYv/2skhEDFc2WGUcqvFJkeK39Q+HyPf5GHUrT/l2pKbtgEIv1al1TKd6qStR5OIwQdN1GZP54ci3y4mroJWjA==", + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/free-solid-svg-icons/-/6.7.2/free-solid-svg-icons-6.7.2.tgz", + "integrity": "sha512-GsBrnOzU8uj0LECDfD5zomZJIjrPhIlWU82AHwa2s40FKH+kcxQaBvBo3Z4TxyZHIyX8XTDxsyA33/Vx9eFuQA==", "dependencies": { - "@fortawesome/fontawesome-common-types": "6.6.0" + "@fortawesome/fontawesome-common-types": "6.7.2" }, "engines": { "node": ">=6" } }, + "node_modules/@fortawesome/free-solid-svg-icons/node_modules/@fortawesome/fontawesome-common-types": { + "version": "6.7.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.7.2/fontawesome-common-types-6.7.2.tgz", + "integrity": "sha512-Zs+YeHUC5fkt7Mg1l6XTniei3k4bwG/yo3iFUtZWd/pMx9g3fdvkSK9E0FOC+++phXOka78uJcYb8JaFkW52Xg==", + "engines": { + "node": ">=6" + } + }, "node_modules/@fortawesome/pro-regular-svg-icons": { "version": "6.6.0", "resolved": "https://npm.fontawesome.com/@fortawesome/pro-regular-svg-icons/-/6.6.0/pro-regular-svg-icons-6.6.0.tgz", @@ -1665,137 +1673,104 @@ } }, "node_modules/@phila/phila-ui-app-footer": { - "version": "0.0.14", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-app-footer/-/phila-ui-app-footer-0.0.14.tgz", - "integrity": "sha512-0cu9RC0ryNCbf/zoDI+fnVpnjf1mZ9zW2BRak8+E+rkOfTOemntJjwrQo8qsCiNmi61hBCZFHjmVZkrHw5cUoQ==", + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-app-footer/-/phila-ui-app-footer-0.0.18.tgz", + "integrity": "sha512-/+2lYXZQmhD5DsVbNYfXpbCNDKjuo53iV3LSPJelIpLyitAbIQHb2Ias2x1v/1j+8cse2g27Q+Sw8KpHj5GdYg==", "dependencies": { - "@phila/phila-ui-core": "^1.0.18", + "@phila/phila-ui-core": "^1.0.21", "@phila/phila-ui-nav-link": "^0.0.11", "bulma": "^0.9.4", "vue": "^3.3.8" } }, "node_modules/@phila/phila-ui-app-header": { - "version": "0.0.24", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-app-header/-/phila-ui-app-header-0.0.24.tgz", - "integrity": "sha512-oN7TrP2GX+DbVo7r7RSy2PUlkh7pJtw+M02baPlExwcsqB+4IRsQnwTKhjv+kxxSCv6CjF8gTIVyFZ+yTWF1KA==", + "version": "0.0.25", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-app-header/-/phila-ui-app-header-0.0.25.tgz", + "integrity": "sha512-IIXLDdeSXKyGrlznrRMKTALIngAnmpdIXp4hkgd6EBpi1aHsgGHrxwRuP3kQqD2jG9QJGXPzZILdh9kzCSnlig==", "dependencies": { - "@phila/phila-ui-core": "1.0.6", + "@phila/phila-ui-core": "^1.0.21", "bulma": "^0.9.4", "vue": "^3.3.8" } }, - "node_modules/@phila/phila-ui-app-header/node_modules/@phila/phila-ui-core": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-core/-/phila-ui-core-1.0.6.tgz", - "integrity": "sha512-j7L2dw5BtMEBp+NqiL4iDLbwXnWQjpj1yrhEXc5VD3TWqye7FM9LnCvmloCUpnRD3OJnXxknD404dgR+tBLM2g==", - "dependencies": { - "bulma": "^0.9.4", - "bulma-checkradio": "^2.1.3", - "vue": "^3.3.8", - "vue-imask": "^7.6.0" - } - }, "node_modules/@phila/phila-ui-callout": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-callout/-/phila-ui-callout-0.0.10.tgz", - "integrity": "sha512-1bnygvxNbYqq2NuQUThcvdZpn6B+9lJZwoHEyzjp8XaMRRgLm5FwJoXevTJFW1avLOvZPsrk006kmKOBGl7y/A==", + "version": "0.0.13", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-callout/-/phila-ui-callout-0.0.13.tgz", + "integrity": "sha512-3CQQ8FGhtagsfQlJexU5Mg1cLh+e2JgzxwR6Z/HoZeWGMgjjL5CDCSQfozki/LsSYgt1Nxv4EGlBrPvoT0Halg==", "dependencies": { - "@phila/phila-ui-core": "^1.0.18", + "@phila/phila-ui-core": "^1.0.21", "bulma": "^0.9.4", "vue": "^3.3.8" } }, "node_modules/@phila/phila-ui-checkbox": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-checkbox/-/phila-ui-checkbox-0.0.4.tgz", - "integrity": "sha512-4AqgNYwTW7Q/hCFcvP1kIH5GpakKu1G058aYjVSHyTo3mWQhhq6+BlORpbrFRZjKHhgROgIgsSm8slrvB92/2A==", + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-checkbox/-/phila-ui-checkbox-0.0.5.tgz", + "integrity": "sha512-bn0qCngcRC4MS0D0Jx7z1slRBAGkiSUShv0+GJNJiAQltyjmmde9sGHVd0NlDYqiF9FiOlHO4vtfWRzOUcH0fQ==", "dependencies": { - "@phila/phila-ui-core": "1.0.12", + "@phila/phila-ui-core": "^1.0.21", "bulma": "^0.9.4", "vue": "^3.3.8" } }, - "node_modules/@phila/phila-ui-checkbox/node_modules/@phila/phila-ui-core": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-core/-/phila-ui-core-1.0.12.tgz", - "integrity": "sha512-HO1g6/Pn4MyQcn/3Ag1D84NWvSCTmsAjR/DrZ4BEdzFUmV6TaSpVCVHKx2dwsbCx7HnMpg94Fx/UV3FlUxb3yw==", - "dependencies": { - "bulma": "^0.9.4", - "bulma-checkradio": "^2.1.3", - "vue": "^3.3.8", - "vue-imask": "^7.6.0" - } - }, "node_modules/@phila/phila-ui-core": { - "version": "1.0.20", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-core/-/phila-ui-core-1.0.20.tgz", - "integrity": "sha512-11WUNiwBRWeMUy6dPqAt1IMJ+y/KktOAc/RzXmcR4gP94o78c+aId/Z6TrJKOdsgd2X19AFd1+ZNfQyP35giQA==", + "version": "1.0.21", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-core/-/phila-ui-core-1.0.21.tgz", + "integrity": "sha512-5eZRYMZ3lSYYdVDh0RIbHB12zydSxw/StS7fGqGuOBViNGfbjkJdVDgWhn94Bs815aDD6fHPJrxBh5uag9TJRw==", "dependencies": { "bulma": "^0.9.4", - "bulma-checkradio": "^2.1.3", + "bulma-checkradio": "1.1.1", "vue": "^3.3.8", "vue-imask": "^7.6.0" } }, "node_modules/@phila/phila-ui-dropdown": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-dropdown/-/phila-ui-dropdown-0.0.12.tgz", - "integrity": "sha512-4cxeJFXuX229RIF03uasLNa4rK0WkJTy8efU3qATYvLMOEtV+g6BNzy/Kuy16BTbAcbWEx39zvTFa/ZHeT8zMA==", + "version": "0.0.13", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-dropdown/-/phila-ui-dropdown-0.0.13.tgz", + "integrity": "sha512-/sLqvnnyw6q9JWUpHI2R8aFEu8ffDasuHo2U5rcUbOxFKZODaXNVN6YmJmsLTuqnIQ60fN7g8SrpNStJtD6m7g==", "dependencies": { - "@phila/phila-ui-core": "^1.0.20", + "@phila/phila-ui-core": "^1.0.21", "vue": "^3.3.8" } }, "node_modules/@phila/phila-ui-dropdown-nav": { - "version": "0.0.16", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-dropdown-nav/-/phila-ui-dropdown-nav-0.0.16.tgz", - "integrity": "sha512-o35mz+r9tYpD0WSw4plICehy+gCwYyuwwBMkQ6LRYkzDzAw61eD/Qt3o57y7bomSHNEES3SsPxBwTMgOQMh+tg==", + "version": "0.0.24", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-dropdown-nav/-/phila-ui-dropdown-nav-0.0.24.tgz", + "integrity": "sha512-+kt3R8NbEZC9utoFPGa64rGdyLI/3Vtu7Ql1EywUnbJlPfNuRACht+k1B9L7GZZav3RfLGK2AhfIwueG1Sz3lw==", "dependencies": { - "@phila/phila-ui-core": "1.0.6", + "@phila/phila-ui-core": "^1.0.21", "@phila/phila-ui-nav-link": "^0.0.11", "bulma": "^0.9.4", "vue": "^3.3.8" } }, - "node_modules/@phila/phila-ui-dropdown-nav/node_modules/@phila/phila-ui-core": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-core/-/phila-ui-core-1.0.6.tgz", - "integrity": "sha512-j7L2dw5BtMEBp+NqiL4iDLbwXnWQjpj1yrhEXc5VD3TWqye7FM9LnCvmloCUpnRD3OJnXxknD404dgR+tBLM2g==", - "dependencies": { - "bulma": "^0.9.4", - "bulma-checkradio": "^2.1.3", - "vue": "^3.3.8", - "vue-imask": "^7.6.0" - } - }, "node_modules/@phila/phila-ui-lang-selector": { - "version": "0.0.20", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-lang-selector/-/phila-ui-lang-selector-0.0.20.tgz", - "integrity": "sha512-Xgd7uHzO4n+B6qnZ4MTkrtFFvVm4FNs2N2XhEEjOxSumpYpifgLXfnNDtfJAO+jjPpbSoIHpdyv601RoCBsPGw==", + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-lang-selector/-/phila-ui-lang-selector-0.0.33.tgz", + "integrity": "sha512-kEjj4lzHWJgywVPf7i6buD5b4St87HsidngXWBKSy1Ml26JFlp4v8dGSkZfwWeUbdfiw6I5d7KAGExeTZHu++A==", "dependencies": { - "@phila/phila-ui-core": "^1.0.18", - "@phila/phila-ui-dropdown-nav": "^0.0.16", + "@phila/phila-ui-core": "^1.0.21", + "@phila/phila-ui-dropdown-nav": "^0.0.24", "bulma": "^0.9.4", "vue": "^3.3.8" } }, "node_modules/@phila/phila-ui-mobile-nav": { - "version": "0.0.13", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-mobile-nav/-/phila-ui-mobile-nav-0.0.13.tgz", - "integrity": "sha512-Z11gOV4UtufuYwERuwGW3WSYkwDfTBpfld41L9I61eQUEjLV62MD/iiU4Dfz5ft6Yqcj38qWFFk4B0FB8Ktg5w==", + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-mobile-nav/-/phila-ui-mobile-nav-0.0.16.tgz", + "integrity": "sha512-4YiiP6kifgodPPvgpDTxq97UWRdnykzx6zvo5O0S69gvQP6K/7URjRCh5jMUr6kH3G1IMTebWraCFPn1px1lXg==", "dependencies": { - "@phila/phila-ui-core": "^1.0.18", + "@phila/phila-ui-core": "^1.0.21", "@phila/phila-ui-nav-link": "^0.0.11", "vue": "^3.3.8" } }, "node_modules/@phila/phila-ui-modal": { - "version": "0.0.13", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-modal/-/phila-ui-modal-0.0.13.tgz", - "integrity": "sha512-antCfQ3jX7JA8lx33VHp8c5N73zqVHoHbB5z6IP28q4TDtEkLlUrY7uyoCYNfAW5acLvAxbdt/seb/x2EGorpQ==", + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-modal/-/phila-ui-modal-0.0.16.tgz", + "integrity": "sha512-Xne+KnVwWpUxkICFZLFTkAdTeeigXP34Ui1sjWz4H7zovEgEMEnxZj3rxsUtIzV1gfWbMgDxeQ1hKXjOxLxG2w==", "dependencies": { - "@phila/phila-ui-core": "^1.0.18", + "@phila/phila-ui-core": "^1.0.21", "bulma": "^0.9.4", "vue": "^3.3.8" } @@ -1810,69 +1785,47 @@ } }, "node_modules/@phila/phila-ui-radio": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-radio/-/phila-ui-radio-0.0.5.tgz", - "integrity": "sha512-2Q20fvEbVC7QPwMtqj0OdYivyK1y+vm1dRuhKuhwXyPD1836YUMnNZRRqqdh5LvD4k3VOeoQNhfEFjY0C2KcGQ==", + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-radio/-/phila-ui-radio-0.0.6.tgz", + "integrity": "sha512-XJOrovk6A1vDNCnBJKQBK23EaPCpVElu1IIz4MXlL2IVgc3iNtG+1cFuC5I629Ra9n1K/GViWzGStjB6FKzedQ==", "dependencies": { - "@phila/phila-ui-core": "1.0.12", + "@phila/phila-ui-core": "^1.0.21", "bulma": "^0.9.4", "vue": "^3.3.8" } }, - "node_modules/@phila/phila-ui-radio/node_modules/@phila/phila-ui-core": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-core/-/phila-ui-core-1.0.12.tgz", - "integrity": "sha512-HO1g6/Pn4MyQcn/3Ag1D84NWvSCTmsAjR/DrZ4BEdzFUmV6TaSpVCVHKx2dwsbCx7HnMpg94Fx/UV3FlUxb3yw==", - "dependencies": { - "bulma": "^0.9.4", - "bulma-checkradio": "^2.1.3", - "vue": "^3.3.8", - "vue-imask": "^7.6.0" - } - }, "node_modules/@phila/phila-ui-textbox": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-textbox/-/phila-ui-textbox-0.0.6.tgz", - "integrity": "sha512-B+Hcw99e5SoOsMCylpdXIDRd07vSd1RKUvD/Rz0J8plHPtvGNxk8FkAvk026YleXxoMRqmW+jLOk0WNaV8vNsg==", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@phila/phila-ui-textbox/-/phila-ui-textbox-0.0.7.tgz", + "integrity": "sha512-imo67/eTedxBtIIpJID/wtpTOw8opAJBz30xwZiwcY23HRIMlS9wQfYBP6ol63r+dGxZrv65opFWz9DGD3mHaw==", "dependencies": { - "@phila/phila-ui-core": "1.0.12", + "@phila/phila-ui-core": "^1.0.21", "bulma": "^0.9.4", "vue": "^3.3.8" } }, - "node_modules/@phila/phila-ui-textbox/node_modules/@phila/phila-ui-core": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/@phila/phila-ui-core/-/phila-ui-core-1.0.12.tgz", - "integrity": "sha512-HO1g6/Pn4MyQcn/3Ag1D84NWvSCTmsAjR/DrZ4BEdzFUmV6TaSpVCVHKx2dwsbCx7HnMpg94Fx/UV3FlUxb3yw==", - "dependencies": { - "bulma": "^0.9.4", - "bulma-checkradio": "^2.1.3", - "vue": "^3.3.8", - "vue-imask": "^7.6.0" - } - }, "node_modules/@phila/pinboard": { - "version": "2.0.96", - "resolved": "https://registry.npmjs.org/@phila/pinboard/-/pinboard-2.0.96.tgz", - "integrity": "sha512-el83/M7bZ4Qi+e28Wk+sVZXZuyWTiY2LZDWuM1tkPbxv/cUJg4WNraysIeKHMI1djSPnReWyUSjTHhpwwlpu7w==", + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@phila/pinboard/-/pinboard-2.1.12.tgz", + "integrity": "sha512-LOhyjkTmSqEAi/PxRM1uAbQdHkaOUyKWElYoDTowe/J9WrClXD4J6i+Kzk9x+6+9n4RzFUAHhTPt4xRtT4nKCA==", "dependencies": { "@creativebulma/bulma-tooltip": "^1.2.0", - "@fortawesome/fontawesome-pro": "^6.6.0", - "@fortawesome/fontawesome-svg-core": "^6.6.0", - "@fortawesome/free-solid-svg-icons": "^6.6.0", + "@fortawesome/fontawesome-pro": "6.7.2", + "@fortawesome/fontawesome-svg-core": "6.7.2", + "@fortawesome/free-solid-svg-icons": "6.7.2", "@fortawesome/vue-fontawesome": "^3.0.6", - "@phila/phila-ui-app-footer": "^0.0.14", - "@phila/phila-ui-app-header": "^0.0.24", - "@phila/phila-ui-callout": "^0.0.10", - "@phila/phila-ui-checkbox": "^0.0.4", - "@phila/phila-ui-core": "^1.0.20", - "@phila/phila-ui-dropdown": "^0.0.12", - "@phila/phila-ui-lang-selector": "^0.0.20", - "@phila/phila-ui-mobile-nav": "^0.0.13", - "@phila/phila-ui-modal": "^0.0.13", - "@phila/phila-ui-nav-link": "^0.0.11", - "@phila/phila-ui-radio": "^0.0.5", - "@phila/phila-ui-textbox": "^0.0.6", + "@phila/phila-ui-app-footer": "0.0.18", + "@phila/phila-ui-app-header": "0.0.25", + "@phila/phila-ui-callout": "0.0.13", + "@phila/phila-ui-checkbox": "0.0.5", + "@phila/phila-ui-core": "1.0.21", + "@phila/phila-ui-dropdown": "0.0.13", + "@phila/phila-ui-lang-selector": "0.0.33", + "@phila/phila-ui-mobile-nav": "0.0.16", + "@phila/phila-ui-modal": "0.0.16", + "@phila/phila-ui-nav-link": "0.0.11", + "@phila/phila-ui-radio": "0.0.6", + "@phila/phila-ui-textbox": "0.0.7", "@turf/area": "^7.0.0", "@turf/bbox": "^7.0.0", "@turf/bbox-polygon": "^7.0.0", @@ -3028,12 +2981,9 @@ "integrity": "sha512-86FlT5+1GrsgKbPLRRY7cGDg8fsJiP/jzTqXXVqiUZZ2aZT8uemEOHlU1CDU+TxklPEZ11HZNNWclRBBecP4CQ==" }, "node_modules/bulma-checkradio": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/bulma-checkradio/-/bulma-checkradio-2.1.3.tgz", - "integrity": "sha512-8OmZ7PURyftNLGXSTNAYNTJHIe0OkoH/8z9iWfSXGxiv3AlrKneMtiVpBKofXsvc9ZHBUI1YjefiW5WFhgFgAQ==", - "dependencies": { - "bulma": "^0.9.3" - } + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bulma-checkradio/-/bulma-checkradio-1.1.1.tgz", + "integrity": "sha512-6Wn2faBiFkctSeiaQkeU2MbjkQeuXsN4AthBDEKrHGGPl5wmV2GEj4iZCqzvw7Te7baaHdU8PbUgrmlD5D6oGA==" }, "node_modules/bulma-toast": { "version": "2.4.4", diff --git a/package.json b/package.json index 01ce862..81d752b 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,11 @@ "private": true, "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --mode=development", "test": "vite --mode=testing", "build": "vite build", + "build:development": "vite build --mode=development", + "build:production": "vite build --mode=production", "build:testing": "vite build --mode=testing", "preview": "vite preview", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore" @@ -17,7 +19,7 @@ "@fortawesome/pro-regular-svg-icons": "^6.6.0", "@fortawesome/pro-solid-svg-icons": "^6.6.0", "@phila/phila-ui-core": "^1.0.18", - "@phila/pinboard": "2.0.96", + "@phila/pinboard": "2.1.12", "date-fns": "^4.1.0", "unplugin-auto-import": "^0.18.3", "unplugin-vue-router": "^0.10.8", diff --git a/src/main.js b/src/main.js index cc949b0..8e761b1 100644 --- a/src/main.js +++ b/src/main.js @@ -25,10 +25,12 @@ import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram'; library.add(farAngleDown, farAngleUp, farTimes, farPlus, farMinus, faCheck, faCarBus, faFacebook, faTwitter, faInstagram); -// import pinboard -import pinboard from '@phila/pinboard'; -// import pinboard from '../node_modules/@phila/pinboard/src/main.js'; -import '../node_modules/@phila/pinboard/dist/style.css'; +// use these if running off unlinked package +// import pinboard from '@phila/pinboard'; +// import '../node_modules/@phila/pinboard/dist/style.css'; +// OR +// use this if running off linked package +import pinboard from '../node_modules/@phila/pinboard/src/main.js'; // data-sources import ost from './data-sources/ost';