@common-stack/client-react
Advanced tools
Comparing version 0.0.14-34 to 0.0.14-35
@@ -197,2 +197,3 @@ module.exports = | ||
__export(__webpack_require__(/*! ./utils */ "./src/utils/index.ts")); | ||
__export(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts")); | ||
@@ -202,2 +203,42 @@ | ||
/***/ "./src/interfaces/index.ts": | ||
/*!*********************************!*\ | ||
!*** ./src/interfaces/index.ts ***! | ||
\*********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(__webpack_require__(/*! ./menu */ "./src/interfaces/menu.ts")); | ||
/***/ }), | ||
/***/ "./src/interfaces/menu.ts": | ||
/*!********************************!*\ | ||
!*** ./src/interfaces/menu.ts ***! | ||
\********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var IMenuPosition; | ||
(function (IMenuPosition) { | ||
IMenuPosition["LOGO"] = "LOGO"; | ||
IMenuPosition["UPPER"] = "UPPER"; | ||
IMenuPosition["MIDDLE"] = "MIDDLE"; | ||
IMenuPosition["LOWER"] = "LOWER"; | ||
IMenuPosition["BOTTOM"] = "BOTTOM"; | ||
})(IMenuPosition = exports.IMenuPosition || (exports.IMenuPosition = {})); | ||
/***/ }), | ||
/***/ "./src/router/index.ts": | ||
@@ -279,2 +320,3 @@ /*!*****************************!*\ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const interfaces_1 = __webpack_require__(/*! ../interfaces */ "./src/interfaces/index.ts"); | ||
const reg = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/g; | ||
@@ -341,6 +383,7 @@ function isUrl(path) { | ||
const mappedMenuPaths = routes.map(mPath => { | ||
return Object.assign({ route: mPath }, menuData[mPath]); | ||
return Object.assign({ route: mPath, position: interfaces_1.IMenuPosition.MIDDLE }, menuData[mPath]); | ||
}); | ||
const root = { | ||
name: 'root', | ||
position: interfaces_1.IMenuPosition.LOGO, | ||
}; | ||
@@ -347,0 +390,0 @@ mappedMenuPaths.forEach(menutItem => { |
export interface IMenuData { | ||
[key: string]: { | ||
name: any; | ||
position?: IMenuPosition; | ||
icon?: any; | ||
@@ -15,2 +16,3 @@ authority?: any; | ||
icon?: any; | ||
position: IMenuPosition; | ||
authority?: any; | ||
@@ -22,1 +24,8 @@ loading?: any; | ||
} | ||
export declare enum IMenuPosition { | ||
LOGO = "LOGO", | ||
UPPER = "UPPER", | ||
MIDDLE = "MIDDLE", | ||
LOWER = "LOWER", | ||
BOTTOM = "BOTTOM", | ||
} |
{ | ||
"name": "@common-stack/client-react", | ||
"version": "0.0.14-34", | ||
"version": "0.0.14-35", | ||
"description": "browser plugin for git", | ||
@@ -59,5 +59,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@common-stack/client-core": "^0.0.14-34", | ||
"@common-stack/client-redux": "^0.0.14-34", | ||
"@common-stack/core": "^0.0.14-34" | ||
"@common-stack/client-core": "^0.0.14-35", | ||
"@common-stack/client-redux": "^0.0.14-35", | ||
"@common-stack/core": "^0.0.14-35" | ||
}, | ||
@@ -64,0 +64,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
45009
570