-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 072722b
Showing
445 changed files
with
41,458 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
VITE_APP_FIREBASE_API_KEY=<FIREBASE_API_KEY> | ||
VITE_APP_AUTH_DOMAIN=<FIREBASE_AUTH_DOMAIN> | ||
VITE_APP_FIREBASE_PROJECT_ID=<FIREBASE_PROJECT_ID> | ||
VITE_APP_FIREBASE_MESSAGING_SENDER_ID=<FIREBASE_MESSAGING_SENDER_ID> | ||
VITE_APP_FIREBASE_APP_ID=<FIREBASE_APP_ID> | ||
VITE_APP_FIREBASE_MEASUREMENTID=<FIREBASE_MEASUREMENTID> | ||
VITE_APP_DATABASE_URL=<FIREBASE_DATABASE_URL> | ||
VITE_APP_FIREBASE_FCM_VAPID_KEY=<FIREBASE_VAPID_KEY> | ||
VITE_APP_USE_EMULATOR=<USE_EMULATOR> | ||
CYPRESS_PROJECT_ID=<CYPRESS_PROJECT_ID> |
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,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,35 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
<!--- Describe your changes in detail --> | ||
|
||
## Related Issue | ||
<!--- This project only accepts pull requests related to open issues --> | ||
<!--- If suggesting a new feature or change, please discuss it in an issue first --> | ||
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> | ||
<!--- Please link to the issue here: --> | ||
|
||
## Motivation and Context | ||
<!--- Why is this change required? What problem does it solve? --> | ||
|
||
## How Has This Been Tested? | ||
<!--- Please describe in detail how you tested your changes. --> | ||
<!--- Include details of your testing environment, and the tests you ran to --> | ||
<!--- see how your change affects other areas of the code, etc. --> | ||
|
||
## Screenshots or GIF (In case of UI changes): | ||
|
||
## Types of changes | ||
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
- [ ] 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 change) | ||
|
||
## Checklist: | ||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
- [ ] My code follows the code style of this project. | ||
- [ ] My change requires a change to the documentation. | ||
- [ ] I have updated the documentation accordingly. | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] All new and existing tests passed. |
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 @@ | ||
bug: | ||
- "(bug|Bug)" | ||
documentation: | ||
- "(documentation|Documentation)" | ||
firebase: | ||
- "(firebase|Firebase|firestore|Firestore|emulator|Emulator|storage|Storage)" | ||
UI/UX: | ||
- "(UI|ui|UX|ux|screen|width|icon|height|button|page|css|CSS|margin|padding)" | ||
help wanted: | ||
- "help" | ||
good first issue: | ||
- "good first issue" | ||
CI/CD: | ||
- "CI/CD" | ||
dependency: | ||
- "(dependency|dependencies|npm)" | ||
Urgent: | ||
- "(Urgent|urgent|important)" | ||
broken: | ||
- "(broken|Broken|not working)" | ||
feature: | ||
- (Feature|feature|add|Add|ADD) |
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,16 @@ | ||
name: Greetings | ||
|
||
on: [pull_request, issues] | ||
|
||
jobs: | ||
greeting: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/first-interaction@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-message: "Hello 👋🏻 @${{ github.actor }}! Thankyou for creating an issue!" | ||
pr-message: " Thank you @${{ github.actor }} for creating your first pull request. It will be reviewed soon" |
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 @@ | ||
name: "Issue Labeler" | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: github/issue-labeler@v3.0 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/labels.yml | ||
enable-versioned-regex: 0 | ||
include-title: 1 | ||
body-missing-regex-label: "no-body" |
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,60 @@ | ||
name: Build and Deploy to Firebase Hosting | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
|
||
- name: Install dependencies | ||
working-directory: ./ | ||
run: npm install --legacy-peer-deps | ||
|
||
- name: Build | ||
working-directory: ./ | ||
run: npm run build | ||
env: | ||
VITE_APP_FIREBASE_API_KEY: ${{ secrets.VITE_APP_FIREBASE_API_KEY }} | ||
VITE_APP_FIREBASE_PROJECT_ID: ${{ secrets.VITE_APP_FIREBASE_PROJECT_ID }} | ||
VITE_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_APP_FIREBASE_MESSAGING_SENDER_ID }} | ||
VITE_APP_FIREBASE_APP_ID: ${{ secrets.VITE_APP_FIREBASE_APP_ID }} | ||
VITE_APP_FIREBASE_MEASUREMENTID: ${{ secrets.VITE_APP_FIREBASE_MEASUREMENTID }} | ||
VITE_APP_FIREBASE_FCM_VAPID_KEY: ${{ secrets.VITE_APP_FIREBASE_FCM_VAPID_KEY }} | ||
VITE_APP_AUTH_DOMAIN: ${{ secrets.VITE_APP_AUTH_DOMAIN }} | ||
VITE_APP_DATABASE_URL: ${{secrets.VITE_APP_DATABASE_URL}} | ||
SKIP_PREFLIGHT_CHECK: true | ||
CI: false | ||
- name: Archive Production Artifact | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: build | ||
path: ./build | ||
|
||
deploy: | ||
name: Deploy | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
- name: Download Artifact | ||
uses: actions/download-artifact@master | ||
with: | ||
name: build | ||
path: ./build | ||
|
||
- name: GitHub Action for Firebase | ||
uses: w9jds/firebase-action@master | ||
with: | ||
args: deploy --only hosting | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
PROJECT_ID: ${{ secrets.VITE_APP_FIREBASE_PROJECT_ID }} | ||
PROJECT_PATH: ./ |
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 @@ | ||
name: Close inactive issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 14 | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
days-before-pr-stale: -1 | ||
days-before-pr-close: -1 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,64 @@ | ||
name: Cypress Tests | ||
|
||
env: | ||
VITE_APP_FIREBASE_API_KEY: AIzaSyASOtRR71J484CcXhvs3BBZByhIII8lNuU | ||
VITE_APP_AUTH_DOMAIN: codelabz-966e5.firebaseapp.com | ||
VITE_APP_FIREBASE_PROJECT_ID: codelabz-966e5 | ||
VITE_APP_FIREBASE_MESSAGING_SENDER_ID: 1004651538159 | ||
VITE_APP_FIREBASE_APP_ID: 1:1004651538159:web:9801af1b5c45c01aec9d1a | ||
VITE_APP_FIREBASE_MEASUREMENTID: G-N0P8Q281YB | ||
VITE_APP_DATABASE_URL: https://codelabz-966e5-default-rtdb.asia-southeast1.firebasedatabase.app | ||
VITE_APP_FIREBASE_FCM_VAPID_KEY: BBcdjIEOfdgGVCbK2-vpE_aDfNlJr5ffQ6UegCzH-QjMhpuEpCs6Zw7o1DFm9cYGCDF7ri0W4YwsyubL7owjhIQ | ||
VITE_APP_USE_EMULATOR: true | ||
CYPRESS_PROJECT_ID: gjfouu | ||
SKIP_PREFLIGHT_CHECK: true | ||
CI: false | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
cypress-run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
- name: Make envfile | ||
uses: SpicyPizza/create-envfile@v1.3 | ||
with: | ||
envkey_VITE_APP_FIREBASE_API_KEY: AIzaSyASOtRR71J484CcXhvs3BBZByhIII8lNuU | ||
envkey_VITE_APP_AUTH_DOMAIN: codelabz-966e5.firebaseapp.com | ||
envkey_VITE_APP_FIREBASE_PROJECT_ID: codelabz-966e5 | ||
envkey_VITE_APP_FIREBASE_MESSAGING_SENDER_ID: 1004651538159 | ||
envkey_VITE_APP_FIREBASE_APP_ID: 1:1004651538159:web:9801af1b5c45c01aec9d1a | ||
envkey_VITE_APP_FIREBASE_MEASUREMENTID: G-N0P8Q281YB | ||
envkey_VITE_APP_DATABASE_URL: https://codelabz-966e5-default-rtdb.asia-southeast1.firebasedatabase.app | ||
envkey_VITE_APP_FIREBASE_FCM_VAPID_KEY: BBcdjIEOfdgGVCbK2-vpE_aDfNlJr5ffQ6UegCzH-QjMhpuEpCs6Zw7o1DFm9cYGCDF7ri0W4YwsyubL7owjhIQ | ||
envkey_VITE_APP_USE_EMULATOR: true | ||
envkey_CYPRESS_PROJECT_ID: gjfouu | ||
envkey_SKIP_PREFLIGHT_CHECK: true | ||
envkey_CI: false | ||
- run: cd functions && mkdir private && touch private/cl-dev-pk.json | ||
- name: create-json | ||
id: create-json | ||
uses: jsdaniell/create-json@v1.2.2 | ||
with: | ||
name: "cl-dev-pk.json" | ||
json: '{ "type": "service_account", "project_id": "codelabz-966e5", "private_key_id": "29854a2aca206a19ea1f15ce4ccfad28d37b01c1", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDDa4KUTXeBR1Cf\nvBCCSlqa1qALPJBkSHpb6qXJzDS2Mf9tMw8doCbWdKCuZT4oSSCVRbtOTuOLmVcd\nuWW6OADURTFRzxQV1HC5ME94HtslT7mj4qraxNXrIu4C1AL+oNqWsrH2FCW4RCad\nStUrLNQjmgw9YPZh/TMfn1fnWfBgU9iPzMlHhjyZDXsgP9XBKS4El4S6/kyhxyPo\nXSOuyeqPH09RhCLdkV+CNsc3aKygBfmzgWmMkn+nKeIIqgM3xKVz7EcH7eGPAsFc\nwqNx+lMlLLjJfOvIVOZ5cihurnDRHSUfR3KZ+4XByfZJuErzQRo0eukks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UBZXry7oP8Tycspbwve2rIhvXLigy0jAoGAMM/wy6U1S0CEsNpqQ+xu\nLoPWK1QYDtfXEGY8I82xPy6N2NMUIPah2+GECJ2umw2Bv9LuizDdXhxUcvQgmpjA\n2H9IcWRyeGKLOLdPUsTN+4islHT5pfOqAdSQiXAKVPI+fBUZ6SEtILdtaLg67Uom\n4Y8i9StXnxhxMprkUn8vBpw=\n-----END PRIVATE KEY-----\n","client_email": "firebase-adminsdk-h37uk@codelabz-966e5.iam.gserviceaccount.com", "client_id": "115883567556128264666", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-h37uk%40codelabz-966e5.iam.gserviceaccount.com" }' | ||
dir: "functions/private/" | ||
- name: Install dependencies | ||
run: npm install --legacy-peer-deps | ||
- run: cd functions && npm install --legacy-peer-deps | ||
- run: npm install -g firebase-tools@11.30.0 | ||
- name: Run Firebase Emulator and Start Tests | ||
run: firebase emulators:exec --import=./testdata --project ${{ env.VITE_APP_FIREBASE_PROJECT_ID }} 'npm run test' | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: Cypress screenshots | ||
path: /home/runner/work/Codelabz/Codelabz/cypress/screenshots | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: Cypress Videos | ||
path: /home/runner/work/Codelabz/Codelabz/cypress/videos/ |
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,51 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
#config | ||
# src/config/index.js | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
yarn.lock | ||
.env | ||
/.idea | ||
.vscode/settings.json | ||
package-lock.json | ||
INTERNAL.md | ||
RULES.md | ||
firebase-debug.log | ||
pnpm-lock.yaml | ||
|
||
firebase-sw-private.js | ||
/.firebase | ||
.firebaserc | ||
cypress.json | ||
cypress/screenshots | ||
cypress/videos | ||
|
||
# firebase | ||
database-debug.log | ||
firebase-debug.log | ||
firebase-debug.log | ||
.firebaserc | ||
firestore-debug.log | ||
pubsub-debug.log | ||
ui-debug.log |
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,6 @@ | ||
.env | ||
.env.sample | ||
build | ||
node_modules | ||
.storybook | ||
public |
Oops, something went wrong.