Initial commit
This commit is contained in:
38
public/firebase-messaging-sw.js
Normal file
38
public/firebase-messaging-sw.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Created by 322 on 01/04/2017.
|
||||
*/
|
||||
importScripts('https://www.gstatic.com/firebasejs/4.6.2/firebase-app.js');
|
||||
importScripts('https://www.gstatic.com/firebasejs/4.6.2/firebase-messaging.js');
|
||||
|
||||
// Initialize the Firebase app in the service worker by passing in the
|
||||
// messagingSenderId.
|
||||
firebase.initializeApp({
|
||||
apiKey: "AIzaSyD1D-eyFDVx2aWJCbPGIYFEHP68xHdi3ZY",
|
||||
authDomain: "marketplace-373ce.firebaseapp.com",
|
||||
databaseURL: "https://marketplace-373ce.firebaseio.com",
|
||||
projectId: "marketplace-373ce",
|
||||
storageBucket: "marketplace-373ce.appspot.com",
|
||||
messagingSenderId: "780734330428"
|
||||
});
|
||||
|
||||
// Retrieve an instance of Firebase Messaging so that it can handle background
|
||||
// messages.
|
||||
const messaging = firebase.messaging();
|
||||
// messaging.onMessage(function(payload) {
|
||||
// console.log("Message received. ", payload);
|
||||
// const notificationTitle = payload.title;
|
||||
// const notificationOptions = {
|
||||
// body: payload.body,
|
||||
// icon: payload.icon
|
||||
// };
|
||||
// });
|
||||
|
||||
messaging.setBackgroundMessageHandler(function(payload) {
|
||||
console.log('[firebase-messaging-sw.js] Received background message ', payload);
|
||||
// Customize notification here
|
||||
const notificationTitle = 'Background Message Title';
|
||||
const notificationOptions = {
|
||||
body: 'Background Message body.',
|
||||
icon: '/firebase-logo.png'
|
||||
};
|
||||
});
|
||||
33
public/index.html
Normal file
33
public/index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Marketplace</title>
|
||||
<meta id="viewport" name="viewport" content="width=1280">
|
||||
<link rel="icon" type="image/png" href="/assets/images/logo_ikan.png" sizes="96x96" />
|
||||
<style>
|
||||
body {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"><!--rootComponent--></div>
|
||||
<script>window.PRODUCTION = true</script>
|
||||
<!--<script src="https://app.sandbox.midtrans.com/snap/snap.js" data-client-key="VT-client-Rk7YnoNp0ybH5L91"></script>-->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD9URUN6ziiszOfffaY4rpP4TmVrRXP6FY&libraries=places,drawing,visualization"></script>
|
||||
<script type="application/javascript" src="/dist/bundle.5fc005e04c4a4eed8ceffc38925eb717.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
||||
<link href="//fast.fonts.net/cssapi/487b73f1-c2d1-43db-8526-db577e4c822b.css" rel="stylesheet" type="text/css">
|
||||
<!--<link rel="stylesheet" href="/dist/style.css">-->
|
||||
<style>
|
||||
body {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
i.anticon::before {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
35
public/index.parcel.html
Normal file
35
public/index.parcel.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Marketplace</title>
|
||||
<meta id="viewport" name="viewport" content="width=1280">
|
||||
<link rel="icon" type="image/png" href="/assets/images/logo_ikan.png" sizes="96x96" />
|
||||
<style>
|
||||
body {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"><!--rootComponent--></div>
|
||||
<script>window.PRODUCTION = true</script>
|
||||
<!--<script src="https://app.sandbox.midtrans.com/snap/snap.js" data-client-key="VT-client-Rk7YnoNp0ybH5L91"></script>-->
|
||||
<!--<script type="application/javascript" src="/dist/bundle.5fc005e04c4a4eed8ceffc38925eb717.js"></script>-->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD9URUN6ziiszOfffaY4rpP4TmVrRXP6FY&libraries=places,drawing,visualization"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
||||
<link href="//fast.fonts.net/cssapi/487b73f1-c2d1-43db-8526-db577e4c822b.css" rel="stylesheet" type="text/css">
|
||||
<script src="./../node_modules/jquery/dist/jquery.min.js"></script>
|
||||
<!--<link rel="stylesheet" href="/dist/style.css">-->
|
||||
<script src="./../src/client/index.js"></script>
|
||||
<style>
|
||||
body {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
i.anticon::before {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
33
public/index.prod.html
Normal file
33
public/index.prod.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Marketplace</title>
|
||||
<meta id="viewport" name="viewport" content="width=1280">
|
||||
<link rel="icon" type="image/png" href="/assets/images/logo_ikan.png" sizes="96x96" />
|
||||
<style>
|
||||
body {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"><!--rootComponent--></div>
|
||||
<script>window.PRODUCTION = true</script>
|
||||
<!--<script src="https://app.sandbox.midtrans.com/snap/snap.js" data-client-key="VT-client-Rk7YnoNp0ybH5L91"></script>-->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD9URUN6ziiszOfffaY4rpP4TmVrRXP6FY&libraries=places,drawing,visualization"></script>
|
||||
<script type="application/javascript" src="/dist/bundle.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
||||
<link href="//fast.fonts.net/cssapi/487b73f1-c2d1-43db-8526-db577e4c822b.css" rel="stylesheet" type="text/css">
|
||||
<!--<link rel="stylesheet" href="/dist/style.css">-->
|
||||
<style>
|
||||
body {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
i.anticon::before {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
29
public/index.test.html
Normal file
29
public/index.test.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Marketplace</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="icon" type="image/png" href="/assets/images/logo_ikan.png" sizes="96x96" />
|
||||
<style>
|
||||
body {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"><!--rootComponent--></div>
|
||||
<script>window.PRODUCTION = false</script>
|
||||
<!--<script src="https://app.sandbox.midtrans.com/snap/snap.js" data-client-key="VT-client-Rk7YnoNp0ybH5L91"></script>-->
|
||||
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD9URUN6ziiszOfffaY4rpP4TmVrRXP6FY&libraries=places,drawing,visualization"></script>
|
||||
<script type="application/javascript" src="/static/bundle.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
||||
<link href="//fast.fonts.net/cssapi/487b73f1-c2d1-43db-8526-db577e4c822b.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<style>
|
||||
body {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
2
public/robots.txt
Normal file
2
public/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Reference in New Issue
Block a user