diff --git a/public/firebase.json b/public/firebase.json deleted file mode 100644 index 1b45f00..0000000 --- a/public/firebase.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "firestore": { - "rules": "firestore.rules", - "indexes": "firestore.indexes.json" - }, - "hosting": { - "public": "public", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ] - } -} diff --git a/public/firestore.indexes.json b/public/firestore.indexes.json deleted file mode 100644 index 415027e..0000000 --- a/public/firestore.indexes.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "indexes": [], - "fieldOverrides": [] -} diff --git a/public/firestore.rules b/public/firestore.rules deleted file mode 100644 index 0d811a0..0000000 --- a/public/firestore.rules +++ /dev/null @@ -1,19 +0,0 @@ -rules_version = '2'; - -service cloud.firestore { - match /databases/{database}/documents { - - // This rule allows anyone with your Firestore database reference to view, edit, - // and delete all data in your Firestore database. It is useful for getting - // started, but it is configured to expire after 30 days because it - // leaves your app open to attackers. At that time, all client - // requests to your Firestore database will be denied. - // - // Make sure to write security rules for your app before that time, or else - // all client requests to your Firestore database will be denied until you Update - // your rules - match /{document=**} { - allow read, write: if request.time < timestamp.date(2024, 1, 11); - } - } -} \ No newline at end of file diff --git a/public/scripts/cards.js b/public/scripts/cards.js index 509f0e7..85990e3 100644 --- a/public/scripts/cards.js +++ b/public/scripts/cards.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { doc, collection, @@ -8,7 +12,7 @@ import { where, getDocs, deleteDoc, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/public/scripts/create.js b/public/scripts/create.js index 0fc4137..2bec833 100644 --- a/public/scripts/create.js +++ b/public/scripts/create.js @@ -1,7 +1,15 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { doc, setDoc, collection, addDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + doc, + setDoc, + collection, + addDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/public/scripts/home.js b/public/scripts/home.js index cedd062..eb6b167 100644 --- a/public/scripts/home.js +++ b/public/scripts/home.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { collection, query, @@ -8,7 +12,7 @@ import { doc, getDocs, onSnapshot, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/public/scripts/index.js b/public/scripts/index.js index a368001..ea98516 100644 --- a/public/scripts/index.js +++ b/public/scripts/index.js @@ -1,7 +1,13 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, createUserWithEmailAndPassword } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { collection, addDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + createUserWithEmailAndPassword, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + collection, + addDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/public/scripts/login.js b/public/scripts/login.js index 5819b84..cf528d9 100644 --- a/public/scripts/login.js +++ b/public/scripts/login.js @@ -1,7 +1,13 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, signInWithEmailAndPassword } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { collection, addDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + signInWithEmailAndPassword, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + collection, + addDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/public/scripts/signup.js b/public/scripts/signup.js index 42c80f3..7ee06d9 100644 --- a/public/scripts/signup.js +++ b/public/scripts/signup.js @@ -1,7 +1,13 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, createUserWithEmailAndPassword } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { doc, setDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + createUserWithEmailAndPassword, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + doc, + setDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/public/scripts/view-card.js b/public/scripts/view-card.js index 4b611ff..f2dc95a 100644 --- a/public/scripts/view-card.js +++ b/public/scripts/view-card.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { collection, query, @@ -9,7 +13,7 @@ import { getDoc, getDocs, onSnapshot, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/public/scripts/welcome.js b/public/scripts/welcome.js index 9bbb75b..dd7ebdb 100644 --- a/public/scripts/welcome.js +++ b/public/scripts/welcome.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { collection, query, @@ -8,7 +12,7 @@ import { doc, getDocs, onSnapshot, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/cards.js b/scripts/cards.js index 509f0e7..85990e3 100644 --- a/scripts/cards.js +++ b/scripts/cards.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { doc, collection, @@ -8,7 +12,7 @@ import { where, getDocs, deleteDoc, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/create.js b/scripts/create.js index 0fc4137..2bec833 100644 --- a/scripts/create.js +++ b/scripts/create.js @@ -1,7 +1,15 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { doc, setDoc, collection, addDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + doc, + setDoc, + collection, + addDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/home.js b/scripts/home.js index cedd062..eb6b167 100644 --- a/scripts/home.js +++ b/scripts/home.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { collection, query, @@ -8,7 +12,7 @@ import { doc, getDocs, onSnapshot, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/index.js b/scripts/index.js index a368001..ea98516 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -1,7 +1,13 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, createUserWithEmailAndPassword } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { collection, addDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + createUserWithEmailAndPassword, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + collection, + addDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/login.js b/scripts/login.js index 5819b84..cf528d9 100644 --- a/scripts/login.js +++ b/scripts/login.js @@ -1,7 +1,13 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, signInWithEmailAndPassword } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { collection, addDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + signInWithEmailAndPassword, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + collection, + addDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/signup.js b/scripts/signup.js index 42c80f3..7ee06d9 100644 --- a/scripts/signup.js +++ b/scripts/signup.js @@ -1,7 +1,13 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, createUserWithEmailAndPassword } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; -import { doc, setDoc } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + createUserWithEmailAndPassword, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; +import { + doc, + setDoc, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/view-card.js b/scripts/view-card.js index 4b611ff..f2dc95a 100644 --- a/scripts/view-card.js +++ b/scripts/view-card.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { collection, query, @@ -9,7 +13,7 @@ import { getDoc, getDocs, onSnapshot, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries diff --git a/scripts/welcome.js b/scripts/welcome.js index 9bbb75b..dd7ebdb 100644 --- a/scripts/welcome.js +++ b/scripts/welcome.js @@ -1,6 +1,10 @@ -import { initializeApp } from "firebase/app"; -import { getAuth, onAuthStateChanged, signOut } from "firebase/auth"; -import { getFirestore } from "firebase/firestore"; +import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js"; +import { + getAuth, + onAuthStateChanged, + signOut, +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js"; +import { getFirestore } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; import { collection, query, @@ -8,7 +12,7 @@ import { doc, getDocs, onSnapshot, -} from "firebase/firestore"; +} from "https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries