Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita52d6f1

Browse files
committed
changes
1 parent086923c commita52d6f1

File tree

2 files changed

+96
-2
lines changed

2 files changed

+96
-2
lines changed

‎firebase.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"hosting": {
3-
"site":"pankajkumar",
4-
"public":"v2/public",
3+
"public":"public",
54
"ignore": [
65
"firebase.json",
76
"**/.*",
87
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source":"**",
12+
"destination":"/index.html"
13+
}
914
]
1015
}
1116
}

‎public/index.html

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<metacharset="utf-8">
5+
<metaname="viewport"content="width=device-width, initial-scale=1">
6+
<title>Welcome to Firebase Hosting</title>
7+
8+
<!-- update the version number as needed -->
9+
<scriptdefersrc="/__/firebase/9.0.2/firebase-app-compat.js"></script>
10+
<!-- include only the Firebase features as you need -->
11+
<scriptdefersrc="/__/firebase/9.0.2/firebase-auth-compat.js"></script>
12+
<scriptdefersrc="/__/firebase/9.0.2/firebase-database-compat.js"></script>
13+
<scriptdefersrc="/__/firebase/9.0.2/firebase-firestore-compat.js"></script>
14+
<scriptdefersrc="/__/firebase/9.0.2/firebase-functions-compat.js"></script>
15+
<scriptdefersrc="/__/firebase/9.0.2/firebase-messaging-compat.js"></script>
16+
<scriptdefersrc="/__/firebase/9.0.2/firebase-storage-compat.js"></script>
17+
<scriptdefersrc="/__/firebase/9.0.2/firebase-analytics-compat.js"></script>
18+
<scriptdefersrc="/__/firebase/9.0.2/firebase-remote-config-compat.js"></script>
19+
<scriptdefersrc="/__/firebase/9.0.2/firebase-performance-compat.js"></script>
20+
<!--
21+
initialize the SDK after all desired features are loaded, set useEmulator to false
22+
to avoid connecting the SDK to running emulators.
23+
-->
24+
<scriptdefersrc="/__/firebase/init.js?useEmulator=true"></script>
25+
26+
<stylemedia="screen">
27+
body {background:#ECEFF1;color:rgba(0,0,0,0.87);font-family: Roboto, Helvetica, Arial, sans-serif;margin:0;padding:0; }
28+
#message {background: white;max-width:360px;margin:100px auto16px;padding:32px24px;border-radius:3px; }
29+
#messageh2 {color:#ffa100;font-weight: bold;font-size:16px;margin:008px; }
30+
#messageh1 {font-size:22px;font-weight:300;color:rgba(0,0,0,0.6);margin:0016px;}
31+
#messagep {line-height:140%;margin:16px024px;font-size:14px; }
32+
#messagea {display: block;text-align: center;background:#039be5;text-transform: uppercase;text-decoration: none;color: white;padding:16px;border-radius:4px; }
33+
#message,#messagea {box-shadow:01px3pxrgba(0,0,0,0.12),01px2pxrgba(0,0,0,0.24); }
34+
#load {color:rgba(0,0,0,0.4);text-align: center;font-size:13px; }
35+
@media (max-width:600px) {
36+
body,#message {margin-top:0;background: white;box-shadow: none; }
37+
body {border-top:16px solid#ffa100; }
38+
}
39+
</style>
40+
</head>
41+
<body>
42+
<divid="message">
43+
<h2>Welcome</h2>
44+
<h1>Firebase Hosting Setup Complete</h1>
45+
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
46+
<atarget="_blank"href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
47+
</div>
48+
<pid="load">Firebase SDK Loading&hellip;</p>
49+
50+
<script>
51+
document.addEventListener('DOMContentLoaded',function(){
52+
constloadEl=document.querySelector('#load');
53+
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
54+
// // The Firebase SDK is initialized and available here!
55+
//
56+
// firebase.auth().onAuthStateChanged(user => { });
57+
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
58+
// firebase.firestore().doc('/foo/bar').get().then(() => { });
59+
// firebase.functions().httpsCallable('yourFunction')().then(() => { });
60+
// firebase.messaging().requestPermission().then(() => { });
61+
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
62+
// firebase.analytics(); // call to activate
63+
// firebase.analytics().logEvent('tutorial_completed');
64+
// firebase.performance(); // call to activate
65+
//
66+
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
67+
68+
try{
69+
letapp=firebase.app();
70+
letfeatures=[
71+
'auth',
72+
'database',
73+
'firestore',
74+
'functions',
75+
'messaging',
76+
'storage',
77+
'analytics',
78+
'remoteConfig',
79+
'performance',
80+
].filter(feature=>typeofapp[feature]==='function');
81+
loadEl.textContent=`Firebase SDK loaded with${features.join(', ')}`;
82+
}catch(e){
83+
console.error(e);
84+
loadEl.textContent='Error loading the Firebase SDK, check the console.';
85+
}
86+
});
87+
</script>
88+
</body>
89+
</html>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp