├── .editorconfig
├── .eslintignore
├── .gitignore
├── .prettierrc
├── .wepycache
├── .wepyignore
├── README.md
├── dist
├── _wepylogs.js
├── app.js
├── app.json
├── app.wxss
├── assets
│ └── images
│ │ ├── about-active.png
│ │ ├── about.png
│ │ ├── ball-active.png
│ │ ├── ball.png
│ │ ├── news-active.png
│ │ ├── news.png
│ │ ├── rank-active.png
│ │ ├── rank.png
│ │ ├── stats-active.png
│ │ └── stats.png
├── index.template.html
├── mixins
│ └── test.js
├── npm
│ ├── flux-standard-action
│ │ └── lib
│ │ │ └── index.js
│ ├── invariant
│ │ └── browser.js
│ ├── lodash._basefor
│ │ └── index.js
│ ├── lodash.isarguments
│ │ └── index.js
│ ├── lodash.isarray
│ │ └── index.js
│ ├── lodash.isplainobject
│ │ └── index.js
│ ├── lodash.keysin
│ │ └── index.js
│ ├── lodash
│ │ ├── _DataView.js
│ │ ├── _Map.js
│ │ ├── _Promise.js
│ │ ├── _Set.js
│ │ ├── _Symbol.js
│ │ ├── _WeakMap.js
│ │ ├── _arrayLikeKeys.js
│ │ ├── _arrayMap.js
│ │ ├── _baseFindIndex.js
│ │ ├── _baseGetTag.js
│ │ ├── _baseIndexOf.js
│ │ ├── _baseIsArguments.js
│ │ ├── _baseIsMap.js
│ │ ├── _baseIsNaN.js
│ │ ├── _baseIsNative.js
│ │ ├── _baseIsTypedArray.js
│ │ ├── _baseKeys.js
│ │ ├── _baseTimes.js
│ │ ├── _baseToString.js
│ │ ├── _baseUnary.js
│ │ ├── _baseValues.js
│ │ ├── _coreJsData.js
│ │ ├── _freeGlobal.js
│ │ ├── _getNative.js
│ │ ├── _getPrototype.js
│ │ ├── _getRawTag.js
│ │ ├── _getTag.js
│ │ ├── _getValue.js
│ │ ├── _isIndex.js
│ │ ├── _isMasked.js
│ │ ├── _isPrototype.js
│ │ ├── _nativeKeys.js
│ │ ├── _nodeUtil.js
│ │ ├── _objectToString.js
│ │ ├── _overArg.js
│ │ ├── _root.js
│ │ ├── _strictIndexOf.js
│ │ ├── _toSource.js
│ │ ├── identity.js
│ │ ├── includes.js
│ │ ├── isArguments.js
│ │ ├── isArray.js
│ │ ├── isArrayLike.js
│ │ ├── isBuffer.js
│ │ ├── isEmpty.js
│ │ ├── isFunction.js
│ │ ├── isLength.js
│ │ ├── isMap.js
│ │ ├── isNil.js
│ │ ├── isNull.js
│ │ ├── isObject.js
│ │ ├── isObjectLike.js
│ │ ├── isPlainObject.js
│ │ ├── isString.js
│ │ ├── isSymbol.js
│ │ ├── isTypedArray.js
│ │ ├── isUndefined.js
│ │ ├── keys.js
│ │ ├── last.js
│ │ ├── stubFalse.js
│ │ ├── toFinite.js
│ │ ├── toInteger.js
│ │ ├── toNumber.js
│ │ ├── toString.js
│ │ └── values.js
│ ├── promise-polyfill
│ │ └── promise.js
│ ├── reduce-reducers
│ │ └── dist
│ │ │ └── index.js
│ ├── redux-actions
│ │ └── lib
│ │ │ ├── arrayToObject.js
│ │ │ ├── camelCase.js
│ │ │ ├── combineActions.js
│ │ │ ├── createAction.js
│ │ │ ├── createActions.js
│ │ │ ├── flattenUtils.js
│ │ │ ├── handleAction.js
│ │ │ ├── handleActions.js
│ │ │ ├── hasGeneratorInterface.js
│ │ │ ├── index.js
│ │ │ └── ownKeys.js
│ ├── redux-promise
│ │ └── lib
│ │ │ └── index.js
│ ├── redux
│ │ └── lib
│ │ │ ├── applyMiddleware.js
│ │ │ ├── bindActionCreators.js
│ │ │ ├── combineReducers.js
│ │ │ ├── compose.js
│ │ │ ├── createStore.js
│ │ │ ├── index.js
│ │ │ └── utils
│ │ │ └── warning.js
│ ├── regenerator-runtime
│ │ └── runtime.js
│ ├── symbol-observable
│ │ └── lib
│ │ │ ├── index.js
│ │ │ └── ponyfill.js
│ ├── wepy-async-function
│ │ ├── global.js
│ │ └── index.js
│ ├── wepy-com-toast
│ │ ├── toast.js
│ │ ├── toast.wxml
│ │ └── toast.wxss
│ ├── wepy-redux
│ │ └── lib
│ │ │ ├── connect
│ │ │ └── index.js
│ │ │ ├── helpers
│ │ │ └── index.js
│ │ │ ├── index.js
│ │ │ └── store.js
│ └── wepy
│ │ └── lib
│ │ ├── app.js
│ │ ├── base.js
│ │ ├── component.js
│ │ ├── event.js
│ │ ├── mixin.js
│ │ ├── native.js
│ │ ├── page.js
│ │ ├── util.js
│ │ └── wepy.js
├── pages
│ ├── about
│ │ ├── about.js
│ │ ├── about.json
│ │ ├── about.wxml
│ │ └── about.wxss
│ ├── index
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── live_detail
│ │ ├── live_detail.js
│ │ ├── live_detail.wxml
│ │ └── live_detail.wxss
│ ├── news_info
│ │ ├── news_info.js
│ │ ├── news_info.json
│ │ ├── news_info.wxml
│ │ └── news_info.wxss
│ ├── news_list
│ │ ├── news_list.js
│ │ ├── news_list.json
│ │ ├── news_list.wxml
│ │ └── news_list.wxss
│ ├── player_detail
│ │ ├── player_detail.js
│ │ ├── player_detail.wxml
│ │ └── player_detail.wxss
│ ├── stats
│ │ ├── stats.js
│ │ ├── stats.json
│ │ ├── stats.wxml
│ │ └── stats.wxss
│ ├── team_info
│ │ ├── team_info.js
│ │ ├── team_info.wxml
│ │ └── team_info.wxss
│ └── team_rank
│ │ ├── team_rank.js
│ │ ├── team_rank.json
│ │ ├── team_rank.wxml
│ │ └── team_rank.wxss
├── project.config.json
├── store
│ ├── actions
│ │ ├── counter.js
│ │ └── index.js
│ ├── index.js
│ ├── reducers
│ │ ├── counter.js
│ │ ├── index.js
│ │ └── nab_schedule.js
│ └── types
│ │ ├── counter.js
│ │ └── index.js
└── utils
│ ├── api.js
│ ├── fetch.js
│ ├── formatTime.js
│ ├── md5.js
│ └── toFixed.js
├── package-lock.json
├── package.json
├── project.config.json
├── src
├── app.wpy
├── assets
│ ├── images
│ │ ├── about-active.png
│ │ ├── about.png
│ │ ├── ball-active.png
│ │ ├── ball.png
│ │ ├── news-active.png
│ │ ├── news.png
│ │ ├── rank-active.png
│ │ ├── rank.png
│ │ ├── stats-active.png
│ │ └── stats.png
│ └── wx.gif
├── index.template.html
├── mixins
│ └── test.js
├── pages
│ ├── about
│ │ ├── about.less
│ │ └── about.wpy
│ ├── index
│ │ ├── index.less
│ │ └── index.wpy
│ ├── live_detail
│ │ ├── live_detail.less
│ │ └── live_detail.wpy
│ ├── news_info
│ │ ├── news_info.less
│ │ └── news_info.wpy
│ ├── news_list
│ │ ├── news_list.less
│ │ └── news_list.wpy
│ ├── player_detail
│ │ ├── player_detail.less
│ │ └── player_detail.wpy
│ ├── stats
│ │ ├── stats.less
│ │ └── stats.wpy
│ ├── team_info
│ │ ├── team_info.less
│ │ └── team_info.wpy
│ └── team_rank
│ │ ├── team_rank.less
│ │ └── team_rank.wpy
├── store
│ ├── actions
│ │ ├── counter.js
│ │ └── index.js
│ ├── index.js
│ ├── reducers
│ │ ├── counter.js
│ │ └── index.js
│ └── types
│ │ ├── counter.js
│ │ └── index.js
└── utils
│ ├── api.js
│ ├── fetch.js
│ ├── formatTime.js
│ ├── md5.js
│ └── toFixed.js
└── wepy.config.js
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | dist/*
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DB_store
3 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true
3 | }
4 |
--------------------------------------------------------------------------------
/.wepyignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | .DB_store
4 | *.wpy___jb_tmp___
5 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # :rocket: wepy-nba
2 |
3 | 
4 |
5 | ```js
6 | //全局安装或更新WePY命令行工具
7 | npm install wepy-cli -g
8 |
9 | //初始化项目
10 | wepy new myproject
11 | # 1.7.0 之后的版本使用 wepy init standard myproject 初始化项目,使用 wepy list 查看项目模板
12 |
13 | //切换至项目目录
14 | cd myproject
15 |
16 | //安装依赖
17 | npm install
18 |
19 | //开启实时编译
20 | wepy build --watch
21 | ```
22 |
--------------------------------------------------------------------------------
/dist/_wepylogs.js:
--------------------------------------------------------------------------------
1 | console.log('WePY开启错误监控');
2 |
--------------------------------------------------------------------------------
/dist/app.json:
--------------------------------------------------------------------------------
1 | {"pages":["pages/index/index","pages/live_detail/live_detail","pages/news_list/news_list","pages/news_info/news_info","pages/team_rank/team_rank","pages/team_info/team_info","pages/stats/stats","pages/player_detail/player_detail","pages/about/about"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#00AA98","navigationBarTitleText":"NBA球赛","navigationBarTextStyle":"#fff"},"tabBar":{"color":"#333","selectedColor":"#00aa98","position":"bottom","borderStyle":"block","list":[{"pagePath":"pages/index/index","text":"赛事直播","iconPath":"assets/images/ball.png","selectedIconPath":"assets/images/ball-active.png"},{"pagePath":"pages/news_list/news_list","text":"NBA资讯","iconPath":"assets/images/news.png","selectedIconPath":"assets/images/news-active.png"},{"pagePath":"pages/team_rank/team_rank","text":"球队战绩","iconPath":"assets/images/rank.png","selectedIconPath":"assets/images/rank-active.png"},{"pagePath":"pages/stats/stats","text":"数据统计","iconPath":"assets/images/stats.png","selectedIconPath":"assets/images/stats-active.png"},{"pagePath":"pages/about/about","text":"关于我","iconPath":"assets/images/about.png","selectedIconPath":"assets/images/about-active.png"}]}}
--------------------------------------------------------------------------------
/dist/app.wxss:
--------------------------------------------------------------------------------
1 | .container {
2 | height: 100%;
3 | display: flex;
4 | flex-direction: column;
5 | align-items: center;
6 | justify-content: space-between;
7 | box-sizing: border-box;
8 | }
9 | .left {
10 | float: left;
11 | }
12 | .right {
13 | float: right;
14 | }
15 | .padding-lrtb-30 {
16 | padding: 30rpx !important;
17 | }
18 | .padding-lr-30 {
19 | padding: 0 30rpx !important;
20 | }
21 | .text-right {
22 | text-align: right;
23 | }
24 | .no-data {
25 | padding: 100rpx 30rpx;
26 | text-align: center;
27 | width: 100%;
28 | box-sizing: border-box;
29 | font-size: 28rpx;
30 | }
31 | .icon-nothing {
32 | background: url(https://coding.it919.cn/static/images/no-data.png) center no-repeat;
33 | width: 120rpx;
34 | height: 120rpx;
35 | margin: 0 auto;
36 | margin-bottom: 20rpx;
37 | }
38 | .footer {
39 | position: fixed;
40 | width: 100%;
41 | bottom: 0;
42 | background: #f5f5f5;
43 | display: flex;
44 | }
45 | .footer .foot-item {
46 | float: left;
47 | font-size: 24rpx;
48 | text-align: center;
49 | padding: 8rpx 0;
50 | flex: 1;
51 | }
52 | .visibility {
53 | width: 100%;
54 | height: 110rpx;
55 | }
56 | .icon-ball {
57 | background: url(https://coding.it919.cn/static/images/ball.png) center no-repeat;
58 | }
59 | .active .icon-ball-active {
60 | background: url(https://coding.it919.cn/static/images/ball-active.png) center no-repeat;
61 | }
62 | .icon-news {
63 | background: url(https://coding.it919.cn/static/images/news.png) center no-repeat;
64 | }
65 | .active .icon-news-active {
66 | background: url(https://coding.it919.cn/static/images/news-active.png) center no-repeat;
67 | }
68 | .icon-rank {
69 | background: url(https://coding.it919.cn/static/images/rank.png) center no-repeat;
70 | }
71 | .active .icon-rank-active {
72 | background: url(https://coding.it919.cn/static/images/rank-active.png) center no-repeat;
73 | }
74 | .footer .active {
75 | color: #00aa98;
76 | }
77 | .icon-about {
78 | background: url(https://coding.it919.cn/static/images/about.png) center no-repeat;
79 | }
80 | .footer .icon {
81 | padding: 25rpx;
82 | background-size: 40rpx 40rpx !important;
83 | }
84 | footer navigator:active,
85 | footer navigator:kink {
86 | background: #f5f5f5;
87 | }
88 |
--------------------------------------------------------------------------------
/dist/assets/images/about-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/about-active.png
--------------------------------------------------------------------------------
/dist/assets/images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/about.png
--------------------------------------------------------------------------------
/dist/assets/images/ball-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/ball-active.png
--------------------------------------------------------------------------------
/dist/assets/images/ball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/ball.png
--------------------------------------------------------------------------------
/dist/assets/images/news-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/news-active.png
--------------------------------------------------------------------------------
/dist/assets/images/news.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/news.png
--------------------------------------------------------------------------------
/dist/assets/images/rank-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/rank-active.png
--------------------------------------------------------------------------------
/dist/assets/images/rank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/rank.png
--------------------------------------------------------------------------------
/dist/assets/images/stats-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/stats-active.png
--------------------------------------------------------------------------------
/dist/assets/images/stats.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/dist/assets/images/stats.png
--------------------------------------------------------------------------------
/dist/index.template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 转 WEB DEMO
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/dist/mixins/test.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.default = undefined;
7 |
8 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
9 |
10 | var _wepy = require('./../npm/wepy/lib/wepy.js');
11 |
12 | var _wepy2 = _interopRequireDefault(_wepy);
13 |
14 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 |
16 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17 |
18 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
19 |
20 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
21 |
22 | var testMixin = function (_wepy$mixin) {
23 | _inherits(testMixin, _wepy$mixin);
24 |
25 | function testMixin() {
26 | var _ref;
27 |
28 | var _temp, _this, _ret;
29 |
30 | _classCallCheck(this, testMixin);
31 |
32 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
33 | args[_key] = arguments[_key];
34 | }
35 |
36 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = testMixin.__proto__ || Object.getPrototypeOf(testMixin)).call.apply(_ref, [this].concat(args))), _this), _this.data = {
37 | mixin: 'This is mixin data.'
38 | }, _this.methods = {
39 | tap: function tap() {
40 | this.mixin = 'mixin data was changed';
41 | console.log('mixin method tap');
42 | }
43 | }, _temp), _possibleConstructorReturn(_this, _ret);
44 | }
45 |
46 | _createClass(testMixin, [{
47 | key: 'onShow',
48 | value: function onShow() {
49 | console.log('mixin onShow');
50 | }
51 | }, {
52 | key: 'onLoad',
53 | value: function onLoad() {
54 | console.log('mixin onLoad');
55 | }
56 | }]);
57 |
58 | return testMixin;
59 | }(_wepy2.default.mixin);
60 |
61 | exports.default = testMixin;
62 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QuanMiXSwibmFtZXMiOlsidGVzdE1peGluIiwiZGF0YSIsIm1peGluIiwibWV0aG9kcyIsInRhcCIsImNvbnNvbGUiLCJsb2ciXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7SUFFcUJBLFM7Ozs7Ozs7Ozs7Ozs7OzRMQUNuQkMsSSxHQUFPO0FBQ0xDLGFBQU87QUFERixLLFFBR1BDLE8sR0FBVTtBQUNSQyxTQURRLGlCQUNEO0FBQ0wsYUFBS0YsS0FBTCxHQUFhLHdCQUFiO0FBQ0FHLGdCQUFRQyxHQUFSLENBQVksa0JBQVo7QUFDRDtBQUpPLEs7Ozs7OzZCQU9EO0FBQ1BELGNBQVFDLEdBQVIsQ0FBWSxjQUFaO0FBQ0Q7Ozs2QkFFUTtBQUNQRCxjQUFRQyxHQUFSLENBQVksY0FBWjtBQUNEOzs7O0VBakJvQyxlQUFLSixLOztrQkFBdkJGLFMiLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB3ZXB5IGZyb20gJ3dlcHknXG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIHRlc3RNaXhpbiBleHRlbmRzIHdlcHkubWl4aW4ge1xuICBkYXRhID0ge1xuICAgIG1peGluOiAnVGhpcyBpcyBtaXhpbiBkYXRhLidcbiAgfVxuICBtZXRob2RzID0ge1xuICAgIHRhcCAoKSB7XG4gICAgICB0aGlzLm1peGluID0gJ21peGluIGRhdGEgd2FzIGNoYW5nZWQnXG4gICAgICBjb25zb2xlLmxvZygnbWl4aW4gbWV0aG9kIHRhcCcpXG4gICAgfVxuICB9XG5cbiAgb25TaG93KCkge1xuICAgIGNvbnNvbGUubG9nKCdtaXhpbiBvblNob3cnKVxuICB9XG5cbiAgb25Mb2FkKCkge1xuICAgIGNvbnNvbGUubG9nKCdtaXhpbiBvbkxvYWQnKVxuICB9XG59XG4iXX0=
--------------------------------------------------------------------------------
/dist/npm/flux-standard-action/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 | exports.isFSA = isFSA;
5 | exports.isError = isError;
6 |
7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
8 |
9 | var _lodashIsplainobject = require('./../../lodash.isplainobject/index.js');
10 |
11 | var _lodashIsplainobject2 = _interopRequireDefault(_lodashIsplainobject);
12 |
13 | var validKeys = ['type', 'payload', 'error', 'meta'];
14 |
15 | function isValidKey(key) {
16 | return validKeys.indexOf(key) > -1;
17 | }
18 |
19 | function isFSA(action) {
20 | return _lodashIsplainobject2['default'](action) && typeof action.type !== 'undefined' && Object.keys(action).every(isValidKey);
21 | }
22 |
23 | function isError(action) {
24 | return action.error === true;
25 | }
--------------------------------------------------------------------------------
/dist/npm/invariant/browser.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2013-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | 'use strict';
9 |
10 | /**
11 | * Use invariant() to assert state which your program assumes to be true.
12 | *
13 | * Provide sprintf-style format (only %s is supported) and arguments
14 | * to provide information about what broke and what you were
15 | * expecting.
16 | *
17 | * The invariant message will be stripped in production, but the invariant
18 | * will remain to ensure logic does not differ in production.
19 | */
20 |
21 | var invariant = function(condition, format, a, b, c, d, e, f) {
22 | if (undefined !== 'production') {
23 | if (format === undefined) {
24 | throw new Error('invariant requires an error message argument');
25 | }
26 | }
27 |
28 | if (!condition) {
29 | var error;
30 | if (format === undefined) {
31 | error = new Error(
32 | 'Minified exception occurred; use the non-minified dev environment ' +
33 | 'for the full error message and additional helpful warnings.'
34 | );
35 | } else {
36 | var args = [a, b, c, d, e, f];
37 | var argIndex = 0;
38 | error = new Error(
39 | format.replace(/%s/g, function() { return args[argIndex++]; })
40 | );
41 | error.name = 'Invariant Violation';
42 | }
43 |
44 | error.framesToPop = 1; // we don't care about invariant's own frame
45 | throw error;
46 | }
47 | };
48 |
49 | module.exports = invariant;
50 |
--------------------------------------------------------------------------------
/dist/npm/lodash._basefor/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * lodash 3.0.3 (Custom Build)
3 | * Build: `lodash modularize exports="npm" -o ./`
4 | * Copyright 2012-2016 The Dojo Foundation
5 | * Based on Underscore.js 1.8.3
6 | * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * The base implementation of `baseForIn` and `baseForOwn` which iterates
12 | * over `object` properties returned by `keysFunc` invoking `iteratee` for
13 | * each property. Iteratee functions may exit iteration early by explicitly
14 | * returning `false`.
15 | *
16 | * @private
17 | * @param {Object} object The object to iterate over.
18 | * @param {Function} iteratee The function invoked per iteration.
19 | * @param {Function} keysFunc The function to get the keys of `object`.
20 | * @returns {Object} Returns `object`.
21 | */
22 | var baseFor = createBaseFor();
23 |
24 | /**
25 | * Creates a base function for methods like `_.forIn`.
26 | *
27 | * @private
28 | * @param {boolean} [fromRight] Specify iterating from right to left.
29 | * @returns {Function} Returns the new base function.
30 | */
31 | function createBaseFor(fromRight) {
32 | return function(object, iteratee, keysFunc) {
33 | var index = -1,
34 | iterable = Object(object),
35 | props = keysFunc(object),
36 | length = props.length;
37 |
38 | while (length--) {
39 | var key = props[fromRight ? length : ++index];
40 | if (iteratee(iterable[key], key, iterable) === false) {
41 | break;
42 | }
43 | }
44 | return object;
45 | };
46 | }
47 |
48 | module.exports = baseFor;
49 |
--------------------------------------------------------------------------------
/dist/npm/lodash.isplainobject/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * lodash 3.2.0 (Custom Build)
3 | * Build: `lodash modern modularize exports="npm" -o ./`
4 | * Copyright 2012-2015 The Dojo Foundation
5 | * Based on Underscore.js 1.8.3
6 | * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseFor = require('./../lodash._basefor/index.js'),
10 | isArguments = require('./../lodash.isarguments/index.js'),
11 | keysIn = require('./../lodash.keysin/index.js');
12 |
13 | /** `Object#toString` result references. */
14 | var objectTag = '[object Object]';
15 |
16 | /**
17 | * Checks if `value` is object-like.
18 | *
19 | * @private
20 | * @param {*} value The value to check.
21 | * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
22 | */
23 | function isObjectLike(value) {
24 | return !!value && typeof value == 'object';
25 | }
26 |
27 | /** Used for native method references. */
28 | var objectProto = Object.prototype;
29 |
30 | /** Used to check objects for own properties. */
31 | var hasOwnProperty = objectProto.hasOwnProperty;
32 |
33 | /**
34 | * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
35 | * of values.
36 | */
37 | var objToString = objectProto.toString;
38 |
39 | /**
40 | * The base implementation of `_.forIn` without support for callback
41 | * shorthands and `this` binding.
42 | *
43 | * @private
44 | * @param {Object} object The object to iterate over.
45 | * @param {Function} iteratee The function invoked per iteration.
46 | * @returns {Object} Returns `object`.
47 | */
48 | function baseForIn(object, iteratee) {
49 | return baseFor(object, iteratee, keysIn);
50 | }
51 |
52 | /**
53 | * Checks if `value` is a plain object, that is, an object created by the
54 | * `Object` constructor or one with a `[[Prototype]]` of `null`.
55 | *
56 | * **Note:** This method assumes objects created by the `Object` constructor
57 | * have no inherited enumerable properties.
58 | *
59 | * @static
60 | * @memberOf _
61 | * @category Lang
62 | * @param {*} value The value to check.
63 | * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
64 | * @example
65 | *
66 | * function Foo() {
67 | * this.a = 1;
68 | * }
69 | *
70 | * _.isPlainObject(new Foo);
71 | * // => false
72 | *
73 | * _.isPlainObject([1, 2, 3]);
74 | * // => false
75 | *
76 | * _.isPlainObject({ 'x': 0, 'y': 0 });
77 | * // => true
78 | *
79 | * _.isPlainObject(Object.create(null));
80 | * // => true
81 | */
82 | function isPlainObject(value) {
83 | var Ctor;
84 |
85 | // Exit early for non `Object` objects.
86 | if (!(isObjectLike(value) && objToString.call(value) == objectTag && !isArguments(value)) ||
87 | (!hasOwnProperty.call(value, 'constructor') && (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor)))) {
88 | return false;
89 | }
90 | // IE < 9 iterates inherited properties before own properties. If the first
91 | // iterated property is an object's own property then there are no inherited
92 | // enumerable properties.
93 | var result;
94 | // In most environments an object's own properties are iterated before
95 | // its inherited properties. If the last iterated property is an object's
96 | // own property then there are no inherited enumerable properties.
97 | baseForIn(value, function(subValue, key) {
98 | result = key;
99 | });
100 | return result === undefined || hasOwnProperty.call(value, result);
101 | }
102 |
103 | module.exports = isPlainObject;
104 |
--------------------------------------------------------------------------------
/dist/npm/lodash.keysin/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * lodash 3.0.8 (Custom Build)
3 | * Build: `lodash modern modularize exports="npm" -o ./`
4 | * Copyright 2012-2015 The Dojo Foundation
5 | * Based on Underscore.js 1.8.3
6 | * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var isArguments = require('./../lodash.isarguments/index.js'),
10 | isArray = require('./../lodash.isarray/index.js');
11 |
12 | /** Used to detect unsigned integer values. */
13 | var reIsUint = /^\d+$/;
14 |
15 | /** Used for native method references. */
16 | var objectProto = Object.prototype;
17 |
18 | /** Used to check objects for own properties. */
19 | var hasOwnProperty = objectProto.hasOwnProperty;
20 |
21 | /**
22 | * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
23 | * of an array-like value.
24 | */
25 | var MAX_SAFE_INTEGER = 9007199254740991;
26 |
27 | /**
28 | * Checks if `value` is a valid array-like index.
29 | *
30 | * @private
31 | * @param {*} value The value to check.
32 | * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
33 | * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
34 | */
35 | function isIndex(value, length) {
36 | value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
37 | length = length == null ? MAX_SAFE_INTEGER : length;
38 | return value > -1 && value % 1 == 0 && value < length;
39 | }
40 |
41 | /**
42 | * Checks if `value` is a valid array-like length.
43 | *
44 | * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
45 | *
46 | * @private
47 | * @param {*} value The value to check.
48 | * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
49 | */
50 | function isLength(value) {
51 | return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
52 | }
53 |
54 | /**
55 | * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
56 | * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
57 | *
58 | * @static
59 | * @memberOf _
60 | * @category Lang
61 | * @param {*} value The value to check.
62 | * @returns {boolean} Returns `true` if `value` is an object, else `false`.
63 | * @example
64 | *
65 | * _.isObject({});
66 | * // => true
67 | *
68 | * _.isObject([1, 2, 3]);
69 | * // => true
70 | *
71 | * _.isObject(1);
72 | * // => false
73 | */
74 | function isObject(value) {
75 | // Avoid a V8 JIT bug in Chrome 19-20.
76 | // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
77 | var type = typeof value;
78 | return !!value && (type == 'object' || type == 'function');
79 | }
80 |
81 | /**
82 | * Creates an array of the own and inherited enumerable property names of `object`.
83 | *
84 | * **Note:** Non-object values are coerced to objects.
85 | *
86 | * @static
87 | * @memberOf _
88 | * @category Object
89 | * @param {Object} object The object to query.
90 | * @returns {Array} Returns the array of property names.
91 | * @example
92 | *
93 | * function Foo() {
94 | * this.a = 1;
95 | * this.b = 2;
96 | * }
97 | *
98 | * Foo.prototype.c = 3;
99 | *
100 | * _.keysIn(new Foo);
101 | * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
102 | */
103 | function keysIn(object) {
104 | if (object == null) {
105 | return [];
106 | }
107 | if (!isObject(object)) {
108 | object = Object(object);
109 | }
110 | var length = object.length;
111 | length = (length && isLength(length) &&
112 | (isArray(object) || isArguments(object)) && length) || 0;
113 |
114 | var Ctor = object.constructor,
115 | index = -1,
116 | isProto = typeof Ctor == 'function' && Ctor.prototype === object,
117 | result = Array(length),
118 | skipIndexes = length > 0;
119 |
120 | while (++index < length) {
121 | result[index] = (index + '');
122 | }
123 | for (var key in object) {
124 | if (!(skipIndexes && isIndex(key, length)) &&
125 | !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
126 | result.push(key);
127 | }
128 | }
129 | return result;
130 | }
131 |
132 | module.exports = keysIn;
133 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_DataView.js:
--------------------------------------------------------------------------------
1 | var getNative = require('./_getNative.js'),
2 | root = require('./_root.js');
3 |
4 | /* Built-in method references that are verified to be native. */
5 | var DataView = getNative(root, 'DataView');
6 |
7 | module.exports = DataView;
8 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_Map.js:
--------------------------------------------------------------------------------
1 | var getNative = require('./_getNative.js'),
2 | root = require('./_root.js');
3 |
4 | /* Built-in method references that are verified to be native. */
5 | var Map = getNative(root, 'Map');
6 |
7 | module.exports = Map;
8 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_Promise.js:
--------------------------------------------------------------------------------
1 | var getNative = require('./_getNative.js'),
2 | root = require('./_root.js');
3 |
4 | /* Built-in method references that are verified to be native. */
5 | var Promise = getNative(root, 'Promise');
6 |
7 | module.exports = Promise;
8 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_Set.js:
--------------------------------------------------------------------------------
1 | var getNative = require('./_getNative.js'),
2 | root = require('./_root.js');
3 |
4 | /* Built-in method references that are verified to be native. */
5 | var Set = getNative(root, 'Set');
6 |
7 | module.exports = Set;
8 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_Symbol.js:
--------------------------------------------------------------------------------
1 | var root = require('./_root.js');
2 |
3 | /** Built-in value references. */
4 | var Symbol = root.Symbol;
5 |
6 | module.exports = Symbol;
7 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_WeakMap.js:
--------------------------------------------------------------------------------
1 | var getNative = require('./_getNative.js'),
2 | root = require('./_root.js');
3 |
4 | /* Built-in method references that are verified to be native. */
5 | var WeakMap = getNative(root, 'WeakMap');
6 |
7 | module.exports = WeakMap;
8 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_arrayLikeKeys.js:
--------------------------------------------------------------------------------
1 | var baseTimes = require('./_baseTimes.js'),
2 | isArguments = require('./isArguments.js'),
3 | isArray = require('./isArray.js'),
4 | isBuffer = require('./isBuffer.js'),
5 | isIndex = require('./_isIndex.js'),
6 | isTypedArray = require('./isTypedArray.js');
7 |
8 | /** Used for built-in method references. */
9 | var objectProto = Object.prototype;
10 |
11 | /** Used to check objects for own properties. */
12 | var hasOwnProperty = objectProto.hasOwnProperty;
13 |
14 | /**
15 | * Creates an array of the enumerable property names of the array-like `value`.
16 | *
17 | * @private
18 | * @param {*} value The value to query.
19 | * @param {boolean} inherited Specify returning inherited property names.
20 | * @returns {Array} Returns the array of property names.
21 | */
22 | function arrayLikeKeys(value, inherited) {
23 | var isArr = isArray(value),
24 | isArg = !isArr && isArguments(value),
25 | isBuff = !isArr && !isArg && isBuffer(value),
26 | isType = !isArr && !isArg && !isBuff && isTypedArray(value),
27 | skipIndexes = isArr || isArg || isBuff || isType,
28 | result = skipIndexes ? baseTimes(value.length, String) : [],
29 | length = result.length;
30 |
31 | for (var key in value) {
32 | if ((inherited || hasOwnProperty.call(value, key)) &&
33 | !(skipIndexes && (
34 | // Safari 9 has enumerable `arguments.length` in strict mode.
35 | key == 'length' ||
36 | // Node.js 0.10 has enumerable non-index properties on buffers.
37 | (isBuff && (key == 'offset' || key == 'parent')) ||
38 | // PhantomJS 2 has enumerable non-index properties on typed arrays.
39 | (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
40 | // Skip index properties.
41 | isIndex(key, length)
42 | ))) {
43 | result.push(key);
44 | }
45 | }
46 | return result;
47 | }
48 |
49 | module.exports = arrayLikeKeys;
50 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_arrayMap.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A specialized version of `_.map` for arrays without support for iteratee
3 | * shorthands.
4 | *
5 | * @private
6 | * @param {Array} [array] The array to iterate over.
7 | * @param {Function} iteratee The function invoked per iteration.
8 | * @returns {Array} Returns the new mapped array.
9 | */
10 | function arrayMap(array, iteratee) {
11 | var index = -1,
12 | length = array == null ? 0 : array.length,
13 | result = Array(length);
14 |
15 | while (++index < length) {
16 | result[index] = iteratee(array[index], index, array);
17 | }
18 | return result;
19 | }
20 |
21 | module.exports = arrayMap;
22 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseFindIndex.js:
--------------------------------------------------------------------------------
1 | /**
2 | * The base implementation of `_.findIndex` and `_.findLastIndex` without
3 | * support for iteratee shorthands.
4 | *
5 | * @private
6 | * @param {Array} array The array to inspect.
7 | * @param {Function} predicate The function invoked per iteration.
8 | * @param {number} fromIndex The index to search from.
9 | * @param {boolean} [fromRight] Specify iterating from right to left.
10 | * @returns {number} Returns the index of the matched value, else `-1`.
11 | */
12 | function baseFindIndex(array, predicate, fromIndex, fromRight) {
13 | var length = array.length,
14 | index = fromIndex + (fromRight ? 1 : -1);
15 |
16 | while ((fromRight ? index-- : ++index < length)) {
17 | if (predicate(array[index], index, array)) {
18 | return index;
19 | }
20 | }
21 | return -1;
22 | }
23 |
24 | module.exports = baseFindIndex;
25 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseGetTag.js:
--------------------------------------------------------------------------------
1 | var Symbol = require('./_Symbol.js'),
2 | getRawTag = require('./_getRawTag.js'),
3 | objectToString = require('./_objectToString.js');
4 |
5 | /** `Object#toString` result references. */
6 | var nullTag = '[object Null]',
7 | undefinedTag = '[object Undefined]';
8 |
9 | /** Built-in value references. */
10 | var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
11 |
12 | /**
13 | * The base implementation of `getTag` without fallbacks for buggy environments.
14 | *
15 | * @private
16 | * @param {*} value The value to query.
17 | * @returns {string} Returns the `toStringTag`.
18 | */
19 | function baseGetTag(value) {
20 | if (value == null) {
21 | return value === undefined ? undefinedTag : nullTag;
22 | }
23 | return (symToStringTag && symToStringTag in Object(value))
24 | ? getRawTag(value)
25 | : objectToString(value);
26 | }
27 |
28 | module.exports = baseGetTag;
29 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseIndexOf.js:
--------------------------------------------------------------------------------
1 | var baseFindIndex = require('./_baseFindIndex.js'),
2 | baseIsNaN = require('./_baseIsNaN.js'),
3 | strictIndexOf = require('./_strictIndexOf.js');
4 |
5 | /**
6 | * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
7 | *
8 | * @private
9 | * @param {Array} array The array to inspect.
10 | * @param {*} value The value to search for.
11 | * @param {number} fromIndex The index to search from.
12 | * @returns {number} Returns the index of the matched value, else `-1`.
13 | */
14 | function baseIndexOf(array, value, fromIndex) {
15 | return value === value
16 | ? strictIndexOf(array, value, fromIndex)
17 | : baseFindIndex(array, baseIsNaN, fromIndex);
18 | }
19 |
20 | module.exports = baseIndexOf;
21 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseIsArguments.js:
--------------------------------------------------------------------------------
1 | var baseGetTag = require('./_baseGetTag.js'),
2 | isObjectLike = require('./isObjectLike.js');
3 |
4 | /** `Object#toString` result references. */
5 | var argsTag = '[object Arguments]';
6 |
7 | /**
8 | * The base implementation of `_.isArguments`.
9 | *
10 | * @private
11 | * @param {*} value The value to check.
12 | * @returns {boolean} Returns `true` if `value` is an `arguments` object,
13 | */
14 | function baseIsArguments(value) {
15 | return isObjectLike(value) && baseGetTag(value) == argsTag;
16 | }
17 |
18 | module.exports = baseIsArguments;
19 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseIsMap.js:
--------------------------------------------------------------------------------
1 | var getTag = require('./_getTag.js'),
2 | isObjectLike = require('./isObjectLike.js');
3 |
4 | /** `Object#toString` result references. */
5 | var mapTag = '[object Map]';
6 |
7 | /**
8 | * The base implementation of `_.isMap` without Node.js optimizations.
9 | *
10 | * @private
11 | * @param {*} value The value to check.
12 | * @returns {boolean} Returns `true` if `value` is a map, else `false`.
13 | */
14 | function baseIsMap(value) {
15 | return isObjectLike(value) && getTag(value) == mapTag;
16 | }
17 |
18 | module.exports = baseIsMap;
19 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseIsNaN.js:
--------------------------------------------------------------------------------
1 | /**
2 | * The base implementation of `_.isNaN` without support for number objects.
3 | *
4 | * @private
5 | * @param {*} value The value to check.
6 | * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
7 | */
8 | function baseIsNaN(value) {
9 | return value !== value;
10 | }
11 |
12 | module.exports = baseIsNaN;
13 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseIsNative.js:
--------------------------------------------------------------------------------
1 | var isFunction = require('./isFunction.js'),
2 | isMasked = require('./_isMasked.js'),
3 | isObject = require('./isObject.js'),
4 | toSource = require('./_toSource.js');
5 |
6 | /**
7 | * Used to match `RegExp`
8 | * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
9 | */
10 | var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
11 |
12 | /** Used to detect host constructors (Safari). */
13 | var reIsHostCtor = /^\[object .+?Constructor\]$/;
14 |
15 | /** Used for built-in method references. */
16 | var funcProto = Function.prototype,
17 | objectProto = Object.prototype;
18 |
19 | /** Used to resolve the decompiled source of functions. */
20 | var funcToString = funcProto.toString;
21 |
22 | /** Used to check objects for own properties. */
23 | var hasOwnProperty = objectProto.hasOwnProperty;
24 |
25 | /** Used to detect if a method is native. */
26 | var reIsNative = RegExp('^' +
27 | funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
28 | .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
29 | );
30 |
31 | /**
32 | * The base implementation of `_.isNative` without bad shim checks.
33 | *
34 | * @private
35 | * @param {*} value The value to check.
36 | * @returns {boolean} Returns `true` if `value` is a native function,
37 | * else `false`.
38 | */
39 | function baseIsNative(value) {
40 | if (!isObject(value) || isMasked(value)) {
41 | return false;
42 | }
43 | var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
44 | return pattern.test(toSource(value));
45 | }
46 |
47 | module.exports = baseIsNative;
48 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseIsTypedArray.js:
--------------------------------------------------------------------------------
1 | var baseGetTag = require('./_baseGetTag.js'),
2 | isLength = require('./isLength.js'),
3 | isObjectLike = require('./isObjectLike.js');
4 |
5 | /** `Object#toString` result references. */
6 | var argsTag = '[object Arguments]',
7 | arrayTag = '[object Array]',
8 | boolTag = '[object Boolean]',
9 | dateTag = '[object Date]',
10 | errorTag = '[object Error]',
11 | funcTag = '[object Function]',
12 | mapTag = '[object Map]',
13 | numberTag = '[object Number]',
14 | objectTag = '[object Object]',
15 | regexpTag = '[object RegExp]',
16 | setTag = '[object Set]',
17 | stringTag = '[object String]',
18 | weakMapTag = '[object WeakMap]';
19 |
20 | var arrayBufferTag = '[object ArrayBuffer]',
21 | dataViewTag = '[object DataView]',
22 | float32Tag = '[object Float32Array]',
23 | float64Tag = '[object Float64Array]',
24 | int8Tag = '[object Int8Array]',
25 | int16Tag = '[object Int16Array]',
26 | int32Tag = '[object Int32Array]',
27 | uint8Tag = '[object Uint8Array]',
28 | uint8ClampedTag = '[object Uint8ClampedArray]',
29 | uint16Tag = '[object Uint16Array]',
30 | uint32Tag = '[object Uint32Array]';
31 |
32 | /** Used to identify `toStringTag` values of typed arrays. */
33 | var typedArrayTags = {};
34 | typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
35 | typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
36 | typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
37 | typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
38 | typedArrayTags[uint32Tag] = true;
39 | typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
40 | typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
41 | typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
42 | typedArrayTags[errorTag] = typedArrayTags[funcTag] =
43 | typedArrayTags[mapTag] = typedArrayTags[numberTag] =
44 | typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
45 | typedArrayTags[setTag] = typedArrayTags[stringTag] =
46 | typedArrayTags[weakMapTag] = false;
47 |
48 | /**
49 | * The base implementation of `_.isTypedArray` without Node.js optimizations.
50 | *
51 | * @private
52 | * @param {*} value The value to check.
53 | * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
54 | */
55 | function baseIsTypedArray(value) {
56 | return isObjectLike(value) &&
57 | isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
58 | }
59 |
60 | module.exports = baseIsTypedArray;
61 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseKeys.js:
--------------------------------------------------------------------------------
1 | var isPrototype = require('./_isPrototype.js'),
2 | nativeKeys = require('./_nativeKeys.js');
3 |
4 | /** Used for built-in method references. */
5 | var objectProto = Object.prototype;
6 |
7 | /** Used to check objects for own properties. */
8 | var hasOwnProperty = objectProto.hasOwnProperty;
9 |
10 | /**
11 | * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
12 | *
13 | * @private
14 | * @param {Object} object The object to query.
15 | * @returns {Array} Returns the array of property names.
16 | */
17 | function baseKeys(object) {
18 | if (!isPrototype(object)) {
19 | return nativeKeys(object);
20 | }
21 | var result = [];
22 | for (var key in Object(object)) {
23 | if (hasOwnProperty.call(object, key) && key != 'constructor') {
24 | result.push(key);
25 | }
26 | }
27 | return result;
28 | }
29 |
30 | module.exports = baseKeys;
31 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseTimes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * The base implementation of `_.times` without support for iteratee shorthands
3 | * or max array length checks.
4 | *
5 | * @private
6 | * @param {number} n The number of times to invoke `iteratee`.
7 | * @param {Function} iteratee The function invoked per iteration.
8 | * @returns {Array} Returns the array of results.
9 | */
10 | function baseTimes(n, iteratee) {
11 | var index = -1,
12 | result = Array(n);
13 |
14 | while (++index < n) {
15 | result[index] = iteratee(index);
16 | }
17 | return result;
18 | }
19 |
20 | module.exports = baseTimes;
21 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseToString.js:
--------------------------------------------------------------------------------
1 | var Symbol = require('./_Symbol.js'),
2 | arrayMap = require('./_arrayMap.js'),
3 | isArray = require('./isArray.js'),
4 | isSymbol = require('./isSymbol.js');
5 |
6 | /** Used as references for various `Number` constants. */
7 | var INFINITY = 1 / 0;
8 |
9 | /** Used to convert symbols to primitives and strings. */
10 | var symbolProto = Symbol ? Symbol.prototype : undefined,
11 | symbolToString = symbolProto ? symbolProto.toString : undefined;
12 |
13 | /**
14 | * The base implementation of `_.toString` which doesn't convert nullish
15 | * values to empty strings.
16 | *
17 | * @private
18 | * @param {*} value The value to process.
19 | * @returns {string} Returns the string.
20 | */
21 | function baseToString(value) {
22 | // Exit early for strings to avoid a performance hit in some environments.
23 | if (typeof value == 'string') {
24 | return value;
25 | }
26 | if (isArray(value)) {
27 | // Recursively convert values (susceptible to call stack limits).
28 | return arrayMap(value, baseToString) + '';
29 | }
30 | if (isSymbol(value)) {
31 | return symbolToString ? symbolToString.call(value) : '';
32 | }
33 | var result = (value + '');
34 | return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
35 | }
36 |
37 | module.exports = baseToString;
38 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseUnary.js:
--------------------------------------------------------------------------------
1 | /**
2 | * The base implementation of `_.unary` without support for storing metadata.
3 | *
4 | * @private
5 | * @param {Function} func The function to cap arguments for.
6 | * @returns {Function} Returns the new capped function.
7 | */
8 | function baseUnary(func) {
9 | return function(value) {
10 | return func(value);
11 | };
12 | }
13 |
14 | module.exports = baseUnary;
15 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_baseValues.js:
--------------------------------------------------------------------------------
1 | var arrayMap = require('./_arrayMap.js');
2 |
3 | /**
4 | * The base implementation of `_.values` and `_.valuesIn` which creates an
5 | * array of `object` property values corresponding to the property names
6 | * of `props`.
7 | *
8 | * @private
9 | * @param {Object} object The object to query.
10 | * @param {Array} props The property names to get values for.
11 | * @returns {Object} Returns the array of property values.
12 | */
13 | function baseValues(object, props) {
14 | return arrayMap(props, function(key) {
15 | return object[key];
16 | });
17 | }
18 |
19 | module.exports = baseValues;
20 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_coreJsData.js:
--------------------------------------------------------------------------------
1 | var root = require('./_root.js');
2 |
3 | /** Used to detect overreaching core-js shims. */
4 | var coreJsData = root['__core-js_shared__'];
5 |
6 | module.exports = coreJsData;
7 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_freeGlobal.js:
--------------------------------------------------------------------------------
1 | /** Detect free variable `global` from Node.js. */
2 | var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
3 |
4 | module.exports = freeGlobal || this;
5 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_getNative.js:
--------------------------------------------------------------------------------
1 | var baseIsNative = require('./_baseIsNative.js'),
2 | getValue = require('./_getValue.js');
3 |
4 | /**
5 | * Gets the native function at `key` of `object`.
6 | *
7 | * @private
8 | * @param {Object} object The object to query.
9 | * @param {string} key The key of the method to get.
10 | * @returns {*} Returns the function if it's native, else `undefined`.
11 | */
12 | function getNative(object, key) {
13 | var value = getValue(object, key);
14 | return baseIsNative(value) ? value : undefined;
15 | }
16 |
17 | module.exports = getNative;
18 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_getPrototype.js:
--------------------------------------------------------------------------------
1 | var overArg = require('./_overArg.js');
2 |
3 | /** Built-in value references. */
4 | var getPrototype = overArg(Object.getPrototypeOf, Object);
5 |
6 | module.exports = getPrototype;
7 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_getRawTag.js:
--------------------------------------------------------------------------------
1 | var Symbol = require('./_Symbol.js');
2 |
3 | /** Used for built-in method references. */
4 | var objectProto = Object.prototype;
5 |
6 | /** Used to check objects for own properties. */
7 | var hasOwnProperty = objectProto.hasOwnProperty;
8 |
9 | /**
10 | * Used to resolve the
11 | * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
12 | * of values.
13 | */
14 | var nativeObjectToString = objectProto.toString;
15 |
16 | /** Built-in value references. */
17 | var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
18 |
19 | /**
20 | * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
21 | *
22 | * @private
23 | * @param {*} value The value to query.
24 | * @returns {string} Returns the raw `toStringTag`.
25 | */
26 | function getRawTag(value) {
27 | var isOwn = hasOwnProperty.call(value, symToStringTag),
28 | tag = value[symToStringTag];
29 |
30 | try {
31 | value[symToStringTag] = undefined;
32 | var unmasked = true;
33 | } catch (e) {}
34 |
35 | var result = nativeObjectToString.call(value);
36 | if (unmasked) {
37 | if (isOwn) {
38 | value[symToStringTag] = tag;
39 | } else {
40 | delete value[symToStringTag];
41 | }
42 | }
43 | return result;
44 | }
45 |
46 | module.exports = getRawTag;
47 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_getTag.js:
--------------------------------------------------------------------------------
1 | var DataView = require('./_DataView.js'),
2 | Map = require('./_Map.js'),
3 | Promise = require('./_Promise.js'),
4 | Set = require('./_Set.js'),
5 | WeakMap = require('./_WeakMap.js'),
6 | baseGetTag = require('./_baseGetTag.js'),
7 | toSource = require('./_toSource.js');
8 |
9 | /** `Object#toString` result references. */
10 | var mapTag = '[object Map]',
11 | objectTag = '[object Object]',
12 | promiseTag = '[object Promise]',
13 | setTag = '[object Set]',
14 | weakMapTag = '[object WeakMap]';
15 |
16 | var dataViewTag = '[object DataView]';
17 |
18 | /** Used to detect maps, sets, and weakmaps. */
19 | var dataViewCtorString = toSource(DataView),
20 | mapCtorString = toSource(Map),
21 | promiseCtorString = toSource(Promise),
22 | setCtorString = toSource(Set),
23 | weakMapCtorString = toSource(WeakMap);
24 |
25 | /**
26 | * Gets the `toStringTag` of `value`.
27 | *
28 | * @private
29 | * @param {*} value The value to query.
30 | * @returns {string} Returns the `toStringTag`.
31 | */
32 | var getTag = baseGetTag;
33 |
34 | // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
35 | if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
36 | (Map && getTag(new Map) != mapTag) ||
37 | (Promise && getTag(Promise.resolve()) != promiseTag) ||
38 | (Set && getTag(new Set) != setTag) ||
39 | (WeakMap && getTag(new WeakMap) != weakMapTag)) {
40 | getTag = function(value) {
41 | var result = baseGetTag(value),
42 | Ctor = result == objectTag ? value.constructor : undefined,
43 | ctorString = Ctor ? toSource(Ctor) : '';
44 |
45 | if (ctorString) {
46 | switch (ctorString) {
47 | case dataViewCtorString: return dataViewTag;
48 | case mapCtorString: return mapTag;
49 | case promiseCtorString: return promiseTag;
50 | case setCtorString: return setTag;
51 | case weakMapCtorString: return weakMapTag;
52 | }
53 | }
54 | return result;
55 | };
56 | }
57 |
58 | module.exports = getTag;
59 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_getValue.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Gets the value at `key` of `object`.
3 | *
4 | * @private
5 | * @param {Object} [object] The object to query.
6 | * @param {string} key The key of the property to get.
7 | * @returns {*} Returns the property value.
8 | */
9 | function getValue(object, key) {
10 | return object == null ? undefined : object[key];
11 | }
12 |
13 | module.exports = getValue;
14 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_isIndex.js:
--------------------------------------------------------------------------------
1 | /** Used as references for various `Number` constants. */
2 | var MAX_SAFE_INTEGER = 9007199254740991;
3 |
4 | /** Used to detect unsigned integer values. */
5 | var reIsUint = /^(?:0|[1-9]\d*)$/;
6 |
7 | /**
8 | * Checks if `value` is a valid array-like index.
9 | *
10 | * @private
11 | * @param {*} value The value to check.
12 | * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
13 | * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
14 | */
15 | function isIndex(value, length) {
16 | var type = typeof value;
17 | length = length == null ? MAX_SAFE_INTEGER : length;
18 |
19 | return !!length &&
20 | (type == 'number' ||
21 | (type != 'symbol' && reIsUint.test(value))) &&
22 | (value > -1 && value % 1 == 0 && value < length);
23 | }
24 |
25 | module.exports = isIndex;
26 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_isMasked.js:
--------------------------------------------------------------------------------
1 | var coreJsData = require('./_coreJsData.js');
2 |
3 | /** Used to detect methods masquerading as native. */
4 | var maskSrcKey = (function() {
5 | var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
6 | return uid ? ('Symbol(src)_1.' + uid) : '';
7 | }());
8 |
9 | /**
10 | * Checks if `func` has its source masked.
11 | *
12 | * @private
13 | * @param {Function} func The function to check.
14 | * @returns {boolean} Returns `true` if `func` is masked, else `false`.
15 | */
16 | function isMasked(func) {
17 | return !!maskSrcKey && (maskSrcKey in func);
18 | }
19 |
20 | module.exports = isMasked;
21 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_isPrototype.js:
--------------------------------------------------------------------------------
1 | /** Used for built-in method references. */
2 | var objectProto = Object.prototype;
3 |
4 | /**
5 | * Checks if `value` is likely a prototype object.
6 | *
7 | * @private
8 | * @param {*} value The value to check.
9 | * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10 | */
11 | function isPrototype(value) {
12 | var Ctor = value && value.constructor,
13 | proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
14 |
15 | return value === proto;
16 | }
17 |
18 | module.exports = isPrototype;
19 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_nativeKeys.js:
--------------------------------------------------------------------------------
1 | var overArg = require('./_overArg.js');
2 |
3 | /* Built-in method references for those with the same name as other `lodash` methods. */
4 | var nativeKeys = overArg(Object.keys, Object);
5 |
6 | module.exports = nativeKeys;
7 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_nodeUtil.js:
--------------------------------------------------------------------------------
1 | var freeGlobal = require('./_freeGlobal.js');
2 |
3 | /** Detect free variable `exports`. */
4 | var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
5 |
6 | /** Detect free variable `module`. */
7 | var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
8 |
9 | /** Detect the popular CommonJS extension `module.exports`. */
10 | var moduleExports = freeModule && freeModule.exports === freeExports;
11 |
12 | /** Detect free variable `process` from Node.js. */
13 | var freeProcess = moduleExports && freeGlobal.process;
14 |
15 | /** Used to access faster Node.js helpers. */
16 | var nodeUtil = (function() {
17 | try {
18 | return freeProcess && freeProcess.binding && freeProcess.binding('util');
19 | } catch (e) {}
20 | }());
21 |
22 | module.exports = nodeUtil;
23 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_objectToString.js:
--------------------------------------------------------------------------------
1 | /** Used for built-in method references. */
2 | var objectProto = Object.prototype;
3 |
4 | /**
5 | * Used to resolve the
6 | * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
7 | * of values.
8 | */
9 | var nativeObjectToString = objectProto.toString;
10 |
11 | /**
12 | * Converts `value` to a string using `Object.prototype.toString`.
13 | *
14 | * @private
15 | * @param {*} value The value to convert.
16 | * @returns {string} Returns the converted string.
17 | */
18 | function objectToString(value) {
19 | return nativeObjectToString.call(value);
20 | }
21 |
22 | module.exports = objectToString;
23 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_overArg.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Creates a unary function that invokes `func` with its argument transformed.
3 | *
4 | * @private
5 | * @param {Function} func The function to wrap.
6 | * @param {Function} transform The argument transform.
7 | * @returns {Function} Returns the new function.
8 | */
9 | function overArg(func, transform) {
10 | return function(arg) {
11 | return func(transform(arg));
12 | };
13 | }
14 |
15 | module.exports = overArg;
16 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_root.js:
--------------------------------------------------------------------------------
1 | var freeGlobal = require('./_freeGlobal.js');
2 |
3 | /** Detect free variable `self`. */
4 | var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
5 |
6 | /** Used as a reference to the global object. */
7 | var root = freeGlobal || freeSelf || Function('return this')();
8 |
9 | module.exports = root;
10 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_strictIndexOf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A specialized version of `_.indexOf` which performs strict equality
3 | * comparisons of values, i.e. `===`.
4 | *
5 | * @private
6 | * @param {Array} array The array to inspect.
7 | * @param {*} value The value to search for.
8 | * @param {number} fromIndex The index to search from.
9 | * @returns {number} Returns the index of the matched value, else `-1`.
10 | */
11 | function strictIndexOf(array, value, fromIndex) {
12 | var index = fromIndex - 1,
13 | length = array.length;
14 |
15 | while (++index < length) {
16 | if (array[index] === value) {
17 | return index;
18 | }
19 | }
20 | return -1;
21 | }
22 |
23 | module.exports = strictIndexOf;
24 |
--------------------------------------------------------------------------------
/dist/npm/lodash/_toSource.js:
--------------------------------------------------------------------------------
1 | /** Used for built-in method references. */
2 | var funcProto = Function.prototype;
3 |
4 | /** Used to resolve the decompiled source of functions. */
5 | var funcToString = funcProto.toString;
6 |
7 | /**
8 | * Converts `func` to its source code.
9 | *
10 | * @private
11 | * @param {Function} func The function to convert.
12 | * @returns {string} Returns the source code.
13 | */
14 | function toSource(func) {
15 | if (func != null) {
16 | try {
17 | return funcToString.call(func);
18 | } catch (e) {}
19 | try {
20 | return (func + '');
21 | } catch (e) {}
22 | }
23 | return '';
24 | }
25 |
26 | module.exports = toSource;
27 |
--------------------------------------------------------------------------------
/dist/npm/lodash/identity.js:
--------------------------------------------------------------------------------
1 | /**
2 | * This method returns the first argument it receives.
3 | *
4 | * @static
5 | * @since 0.1.0
6 | * @memberOf _
7 | * @category Util
8 | * @param {*} value Any value.
9 | * @returns {*} Returns `value`.
10 | * @example
11 | *
12 | * var object = { 'a': 1 };
13 | *
14 | * console.log(_.identity(object) === object);
15 | * // => true
16 | */
17 | function identity(value) {
18 | return value;
19 | }
20 |
21 | module.exports = identity;
22 |
--------------------------------------------------------------------------------
/dist/npm/lodash/includes.js:
--------------------------------------------------------------------------------
1 | var baseIndexOf = require('./_baseIndexOf.js'),
2 | isArrayLike = require('./isArrayLike.js'),
3 | isString = require('./isString.js'),
4 | toInteger = require('./toInteger.js'),
5 | values = require('./values.js');
6 |
7 | /* Built-in method references for those with the same name as other `lodash` methods. */
8 | var nativeMax = Math.max;
9 |
10 | /**
11 | * Checks if `value` is in `collection`. If `collection` is a string, it's
12 | * checked for a substring of `value`, otherwise
13 | * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
14 | * is used for equality comparisons. If `fromIndex` is negative, it's used as
15 | * the offset from the end of `collection`.
16 | *
17 | * @static
18 | * @memberOf _
19 | * @since 0.1.0
20 | * @category Collection
21 | * @param {Array|Object|string} collection The collection to inspect.
22 | * @param {*} value The value to search for.
23 | * @param {number} [fromIndex=0] The index to search from.
24 | * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
25 | * @returns {boolean} Returns `true` if `value` is found, else `false`.
26 | * @example
27 | *
28 | * _.includes([1, 2, 3], 1);
29 | * // => true
30 | *
31 | * _.includes([1, 2, 3], 1, 2);
32 | * // => false
33 | *
34 | * _.includes({ 'a': 1, 'b': 2 }, 1);
35 | * // => true
36 | *
37 | * _.includes('abcd', 'bc');
38 | * // => true
39 | */
40 | function includes(collection, value, fromIndex, guard) {
41 | collection = isArrayLike(collection) ? collection : values(collection);
42 | fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
43 |
44 | var length = collection.length;
45 | if (fromIndex < 0) {
46 | fromIndex = nativeMax(length + fromIndex, 0);
47 | }
48 | return isString(collection)
49 | ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
50 | : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
51 | }
52 |
53 | module.exports = includes;
54 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isArguments.js:
--------------------------------------------------------------------------------
1 | var baseIsArguments = require('./_baseIsArguments.js'),
2 | isObjectLike = require('./isObjectLike.js');
3 |
4 | /** Used for built-in method references. */
5 | var objectProto = Object.prototype;
6 |
7 | /** Used to check objects for own properties. */
8 | var hasOwnProperty = objectProto.hasOwnProperty;
9 |
10 | /** Built-in value references. */
11 | var propertyIsEnumerable = objectProto.propertyIsEnumerable;
12 |
13 | /**
14 | * Checks if `value` is likely an `arguments` object.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @since 0.1.0
19 | * @category Lang
20 | * @param {*} value The value to check.
21 | * @returns {boolean} Returns `true` if `value` is an `arguments` object,
22 | * else `false`.
23 | * @example
24 | *
25 | * _.isArguments(function() { return arguments; }());
26 | * // => true
27 | *
28 | * _.isArguments([1, 2, 3]);
29 | * // => false
30 | */
31 | var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
32 | return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
33 | !propertyIsEnumerable.call(value, 'callee');
34 | };
35 |
36 | module.exports = isArguments;
37 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isArray.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Checks if `value` is classified as an `Array` object.
3 | *
4 | * @static
5 | * @memberOf _
6 | * @since 0.1.0
7 | * @category Lang
8 | * @param {*} value The value to check.
9 | * @returns {boolean} Returns `true` if `value` is an array, else `false`.
10 | * @example
11 | *
12 | * _.isArray([1, 2, 3]);
13 | * // => true
14 | *
15 | * _.isArray(document.body.children);
16 | * // => false
17 | *
18 | * _.isArray('abc');
19 | * // => false
20 | *
21 | * _.isArray(_.noop);
22 | * // => false
23 | */
24 | var isArray = Array.isArray;
25 |
26 | module.exports = isArray;
27 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isArrayLike.js:
--------------------------------------------------------------------------------
1 | var isFunction = require('./isFunction.js'),
2 | isLength = require('./isLength.js');
3 |
4 | /**
5 | * Checks if `value` is array-like. A value is considered array-like if it's
6 | * not a function and has a `value.length` that's an integer greater than or
7 | * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
8 | *
9 | * @static
10 | * @memberOf _
11 | * @since 4.0.0
12 | * @category Lang
13 | * @param {*} value The value to check.
14 | * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
15 | * @example
16 | *
17 | * _.isArrayLike([1, 2, 3]);
18 | * // => true
19 | *
20 | * _.isArrayLike(document.body.children);
21 | * // => true
22 | *
23 | * _.isArrayLike('abc');
24 | * // => true
25 | *
26 | * _.isArrayLike(_.noop);
27 | * // => false
28 | */
29 | function isArrayLike(value) {
30 | return value != null && isLength(value.length) && !isFunction(value);
31 | }
32 |
33 | module.exports = isArrayLike;
34 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isBuffer.js:
--------------------------------------------------------------------------------
1 | var root = require('./_root.js'),
2 | stubFalse = require('./stubFalse.js');
3 |
4 | /** Detect free variable `exports`. */
5 | var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
6 |
7 | /** Detect free variable `module`. */
8 | var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
9 |
10 | /** Detect the popular CommonJS extension `module.exports`. */
11 | var moduleExports = freeModule && freeModule.exports === freeExports;
12 |
13 | /** Built-in value references. */
14 | var Buffer = moduleExports ? root.Buffer : undefined;
15 |
16 | /* Built-in method references for those with the same name as other `lodash` methods. */
17 | var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
18 |
19 | /**
20 | * Checks if `value` is a buffer.
21 | *
22 | * @static
23 | * @memberOf _
24 | * @since 4.3.0
25 | * @category Lang
26 | * @param {*} value The value to check.
27 | * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
28 | * @example
29 | *
30 | * _.isBuffer(new Buffer(2));
31 | * // => true
32 | *
33 | * _.isBuffer(new Uint8Array(2));
34 | * // => false
35 | */
36 | var isBuffer = nativeIsBuffer || stubFalse;
37 |
38 | module.exports = isBuffer;
39 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isEmpty.js:
--------------------------------------------------------------------------------
1 | var baseKeys = require('./_baseKeys.js'),
2 | getTag = require('./_getTag.js'),
3 | isArguments = require('./isArguments.js'),
4 | isArray = require('./isArray.js'),
5 | isArrayLike = require('./isArrayLike.js'),
6 | isBuffer = require('./isBuffer.js'),
7 | isPrototype = require('./_isPrototype.js'),
8 | isTypedArray = require('./isTypedArray.js');
9 |
10 | /** `Object#toString` result references. */
11 | var mapTag = '[object Map]',
12 | setTag = '[object Set]';
13 |
14 | /** Used for built-in method references. */
15 | var objectProto = Object.prototype;
16 |
17 | /** Used to check objects for own properties. */
18 | var hasOwnProperty = objectProto.hasOwnProperty;
19 |
20 | /**
21 | * Checks if `value` is an empty object, collection, map, or set.
22 | *
23 | * Objects are considered empty if they have no own enumerable string keyed
24 | * properties.
25 | *
26 | * Array-like values such as `arguments` objects, arrays, buffers, strings, or
27 | * jQuery-like collections are considered empty if they have a `length` of `0`.
28 | * Similarly, maps and sets are considered empty if they have a `size` of `0`.
29 | *
30 | * @static
31 | * @memberOf _
32 | * @since 0.1.0
33 | * @category Lang
34 | * @param {*} value The value to check.
35 | * @returns {boolean} Returns `true` if `value` is empty, else `false`.
36 | * @example
37 | *
38 | * _.isEmpty(null);
39 | * // => true
40 | *
41 | * _.isEmpty(true);
42 | * // => true
43 | *
44 | * _.isEmpty(1);
45 | * // => true
46 | *
47 | * _.isEmpty([1, 2, 3]);
48 | * // => false
49 | *
50 | * _.isEmpty({ 'a': 1 });
51 | * // => false
52 | */
53 | function isEmpty(value) {
54 | if (value == null) {
55 | return true;
56 | }
57 | if (isArrayLike(value) &&
58 | (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
59 | isBuffer(value) || isTypedArray(value) || isArguments(value))) {
60 | return !value.length;
61 | }
62 | var tag = getTag(value);
63 | if (tag == mapTag || tag == setTag) {
64 | return !value.size;
65 | }
66 | if (isPrototype(value)) {
67 | return !baseKeys(value).length;
68 | }
69 | for (var key in value) {
70 | if (hasOwnProperty.call(value, key)) {
71 | return false;
72 | }
73 | }
74 | return true;
75 | }
76 |
77 | module.exports = isEmpty;
78 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isFunction.js:
--------------------------------------------------------------------------------
1 | var baseGetTag = require('./_baseGetTag.js'),
2 | isObject = require('./isObject.js');
3 |
4 | /** `Object#toString` result references. */
5 | var asyncTag = '[object AsyncFunction]',
6 | funcTag = '[object Function]',
7 | genTag = '[object GeneratorFunction]',
8 | proxyTag = '[object Proxy]';
9 |
10 | /**
11 | * Checks if `value` is classified as a `Function` object.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @since 0.1.0
16 | * @category Lang
17 | * @param {*} value The value to check.
18 | * @returns {boolean} Returns `true` if `value` is a function, else `false`.
19 | * @example
20 | *
21 | * _.isFunction(_);
22 | * // => true
23 | *
24 | * _.isFunction(/abc/);
25 | * // => false
26 | */
27 | function isFunction(value) {
28 | if (!isObject(value)) {
29 | return false;
30 | }
31 | // The use of `Object#toString` avoids issues with the `typeof` operator
32 | // in Safari 9 which returns 'object' for typed arrays and other constructors.
33 | var tag = baseGetTag(value);
34 | return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
35 | }
36 |
37 | module.exports = isFunction;
38 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isLength.js:
--------------------------------------------------------------------------------
1 | /** Used as references for various `Number` constants. */
2 | var MAX_SAFE_INTEGER = 9007199254740991;
3 |
4 | /**
5 | * Checks if `value` is a valid array-like length.
6 | *
7 | * **Note:** This method is loosely based on
8 | * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
9 | *
10 | * @static
11 | * @memberOf _
12 | * @since 4.0.0
13 | * @category Lang
14 | * @param {*} value The value to check.
15 | * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
16 | * @example
17 | *
18 | * _.isLength(3);
19 | * // => true
20 | *
21 | * _.isLength(Number.MIN_VALUE);
22 | * // => false
23 | *
24 | * _.isLength(Infinity);
25 | * // => false
26 | *
27 | * _.isLength('3');
28 | * // => false
29 | */
30 | function isLength(value) {
31 | return typeof value == 'number' &&
32 | value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
33 | }
34 |
35 | module.exports = isLength;
36 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isMap.js:
--------------------------------------------------------------------------------
1 | var baseIsMap = require('./_baseIsMap.js'),
2 | baseUnary = require('./_baseUnary.js'),
3 | nodeUtil = require('./_nodeUtil.js');
4 |
5 | /* Node.js helper references. */
6 | var nodeIsMap = nodeUtil && nodeUtil.isMap;
7 |
8 | /**
9 | * Checks if `value` is classified as a `Map` object.
10 | *
11 | * @static
12 | * @memberOf _
13 | * @since 4.3.0
14 | * @category Lang
15 | * @param {*} value The value to check.
16 | * @returns {boolean} Returns `true` if `value` is a map, else `false`.
17 | * @example
18 | *
19 | * _.isMap(new Map);
20 | * // => true
21 | *
22 | * _.isMap(new WeakMap);
23 | * // => false
24 | */
25 | var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
26 |
27 | module.exports = isMap;
28 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isNil.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Checks if `value` is `null` or `undefined`.
3 | *
4 | * @static
5 | * @memberOf _
6 | * @since 4.0.0
7 | * @category Lang
8 | * @param {*} value The value to check.
9 | * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
10 | * @example
11 | *
12 | * _.isNil(null);
13 | * // => true
14 | *
15 | * _.isNil(void 0);
16 | * // => true
17 | *
18 | * _.isNil(NaN);
19 | * // => false
20 | */
21 | function isNil(value) {
22 | return value == null;
23 | }
24 |
25 | module.exports = isNil;
26 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isNull.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Checks if `value` is `null`.
3 | *
4 | * @static
5 | * @memberOf _
6 | * @since 0.1.0
7 | * @category Lang
8 | * @param {*} value The value to check.
9 | * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
10 | * @example
11 | *
12 | * _.isNull(null);
13 | * // => true
14 | *
15 | * _.isNull(void 0);
16 | * // => false
17 | */
18 | function isNull(value) {
19 | return value === null;
20 | }
21 |
22 | module.exports = isNull;
23 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isObject.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Checks if `value` is the
3 | * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
4 | * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5 | *
6 | * @static
7 | * @memberOf _
8 | * @since 0.1.0
9 | * @category Lang
10 | * @param {*} value The value to check.
11 | * @returns {boolean} Returns `true` if `value` is an object, else `false`.
12 | * @example
13 | *
14 | * _.isObject({});
15 | * // => true
16 | *
17 | * _.isObject([1, 2, 3]);
18 | * // => true
19 | *
20 | * _.isObject(_.noop);
21 | * // => true
22 | *
23 | * _.isObject(null);
24 | * // => false
25 | */
26 | function isObject(value) {
27 | var type = typeof value;
28 | return value != null && (type == 'object' || type == 'function');
29 | }
30 |
31 | module.exports = isObject;
32 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isObjectLike.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Checks if `value` is object-like. A value is object-like if it's not `null`
3 | * and has a `typeof` result of "object".
4 | *
5 | * @static
6 | * @memberOf _
7 | * @since 4.0.0
8 | * @category Lang
9 | * @param {*} value The value to check.
10 | * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
11 | * @example
12 | *
13 | * _.isObjectLike({});
14 | * // => true
15 | *
16 | * _.isObjectLike([1, 2, 3]);
17 | * // => true
18 | *
19 | * _.isObjectLike(_.noop);
20 | * // => false
21 | *
22 | * _.isObjectLike(null);
23 | * // => false
24 | */
25 | function isObjectLike(value) {
26 | return value != null && typeof value == 'object';
27 | }
28 |
29 | module.exports = isObjectLike;
30 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isPlainObject.js:
--------------------------------------------------------------------------------
1 | var baseGetTag = require('./_baseGetTag.js'),
2 | getPrototype = require('./_getPrototype.js'),
3 | isObjectLike = require('./isObjectLike.js');
4 |
5 | /** `Object#toString` result references. */
6 | var objectTag = '[object Object]';
7 |
8 | /** Used for built-in method references. */
9 | var funcProto = Function.prototype,
10 | objectProto = Object.prototype;
11 |
12 | /** Used to resolve the decompiled source of functions. */
13 | var funcToString = funcProto.toString;
14 |
15 | /** Used to check objects for own properties. */
16 | var hasOwnProperty = objectProto.hasOwnProperty;
17 |
18 | /** Used to infer the `Object` constructor. */
19 | var objectCtorString = funcToString.call(Object);
20 |
21 | /**
22 | * Checks if `value` is a plain object, that is, an object created by the
23 | * `Object` constructor or one with a `[[Prototype]]` of `null`.
24 | *
25 | * @static
26 | * @memberOf _
27 | * @since 0.8.0
28 | * @category Lang
29 | * @param {*} value The value to check.
30 | * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
31 | * @example
32 | *
33 | * function Foo() {
34 | * this.a = 1;
35 | * }
36 | *
37 | * _.isPlainObject(new Foo);
38 | * // => false
39 | *
40 | * _.isPlainObject([1, 2, 3]);
41 | * // => false
42 | *
43 | * _.isPlainObject({ 'x': 0, 'y': 0 });
44 | * // => true
45 | *
46 | * _.isPlainObject(Object.create(null));
47 | * // => true
48 | */
49 | function isPlainObject(value) {
50 | if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
51 | return false;
52 | }
53 | var proto = getPrototype(value);
54 | if (proto === null) {
55 | return true;
56 | }
57 | var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
58 | return typeof Ctor == 'function' && Ctor instanceof Ctor &&
59 | funcToString.call(Ctor) == objectCtorString;
60 | }
61 |
62 | module.exports = isPlainObject;
63 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isString.js:
--------------------------------------------------------------------------------
1 | var baseGetTag = require('./_baseGetTag.js'),
2 | isArray = require('./isArray.js'),
3 | isObjectLike = require('./isObjectLike.js');
4 |
5 | /** `Object#toString` result references. */
6 | var stringTag = '[object String]';
7 |
8 | /**
9 | * Checks if `value` is classified as a `String` primitive or object.
10 | *
11 | * @static
12 | * @since 0.1.0
13 | * @memberOf _
14 | * @category Lang
15 | * @param {*} value The value to check.
16 | * @returns {boolean} Returns `true` if `value` is a string, else `false`.
17 | * @example
18 | *
19 | * _.isString('abc');
20 | * // => true
21 | *
22 | * _.isString(1);
23 | * // => false
24 | */
25 | function isString(value) {
26 | return typeof value == 'string' ||
27 | (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
28 | }
29 |
30 | module.exports = isString;
31 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isSymbol.js:
--------------------------------------------------------------------------------
1 | var baseGetTag = require('./_baseGetTag.js'),
2 | isObjectLike = require('./isObjectLike.js');
3 |
4 | /** `Object#toString` result references. */
5 | var symbolTag = '[object Symbol]';
6 |
7 | /**
8 | * Checks if `value` is classified as a `Symbol` primitive or object.
9 | *
10 | * @static
11 | * @memberOf _
12 | * @since 4.0.0
13 | * @category Lang
14 | * @param {*} value The value to check.
15 | * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
16 | * @example
17 | *
18 | * _.isSymbol(Symbol.iterator);
19 | * // => true
20 | *
21 | * _.isSymbol('abc');
22 | * // => false
23 | */
24 | function isSymbol(value) {
25 | return typeof value == 'symbol' ||
26 | (isObjectLike(value) && baseGetTag(value) == symbolTag);
27 | }
28 |
29 | module.exports = isSymbol;
30 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isTypedArray.js:
--------------------------------------------------------------------------------
1 | var baseIsTypedArray = require('./_baseIsTypedArray.js'),
2 | baseUnary = require('./_baseUnary.js'),
3 | nodeUtil = require('./_nodeUtil.js');
4 |
5 | /* Node.js helper references. */
6 | var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
7 |
8 | /**
9 | * Checks if `value` is classified as a typed array.
10 | *
11 | * @static
12 | * @memberOf _
13 | * @since 3.0.0
14 | * @category Lang
15 | * @param {*} value The value to check.
16 | * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
17 | * @example
18 | *
19 | * _.isTypedArray(new Uint8Array);
20 | * // => true
21 | *
22 | * _.isTypedArray([]);
23 | * // => false
24 | */
25 | var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
26 |
27 | module.exports = isTypedArray;
28 |
--------------------------------------------------------------------------------
/dist/npm/lodash/isUndefined.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Checks if `value` is `undefined`.
3 | *
4 | * @static
5 | * @since 0.1.0
6 | * @memberOf _
7 | * @category Lang
8 | * @param {*} value The value to check.
9 | * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
10 | * @example
11 | *
12 | * _.isUndefined(void 0);
13 | * // => true
14 | *
15 | * _.isUndefined(null);
16 | * // => false
17 | */
18 | function isUndefined(value) {
19 | return value === undefined;
20 | }
21 |
22 | module.exports = isUndefined;
23 |
--------------------------------------------------------------------------------
/dist/npm/lodash/keys.js:
--------------------------------------------------------------------------------
1 | var arrayLikeKeys = require('./_arrayLikeKeys.js'),
2 | baseKeys = require('./_baseKeys.js'),
3 | isArrayLike = require('./isArrayLike.js');
4 |
5 | /**
6 | * Creates an array of the own enumerable property names of `object`.
7 | *
8 | * **Note:** Non-object values are coerced to objects. See the
9 | * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
10 | * for more details.
11 | *
12 | * @static
13 | * @since 0.1.0
14 | * @memberOf _
15 | * @category Object
16 | * @param {Object} object The object to query.
17 | * @returns {Array} Returns the array of property names.
18 | * @example
19 | *
20 | * function Foo() {
21 | * this.a = 1;
22 | * this.b = 2;
23 | * }
24 | *
25 | * Foo.prototype.c = 3;
26 | *
27 | * _.keys(new Foo);
28 | * // => ['a', 'b'] (iteration order is not guaranteed)
29 | *
30 | * _.keys('hi');
31 | * // => ['0', '1']
32 | */
33 | function keys(object) {
34 | return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
35 | }
36 |
37 | module.exports = keys;
38 |
--------------------------------------------------------------------------------
/dist/npm/lodash/last.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Gets the last element of `array`.
3 | *
4 | * @static
5 | * @memberOf _
6 | * @since 0.1.0
7 | * @category Array
8 | * @param {Array} array The array to query.
9 | * @returns {*} Returns the last element of `array`.
10 | * @example
11 | *
12 | * _.last([1, 2, 3]);
13 | * // => 3
14 | */
15 | function last(array) {
16 | var length = array == null ? 0 : array.length;
17 | return length ? array[length - 1] : undefined;
18 | }
19 |
20 | module.exports = last;
21 |
--------------------------------------------------------------------------------
/dist/npm/lodash/stubFalse.js:
--------------------------------------------------------------------------------
1 | /**
2 | * This method returns `false`.
3 | *
4 | * @static
5 | * @memberOf _
6 | * @since 4.13.0
7 | * @category Util
8 | * @returns {boolean} Returns `false`.
9 | * @example
10 | *
11 | * _.times(2, _.stubFalse);
12 | * // => [false, false]
13 | */
14 | function stubFalse() {
15 | return false;
16 | }
17 |
18 | module.exports = stubFalse;
19 |
--------------------------------------------------------------------------------
/dist/npm/lodash/toFinite.js:
--------------------------------------------------------------------------------
1 | var toNumber = require('./toNumber.js');
2 |
3 | /** Used as references for various `Number` constants. */
4 | var INFINITY = 1 / 0,
5 | MAX_INTEGER = 1.7976931348623157e+308;
6 |
7 | /**
8 | * Converts `value` to a finite number.
9 | *
10 | * @static
11 | * @memberOf _
12 | * @since 4.12.0
13 | * @category Lang
14 | * @param {*} value The value to convert.
15 | * @returns {number} Returns the converted number.
16 | * @example
17 | *
18 | * _.toFinite(3.2);
19 | * // => 3.2
20 | *
21 | * _.toFinite(Number.MIN_VALUE);
22 | * // => 5e-324
23 | *
24 | * _.toFinite(Infinity);
25 | * // => 1.7976931348623157e+308
26 | *
27 | * _.toFinite('3.2');
28 | * // => 3.2
29 | */
30 | function toFinite(value) {
31 | if (!value) {
32 | return value === 0 ? value : 0;
33 | }
34 | value = toNumber(value);
35 | if (value === INFINITY || value === -INFINITY) {
36 | var sign = (value < 0 ? -1 : 1);
37 | return sign * MAX_INTEGER;
38 | }
39 | return value === value ? value : 0;
40 | }
41 |
42 | module.exports = toFinite;
43 |
--------------------------------------------------------------------------------
/dist/npm/lodash/toInteger.js:
--------------------------------------------------------------------------------
1 | var toFinite = require('./toFinite.js');
2 |
3 | /**
4 | * Converts `value` to an integer.
5 | *
6 | * **Note:** This method is loosely based on
7 | * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
8 | *
9 | * @static
10 | * @memberOf _
11 | * @since 4.0.0
12 | * @category Lang
13 | * @param {*} value The value to convert.
14 | * @returns {number} Returns the converted integer.
15 | * @example
16 | *
17 | * _.toInteger(3.2);
18 | * // => 3
19 | *
20 | * _.toInteger(Number.MIN_VALUE);
21 | * // => 0
22 | *
23 | * _.toInteger(Infinity);
24 | * // => 1.7976931348623157e+308
25 | *
26 | * _.toInteger('3.2');
27 | * // => 3
28 | */
29 | function toInteger(value) {
30 | var result = toFinite(value),
31 | remainder = result % 1;
32 |
33 | return result === result ? (remainder ? result - remainder : result) : 0;
34 | }
35 |
36 | module.exports = toInteger;
37 |
--------------------------------------------------------------------------------
/dist/npm/lodash/toNumber.js:
--------------------------------------------------------------------------------
1 | var isObject = require('./isObject.js'),
2 | isSymbol = require('./isSymbol.js');
3 |
4 | /** Used as references for various `Number` constants. */
5 | var NAN = 0 / 0;
6 |
7 | /** Used to match leading and trailing whitespace. */
8 | var reTrim = /^\s+|\s+$/g;
9 |
10 | /** Used to detect bad signed hexadecimal string values. */
11 | var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
12 |
13 | /** Used to detect binary string values. */
14 | var reIsBinary = /^0b[01]+$/i;
15 |
16 | /** Used to detect octal string values. */
17 | var reIsOctal = /^0o[0-7]+$/i;
18 |
19 | /** Built-in method references without a dependency on `root`. */
20 | var freeParseInt = parseInt;
21 |
22 | /**
23 | * Converts `value` to a number.
24 | *
25 | * @static
26 | * @memberOf _
27 | * @since 4.0.0
28 | * @category Lang
29 | * @param {*} value The value to process.
30 | * @returns {number} Returns the number.
31 | * @example
32 | *
33 | * _.toNumber(3.2);
34 | * // => 3.2
35 | *
36 | * _.toNumber(Number.MIN_VALUE);
37 | * // => 5e-324
38 | *
39 | * _.toNumber(Infinity);
40 | * // => Infinity
41 | *
42 | * _.toNumber('3.2');
43 | * // => 3.2
44 | */
45 | function toNumber(value) {
46 | if (typeof value == 'number') {
47 | return value;
48 | }
49 | if (isSymbol(value)) {
50 | return NAN;
51 | }
52 | if (isObject(value)) {
53 | var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
54 | value = isObject(other) ? (other + '') : other;
55 | }
56 | if (typeof value != 'string') {
57 | return value === 0 ? value : +value;
58 | }
59 | value = value.replace(reTrim, '');
60 | var isBinary = reIsBinary.test(value);
61 | return (isBinary || reIsOctal.test(value))
62 | ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
63 | : (reIsBadHex.test(value) ? NAN : +value);
64 | }
65 |
66 | module.exports = toNumber;
67 |
--------------------------------------------------------------------------------
/dist/npm/lodash/toString.js:
--------------------------------------------------------------------------------
1 | var baseToString = require('./_baseToString.js');
2 |
3 | /**
4 | * Converts `value` to a string. An empty string is returned for `null`
5 | * and `undefined` values. The sign of `-0` is preserved.
6 | *
7 | * @static
8 | * @memberOf _
9 | * @since 4.0.0
10 | * @category Lang
11 | * @param {*} value The value to convert.
12 | * @returns {string} Returns the converted string.
13 | * @example
14 | *
15 | * _.toString(null);
16 | * // => ''
17 | *
18 | * _.toString(-0);
19 | * // => '-0'
20 | *
21 | * _.toString([1, 2, 3]);
22 | * // => '1,2,3'
23 | */
24 | function toString(value) {
25 | return value == null ? '' : baseToString(value);
26 | }
27 |
28 | module.exports = toString;
29 |
--------------------------------------------------------------------------------
/dist/npm/lodash/values.js:
--------------------------------------------------------------------------------
1 | var baseValues = require('./_baseValues.js'),
2 | keys = require('./keys.js');
3 |
4 | /**
5 | * Creates an array of the own enumerable string keyed property values of `object`.
6 | *
7 | * **Note:** Non-object values are coerced to objects.
8 | *
9 | * @static
10 | * @since 0.1.0
11 | * @memberOf _
12 | * @category Object
13 | * @param {Object} object The object to query.
14 | * @returns {Array} Returns the array of property values.
15 | * @example
16 | *
17 | * function Foo() {
18 | * this.a = 1;
19 | * this.b = 2;
20 | * }
21 | *
22 | * Foo.prototype.c = 3;
23 | *
24 | * _.values(new Foo);
25 | * // => [1, 2] (iteration order is not guaranteed)
26 | *
27 | * _.values('hi');
28 | * // => ['h', 'i']
29 | */
30 | function values(object) {
31 | return object == null ? [] : baseValues(object, keys(object));
32 | }
33 |
34 | module.exports = values;
35 |
--------------------------------------------------------------------------------
/dist/npm/reduce-reducers/dist/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | exports.default = function () {
8 | for (var _len = arguments.length, reducers = Array(_len), _key = 0; _key < _len; _key++) {
9 | reducers[_key] = arguments[_key];
10 | }
11 |
12 | return function (previous, current) {
13 | return reducers.reduce(function (p, r) {
14 | return r(p, current);
15 | }, previous);
16 | };
17 | };
18 |
19 | module.exports = exports["default"];
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/arrayToObject.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | exports.default = function (array, callback) {
8 | return array.reduce(function (partialObject, element) {
9 | return callback(partialObject, element);
10 | }, {});
11 | };
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/camelCase.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | // based on https://github.com/lodash/lodash/blob/4.17.2/lodash.js#L14100
7 | // eslint-disable-next-line max-len
8 | var wordPattern = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:(?:1ST|2ND|3RD|(?![123])\dTH)\b)|\d*(?:(?:1st|2nd|3rd|(?![123])\dth)\b)|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g;
9 | var namespacer = '/';
10 |
11 | function camelCase(string) {
12 | return string.match(wordPattern).reduce(function (camelCased, word, index) {
13 | return camelCased + (index === 0 ? word.toLowerCase() : word.charAt(0).toUpperCase() + word.substring(1).toLowerCase());
14 | }, '');
15 | }
16 |
17 | exports.default = function (type) {
18 | return type.split(namespacer).map(camelCase).join(namespacer);
19 | };
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/combineActions.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.ACTION_TYPE_DELIMITER = undefined;
7 | exports.default = combineActions;
8 |
9 | var _isString = require('./../../lodash/isString.js');
10 |
11 | var _isString2 = _interopRequireDefault(_isString);
12 |
13 | var _isFunction = require('./../../lodash/isFunction.js');
14 |
15 | var _isFunction2 = _interopRequireDefault(_isFunction);
16 |
17 | var _isEmpty = require('./../../lodash/isEmpty.js');
18 |
19 | var _isEmpty2 = _interopRequireDefault(_isEmpty);
20 |
21 | var _toString = require('./../../lodash/toString.js');
22 |
23 | var _toString2 = _interopRequireDefault(_toString);
24 |
25 | var _isSymbol = require('./../../lodash/isSymbol.js');
26 |
27 | var _isSymbol2 = _interopRequireDefault(_isSymbol);
28 |
29 | var _invariant = require('./../../invariant/browser.js');
30 |
31 | var _invariant2 = _interopRequireDefault(_invariant);
32 |
33 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
34 |
35 | var ACTION_TYPE_DELIMITER = exports.ACTION_TYPE_DELIMITER = '||';
36 |
37 | function isValidActionType(type) {
38 | return (0, _isString2.default)(type) || (0, _isFunction2.default)(type) || (0, _isSymbol2.default)(type);
39 | }
40 |
41 | function isValidActionTypes(types) {
42 | if ((0, _isEmpty2.default)(types)) {
43 | return false;
44 | }
45 | return types.every(isValidActionType);
46 | }
47 |
48 | function combineActions() {
49 | for (var _len = arguments.length, actionsTypes = Array(_len), _key = 0; _key < _len; _key++) {
50 | actionsTypes[_key] = arguments[_key];
51 | }
52 |
53 | (0, _invariant2.default)(isValidActionTypes(actionsTypes), 'Expected action types to be strings, symbols, or action creators');
54 | var combinedActionType = actionsTypes.map(_toString2.default).join(ACTION_TYPE_DELIMITER);
55 | return { toString: function toString() {
56 | return combinedActionType;
57 | } };
58 | }
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/createAction.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.default = createAction;
7 |
8 | var _identity = require('./../../lodash/identity.js');
9 |
10 | var _identity2 = _interopRequireDefault(_identity);
11 |
12 | var _isFunction = require('./../../lodash/isFunction.js');
13 |
14 | var _isFunction2 = _interopRequireDefault(_isFunction);
15 |
16 | var _isNull = require('./../../lodash/isNull.js');
17 |
18 | var _isNull2 = _interopRequireDefault(_isNull);
19 |
20 | var _invariant = require('./../../invariant/browser.js');
21 |
22 | var _invariant2 = _interopRequireDefault(_invariant);
23 |
24 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25 |
26 | function createAction(type) {
27 | var payloadCreator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _identity2.default;
28 | var metaCreator = arguments[2];
29 |
30 | (0, _invariant2.default)((0, _isFunction2.default)(payloadCreator) || (0, _isNull2.default)(payloadCreator), 'Expected payloadCreator to be a function, undefined or null');
31 |
32 | var finalPayloadCreator = (0, _isNull2.default)(payloadCreator) || payloadCreator === _identity2.default ? _identity2.default : function (head) {
33 | for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
34 | args[_key - 1] = arguments[_key];
35 | }
36 |
37 | return head instanceof Error ? head : payloadCreator.apply(undefined, [head].concat(args));
38 | };
39 |
40 | var hasMeta = (0, _isFunction2.default)(metaCreator);
41 | var typeString = type.toString();
42 |
43 | var actionCreator = function actionCreator() {
44 | var payload = finalPayloadCreator.apply(undefined, arguments);
45 | var action = { type: type };
46 |
47 | if (payload instanceof Error) {
48 | action.error = true;
49 | }
50 |
51 | if (payload !== undefined) {
52 | action.payload = payload;
53 | }
54 |
55 | if (hasMeta) {
56 | action.meta = metaCreator.apply(undefined, arguments);
57 | }
58 |
59 | return action;
60 | };
61 |
62 | actionCreator.toString = function () {
63 | return typeString;
64 | };
65 |
66 | return actionCreator;
67 | }
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/flattenUtils.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.unflattenActionCreators = exports.flattenReducerMap = exports.flattenActionMap = exports.defaultNamespace = undefined;
7 |
8 | var _camelCase = require('./camelCase.js');
9 |
10 | var _camelCase2 = _interopRequireDefault(_camelCase);
11 |
12 | var _ownKeys = require('./ownKeys.js');
13 |
14 | var _ownKeys2 = _interopRequireDefault(_ownKeys);
15 |
16 | var _hasGeneratorInterface = require('./hasGeneratorInterface.js');
17 |
18 | var _hasGeneratorInterface2 = _interopRequireDefault(_hasGeneratorInterface);
19 |
20 | var _isPlainObject = require('./../../lodash/isPlainObject.js');
21 |
22 | var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
23 |
24 | var _isMap = require('./../../lodash/isMap.js');
25 |
26 | var _isMap2 = _interopRequireDefault(_isMap);
27 |
28 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29 |
30 | var defaultNamespace = exports.defaultNamespace = '/';
31 |
32 | function get(key, x) {
33 | return (0, _isMap2.default)(x) ? x.get(key) : x[key];
34 | }
35 |
36 | var flattenWhenNode = function flattenWhenNode(predicate) {
37 | return function flatten(map) {
38 | var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
39 | _ref$namespace = _ref.namespace,
40 | namespace = _ref$namespace === undefined ? defaultNamespace : _ref$namespace,
41 | prefix = _ref.prefix;
42 |
43 | var partialFlatMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
44 | var partialFlatActionType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
45 |
46 | function connectNamespace(type) {
47 | return partialFlatActionType ? '' + partialFlatActionType + namespace + type : type;
48 | }
49 |
50 | function connectPrefix(type) {
51 | if (partialFlatActionType || !prefix) {
52 | return type;
53 | }
54 |
55 | return '' + prefix + namespace + type;
56 | }
57 |
58 | (0, _ownKeys2.default)(map).forEach(function (type) {
59 | var nextNamespace = connectPrefix(connectNamespace(type));
60 | var mapValue = get(type, map);
61 |
62 | if (!predicate(mapValue)) {
63 | partialFlatMap[nextNamespace] = mapValue;
64 | } else {
65 | flatten(mapValue, { namespace: namespace, prefix: prefix }, partialFlatMap, nextNamespace);
66 | }
67 | });
68 |
69 | return partialFlatMap;
70 | };
71 | };
72 |
73 | var flattenActionMap = flattenWhenNode(_isPlainObject2.default);
74 | var flattenReducerMap = flattenWhenNode(function (node) {
75 | return ((0, _isPlainObject2.default)(node) || (0, _isMap2.default)(node)) && !(0, _hasGeneratorInterface2.default)(node);
76 | });
77 |
78 | function unflattenActionCreators(flatActionCreators) {
79 | var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
80 | _ref2$namespace = _ref2.namespace,
81 | namespace = _ref2$namespace === undefined ? defaultNamespace : _ref2$namespace,
82 | prefix = _ref2.prefix;
83 |
84 | function unflatten(flatActionType) {
85 | var partialNestedActionCreators = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
86 | var partialFlatActionTypePath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
87 |
88 | var nextNamespace = (0, _camelCase2.default)(partialFlatActionTypePath.shift());
89 | if (partialFlatActionTypePath.length) {
90 | if (!partialNestedActionCreators[nextNamespace]) {
91 | partialNestedActionCreators[nextNamespace] = {};
92 | }
93 | unflatten(flatActionType, partialNestedActionCreators[nextNamespace], partialFlatActionTypePath);
94 | } else {
95 | partialNestedActionCreators[nextNamespace] = flatActionCreators[flatActionType];
96 | }
97 | }
98 |
99 | var nestedActionCreators = {};
100 | Object.getOwnPropertyNames(flatActionCreators).forEach(function (type) {
101 | var unprefixedType = prefix ? type.replace('' + prefix + namespace, '') : type;
102 | return unflatten(type, nestedActionCreators, unprefixedType.split(namespace));
103 | });
104 |
105 | return nestedActionCreators;
106 | }
107 |
108 | exports.flattenActionMap = flattenActionMap;
109 | exports.flattenReducerMap = flattenReducerMap;
110 | exports.unflattenActionCreators = unflattenActionCreators;
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/handleAction.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
8 |
9 | exports.default = handleAction;
10 |
11 | var _isFunction = require('./../../lodash/isFunction.js');
12 |
13 | var _isFunction2 = _interopRequireDefault(_isFunction);
14 |
15 | var _isPlainObject = require('./../../lodash/isPlainObject.js');
16 |
17 | var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
18 |
19 | var _identity = require('./../../lodash/identity.js');
20 |
21 | var _identity2 = _interopRequireDefault(_identity);
22 |
23 | var _isNil = require('./../../lodash/isNil.js');
24 |
25 | var _isNil2 = _interopRequireDefault(_isNil);
26 |
27 | var _isUndefined = require('./../../lodash/isUndefined.js');
28 |
29 | var _isUndefined2 = _interopRequireDefault(_isUndefined);
30 |
31 | var _includes = require('./../../lodash/includes.js');
32 |
33 | var _includes2 = _interopRequireDefault(_includes);
34 |
35 | var _invariant = require('./../../invariant/browser.js');
36 |
37 | var _invariant2 = _interopRequireDefault(_invariant);
38 |
39 | var _combineActions = require('./combineActions.js');
40 |
41 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42 |
43 | function handleAction(type) {
44 | var reducer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _identity2.default;
45 | var defaultState = arguments[2];
46 |
47 | var types = type.toString().split(_combineActions.ACTION_TYPE_DELIMITER);
48 | (0, _invariant2.default)(!(0, _isUndefined2.default)(defaultState), 'defaultState for reducer handling ' + types.join(', ') + ' should be defined');
49 | (0, _invariant2.default)((0, _isFunction2.default)(reducer) || (0, _isPlainObject2.default)(reducer), 'Expected reducer to be a function or object with next and throw reducers');
50 |
51 | var _ref = (0, _isFunction2.default)(reducer) ? [reducer, reducer] : [reducer.next, reducer.throw].map(function (aReducer) {
52 | return (0, _isNil2.default)(aReducer) ? _identity2.default : aReducer;
53 | }),
54 | _ref2 = _slicedToArray(_ref, 2),
55 | nextReducer = _ref2[0],
56 | throwReducer = _ref2[1];
57 |
58 | return function () {
59 | var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultState;
60 | var action = arguments[1];
61 | var actionType = action.type;
62 |
63 | if (!actionType || !(0, _includes2.default)(types, actionType.toString())) {
64 | return state;
65 | }
66 |
67 | return (action.error === true ? throwReducer : nextReducer)(state, action);
68 | };
69 | }
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/handleActions.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.default = handleActions;
7 |
8 | var _isPlainObject = require('./../../lodash/isPlainObject.js');
9 |
10 | var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
11 |
12 | var _isMap = require('./../../lodash/isMap.js');
13 |
14 | var _isMap2 = _interopRequireDefault(_isMap);
15 |
16 | var _reduceReducers = require('./../../reduce-reducers/dist/index.js');
17 |
18 | var _reduceReducers2 = _interopRequireDefault(_reduceReducers);
19 |
20 | var _invariant = require('./../../invariant/browser.js');
21 |
22 | var _invariant2 = _interopRequireDefault(_invariant);
23 |
24 | var _handleAction = require('./handleAction.js');
25 |
26 | var _handleAction2 = _interopRequireDefault(_handleAction);
27 |
28 | var _ownKeys = require('./ownKeys.js');
29 |
30 | var _ownKeys2 = _interopRequireDefault(_ownKeys);
31 |
32 | var _flattenUtils = require('./flattenUtils.js');
33 |
34 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35 |
36 | function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
37 |
38 | function get(key, x) {
39 | return (0, _isMap2.default)(x) ? x.get(key) : x[key];
40 | }
41 |
42 | function handleActions(handlers, defaultState) {
43 | var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
44 |
45 | (0, _invariant2.default)((0, _isPlainObject2.default)(handlers) || (0, _isMap2.default)(handlers), 'Expected handlers to be a plain object.');
46 | var flattenedReducerMap = (0, _flattenUtils.flattenReducerMap)(handlers, options);
47 | var reducers = (0, _ownKeys2.default)(flattenedReducerMap).map(function (type) {
48 | return (0, _handleAction2.default)(type, get(type, flattenedReducerMap), defaultState);
49 | });
50 | var reducer = _reduceReducers2.default.apply(undefined, _toConsumableArray(reducers));
51 | return function () {
52 | var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultState;
53 | var action = arguments[1];
54 | return reducer(state, action);
55 | };
56 | }
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/hasGeneratorInterface.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.default = hasGeneratorInterface;
7 |
8 | var _ownKeys = require('./ownKeys.js');
9 |
10 | var _ownKeys2 = _interopRequireDefault(_ownKeys);
11 |
12 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 |
14 | function hasGeneratorInterface(handler) {
15 | var keys = (0, _ownKeys2.default)(handler);
16 | var hasOnlyInterfaceNames = keys.every(function (ownKey) {
17 | return ownKey === 'next' || ownKey === 'throw';
18 | });
19 | return keys.length && keys.length <= 2 && hasOnlyInterfaceNames;
20 | }
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.combineActions = exports.handleActions = exports.handleAction = exports.createActions = exports.createAction = undefined;
7 |
8 | var _createAction = require('./createAction.js');
9 |
10 | var _createAction2 = _interopRequireDefault(_createAction);
11 |
12 | var _handleAction = require('./handleAction.js');
13 |
14 | var _handleAction2 = _interopRequireDefault(_handleAction);
15 |
16 | var _handleActions = require('./handleActions.js');
17 |
18 | var _handleActions2 = _interopRequireDefault(_handleActions);
19 |
20 | var _combineActions = require('./combineActions.js');
21 |
22 | var _combineActions2 = _interopRequireDefault(_combineActions);
23 |
24 | var _createActions = require('./createActions.js');
25 |
26 | var _createActions2 = _interopRequireDefault(_createActions);
27 |
28 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29 |
30 | exports.createAction = _createAction2.default;
31 | exports.createActions = _createActions2.default;
32 | exports.handleAction = _handleAction2.default;
33 | exports.handleActions = _handleActions2.default;
34 | exports.combineActions = _combineActions2.default;
--------------------------------------------------------------------------------
/dist/npm/redux-actions/lib/ownKeys.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.default = ownKeys;
7 |
8 | var _isMap = require('./../../lodash/isMap.js');
9 |
10 | var _isMap2 = _interopRequireDefault(_isMap);
11 |
12 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13 |
14 | function ownKeys(object) {
15 |
16 | if ((0, _isMap2.default)(object)) {
17 | return Array.from(object.keys());
18 | }
19 |
20 | if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
21 | return Reflect.ownKeys(object);
22 | }
23 |
24 | var keys = Object.getOwnPropertyNames(object);
25 |
26 | if (typeof Object.getOwnPropertySymbols === 'function') {
27 | keys = keys.concat(Object.getOwnPropertySymbols(object));
28 | }
29 |
30 | return keys;
31 | }
--------------------------------------------------------------------------------
/dist/npm/redux-promise/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 |
5 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
6 |
7 | exports['default'] = promiseMiddleware;
8 |
9 | var _fluxStandardAction = require('./../../flux-standard-action/lib/index.js');
10 |
11 | function isPromise(val) {
12 | return val && typeof val.then === 'function';
13 | }
14 |
15 | function promiseMiddleware(_ref) {
16 | var dispatch = _ref.dispatch;
17 |
18 | return function (next) {
19 | return function (action) {
20 | if (!_fluxStandardAction.isFSA(action)) {
21 | return isPromise(action) ? action.then(dispatch) : next(action);
22 | }
23 |
24 | return isPromise(action.payload) ? action.payload.then(function (result) {
25 | return dispatch(_extends({}, action, { payload: result }));
26 | }, function (error) {
27 | return dispatch(_extends({}, action, { payload: error, error: true }));
28 | }) : next(action);
29 | };
30 | };
31 | }
32 |
33 | module.exports = exports['default'];
--------------------------------------------------------------------------------
/dist/npm/redux/lib/applyMiddleware.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 |
5 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
6 |
7 | exports['default'] = applyMiddleware;
8 |
9 | var _compose = require('./compose.js');
10 |
11 | var _compose2 = _interopRequireDefault(_compose);
12 |
13 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
14 |
15 | /**
16 | * Creates a store enhancer that applies middleware to the dispatch method
17 | * of the Redux store. This is handy for a variety of tasks, such as expressing
18 | * asynchronous actions in a concise manner, or logging every action payload.
19 | *
20 | * See `redux-thunk` package as an example of the Redux middleware.
21 | *
22 | * Because middleware is potentially asynchronous, this should be the first
23 | * store enhancer in the composition chain.
24 | *
25 | * Note that each middleware will be given the `dispatch` and `getState` functions
26 | * as named arguments.
27 | *
28 | * @param {...Function} middlewares The middleware chain to be applied.
29 | * @returns {Function} A store enhancer applying the middleware.
30 | */
31 | function applyMiddleware() {
32 | for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) {
33 | middlewares[_key] = arguments[_key];
34 | }
35 |
36 | return function (createStore) {
37 | return function (reducer, preloadedState, enhancer) {
38 | var store = createStore(reducer, preloadedState, enhancer);
39 | var _dispatch = store.dispatch;
40 | var chain = [];
41 |
42 | var middlewareAPI = {
43 | getState: store.getState,
44 | dispatch: function dispatch(action) {
45 | return _dispatch(action);
46 | }
47 | };
48 | chain = middlewares.map(function (middleware) {
49 | return middleware(middlewareAPI);
50 | });
51 | _dispatch = _compose2['default'].apply(undefined, chain)(store.dispatch);
52 |
53 | return _extends({}, store, {
54 | dispatch: _dispatch
55 | });
56 | };
57 | };
58 | }
--------------------------------------------------------------------------------
/dist/npm/redux/lib/bindActionCreators.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 | exports['default'] = bindActionCreators;
5 | function bindActionCreator(actionCreator, dispatch) {
6 | return function () {
7 | return dispatch(actionCreator.apply(undefined, arguments));
8 | };
9 | }
10 |
11 | /**
12 | * Turns an object whose values are action creators, into an object with the
13 | * same keys, but with every function wrapped into a `dispatch` call so they
14 | * may be invoked directly. This is just a convenience method, as you can call
15 | * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
16 | *
17 | * For convenience, you can also pass a single function as the first argument,
18 | * and get a function in return.
19 | *
20 | * @param {Function|Object} actionCreators An object whose values are action
21 | * creator functions. One handy way to obtain it is to use ES6 `import * as`
22 | * syntax. You may also pass a single function.
23 | *
24 | * @param {Function} dispatch The `dispatch` function available on your Redux
25 | * store.
26 | *
27 | * @returns {Function|Object} The object mimicking the original object, but with
28 | * every action creator wrapped into the `dispatch` call. If you passed a
29 | * function as `actionCreators`, the return value will also be a single
30 | * function.
31 | */
32 | function bindActionCreators(actionCreators, dispatch) {
33 | if (typeof actionCreators === 'function') {
34 | return bindActionCreator(actionCreators, dispatch);
35 | }
36 |
37 | if (typeof actionCreators !== 'object' || actionCreators === null) {
38 | throw new Error('bindActionCreators expected an object or a function, instead received ' + (actionCreators === null ? 'null' : typeof actionCreators) + '. ' + 'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');
39 | }
40 |
41 | var keys = Object.keys(actionCreators);
42 | var boundActionCreators = {};
43 | for (var i = 0; i < keys.length; i++) {
44 | var key = keys[i];
45 | var actionCreator = actionCreators[key];
46 | if (typeof actionCreator === 'function') {
47 | boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
48 | }
49 | }
50 | return boundActionCreators;
51 | }
--------------------------------------------------------------------------------
/dist/npm/redux/lib/compose.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | exports.__esModule = true;
4 | exports["default"] = compose;
5 | /**
6 | * Composes single-argument functions from right to left. The rightmost
7 | * function can take multiple arguments as it provides the signature for
8 | * the resulting composite function.
9 | *
10 | * @param {...Function} funcs The functions to compose.
11 | * @returns {Function} A function obtained by composing the argument functions
12 | * from right to left. For example, compose(f, g, h) is identical to doing
13 | * (...args) => f(g(h(...args))).
14 | */
15 |
16 | function compose() {
17 | for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
18 | funcs[_key] = arguments[_key];
19 | }
20 |
21 | if (funcs.length === 0) {
22 | return function (arg) {
23 | return arg;
24 | };
25 | }
26 |
27 | if (funcs.length === 1) {
28 | return funcs[0];
29 | }
30 |
31 | return funcs.reduce(function (a, b) {
32 | return function () {
33 | return a(b.apply(undefined, arguments));
34 | };
35 | });
36 | }
--------------------------------------------------------------------------------
/dist/npm/redux/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 | exports.compose = exports.applyMiddleware = exports.bindActionCreators = exports.combineReducers = exports.createStore = undefined;
5 |
6 | var _createStore = require('./createStore.js');
7 |
8 | var _createStore2 = _interopRequireDefault(_createStore);
9 |
10 | var _combineReducers = require('./combineReducers.js');
11 |
12 | var _combineReducers2 = _interopRequireDefault(_combineReducers);
13 |
14 | var _bindActionCreators = require('./bindActionCreators.js');
15 |
16 | var _bindActionCreators2 = _interopRequireDefault(_bindActionCreators);
17 |
18 | var _applyMiddleware = require('./applyMiddleware.js');
19 |
20 | var _applyMiddleware2 = _interopRequireDefault(_applyMiddleware);
21 |
22 | var _compose = require('./compose.js');
23 |
24 | var _compose2 = _interopRequireDefault(_compose);
25 |
26 | var _warning = require('./utils/warning.js');
27 |
28 | var _warning2 = _interopRequireDefault(_warning);
29 |
30 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
31 |
32 | /*
33 | * This is a dummy function to check if the function name has been altered by minification.
34 | * If the function has been minified and NODE_ENV !== 'production', warn the user.
35 | */
36 | function isCrushed() {}
37 |
38 | if (undefined !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
39 | (0, _warning2['default'])('You are currently using minified code outside of NODE_ENV === \'production\'. ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.');
40 | }
41 |
42 | exports.createStore = _createStore2['default'];
43 | exports.combineReducers = _combineReducers2['default'];
44 | exports.bindActionCreators = _bindActionCreators2['default'];
45 | exports.applyMiddleware = _applyMiddleware2['default'];
46 | exports.compose = _compose2['default'];
--------------------------------------------------------------------------------
/dist/npm/redux/lib/utils/warning.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 | exports['default'] = warning;
5 | /**
6 | * Prints a warning in the console if it exists.
7 | *
8 | * @param {String} message The warning message.
9 | * @returns {void}
10 | */
11 | function warning(message) {
12 | /* eslint-disable no-console */
13 | if (typeof console !== 'undefined' && typeof console.error === 'function') {
14 | console.error(message);
15 | }
16 | /* eslint-enable no-console */
17 | try {
18 | // This error was thrown as a convenience so that if you enable
19 | // "break on all exceptions" in your console,
20 | // it would pause the execution at this line.
21 | throw new Error(message);
22 | /* eslint-disable no-empty */
23 | } catch (e) {}
24 | /* eslint-enable no-empty */
25 | }
--------------------------------------------------------------------------------
/dist/npm/symbol-observable/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _ponyfill = require('./ponyfill.js');
8 |
9 | var _ponyfill2 = _interopRequireDefault(_ponyfill);
10 |
11 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
12 |
13 | var root; /* global window */
14 |
15 |
16 | if (typeof self !== 'undefined') {
17 | root = self;
18 | } else if (typeof window !== 'undefined') {
19 | root = window;
20 | } else if (typeof global !== 'undefined') {
21 | root = global;
22 | } else if (typeof module !== 'undefined') {
23 | root = module;
24 | } else {
25 | root = Function('return this')();
26 | }
27 |
28 | var result = (0, _ponyfill2['default'])(root);
29 | exports['default'] = result;
--------------------------------------------------------------------------------
/dist/npm/symbol-observable/lib/ponyfill.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports['default'] = symbolObservablePonyfill;
7 | function symbolObservablePonyfill(root) {
8 | var result;
9 | var _Symbol = root.Symbol;
10 |
11 | if (typeof _Symbol === 'function') {
12 | if (_Symbol.observable) {
13 | result = _Symbol.observable;
14 | } else {
15 | result = _Symbol('observable');
16 | _Symbol.observable = result;
17 | }
18 | } else {
19 | result = '@@observable';
20 | }
21 |
22 | return result;
23 | };
--------------------------------------------------------------------------------
/dist/npm/wepy-async-function/global.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making WePY available.
3 | * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
4 | *
5 | * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
6 | * http://opensource.org/licenses/MIT
7 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8 | */
9 |
10 |
11 | var global = module.exports = typeof window !== 'undefined' && window.Math === Math
12 | ? window : typeof self !== 'undefined' && self.Math === Math ? self : this;
13 |
--------------------------------------------------------------------------------
/dist/npm/wepy-async-function/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Tencent is pleased to support the open source community by making WePY available.
3 | * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
4 | *
5 | * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
6 | * http://opensource.org/licenses/MIT
7 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8 | */
9 |
10 |
11 | var g = require('./global.js');
12 |
13 | if (!g.Promise) {
14 | // IOS 10.0.1 may cause IOS crash.
15 | g.Promise = require('./../promise-polyfill/promise.js');
16 | }
17 | if (!g.regeneratorRuntime) {
18 | g.regeneratorRuntime = require('./../regenerator-runtime/runtime.js');
19 | }
20 |
--------------------------------------------------------------------------------
/dist/npm/wepy-com-toast/toast.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{title}}
12 |
13 |
14 |
--------------------------------------------------------------------------------
/dist/npm/wepy-com-toast/toast.wxss:
--------------------------------------------------------------------------------
1 |
2 | .wetoast {
3 | display: none;
4 | }
5 | .wetoast_show {
6 | display: block;
7 | }
8 | .wetoast__mask {
9 | position: fixed;
10 | z-index: 1000;
11 | top: 0;
12 | right: 0;
13 | left: 0;
14 | bottom: 0;
15 | }
16 | .wetoast__bd {
17 | opacity: 0;
18 | display: flex;
19 | flex-direction: column;
20 | position: fixed;
21 | z-index: 5000;
22 | min-width: 8.4em;
23 | min-height: 8.4em;
24 | max-width: 70%;
25 | top: 140px;
26 | left: 50%;
27 | padding: 15px;
28 | box-sizing: border-box;
29 | transform: translateX(-50%);
30 | background: rgba(40, 40, 40, 0.75);
31 | border-radius: 5px;
32 | color: #FFFFFF;
33 | word-wrap: break-word;
34 | word-break: break-all;
35 | align-items: center;
36 | justify-content: space-around;
37 | }
38 | .wetoast__bd__img {
39 | margin-top: 3px;
40 | }
41 | .wetoast__bd__img_desc {
42 | width: 55px;
43 | height: 55px;
44 | vertical-align: middle;
45 | }
46 | .wetoast__bd__title {
47 | margin: 3px 0;
48 | font-size: 1.2em;
49 | }
50 |
--------------------------------------------------------------------------------
/dist/npm/wepy-redux/lib/connect/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 | exports.default = connect;
5 |
6 | var _store = require('./../store.js');
7 |
8 | var _helpers = require('./../helpers/index.js');
9 |
10 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11 |
12 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
13 |
14 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
15 |
16 | function connect(states, actions) {
17 | states = (0, _helpers.mapState)(states || {});
18 | actions = (0, _helpers.mapActions)(actions || {});
19 | return function connectComponent(Component) {
20 | var unSubscribe = null;
21 |
22 | var _onLoad = Component.prototype.onLoad;
23 | var _onUnload = Component.prototype.onUnload;
24 |
25 | var onStateChange = function onStateChange() {
26 | var _this = this;
27 |
28 | var store = (0, _store.getStore)();
29 | var hasChanged = false;
30 | Object.keys(states).forEach(function (k) {
31 | var newV = states[k].call(_this);
32 | if (_this[k] !== newV) {
33 | _this[k] = newV;
34 | hasChanged = true;
35 | }
36 | });
37 | hasChanged && this.$apply();
38 | };
39 | return function (_Component) {
40 | _inherits(_class, _Component);
41 |
42 | function _class() {
43 | _classCallCheck(this, _class);
44 |
45 | var _this2 = _possibleConstructorReturn(this, _Component.call(this));
46 |
47 | _this2.computed = Object.assign(_this2.computed || {}, states);
48 | _this2.methods = Object.assign(_this2.methods || {}, actions);
49 | return _this2;
50 | }
51 |
52 | _class.prototype.onLoad = function onLoad() {
53 | var store = (0, _store.getStore)();
54 | unSubscribe = store.subscribe(onStateChange.bind(this));
55 | onStateChange.call(this);
56 | _onLoad && _onLoad.apply(this, arguments);
57 | };
58 |
59 | _class.prototype.onUnload = function onUnload() {
60 | unSubscribe && unSubscribe();
61 | unSubscribe = null;
62 | _onUnload && _onUnload.apply(this, arguments);
63 | };
64 |
65 | return _class;
66 | }(Component);
67 | };
68 | };
--------------------------------------------------------------------------------
/dist/npm/wepy-redux/lib/helpers/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 | exports.mapActions = exports.mapState = undefined;
5 |
6 | var _store = require('./../store.js');
7 |
8 | var mapState = exports.mapState = function mapState(states) {
9 | var res = {};
10 | normalizeMap(states).forEach(function (_ref) {
11 | var key = _ref.key,
12 | val = _ref.val;
13 |
14 | res[key] = function mappedState() {
15 | var store = (0, _store.getStore)();
16 | var state = store.getState();
17 | return typeof val === 'function' ? val.call(this, state) : state[val];
18 | };
19 | });
20 | return res;
21 | };
22 |
23 | var mapActions = exports.mapActions = function mapActions(actions) {
24 | var res = {};
25 | normalizeMap(actions).forEach(function (_ref2) {
26 | var key = _ref2.key,
27 | val = _ref2.val;
28 |
29 | res[key] = function mappedAction() {
30 | var store = (0, _store.getStore)();
31 | var dispatchParam = void 0;
32 |
33 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
34 | args[_key] = arguments[_key];
35 | }
36 |
37 | if (typeof val === 'string') {
38 | dispatchParam = {
39 | type: val,
40 |
41 | payload: args.length > 1 ? args : args[0]
42 | };
43 | } else {
44 | dispatchParam = typeof val === 'function' ? val.apply(store, args) : val;
45 | }
46 | return store.dispatch.call(store, dispatchParam);
47 | };
48 | });
49 | return res;
50 | };
51 |
52 | function normalizeMap(map) {
53 | return Array.isArray(map) ? map.map(function (key) {
54 | return { key: key, val: key };
55 | }) : Object.keys(map).map(function (key) {
56 | return { key: key, val: map[key] };
57 | });
58 | }
--------------------------------------------------------------------------------
/dist/npm/wepy-redux/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.__esModule = true;
4 | exports.mapActions = exports.mapState = exports.getStore = exports.setStore = exports.connect = undefined;
5 |
6 | var _connect = require('./connect/index.js');
7 |
8 | var _connect2 = _interopRequireDefault(_connect);
9 |
10 | var _store = require('./store.js');
11 |
12 | var _helpers = require('./helpers/index.js');
13 |
14 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15 |
16 | exports.connect = _connect2.default;
17 | exports.setStore = _store.setStore;
18 | exports.getStore = _store.getStore;
19 | exports.mapState = _helpers.mapState;
20 | exports.mapActions = _helpers.mapActions;
--------------------------------------------------------------------------------
/dist/npm/wepy-redux/lib/store.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | exports.__esModule = true;
4 | exports.getStore = getStore;
5 | exports.setStore = setStore;
6 |
7 |
8 | var store = null;
9 |
10 | function getStore() {
11 | return store;
12 | }
13 |
14 | function setStore(s) {
15 | store = s;
16 | }
--------------------------------------------------------------------------------
/dist/npm/wepy/lib/event.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
8 |
9 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10 |
11 | var _class = function () {
12 | function _class(name, source, type) {
13 | _classCallCheck(this, _class);
14 |
15 | this.active = true;
16 |
17 |
18 | this.name = name;
19 | this.source = source;
20 | this.type = type;
21 | }
22 |
23 | _createClass(_class, [{
24 | key: "$destroy",
25 | value: function $destroy() {
26 | this.active = false;
27 | }
28 | }, {
29 | key: "$transfor",
30 | value: function $transfor(wxevent) {
31 | var k = 0;
32 | for (k in wxevent) {
33 | this[k] = wxevent[k];
34 | }
35 | }
36 | }]);
37 |
38 | return _class;
39 | }();
40 |
41 | exports.default = _class;
42 | //# sourceMappingURL=event.js.map
--------------------------------------------------------------------------------
/dist/npm/wepy/lib/mixin.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
8 |
9 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10 |
11 | var _class = function () {
12 | function _class() {
13 | _classCallCheck(this, _class);
14 |
15 | this.data = {};
16 | this.components = {};
17 | this.methods = {};
18 | this.events = {};
19 | }
20 |
21 | _createClass(_class, [{
22 | key: '$init',
23 | value: function $init(parent) {
24 | var _this = this;
25 |
26 | var k = void 0;
27 |
28 | Object.getOwnPropertyNames(this).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(this))).forEach(function (k) {
29 | if (k[0] + k[1] !== 'on' && k !== 'constructor') {
30 | if (!parent[k]) parent[k] = _this[k];
31 | }
32 | });
33 |
34 | ['data', 'events', 'components'].forEach(function (item) {
35 | Object.getOwnPropertyNames(_this[item]).forEach(function (k) {
36 | if (k !== 'init' && !parent[item][k]) parent[item][k] = _this[item][k];
37 | });
38 | });
39 | }
40 | }]);
41 |
42 | return _class;
43 | }();
44 |
45 | exports.default = _class;
46 | //# sourceMappingURL=mixin.js.map
--------------------------------------------------------------------------------
/dist/npm/wepy/lib/native.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.default = {};
7 | //# sourceMappingURL=native.js.map
--------------------------------------------------------------------------------
/dist/npm/wepy/lib/wepy.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _app = require('./app.js');
8 |
9 | var _app2 = _interopRequireDefault(_app);
10 |
11 | var _page = require('./page.js');
12 |
13 | var _page2 = _interopRequireDefault(_page);
14 |
15 | var _component = require('./component.js');
16 |
17 | var _component2 = _interopRequireDefault(_component);
18 |
19 | var _event = require('./event.js');
20 |
21 | var _event2 = _interopRequireDefault(_event);
22 |
23 | var _base = require('./base.js');
24 |
25 | var _base2 = _interopRequireDefault(_base);
26 |
27 | var _util = require('./util.js');
28 |
29 | var _util2 = _interopRequireDefault(_util);
30 |
31 | var _mixin = require('./mixin.js');
32 |
33 | var _mixin2 = _interopRequireDefault(_mixin);
34 |
35 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
36 |
37 | exports.default = {
38 | event: _event2.default,
39 | app: _app2.default,
40 | component: _component2.default,
41 | page: _page2.default,
42 | mixin: _mixin2.default,
43 |
44 | $createApp: _base2.default.$createApp,
45 | $createPage: _base2.default.$createPage,
46 |
47 | $isEmpty: _util2.default.$isEmpty,
48 | $isEqual: _util2.default.$isEqual,
49 | $isDeepEqual: _util2.default.$isDeepEqual,
50 | $has: _util2.default.$has,
51 | $extend: _util2.default.$extend,
52 | $isPlainObject: _util2.default.$isPlainObject,
53 | $copy: _util2.default.$copy
54 | };
55 | //# sourceMappingURL=wepy.js.map
--------------------------------------------------------------------------------
/dist/pages/about/about.json:
--------------------------------------------------------------------------------
1 | {"navigationBarTitleText":"关于我"}
--------------------------------------------------------------------------------
/dist/pages/about/about.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{item.name}}
6 | {{item.job}}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | {{item.address}}
15 | {{item.mail}}
16 | {{item.github}}
17 | {{item.blog}}
18 |
19 |
20 | {{item.Motto}}
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | {{item.music.name}}
29 | {{musicTime || "00:00"}}
30 |
31 | {{item.music.author}}
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/dist/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {"navigationBarTitleText":"赛事直播"}
--------------------------------------------------------------------------------
/dist/pages/index/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{list.cur_date}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | {{list.visitscore}}
22 | {{list.visitteamname}}
23 |
24 |
25 | {{list.match_status || list.time}}{{list.match_time}}
26 |
27 |
28 | {{list.homescore }}
29 | {{list.hometeamname}}
30 |
31 |
32 |
33 |
34 | 战报 {{list.title}}
35 |
36 |
37 |
38 |
39 |
40 |
41 | 暂无数据
42 |
43 |
44 |
--------------------------------------------------------------------------------
/dist/pages/news_info/news_info.json:
--------------------------------------------------------------------------------
1 | {"navigationBarTitleText":"NBA资讯"}
--------------------------------------------------------------------------------
/dist/pages/news_info/news_info.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{item.title}}
6 | {{item.ptime}}
7 |
8 |
9 |
10 |
24 |
--------------------------------------------------------------------------------
/dist/pages/news_info/news_info.wxss:
--------------------------------------------------------------------------------
1 | text,
2 | view {
3 | -webkit-box-sizing: border-box;
4 | box-sizing: border-box;
5 | }
6 | .article {
7 | -webkit-box-sizing: border-box;
8 | box-sizing: border-box;
9 | padding: 20rpx 30rpx;
10 | width: 100%;
11 | }
12 | .article .title {
13 | font-size: 36rpx;
14 | display: block;
15 | border-bottom: 1px solid #e3e3e3;
16 | padding-bottom: 8px;
17 | margin-bottom: 8px;
18 | font-weight: 700;
19 | }
20 | .ptime {
21 | font-size: 24rpx;
22 | color: #666;
23 | padding-top: 3px;
24 | font-weight: 400;
25 | }
26 | .wxParse {
27 | font-size: 28rpx;
28 | color: #333;
29 | }
30 | .wxParse image {
31 | width: 100% !important;
32 | }
33 | .comment-wrap {
34 | border-top: 10px solid #f5f5f5;
35 | }
36 | .comment-wrap .title {
37 | font-size: 28rpx;
38 | border-left: 3px solid #00aa98;
39 | padding-left: 10px;
40 | margin: 5px;
41 | }
42 | .comment-item {
43 | -webkit-box-sizing: border-box;
44 | box-sizing: border-box;
45 | width: 100%;
46 | padding: 15rpx 30rpx;
47 | border-bottom: 1rpx solid #e3e3e3;
48 | float: left;
49 | }
50 | .comment-item .left {
51 | width: 80rpx;
52 | }
53 | .comment-item .left image {
54 | width: 60rpx;
55 | height: 60rpx;
56 | border-radius: 50%;
57 | border: 1rpx solid #e3e3e3;
58 | }
59 | .comment-item .right {
60 | float: left;
61 | width: 610rpx;
62 | font-size: 28rpx;
63 | }
64 | .comment-item .right .user-name {
65 | color: #00aa98;
66 | }
67 | .comment-item .right .time {
68 | font-size: 24rpx;
69 | color: #666;
70 | padding: 3px 0;
71 | }
72 | .comment-item .right .content {
73 | font-size: 26rpx;
74 | }
75 | .comment-item .right .address {
76 | font-size: 24rpx;
77 | color: #666;
78 | padding: 3px 0;
79 | }
80 |
--------------------------------------------------------------------------------
/dist/pages/news_list/news_list.json:
--------------------------------------------------------------------------------
1 | {"navigationBarTitleText":"NBA资讯"}
--------------------------------------------------------------------------------
/dist/pages/news_list/news_list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | {{list.title}}
11 |
12 | {{list.ptime}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 暂无资讯数据
23 |
24 |
--------------------------------------------------------------------------------
/dist/pages/news_list/news_list.wxss:
--------------------------------------------------------------------------------
1 | .news-list {
2 | width: 100%;
3 | -webkit-box-sizing: border-box;
4 | box-sizing: border-box;
5 | padding: 20rpx 30rpx;
6 | border-bottom: 1rpx solid #e3e3e3;
7 | }
8 | .list-img {
9 | margin-right: 30rpx;
10 | }
11 | .list-img image {
12 | width: 185rpx;
13 | height: 140rpx;
14 | }
15 | .news-info {
16 | font-size: 30rpx;
17 | padding-bottom: 2px;
18 | }
19 | .news-info .date {
20 | font-size: 24rpx;
21 | height: 60rpx;
22 | line-height: 60rpx;
23 | }
24 | .comment-coount {
25 | padding: 0 40rpx 0 10rpx;
26 | height: 60rpx;
27 | color: #666;
28 | background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFKElEQVRoQ81a61XcOBSW5AISKlhSQTDS/5AKMlSwpIKFCgIVLKkgkwp2qCDDf+sYKshsBTspwL57Ph/JR7qWX5NhGP/hANbV/e77YSn28JRleVpV1Qcp5RkRneGnEOJtSJqInoQQGynlk5RyfX5+/riHq4XclYhj+pOU8loIcboLHSJaZVm2zPP8YZfzODMbABiv6/qLEOJq10sT5zZEdGuM+T6X5iwA1lowfjtyyTMRNaYSvAdzgllBU38MnN8opT7neb6eCmQSgLIsz6qq+uZsm9P+VwixUkqtplzsNHhBRAsp5aceRu+11jdTQIwCsNbCVP7mTimEAOO3WuvllItS75Rl+bau62siupZSvuFOn2XZxzzPt0P0BwE45r8xwr/guL/DOGcIQKqqWiY0ApO6zPM8NMfoeC+AFPNCiEel1GJMKrtqpCiKhRACQEJtbJVSeZ7nmxTdJIAeyX83xuwz8iRxwt/quoZZvvcvIIf0mVMHgCPwg9n8ndZ6LPrsKvjOOecbiEQhiLUx5iN/OQLgbPFHGG2I6CCS7/ELhOPQnDqCjABYayFlxHr/PGqtL/Ym2pmEnDWUwbGOP7QAXHz+GdjdryzLTl/KYadisdaiVEEYbx6UH8aYS/97C6AoCnj/nwHhz/sMlVMZTr1nrUUYbf1BKfXOR6UGAJc+kpTWeqcC7XcY7TtbluVFXdcILF4LrV82ALiahBBHI33PtLUWUemD/10pdQLz9gBg+17iRyX9AAByUFgVNEKWCfP5qrWG4xzdUxTF1odVInowxiwkz7pKKRRQk8vZQ6IsimIV1EtbrfUJANwLIf7yjGitRyvUQzId3sV9FTUSAITO8ay1RuNxlE8iGl0CwH++7vF2Nca9qxobrWVZdpcyuaIo8H9Ul1v3TlQSu3rnC4YA7h10YoO1vzsDfv1zBwAU/mGsaONSwFnuN4mwjBIAyadlkJsuKk5jTD4mPM7vbACJjI07oyKLx2zHVJRbGCPNK67u721eXM6KBD4bQKLgA90brTWCQfOwaOGZi6KbtRYNStTg++Q0pIWUBkJCo9Wns0NIyV/+rJS6CM3DDQHWPGaHjMGPpJT/zDHfPg2EUWgUAIi4vqEps40xq5TEHNCFUmrTl1dcEsU766G+19NPlNc3PIxutNbvxhzptf7PAwiCBwBETUxYqr4Wo333Jng9QS0UlarHWIkGwaEM2t2m6AQADJfa5DA1mR1aO31FZ1P38LB3jGaUMJ8mLHsAO4W0Q2nBWQl6Fr9zaHuWtvJkiaWT+g/FbOqeRPJsM38IIIpGvPt/LQDO9jFaaaRPRNG0hM+FovR+DM1NURQYtIWzqahs4ZM53v1PqhBfSjsJ0+n0K53uy1rbNvhQlzEmWta9FLOcbmrAnKpWuQaw/wqnc68yF+0Z7Uem4wFzH+BjvMu+Yu2lNJHaww0NmDmAaHh0yAbfrW2xh4uGyWPT8XC4O1hS+L1w0Od+3cf4xSUp9M/QPl+Oj5pwmAc6ky+l1FNd1xj4ojnvzEqJCBpbZln2MNaQc5Nz8R20O4y7d5M2z+mE0+lwaDTbxJH4/GcEUspnDgjNCBG9ISK/Yu0b36DDu5rS4IDJUAPteGU293s4gJAtpcTatu2tp5D143XeE0RnQRzLbHykgYU2tu5VVV2xfcKU+1LvYN+8VErdzzXDVgPOQfEVSbiPGt3A+54WZjGwde9jevJ2f0gyYRTCehOOjOUyPhtI7mWHiLlpxGnPJwmocJtPbnah3Xfv/yUXSzP3Ibl2AAAAAElFTkSuQmCC') center right 3px no-repeat;
29 | background-size: 28rpx;
30 | text-align: right;
31 | }
32 |
--------------------------------------------------------------------------------
/dist/pages/player_detail/player_detail.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{list.cnname}}
7 |
8 | {{list.position}}({{list.number}})/ {{list.teamname}}
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{list.pointsPG}} 得分
16 |
17 |
18 | {{list.reboundsPG}} 篮板
19 |
20 |
21 | {{list.assistsPG}} 助攻
22 |
23 |
24 | {{list.stealsPG}} 抢断
25 |
26 |
27 |
28 |
29 | 基本信息
30 |
31 | 生日{{list.birthdate}}
32 |
33 |
34 | 出生地{{list.birthplace || "-"}}
35 |
36 |
37 | 薪金{{list.yearsalary || "-"}}
38 |
39 |
40 | 身高/体重{{list.height}}/{{list.weight}}
41 |
42 |
43 | 选秀{{list.showing}}
44 |
45 |
46 |
47 |
48 | 赛季数据
49 |
50 | {{list.games}} 出场数
51 |
52 |
53 | {{list.gamesStarted}} 首发次
54 |
55 |
56 | {{list.minutesPG}} 时间
57 |
58 |
59 | {{fgPCT}} 投篮
60 |
61 |
62 | {{threesPCT}} 三分
63 |
64 |
65 | {{ftPCT}} 罚球
66 |
67 |
68 | {{list.offensiveReboundsPG}} 前篮板
69 |
70 |
71 | {{list.defensiveReboundsPG}} 后篮板
72 |
73 |
74 | {{list.stealsPG}} 抢断
75 |
76 |
77 |
--------------------------------------------------------------------------------
/dist/pages/player_detail/player_detail.wxss:
--------------------------------------------------------------------------------
1 | view,
2 | text {
3 | -webkit-box-sizing: border-box;
4 | box-sizing: border-box;
5 | }
6 | .player-info {
7 | width: 100%;
8 | float: left;
9 | padding: 20rpx;
10 | padding-bottom: 0;
11 | }
12 | .player-logo {
13 | width: 290rpx;
14 | height: 200rpx;
15 | float: left;
16 | }
17 | .player-name {
18 | font-size: 28rpx;
19 | padding-top: 30rpx;
20 | }
21 | .p-name {
22 | font-size: 36rpx;
23 | display: block;
24 | font-weight: 700;
25 | }
26 | .player-data {
27 | border-top: 1px solid #e3e3e3;
28 | border-bottom: 1px solid #e3e3e3;
29 | height: 100rpx;
30 | float: left;
31 | width: 100%;
32 | padding: 5px 0;
33 | }
34 | .player-data view {
35 | width: 25%;
36 | float: left;
37 | border-right: 1px solid #e3e3e3;
38 | -webkit-box-sizing: border-box;
39 | box-sizing: border-box;
40 | text-align: center;
41 | line-height: 40rpx;
42 | font-size: 28rpx;
43 | color: #666;
44 | }
45 | .player-data view text {
46 | display: block;
47 | font-size: 36rpx;
48 | color: #333;
49 | }
50 | .base-info-title {
51 | background: #ebecef;
52 | float: left;
53 | width: 100%;
54 | font-size: 32rpx;
55 | padding: 20rpx;
56 | -webkit-box-sizing: border-box;
57 | box-sizing: border-box;
58 | }
59 | .base-info-item {
60 | width: 50%;
61 | float: left;
62 | font-size: 28rpx;
63 | padding: 10rpx 20rpx;
64 | -webkit-box-sizing: border-box;
65 | box-sizing: border-box;
66 | border-bottom: 1px solid #e3e3e3;
67 | }
68 | .base-info-item-title {
69 | display: block;
70 | font-size: 30rpx;
71 | color: #666;
72 | padding-bottom: 1px;
73 | }
74 | .gird-9-item {
75 | width: 33.333%;
76 | height: 120rpx;
77 | float: left;
78 | text-align: center;
79 | font-size: 28rpx;
80 | border-bottom: 1px solid #e3e3e3;
81 | border-right: 1px solid #e3e3e3;
82 | -webkit-box-sizing: border-box;
83 | box-sizing: border-box;
84 | padding: 20rpx 0;
85 | }
86 | .gird-9-item text {
87 | display: block;
88 | font-size: 36rpx;
89 | color: #333;
90 | }
91 |
--------------------------------------------------------------------------------
/dist/pages/stats/stats.json:
--------------------------------------------------------------------------------
1 | {"navigationBarTitleText":"数据统计"}
--------------------------------------------------------------------------------
/dist/pages/stats/stats.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 得分
5 | 篮板
6 | 助攻
7 | 抢断
8 | 盖帽
9 | 失误
10 | 三分
11 | 犯规
12 | 罚球
13 | 神投
14 |
15 |
16 |
21 |
22 |
23 | {{index+1}}.{{item.playername}}
24 | {{item.avgdata}}
25 | {{item.totaldata}}
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/dist/pages/stats/stats.wxss:
--------------------------------------------------------------------------------
1 | .stats-nav {
2 | width: 100%;
3 | }
4 | .stats-nav text {
5 | display: block;
6 | width: 20%;
7 | float: left;
8 | text-align: center;
9 | font-size: 28rpx;
10 | padding: 20rpx 0;
11 | color: #333;
12 | }
13 | .table {
14 | width: 100%;
15 | float: left;
16 | }
17 | .header {
18 | width: 100%;
19 | height: 70rpx;
20 | background: #f5f5f5;
21 | font-size: 28rpx;
22 | }
23 | .header text {
24 | display: block;
25 | width: 33.33%;
26 | float: left;
27 | text-align: center;
28 | line-height: 70rpx;
29 | }
30 | .tbody {
31 | font-size: 28rpx;
32 | }
33 | .tbody text {
34 | display: block;
35 | width: 33.33%;
36 | float: left;
37 | text-align: center;
38 | line-height: 70rpx;
39 | height: 70rpx;
40 | overflow: hidden;
41 | }
42 | .tbody text:first-child,
43 | .header text:first-child {
44 | text-align: left;
45 | -webkit-box-sizing: border-box;
46 | box-sizing: border-box;
47 | padding-left: 20rpx;
48 | overflow: hidden;
49 | }
50 | text.active {
51 | color: #00aa98;
52 | }
53 | .tbody navigator {
54 | display: block;
55 | height: 70rpx;
56 | }
57 | .f5f5f5 {
58 | background: #f5f5f5;
59 | }
60 |
--------------------------------------------------------------------------------
/dist/pages/team_rank/team_rank.json:
--------------------------------------------------------------------------------
1 | {"navigationBarTitleText":"球队战绩"}
--------------------------------------------------------------------------------
/dist/pages/team_rank/team_rank.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 西部排名
5 | 东部排名
6 |
7 |
8 |
9 |
10 | 球队
11 | 胜场
12 | 负场
13 | 胜率
14 | 场均差
15 |
16 |
17 |
18 |
19 | {{index+1}}.{{item.name}}
20 | {{item.wins}}
21 | {{item.losses}}
22 | {{item['wining-percentage']}}%
23 | {{item['games-back'] }}
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | 球队
32 | 胜场
33 | 负场
34 | 胜率
35 | 场均差
36 |
37 |
38 |
39 |
40 | {{index+1}}.{{item.name}}
41 | {{item.wins}}
42 | {{item.losses}}
43 | {{item['wining-percentage']}}%
44 | {{item['games-back'] }}
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/dist/pages/team_rank/team_rank.wxss:
--------------------------------------------------------------------------------
1 | .swiper-tab {
2 | width: 100%;
3 | border-bottom: 1rpx solid #e3e3e3;
4 | text-align: center;
5 | line-height: 80rpx;
6 | }
7 | .swiper-tab-list {
8 | font-size: 30rpx;
9 | display: inline-block;
10 | width: 50%;
11 | color: #777;
12 | }
13 | .on {
14 | color: #00aa98;
15 | }
16 | .swiper-box {
17 | display: block;
18 | width: 100%;
19 | -webkit-box-sizing: border-box;
20 | box-sizing: border-box;
21 | height: auto;
22 | min-height: 100%;
23 | float: left;
24 | }
25 | .swiper-item {
26 | width: 100%;
27 | height: 100%;
28 | display: none;
29 | -webkit-box-sizing: border-box;
30 | box-sizing: border-box;
31 | }
32 | view.active {
33 | display: block;
34 | }
35 | .t-head {
36 | background: #f2f7fc;
37 | font-size: 30rpx;
38 | height: 80rpx;
39 | line-height: 80rpx;
40 | color: #444;
41 | }
42 | .t-head text,
43 | .t-body .team-item text {
44 | width: 20%;
45 | display: block;
46 | float: left;
47 | text-align: center;
48 | }
49 | .t-body .team-item {
50 | font-size: 28rpx;
51 | height: 65rpx;
52 | line-height: 65rpx;
53 | border-top: 1rpx solid #e3e3e3;
54 | -webkit-box-sizing: border-box;
55 | box-sizing: border-box;
56 | padding: 0 30rpx;
57 | }
58 | .t-body .team-item text:first-child,
59 | .t-head text:first-child {
60 | text-align: left;
61 | font-size: 24rpx;
62 | }
63 |
--------------------------------------------------------------------------------
/dist/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件。",
3 | "setting": {
4 | "urlCheck": true,
5 | "es6": false,
6 | "postcss": false,
7 | "minified": false,
8 | "newFeature": true
9 | },
10 | "compileType": "miniprogram",
11 | "libVersion": "1.9.94",
12 | "appid": "touristappid",
13 | "projectname": "wepy-nba",
14 | "condition": {
15 | "search": {
16 | "current": -1,
17 | "list": []
18 | },
19 | "conversation": {
20 | "current": -1,
21 | "list": []
22 | },
23 | "plugin": {
24 | "current": -1,
25 | "list": []
26 | },
27 | "game": {
28 | "currentL": -1,
29 | "list": []
30 | },
31 | "miniprogram": {
32 | "current": -1,
33 | "list": []
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/dist/store/actions/counter.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.asyncInc = undefined;
7 |
8 | var _counter = require('./../types/counter.js');
9 |
10 | var _reduxActions = require('./../../npm/redux-actions/lib/index.js');
11 |
12 | var asyncInc = exports.asyncInc = (0, _reduxActions.createAction)(_counter.ASYNC_INCREMENT, function () {
13 | return new Promise(function (resolve) {
14 | setTimeout(function () {
15 | resolve(1);
16 | }, 1000);
17 | });
18 | });
19 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvdW50ZXIuanMiXSwibmFtZXMiOlsiYXN5bmNJbmMiLCJQcm9taXNlIiwic2V0VGltZW91dCIsInJlc29sdmUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFFTyxJQUFNQSw4QkFBVywwREFBOEIsWUFBTTtBQUMxRCxTQUFPLElBQUlDLE9BQUosQ0FBWSxtQkFBVztBQUM1QkMsZUFBVyxZQUFNO0FBQ2ZDLGNBQVEsQ0FBUjtBQUNELEtBRkQsRUFFRyxJQUZIO0FBR0QsR0FKTSxDQUFQO0FBS0QsQ0FOdUIsQ0FBakIiLCJmaWxlIjoiY291bnRlci5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFTWU5DX0lOQ1JFTUVOVCB9IGZyb20gJy4uL3R5cGVzL2NvdW50ZXInXG5pbXBvcnQgeyBjcmVhdGVBY3Rpb24gfSBmcm9tICdyZWR1eC1hY3Rpb25zJ1xuXG5leHBvcnQgY29uc3QgYXN5bmNJbmMgPSBjcmVhdGVBY3Rpb24oQVNZTkNfSU5DUkVNRU5ULCAoKSA9PiB7XG4gIHJldHVybiBuZXcgUHJvbWlzZShyZXNvbHZlID0+IHtcbiAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgIHJlc29sdmUoMSlcbiAgICB9LCAxMDAwKVxuICB9KVxufSkiXX0=
--------------------------------------------------------------------------------
/dist/store/actions/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _counter = require('./counter.js');
8 |
9 | Object.keys(_counter).forEach(function (key) {
10 | if (key === "default" || key === "__esModule") return;
11 | Object.defineProperty(exports, key, {
12 | enumerable: true,
13 | get: function get() {
14 | return _counter[key];
15 | }
16 | });
17 | });
18 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb3VudGVyJyJdfQ==
--------------------------------------------------------------------------------
/dist/store/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.default = configStore;
7 |
8 | var _redux = require('./../npm/redux/lib/index.js');
9 |
10 | var _reduxPromise = require('./../npm/redux-promise/lib/index.js');
11 |
12 | var _reduxPromise2 = _interopRequireDefault(_reduxPromise);
13 |
14 | var _reducers = require('./reducers/index.js');
15 |
16 | var _reducers2 = _interopRequireDefault(_reducers);
17 |
18 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19 |
20 | function configStore() {
21 | var store = (0, _redux.createStore)(_reducers2.default, (0, _redux.applyMiddleware)(_reduxPromise2.default));
22 | return store;
23 | }
24 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbImNvbmZpZ1N0b3JlIiwic3RvcmUiXSwibWFwcGluZ3MiOiI7Ozs7O2tCQUl3QkEsVzs7QUFKeEI7O0FBQ0E7Ozs7QUFDQTs7Ozs7O0FBRWUsU0FBU0EsV0FBVCxHQUF3QjtBQUNyQyxNQUFNQyxRQUFRLDRDQUF5QixtREFBekIsQ0FBZDtBQUNBLFNBQU9BLEtBQVA7QUFDRCIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNyZWF0ZVN0b3JlLCBhcHBseU1pZGRsZXdhcmUgfSBmcm9tICdyZWR1eCdcbmltcG9ydCBwcm9taXNlTWlkZGxld2FyZSBmcm9tICdyZWR1eC1wcm9taXNlJ1xuaW1wb3J0IHJvb3RSZWR1Y2VyIGZyb20gJy4vcmVkdWNlcnMnXG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGNvbmZpZ1N0b3JlICgpIHtcbiAgY29uc3Qgc3RvcmUgPSBjcmVhdGVTdG9yZShyb290UmVkdWNlciwgYXBwbHlNaWRkbGV3YXJlKHByb21pc2VNaWRkbGV3YXJlKSlcbiAgcmV0dXJuIHN0b3JlXG59Il19
--------------------------------------------------------------------------------
/dist/store/reducers/counter.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _handleActions;
8 |
9 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
10 |
11 | var _reduxActions = require('./../../npm/redux-actions/lib/index.js');
12 |
13 | var _counter = require('./../types/counter.js');
14 |
15 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16 |
17 | exports.default = (0, _reduxActions.handleActions)((_handleActions = {}, _defineProperty(_handleActions, _counter.INCREMENT, function (state) {
18 | return _extends({}, state, {
19 | num: state.num + 1
20 | });
21 | }), _defineProperty(_handleActions, _counter.DECREMENT, function (state) {
22 | return _extends({}, state, {
23 | num: state.num - 1
24 | });
25 | }), _defineProperty(_handleActions, _counter.ASYNC_INCREMENT, function (state, action) {
26 | return _extends({}, state, {
27 | asyncNum: state.asyncNum + action.payload
28 | });
29 | }), _handleActions), {
30 | num: 0,
31 | asyncNum: 0
32 | });
33 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvdW50ZXIuanMiXSwibmFtZXMiOlsic3RhdGUiLCJudW0iLCJhY3Rpb24iLCJhc3luY051bSIsInBheWxvYWQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7OztrQkFFZSxxSEFDQUEsS0FEQSxFQUNPO0FBQ2xCLHNCQUNLQSxLQURMO0FBRUVDLFNBQUtELE1BQU1DLEdBQU4sR0FBWTtBQUZuQjtBQUlELENBTlksaUVBT0FELEtBUEEsRUFPTztBQUNsQixzQkFDS0EsS0FETDtBQUVFQyxTQUFLRCxNQUFNQyxHQUFOLEdBQVk7QUFGbkI7QUFJRCxDQVpZLHVFQWFNRCxLQWJOLEVBYWFFLE1BYmIsRUFhcUI7QUFDaEMsc0JBQ0tGLEtBREw7QUFFRUcsY0FBVUgsTUFBTUcsUUFBTixHQUFpQkQsT0FBT0U7QUFGcEM7QUFJRCxDQWxCWSxvQkFtQlo7QUFDREgsT0FBSyxDQURKO0FBRURFLFlBQVU7QUFGVCxDQW5CWSxDIiwiZmlsZSI6ImNvdW50ZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBoYW5kbGVBY3Rpb25zIH0gZnJvbSAncmVkdXgtYWN0aW9ucydcbmltcG9ydCB7IElOQ1JFTUVOVCwgREVDUkVNRU5ULCBBU1lOQ19JTkNSRU1FTlQgfSBmcm9tICcuLi90eXBlcy9jb3VudGVyJ1xuXG5leHBvcnQgZGVmYXVsdCBoYW5kbGVBY3Rpb25zKHtcbiAgW0lOQ1JFTUVOVF0gKHN0YXRlKSB7XG4gICAgcmV0dXJuIHtcbiAgICAgIC4uLnN0YXRlLFxuICAgICAgbnVtOiBzdGF0ZS5udW0gKyAxXG4gICAgfVxuICB9LFxuICBbREVDUkVNRU5UXSAoc3RhdGUpIHtcbiAgICByZXR1cm4ge1xuICAgICAgLi4uc3RhdGUsXG4gICAgICBudW06IHN0YXRlLm51bSAtIDFcbiAgICB9XG4gIH0sXG4gIFtBU1lOQ19JTkNSRU1FTlRdIChzdGF0ZSwgYWN0aW9uKSB7XG4gICAgcmV0dXJuIHtcbiAgICAgIC4uLnN0YXRlLFxuICAgICAgYXN5bmNOdW06IHN0YXRlLmFzeW5jTnVtICsgYWN0aW9uLnBheWxvYWRcbiAgICB9XG4gIH1cbn0sIHtcbiAgbnVtOiAwLFxuICBhc3luY051bTogMFxufSkiXX0=
--------------------------------------------------------------------------------
/dist/store/reducers/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _redux = require('./../../npm/redux/lib/index.js');
8 |
9 | var _counter = require('./counter.js');
10 |
11 | var _counter2 = _interopRequireDefault(_counter);
12 |
13 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14 |
15 | exports.default = (0, _redux.combineReducers)({
16 | counter: _counter2.default
17 | });
18 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbImNvdW50ZXIiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBOztBQUNBOzs7Ozs7a0JBRWUsNEJBQWdCO0FBQzdCQTtBQUQ2QixDQUFoQixDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY29tYmluZVJlZHVjZXJzIH0gZnJvbSAncmVkdXgnO1xuaW1wb3J0IGNvdW50ZXIgZnJvbSAnLi9jb3VudGVyJztcblxuZXhwb3J0IGRlZmF1bHQgY29tYmluZVJlZHVjZXJzKHtcbiAgY291bnRlclxufSk7XG4iXX0=
--------------------------------------------------------------------------------
/dist/store/reducers/nab_schedule.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _reduxActions = require('./../../npm/redux-actions/lib/index.js');
8 |
9 | // import { INCREMENT, DECREMENT, ASYNC_INCREMENT } from '../types/counter';
10 |
11 | exports.default = (0, _reduxActions.handleActions)({}, {
12 | isShow: false,
13 | list: []
14 | });
15 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5hYl9zY2hlZHVsZS5qcyJdLCJuYW1lcyI6WyJpc1Nob3ciLCJsaXN0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7QUFDQTs7a0JBRWUsaUNBQ2IsRUFEYSxFQUViO0FBQ0VBLFVBQVEsS0FEVjtBQUVFQyxRQUFNO0FBRlIsQ0FGYSxDIiwiZmlsZSI6Im5hYl9zY2hlZHVsZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGhhbmRsZUFjdGlvbnMgfSBmcm9tICdyZWR1eC1hY3Rpb25zJztcclxuLy8gaW1wb3J0IHsgSU5DUkVNRU5ULCBERUNSRU1FTlQsIEFTWU5DX0lOQ1JFTUVOVCB9IGZyb20gJy4uL3R5cGVzL2NvdW50ZXInO1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgaGFuZGxlQWN0aW9ucyhcclxuICB7fSxcclxuICB7XHJcbiAgICBpc1Nob3c6IGZhbHNlLFxyXG4gICAgbGlzdDogW11cclxuICB9XHJcbik7XHJcbiJdfQ==
--------------------------------------------------------------------------------
/dist/store/types/counter.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | var INCREMENT = exports.INCREMENT = 'INCREMENT';
7 |
8 | var DECREMENT = exports.DECREMENT = 'DECREMENT';
9 |
10 | var ASYNC_INCREMENT = exports.ASYNC_INCREMENT = 'ASYNC_INCREMENT';
11 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvdW50ZXIuanMiXSwibmFtZXMiOlsiSU5DUkVNRU5UIiwiREVDUkVNRU5UIiwiQVNZTkNfSU5DUkVNRU5UIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFPLElBQU1BLGdDQUFZLFdBQWxCOztBQUVBLElBQU1DLGdDQUFZLFdBQWxCOztBQUVBLElBQU1DLDRDQUFrQixpQkFBeEIiLCJmaWxlIjoiY291bnRlci5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBJTkNSRU1FTlQgPSAnSU5DUkVNRU5UJ1xuXG5leHBvcnQgY29uc3QgREVDUkVNRU5UID0gJ0RFQ1JFTUVOVCdcblxuZXhwb3J0IGNvbnN0IEFTWU5DX0lOQ1JFTUVOVCA9ICdBU1lOQ19JTkNSRU1FTlQnIl19
--------------------------------------------------------------------------------
/dist/store/types/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | var _counter = require('./counter.js');
8 |
9 | Object.keys(_counter).forEach(function (key) {
10 | if (key === "default" || key === "__esModule") return;
11 | Object.defineProperty(exports, key, {
12 | enumerable: true,
13 | get: function get() {
14 | return _counter[key];
15 | }
16 | });
17 | });
18 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb3VudGVyJyJdfQ==
--------------------------------------------------------------------------------
/dist/utils/formatTime.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | var formatTime = function formatTime(date) {
7 | var year = date.getFullYear();
8 | var month = date.getMonth() + 1;
9 | var day = date.getDate();
10 | var hour = date.getHours();
11 | var minute = date.getMinutes();
12 | var second = date.getSeconds();
13 |
14 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':');
15 | };
16 |
17 | var formatDate = function formatDate(date) {
18 | var year = date.getFullYear();
19 | var month = date.getMonth() + 1;
20 | var day = date.getDate();
21 | var hour = date.getHours();
22 | var minute = date.getMinutes();
23 | var second = date.getSeconds();
24 |
25 | return [year, month, day].map(formatNumber).join('-');
26 | };
27 |
28 | var formatNumber = function formatNumber(n) {
29 | n = n.toString();
30 | return n[1] ? n : '0' + n;
31 | };
32 |
33 | exports.formatTime = formatTime;
34 | exports.formatDate = formatDate;
35 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvcm1hdFRpbWUuanMiXSwibmFtZXMiOlsiZm9ybWF0VGltZSIsInllYXIiLCJkYXRlIiwiZ2V0RnVsbFllYXIiLCJtb250aCIsImdldE1vbnRoIiwiZGF5IiwiZ2V0RGF0ZSIsImhvdXIiLCJnZXRIb3VycyIsIm1pbnV0ZSIsImdldE1pbnV0ZXMiLCJzZWNvbmQiLCJnZXRTZWNvbmRzIiwibWFwIiwiZm9ybWF0TnVtYmVyIiwiam9pbiIsImZvcm1hdERhdGUiLCJuIiwidG9TdHJpbmciXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsSUFBTUEsYUFBYSxTQUFiQSxVQUFhLE9BQVE7QUFDekIsTUFBTUMsT0FBT0MsS0FBS0MsV0FBTCxFQUFiO0FBQ0EsTUFBTUMsUUFBUUYsS0FBS0csUUFBTCxLQUFrQixDQUFoQztBQUNBLE1BQU1DLE1BQU1KLEtBQUtLLE9BQUwsRUFBWjtBQUNBLE1BQU1DLE9BQU9OLEtBQUtPLFFBQUwsRUFBYjtBQUNBLE1BQU1DLFNBQVNSLEtBQUtTLFVBQUwsRUFBZjtBQUNBLE1BQU1DLFNBQVNWLEtBQUtXLFVBQUwsRUFBZjs7QUFFQSxTQUNFLENBQUNaLElBQUQsRUFBT0csS0FBUCxFQUFjRSxHQUFkLEVBQW1CUSxHQUFuQixDQUF1QkMsWUFBdkIsRUFBcUNDLElBQXJDLENBQTBDLEdBQTFDLElBQ0EsR0FEQSxHQUVBLENBQUNSLElBQUQsRUFBT0UsTUFBUCxFQUFlRSxNQUFmLEVBQXVCRSxHQUF2QixDQUEyQkMsWUFBM0IsRUFBeUNDLElBQXpDLENBQThDLEdBQTlDLENBSEY7QUFLRCxDQWJEOztBQWVBLElBQU1DLGFBQWEsU0FBYkEsVUFBYSxPQUFRO0FBQ3pCLE1BQU1oQixPQUFPQyxLQUFLQyxXQUFMLEVBQWI7QUFDQSxNQUFNQyxRQUFRRixLQUFLRyxRQUFMLEtBQWtCLENBQWhDO0FBQ0EsTUFBTUMsTUFBTUosS0FBS0ssT0FBTCxFQUFaO0FBQ0EsTUFBTUMsT0FBT04sS0FBS08sUUFBTCxFQUFiO0FBQ0EsTUFBTUMsU0FBU1IsS0FBS1MsVUFBTCxFQUFmO0FBQ0EsTUFBTUMsU0FBU1YsS0FBS1csVUFBTCxFQUFmOztBQUVBLFNBQU8sQ0FBQ1osSUFBRCxFQUFPRyxLQUFQLEVBQWNFLEdBQWQsRUFBbUJRLEdBQW5CLENBQXVCQyxZQUF2QixFQUFxQ0MsSUFBckMsQ0FBMEMsR0FBMUMsQ0FBUDtBQUNELENBVEQ7O0FBV0EsSUFBTUQsZUFBZSxTQUFmQSxZQUFlLElBQUs7QUFDeEJHLE1BQUlBLEVBQUVDLFFBQUYsRUFBSjtBQUNBLFNBQU9ELEVBQUUsQ0FBRixJQUFPQSxDQUFQLEdBQVcsTUFBTUEsQ0FBeEI7QUFDRCxDQUhEOztRQUtTbEIsVSxHQUFBQSxVO1FBQVlpQixVLEdBQUFBLFUiLCJmaWxlIjoiZm9ybWF0VGltZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGZvcm1hdFRpbWUgPSBkYXRlID0+IHtcclxuICBjb25zdCB5ZWFyID0gZGF0ZS5nZXRGdWxsWWVhcigpO1xyXG4gIGNvbnN0IG1vbnRoID0gZGF0ZS5nZXRNb250aCgpICsgMTtcclxuICBjb25zdCBkYXkgPSBkYXRlLmdldERhdGUoKTtcclxuICBjb25zdCBob3VyID0gZGF0ZS5nZXRIb3VycygpO1xyXG4gIGNvbnN0IG1pbnV0ZSA9IGRhdGUuZ2V0TWludXRlcygpO1xyXG4gIGNvbnN0IHNlY29uZCA9IGRhdGUuZ2V0U2Vjb25kcygpO1xyXG5cclxuICByZXR1cm4gKFxyXG4gICAgW3llYXIsIG1vbnRoLCBkYXldLm1hcChmb3JtYXROdW1iZXIpLmpvaW4oJy8nKSArXHJcbiAgICAnICcgK1xyXG4gICAgW2hvdXIsIG1pbnV0ZSwgc2Vjb25kXS5tYXAoZm9ybWF0TnVtYmVyKS5qb2luKCc6JylcclxuICApO1xyXG59O1xyXG5cclxuY29uc3QgZm9ybWF0RGF0ZSA9IGRhdGUgPT4ge1xyXG4gIGNvbnN0IHllYXIgPSBkYXRlLmdldEZ1bGxZZWFyKCk7XHJcbiAgY29uc3QgbW9udGggPSBkYXRlLmdldE1vbnRoKCkgKyAxO1xyXG4gIGNvbnN0IGRheSA9IGRhdGUuZ2V0RGF0ZSgpO1xyXG4gIGNvbnN0IGhvdXIgPSBkYXRlLmdldEhvdXJzKCk7XHJcbiAgY29uc3QgbWludXRlID0gZGF0ZS5nZXRNaW51dGVzKCk7XHJcbiAgY29uc3Qgc2Vjb25kID0gZGF0ZS5nZXRTZWNvbmRzKCk7XHJcblxyXG4gIHJldHVybiBbeWVhciwgbW9udGgsIGRheV0ubWFwKGZvcm1hdE51bWJlcikuam9pbignLScpO1xyXG59O1xyXG5cclxuY29uc3QgZm9ybWF0TnVtYmVyID0gbiA9PiB7XHJcbiAgbiA9IG4udG9TdHJpbmcoKTtcclxuICByZXR1cm4gblsxXSA/IG4gOiAnMCcgKyBuO1xyXG59O1xyXG5cclxuZXhwb3J0IHsgZm9ybWF0VGltZSwgZm9ybWF0RGF0ZSB9O1xyXG4iXX0=
--------------------------------------------------------------------------------
/dist/utils/toFixed.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | var toFixed = function toFixed(param) {
7 | return parseFloat(param * 100).toFixed(1) + '%';
8 | };
9 |
10 | exports.toFixed = toFixed;
11 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRvRml4ZWQuanMiXSwibmFtZXMiOlsidG9GaXhlZCIsInBhcnNlRmxvYXQiLCJwYXJhbSJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxJQUFNQSxVQUFVLFNBQVZBLE9BQVUsUUFBUztBQUN2QixTQUFPQyxXQUFXQyxRQUFRLEdBQW5CLEVBQXdCRixPQUF4QixDQUFnQyxDQUFoQyxJQUFxQyxHQUE1QztBQUNELENBRkQ7O1FBSVNBLE8sR0FBQUEsTyIsImZpbGUiOiJ0b0ZpeGVkLmpzIiwic291cmNlc0NvbnRlbnQiOlsiY29uc3QgdG9GaXhlZCA9IHBhcmFtID0+IHtcclxuICByZXR1cm4gcGFyc2VGbG9hdChwYXJhbSAqIDEwMCkudG9GaXhlZCgxKSArICclJztcclxufTtcclxuXHJcbmV4cG9ydCB7IHRvRml4ZWQgfTtcclxuIl19
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "wepy-nba",
3 | "version": "0.0.1",
4 | "description": "A WePY project",
5 | "main": "dist/app.js",
6 | "scripts": {
7 | "dev": "wepy build --watch",
8 | "build": "cross-env NODE_ENV=production wepy build --no-cache",
9 | "dev:web": "wepy build --output web",
10 | "clean": "find ./dist -maxdepth 1 -not -name 'project.config.json' -not -name 'dist' | xargs rm -rf",
11 | "test": "echo \"Error: no test specified\" && exit 1"
12 | },
13 | "wepy": {
14 | "module-a": false,
15 | "./src/components/list": "./src/components/wepy-list.wpy"
16 | },
17 | "author": "Bobby <944831575@qq.com>",
18 | "license": "MIT",
19 | "dependencies": {
20 | "promise-polyfill": "^7.1.2",
21 | "redux": "^3.7.2",
22 | "redux-actions": "^2.2.1",
23 | "redux-promise": "^0.5.3",
24 | "wepy": "^1.7.1",
25 | "wepy-async-function": "^1.4.4",
26 | "wepy-com-toast": "^1.0.2",
27 | "wepy-redux": "^1.5.3"
28 | },
29 | "devDependencies": {
30 | "babel-eslint": "^7.2.1",
31 | "babel-plugin-transform-class-properties": "^6.24.1",
32 | "babel-plugin-transform-decorators-legacy": "^1.3.4",
33 | "babel-plugin-transform-export-extensions": "^6.22.0",
34 | "babel-plugin-transform-object-rest-spread": "^6.26.0",
35 | "babel-preset-env": "^1.6.1",
36 | "cross-env": "^5.1.3",
37 | "eslint": "^3.18.0",
38 | "eslint-config-standard": "^7.1.0",
39 | "eslint-friendly-formatter": "^2.0.7",
40 | "eslint-plugin-html": "^2.0.1",
41 | "eslint-plugin-promise": "^3.5.0",
42 | "eslint-plugin-standard": "^2.0.1",
43 | "wepy-compiler-babel": "^1.5.1",
44 | "wepy-compiler-less": "^1.3.12",
45 | "wepy-eslint": "^1.5.4"
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "A WePY project",
3 | "setting": {
4 | "urlCheck": true,
5 | "es6": false,
6 | "postcss": false,
7 | "minified": false,
8 | "newFeature": true
9 | },
10 | "compileType": "miniprogram",
11 | "appid": "touristappid",
12 | "projectname": "wepy-nba",
13 | "miniprogramRoot": "./dist",
14 | "condition": {}
15 | }
--------------------------------------------------------------------------------
/src/assets/images/about-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/about-active.png
--------------------------------------------------------------------------------
/src/assets/images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/about.png
--------------------------------------------------------------------------------
/src/assets/images/ball-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/ball-active.png
--------------------------------------------------------------------------------
/src/assets/images/ball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/ball.png
--------------------------------------------------------------------------------
/src/assets/images/news-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/news-active.png
--------------------------------------------------------------------------------
/src/assets/images/news.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/news.png
--------------------------------------------------------------------------------
/src/assets/images/rank-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/rank-active.png
--------------------------------------------------------------------------------
/src/assets/images/rank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/rank.png
--------------------------------------------------------------------------------
/src/assets/images/stats-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/stats-active.png
--------------------------------------------------------------------------------
/src/assets/images/stats.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/images/stats.png
--------------------------------------------------------------------------------
/src/assets/wx.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oOBobbyOo/wepy-nba/39a7a8fefd177a8a023fdd4bef8c3c7e4f96822d/src/assets/wx.gif
--------------------------------------------------------------------------------
/src/index.template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 转 WEB DEMO
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/mixins/test.js:
--------------------------------------------------------------------------------
1 | import wepy from 'wepy'
2 |
3 | export default class testMixin extends wepy.mixin {
4 | data = {
5 | mixin: 'This is mixin data.'
6 | }
7 | methods = {
8 | tap () {
9 | this.mixin = 'mixin data was changed'
10 | console.log('mixin method tap')
11 | }
12 | }
13 |
14 | onShow() {
15 | console.log('mixin onShow')
16 | }
17 |
18 | onLoad() {
19 | console.log('mixin onLoad')
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/pages/index/index.wpy:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{list.cur_date}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | {{list.visitscore}}
22 | {{list.visitteamname}}
23 |
24 |
25 | {{list.match_status || list.time}}{{list.match_time}}
26 |
27 |
28 | {{list.homescore }}
29 | {{list.hometeamname}}
30 |
31 |
32 |
33 |
34 | 战报 {{list.title}}
35 |
36 |
37 |
38 |
39 |
40 |
41 | 暂无数据
42 |
43 |
44 |
45 |
46 |
47 |
100 |
101 |
104 |
--------------------------------------------------------------------------------
/src/pages/news_info/news_info.less:
--------------------------------------------------------------------------------
1 | text,
2 | view {
3 | -webkit-box-sizing: border-box;
4 | box-sizing: border-box;
5 | }
6 |
7 | .article {
8 | -webkit-box-sizing: border-box;
9 | box-sizing: border-box;
10 | padding: 20rpx 30rpx;
11 | width: 100%;
12 | }
13 |
14 | .article .title {
15 | font-size: 36rpx;
16 | display: block;
17 | border-bottom: 1px solid #e3e3e3;
18 | padding-bottom: 8px;
19 | margin-bottom: 8px;
20 | font-weight: 700;
21 | }
22 |
23 | .ptime {
24 | font-size: 24rpx;
25 | color: #666;
26 | padding-top: 3px;
27 | font-weight: 400;
28 | }
29 |
30 | .wxParse {
31 | font-size: 28rpx;
32 | color: #333;
33 | }
34 |
35 | .wxParse image {
36 | width: 100% !important;
37 | }
38 |
39 | .comment-wrap {
40 | border-top: 10px solid #f5f5f5;
41 | }
42 |
43 | .comment-wrap .title {
44 | font-size: 28rpx;
45 | border-left: 3px solid #00aa98;
46 | padding-left: 10px;
47 | margin: 5px;
48 | }
49 |
50 | .comment-item {
51 | -webkit-box-sizing: border-box;
52 | box-sizing: border-box;
53 | width: 100%;
54 | padding: 15rpx 30rpx;
55 | border-bottom: 1rpx solid #e3e3e3;
56 | float: left;
57 | }
58 |
59 | .comment-item .left {
60 | width: 80rpx;
61 | }
62 |
63 | .comment-item .left image {
64 | width: 60rpx;
65 | height: 60rpx;
66 | border-radius: 50%;
67 | border: 1rpx solid #e3e3e3;
68 | }
69 |
70 | .comment-item .right {
71 | float: left;
72 | width: 610rpx;
73 | font-size: 28rpx;
74 | }
75 |
76 | .comment-item .right .user-name {
77 | color: #00aa98;
78 | }
79 |
80 | .comment-item .right .time {
81 | font-size: 24rpx;
82 | color: #666;
83 | padding: 3px 0;
84 | }
85 |
86 | .comment-item .right .content {
87 | font-size: 26rpx;
88 | }
89 |
90 | .comment-item .right .address {
91 | font-size: 24rpx;
92 | color: #666;
93 | padding: 3px 0;
94 | }
95 |
--------------------------------------------------------------------------------
/src/pages/news_info/news_info.wpy:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{item.title}}
6 | {{item.ptime}}
7 |
8 |
9 |
10 |
24 |
25 |
26 |
27 |
80 |
81 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/src/pages/news_list/news_list.less:
--------------------------------------------------------------------------------
1 | .news-list {
2 | width: 100%;
3 | -webkit-box-sizing: border-box;
4 | box-sizing: border-box;
5 | padding: 20rpx 30rpx;
6 | border-bottom: 1rpx solid #e3e3e3;
7 | }
8 |
9 | .list-img {
10 | margin-right: 30rpx;
11 | }
12 |
13 | .list-img image {
14 | width: 185rpx;
15 | height: 140rpx;
16 | }
17 |
18 | .news-info {
19 | font-size: 30rpx;
20 | padding-bottom: 2px;
21 | }
22 |
23 | .news-info .date {
24 | font-size: 24rpx;
25 | height: 60rpx;
26 | line-height: 60rpx;
27 | }
28 |
29 | .comment-coount {
30 | padding: 0 40rpx 0 10rpx;
31 | height: 60rpx;
32 | color: #666;
33 | background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFKElEQVRoQ81a61XcOBSW5AISKlhSQTDS/5AKMlSwpIKFCgIVLKkgkwp2qCDDf+sYKshsBTspwL57Ph/JR7qWX5NhGP/hANbV/e77YSn28JRleVpV1Qcp5RkRneGnEOJtSJqInoQQGynlk5RyfX5+/riHq4XclYhj+pOU8loIcboLHSJaZVm2zPP8YZfzODMbABiv6/qLEOJq10sT5zZEdGuM+T6X5iwA1lowfjtyyTMRNaYSvAdzgllBU38MnN8opT7neb6eCmQSgLIsz6qq+uZsm9P+VwixUkqtplzsNHhBRAsp5aceRu+11jdTQIwCsNbCVP7mTimEAOO3WuvllItS75Rl+bau62siupZSvuFOn2XZxzzPt0P0BwE45r8xwr/guL/DOGcIQKqqWiY0ApO6zPM8NMfoeC+AFPNCiEel1GJMKrtqpCiKhRACQEJtbJVSeZ7nmxTdJIAeyX83xuwz8iRxwt/quoZZvvcvIIf0mVMHgCPwg9n8ndZ6LPrsKvjOOecbiEQhiLUx5iN/OQLgbPFHGG2I6CCS7/ELhOPQnDqCjABYayFlxHr/PGqtL/Ym2pmEnDWUwbGOP7QAXHz+GdjdryzLTl/KYadisdaiVEEYbx6UH8aYS/97C6AoCnj/nwHhz/sMlVMZTr1nrUUYbf1BKfXOR6UGAJc+kpTWeqcC7XcY7TtbluVFXdcILF4LrV82ALiahBBHI33PtLUWUemD/10pdQLz9gBg+17iRyX9AAByUFgVNEKWCfP5qrWG4xzdUxTF1odVInowxiwkz7pKKRRQk8vZQ6IsimIV1EtbrfUJANwLIf7yjGitRyvUQzId3sV9FTUSAITO8ay1RuNxlE8iGl0CwH++7vF2Nca9qxobrWVZdpcyuaIo8H9Ul1v3TlQSu3rnC4YA7h10YoO1vzsDfv1zBwAU/mGsaONSwFnuN4mwjBIAyadlkJsuKk5jTD4mPM7vbACJjI07oyKLx2zHVJRbGCPNK67u721eXM6KBD4bQKLgA90brTWCQfOwaOGZi6KbtRYNStTg++Q0pIWUBkJCo9Wns0NIyV/+rJS6CM3DDQHWPGaHjMGPpJT/zDHfPg2EUWgUAIi4vqEps40xq5TEHNCFUmrTl1dcEsU766G+19NPlNc3PIxutNbvxhzptf7PAwiCBwBETUxYqr4Wo333Jng9QS0UlarHWIkGwaEM2t2m6AQADJfa5DA1mR1aO31FZ1P38LB3jGaUMJ8mLHsAO4W0Q2nBWQl6Fr9zaHuWtvJkiaWT+g/FbOqeRPJsM38IIIpGvPt/LQDO9jFaaaRPRNG0hM+FovR+DM1NURQYtIWzqahs4ZM53v1PqhBfSjsJ0+n0K53uy1rbNvhQlzEmWta9FLOcbmrAnKpWuQaw/wqnc68yF+0Z7Uem4wFzH+BjvMu+Yu2lNJHaww0NmDmAaHh0yAbfrW2xh4uGyWPT8XC4O1hS+L1w0Od+3cf4xSUp9M/QPl+Oj5pwmAc6ky+l1FNd1xj4ojnvzEqJCBpbZln2MNaQc5Nz8R20O4y7d5M2z+mE0+lwaDTbxJH4/GcEUspnDgjNCBG9ISK/Yu0b36DDu5rS4IDJUAPteGU293s4gJAtpcTatu2tp5D143XeE0RnQRzLbHykgYU2tu5VVV2xfcKU+1LvYN+8VErdzzXDVgPOQfEVSbiPGt3A+54WZjGwde9jevJ2f0gyYRTCehOOjOUyPhtI7mWHiLlpxGnPJwmocJtPbnah3Xfv/yUXSzP3Ibl2AAAAAElFTkSuQmCC')
34 | center right 3px no-repeat;
35 | background-size: 28rpx;
36 | text-align: right;
37 | }
38 |
--------------------------------------------------------------------------------
/src/pages/news_list/news_list.wpy:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | {{list.title}}
11 |
12 | {{list.ptime}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 暂无资讯数据
23 |
24 |
25 |
26 |
27 |
73 |
74 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/src/pages/player_detail/player_detail.less:
--------------------------------------------------------------------------------
1 | view,
2 | text {
3 | -webkit-box-sizing: border-box;
4 | box-sizing: border-box;
5 | }
6 |
7 | .player-info {
8 | width: 100%;
9 | float: left;
10 | padding: 20rpx;
11 | padding-bottom: 0;
12 | }
13 |
14 | .player-logo {
15 | width: 290rpx;
16 | height: 200rpx;
17 | float: left;
18 | }
19 |
20 | .player-name {
21 | font-size: 28rpx;
22 | padding-top: 30rpx;
23 | }
24 |
25 | .p-name {
26 | font-size: 36rpx;
27 | display: block;
28 | font-weight: 700;
29 | }
30 |
31 | .player-data {
32 | border-top: 1px solid #e3e3e3;
33 | border-bottom: 1px solid #e3e3e3;
34 | height: 100rpx;
35 | float: left;
36 | width: 100%;
37 | padding: 5px 0;
38 | }
39 |
40 | .player-data view {
41 | width: 25%;
42 | float: left;
43 | border-right: 1px solid #e3e3e3;
44 | -webkit-box-sizing: border-box;
45 | box-sizing: border-box;
46 | text-align: center;
47 | line-height: 40rpx;
48 | font-size: 28rpx;
49 | color: #666;
50 | }
51 |
52 | .player-data view text {
53 | display: block;
54 | font-size: 36rpx;
55 | color: #333;
56 | }
57 |
58 | .base-info-title {
59 | background: #ebecef;
60 | float: left;
61 | width: 100%;
62 | font-size: 32rpx;
63 | padding: 20rpx;
64 | -webkit-box-sizing: border-box;
65 | box-sizing: border-box;
66 | }
67 |
68 | .base-info-item {
69 | width: 50%;
70 | float: left;
71 | font-size: 28rpx;
72 | padding: 10rpx 20rpx;
73 | -webkit-box-sizing: border-box;
74 | box-sizing: border-box;
75 | border-bottom: 1px solid #e3e3e3;
76 | }
77 |
78 | .base-info-item-title {
79 | display: block;
80 | font-size: 30rpx;
81 | color: #666;
82 | padding-bottom: 1px;
83 | }
84 |
85 | .gird-9-item {
86 | width: 33.333%;
87 | height: 120rpx;
88 | float: left;
89 | text-align: center;
90 | font-size: 28rpx;
91 | border-bottom: 1px solid #e3e3e3;
92 | border-right: 1px solid #e3e3e3;
93 | -webkit-box-sizing: border-box;
94 | box-sizing: border-box;
95 | padding: 20rpx 0;
96 | }
97 |
98 | .gird-9-item text {
99 | display: block;
100 | font-size: 36rpx;
101 | color: #333;
102 | }
103 |
--------------------------------------------------------------------------------
/src/pages/player_detail/player_detail.wpy:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{list.cnname}}
7 |
8 | {{list.position}}({{list.number}})/ {{list.teamname}}
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{list.pointsPG}} 得分
16 |
17 |
18 | {{list.reboundsPG}} 篮板
19 |
20 |
21 | {{list.assistsPG}} 助攻
22 |
23 |
24 | {{list.stealsPG}} 抢断
25 |
26 |
27 |
28 |
29 | 基本信息
30 |
31 | 生日{{list.birthdate}}
32 |
33 |
34 | 出生地{{list.birthplace || "-"}}
35 |
36 |
37 | 薪金{{list.yearsalary || "-"}}
38 |
39 |
40 | 身高/体重{{list.height}}/{{list.weight}}
41 |
42 |
43 | 选秀{{list.showing}}
44 |
45 |
46 |
47 |
48 | 赛季数据
49 |
50 | {{list.games}} 出场数
51 |
52 |
53 | {{list.gamesStarted}} 首发次
54 |
55 |
56 | {{list.minutesPG}} 时间
57 |
58 |
59 | {{fgPCT}} 投篮
60 |
61 |
62 | {{threesPCT}} 三分
63 |
64 |
65 | {{ftPCT}} 罚球
66 |
67 |
68 | {{list.offensiveReboundsPG}} 前篮板
69 |
70 |
71 | {{list.defensiveReboundsPG}} 后篮板
72 |
73 |
74 | {{list.stealsPG}} 抢断
75 |
76 |
77 |
78 |
79 |
80 |
127 |
128 |
131 |
132 |
133 |
134 |
135 |
--------------------------------------------------------------------------------
/src/pages/stats/stats.less:
--------------------------------------------------------------------------------
1 | .stats-nav {
2 | width: 100%;
3 | }
4 | .stats-nav text {
5 | display: block;
6 | width: 20%;
7 | float: left;
8 | text-align: center;
9 | font-size: 28rpx;
10 | padding: 20rpx 0;
11 | color: #333;
12 | }
13 |
14 | .table {
15 | width: 100%;
16 | float: left;
17 | }
18 | .header {
19 | width: 100%;
20 | height: 70rpx;
21 | background: #f5f5f5;
22 | font-size: 28rpx;
23 | }
24 |
25 | .header text {
26 | display: block;
27 | width: 33.33%;
28 | float: left;
29 | text-align: center;
30 | line-height: 70rpx;
31 | }
32 | .tbody {
33 | font-size: 28rpx;
34 | }
35 | .tbody text {
36 | display: block;
37 | width: 33.33%;
38 | float: left;
39 | text-align: center;
40 | line-height: 70rpx;
41 | height: 70rpx;
42 | overflow: hidden;
43 | }
44 | .tbody text:first-child,
45 | .header text:first-child {
46 | text-align: left;
47 | -webkit-box-sizing: border-box;
48 | box-sizing: border-box;
49 | padding-left: 20rpx;
50 | overflow: hidden;
51 | }
52 | text.active {
53 | color: #00aa98;
54 | }
55 | .tbody navigator {
56 | display: block;
57 | height: 70rpx;
58 | }
59 | .f5f5f5 {
60 | background: #f5f5f5;
61 | }
62 |
--------------------------------------------------------------------------------
/src/pages/stats/stats.wpy:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 得分
5 | 篮板
6 | 助攻
7 | 抢断
8 | 盖帽
9 | 失误
10 | 三分
11 | 犯规
12 | 罚球
13 | 神投
14 |
15 |
16 |
21 |
22 |
23 | {{index+1}}.{{item.playername}}
24 | {{item.avgdata}}
25 | {{item.totaldata}}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
72 |
73 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/src/pages/team_rank/team_rank.less:
--------------------------------------------------------------------------------
1 | .swiper-tab {
2 | width: 100%;
3 | border-bottom: 1rpx solid #e3e3e3;
4 | text-align: center;
5 | line-height: 80rpx;
6 | }
7 |
8 | .swiper-tab-list {
9 | font-size: 30rpx;
10 | display: inline-block;
11 | width: 50%;
12 | color: #777;
13 | }
14 |
15 | .on {
16 | color: #00aa98;
17 | }
18 |
19 | .swiper-box {
20 | display: block;
21 | width: 100%;
22 | -webkit-box-sizing: border-box;
23 | box-sizing: border-box;
24 | height: auto;
25 | min-height: 100%;
26 | float: left;
27 | }
28 |
29 | .swiper-item {
30 | width: 100%;
31 | height: 100%;
32 | display: none;
33 | -webkit-box-sizing: border-box;
34 | box-sizing: border-box;
35 | }
36 |
37 | view.active {
38 | display: block;
39 | }
40 |
41 | .t-head {
42 | background: #f2f7fc;
43 | font-size: 30rpx;
44 | height: 80rpx;
45 | line-height: 80rpx;
46 | color: #444;
47 | }
48 |
49 | .t-head text,
50 | .t-body .team-item text {
51 | width: 20%;
52 | display: block;
53 | float: left;
54 | text-align: center;
55 | }
56 |
57 | .t-body .team-item {
58 | font-size: 28rpx;
59 | height: 65rpx;
60 | line-height: 65rpx;
61 | border-top: 1rpx solid #e3e3e3;
62 | -webkit-box-sizing: border-box;
63 | box-sizing: border-box;
64 | padding: 0 30rpx;
65 | }
66 |
67 | .t-body .team-item text:first-child,
68 | .t-head text:first-child {
69 | text-align: left;
70 | font-size: 24rpx;
71 | }
72 |
--------------------------------------------------------------------------------
/src/pages/team_rank/team_rank.wpy:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 西部排名
5 | 东部排名
6 |
7 |
8 |
9 |
10 | 球队
11 | 胜场
12 | 负场
13 | 胜率
14 | 场均差
15 |
16 |
17 |
18 |
19 | {{index+1}}.{{item.name}}
20 | {{item.wins}}
21 | {{item.losses}}
22 | {{item['wining-percentage']}}%
23 | {{item['games-back'] }}
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | 球队
32 | 胜场
33 | 负场
34 | 胜率
35 | 场均差
36 |
37 |
38 |
39 |
40 | {{index+1}}.{{item.name}}
41 | {{item.wins}}
42 | {{item.losses}}
43 | {{item['wining-percentage']}}%
44 | {{item['games-back'] }}
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
98 |
99 |
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/store/actions/counter.js:
--------------------------------------------------------------------------------
1 | import { ASYNC_INCREMENT } from '../types/counter'
2 | import { createAction } from 'redux-actions'
3 |
4 | export const asyncInc = createAction(ASYNC_INCREMENT, () => {
5 | return new Promise(resolve => {
6 | setTimeout(() => {
7 | resolve(1)
8 | }, 1000)
9 | })
10 | })
--------------------------------------------------------------------------------
/src/store/actions/index.js:
--------------------------------------------------------------------------------
1 | export * from './counter'
--------------------------------------------------------------------------------
/src/store/index.js:
--------------------------------------------------------------------------------
1 | import { createStore, applyMiddleware } from 'redux'
2 | import promiseMiddleware from 'redux-promise'
3 | import rootReducer from './reducers'
4 |
5 | export default function configStore () {
6 | const store = createStore(rootReducer, applyMiddleware(promiseMiddleware))
7 | return store
8 | }
--------------------------------------------------------------------------------
/src/store/reducers/counter.js:
--------------------------------------------------------------------------------
1 | import { handleActions } from 'redux-actions'
2 | import { INCREMENT, DECREMENT, ASYNC_INCREMENT } from '../types/counter'
3 |
4 | export default handleActions({
5 | [INCREMENT] (state) {
6 | return {
7 | ...state,
8 | num: state.num + 1
9 | }
10 | },
11 | [DECREMENT] (state) {
12 | return {
13 | ...state,
14 | num: state.num - 1
15 | }
16 | },
17 | [ASYNC_INCREMENT] (state, action) {
18 | return {
19 | ...state,
20 | asyncNum: state.asyncNum + action.payload
21 | }
22 | }
23 | }, {
24 | num: 0,
25 | asyncNum: 0
26 | })
--------------------------------------------------------------------------------
/src/store/reducers/index.js:
--------------------------------------------------------------------------------
1 | import { combineReducers } from 'redux';
2 | import counter from './counter';
3 |
4 | export default combineReducers({
5 | counter
6 | });
7 |
--------------------------------------------------------------------------------
/src/store/types/counter.js:
--------------------------------------------------------------------------------
1 | export const INCREMENT = 'INCREMENT'
2 |
3 | export const DECREMENT = 'DECREMENT'
4 |
5 | export const ASYNC_INCREMENT = 'ASYNC_INCREMENT'
--------------------------------------------------------------------------------
/src/store/types/index.js:
--------------------------------------------------------------------------------
1 | export * from './counter'
--------------------------------------------------------------------------------
/src/utils/api.js:
--------------------------------------------------------------------------------
1 | import fetch from './fetch';
2 | const API_DOMAIN = 'https://wapapi.it919.cn/?service=';
3 |
4 | /*
5 | * @param {String} api 接口地址
6 | * @param {Objece} params 接口参数参数
7 | */
8 | function fetchApi(api, params) {
9 | return fetch(API_DOMAIN, api, params);
10 | }
11 | // NBA比赛直播
12 | function nab_schedule(params) {
13 | return fetchApi('Nba.schedule', params).then(res => res);
14 | }
15 | // 直播室信息
16 | function live_detail(params) {
17 | return fetchApi('Nba.live_detail', params).then(res => res);
18 | }
19 | // 直播内容
20 | function live_content(params) {
21 | return fetchApi('Nba.live_content', params).then(res => res);
22 | }
23 | // 球员技术统计
24 | function technical_statistics(params) {
25 | return fetchApi('Nba.technical_statistics', params).then(res => res);
26 | }
27 | // 球员详情
28 | function player_detail(params) {
29 | return fetchApi('Nba.player_detail', params).then(res => res);
30 | }
31 | // 联盟排名
32 | function team_rank(params) {
33 | return fetchApi('Nba.team_rank', params).then(res => res);
34 | }
35 | // 球队信息
36 | function team_info(params) {
37 | return fetchApi('Nba.team_info', params).then(res => res);
38 | }
39 | // 球队赛程
40 | function team_schedule(params) {
41 | return fetchApi('Nba.team_schedule', params).then(res => res);
42 | }
43 | // 球队阵容
44 | function Lineup(params) {
45 | return fetchApi('Nba.Lineup', params).then(res => res);
46 | }
47 | // 新闻详情
48 | function news_info(params) {
49 | return fetchApi('Nba.news_info', params).then(res => res);
50 | }
51 | // NBA 新闻快讯
52 | function news_list(params) {
53 | return fetchApi('Nba.new_list', params).then(res => res);
54 | }
55 | // NBA新闻评论
56 | function news_comments(params) {
57 | return fetchApi('Nba.news_comments', params).then(res => res);
58 | }
59 | // 球员数据排行榜
60 | function player_top(params) {
61 | return fetchApi('Nba.player_top', params).then(res => res);
62 | }
63 | // 关于我
64 | function website(params) {
65 | return fetchApi('Nba.website', params).then(res => res);
66 | }
67 |
68 | export {
69 | nab_schedule,
70 | live_detail,
71 | live_content,
72 | technical_statistics,
73 | player_detail,
74 | team_rank,
75 | team_info,
76 | Lineup,
77 | news_info,
78 | news_comments,
79 | news_list,
80 | team_schedule,
81 | player_top,
82 | website
83 | };
84 |
--------------------------------------------------------------------------------
/src/utils/fetch.js:
--------------------------------------------------------------------------------
1 | import MD5 from './md5';
2 | const APPKEY = '6fc18957ce391f84a7ce34ce13cd99c4';
3 |
4 | /**
5 | * 将参数+签名的值按照字典排序得到签名sign 参数的值按照升序排列
6 | * @param {Object} params 参数集合
7 | */
8 | const getSign = params => {
9 | for (let key in params) {
10 | if (!params[key]) {
11 | delete params[key];
12 | }
13 | }
14 | params.appkey = APPKEY;
15 | let keyArr = Object.keys(params).sort();
16 | let newObj = {};
17 | let Kstr = '';
18 | for (let i in keyArr) {
19 | newObj[keyArr[i]] = params[keyArr[i]];
20 | Kstr += params[keyArr[i]];
21 | }
22 | delete params['appkey'];
23 | return MD5(Kstr);
24 | };
25 |
26 | /**
27 | * 验证返回的的code码问题
28 | * @param {*} resolve
29 | * @param {*} res 返回的data
30 | */
31 | const checkCode = (resolve, res) => {
32 | if (res.ret === 200) {
33 | resolve(res);
34 | } else if (res.ret === 400) {
35 | wx.showToast({
36 | title: res.msg,
37 | icon: 'none',
38 | duration: 2000,
39 | mask: true
40 | });
41 | } else if (res.ret === 406) {
42 | wx.showToast({
43 | title: res.msg,
44 | icon: 'none',
45 | duration: 2000,
46 | mask: true
47 | });
48 | }
49 | };
50 |
51 | const ajaxApi = (api, path, params) => {
52 | wx.showLoading({ title: '加载中' });
53 | params.timestamp = '';
54 | params.timestamp = new Date().valueOf();
55 | params.sign = '';
56 | params.sign = getSign(params);
57 | return new Promise((resolve, reject) => {
58 | wx.request({
59 | url: `${api}${path}`,
60 | data: Object.assign({}, params),
61 | header: { 'Content-Type': 'json' },
62 | success: function(res) {
63 | console.log(res);
64 | checkCode(resolve, res.data);
65 | wx.hideLoading();
66 | },
67 | fail: function(err) {
68 | reject(err);
69 | wx.hideLoading();
70 | }
71 | });
72 | });
73 | };
74 |
75 | export default ajaxApi;
76 |
--------------------------------------------------------------------------------
/src/utils/formatTime.js:
--------------------------------------------------------------------------------
1 | const formatTime = date => {
2 | const year = date.getFullYear();
3 | const month = date.getMonth() + 1;
4 | const day = date.getDate();
5 | const hour = date.getHours();
6 | const minute = date.getMinutes();
7 | const second = date.getSeconds();
8 |
9 | return (
10 | [year, month, day].map(formatNumber).join('/') +
11 | ' ' +
12 | [hour, minute, second].map(formatNumber).join(':')
13 | );
14 | };
15 |
16 | const formatDate = date => {
17 | const year = date.getFullYear();
18 | const month = date.getMonth() + 1;
19 | const day = date.getDate();
20 | const hour = date.getHours();
21 | const minute = date.getMinutes();
22 | const second = date.getSeconds();
23 |
24 | return [year, month, day].map(formatNumber).join('-');
25 | };
26 |
27 | const formatNumber = n => {
28 | n = n.toString();
29 | return n[1] ? n : '0' + n;
30 | };
31 |
32 | export { formatTime, formatDate };
33 |
--------------------------------------------------------------------------------
/src/utils/md5.js:
--------------------------------------------------------------------------------
1 | !(function (n) { 'use strict'; function t (n, t) { var r = (65535 & n) + (65535 & t); return (n >> 16) + (t >> 16) + (r >> 16) << 16 | 65535 & r } function r (n, t) { return n << t | n >>> 32 - t } function e (n, e, o, u, c, f) { return t(r(t(t(e, n), t(u, f)), c), o) } function o (n, t, r, o, u, c, f) { return e(t & r | ~t & o, n, t, u, c, f) } function u (n, t, r, o, u, c, f) { return e(t & o | r & ~o, n, t, u, c, f) } function c (n, t, r, o, u, c, f) { return e(t ^ r ^ o, n, t, u, c, f) } function f (n, t, r, o, u, c, f) { return e(r ^ (t | ~o), n, t, u, c, f) } function i (n, r) { n[r >> 5] |= 128 << r % 32, n[14 + (r + 64 >>> 9 << 4)] = r; var e, i, a, d, h, l = 1732584193, g = -271733879, v = -1732584194, m = 271733878; for (e = 0; e < n.length; e += 16)i = l, a = g, d = v, h = m, g = f(g = f(g = f(g = f(g = c(g = c(g = c(g = c(g = u(g = u(g = u(g = u(g = o(g = o(g = o(g = o(g, v = o(v, m = o(m, l = o(l, g, v, m, n[e], 7, -680876936), g, v, n[e + 1], 12, -389564586), l, g, n[e + 2], 17, 606105819), m, l, n[e + 3], 22, -1044525330), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 4], 7, -176418897), g, v, n[e + 5], 12, 1200080426), l, g, n[e + 6], 17, -1473231341), m, l, n[e + 7], 22, -45705983), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 8], 7, 1770035416), g, v, n[e + 9], 12, -1958414417), l, g, n[e + 10], 17, -42063), m, l, n[e + 11], 22, -1990404162), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 12], 7, 1804603682), g, v, n[e + 13], 12, -40341101), l, g, n[e + 14], 17, -1502002290), m, l, n[e + 15], 22, 1236535329), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 1], 5, -165796510), g, v, n[e + 6], 9, -1069501632), l, g, n[e + 11], 14, 643717713), m, l, n[e], 20, -373897302), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 5], 5, -701558691), g, v, n[e + 10], 9, 38016083), l, g, n[e + 15], 14, -660478335), m, l, n[e + 4], 20, -405537848), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 9], 5, 568446438), g, v, n[e + 14], 9, -1019803690), l, g, n[e + 3], 14, -187363961), m, l, n[e + 8], 20, 1163531501), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 13], 5, -1444681467), g, v, n[e + 2], 9, -51403784), l, g, n[e + 7], 14, 1735328473), m, l, n[e + 12], 20, -1926607734), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 5], 4, -378558), g, v, n[e + 8], 11, -2022574463), l, g, n[e + 11], 16, 1839030562), m, l, n[e + 14], 23, -35309556), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 1], 4, -1530992060), g, v, n[e + 4], 11, 1272893353), l, g, n[e + 7], 16, -155497632), m, l, n[e + 10], 23, -1094730640), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 13], 4, 681279174), g, v, n[e], 11, -358537222), l, g, n[e + 3], 16, -722521979), m, l, n[e + 6], 23, 76029189), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 9], 4, -640364487), g, v, n[e + 12], 11, -421815835), l, g, n[e + 15], 16, 530742520), m, l, n[e + 2], 23, -995338651), v = f(v, m = f(m, l = f(l, g, v, m, n[e], 6, -198630844), g, v, n[e + 7], 10, 1126891415), l, g, n[e + 14], 15, -1416354905), m, l, n[e + 5], 21, -57434055), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 12], 6, 1700485571), g, v, n[e + 3], 10, -1894986606), l, g, n[e + 10], 15, -1051523), m, l, n[e + 1], 21, -2054922799), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 8], 6, 1873313359), g, v, n[e + 15], 10, -30611744), l, g, n[e + 6], 15, -1560198380), m, l, n[e + 13], 21, 1309151649), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 4], 6, -145523070), g, v, n[e + 11], 10, -1120210379), l, g, n[e + 2], 15, 718787259), m, l, n[e + 9], 21, -343485551), l = t(l, i), g = t(g, a), v = t(v, d), m = t(m, h); return [l, g, v, m] } function a (n) { var t, r = '', e = 32 * n.length; for (t = 0; t < e; t += 8)r += String.fromCharCode(n[t >> 5] >>> t % 32 & 255); return r } function d (n) { var t, r = []; for (r[(n.length >> 2) - 1] = void 0, t = 0; t < r.length; t += 1)r[t] = 0; var e = 8 * n.length; for (t = 0; t < e; t += 8)r[t >> 5] |= (255 & n.charCodeAt(t / 8)) << t % 32; return r } function h (n) { return a(i(d(n), 8 * n.length)) } function l (n, t) { var r, e, o = d(n), u = [], c = []; for (u[15] = c[15] = void 0, o.length > 16 && (o = i(o, 8 * n.length)), r = 0; r < 16; r += 1)u[r] = 909522486 ^ o[r], c[r] = 1549556828 ^ o[r]; return e = i(u.concat(d(t)), 512 + 8 * t.length), a(i(c.concat(e), 640)) } function g (n) { var t, r, e = ''; for (r = 0; r < n.length; r += 1)t = n.charCodeAt(r), e += '0123456789abcdef'.charAt(t >>> 4 & 15) + '0123456789abcdef'.charAt(15 & t); return e } function v (n) { return unescape(encodeURIComponent(n)) } function m (n) { return h(v(n)) } function p (n) { return g(m(n)) } function s (n, t) { return l(v(n), v(t)) } function C (n, t) { return g(s(n, t)) } function A (n, t, r) { return t ? r ? s(t, n) : C(t, n) : r ? m(n) : p(n) } typeof define === 'function' && define.amd ? define(function () { return A }) : typeof module === 'object' && module.exports ? module.exports = A : n.md5 = A }(this))
2 | // # sourceMappingURL=md5.min.js.map
3 |
--------------------------------------------------------------------------------
/src/utils/toFixed.js:
--------------------------------------------------------------------------------
1 | const toFixed = param => {
2 | return parseFloat(param * 100).toFixed(1) + '%';
3 | };
4 |
5 | export { toFixed };
6 |
--------------------------------------------------------------------------------
/wepy.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 | var prod = process.env.NODE_ENV === 'production';
3 |
4 | module.exports = {
5 | wpyExt: '.wpy',
6 | // eslint: true,
7 | cliLogs: !prod,
8 | build: {
9 | web: {
10 | htmlTemplate: path.join('src', 'index.template.html'),
11 | htmlOutput: path.join('web', 'index.html'),
12 | jsOutput: path.join('web', 'index.js')
13 | }
14 | },
15 | resolve: {
16 | alias: {
17 | counter: path.join(__dirname, 'src/components/counter'),
18 | '@': path.join(__dirname, 'src')
19 | },
20 | aliasFields: ['wepy'],
21 | modules: ['node_modules']
22 | },
23 | compilers: {
24 | less: {
25 | compress: prod
26 | },
27 | /*sass: {
28 | outputStyle: 'compressed'
29 | },*/
30 | babel: {
31 | sourceMap: true,
32 | presets: ['env'],
33 | plugins: [
34 | 'transform-class-properties',
35 | 'transform-decorators-legacy',
36 | 'transform-object-rest-spread',
37 | 'transform-export-extensions'
38 | ]
39 | }
40 | },
41 | plugins: {},
42 | appConfig: {
43 | noPromiseAPI: ['createSelectorQuery']
44 | }
45 | };
46 |
47 | if (prod) {
48 | // 压缩sass
49 | // module.exports.compilers['sass'] = {outputStyle: 'compressed'}
50 |
51 | // 压缩js
52 | module.exports.plugins = {
53 | uglifyjs: {
54 | filter: /\.js$/,
55 | config: {}
56 | },
57 | imagemin: {
58 | filter: /\.(jpg|png|jpeg)$/,
59 | config: {
60 | jpg: {
61 | quality: 80
62 | },
63 | png: {
64 | quality: 80
65 | }
66 | }
67 | }
68 | };
69 | }
70 |
--------------------------------------------------------------------------------