-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 523-implement-tanstack-to-prevent-reloads…
…-between-search-page-and-prompt-of-the-month
- Loading branch information
Showing
103 changed files
with
12,644 additions
and
8,328 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
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
/src-cordova | ||
/.quasar | ||
/node_modules | ||
.eslintrc.js | ||
/.eslintrc.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,38 @@ | ||
<!-- | ||
Please, include: | ||
- A description of the changes proposed in the pull request. | ||
- A reference to a related issue in your repository: | ||
- Add keyword "close", "fix" or "resolve" to inform the issue related. | ||
Example: Resolve #123 | ||
--> | ||
|
||
## Description | ||
### 🛠 Description | ||
|
||
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. | ||
|
||
Fixes # (issue) | ||
|
||
### ✨ Type of change | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
### 🧠 Rationale behind the change | ||
|
||
Why did you choose to make these changes? Were there any trade-offs you had to consider? | ||
|
||
### 🧪 All Test Suites Passed? | ||
|
||
- [ ] Manual tested | ||
- [ ] Vitest | ||
- [ ] Cypress | ||
|
||
### 📸 Screenshots (optional) | ||
|
||
Please provide some screenshot for relevant changes | ||
|
||
### 🏎 Quick checklist | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
- [ ] Any dependent changes have been merged and published in downstream modules | ||
- [ ] I have checked my code and corrected any misspellings |
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,34 @@ | ||
name: Code Quality check | ||
|
||
on: | ||
pull_request: | ||
branches: "**" | ||
paths: | ||
- "src/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
code_quality_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛫 Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🏗 Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.10.0 | ||
cache: "npm" | ||
cache-dependency-path: ./package-lock.json | ||
|
||
- name: ⚙️ NPM install | ||
run: npm install | ||
working-directory: ./src | ||
|
||
- name: ⚙️ Run lint | ||
run: npm run lint:fix | ||
working-directory: ./src | ||
|
||
- name: 🧹Format code | ||
run: npm run format | ||
working-directory: ./src |
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
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,39 @@ | ||
name: Deploy to Cloudflare | ||
|
||
on: [push] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
name: Deploy to Cloudflare | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build Quasar app | ||
run: npm run build | ||
|
||
- name: Deploy | ||
id: deploy | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
command: pages deploy dist/pwa --project-name=celebrityfanalyzer | ||
|
||
- name: Wait for 3 minutes | ||
run: sleep 180 # Sleep for 180 seconds (3 minutes) | ||
|
||
- name: Run Lighthouse on urls and validate with lighthouserc | ||
uses: treosh/lighthouse-ci-action@v12 | ||
with: | ||
urls: ${{ steps.deploy.outputs.deployment-url }} | ||
configPath: './.github/workflows/lighthouserc.json' | ||
runs: 3 |
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,12 @@ | ||
{ | ||
"ci": { | ||
"assert": { | ||
"assertions": { | ||
"categories:performance": ["warn", { "minScore": 0.4 }], | ||
"categories:accessibility": ["warn", { "minScore": 0.7 }], | ||
"categories:best-practices": ["warn", { "minScore": 0.7 }], | ||
"categories:seo": ["warn", { "minScore": 0.6 }] | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Vitest Unit Tests | |
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
branches: [ "*" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
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 |
---|---|---|
|
@@ -41,3 +41,6 @@ coverage/ | |
conf-example | ||
functions/node_modules | ||
package-lock.json | ||
|
||
.lighthousec/ | ||
|
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,22 @@ | ||
#!/usr/bin/env sh | ||
|
||
message="$(cat "$1")" | ||
requiredPattern="^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip):#\\d+ - .{1,100}$" | ||
mergePattern="^Merge (branch|remote-tracking branch)" | ||
|
||
# Check if the commit message is a merge message | ||
if echo "$message" | grep -E "$mergePattern"; then | ||
echo "Merge commit detected. Skipping commit message check." | ||
exit 0 | ||
fi | ||
|
||
# Check if the commit message matches the required pattern | ||
if ! echo "$message" | grep -E "$requiredPattern"; then | ||
echo "$message" | ||
echo "Error: Commit message does not match the required pattern!" | ||
echo "The correct format is:" | ||
echo " <type>:#<ticketNumber> - <description>" | ||
echo "Where <type> is one of: feat, fix, docs, style, refactor, test, chore." | ||
echo "Example: fix:#123 - fixed issue 123" | ||
exit 1 | ||
fi |
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 @@ | ||
lint-staged |
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,15 +1,29 @@ | ||
# HOW TO CONTRIBUTE | ||
# Code Of Conduct | ||
|
||
## "Our World Is One Country" | ||
|
||
Globe&Citizen, as a company and service, is based on the premise that people are _people_ all around the world and that all humans display the unique capacity to cooperate flexibly in groups. Participation requires, above all else, a willingness to work with other developers who are different from yourself respectfully, openly, in good faith. | ||
|
||
## Steps to Contributing | ||
## Our Standards | ||
|
||
1. Fork a local copy of the code base and get to know it. | ||
2. Create your own development branch off of the shared "develop" branch to work on locally. | ||
3. Push to your forked repository and then open a 'pull' request. | ||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
## Other Considerations | ||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
...coming soon... | ||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. |
Oops, something went wrong.