Skip to content

Commit

Permalink
fixed main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LianhaoZ committed Nov 7, 2024
1 parent 28d4bb1 commit 55ffd59
Show file tree
Hide file tree
Showing 58 changed files with 8,969 additions and 229 deletions.
9 changes: 9 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Firebase Configuration
FIREBASE_API_KEY="AIzaSyCSfeLVEVhs6j0uNsi9fIxxayZMPbEup1g"
FIREBASE_AUTH_DOMAIN="ohours.firebaseapp.com"
FIREBASE_DATABASE_URL="https://ohours-default-rtdb.firebaseio.com"
FIREBASE_PROJECT_ID="ohours"
FIREBASE_STORAGE_BUCKET="ohours.firebasestorage.app"
FIREBASE_MESSAGING_SENDER_ID="558747405743"
FIREBASE_APP_ID="1:558747405743:web:de6600f44afdbe4c9a335a"
FIREBASE_MEASUREMENT_ID="G-XXWW390RPS"
75 changes: 1 addition & 74 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,73 +1,3 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
firebase-debug.log*
firebase-debug.*.log*

# Firebase cache
.firebase/

# Firebase config

# Uncomment this if you'd like others to create their own Firebase project.
# For a team working on the same Firebase project(s), it is recommended to leave
# it commented so all members can deploy to the same project(s) in .firebaserc.
# .firebaserc

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# dataconnect generated files
.dataconnect

# Logs
logs
*.log
Expand Down Expand Up @@ -103,12 +33,9 @@ stats.html

.firebase

src/firebase/firebase.js

node_modules/

dist

package.json
package-lock.json
OHours/package-lock.json
package-lock.json
3 changes: 0 additions & 3 deletions OHours/.firebase/hosting.cHVibGlj.cache

This file was deleted.

5 changes: 0 additions & 5 deletions OHours/.firebaserc

This file was deleted.

17 changes: 0 additions & 17 deletions OHours/.github/workflows/main.yml

This file was deleted.

41 changes: 0 additions & 41 deletions OHours/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions OHours/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions OHours/database.rules.json

This file was deleted.

19 changes: 0 additions & 19 deletions OHours/firebase.json

This file was deleted.

45 changes: 0 additions & 45 deletions OHours/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions database.rules.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": false,
".write": false
".read": true,
".write": true
}
}
File renamed without changes.
23 changes: 17 additions & 6 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"rules": {
"posts": {
".read": true,
".write": "auth !== null"
}
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
"database": {
"rules": "database.rules.json"
}
}
}
File renamed without changes.
Loading

0 comments on commit 55ffd59

Please sign in to comment.