Skip to content

Commit 5ce8ecc

Browse files
committed
firebase integration complete
1 parent ab8dcef commit 5ce8ecc

15 files changed

+2298
-135
lines changed

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "amar-progress"
4+
}
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on merge
5+
'on':
6+
push:
7+
branches:
8+
- master
9+
jobs:
10+
build_and_deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- run: npm ci && npm run build
15+
- uses: FirebaseExtended/action-hosting-deploy@v0
16+
with:
17+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
18+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AMAR_PROGRESS }}'
19+
channelId: live
20+
projectId: amar-progress
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on PR
5+
'on': pull_request
6+
jobs:
7+
build_and_preview:
8+
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- run: npm ci && npm run build
13+
- uses: FirebaseExtended/action-hosting-deploy@v0
14+
with:
15+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
16+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AMAR_PROGRESS }}'
17+
projectId: amar-progress

components.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ declare module '@vue/runtime-core' {
1212
ElMain: typeof import('element-plus/es')['ElMain']
1313
ElMenu: typeof import('element-plus/es')['ElMenu']
1414
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
15+
Footer: typeof import('./src/components/Footer.vue')['default']
16+
FooterMenu: typeof import('./src/components/FooterMenu.vue')['default']
1517
NavMenu: typeof import('./src/components/NavMenu.vue')['default']
1618
RouterLink: typeof import('vue-router')['RouterLink']
1719
RouterView: typeof import('vue-router')['RouterView']

firebase.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"firestore": {
3+
"rules": "firestore.rules",
4+
"indexes": "firestore.indexes.json"
5+
},
6+
"hosting": {
7+
"public": "dist",
8+
"ignore": [
9+
"firebase.json",
10+
"**/.*",
11+
"**/node_modules/**"
12+
],
13+
"rewrites": [
14+
{
15+
"source": "**",
16+
"destination": "/index.html"
17+
}
18+
]
19+
},
20+
"emulators": {
21+
"auth": {
22+
"port": 9099
23+
},
24+
"firestore": {
25+
"port": 8080
26+
},
27+
"ui": {
28+
"enabled": true
29+
}
30+
}
31+
}

firestore.indexes.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"indexes": [],
3+
"fieldOverrides": []
4+
}

firestore.rules

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
rules_version = '2';
2+
service cloud.firestore {
3+
match /databases/{database}/documents {
4+
match /{document=**} {
5+
allow read, write: if
6+
request.time < timestamp.date(2022, 7, 21);
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)