Skip to content

Commit 9ed5586

Browse files
committed
firebase package added
1 parent b934fb1 commit 9ed5586

File tree

9 files changed

+154
-14
lines changed

9 files changed

+154
-14
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
5-es2015.6ea9fab882e9520be1f6.js,1562408619857,dee462de301a62c1f97aed3443a5faac51664c0949ac1cab520a88a561970f4f
2+
4-es5.506f8e99e44a6146c4e9.js,1562408592864,73adc551c2362c223314e9ac37ac42f6dd80ea23cdd67ec42a885f36137706d3
3+
6-es2015.e363c6d2835e163c61e6.js,1562408619857,e25d0b55940311a7b16771e2074509d83759797af7bea7b69dd8e2aad93b1b2c
4+
common-es2015.5bf91eb0da23861d58f6.js,1562408619857,687c46b7cebf6819461fdca552ef5a6d4b1de4fc4db34f0ee034100c00cacbda
5+
5-es5.6d641994c661621415da.js,1562408592864,98b5cf437312ba88c192f5a5df59c1f89c7153a328cca382baa0316963743662
6+
common-es5.649a000c4b85ee872d50.js,1562408592864,d4b4d335eb7aad26d15e5120100e00451bbd9a1c36bfb162c113570c11d1a245
7+
index.html,1562408619947,c936257fb62482fd4009cd2178c61b27eb6db4c8277fff125044de84ee620c06
8+
polyfills-es2015.ebde9a88625fdb27ec0e.js,1562408619857,0caac4bc16a6cfaa21b3974e73a8b02bf25c9087dd9092fda50425c987ccb127
9+
runtime-es2015.496e40f909238989dfcc.js,1562408619857,ad1a38458a578fbad1f1e4ede29d71682bb74f65eef1c441f4b6550c78ad3016
10+
assets/images/logo.png,1562408619859,4287b224c635376f0690d55fb9521bbd9b81f8a6ad0a4fd5ed8676cfd19658e5
11+
runtime-es5.584b2f2683da0a55154f.js,1562408592864,a4b561bd3b8fbfc73f49a0bb224081032dae768f5d27a65ea2962462c6fb7ad9
12+
3rdpartylicenses.txt,1562408619857,5341db50c5211d6ccf52efa088546a5620b319e3d87c511bd2558215cb405fda
13+
styles.50783090aabf967c06fe.css,1562408619857,b7764789bc7c9b88a4f033fa19b7383dc0f69e50a80bc6418d4b09656f6b70ec
14+
favicon.ico,1562408619857,3b78f993f13027179977aaa04a5398b7d6832af035f0aacd1e517ff2c628464a
15+
polyfills-es5.d9674212b96e5f018911.js,1562408592864,4ede8202d031038c5bbf1069e4a4e2a730290fad6dc0d8200208e668248dcd30
16+
main-es2015.35ace3d8de043289c1d7.js,1562408619857,1f6785d2cb04f0ad06c3d1305b8904a04f00c6c84abd1c68469f39617653351b
17+
main-es5.001db9eeb296201913b5.js,1562408592864,72b42c90befb50c0fd1b55ed79bf41068a462c51c04d2de44ef8445007c51607
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
index.html,1562408253250,aadf7e2a5a33f0c8aa47b9a2479d3d64256c3a81082080075fc5ce73f93f1a12

.firebaserc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"projects": {
3+
"stackoverflow": "stackoverflow-api-demo",
4+
"default": "stackoverflow-api-demo"
5+
}
6+
}

Y/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>

Y/index.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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>Welcome to Firebase Hosting</title>
7+
8+
<!-- update the version number as needed -->
9+
<script defer src="/__/firebase/6.2.4/firebase-app.js"></script>
10+
<!-- include only the Firebase features as you need -->
11+
<script defer src="/__/firebase/6.2.4/firebase-auth.js"></script>
12+
<script defer src="/__/firebase/6.2.4/firebase-database.js"></script>
13+
<script defer src="/__/firebase/6.2.4/firebase-messaging.js"></script>
14+
<script defer src="/__/firebase/6.2.4/firebase-storage.js"></script>
15+
<!-- initialize the SDK after all desired features are loaded -->
16+
<script defer src="/__/firebase/init.js"></script>
17+
18+
<style media="screen">
19+
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
20+
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px; border-radius: 3px; }
21+
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
22+
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
23+
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
24+
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
25+
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
26+
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
27+
@media (max-width: 600px) {
28+
body, #message { margin-top: 0; background: white; box-shadow: none; }
29+
body { border-top: 16px solid #ffa100; }
30+
}
31+
</style>
32+
</head>
33+
<body>
34+
<div id="message">
35+
<h2>Welcome</h2>
36+
<h1>Firebase Hosting Setup Complete</h1>
37+
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
38+
<a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
39+
</div>
40+
<p id="load">Firebase SDK Loading&hellip;</p>
41+
42+
<script>
43+
document.addEventListener('DOMContentLoaded', function() {
44+
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
45+
// // The Firebase SDK is initialized and available here!
46+
//
47+
// firebase.auth().onAuthStateChanged(user => { });
48+
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
49+
// firebase.messaging().requestPermission().then(() => { });
50+
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
51+
//
52+
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
53+
54+
try {
55+
let app = firebase.app();
56+
let features = ['auth', 'database', 'messaging', 'storage'].filter(feature => typeof app[feature] === 'function');
57+
document.getElementById('load').innerHTML = `Firebase SDK loaded with ${features.join(', ')}`;
58+
} catch (e) {
59+
console.error(e);
60+
document.getElementById('load').innerHTML = 'Error loading the Firebase SDK, check the console.';
61+
}
62+
});
63+
</script>
64+
</body>
65+
</html>

firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "dist/stackoverflow",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

src/app/app.module.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import {BrowserModule} from '@angular/platform-browser';
2-
import {NgModule} from '@angular/core';
1+
import { BrowserModule } from '@angular/platform-browser';
2+
import { NgModule } from '@angular/core';
3+
4+
import { AppRoutingModule } from './app-routing.module';
5+
import { AppComponent } from './app.component';
6+
import { ReactiveFormsModule } from '@angular/forms';
7+
import { HttpClientModule } from '@angular/common/http';
8+
import { HomeModule } from './home/home.module';
9+
import { AuthModule } from './auth/auth.module';
10+
311

4-
import {AppRoutingModule} from './app-routing.module';
5-
import {AppComponent} from './app.component';
6-
import {AuthModule} from './auth/auth.module';
7-
import {ReactiveFormsModule} from '@angular/forms';
8-
import {HttpClientModule} from '@angular/common/http';
9-
import {HomeModule} from './home/home.module';
1012

1113
@NgModule({
1214
declarations: [

src/app/questions/questions.module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import {NgModule} from '@angular/core';
2-
import {CommonModule} from '@angular/common';
3-
import {QuestionsRoutingModule} from './questions-routing.module';
4-
import {QuestionsComponent} from './components/questions/questions.component';
5-
import {QuestionsCommonModule} from '../common/questions-common/questions-common.module';
6-
import {QuestionsService} from './services/questions.service';
1+
import { NgModule } from '@angular/core';
2+
import { CommonModule } from '@angular/common';
3+
import { QuestionsRoutingModule } from './questions-routing.module';
4+
import { QuestionsComponent } from './components/questions/questions.component';
5+
import { QuestionsCommonModule } from '../common/questions-common/questions-common.module';
6+
import { QuestionsService } from './services/questions.service';
77

88
@NgModule({
99
declarations: [QuestionsComponent],

src/assets/images/logo.png

-2.65 KB
Binary file not shown.

0 commit comments

Comments
 (0)