@lingk/sync 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lingk/lightning.js +24 -22
- package/build/lingk/lightning.js.map +1 -1
- package/build/lingk/main.js +61 -60
- package/build/lingk/main.js.map +1 -1
- package/build/lingk/reducer.js +131 -0
- package/build/lingk/reducer.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
(function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap
|
|
2
|
+
/******/ // The module cache
|
|
3
|
+
/******/ var installedModules = {};
|
|
4
|
+
/******/
|
|
5
|
+
/******/ // The require function
|
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
|
7
|
+
/******/
|
|
8
|
+
/******/ // Check if module is in cache
|
|
9
|
+
/******/ if(installedModules[moduleId])
|
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
|
11
|
+
/******/
|
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
|
14
|
+
/******/ exports: {},
|
|
15
|
+
/******/ id: moduleId,
|
|
16
|
+
/******/ loaded: false
|
|
17
|
+
/******/ };
|
|
18
|
+
/******/
|
|
19
|
+
/******/ // Execute the module function
|
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
21
|
+
/******/
|
|
22
|
+
/******/ // Flag the module as loaded
|
|
23
|
+
/******/ module.loaded = true;
|
|
24
|
+
/******/
|
|
25
|
+
/******/ // Return the exports of the module
|
|
26
|
+
/******/ return module.exports;
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/
|
|
29
|
+
/******/
|
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
31
|
+
/******/ __webpack_require__.m = modules;
|
|
32
|
+
/******/
|
|
33
|
+
/******/ // expose the module cache
|
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
|
35
|
+
/******/
|
|
36
|
+
/******/ // __webpack_public_path__
|
|
37
|
+
/******/ __webpack_require__.p = "./";
|
|
38
|
+
/******/
|
|
39
|
+
/******/ // Load entry module and return exports
|
|
40
|
+
/******/ return __webpack_require__(0);
|
|
41
|
+
/******/ })
|
|
42
|
+
/************************************************************************/
|
|
43
|
+
/******/ ({
|
|
44
|
+
|
|
45
|
+
/***/ 0:
|
|
46
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
47
|
+
|
|
48
|
+
module.exports = __webpack_require__(8);
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/***/ },
|
|
52
|
+
|
|
53
|
+
/***/ 6:
|
|
54
|
+
/***/ function(module, exports) {
|
|
55
|
+
|
|
56
|
+
'use strict';
|
|
57
|
+
|
|
58
|
+
Object.defineProperty(exports, "__esModule", {
|
|
59
|
+
value: true
|
|
60
|
+
});
|
|
61
|
+
// Wizard
|
|
62
|
+
var SET_WIZARD_DATA_ENTITIES = exports.SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';
|
|
63
|
+
var SET_WIZARD_RESOURCE_META = exports.SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';
|
|
64
|
+
var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
|
|
65
|
+
var SET_WIZARD_DATA = exports.SET_WIZARD_DATA = 'SET_WIZARD_DATA';
|
|
66
|
+
var SET_WIZARD_SAVED_SCHEMAS = exports.SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';
|
|
67
|
+
|
|
68
|
+
/***/ },
|
|
69
|
+
|
|
70
|
+
/***/ 8:
|
|
71
|
+
/***/ function(module, exports, __webpack_require__) {
|
|
72
|
+
|
|
73
|
+
'use strict';
|
|
74
|
+
|
|
75
|
+
Object.defineProperty(exports, "__esModule", {
|
|
76
|
+
value: true
|
|
77
|
+
});
|
|
78
|
+
exports.default = wizardReducer;
|
|
79
|
+
|
|
80
|
+
var _types = __webpack_require__(6);
|
|
81
|
+
|
|
82
|
+
var types = _interopRequireWildcard(_types);
|
|
83
|
+
|
|
84
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
85
|
+
|
|
86
|
+
var initialState = {
|
|
87
|
+
loaded: false,
|
|
88
|
+
data: {},
|
|
89
|
+
savedSchemas: [],
|
|
90
|
+
schemaGuids: {},
|
|
91
|
+
|
|
92
|
+
dataEntities: {},
|
|
93
|
+
resourceMeta: []
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
function wizardReducer() {
|
|
97
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
|
|
98
|
+
var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
99
|
+
|
|
100
|
+
switch (action.type) {
|
|
101
|
+
case types.SET_WIZARD_LOADED:
|
|
102
|
+
return Object.assign({}, state, {
|
|
103
|
+
loaded: action.bool
|
|
104
|
+
});
|
|
105
|
+
case types.SET_WIZARD_DATA:
|
|
106
|
+
return Object.assign({}, state, {
|
|
107
|
+
data: action.data,
|
|
108
|
+
loaded: true
|
|
109
|
+
});
|
|
110
|
+
case types.SET_WIZARD_SAVED_SCHEMAS:
|
|
111
|
+
return Object.assign({}, state, {
|
|
112
|
+
savedSchemas: action.data
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
case types.SET_WIZARD_DATA_ENTITIES:
|
|
116
|
+
return Object.assign({}, state, {
|
|
117
|
+
dataEntities: action.data
|
|
118
|
+
});
|
|
119
|
+
case types.SET_WIZARD_RESOURCE_META:
|
|
120
|
+
return Object.assign({}, state, {
|
|
121
|
+
resourceMeta: action.data
|
|
122
|
+
});
|
|
123
|
+
default:
|
|
124
|
+
return state;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/***/ }
|
|
129
|
+
|
|
130
|
+
/******/ })));
|
|
131
|
+
//# sourceMappingURL=reducer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap 81d5bbd773fa79b838c9?e65a*","webpack:///./src/lib/wizard/actions/types.js?caa0","webpack:///./src/lib/reducer/wizard.js"],"names":["SET_WIZARD_DATA_ENTITIES","SET_WIZARD_RESOURCE_META","SET_WIZARD_LOADED","SET_WIZARD_DATA","SET_WIZARD_SAVED_SCHEMAS","wizardReducer","types","initialState","loaded","data","savedSchemas","schemaGuids","dataEntities","resourceMeta","state","action","type","bool"],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;ACtCA;AACO,KAAMA,8DAA2B,0BAAjC;AACA,KAAMC,8DAA2B,0BAAjC;AACA,KAAMC,gDAAoB,mBAA1B;AACA,KAAMC,4CAAkB,iBAAxB;AACA,KAAMC,8DAA2B,0BAAjC,C;;;;;;;;;;;;mBCOiBC,a;;AAZxB;;KAAYC,K;;;;AAEZ,KAAMC,eAAe;AACnBC,WAAO,KADY;AAEnBC,SAAK,EAFc;AAGnBC,iBAAa,EAHM;AAInBC,gBAAa,EAJM;;AAMnBC,iBAAc,EANK;AAOnBC,iBAAc;AAPK,EAArB;;AAUe,UAASR,aAAT,GAA0D;AAAA,OAAnCS,KAAmC,uEAA3BP,YAA2B;AAAA,OAAbQ,MAAa,uEAAJ,EAAI;;AACvE,WAAQA,OAAOC,IAAf;AACE,UAAKV,MAAMJ,iBAAX;AACE,gCACKY,KADL;AAEEN,iBAAQO,OAAOE;AAFjB;AAIF,UAAKX,MAAMH,eAAX;AACE,gCACKW,KADL;AAEEL,eAAMM,OAAON,IAFf;AAGED,iBAAQ;AAHV;AAKF,UAAKF,MAAMF,wBAAX;AACE,gCACKU,KADL;AAEEJ,uBAAcK,OAAON;AAFvB;;AAKF,UAAKH,MAAMN,wBAAX;AACE,gCACKc,KADL;AAEEF,uBAAcG,OAAON;AAFvB;AAIF,UAAKH,MAAML,wBAAX;AACE,gCACKa,KADL;AAEED,uBAAcE,OAAON;AAFvB;AAIF;AAAS,cAAOK,KAAP;AA5BX;AA8BD,G","file":"lingk/reducer.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 81d5bbd773fa79b838c9","// Wizard\nexport const SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';\nexport const SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';\nexport const SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';\nexport const SET_WIZARD_DATA = 'SET_WIZARD_DATA';\nexport const SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/wizard/actions/types.js","import * as types from '../wizard/actions/types';\n\nconst initialState = {\n loaded:false,\n data:{},\n savedSchemas:[],\n schemaGuids: {},\n\n dataEntities: {},\n resourceMeta: [],\n};\n\nexport default function wizardReducer(state = initialState, action = {}) {\n switch (action.type) {\n case types.SET_WIZARD_LOADED:\n return {\n ...state,\n loaded: action.bool\n };\n case types.SET_WIZARD_DATA:\n return {\n ...state,\n data: action.data,\n loaded: true\n }\n case types.SET_WIZARD_SAVED_SCHEMAS:\n return {\n ...state,\n savedSchemas: action.data\n }\n\n case types.SET_WIZARD_DATA_ENTITIES:\n return {\n ...state,\n dataEntities: action.data,\n };\n case types.SET_WIZARD_RESOURCE_META:\n return {\n ...state,\n resourceMeta: action.data,\n };\n default: return state;\n }\n};\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/reducer/wizard.js"],"sourceRoot":""}
|