Skip to content

Commit 5dad2b7

Browse files
authored
Add files via upload
Organização de estrutura das pastas
1 parent 03eba8b commit 5dad2b7

10 files changed

Lines changed: 1930 additions & 87 deletions

File tree

config/404.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Page Not Found</title>
7+
8+
<style media="screen">
9+
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
10+
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
11+
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
12+
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
13+
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
14+
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
15+
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
16+
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
17+
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
18+
@media (max-width: 600px) {
19+
body, #message { margin-top: 0; background: white; box-shadow: none; }
20+
body { border-top: 16px solid #ffa100; }
21+
}
22+
</style>
23+
</head>
24+
<body>
25+
<div id="message">
26+
<h2>404</h2>
27+
<h1>Page Not Found</h1>
28+
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
29+
<h3>Why am I seeing this?</h3>
30+
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
31+
</div>
32+
</body>
33+
</html>

config/firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"firestore": {
3+
"database": "(default)",
4+
"location": "southamerica-east1",
5+
"rules": "firestore.rules",
6+
"indexes": "firestore.indexes.json"
7+
},
8+
"hosting": {
9+
"public": ".",
10+
"ignore": [
11+
"firebase.json",
12+
"**/.*",
13+
"**/node_modules/**"
14+
]
15+
}
16+
}

config/firestore.indexes.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
// Example (Standard Edition):
3+
//
4+
// "indexes": [
5+
// {
6+
// "collectionGroup": "widgets",
7+
// "queryScope": "COLLECTION",
8+
// "fields": [
9+
// { "fieldPath": "foo", "arrayConfig": "CONTAINS" },
10+
// { "fieldPath": "bar", "mode": "DESCENDING" }
11+
// ]
12+
// },
13+
//
14+
// "fieldOverrides": [
15+
// {
16+
// "collectionGroup": "widgets",
17+
// "fieldPath": "baz",
18+
// "indexes": [
19+
// { "order": "ASCENDING", "queryScope": "COLLECTION" }
20+
// ]
21+
// },
22+
// ]
23+
// ]
24+
//
25+
// Example (Enterprise Edition):
26+
//
27+
// "indexes": [
28+
// {
29+
// "collectionGroup": "reviews",
30+
// "queryScope": "COLLECTION_GROUP",
31+
// "apiScope": "MONGODB_COMPATIBLE_API",
32+
// "density": "DENSE",
33+
// "multikey": false,
34+
// "fields": [
35+
// { "fieldPath": "baz", "mode": "ASCENDING" }
36+
// ]
37+
// },
38+
// {
39+
// "collectionGroup": "items",
40+
// "queryScope": "COLLECTION_GROUP",
41+
// "apiScope": "MONGODB_COMPATIBLE_API",
42+
// "density": "SPARSE_ANY",
43+
// "multikey": true,
44+
// "fields": [
45+
// { "fieldPath": "baz", "mode": "ASCENDING" }
46+
// ]
47+
// },
48+
// ]
49+
"indexes": [],
50+
"fieldOverrides": []
51+
}

config/firestore.rules

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
rules_version='2'
2+
3+
service cloud.firestore {
4+
match /databases/{database}/documents {
5+
match /{document=**} {
6+
// This rule allows anyone with your database reference to view, edit,
7+
// and delete all data in your database. It is useful for getting
8+
// started, but it is configured to expire after 30 days because it
9+
// leaves your app open to attackers. At that time, all client
10+
// requests to your database will be denied.
11+
//
12+
// Make sure to write security rules for your app before that time, or
13+
// else all client requests to your database will be denied until you
14+
// update your rules.
15+
allow read, write: if request.time < timestamp.date(2026, 6, 25);
16+
}
17+
}
18+
}

public/dash.png

1.26 MB
Loading

public/firebase.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// IMPORTS FIREBASE
2+
3+
import { initializeApp } from
4+
"https://www.gstatic.com/firebasejs/10.12.2/firebase-app.js";
5+
6+
import {
7+
getFirestore,
8+
collection,
9+
addDoc
10+
} from
11+
"https://www.gstatic.com/firebasejs/10.12.2/firebase-firestore.js";
12+
13+
14+
// CONFIG FIREBASE
15+
16+
const firebaseConfig = {
17+
18+
apiKey: "AIzaSyCZsmjP_FHlBOmjH6hc6XYA6C04BvRQQq8",
19+
authDomain: "gespec-bed64.firebaseapp.com",
20+
projectId: "gespec-bed64",
21+
storageBucket: "gespec-bed64.firebasestorage.app",
22+
messagingSenderId: "849414390455",
23+
appId: "1:849414390455:web:8f27d14ecd5bf343560332"
24+
};
25+
26+
27+
28+
// INICIALIZAÇÃO
29+
30+
const app = initializeApp(firebaseConfig);
31+
32+
const db = getFirestore(app);
33+
34+
35+
// EXPORTA
36+
37+
export {
38+
db,
39+
collection,
40+
addDoc
41+
};

0 commit comments

Comments
 (0)