mirror of https://github.com/zhufuyi/sponge
docs: update sponge ui docs
This commit is contained in:
parent
7ee0fd5734
commit
ab553648c2
|
@ -58,8 +58,8 @@ func HandleSwaggerJSONCommand() *cobra.Command {
|
|||
if err = handleSwagger2ToOpenAPI3Action(jsonFile); err != nil {
|
||||
return err
|
||||
}
|
||||
outputJSONFile, OutputYamlFile := getOutputFile(jsonFile)
|
||||
fmt.Printf("Successfully convert swagger2.0 to openapi3.0, output: %s, %s\n", outputJSONFile, OutputYamlFile)
|
||||
outputJSONFile, outputYamlFile := getOutputFile(jsonFile)
|
||||
fmt.Printf("Successfully convert swagger2.0 to openapi3.0, output: %s, %s\n", outputJSONFile, outputYamlFile)
|
||||
}
|
||||
|
||||
if enableTransformIntegerToString {
|
||||
|
@ -69,7 +69,7 @@ func HandleSwaggerJSONCommand() *cobra.Command {
|
|||
fmt.Printf("Successfully transform 64-bit integer to string in %s fields\n", jsonFile)
|
||||
}
|
||||
|
||||
if enableUniformResponse == false && enableConvertToOpenAPI3 == false && enableTransformIntegerToString == false {
|
||||
if enableUniformResponse == false && enableConvertToOpenAPI3 == false && enableTransformIntegerToString == false { //nolint
|
||||
fmt.Println("No action specified, please use 'sponge web swagger -h' to see available options.")
|
||||
}
|
||||
|
||||
|
@ -87,6 +87,7 @@ func HandleSwaggerJSONCommand() *cobra.Command {
|
|||
|
||||
// -------------------------------------------------------------------------------------------
|
||||
|
||||
// nolint
|
||||
func handleStandardizeResponseAction(inputPath string) error {
|
||||
outputPath := inputPath
|
||||
data, err := os.ReadFile(inputPath)
|
||||
|
@ -131,7 +132,7 @@ func handleStandardizeResponseAction(inputPath string) error {
|
|||
continue
|
||||
}
|
||||
|
||||
if _, defaultExists := responses["default"]; defaultExists {
|
||||
if _, defaultExists := responses["default"]; defaultExists { //nolint
|
||||
delete(responses, "default")
|
||||
}
|
||||
|
||||
|
@ -144,31 +145,31 @@ func handleStandardizeResponseAction(inputPath string) error {
|
|||
continue
|
||||
}
|
||||
|
||||
var newHttpResponseDefName string
|
||||
var dataSchemaForNewHttpResponseDef interface{}
|
||||
var newHTTPResponseDefName string
|
||||
var dataSchemaForNewHTTPResponseDef interface{}
|
||||
|
||||
schemaUntyped, schemaExistsIn200 := response200["schema"]
|
||||
|
||||
if !schemaExistsIn200 {
|
||||
baseName := generateBaseNameForNewDefinition(pathKey, methodKey, methodItemMap)
|
||||
newHttpResponseDefName = adjustHttpResponseName(baseName)
|
||||
dataSchemaForNewHttpResponseDef = map[string]interface{}{"type": "object", "description": "Original data schema was not present."}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHttpResponseDefName}
|
||||
newHTTPResponseDefName = adjustHTTPResponseName(baseName)
|
||||
dataSchemaForNewHTTPResponseDef = map[string]interface{}{"type": "object", "description": "Original data schema was not present."}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHTTPResponseDefName}
|
||||
} else {
|
||||
currentSchemaMap, schemaIsMap := schemaUntyped.(map[string]interface{})
|
||||
if !schemaIsMap {
|
||||
baseName := generateBaseNameForNewDefinition(pathKey, methodKey, methodItemMap)
|
||||
adjustHttpResponseName(baseName)
|
||||
dataSchemaForNewHttpResponseDef = map[string]interface{}{
|
||||
adjustHTTPResponseName(baseName)
|
||||
dataSchemaForNewHTTPResponseDef = map[string]interface{}{
|
||||
"type": "object",
|
||||
"description": "Original schema was not a JSON object/map.",
|
||||
// Optionally, you could try to embed schemaUntyped here if it's simple enough
|
||||
// "originalValue": schemaUntyped,
|
||||
}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHttpResponseDefName}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHTTPResponseDefName}
|
||||
} else {
|
||||
// Schema is a map, proceed with deep copy and ref checking
|
||||
copiedSchemaInterface, err := deepCopy(currentSchemaMap)
|
||||
copiedSchemaInterface, err := deepCopy(currentSchemaMap) //nolint
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to deep copy schema for %s %s: %w", strings.ToUpper(methodKey), pathKey, err)
|
||||
}
|
||||
|
@ -189,30 +190,30 @@ func handleStandardizeResponseAction(inputPath string) error {
|
|||
}
|
||||
|
||||
if isValidRef {
|
||||
newHttpResponseDefName = adjustHttpResponseName(originalDefNameFromRef)
|
||||
dataSchemaForNewHttpResponseDef = map[string]interface{}{"$ref": refValue}
|
||||
if isHttpResponseStructure(definitions, originalDefNameFromRef) {
|
||||
newHTTPResponseDefName = adjustHTTPResponseName(originalDefNameFromRef)
|
||||
dataSchemaForNewHTTPResponseDef = map[string]interface{}{"$ref": refValue}
|
||||
if isHTTPResponseStructure(definitions, originalDefNameFromRef) {
|
||||
continue
|
||||
}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHttpResponseDefName}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHTTPResponseDefName}
|
||||
} else {
|
||||
newHttpResponseDefName = "emptyHTTPResponse"
|
||||
dataSchemaForNewHttpResponseDef = originalSchemaContent // Embed the deep copied original schema
|
||||
if isHttpResponseStructure(definitions, originalDefNameFromRef) {
|
||||
newHTTPResponseDefName = "emptyHTTPResponse"
|
||||
dataSchemaForNewHTTPResponseDef = originalSchemaContent // Embed the deep copied original schema
|
||||
if isHTTPResponseStructure(definitions, originalDefNameFromRef) {
|
||||
continue
|
||||
}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHttpResponseDefName}
|
||||
response200["schema"] = map[string]interface{}{"$ref": "#/definitions/" + newHTTPResponseDefName}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if newHttpResponseDefName != "" {
|
||||
definitions[newHttpResponseDefName] = map[string]interface{}{
|
||||
if newHTTPResponseDefName != "" {
|
||||
definitions[newHTTPResponseDefName] = map[string]interface{}{
|
||||
"type": "object",
|
||||
"properties": map[string]interface{}{
|
||||
"code": map[string]interface{}{"type": "integer", "format": "int32", "description": "Business status code"},
|
||||
"msg": map[string]interface{}{"type": "string", "description": "Response message description"},
|
||||
"data": dataSchemaForNewHttpResponseDef,
|
||||
"data": dataSchemaForNewHTTPResponseDef,
|
||||
},
|
||||
//"required": []string{"code", "msg","data"},
|
||||
}
|
||||
|
@ -242,7 +243,7 @@ func handleStandardizeResponseAction(inputPath string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func adjustHttpResponseName(name string) string {
|
||||
func adjustHTTPResponseName(name string) string {
|
||||
suffixes := []string{"Response", "Resp", "Res", "Reply", "Rep", "Request", "Req"}
|
||||
hrName := "HTTPResponse"
|
||||
|
||||
|
@ -259,13 +260,13 @@ func adjustHttpResponseName(name string) string {
|
|||
return name + hrName
|
||||
}
|
||||
|
||||
func isHttpResponseStructure(definitions map[string]interface{}, name string) bool {
|
||||
func isHTTPResponseStructure(definitions map[string]interface{}, name string) bool {
|
||||
def, ok := definitions[name].(map[string]interface{})
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
|
||||
if defType, ok := def["type"].(string); !ok || defType != "object" {
|
||||
if defType, ok := def["type"].(string); !ok || defType != "object" { //nolint
|
||||
return false
|
||||
}
|
||||
properties, ok := def["properties"].(map[string]interface{})
|
||||
|
@ -284,7 +285,7 @@ var topLevelSortKeys = []string{
|
|||
"securityDefinitions", "security", "externalDocs",
|
||||
}
|
||||
|
||||
// KeyValue represents a key-value pair for ordered JSON marshalling
|
||||
// KeyValue represents a key-value pair for ordered JSON marshaling
|
||||
type KeyValue struct {
|
||||
Key string
|
||||
Value interface{}
|
||||
|
@ -328,12 +329,10 @@ func convertToOrderedMap(data interface{}, preferredKeyOrder []string) interface
|
|||
om := make(OrderedMap, 0, len(v))
|
||||
processedKeys := make(map[string]bool)
|
||||
|
||||
if preferredKeyOrder != nil {
|
||||
for _, key := range preferredKeyOrder {
|
||||
if val, ok := v[key]; ok {
|
||||
om = append(om, KeyValue{Key: key, Value: convertToOrderedMap(val, nil)})
|
||||
processedKeys[key] = true
|
||||
}
|
||||
for _, key := range preferredKeyOrder {
|
||||
if val, ok := v[key]; ok {
|
||||
om = append(om, KeyValue{Key: key, Value: convertToOrderedMap(val, nil)})
|
||||
processedKeys[key] = true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -377,11 +376,11 @@ func deepCopy(source interface{}) (interface{}, error) {
|
|||
}
|
||||
|
||||
func generateBaseNameForNewDefinition(pathKey, methodKey string, methodItem map[string]interface{}) string {
|
||||
if opId, ok := methodItem["operationId"].(string); ok && opId != "" {
|
||||
if len(opId) > 0 {
|
||||
return strings.ToUpper(string(opId[0])) + opId[1:]
|
||||
if opID, ok := methodItem["operationId"].(string); ok && opID != "" {
|
||||
if len(opID) > 0 {
|
||||
return strings.ToUpper(string(opID[0])) + opID[1:]
|
||||
}
|
||||
return "UnnamedOperation" // Should be rare if opId is non-empty
|
||||
return "UnnamedOperation" // Should be rare if opID is non-empty
|
||||
}
|
||||
|
||||
methodNamePart := ""
|
||||
|
@ -461,7 +460,6 @@ func getOutputFile(filePath string) (yamlFile string, jsonFile string) {
|
|||
var suffix string
|
||||
if strings.HasSuffix(filePath, "swagger.json") {
|
||||
suffix = "swagger.json"
|
||||
|
||||
} else {
|
||||
suffix = gofile.GetFilename(filePath)
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ fi`
|
|||
port: 8283
|
||||
targetPort: 8283`
|
||||
|
||||
configFileCode = `// code generated by https://github.com/go-dev-frame/sponge
|
||||
configFileCode = `Code generated by https://github.com/go-dev-frame/sponge; DO NOT EDIT.
|
||||
|
||||
package config
|
||||
|
||||
|
@ -228,7 +228,7 @@ func Set(conf *Config) {
|
|||
}
|
||||
`
|
||||
|
||||
configFileCcCode = `// code generated by https://github.com/go-dev-frame/sponge
|
||||
configFileCcCode = `// Code generated by https://github.com/go-dev-frame/sponge
|
||||
|
||||
package config
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>Sponge Generate Code</title><link rel=icon type=image/png sizes=32x32 href="/static/favicon.png?v=1.0"><script type=text/javascript src=/static/appConfig.js async></script><link href=/static/css/app.81ae100c53d45c1085ec370cf96a8ce1.css rel=stylesheet></head><body style="margin: 0px; padding: 0px;"><style>.el-tooltip__popper {box-shadow: 3px 3px 10px 5px #d3d3d6;border-width: 0px !important;}
|
||||
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {border-top-color: #dcdfe6 !important;}</style><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.d8cdb3748af43d2ae51a.js></script><script type=text/javascript src=/static/js/app.80c7c8b5ceb42a2c2aff.js></script></body></html>
|
||||
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {border-top-color: #dcdfe6 !important;}</style><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.d8cdb3748af43d2ae51a.js></script><script type=text/javascript src=/static/js/app.0725b9fdf2be2d6da7e4.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["webpack:///webpack/bootstrap 002c1cbe7e9aab4c187e"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\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 \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\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.l = 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// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 002c1cbe7e9aab4c187e"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap 06cdeb61197f3d1f0a6c"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\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 \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\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.l = 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// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 06cdeb61197f3d1f0a6c"],"sourceRoot":""}
|
Loading…
Reference in New Issue