Initial commit

This commit is contained in:
Rifqy Zacky Ariadhy 2019-01-02 18:39:53 +07:00
commit 1a000700e6
781 changed files with 95892 additions and 0 deletions

14
.babelrc Normal file
View File

@ -0,0 +1,14 @@
{
"presets": [
["@babel/preset-env", { "modules": false }],
"@babel/preset-react"
],
"plugins": [
["import", {"libraryName": "antd", "style": "css"}, "import-rc"],
["@babel/plugin-proposal-decorators", {"legacy": true}],
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-class-properties", {"loose": true}],
"recharts",
"@babel/plugin-transform-react-constant-elements"
]
}

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2

49
.gitignore vendored Normal file
View File

@ -0,0 +1,49 @@
.idea/
.DS_STORE
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
node_modules
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history
# Dist
dist
# Yarn
yarn.lock
settings.json
/yarn.lock
./src/common/config/app.js
.cache/
dist/

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM node:8-alpine
WORKDIR /app
COPY package.json /app
RUN yarn
COPY . /app
CMD npm run watch
EXPOSE 8080

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Peter Kupietz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# mobx-ssr-example
Server-side rendering with mobx and react-router
#Build and run
```
npm install
gulp app
node src/index.js
```
Runs an express server on port 3000

237
assets/data/sample.json Normal file
View File

@ -0,0 +1,237 @@
[
{
"title": "Category 1",
"packages": [
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
}
]
},
{
"title": "Category 1",
"packages": [
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
}
]
},
{
"title": "Category 1",
"packages": [
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
}
]
},
{
"title": "Category 1",
"packages": [
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
}
]
},
{
"title": "Category 1",
"packages": [
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
},
{
"name": "Package 1",
"image": "http://lorempixel.com/300/100",
"rating": 5,
"price": 900000,
"total_day": 7
}
]
}
]

View 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'
};
});

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
assets/images/BRT.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
assets/images/DSMPNG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 KiB

BIN
assets/images/Untitled.pxm Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
assets/images/ars_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
assets/images/avatar1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
assets/images/avatar3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
assets/images/back2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
assets/images/banner.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
assets/images/bg-map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
assets/images/bt.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
assets/images/dsmlogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
assets/images/favicon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
assets/images/green.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
assets/images/green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 633 KiB

BIN
assets/images/havana-2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
assets/images/husky.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
assets/images/icon-pin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
assets/images/icon/data.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Some files were not shown because too many files have changed in this diff Show More