-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from For-0/vue-tailwind-migration
UI Kit Migration: Bulma -> Vue + TailwindCSS
- Loading branch information
Showing
180 changed files
with
12,160 additions
and
37,194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/strict-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
"plugin:vue/vue3-recommended" | ||
], | ||
"overrides": [ | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
"sourceType": "module", | ||
"project": true, | ||
"extraFileExtensions": [".vue"], | ||
"parser": "@typescript-eslint/parser" | ||
}, | ||
"parser": "vue-eslint-parser", | ||
"plugins": ["@typescript-eslint"], | ||
"parser": "@typescript-eslint/parser", | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"no-undef": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }] | ||
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], | ||
"@typescript-eslint/no-misused-promises": "off", | ||
"vue/html-indent": ["warn", 4], | ||
"vue/max-attributes-per-line": "off", | ||
"vue/singleline-html-element-content-newline": "off", | ||
"vue/multi-word-component-names": "off", | ||
"vue/v-on-event-hyphenation": "off" | ||
}, | ||
"globals": { | ||
"process": true, | ||
"setHue": true | ||
"process": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,6 @@ | |
], | ||
"vocabustudy": [ | ||
"vocabustudyonline" | ||
], | ||
"nightly": [ | ||
"vocabustudyonline--nightly-q9kbiq6r" | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build and Deploy | ||
on: | ||
workflow_call: | ||
inputs: | ||
artifact-retention-days: | ||
description: 'Number of days to retain build artifacts' | ||
required: false | ||
default: 1 | ||
type: number | ||
expires: | ||
required: false | ||
default: "7d" | ||
type: string | ||
channelId: | ||
required: false | ||
type: string | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
name: Cache node modules | ||
id: cache-npm | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-npm-cache-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-npm-cache- | ||
- run: npm ci | ||
name: Install dependencies | ||
- run: npm run build | ||
name: Build | ||
env: | ||
CF_API_TOKEN: '${{ secrets.CF_API_TOKEN }}' | ||
CF_ZONE_ID: '${{ secrets.CF_ZONE_ID }}' | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VOCAB_U_STUDY }}' | ||
projectId: vocab-u-study | ||
target: "vocabustudy" | ||
expires: ${{ inputs.expires }} | ||
channelId: ${{ inputs.channelId }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
name: Manual Deploy | ||
'on': | ||
workflow_dispatch | ||
on: workflow_dispatch | ||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.16.0 | ||
cache: "npm" | ||
- run: npm ci && npm run build | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VOCAB_U_STUDY }}' | ||
channelId: preview | ||
expires: 1d | ||
projectId: vocab-u-study | ||
target: "vocabustudy" | ||
build-and-deploy: | ||
uses: ./.github/workflows/build-and-deploy.yml | ||
secrets: inherit | ||
with: | ||
channelId: preview | ||
expires: "1d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
# This file was auto-generated by the Firebase CLI | ||
# https://github.com/firebase/firebase-tools | ||
|
||
name: PR Hosting Preview | ||
'on': pull_request | ||
on: pull_request | ||
jobs: | ||
build_and_preview: | ||
build-and-deploy: | ||
uses: ./.github/workflows/build-and-deploy.yml | ||
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.16.0 | ||
- run: npm ci && npm run build | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VOCAB_U_STUDY }}' | ||
projectId: vocab-u-study | ||
target: "vocabustudy" | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,11 @@ | ||
name: Deploy Stable | ||
'on': | ||
on: | ||
release: | ||
types: [released] | ||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.16.0 | ||
- run: npm ci && npm run build | ||
# - name: Create Sentry Release | ||
# uses: getsentry/action-release@v1 | ||
# env: | ||
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_RELEASES_TOKEN }} | ||
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | ||
# SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | ||
# with: | ||
# environment: 'production' | ||
# sourcemaps: './dist' | ||
# version: ${{ github.event.release.tag_name }} | ||
# version_prefix: vocabustudy@ | ||
# - run: npm run delete-maps | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VOCAB_U_STUDY }}' | ||
channelId: live | ||
projectId: vocab-u-study | ||
target: "vocabustudy" | ||
build-and-deploy: | ||
uses: ./.github/workflows/build-and-deploy.yml | ||
secrets: inherit | ||
with: | ||
artifact-retention-days: 7 | ||
channelId: live |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.