Initial commit
14
.babelrc
Normal 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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
38
assets/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'
|
||||
};
|
||||
});
|
BIN
assets/fonts/camphor-ss/300-light-italic.woff
Normal file
BIN
assets/fonts/camphor-ss/300-light-italic.woff2
Normal file
BIN
assets/fonts/camphor-ss/400-regular-italic.woff
Normal file
BIN
assets/fonts/camphor-ss/400-regular-italic.woff2
Normal file
BIN
assets/fonts/camphor-ss/500-medium-italic.woff
Normal file
BIN
assets/fonts/camphor-ss/500-medium-italic.woff2
Normal file
BIN
assets/fonts/camphor-ss/600-bold-italic.woff
Normal file
BIN
assets/fonts/camphor-ss/600-bold-italic.woff2
Normal file
BIN
assets/fonts/camphor/4b0f2143-ed99-4a36-8778-557047d0a0a3.woff2
Normal file
BIN
assets/fonts/sourcecodepro-ss/SourceCodePro-Bold.woff
Normal file
BIN
assets/fonts/sourcecodepro-ss/SourceCodePro-Bold.woff2
Normal file
BIN
assets/fonts/sourcecodepro-ss/SourceCodePro-Medium.woff
Normal file
BIN
assets/fonts/sourcecodepro-ss/SourceCodePro-Medium.woff2
Normal file
BIN
assets/fonts/sourcecodepro/SourceCodePro-Medium.otf.woff
Normal file
BIN
assets/fonts/sourcecodepro/SourceCodePro-Regular.otf.woff
Normal file
BIN
assets/fonts/sourcecodepro/SourceCodePro-Semibold.otf.woff
Normal file
BIN
assets/images/2016-12-14_085537.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
assets/images/BRT.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
assets/images/DSMPNG.png
Normal file
After Width: | Height: | Size: 689 KiB |
BIN
assets/images/Untitled.pxm
Normal file
BIN
assets/images/ahmad-zuhdi.png
Normal file
After Width: | Height: | Size: 402 KiB |
BIN
assets/images/airlines/1b.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/images/airlines/YE.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
assets/images/airlines/ga.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
assets/images/airlines/ga1.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
assets/images/airlines/ga3.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/images/airlines/id.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
assets/images/airlines/il.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
assets/images/airlines/iw.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
assets/images/airlines/jt.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/images/airlines/kd.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
assets/images/airlines/multi.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/images/airlines/mv.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
assets/images/airlines/nam.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
assets/images/airlines/qg.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
assets/images/airlines/qg1.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
assets/images/airlines/qz.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
assets/images/airlines/sj.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
assets/images/airlines/xt.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
assets/images/akun-tiket-logo.jpeg
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
assets/images/apstore_coming.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
assets/images/ars_logo.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
assets/images/avatar1.jpg
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
assets/images/avatar3.jpg
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
assets/images/back2.jpg
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
assets/images/banner.jpg
Normal file
After Width: | Height: | Size: 207 KiB |
BIN
assets/images/barbados-2.jpg
Normal file
After Width: | Height: | Size: 125 KiB |
BIN
assets/images/beego-logo.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
assets/images/bg-map.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
assets/images/bg-pattern.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
assets/images/bg-pattern2.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
assets/images/bt.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
assets/images/department.png
Normal file
After Width: | Height: | Size: 92 KiB |
BIN
assets/images/dotted_flight_80dp.png
Normal file
After Width: | Height: | Size: 407 B |
BIN
assets/images/dsmlogo-small.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
assets/images/dsmlogo.png
Normal file
After Width: | Height: | Size: 479 KiB |
BIN
assets/images/empty-state1.png
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
assets/images/empty-state2.png
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
assets/images/empty-state3.png
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
assets/images/emptyState/404.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
BIN
assets/images/emptyState/chat-empty.jpg
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
assets/images/emptyState/default.png
Normal file
After Width: | Height: | Size: 127 KiB |
BIN
assets/images/emptyState/default2.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
assets/images/emptyState/default3.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
assets/images/emptyState/empty-chat.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
assets/images/emptyState/empty.gif
Normal file
After Width: | Height: | Size: 353 KiB |
BIN
assets/images/erwin-yudha.png
Normal file
After Width: | Height: | Size: 1.0 MiB |
BIN
assets/images/favicon.jpg
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
assets/images/feature-design.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
assets/images/goplay_coming.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
assets/images/green.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
assets/images/green.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
assets/images/hasta-ragil.png
Normal file
After Width: | Height: | Size: 633 KiB |
BIN
assets/images/havana-2.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
assets/images/husky.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
assets/images/icon-pin.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
assets/images/icon/accounting.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
assets/images/icon/beego-logo-grayscale.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/images/icon/cat_64x64.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/images/icon/category.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/images/icon/chart.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/images/icon/circled_user_male_skin_type_4.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
assets/images/icon/conference.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/images/icon/content.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/images/icon/custom_menu.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/images/icon/customer.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/images/icon/data.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
assets/images/icon/employee.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
assets/images/icon/favicon.ico
Normal file
After Width: | Height: | Size: 408 B |
BIN
assets/images/icon/favicon.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/images/icon/globe_asia.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/images/icon/grill.png
Normal file
After Width: | Height: | Size: 2.3 KiB |