From 3c6830c3a54be8584d3a526de8389052951e673a Mon Sep 17 00:00:00 2001 From: LevanDD <441489115@qq.com> Date: Tue, 13 Jun 2017 18:30:58 +0800 Subject: [PATCH] router --- dist/bundle.js | 462 +++++++++++--------- dist/index.html | 2 +- src/common/common.css | 28 ++ src/components/App/index.css | 3 - src/components/App/index.html | 4 - src/components/App/index.js | 10 - src/components/Login/index.js | 1 - src/components/LoginInfo/index.css | 4 + src/components/LoginInfo/index.html | 3 + src/components/{Main => LoginInfo}/index.js | 6 +- src/components/Main/index.html | 11 - src/components/Menu/index.js | 5 +- src/components/NavLink/index.html | 2 +- src/components/NavLink/index.js | 11 +- src/components/SideBar/index.css | 12 - src/components/SideBar/index.html | 8 - src/components/SideBar/index.js | 8 - src/components/Tab/index.css | 26 +- src/components/Tab/index.html | 12 +- src/components/Tab/index.js | 8 +- src/components/TabTitle/index.css | 10 +- src/components/TabTitle/index.js | 4 +- src/components/index.js | 4 +- src/{components/Main => }/index.css | 22 +- src/index.html | 25 +- src/index.js | 51 ++- src/routes/pages.js | 51 +++ src/routes/router.js | 22 + 28 files changed, 513 insertions(+), 302 deletions(-) delete mode 100644 src/components/App/index.css delete mode 100644 src/components/App/index.html delete mode 100644 src/components/App/index.js create mode 100644 src/components/LoginInfo/index.css create mode 100644 src/components/LoginInfo/index.html rename src/components/{Main => LoginInfo}/index.js (57%) delete mode 100644 src/components/Main/index.html delete mode 100644 src/components/SideBar/index.css delete mode 100644 src/components/SideBar/index.html delete mode 100644 src/components/SideBar/index.js rename src/{components/Main => }/index.css (62%) create mode 100644 src/routes/pages.js create mode 100644 src/routes/router.js diff --git a/dist/bundle.js b/dist/bundle.js index 0e19f0d..61a6aa6 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -63,7 +63,7 @@ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 43); +/******/ return __webpack_require__(__webpack_require__.s = 44); /******/ }) /************************************************************************/ /******/ ([ @@ -146,7 +146,7 @@ function toComment(sourceMap) { return '/*# ' + data + ' */'; } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(27).Buffer)) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(28).Buffer)) /***/ }), /* 1 */ @@ -186,7 +186,7 @@ var stylesInDom = {}, singletonElement = null, singletonCounter = 0, styleElementsInsertedAtTop = [], - fixUrls = __webpack_require__(30); + fixUrls = __webpack_require__(31); module.exports = function(list, options) { if(typeof DEBUG !== "undefined" && DEBUG) { @@ -8490,7 +8490,7 @@ https://github.com/RubyLouvre/avalon/tree/2.2.4 return avalon; }); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), /* 3 */ @@ -19052,7 +19052,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol return jQuery; }); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(31)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(32)(module))) /***/ }), /* 4 */ @@ -19095,32 +19095,6 @@ var parseCssModule = exports.parseCssModule = function parseCssModule(styles, tm /* 5 */ /***/ (function(module, exports, __webpack_require__) { -// style-loader: Adds some css to the DOM by adding a