mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
add sendMail and install
This commit is contained in:
commit
b5e3eff4c7
36
.eslintrc.json
Normal file
36
.eslintrc.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"commonjs": true
|
||||
},
|
||||
"extends": [],
|
||||
"globals": [
|
||||
"$",
|
||||
"$$",
|
||||
"jQuery",
|
||||
"Promise"
|
||||
],
|
||||
"rules": {
|
||||
"no-with": "error",
|
||||
"no-octal": "error",
|
||||
"no-undef": "error",
|
||||
"no-dupe-keys": "error",
|
||||
"no-dupe-args": "error",
|
||||
"no-delete-var": "error",
|
||||
"no-unused-vars": "error",
|
||||
"no-caller": "error",
|
||||
"no-debugger": "error",
|
||||
"no-unreachable": "error",
|
||||
"no-inner-declarations": [
|
||||
"error",
|
||||
"functions"
|
||||
]
|
||||
},
|
||||
"ignorePattern": [
|
||||
"/fekit_modules/*",
|
||||
"/node_modules/*",
|
||||
"/bower_components/*",
|
||||
"/dev/*",
|
||||
"/prd/*"
|
||||
]
|
||||
}
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -35,4 +35,7 @@ Thumbs.db
|
||||
|
||||
node_modules/
|
||||
runtime/init.lock
|
||||
runtime/log
|
||||
runtime/log
|
||||
prd/
|
||||
dev/
|
||||
|
||||
|
30597
.lib_cache/lib.js
Normal file
30597
.lib_cache/lib.js
Normal file
File diff suppressed because it is too large
Load Diff
484
.lib_cache/manifest.json
Normal file
484
.lib_cache/manifest.json
Normal file
@ -0,0 +1,484 @@
|
||||
{
|
||||
"name": "lib",
|
||||
"content": {
|
||||
"./node_modules/core-js/modules/es6.regexp.constructor.js": 43485366,
|
||||
"./node_modules/core-js/modules/es6.object.seal.js": 43527189,
|
||||
"./node_modules/core-js/modules/es7.string.at.js": 43580516,
|
||||
"./node_modules/core-js/modules/_defined.js": 43670706,
|
||||
"./node_modules/fbjs/lib/emptyObject.js": 43681685,
|
||||
"./node_modules/react/lib/ReactElementValidator.js": 44025518,
|
||||
"./node_modules/core-js/modules/es6.number.min-safe-integer.js": 44060266,
|
||||
"./node_modules/core-js/modules/_string-pad.js": 44088210,
|
||||
"./node_modules/react/lib/traverseAllChildren.js": 47478178,
|
||||
"./node_modules/react-dom/lib/SyntheticMouseEvent.js": 47787716,
|
||||
"./node_modules/react-dom/lib/DOMProperty.js": 48088018,
|
||||
"./node_modules/core-js/modules/_ie8-dom-define.js": 48115471,
|
||||
"./node_modules/core-js/modules/_dom-create.js": 48189054,
|
||||
"./node_modules/core-js/modules/es6.typed.float32-array.js": 48200615,
|
||||
"./node_modules/react-dom/lib/ReactMount.js": 48568870,
|
||||
"./node_modules/core-js/modules/_is-array-iter.js": 48664912,
|
||||
"./node_modules/core-js/modules/es6.parse-int.js": 48674953,
|
||||
"./node_modules/core-js/modules/es6.object.set-prototype-of.js": 48747206,
|
||||
"./node_modules/core-js/modules/_hide.js": 48788898,
|
||||
"./node_modules/core-js/modules/_parse-float.js": 48790281,
|
||||
"./node_modules/react-dom/lib/ReactComponentEnvironment.js": 48826790,
|
||||
"./node_modules/core-js/modules/_enum-keys.js": 49070719,
|
||||
"./node_modules/react-dom/lib/EventPluginRegistry.js": 49161007,
|
||||
"./node_modules/core-js/modules/es7.math.umulh.js": 49227621,
|
||||
"./node_modules/core-js/modules/_to-index.js": 49552306,
|
||||
"./node_modules/core-js/modules/es6.string.link.js": 49659822,
|
||||
"./node_modules/core-js/modules/es6.object.is-extensible.js": 49698998,
|
||||
"./node_modules/core-js/modules/es6.math.log2.js": 49751157,
|
||||
"./node_modules/core-js/modules/_a-number-value.js": 50536617,
|
||||
"./node_modules/core-js/modules/_strict-method.js": 50730450,
|
||||
"./node_modules/react-dom/lib/shouldUpdateReactComponent.js": 50868501,
|
||||
"./node_modules/react-dom/lib/SyntheticFocusEvent.js": 50910547,
|
||||
"./node_modules/core-js/modules/_has.js": 51177303,
|
||||
"./node_modules/core-js/modules/es6.object.prevent-extensions.js": 52090877,
|
||||
"./node_modules/react/lib/onlyChild.js": 52489815,
|
||||
"./node_modules/core-js/modules/_wks.js": 52526573,
|
||||
"./node_modules/react-dom/lib/CSSProperty.js": 52579043,
|
||||
"./node_modules/core-js/modules/_array-includes.js": 52679755,
|
||||
"./node_modules/react-dom/lib/ReactRef.js": 52747288,
|
||||
"./node_modules/core-js/modules/es6.reflect.construct.js": 52750870,
|
||||
"./node_modules/core-js/modules/es6.typed.array-buffer.js": 52787448,
|
||||
"./node_modules/core-js/modules/es7.reflect.has-own-metadata.js": 53004989,
|
||||
"./node_modules/core-js/modules/_typed-array.js": 53030048,
|
||||
"./node_modules/core-js/modules/core.regexp.escape.js": 53091466,
|
||||
"./node_modules/react/lib/ReactElementSymbol.js": 53106907,
|
||||
"./node_modules/react-dom/lib/getEventKey.js": 53148616,
|
||||
"./node_modules/core-js/modules/es7.system.global.js": 53151614,
|
||||
"./node_modules/core-js/modules/es6.number.max-safe-integer.js": 53160520,
|
||||
"./node_modules/react-dom/lib/reactProdInvariant.js": 53225501,
|
||||
"./node_modules/core-js/modules/es6.object.to-string.js": 53228475,
|
||||
"./node_modules/react/lib/getIteratorFn.js": 53524951,
|
||||
"./node_modules/core-js/modules/_fails.js": 53668905,
|
||||
"./node_modules/react/lib/lowPriorityWarning.js": 53861003,
|
||||
"./node_modules/core-js/modules/_set-species.js": 54045300,
|
||||
"./node_modules/core-js/modules/web.immediate.js": 54049076,
|
||||
"./node_modules/core-js/modules/es6.number.is-safe-integer.js": 54138673,
|
||||
"./node_modules/core-js/modules/_global.js": 54140252,
|
||||
"./node_modules/core-js/modules/es6.string.anchor.js": 54518583,
|
||||
"./node_modules/core-js/modules/_is-regexp.js": 54876986,
|
||||
"./node_modules/core-js/modules/_a-function.js": 55079006,
|
||||
"./node_modules/react/lib/ReactDOMFactories.js": 55155576,
|
||||
"./node_modules/core-js/modules/es6.array.iterator.js": 55194418,
|
||||
"./node_modules/core-js/modules/es7.reflect.has-metadata.js": 55226972,
|
||||
"./node_modules/core-js/modules/_shared.js": 55227199,
|
||||
"./node_modules/react-dom/lib/DOMLazyTree.js": 55492157,
|
||||
"./node_modules/react-dom/lib/ReactCompositeComponent.js": 55758150,
|
||||
"./node_modules/react-dom/lib/ReactDOMFeatureFlags.js": 55760008,
|
||||
"./node_modules/prop-types/factory.js": 56139853,
|
||||
"./node_modules/core-js/modules/es6.array.find-index.js": 56158709,
|
||||
"./node_modules/react-dom/lib/dangerousStyleValue.js": 56177388,
|
||||
"./node_modules/react-dom/lib/ReactDOMNullInputValuePropHook.js": 56190985,
|
||||
"./node_modules/core-js/modules/_collection-strong.js": 56977405,
|
||||
"./node_modules/core-js/modules/_date-to-primitive.js": 57128706,
|
||||
"./node_modules/core-js/modules/_parse-int.js": 57130989,
|
||||
"./node_modules/core-js/modules/_object-gpo.js": 57135521,
|
||||
"./node_modules/core-js/shim.js": 57195098,
|
||||
"./node_modules/react-dom/lib/ReactUpdateQueue.js": 57838321,
|
||||
"./node_modules/core-js/modules/es7.string.pad-start.js": 57838778,
|
||||
"./node_modules/react-dom/lib/ReactEmptyComponent.js": 57977182,
|
||||
"./node_modules/core-js/modules/_enum-bug-keys.js": 57989918,
|
||||
"./node_modules/react-dom/lib/ReactDOMTextComponent.js": 58038806,
|
||||
"./node_modules/core-js/modules/es6.typed.float64-array.js": 58099884,
|
||||
"./node_modules/react-dom/lib/EventPropagators.js": 58100447,
|
||||
"./node_modules/core-js/modules/es6.array.reduce-right.js": 58140471,
|
||||
"./node_modules/core-js/modules/_to-primitive.js": 58215155,
|
||||
"./node_modules/core-js/modules/_math-expm1.js": 65440254,
|
||||
"./node_modules/core-js/modules/es7.asap.js": 65489777,
|
||||
"./node_modules/react-dom/lib/ReactDOMTextarea.js": 65551082,
|
||||
"./node_modules/core-js/modules/es6.math.imul.js": 65567456,
|
||||
"./node_modules/react-dom/lib/SyntheticKeyboardEvent.js": 65681253,
|
||||
"./node_modules/core-js/modules/es6.string.fixed.js": 65727713,
|
||||
"./node_modules/core-js/modules/es6.array.every.js": 65745648,
|
||||
"./node_modules/core-js/modules/es7.reflect.metadata.js": 65785143,
|
||||
"./node_modules/react-dom/lib/SyntheticTransitionEvent.js": 65985587,
|
||||
"./node_modules/core-js/modules/_for-of.js": 65990801,
|
||||
"./node_modules/core-js/modules/_fails-is-regexp.js": 66044410,
|
||||
"./node_modules/core-js/modules/es6.math.expm1.js": 66101188,
|
||||
"./node_modules/core-js/modules/_meta.js": 66118721,
|
||||
"./node_modules/prop-types/lib/ReactPropTypesSecret.js": 66160704,
|
||||
"./node_modules/core-js/modules/_wks-ext.js": 66176955,
|
||||
"./node_modules/core-js/modules/_array-methods.js": 66178104,
|
||||
"./node_modules/core-js/modules/es6.object.define-properties.js": 66198013,
|
||||
"./node_modules/core-js/modules/_collection-weak.js": 66791205,
|
||||
"./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js": 66816856,
|
||||
"./node_modules/core-js/modules/es6.string.sub.js": 66867675,
|
||||
"./node_modules/react-dom/lib/quoteAttributeValueForBrowser.js": 66978548,
|
||||
"./node_modules/core-js/modules/_array-reduce.js": 66998306,
|
||||
"./node_modules/core-js/modules/es6.reflect.prevent-extensions.js": 67102175,
|
||||
"./node_modules/react-dom/lib/BeforeInputEventPlugin.js": 67490243,
|
||||
"./node_modules/core-js/modules/es6.string.repeat.js": 67565382,
|
||||
"./node_modules/react/lib/KeyEscapeUtils.js": 67675576,
|
||||
"./node_modules/react-dom/lib/checkReactTypeSpec.js": 68041610,
|
||||
"./node_modules/react/react.js": 68201172,
|
||||
"./node_modules/core-js/modules/es6.object.create.js": 68532080,
|
||||
"./node_modules/core-js/modules/es6.weak-map.js": 68546880,
|
||||
"./node_modules/react-dom/lib/ARIADOMPropertyConfig.js": 68748681,
|
||||
"./node_modules/react-dom/lib/ReactMarkupChecksum.js": 69061113,
|
||||
"./node_modules/core-js/modules/es7.symbol.async-iterator.js": 69087767,
|
||||
"./node_modules/core-js/modules/es6.string.fontsize.js": 69205651,
|
||||
"./node_modules/core-js/modules/es6.number.epsilon.js": 69229021,
|
||||
"./node_modules/core-js/modules/_ctx.js": 69517604,
|
||||
"./node_modules/core-js/modules/_string-ws.js": 69681511,
|
||||
"./node_modules/react-dom/lib/SyntheticWheelEvent.js": 69721208,
|
||||
"./node_modules/core-js/modules/es6.object.freeze.js": 69795613,
|
||||
"./node_modules/core-js/modules/_object-gops.js": 69877800,
|
||||
"./node_modules/core-js/modules/es6.string.blink.js": 70015654,
|
||||
"./node_modules/core-js/modules/_species-constructor.js": 70204371,
|
||||
"./node_modules/core-js/modules/es6.reflect.apply.js": 70488917,
|
||||
"./node_modules/fbjs/lib/warning.js": 70537722,
|
||||
"./node_modules/react-dom/lib/ReactMultiChild.js": 70556750,
|
||||
"./node_modules/core-js/modules/es6.object.is-sealed.js": 71000806,
|
||||
"./node_modules/react-dom/lib/ReactUpdates.js": 71025570,
|
||||
"./node_modules/core-js/modules/es6.math.tanh.js": 71111419,
|
||||
"./node_modules/core-js/modules/_array-from-iterable.js": 71164378,
|
||||
"./node_modules/core-js/modules/es6.number.is-finite.js": 71178955,
|
||||
"./node_modules/core-js/modules/es7.math.iaddh.js": 71775320,
|
||||
"./node_modules/core-js/modules/_classof.js": 71775566,
|
||||
"./node_modules/core-js/modules/_string-context.js": 71988466,
|
||||
"./node_modules/core-js/modules/es6.date.to-json.js": 72065510,
|
||||
"./node_modules/core-js/modules/es6.number.parse-int.js": 72181111,
|
||||
"./node_modules/core-js/modules/es6.array.filter.js": 72217154,
|
||||
"./node_modules/react-dom/lib/DOMNamespaces.js": 72487055,
|
||||
"./node_modules/core-js/modules/_library.js": 72504967,
|
||||
"./node_modules/core-js/modules/es6.string.fontcolor.js": 72558648,
|
||||
"./node_modules/core-js/modules/es7.object.lookup-getter.js": 72665103,
|
||||
"./node_modules/core-js/modules/es7.object.define-setter.js": 72781257,
|
||||
"./node_modules/core-js/modules/es7.reflect.define-metadata.js": 73140083,
|
||||
"./node_modules/react-dom/lib/getEventTarget.js": 73490307,
|
||||
"./node_modules/react-dom/lib/DefaultEventPluginOrder.js": 73857197,
|
||||
"./node_modules/react-dom/lib/findDOMNode.js": 73987548,
|
||||
"./node_modules/react-dom/lib/ReactDOMSelection.js": 74014822,
|
||||
"./node_modules/react-dom/lib/SyntheticTouchEvent.js": 74195699,
|
||||
"./node_modules/core-js/modules/_redefine-all.js": 74488508,
|
||||
"./node_modules/object-assign/index.js": 74527907,
|
||||
"./node_modules/react-dom/lib/SyntheticCompositionEvent.js": 74559765,
|
||||
"./node_modules/core-js/modules/_create-property.js": 74681982,
|
||||
"./node_modules/core-js/modules/_iterators.js": 74795300,
|
||||
"./node_modules/core-js/modules/es6.reflect.delete-property.js": 74830874,
|
||||
"./node_modules/core-js/modules/_is-array.js": 74851509,
|
||||
"./node_modules/core-js/modules/es7.map.to-json.js": 75201385,
|
||||
"./node_modules/core-js/modules/es6.object.assign.js": 75514774,
|
||||
"./node_modules/core-js/modules/es6.reflect.set.js": 75525505,
|
||||
"./node_modules/react-dom/lib/ReactDOMComponentFlags.js": 75568854,
|
||||
"./node_modules/core-js/modules/es6.regexp.replace.js": 75719811,
|
||||
"./node_modules/react-dom/lib/ReactDOMIDOperations.js": 75735452,
|
||||
"./node_modules/fbjs/lib/ExecutionEnvironment.js": 75874955,
|
||||
"./node_modules/core-js/modules/_task.js": 75895821,
|
||||
"./node_modules/core-js/modules/_partial.js": 76050914,
|
||||
"./node_modules/fbjs/lib/camelize.js": 76080607,
|
||||
"./node_modules/core-js/modules/es6.typed.uint8-clamped-array.js": 76140415,
|
||||
"./node_modules/react-dom/lib/LinkedValueUtils.js": 76160200,
|
||||
"./node_modules/core-js/modules/es6.reflect.set-prototype-of.js": 76542253,
|
||||
"./node_modules/react-dom/lib/ReactHostOperationHistoryHook.js": 76575571,
|
||||
"./node_modules/prop-types/factoryWithTypeCheckers.js": 76764969,
|
||||
"./node_modules/core-js/modules/_path.js": 76787767,
|
||||
"./node_modules/react-dom/lib/ReactDOM.js": 76789116,
|
||||
"./node_modules/react-dom/lib/ReactHostComponent.js": 76817312,
|
||||
"./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js": 76839980,
|
||||
"./node_modules/react-dom/lib/ReactInputSelection.js": 77028811,
|
||||
"./node_modules/core-js/modules/_fix-re-wks.js": 77096683,
|
||||
"./node_modules/core-js/modules/es7.object.values.js": 77171022,
|
||||
"./node_modules/core-js/modules/es6.array.index-of.js": 77188304,
|
||||
"./node_modules/react-dom/lib/ReactDefaultBatchingStrategy.js": 77520950,
|
||||
"./node_modules/core-js/modules/_is-object.js": 77562254,
|
||||
"./node_modules/core-js/modules/_object-dps.js": 78057822,
|
||||
"./node_modules/core-js/modules/es6.object.is.js": 78091382,
|
||||
"./node_modules/core-js/modules/es6.function.name.js": 78522205,
|
||||
"./node_modules/core-js/modules/_string-html.js": 78695048,
|
||||
"./node_modules/react-dom/index.js": 78757299,
|
||||
"./node_modules/core-js/modules/_array-species-constructor.js": 78789872,
|
||||
"./node_modules/react/lib/ReactBaseClasses.js": 78835767,
|
||||
"./node_modules/core-js/modules/_shared-key.js": 78977166,
|
||||
"./node_modules/react-dom/lib/setTextContent.js": 79001580,
|
||||
"./node_modules/react-dom/lib/ReactDOMOption.js": 79760472,
|
||||
"./node_modules/core-js/modules/web.timers.js": 79851621,
|
||||
"./node_modules/core-js/modules/es6.reflect.has.js": 79878513,
|
||||
"./node_modules/core-js/modules/es7.reflect.delete-metadata.js": 80080606,
|
||||
"./node_modules/core-js/modules/_array-copy-within.js": 80131310,
|
||||
"./node_modules/core-js/modules/_descriptors.js": 80577398,
|
||||
"./node_modules/core-js/modules/_redefine.js": 80731216,
|
||||
"./node_modules/core-js/modules/es6.promise.js": 81071697,
|
||||
"./node_modules/react-dom/lib/ReactInjection.js": 81476767,
|
||||
"./node_modules/react/lib/getNextDebugID.js": 81486675,
|
||||
"./node_modules/fbjs/lib/hyphenate.js": 81524911,
|
||||
"./node_modules/core-js/modules/es6.parse-float.js": 81526865,
|
||||
"./node_modules/core-js/modules/_keyof.js": 81699886,
|
||||
"./node_modules/core-js/modules/es7.object.lookup-setter.js": 81705374,
|
||||
"./node_modules/fbjs/lib/createArrayFromMixed.js": 81735690,
|
||||
"./node_modules/react-dom/lib/ReactDOMUnknownPropertyHook.js": 81758251,
|
||||
"./node_modules/core-js/modules/es6.typed.uint8-array.js": 81851689,
|
||||
"./node_modules/regenerator-runtime/runtime.js": 81871067,
|
||||
"./node_modules/core-js/modules/es6.date.to-string.js": 81885386,
|
||||
"./node_modules/react-dom/lib/ReactErrorUtils.js": 82075189,
|
||||
"./node_modules/prop-types/checkPropTypes.js": 82115216,
|
||||
"./node_modules/core-js/modules/es6.array.find.js": 82131307,
|
||||
"./node_modules/react-dom/lib/getNodeForCharacterOffset.js": 82439899,
|
||||
"./node_modules/core-js/modules/es6.math.clz32.js": 82508199,
|
||||
"./node_modules/fbjs/lib/hyphenateStyleName.js": 82552089,
|
||||
"./node_modules/core-js/modules/es6.array.of.js": 82665498,
|
||||
"./node_modules/core-js/modules/es6.array.map.js": 82671617,
|
||||
"./node_modules/react-dom/lib/SelectEventPlugin.js": 82765643,
|
||||
"./node_modules/core-js/modules/es6.array.from.js": 82830015,
|
||||
"./node_modules/core-js/modules/es6.regexp.match.js": 82850267,
|
||||
"./node_modules/fbjs/lib/isTextNode.js": 83057514,
|
||||
"./node_modules/core-js/modules/_iter-call.js": 83107943,
|
||||
"./node_modules/core-js/modules/es6.array.join.js": 83154754,
|
||||
"./node_modules/react-dom/lib/ReactDOMInput.js": 83212311,
|
||||
"./node_modules/react-dom/lib/DOMChildrenOperations.js": 83491114,
|
||||
"./node_modules/core-js/modules/es7.reflect.get-metadata.js": 83517877,
|
||||
"./node_modules/react-dom/lib/SyntheticClipboardEvent.js": 83525447,
|
||||
"./node_modules/react/lib/checkReactTypeSpec.js": 83535217,
|
||||
"./node_modules/core-js/modules/es6.reflect.define-property.js": 83565249,
|
||||
"./node_modules/react/lib/createClass.js": 83764373,
|
||||
"./node_modules/react-dom/lib/ReactEventEmitterMixin.js": 83866956,
|
||||
"./node_modules/core-js/modules/es6.number.is-nan.js": 84160374,
|
||||
"./node_modules/core-js/modules/_is-integer.js": 84532255,
|
||||
"./node_modules/react-dom/lib/ReactNodeTypes.js": 84742148,
|
||||
"./node_modules/core-js/modules/es7.array.includes.js": 84771615,
|
||||
"./node_modules/core-js/modules/es6.object.define-property.js": 84838568,
|
||||
"./node_modules/react-dom/lib/ReactInstrumentation.js": 84876666,
|
||||
"./node_modules/core-js/modules/_uid.js": 85525802,
|
||||
"./node_modules/core-js/modules/_object-keys.js": 85579755,
|
||||
"./node_modules/core-js/modules/es6.array.reduce.js": 85718057,
|
||||
"./node_modules/core-js/modules/_string-repeat.js": 85725285,
|
||||
"./node_modules/react-dom/lib/EventPluginHub.js": 85760782,
|
||||
"./node_modules/react-dom/lib/PooledClass.js": 85815548,
|
||||
"./node_modules/fbjs/lib/emptyFunction.js": 85820220,
|
||||
"./node_modules/core-js/modules/_typed-buffer.js": 86071307,
|
||||
"./node_modules/react-dom/lib/Transaction.js": 86551850,
|
||||
"./node_modules/core-js/modules/es6.math.log10.js": 86858756,
|
||||
"./node_modules/react-dom/lib/accumulateInto.js": 87028616,
|
||||
"./node_modules/core-js/modules/es6.array.for-each.js": 87157416,
|
||||
"./node_modules/core-js/modules/_metadata.js": 87219752,
|
||||
"./node_modules/core-js/modules/_object-gopn.js": 87230948,
|
||||
"./node_modules/react-dom/lib/forEachAccumulated.js": 87488377,
|
||||
"./node_modules/react-dom/lib/flattenChildren.js": 87506812,
|
||||
"./node_modules/core-js/modules/_collection-to-json.js": 87565652,
|
||||
"./node_modules/react-dom/lib/SimpleEventPlugin.js": 87674973,
|
||||
"./node_modules/react/lib/ReactCurrentOwner.js": 87681554,
|
||||
"./node_modules/core-js/modules/es6.function.bind.js": 87740503,
|
||||
"./node_modules/react-dom/lib/ReactFeatureFlags.js": 88041685,
|
||||
"./node_modules/fbjs/lib/getActiveElement.js": 89018800,
|
||||
"./node_modules/react-dom/lib/FallbackCompositionState.js": 89138897,
|
||||
"./node_modules/core-js/modules/es7.math.isubh.js": 89497643,
|
||||
"./node_modules/core-js/modules/es6.number.to-precision.js": 89531208,
|
||||
"./node_modules/react/lib/ReactElement.js": 89665721,
|
||||
"./node_modules/core-js/modules/es6.math.cbrt.js": 89831775,
|
||||
"./node_modules/react-dom/lib/CSSPropertyOperations.js": 89896880,
|
||||
"./node_modules/react-dom/lib/ReactVersion.js": 90074780,
|
||||
"./node_modules/react/lib/React.js": 90100878,
|
||||
"./node_modules/react-dom/lib/ReactInstanceMap.js": 90190916,
|
||||
"./node_modules/react-dom/lib/ReactDebugTool.js": 90482112,
|
||||
"./node_modules/core-js/modules/es6.object.is-frozen.js": 90501512,
|
||||
"./node_modules/core-js/modules/_cof.js": 90540102,
|
||||
"./node_modules/core-js/modules/_add-to-unscopables.js": 90560147,
|
||||
"./node_modules/react-dom/lib/ReactReconcileTransaction.js": 90774984,
|
||||
"./node_modules/core-js/modules/es6.string.trim.js": 90875310,
|
||||
"./node_modules/react-dom/lib/DOMPropertyOperations.js": 91201182,
|
||||
"./node_modules/core-js/modules/es6.regexp.split.js": 97481147,
|
||||
"./node_modules/react-dom/lib/ReactPropTypesSecret.js": 97538943,
|
||||
"./node_modules/core-js/modules/es6.function.has-instance.js": 97559888,
|
||||
"./node_modules/react-dom/lib/EventPluginUtils.js": 97706684,
|
||||
"./node_modules/core-js/fn/regexp/escape.js": 97766655,
|
||||
"./node_modules/react-dom/lib/ViewportMetrics.js": 98576983,
|
||||
"./node_modules/react-dom/lib/setInnerHTML.js": 98678775,
|
||||
"./node_modules/react-dom/lib/ReactDOMEmptyComponent.js": 98688898,
|
||||
"./node_modules/react/lib/ReactPropTypes.js": 98797878,
|
||||
"./node_modules/react-dom/lib/validateDOMNesting.js": 98798555,
|
||||
"./node_modules/core-js/modules/es6.weak-set.js": 98828582,
|
||||
"./node_modules/react-dom/lib/SyntheticDragEvent.js": 98830515,
|
||||
"./node_modules/core-js/modules/es6.reflect.enumerate.js": 98837014,
|
||||
"./node_modules/core-js/modules/es6.array.slice.js": 99167110,
|
||||
"./node_modules/core-js/modules/es6.string.big.js": 99496848,
|
||||
"./node_modules/core-js/modules/es7.error.is-error.js": 99539012,
|
||||
"./node_modules/core-js/modules/es7.math.imulh.js": 99680816,
|
||||
"./node_modules/core-js/modules/es6.set.js": 100122217,
|
||||
"./node_modules/core-js/modules/es6.reflect.get-prototype-of.js": 100489767,
|
||||
"./node_modules/core-js/modules/_to-length.js": 100746715,
|
||||
"./node_modules/core-js/modules/es6.reflect.is-extensible.js": 101017317,
|
||||
"./node_modules/core-js/modules/_object-gopn-ext.js": 101191208,
|
||||
"./node_modules/core-js/modules/es6.array.some.js": 101198489,
|
||||
"./node_modules/react-dom/lib/getVendorPrefixedEventName.js": 101202072,
|
||||
"./node_modules/react-dom/lib/ReactDOMTreeTraversal.js": 101215247,
|
||||
"./node_modules/react-dom/lib/ReactChildReconciler.js": 101230651,
|
||||
"./node_modules/core-js/modules/_object-assign.js": 101516712,
|
||||
"./node_modules/core-js/modules/es6.reflect.own-keys.js": 101548386,
|
||||
"./node_modules/react/lib/ReactVersion.js": 101760775,
|
||||
"./node_modules/core-js/modules/es6.string.strike.js": 101792217,
|
||||
"./node_modules/core-js/modules/_an-object.js": 101845351,
|
||||
"./node_modules/react-dom/lib/getEventModifierState.js": 101862265,
|
||||
"./node_modules/core-js/modules/_iter-create.js": 101990380,
|
||||
"./node_modules/react-dom/lib/isEventSupported.js": 102040698,
|
||||
"./node_modules/fbjs/lib/containsNode.js": 102131452,
|
||||
"./node_modules/core-js/modules/es6.typed.int16-array.js": 102697219,
|
||||
"./node_modules/react/lib/canDefineProperty.js": 102700379,
|
||||
"./node_modules/core-js/modules/es6.string.includes.js": 102725612,
|
||||
"./node_modules/core-js/modules/es6.string.italics.js": 102830503,
|
||||
"./node_modules/core-js/modules/_typed.js": 103021511,
|
||||
"./node_modules/core-js/modules/_to-iobject.js": 103551598,
|
||||
"./node_modules/react-dom/lib/inputValueTracking.js": 103755156,
|
||||
"./node_modules/fbjs/lib/getMarkupWrap.js": 103821418,
|
||||
"./node_modules/react-dom/lib/ReactDOMContainerInfo.js": 104037398,
|
||||
"./node_modules/core-js/modules/_math-log1p.js": 104041006,
|
||||
"./node_modules/react-dom/lib/renderSubtreeIntoContainer.js": 104145583,
|
||||
"./node_modules/core-js/modules/es7.object.define-getter.js": 104181181,
|
||||
"./node_modules/react-dom/lib/ReactServerUpdateQueue.js": 104185022,
|
||||
"./node_modules/core-js/modules/es7.object.entries.js": 104206980,
|
||||
"./node_modules/core-js/modules/_bind.js": 104565169,
|
||||
"./node_modules/core-js/modules/es6.typed.int32-array.js": 104740811,
|
||||
"./node_modules/core-js/modules/es6.array.fill.js": 104858154,
|
||||
"./node_modules/core-js/modules/_collection.js": 104878966,
|
||||
"./node_modules/core-js/modules/_flags.js": 105040815,
|
||||
"./node_modules/react-dom/lib/getEventCharCode.js": 105072316,
|
||||
"./node_modules/core-js/modules/_array-fill.js": 105130483,
|
||||
"./node_modules/core-js/modules/es7.string.trim-right.js": 105212049,
|
||||
"./node_modules/core-js/modules/es6.object.get-own-property-names.js": 105505147,
|
||||
"./node_modules/core-js/modules/es6.math.atanh.js": 105860607,
|
||||
"./node_modules/react-dom/lib/ReactEventListener.js": 105876872,
|
||||
"./node_modules/core-js/modules/core.get-iterator-method.js": 105974352,
|
||||
"./node_modules/core-js/modules/es6.regexp.to-string.js": 106030885,
|
||||
"./node_modules/core-js/modules/_array-species-create.js": 106039815,
|
||||
"./node_modules/fbjs/lib/memoizeStringOnly.js": 106055273,
|
||||
"./node_modules/core-js/modules/es6.map.js": 106117577,
|
||||
"./node_modules/core-js/modules/_export.js": 106226798,
|
||||
"./node_modules/fbjs/lib/EventListener.js": 106557808,
|
||||
"./node_modules/react-dom/lib/ReactDOMComponentTree.js": 106660072,
|
||||
"./node_modules/core-js/modules/es7.observable.js": 106708108,
|
||||
"./node_modules/core-js/modules/es6.date.to-primitive.js": 106821081,
|
||||
"./node_modules/react/lib/ReactComponentTreeHook.js": 106839052,
|
||||
"./node_modules/fbjs/lib/performance.js": 107548981,
|
||||
"./node_modules/core-js/modules/_own-keys.js": 107656707,
|
||||
"./node_modules/fbjs/lib/isNode.js": 107757687,
|
||||
"./node_modules/react-dom/lib/instantiateReactComponent.js": 107769857,
|
||||
"./node_modules/core-js/modules/es6.math.hypot.js": 107771816,
|
||||
"./node_modules/core-js/modules/es6.string.sup.js": 107781576,
|
||||
"./node_modules/react-dom/lib/traverseAllChildren.js": 107785414,
|
||||
"./node_modules/core-js/modules/es6.number.constructor.js": 107827171,
|
||||
"./node_modules/core-js/modules/es6.array.last-index-of.js": 107871776,
|
||||
"./node_modules/react-dom/lib/getHostComponentFromComposite.js": 108055378,
|
||||
"./node_modules/core-js/modules/es6.reflect.get.js": 108185690,
|
||||
"./node_modules/core-js/modules/_object-to-array.js": 109068185,
|
||||
"./node_modules/react-dom/lib/adler32.js": 109161919,
|
||||
"./node_modules/fbjs/lib/shallowEqual.js": 109217705,
|
||||
"./node_modules/core-js/modules/es6.math.sinh.js": 109492298,
|
||||
"./node_modules/react-dom/lib/SyntheticEvent.js": 109494965,
|
||||
"./node_modules/core-js/modules/es7.symbol.observable.js": 109578413,
|
||||
"./node_modules/core-js/modules/es6.object.keys.js": 109579766,
|
||||
"./node_modules/react-dom/lib/ReactReconciler.js": 109705716,
|
||||
"./node_modules/core-js/modules/_iter-define.js": 109724885,
|
||||
"./node_modules/react-dom/lib/CallbackQueue.js": 109838153,
|
||||
"./node_modules/core-js/modules/es6.math.sign.js": 109910857,
|
||||
"./node_modules/core-js/modules/_iter-detect.js": 110005450,
|
||||
"./node_modules/create-react-class/factory.js": 110010301,
|
||||
"./node_modules/react/lib/ReactNoopUpdateQueue.js": 110042017,
|
||||
"./node_modules/core-js/modules/_object-forced-pam.js": 110051208,
|
||||
"./node_modules/core-js/modules/es7.string.pad-end.js": 110504909,
|
||||
"./node_modules/core-js/modules/es6.math.cosh.js": 110701601,
|
||||
"./node_modules/core-js/modules/_iobject.js": 110719817,
|
||||
"./node_modules/react-dom/lib/Danger.js": 110725584,
|
||||
"./node_modules/react-dom/lib/getIteratorFn.js": 110730207,
|
||||
"./node_modules/core-js/modules/es6.object.get-own-property-descriptor.js": 110741721,
|
||||
"./node_modules/react-dom/lib/ReactDOMSelect.js": 111001717,
|
||||
"./node_modules/core-js/modules/es6.array.sort.js": 111148702,
|
||||
"./node_modules/react/lib/PooledClass.js": 111152184,
|
||||
"./node_modules/react/lib/ReactPropTypesSecret.js": 111171651,
|
||||
"./node_modules/core-js/modules/es7.string.match-all.js": 111178252,
|
||||
"./node_modules/core-js/modules/_object-dp.js": 111195701,
|
||||
"./node_modules/react-dom/lib/SVGDOMPropertyConfig.js": 111675802,
|
||||
"./node_modules/core-js/modules/es6.date.to-iso-string.js": 111721418,
|
||||
"./node_modules/react-dom/lib/ChangeEventPlugin.js": 111757801,
|
||||
"./node_modules/react-dom/lib/EnterLeaveEventPlugin.js": 111790956,
|
||||
"./node_modules/react-dom/lib/ReactDOMComponent.js": 111814809,
|
||||
"./node_modules/core-js/modules/es6.math.asinh.js": 111984949,
|
||||
"./node_modules/core-js/modules/_inherit-if-required.js": 112042102,
|
||||
"./node_modules/react-dom/lib/escapeTextContentForBrowser.js": 112098151,
|
||||
"./node_modules/core-js/modules/_replacer.js": 112580376,
|
||||
"./node_modules/process/browser.js": 112667218,
|
||||
"./node_modules/core-js/modules/es6.regexp.flags.js": 112690468,
|
||||
"./node_modules/react-dom/lib/getTextContentAccessor.js": 113048104,
|
||||
"./node_modules/core-js/modules/es7.string.trim-left.js": 113132100,
|
||||
"./node_modules/core-js/modules/es6.number.is-integer.js": 113198276,
|
||||
"./node_modules/core-js/modules/es6.math.acosh.js": 113215147,
|
||||
"./node_modules/react-dom/lib/ReactComponentBrowserEnvironment.js": 113226943,
|
||||
"./node_modules/fbjs/lib/createNodesFromMarkup.js": 113497967,
|
||||
"./node_modules/core-js/modules/es6.string.small.js": 113671451,
|
||||
"./node_modules/core-js/modules/es6.typed.data-view.js": 113765266,
|
||||
"./node_modules/core-js/modules/_math-sign.js": 114168721,
|
||||
"./node_modules/core-js/modules/es6.math.log1p.js": 114171267,
|
||||
"./node_modules/core-js/modules/_wks-define.js": 114531886,
|
||||
"./node_modules/react/lib/ReactPropTypeLocationNames.js": 114558189,
|
||||
"./node_modules/fbjs/lib/performanceNow.js": 114772209,
|
||||
"./node_modules/core-js/modules/_to-object.js": 115028688,
|
||||
"./node_modules/core-js/modules/_set-to-string-tag.js": 115135213,
|
||||
"./node_modules/core-js/modules/es6.string.bold.js": 115215157,
|
||||
"./node_modules/core-js/modules/es7.set.to-json.js": 115490874,
|
||||
"./node_modules/fbjs/lib/camelizeStyleName.js": 115558367,
|
||||
"./node_modules/core-js/modules/_object-sap.js": 115561802,
|
||||
"./node_modules/core-js/modules/_microtask.js": 115706612,
|
||||
"./node_modules/react-dom/lib/HTMLDOMPropertyConfig.js": 115796567,
|
||||
"./node_modules/react/lib/ReactChildren.js": 115878681,
|
||||
"./node_modules/core-js/modules/_object-create.js": 115899775,
|
||||
"./node_modules/react-dom/lib/KeyEscapeUtils.js": 115974974,
|
||||
"./node_modules/react-dom/lib/createMicrosoftUnsafeLocalFunction.js": 116040616,
|
||||
"./node_modules/core-js/modules/es6.array.species.js": 116101051,
|
||||
"./node_modules/core-js/modules/es7.reflect.get-own-metadata.js": 116140648,
|
||||
"./node_modules/react-dom/lib/ReactPropTypeLocationNames.js": 116148552,
|
||||
"./node_modules/core-js/modules/_core.js": 116155765,
|
||||
"./node_modules/core-js/modules/es6.date.now.js": 116181577,
|
||||
"./node_modules/core-js/modules/es6.string.raw.js": 116504757,
|
||||
"./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js": 116764420,
|
||||
"./node_modules/core-js/modules/es6.typed.uint32-array.js": 116788078,
|
||||
"./node_modules/core-js/modules/es6.array.copy-within.js": 116878466,
|
||||
"./node_modules/core-js/modules/es6.string.iterator.js": 116987603,
|
||||
"./node_modules/core-js/modules/es6.math.trunc.js": 117057982,
|
||||
"./node_modules/react-dom/lib/isTextInputElement.js": 117707497,
|
||||
"./node_modules/react-dom/lib/ReactDOMInvalidARIAHook.js": 117711020,
|
||||
"./node_modules/core-js/modules/_object-gopd.js": 117740690,
|
||||
"./node_modules/core-js/modules/_property-desc.js": 117745500,
|
||||
"./node_modules/core-js/modules/es6.symbol.js": 117871057,
|
||||
"./node_modules/core-js/modules/es6.object.get-prototype-of.js": 118005217,
|
||||
"./node_modules/react/lib/reactProdInvariant.js": 118495602,
|
||||
"./node_modules/core-js/modules/web.dom.iterable.js": 118546606,
|
||||
"./node_modules/core-js/modules/_object-keys-internal.js": 118764890,
|
||||
"./node_modules/core-js/modules/_object-pie.js": 119068312,
|
||||
"./node_modules/core-js/modules/es6.math.fround.js": 119100913,
|
||||
"./node_modules/core-js/modules/_set-proto.js": 119105183,
|
||||
"./node_modules/core-js/modules/es6.number.to-fixed.js": 119189748,
|
||||
"./node_modules/core-js/modules/es6.string.starts-with.js": 119508365,
|
||||
"./node_modules/fbjs/lib/invariant.js": 119828543,
|
||||
"./node_modules/react-dom/lib/SyntheticInputEvent.js": 120008009,
|
||||
"./node_modules/babel-polyfill/lib/index.js": 120090918,
|
||||
"./node_modules/react-dom/lib/SyntheticUIEvent.js": 120107086,
|
||||
"./node_modules/react-dom/lib/ReactElementSymbol.js": 120118872,
|
||||
"./node_modules/core-js/modules/es6.typed.int8-array.js": 120137743,
|
||||
"./node_modules/react-dom/lib/ReactBrowserEventEmitter.js": 120218368,
|
||||
"./node_modules/core-js/modules/_string-at.js": 120542177,
|
||||
"./node_modules/core-js/modules/es6.array.is-array.js": 120560570,
|
||||
"./node_modules/core-js/modules/_iter-step.js": 120569851,
|
||||
"./node_modules/react-dom/lib/SyntheticAnimationEvent.js": 120578147,
|
||||
"./node_modules/core-js/modules/es6.string.from-code-point.js": 120837751,
|
||||
"./node_modules/react-dom/lib/AutoFocusUtils.js": 120899975,
|
||||
"./node_modules/core-js/modules/_invoke.js": 120999886,
|
||||
"./node_modules/core-js/modules/_html.js": 121064798,
|
||||
"./node_modules/core-js/modules/es6.typed.uint16-array.js": 121220054,
|
||||
"./node_modules/core-js/modules/_string-trim.js": 121540950,
|
||||
"./node_modules/core-js/modules/_an-instance.js": 121748470,
|
||||
"./node_modules/core-js/modules/_to-integer.js": 122068679,
|
||||
"./node_modules/core-js/modules/es6.number.parse-float.js": 122072202,
|
||||
"./node_modules/react-dom/lib/ReactDefaultInjection.js": 122149809,
|
||||
"./node_modules/react-dom/lib/ReactServerRenderingTransaction.js": 122177147,
|
||||
"./node_modules/react-dom/lib/ReactInvalidSetStateWarningHook.js": 122481051,
|
||||
"./node_modules/react-dom/lib/ReactOwner.js": 122786567,
|
||||
"./node_modules/core-js/modules/es6.regexp.search.js": 122799798,
|
||||
"./node_modules/fbjs/lib/getUnboundedScrollPosition.js": 122805178,
|
||||
"./node_modules/core-js/modules/es6.string.code-point-at.js": 122825821,
|
||||
"./node_modules/core-js/modules/es6.string.ends-with.js": 122831055,
|
||||
"./node_modules/fbjs/lib/focusNode.js": 122990582,
|
||||
"./node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js": 123064988,
|
||||
"./node_modules/core-js/modules/_same-value.js": 123181718
|
||||
}
|
||||
}
|
23
client/.eslintrc.js
Normal file
23
client/.eslintrc.js
Normal file
@ -0,0 +1,23 @@
|
||||
module.exports = {
|
||||
parser: 'babel-eslint',
|
||||
extends: ["eslint:recommended", "plugin:react/recommended"],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
parserOptions: {
|
||||
"sourceType": 'module',
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
"react"
|
||||
],
|
||||
rules: {
|
||||
"indent": ["error", 2, { "SwitchCase": 1 }],
|
||||
"react/display-name": ["off"],
|
||||
"react/jsx-indent": ["error", 2],
|
||||
"comma-dangle": ["error", "only-multiline"],
|
||||
"no-console": ["off"]
|
||||
}
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
import LoginRedux from './reducer/Login/Login_redux.js'
|
||||
import group from './reducer/group/group.js'
|
||||
|
||||
export default {
|
||||
LoginRedux
|
||||
}
|
||||
LoginRedux,
|
||||
group
|
||||
}
|
||||
|
22
client/actions/group.js
Normal file
22
client/actions/group.js
Normal file
@ -0,0 +1,22 @@
|
||||
import {
|
||||
FETCH_GROUP_LIST,
|
||||
FETCH_CURR_GROUP
|
||||
} from '../constants/action-types';
|
||||
|
||||
export function fetchGroupList() {
|
||||
return {
|
||||
type: FETCH_GROUP_LIST,
|
||||
payload: {
|
||||
data: ['MFE', 'Hotel', 'Vacation', 'Flight', 'Pay']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function fetchCurrGroup() {
|
||||
return {
|
||||
type: FETCH_CURR_GROUP,
|
||||
payload: {
|
||||
data: 'MFE'
|
||||
}
|
||||
}
|
||||
}
|
47
client/components/GroupList/GroupList.js
Normal file
47
client/components/GroupList/GroupList.js
Normal file
@ -0,0 +1,47 @@
|
||||
import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import { Card } from 'antd'
|
||||
|
||||
import {
|
||||
fetchGroupList,
|
||||
fetchCurrGroup
|
||||
} from '../../actions/group.js'
|
||||
|
||||
import './GroupList.scss'
|
||||
|
||||
@connect(
|
||||
state => ({
|
||||
groupList: state.group.groupList,
|
||||
currGroup: state.group.currGroup,
|
||||
}),
|
||||
{
|
||||
fetchGroupList,
|
||||
fetchCurrGroup
|
||||
}
|
||||
)
|
||||
export default class GroupList extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
|
||||
static propTypes = {
|
||||
groupList: PropTypes.array,
|
||||
currGroup: PropTypes.string
|
||||
}
|
||||
|
||||
render () {
|
||||
const { groupList, currGroup } = this.props;
|
||||
|
||||
return (
|
||||
<Card title="Groups">
|
||||
<div>{currGroup}</div>
|
||||
{
|
||||
groupList.map((group, index) => (
|
||||
<div key={index}>{group}</div>
|
||||
))
|
||||
}
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
}
|
0
client/components/GroupList/GroupList.scss
Normal file
0
client/components/GroupList/GroupList.scss
Normal file
@ -1,6 +1,6 @@
|
||||
import './Header.scss'
|
||||
import React, { Component } from 'react'
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
class Header extends Component {
|
||||
constructor(props) {
|
||||
@ -29,4 +29,4 @@ class Header extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default Header
|
||||
export default Header
|
||||
|
3
client/constants/action-types.js
Normal file
3
client/constants/action-types.js
Normal file
@ -0,0 +1,3 @@
|
||||
// group
|
||||
export const FETCH_GROUP_LIST = 'FETCH_GROUP_LIST'
|
||||
export const FETCH_CURR_GROUP = 'FETCH_CURR_GROUP'
|
@ -1,9 +1,7 @@
|
||||
// import { React, Component } from '../../base.js'
|
||||
import './Home.scss'
|
||||
import React, { Component } from 'react'
|
||||
import { Button, Input, Icon, Checkbox } from 'antd'
|
||||
import Header from '../../components/Header/Header.js'
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
|
||||
|
||||
class Home extends Component {
|
||||
constructor(props) {
|
||||
@ -19,4 +17,4 @@ class Home extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default Home
|
||||
export default Home
|
||||
|
@ -1,14 +1,23 @@
|
||||
import './Login.scss';
|
||||
import React, { Component } from 'react';
|
||||
import { Form, Button, Input, Icon, Checkbox } from 'antd';
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
|
||||
import './Login.scss'
|
||||
import React, { Component } from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Form, Button, Input, Icon, Checkbox } from 'antd'
|
||||
const FormItem = Form.Item;
|
||||
|
||||
@connect(
|
||||
() => ({
|
||||
per: '测试数据',
|
||||
})
|
||||
)
|
||||
class Login extends Component {
|
||||
static propTypes = {
|
||||
form: PropTypes.object,
|
||||
}
|
||||
|
||||
handleSubmit = (e) => {
|
||||
e.preventDefault();
|
||||
const form = this.props.form;
|
||||
|
||||
// 获取全部组件的值
|
||||
// console.log(form.getFieldsValue());
|
||||
form.validateFields((err, values) => {
|
||||
@ -17,6 +26,7 @@ class Login extends Component {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
const { getFieldDecorator } = this.props.form;
|
||||
return (
|
||||
|
@ -1,12 +1,10 @@
|
||||
import React, { Component } from 'react'
|
||||
import { createStore, combineReducers } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import Login from './Login.js'
|
||||
|
||||
// Action
|
||||
const increaseAction = { type: 'increase' }
|
||||
|
||||
function mapStateToProps(state) {
|
||||
function mapStateToProps() {
|
||||
return {
|
||||
per: '测试数据'
|
||||
}
|
||||
|
@ -1,5 +1,20 @@
|
||||
import React from 'react'
|
||||
import React, { Component } from 'react'
|
||||
import GroupList from '../../components/GroupList/GroupList.js'
|
||||
|
||||
export default _ => {
|
||||
return <p>fadsfads</p>
|
||||
}
|
||||
import './ProjectGroups.scss'
|
||||
|
||||
export default class ProjectGroups extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<div>
|
||||
<div className="groups-left">
|
||||
<GroupList></GroupList>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
4
client/containers/ProjectGroups/ProjectGroups.scss
Normal file
4
client/containers/ProjectGroups/ProjectGroups.scss
Normal file
@ -0,0 +1,4 @@
|
||||
.groups-left {
|
||||
width: 250px;
|
||||
margin: 20px;
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
import Home from './Home/Home.js'
|
||||
import Login from './Login/Login_container.js'
|
||||
import Login from './Login/Login.js'
|
||||
import ProjectGroups from './ProjectGroups/ProjectGroups.js'
|
||||
|
||||
export {
|
||||
Home,
|
||||
Login,
|
||||
ProjectGroups
|
||||
}
|
||||
ProjectGroups,
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
import React from 'react'
|
||||
import 'babel-polyfill'
|
||||
import ReactDOM from 'react-dom'
|
||||
import App from './App'
|
||||
import { createStore, combineReducers } from 'redux'
|
||||
import { Provider, connect } from 'react-redux'
|
||||
import { Provider } from 'react-redux'
|
||||
import ReduxContainer from './ReduxContainer.js'
|
||||
|
||||
// 合并 redux 创建stroe
|
||||
|
@ -1,5 +1,3 @@
|
||||
import React, { Component } from 'react'
|
||||
|
||||
export default function (state = 3, action) {
|
||||
const count = state
|
||||
switch (action.type) {
|
||||
|
35
client/reducer/group/group.js
Normal file
35
client/reducer/group/group.js
Normal file
@ -0,0 +1,35 @@
|
||||
import {
|
||||
FETCH_GROUP_LIST,
|
||||
FETCH_CURR_GROUP
|
||||
} from '../../constants/action-types';
|
||||
|
||||
const initialState = {
|
||||
groupList: ['Hotel', 'Vacation', 'Flight', 'Pay'],
|
||||
currGroup: 'MFE'
|
||||
};
|
||||
|
||||
export default (state = initialState, action) => {
|
||||
switch (action.type) {
|
||||
case FETCH_GROUP_LIST: {
|
||||
if (action.payload.res) {
|
||||
return {
|
||||
...state,
|
||||
groupList: action.payload.data,
|
||||
};
|
||||
}
|
||||
return state;
|
||||
}
|
||||
case FETCH_CURR_GROUP: {
|
||||
if (action.payload.res) {
|
||||
return {
|
||||
...state,
|
||||
currGroup: action.payload.data,
|
||||
};
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
@ -1,8 +1,8 @@
|
||||
import React from 'react'
|
||||
import { BrowserRouter as Router, Route, Link, HashRouter } from 'react-router-dom'
|
||||
import { Route, HashRouter } from 'react-router-dom'
|
||||
import { Home, Login, ProjectGroups } from './containers/index'
|
||||
|
||||
export default store => {
|
||||
export default () => {
|
||||
return (
|
||||
<HashRouter>
|
||||
<div className="router-main">
|
||||
@ -12,4 +12,4 @@ export default store => {
|
||||
</div>
|
||||
</HashRouter>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -36,6 +36,6 @@ em {
|
||||
// 页面最外层元素 样式
|
||||
.router-main {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-orient: vertical;
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
$commonUrl: @import '../../styles/common.scss';
|
||||
$commonUrl: @import '../../styles/common.scss';
|
||||
|
@ -4,9 +4,7 @@
|
||||
"description": "YAPI",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build-server": "babel server -d server_dist",
|
||||
"dev-server": "nodemon server_dist/app.js dev"
|
||||
"start": "webpack-dev-server"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -16,6 +14,7 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@qnpm/ykit-config-qunar": "^0.8.1",
|
||||
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
||||
"fs-extra": "^3.0.1",
|
||||
"jsonwebtoken": "^7.4.1",
|
||||
"koa": "^2.0.0",
|
||||
@ -32,6 +31,8 @@
|
||||
"mongoose-auto-increment": "^5.0.1",
|
||||
"node-sass-china": "^4.5.0",
|
||||
"nodemailer": "^4.0.1",
|
||||
"prop-types": "^15.5.10",
|
||||
"sha1": "^1.1.1",
|
||||
"redux": "^3.7.1",
|
||||
"sha1": "^1.1.1",
|
||||
"ykit-config-antd": "^0.1.3",
|
||||
|
@ -63,7 +63,7 @@ createAction('interface', 'del', 'post', 'del')
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param {*} controller controller_name
|
||||
* @param {*} path request_path
|
||||
* @param {*} method request_method , post get put delete ...
|
||||
@ -81,7 +81,6 @@ function createAction(controller, path, method, action){
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = router
|
||||
|
||||
|
@ -56,6 +56,5 @@ let r = {
|
||||
delInst: delInst,
|
||||
getInsts: insts
|
||||
}
|
||||
|
||||
if(mail) r.mail = mail;
|
||||
module.exports = r;
|
||||
module.exports = r;
|
||||
|
@ -1,19 +0,0 @@
|
||||
{
|
||||
"port": "3000",
|
||||
"webhost": "127.0.0.1",
|
||||
"adminAccount": "admin@admin.com",
|
||||
"db": {
|
||||
"servername": "127.0.0.1",
|
||||
"DATABASE": "yapi",
|
||||
"port": 27017
|
||||
},
|
||||
"mail": {
|
||||
"host": "smtp.163.com",
|
||||
"port": 465,
|
||||
"auth": {
|
||||
"user": "hellosean1025@163.com",
|
||||
"pass": "helloqunar123"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
{
|
||||
"port": "80",
|
||||
"webhost": "127.0.0.1",
|
||||
"adminAccount": "admin@admin.com",
|
||||
"db": {
|
||||
"servername": "127.0.0.1",
|
||||
"DATABASE": "yapi",
|
||||
"port": 27017
|
||||
},
|
||||
"mail": {
|
||||
"host": "smtp.163.com",
|
||||
"port": 465,
|
||||
"auth": {
|
||||
"user": "***********@163.com",
|
||||
"pass": "*********"
|
||||
}
|
||||
}
|
||||
}
|
@ -88,7 +88,7 @@ createAction('interface', 'up', 'post', 'up');
|
||||
createAction('interface', 'del', 'post', 'del');
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param {*} controller controller_name
|
||||
* @param {*} path request_path
|
||||
* @param {*} method request_method , post get put delete ...
|
||||
|
@ -81,6 +81,5 @@ var r = {
|
||||
delInst: delInst,
|
||||
getInsts: insts
|
||||
};
|
||||
|
||||
if (mail) r.mail = mail;
|
||||
module.exports = r;
|
1
ver/chunk.json.ver
Normal file
1
ver/chunk.json.ver
Normal file
@ -0,0 +1 @@
|
||||
4c1b3161122796d85b75b3c0f041cd26
|
1
ver/index.css.ver
Normal file
1
ver/index.css.ver
Normal file
@ -0,0 +1 @@
|
||||
064c5c9b316a6ad40669
|
1
ver/index.js.ver
Normal file
1
ver/index.js.ver
Normal file
@ -0,0 +1 @@
|
||||
064c5c9b316a6ad40669
|
3
ver/versions.mapping
Normal file
3
ver/versions.mapping
Normal file
@ -0,0 +1,3 @@
|
||||
index.css#064c5c9b316a6ad40669
|
||||
index.js#064c5c9b316a6ad40669
|
||||
chunk.json#4c1b3161122796d85b75b3c0f041cd26
|
61
webpack.config.js
Normal file
61
webpack.config.js
Normal file
@ -0,0 +1,61 @@
|
||||
const webpack = require('webpack')
|
||||
const path = require('path')
|
||||
const nodeExternals = require('webpack-node-externals')
|
||||
const ExtractTextPlugin = require("extract-text-webpack-plugin")
|
||||
|
||||
module.exports = {
|
||||
// context: 如果不通过path.resolve 配置入口访问路径 watch: true失效
|
||||
context: path.resolve('./client'),
|
||||
|
||||
entry: {
|
||||
index: './index.js',
|
||||
},
|
||||
|
||||
output: {
|
||||
// filename: 编译的文件名 仅用于命名每个文件
|
||||
// [name]: 多入口形式 入口文件名替换这里的name
|
||||
// [chunkhash: num]: 入口文件的hash值 用于修改后清空缓存
|
||||
// filename: '[name].[chunkhash:3].js',
|
||||
filename: './[name].js',
|
||||
// 包存放的目录
|
||||
path: path.resolve('./build'),
|
||||
},
|
||||
devServer:{
|
||||
contentBase:'./'
|
||||
},
|
||||
// target: 'node',
|
||||
// externals: [nodeExternals()],
|
||||
module: {
|
||||
noParse: /\.css$/,
|
||||
|
||||
rules: [
|
||||
{
|
||||
test: /\.scss$/,
|
||||
use: [
|
||||
{
|
||||
loader: "style-loader"
|
||||
},
|
||||
{
|
||||
loader: "css-loader"
|
||||
},
|
||||
{
|
||||
loader: "sass-loader"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.(jsx|js)?$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['es2015', 'react']
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
watch: true
|
||||
}
|
||||
|
18
ykit.js
18
ykit.js
@ -2,7 +2,21 @@ var path = require('path');
|
||||
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
plugins: ['qunar', 'antd'],
|
||||
plugins: [{
|
||||
name: 'qunar',
|
||||
options: {
|
||||
eslint: true,
|
||||
configFile: path.resolve(__dirname, "./client/.eslintrc.js")
|
||||
}
|
||||
}, {
|
||||
name: 'antd',
|
||||
options: {
|
||||
modifyQuery: function(defaultQuery) { // 可查看和编辑 defaultQuery
|
||||
defaultQuery.plugins.push('transform-decorators-legacy');
|
||||
return defaultQuery;
|
||||
}
|
||||
}
|
||||
}],
|
||||
devtool: 'cheap-source-map',
|
||||
config: {
|
||||
exports: [
|
||||
@ -17,7 +31,7 @@ module.exports = {
|
||||
// true/false,默认 false,效果相当于 ykit server --hot
|
||||
hot: true,
|
||||
// true/false,默认 false,开启后可在当前打开的页面提示打包错误
|
||||
overlay: true
|
||||
overlay: true
|
||||
},
|
||||
hooks: {},
|
||||
commands: []
|
||||
|
Loading…
Reference in New Issue
Block a user