Skip to content

Commit cc0c3a6

Browse files
authored
Add files via upload
1 parent d1041bb commit cc0c3a6

File tree

5 files changed

+59
-35
lines changed

5 files changed

+59
-35
lines changed

public/css/main.css

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
/**
2-
* Copyright 2015 Google Inc. All Rights Reserved.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
162

173
html, body {
184
font-family: 'Roboto', 'Helvetica', sans-serif;

public/firebase-debug.log

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[debug] [2019-04-18T06:00:16.634Z] ----------------------------------------------------------------------
2+
[debug] [2019-04-18T06:00:16.636Z] Command: /usr/local/bin/node /Users/chrisoung/.npm-global/bin/firebase serve
3+
[debug] [2019-04-18T06:00:16.636Z] CLI Version: 6.1.1
4+
[debug] [2019-04-18T06:00:16.636Z] Platform: darwin
5+
[debug] [2019-04-18T06:00:16.636Z] Node Version: v8.12.0
6+
[debug] [2019-04-18T06:00:16.636Z] Time: Wed Apr 17 2019 23:00:16 GMT-0700 (PDT)
7+
[debug] [2019-04-18T06:00:16.636Z] ----------------------------------------------------------------------
8+
[debug]
9+
[debug] [2019-04-18T06:00:16.644Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
10+
[debug] [2019-04-18T06:00:16.644Z] > authorizing via signed-in user
11+
[debug] [2019-04-18T06:00:16.644Z] [iam] checking project firechat23 for permissions ["firebase.projects.get"]
12+
[debug] [2019-04-18T06:00:16.646Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
13+
[debug] [2019-04-18T06:00:16.646Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
14+
<request body omitted>
15+
[debug] [2019-04-18T06:00:16.800Z] <<< HTTP RESPONSE 200
16+
[debug] [2019-04-18T06:00:16.821Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/firechat23:testIamPermissions
17+
18+
[debug] [2019-04-18T06:00:16.962Z] <<< HTTP RESPONSE 200
19+
[debug] [2019-04-18T06:00:16.963Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/firechat23
20+
21+
[debug] [2019-04-18T06:00:17.145Z] <<< HTTP RESPONSE 200
22+
[info]
23+
[info] === Serving from '/Users/chrisoung/GitHub/firebase/web'...
24+
[info]
25+
[info] i functions: Preparing to emulate functions.
26+
[debug] [2019-04-18T06:00:17.859Z] Fetching environment
27+
[debug] [2019-04-18T06:00:17.861Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/584321929729:getServerAppConfig
28+
29+
[debug] [2019-04-18T06:00:17.861Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/584321929729/clients/_:getWebAppConfig
30+
31+
[debug] [2019-04-18T06:00:18.073Z] <<< HTTP RESPONSE 200
32+
[debug] [2019-04-18T06:00:18.073Z] Starting @google-cloud/functions-emulator
33+
[debug] [2019-04-18T06:00:18.168Z] <<< HTTP RESPONSE 200
34+
[info] i hosting: Serving hosting files from: ./public
35+
[info] ✔ hosting: Local server: http://localhost:5000
36+
[debug] [2019-04-18T06:00:19.649Z] Parsing function triggers
37+
[info] i functions: No HTTPS functions found. Use firebase functions:shell if you would like to emulate other types of functions.

public/index.html

+16-15
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="description" content="Learn how to use the Firebase platform on the Web">
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<title>FireChat23</title>
8+
<title>Firebase Realtime Web App</title>
99

1010
<!-- Disable tap highlight on IE -->
1111
<meta name="msapplication-tap-highlight" content="no">
@@ -15,13 +15,13 @@
1515

1616
<!-- Add to homescreen for Chrome on Android -->
1717
<meta name="mobile-web-app-capable" content="yes">
18-
<meta name="application-name" content="Friendly Chat">
18+
<meta name="application-name" content="Firebase Realtime Web App">
1919
<meta name="theme-color" content="#303F9F">
2020

2121
<!-- Add to homescreen for Safari on iOS -->
2222
<meta name="apple-mobile-web-app-capable" content="yes">
2323
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
24-
<meta name="apple-mobile-web-app-title" content="Friendly Chat">
24+
<meta name="apple-mobile-web-app-title" content="fireChat23">
2525
<meta name="apple-mobile-web-app-status-bar-style" content="#303F9F">
2626

2727
<!-- Tile icon for Win8 -->
@@ -36,23 +36,25 @@
3636
<!-- App Styling -->
3737
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en">
3838
<link rel="stylesheet" href="css/main.css">
39+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
40+
3941
</head>
4042
<body>
4143
<div class="demo-layout mdl-layout mdl-js-layout mdl-layout--fixed-header">
4244

4345
<!-- Header section containing logo -->
44-
<header class="mdl-layout__header mdl-color-text--white mdl-color--light-blue-700">
46+
<header class="mdl-layout__header mdl-color-text--white mdl-color--light-green-700">
4547
<div class="mdl-cell mdl-cell--12-col mdl-cell--12-col-tablet mdl-grid">
4648
<div class="mdl-layout__header-row mdl-cell mdl-cell--12-col mdl-cell--12-col-tablet mdl-cell--12-col-desktop">
47-
<h4><i class="material-icons">chat_bubble_outline</i> Firebase Real-time Chat App</h4>
49+
<h3><i class="material-icons">chat_bubble_outline</i> Firebase Realtime Web App</h3>
4850
</div>
4951
<div id="user-container">
5052
<div hidden id="user-pic"></div>
5153
<div hidden id="user-name"></div>
52-
<button hidden id="sign-out" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--white">
54+
<button hidden id="sign-out" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--white ">
5355
Sign-out
5456
</button>
55-
<button hidden id="sign-in" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--white">
57+
<button hidden id="google-sign-in" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--white">
5658
<i class="material-icons">account_circle</i>Sign-in with Google
5759
</button>
5860
</div>
@@ -79,7 +81,7 @@ <h4><i class="material-icons">chat_bubble_outline</i> Firebase Real-time Chat Ap
7981
</form>
8082
<form id="image-form" action="#">
8183
<input id="mediaCapture" type="file" accept="image/*" capture="camera">
82-
<button id="submitImage" title="Add an image" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-color--amber-400 mdl-color-text--white">
84+
<button id="submitImage" title="Add an image" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-color--blue-400 mdl-color-text--white">
8385
<i class="material-icons">image</i>
8486
</button>
8587
</form>
@@ -99,14 +101,13 @@ <h4><i class="material-icons">chat_bubble_outline</i> Firebase Real-time Chat Ap
99101
<script src="https://www.gstatic.com/firebasejs/5.5.9/firebase.js"></script>
100102
<script>
101103
// Initialize Firebase
102-
// TODO: Replace the following with your project's customized web configuration
103104
var config = {
104-
apiKey: "<API_KEY>",
105-
authDomain: "<PROJECT_ID>.firebaseapp.com",
106-
databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
107-
projectId: "<PROJECT_ID>",
108-
storageBucket: "<BUCKET>.appspot.com",
109-
messagingSenderId: "<SENDER_ID>",
105+
apiKey: "AIzaSyCcsGYYxSjYrAjVlu77BoDfNBWmt4rEeag",
106+
authDomain: "firechat23.firebaseapp.com",
107+
databaseURL: "https://firechat23.firebaseio.com",
108+
projectId: "firechat23",
109+
storageBucket: "firechat23.appspot.com",
110+
messagingSenderId: "584321929729"
110111
};
111112
firebase.initializeApp(config);
112113
</script>

public/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"start_url": "/index.html",
55
"display": "standalone",
66
"orientation": "portrait",
7-
"gcm_sender_id": "#########"
7+
"gcm_sender_id": "584321929729"
88
}

public/scripts/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
22

3-
// Signs-in to FireChat23
4-
function signIn() {
3+
// Signs-in to the chat app
4+
function signIn() {
55
var provider = new firebase.auth.GoogleAuthProvider();
66
firebase.auth().signInWithPopup(provider)
77
}
88

9-
// Signs-out of FireChat23
9+
// Signs-out of the chat app
1010
function signOut() {
1111
firebase.auth().signOut();
1212
}
@@ -285,7 +285,7 @@ var imageFormElement = document.getElementById('image-form');
285285
var mediaCaptureElement = document.getElementById('mediaCapture');
286286
var userPicElement = document.getElementById('user-pic');
287287
var userNameElement = document.getElementById('user-name');
288-
var signInButtonElement = document.getElementById('sign-in');
288+
var signInButtonElement = document.getElementById('google-sign-in');
289289
var signOutButtonElement = document.getElementById('sign-out');
290290
var signInSnackbarElement = document.getElementById('must-signin-snackbar');
291291

0 commit comments

Comments
 (0)