summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md (renamed from workflow/README.md)0
-rw-r--r--deprecated-workflow-designer/DEPRECATION.md1
-rw-r--r--deprecated-workflow-designer/distribution/pom.xml (renamed from distribution/pom.xml)3
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat (renamed from distribution/src/main/assembly/bin/find_kill_process.bat)38
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat (renamed from distribution/src/main/assembly/bin/run.bat)72
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh (renamed from distribution/src/main/assembly/bin/run.sh)0
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat (renamed from distribution/src/main/assembly/bin/stop.bat)58
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh (renamed from distribution/src/main/assembly/bin/stop.sh)0
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/conf/workflow-designer.yml (renamed from distribution/src/main/assembly/conf/workflow-designer.yml)0
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/ext-activities-display-info.json (renamed from distribution/src/main/assembly/ext-activities-display-info.json)0
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/ext-activities.json (renamed from distribution/src/main/assembly/ext-activities.json)0
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/temp_workflow.json (renamed from distribution/src/main/assembly/temp_workflow.json)378
-rw-r--r--deprecated-workflow-designer/distribution/src/main/docker/Dockerfile (renamed from distribution/src/main/docker/Dockerfile)0
-rw-r--r--deprecated-workflow-designer/docker_run.sh (renamed from docker_run.sh)0
-rw-r--r--deprecated-workflow-designer/docs/index.rst (renamed from docs/index.rst)0
-rw-r--r--deprecated-workflow-designer/docs/platform/architecture.rst (renamed from docs/platform/architecture.rst)0
-rw-r--r--deprecated-workflow-designer/docs/platform/consumedapis.rst (renamed from docs/platform/consumedapis.rst)0
-rw-r--r--deprecated-workflow-designer/docs/platform/delivery.rst (renamed from docs/platform/delivery.rst)0
-rw-r--r--deprecated-workflow-designer/docs/platform/human-interfaces.rst (renamed from docs/platform/human-interfaces.rst)0
-rw-r--r--deprecated-workflow-designer/docs/platform/images/workflow architecture.PNG (renamed from docs/platform/images/workflow architecture.PNG)bin22125 -> 22125 bytes
-rw-r--r--deprecated-workflow-designer/docs/platform/index.rst (renamed from docs/platform/index.rst)0
-rw-r--r--deprecated-workflow-designer/docs/platform/installation.rst (renamed from docs/platform/installation.rst)0
-rw-r--r--deprecated-workflow-designer/docs/platform/offeredapis.rst (renamed from docs/platform/offeredapis.rst)0
-rw-r--r--deprecated-workflow-designer/docs/release-notes.rst (renamed from docs/release-notes.rst)0
-rw-r--r--deprecated-workflow-designer/pom.xml81
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/pom.xml (renamed from sdc-workflow-designer-server/pom.xml)3
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/ext-activities-display-info.json (renamed from sdc-workflow-designer-server/src/main/assembly/ext-activities-display-info.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/ext-activities.json (renamed from sdc-workflow-designer-server/src/main/assembly/ext-activities.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/temp_workflow.json (renamed from sdc-workflow-designer-server/src/main/assembly/temp_workflow.json)284
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/ActivitySpecServiceProxyInfo.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/ActivitySpecServiceProxyInfo.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfo.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfo.java)148
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfiguration.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfiguration.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/ActivitySpecProxyException.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/ActivitySpecProxyException.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/SDCProxyException.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/SDCProxyException.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AdapterType.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AdapterType.java)40
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AppConfig.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AppConfig.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java)108
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecService.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecService.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecServiceProxy.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecServiceProxy.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCService.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCService.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCServiceProxy.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCServiceProxy.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContent.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContent.java)118
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpec.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpec.java)358
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/GenericCollectionWrapper.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/GenericCollectionWrapper.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/Parameter.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/Parameter.java)174
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfo.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfo.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/DataObject.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/DataObject.java)84
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java)170
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/EndEvent.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/EndEvent.java)32
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorEndEvent.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorEndEvent.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorStartEvent.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorStartEvent.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ExclusiveGateway.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ExclusiveGateway.java)32
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/IntermediateCatchEvent.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/IntermediateCatchEvent.java)50
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ParallelGateway.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ParallelGateway.java)32
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Parameter.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Parameter.java)206
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java)66
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java)134
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/RestServiceTask.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/RestServiceTask.java)190
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ScriptTask.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ScriptTask.java)66
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java)140
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ServiceTask.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ServiceTask.java)88
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/StartEvent.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/StartEvent.java)58
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinition.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinition.java)104
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParser.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParser.java)432
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/JsonKeys.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/JsonKeys.java)184
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/HealthCheckResource.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/HealthCheckResource.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java)130
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java)190
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java)240
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java)106
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/I18nString.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/I18nString.java)138
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/IconData.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/IconData.java)136
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutput.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutput.java)270
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategory.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategory.java)68
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfo.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfo.java)266
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonConstants.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonConstants.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtils.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtils.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/JsonUtils.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/JsonUtils.java)82
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/RestUtils.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/RestUtils.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/ToolUtils.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/ToolUtils.java)52
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/writer/BpmnPlanArtefactWriter.java (renamed from sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/writer/BpmnPlanArtefactWriter.java)128
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/META-INF/MANIFEST.MF (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/META-INF/MANIFEST.MF)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/WEB-INF/web.xml (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/WEB-INF/web.xml)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/reset.css (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/css/reset.css)280
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/screen.css (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/css/screen.css)2542
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/typography.css (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/css/typography.css)82
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot)bin22924 -> 22924 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf)bin40516 -> 40516 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff)bin25992 -> 25992 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2)bin11480 -> 11480 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot)bin22008 -> 22008 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf)bin39072 -> 39072 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff)bin24868 -> 24868 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2)bin11304 -> 11304 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/explorer_icons.png (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/images/explorer_icons.png)bin5763 -> 5763 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/logo_small.png (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/images/logo_small.png)bin770 -> 770 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/pet_store_api.png (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/images/pet_store_api.png)bin824 -> 824 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/throbber.gif (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/images/throbber.gif)bin9257 -> 9257 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/wordnik_api.png (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/images/wordnik_api.png)bin980 -> 980 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/index.html (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/index.html)230
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/backbone-min.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/backbone-min.js)58
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/handlebars-2.0.0.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/handlebars-2.0.0.js)84
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/highlight.7.3.pack.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/highlight.7.3.pack.js)30
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery-1.8.0.min.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery-1.8.0.min.js)32
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js)48
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.slideto.min.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.slideto.min.js)32
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.wiggle.min.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.wiggle.min.js)44
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/marked.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/marked.js)2560
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred.bundle.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred.bundle.js)5558
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred/content.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred/content.js)412
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-client.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-client.js)6616
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-oauth.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-oauth.js)586
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/underscore-min.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/lib/underscore-min.js)40
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/o2c.html (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/o2c.html)72
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.js)418
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.min.js (renamed from sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.min.js)32
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml)8
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml)2
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml)24
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml)64
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml)4
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml)26
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml)12
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml)8
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml (renamed from sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml)56
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn.config.properties (renamed from sdc-workflow-designer-server/src/main/resources/bpmn.config.properties)4
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfoTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfoTest.java)106
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfigurationTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfigurationTest.java)108
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java)90
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java)52
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContentTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContentTest.java)112
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpecTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpecTest.java)148
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ParameterTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ParameterTest.java)118
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfoTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfoTest.java)114
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/DataObjectTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/DataObjectTest.java)106
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ElementTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ElementTest.java)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ErrorEndEventTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ErrorEndEventTest.java)94
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ParameterTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ParameterTest.java)138
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/PositionTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/PositionTest.java)100
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ProcessTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ProcessTest.java)124
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/RestServiceTaskTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/RestServiceTaskTest.java)142
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ScriptTaskTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ScriptTaskTest.java)100
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java)124
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ServiceTaskTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ServiceTaskTest.java)112
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinitionTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinitionTest.java)112
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParserTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParserTest.java)260
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/planwriter/BpmnPlanArtefactWriterTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/planwriter/BpmnPlanArtefactWriterTest.java)116
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResourceTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResourceTest.java)132
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResourceTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResourceTest.java)218
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryDataTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryDataTest.java)100
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ContentTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ContentTest.java)146
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfoTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfoTest.java)106
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtendActivityTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtendActivityTest.java)126
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/I18nStringTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/I18nStringTest.java)98
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/IconDataTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/IconDataTest.java)106
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutputTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutputTest.java)134
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategoryTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategoryTest.java)94
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfoTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfoTest.java)134
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtilsTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtilsTest.java)350
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/JsonUtilsTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/JsonUtilsTest.java)118
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponseTest.java (renamed from sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponseTest.java)102
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml (renamed from sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml)30
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/test/resources/workflow/workflow.json (renamed from sdc-workflow-designer-server/src/test/resources/workflow/workflow.json)54
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/.angular-cli.json (renamed from sdc-workflow-designer-ui/.angular-cli.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/.editorconfig (renamed from sdc-workflow-designer-ui/.editorconfig)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/.gitignore (renamed from sdc-workflow-designer-ui/.gitignore)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/README.md (renamed from sdc-workflow-designer-ui/README.md)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/app.e2e-spec.ts (renamed from sdc-workflow-designer-ui/e2e/app.e2e-spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/app.po.ts (renamed from sdc-workflow-designer-ui/e2e/app.po.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/tsconfig.e2e.json (renamed from sdc-workflow-designer-ui/e2e/tsconfig.e2e.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/karma.conf.js (renamed from sdc-workflow-designer-ui/karma.conf.js)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/package-lock.json (renamed from sdc-workflow-designer-ui/package-lock.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/package.json (renamed from sdc-workflow-designer-ui/package.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/pom.xml (renamed from sdc-workflow-designer-ui/pom.xml)3
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/protractor.conf.js (renamed from sdc-workflow-designer-ui/protractor.conf.js)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.css (renamed from sdc-workflow-designer-ui/src/app/app.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.html (renamed from sdc-workflow-designer-ui/src/app/app.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.spec.ts (renamed from sdc-workflow-designer-ui/src/app/app.component.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.ts (renamed from sdc-workflow-designer-ui/src/app/app.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.module.ts (renamed from sdc-workflow-designer-ui/src/app/app.module.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/.gitkeep (renamed from sdc-workflow-designer-ui/src/app/assets/.gitkeep)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/bootstrap4.0.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/css/bootstrap4.0.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/font-awesome.min.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/css/font-awesome.min.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/iconfont.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/css/iconfont.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/ngict-component.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/css/ngict-component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/prism.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/css/prism.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/style.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/css/style.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/FontAwesome.otf (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/FontAwesome.otf)bin134808 -> 134808 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.eot (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.eot)bin57784 -> 57784 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.ttf (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.ttf)bin57604 -> 57604 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.woff (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.woff)bin57680 -> 57680 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.eot (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.eot)bin1676 -> 1676 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.ttf (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.ttf)bin1488 -> 1488 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.woff (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.woff)bin1564 -> 1564 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.eot (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.eot)bin165742 -> 165742 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.ttf (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.ttf)bin165548 -> 165548 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff)bin98024 -> 98024 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff2 (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff2)bin77160 -> 77160 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.eot (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.eot)bin9664 -> 9664 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.ttf (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.ttf)bin9496 -> 9496 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.woff (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.woff)bin5956 -> 5956 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.eot (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.eot)bin39680 -> 39680 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.ttf (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.ttf)bin39508 -> 39508 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.woff (renamed from sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.woff)bin39584 -> 39584 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop_hover.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop_hover.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-checked-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-checked-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-hover.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-hover.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-init.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-init.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-hover.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-hover.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-init.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-init.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/test/checkbox-checked.svg (renamed from sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/test/checkbox-checked.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/NIV-theme.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/NIV-theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/common.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/common.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-button.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-button.less)542
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-checkbox.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-checkbox.less)210
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-form.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-form.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-input.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-input.less)56
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-radio.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-radio.less)318
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-step.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-step.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-text-input.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-text-input.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/NIV-theme.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/default/NIV-theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.css (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.less (renamed from sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.css (renamed from sdc-workflow-designer-ui/src/app/components/container/container.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.html (renamed from sdc-workflow-designer-ui/src/app/components/container/container.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/container/container.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.css (renamed from sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.html (renamed from sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.css (renamed from sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.html (renamed from sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.spec.ts (renamed from sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css (renamed from sdc-workflow-designer-ui/src/app/components/menus/menus.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html (renamed from sdc-workflow-designer-ui/src/app/components/menus/menus.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts (renamed from sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html (renamed from sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css (renamed from sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html (renamed from sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html (renamed from sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.css (renamed from sdc-workflow-designer-ui/src/app/components/node/node.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.html (renamed from sdc-workflow-designer-ui/src/app/components/node/node.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/node/node.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.css (renamed from sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.html (renamed from sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.css (renamed from sdc-workflow-designer-ui/src/app/components/property/properties.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/properties.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/properties.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.css (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.css (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.css (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.spec.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.css (renamed from sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.spec.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.css (renamed from sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.html (renamed from sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.css (renamed from sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.html (renamed from sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.html (renamed from sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.html)54
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.ts)254
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.css (renamed from sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.html (renamed from sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.ts (renamed from sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/directive/resizable/resizable.directive.ts (renamed from sdc-workflow-designer-ui/src/app/directive/resizable/resizable.directive.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/model.ts (renamed from sdc-workflow-designer-ui/src/app/model/model.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts (renamed from sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts)30
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts (renamed from sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts)32
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts (renamed from sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts)46
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice.ts (renamed from sdc-workflow-designer-ui/src/app/model/notice.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-model.ts (renamed from sdc-workflow-designer-ui/src/app/model/plan-model.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts (renamed from sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/rest-config.ts (renamed from sdc-workflow-designer-ui/src/app/model/rest-config.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts (renamed from sdc-workflow-designer-ui/src/app/model/swagger-setting.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger.ts (renamed from sdc-workflow-designer-ui/src/app/model/swagger.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts (renamed from sdc-workflow-designer-ui/src/app/model/topology/node-template.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-object.ts (renamed from sdc-workflow-designer-ui/src/app/model/value-object.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/value-source.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/value-type.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/position.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/bootstrap4.0.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/css/bootstrap4.0.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/font-awesome.min.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/css/font-awesome.min.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/iconfont.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/css/iconfont.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/ngict-component.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/css/ngict-component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/prism.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/css/prism.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/style.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/css/style.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/FontAwesome.otf (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/FontAwesome.otf)bin134808 -> 134808 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.eot (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.eot)bin57784 -> 57784 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.ttf (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.ttf)bin57604 -> 57604 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.woff (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.woff)bin57680 -> 57680 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.eot (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.eot)bin1676 -> 1676 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.ttf (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.ttf)bin1488 -> 1488 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.woff (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.woff)bin1564 -> 1564 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.eot (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.eot)bin165742 -> 165742 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.ttf (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.ttf)bin165548 -> 165548 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff)bin98024 -> 98024 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff2 (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff2)bin77160 -> 77160 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.eot (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.eot)bin9664 -> 9664 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.ttf (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.ttf)bin9496 -> 9496 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.woff (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.woff)bin5956 -> 5956 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.eot (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.eot)bin39680 -> 39680 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.ttf (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.ttf)bin39508 -> 39508 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.woff (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.woff)bin39584 -> 39584 bytes
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop_hover.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop_hover.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-checked-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-checked-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-hover.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-hover.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-init.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-init.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-disabled.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-disabled.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-hover.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-hover.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-init.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-init.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/test/checkbox-checked.svg (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/test/checkbox-checked.svg)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/NIV-theme.less (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/NIV-theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.less (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/common.less (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/themes/common.less)4616
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/NIV-theme.less (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/NIV-theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.css (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.less (renamed from sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/common/shared.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/common/shared.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/boolean-field-value.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/boolean-field-value.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/domhandler.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/domhandler.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/number-wrapper-parse.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/number-wrapper-parse.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/fullscreen-overlay-container.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/fullscreen-overlay-container.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/generic-component-type.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/generic-component-type.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/index.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/index.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-container.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-container.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-directives.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-directives.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-position-map.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-position-map.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-ref.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-ref.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-state.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-state.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/fake-viewport-ruler.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/fake-viewport-ruler.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/free-position-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/free-position-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/global-position-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/global-position-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/overlay-position-builder.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/overlay-position-builder.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/position-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/position-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/viewport-ruler.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/viewport-ruler.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/block-scroll-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/block-scroll-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/close-scroll-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/close-scroll-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/index.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/index.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/noop-scroll-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/noop-scroll-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/reposition-scroll-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/reposition-scroll-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-dispatcher.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-dispatcher.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy-options.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy-options.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scrollable.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scrollable.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/index.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/index.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/overlaypanel.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/overlaypanel.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button-state.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button-state.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.directive.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.directive.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.module.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.module.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/index.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/index.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/select.service.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/select.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/uuid.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/core/uuid.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/numberedFixLen.pipe.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/numberedFixLen.pipe.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.css (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.html (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.less (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.module.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.module.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.css (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.html (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover-config.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover-config.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/time.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/time.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker-config.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker-config.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.less (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/popup.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/popup.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/positioning.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/positioning.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/triggers.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/triggers.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.spec.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-dismiss-reasons.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-dismiss-reasons.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-ref.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-ref.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-stack.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-stack.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.spec.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.less (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.less)248
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.module.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.module.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.spec.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/index.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/index.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv4-validator.directive.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv4-validator.directive.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv6-validator.directive.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv6-validator.directive.ts)48
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/max-validator.directive.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/max-validator.directive.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/min-validator.directive.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/min-validator.directive.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip-address.component.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip-address.component.ts)340
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip.component.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.component.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.component.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.html (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.less (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.less)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.module.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.module.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/validate-on-blur.directive.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-text-input/validate-on-blur.directive.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.spec.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.less (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.less)480
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.module.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.module.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.spec.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/popup.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/util/popup.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/positioning.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/util/positioning.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/triggers.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/util/triggers.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/util.ts (renamed from sdc-workflow-designer-ui/src/app/paletx/util/util.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/auth.service.spec.ts (renamed from sdc-workflow-designer-ui/src/app/services/auth.service.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/auth.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/auth.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/broadcast.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/display-info.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/display-info.service.ts)52
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/interface.service.spec.ts (renamed from sdc-workflow-designer-ui/src/app/services/interface.service.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/interface.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/interface.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/model.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/model.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/node-type.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/node-type.service.ts)134
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/notice.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/notice.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/rest.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/rest.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/setting.service.spec.ts (renamed from sdc-workflow-designer-ui/src/app/services/setting.service.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/setting.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/setting.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/tosca.service.spec.ts (renamed from sdc-workflow-designer-ui/src/app/services/tosca.service.spec.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/tosca.service.ts (renamed from sdc-workflow-designer-ui/src/app/services/tosca.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/validators.ts (renamed from sdc-workflow-designer-ui/src/app/shared/input/validators.ts)292
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.component.ts (renamed from sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.component.ts)516
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.module.ts (renamed from sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.module.ts)28
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/shared.module.ts (renamed from sdc-workflow-designer-ui/src/app/shared/shared.module.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/http.service.ts (renamed from sdc-workflow-designer-ui/src/app/util/http.service.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/rxjs-operators.ts (renamed from sdc-workflow-designer-ui/src/app/util/rxjs-operators.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/workflow-util.ts (renamed from sdc-workflow-designer-ui/src/app/util/workflow-util.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/.gitkeep (renamed from sdc-workflow-designer-ui/src/assets/.gitkeep)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/global-setting.json (renamed from sdc-workflow-designer-ui/src/assets/global-setting.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/i18n/en.json (renamed from sdc-workflow-designer-ui/src/assets/i18n/en.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json (renamed from sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_rest.svg (renamed from sdc-workflow-designer-ui/src/assets/images/apds_rest.svg)30
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_script.svg (renamed from sdc-workflow-designer-ui/src/assets/images/apds_script.svg)46
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_service.svg (renamed from sdc-workflow-designer-ui/src/assets/images/apds_service.svg)34
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/default.svg (renamed from sdc-workflow-designer-ui/src/assets/images/default.svg)44
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/toscaNodeManagementTask.svg (renamed from sdc-workflow-designer-ui/src/assets/images/toscaNodeManagementTask.svg)20
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/environments/environment.prod.ts (renamed from sdc-workflow-designer-ui/src/environments/environment.prod.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/environments/environment.ts (renamed from sdc-workflow-designer-ui/src/environments/environment.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/index.html (renamed from sdc-workflow-designer-ui/src/index.html)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/main.ts (renamed from sdc-workflow-designer-ui/src/main.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/polyfills.ts (renamed from sdc-workflow-designer-ui/src/polyfills.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/styles.css (renamed from sdc-workflow-designer-ui/src/styles.css)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/test.ts (renamed from sdc-workflow-designer-ui/src/test.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/tsconfig.app.json (renamed from sdc-workflow-designer-ui/src/tsconfig.app.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/tsconfig.spec.json (renamed from sdc-workflow-designer-ui/src/tsconfig.spec.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/typings.d.ts (renamed from sdc-workflow-designer-ui/src/typings.d.ts)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/tsconfig.json (renamed from sdc-workflow-designer-ui/tsconfig.json)0
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/tslint.json (renamed from sdc-workflow-designer-ui/tslint.json)0
-rw-r--r--pom.xml153
-rw-r--r--version.properties2
-rw-r--r--workflow-bdd/.gitignore (renamed from workflow/workflow-bdd/.gitignore)0
-rw-r--r--workflow-bdd/README.txt (renamed from workflow/workflow-bdd/README.txt)0
-rw-r--r--workflow-bdd/config.json (renamed from workflow/workflow-bdd/config.json)0
-rw-r--r--workflow-bdd/cucumber.js (renamed from workflow/workflow-bdd/cucumber.js)0
-rw-r--r--workflow-bdd/features/Version.feature (renamed from workflow/workflow-bdd/features/Version.feature)0
-rw-r--r--workflow-bdd/features/VersionState.feature (renamed from workflow/workflow-bdd/features/VersionState.feature)0
-rw-r--r--workflow-bdd/features/Workflow.feature (renamed from workflow/workflow-bdd/features/Workflow.feature)0
-rw-r--r--workflow-bdd/features/WorkflowList.feature (renamed from workflow/workflow-bdd/features/WorkflowList.feature)0
-rw-r--r--workflow-bdd/package.json (renamed from workflow/workflow-bdd/package.json)0
-rw-r--r--workflow-bdd/plugins/README.md (renamed from workflow/workflow-bdd/plugins/README.md)0
-rw-r--r--workflow-bdd/plugins/jsdoc_config.json (renamed from workflow/workflow-bdd/plugins/jsdoc_config.json)0
-rw-r--r--workflow-bdd/plugins/reporter.js (renamed from workflow/workflow-bdd/plugins/reporter.js)0
-rw-r--r--workflow-bdd/plugins/steps.js (renamed from workflow/workflow-bdd/plugins/steps.js)0
-rw-r--r--workflow-bdd/pom.xml (renamed from workflow/workflow-bdd/pom.xml)0
-rw-r--r--workflow-bdd/resources/json/createVersionWithInputsOutputs.json (renamed from workflow/workflow-bdd/resources/json/createVersionWithInputsOutputs.json)0
-rw-r--r--workflow-bdd/resources/json/createWorkflow.json (renamed from workflow/workflow-bdd/resources/json/createWorkflow.json)0
-rw-r--r--workflow-bdd/stepDefinitions/Collaboration_Steps.js (renamed from workflow/workflow-bdd/stepDefinitions/Collaboration_Steps.js)0
-rw-r--r--workflow-bdd/stepDefinitions/General_Steps.js (renamed from workflow/workflow-bdd/stepDefinitions/General_Steps.js)0
-rw-r--r--workflow-bdd/stepDefinitions/InputData_steps.js (renamed from workflow/workflow-bdd/stepDefinitions/InputData_steps.js)0
-rw-r--r--workflow-bdd/stepDefinitions/InterfaceOperationSteps.js (renamed from workflow/workflow-bdd/stepDefinitions/InterfaceOperationSteps.js)0
-rw-r--r--workflow-bdd/stepDefinitions/Item_steps.js (renamed from workflow/workflow-bdd/stepDefinitions/Item_steps.js)0
-rw-r--r--workflow-bdd/stepDefinitions/REST_Steps.js (renamed from workflow/workflow-bdd/stepDefinitions/REST_Steps.js)0
-rw-r--r--workflow-bdd/stepDefinitions/Utils.js (renamed from workflow/workflow-bdd/stepDefinitions/Utils.js)0
-rw-r--r--workflow-bdd/stepDefinitions/Workflow_Steps.js (renamed from workflow/workflow-bdd/stepDefinitions/Workflow_Steps.js)0
-rw-r--r--workflow-bdd/stepDefinitions/world.js (renamed from workflow/workflow-bdd/stepDefinitions/world.js)0
-rw-r--r--workflow-designer-be/pom.xml (renamed from workflow/workflow-designer-be/pom.xml)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/RestUtils.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/RestUtils.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/RestConstants.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/RestConstants.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowController.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowController.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/exceptionshandlers/CustomizedResponseEntityExceptionHandler.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/exceptionshandlers/CustomizedResponseEntityExceptionHandler.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/CollectionWrapper.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/CollectionWrapper.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStateDto.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStateDto.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/validator/WorkflowVersionValidator.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/validator/WorkflowVersionValidator.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ArtifactRepository.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ArtifactRepository.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ParameterRepository.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ParameterRepository.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/UniqueValueRepository.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/UniqueValueRepository.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryImpl.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryImpl.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryImpl.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryImpl.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ArtifactEntity.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ArtifactEntity.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterPropertyName.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterPropertyName.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterRole.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterRole.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterType.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterType.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/UniqueValueEntity.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/UniqueValueEntity.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowElementType.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowElementType.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowProperty.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowProperty.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersion.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersion.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersionState.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersionState.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/SwaggerConfig.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/SwaggerConfig.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ZusammenConfig.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ZusammenConfig.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/filters/SessionContextFilter.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/filters/SessionContextFilter.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/UniqueValueService.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/UniqueValueService.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowManager.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowManager.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowNameComparator.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowNameComparator.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowVersionManager.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowVersionManager.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/EntityNotFoundException.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/EntityNotFoundException.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidArtifactException.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidArtifactException.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidPaginationParameterException.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidPaginationParameterException.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/UniqueValueViolationException.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/UniqueValueViolationException.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionCreationException.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionCreationException.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionModificationException.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionModificationException.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionStateModificationException.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionStateModificationException.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/CollaborationConfiguration.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/CollaborationConfiguration.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImpl.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImpl.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapper.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapper.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapper.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapper.java)0
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapper.java (renamed from workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapper.java)0
-rw-r--r--workflow-designer-be/src/main/resources/application.properties (renamed from workflow/workflow-designer-be/src/main/resources/application.properties)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/TestUtil.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/TestUtil.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowControllerTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowControllerTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowVersionControllerTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowVersionControllerTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/UniqueValueServiceTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/UniqueValueServiceTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImplTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImplTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImplTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImplTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapperTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapperTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapperTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapperTest.java)0
-rw-r--r--workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapperTest.java (renamed from workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapperTest.java)0
-rw-r--r--workflow-designer-init/pom.xml (renamed from workflow/workflow-designer-init/pom.xml)0
-rw-r--r--workflow-designer-init/src/main/docker/Dockerfile (renamed from workflow/workflow-designer-init/src/main/docker/Dockerfile)0
-rw-r--r--workflow-designer-init/src/main/docker/create_workflow_db.cql (renamed from workflow/workflow-designer-init/src/main/docker/create_workflow_db.cql)0
-rw-r--r--workflow-designer-init/src/main/docker/start.sh (renamed from workflow/workflow-designer-init/src/main/docker/start.sh)0
-rw-r--r--[-rwxr-xr-x]workflow-designer-ui/pom.xml (renamed from workflow/workflow-designer-ui/pom.xml)0
-rw-r--r--workflow-designer-ui/src/main/frontend/.babelrc (renamed from workflow/workflow-designer-ui/src/main/frontend/.babelrc)0
-rw-r--r--workflow-designer-ui/src/main/frontend/.eslintignore (renamed from workflow/workflow-designer-ui/src/main/frontend/.eslintignore)0
-rw-r--r--workflow-designer-ui/src/main/frontend/.eslintrc (renamed from workflow/workflow-designer-ui/src/main/frontend/.eslintrc)0
-rw-r--r--workflow-designer-ui/src/main/frontend/.gitignore (renamed from workflow/workflow-designer-ui/src/main/frontend/.gitignore)0
-rw-r--r--workflow-designer-ui/src/main/frontend/__mocks__/fileMock.js (renamed from workflow/workflow-designer-ui/src/main/frontend/__mocks__/fileMock.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/__mocks__/sdc-ui/lib/react/SVGIcon.js (renamed from workflow/workflow-designer-ui/src/main/frontend/__mocks__/sdc-ui/lib/react/SVGIcon.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/external-resources/ping/ping (renamed from workflow/workflow-designer-ui/src/main/frontend/external-resources/ping/ping)0
-rw-r--r--workflow-designer-ui/src/main/frontend/index.html (renamed from workflow/workflow-designer-ui/src/main/frontend/index.html)0
-rw-r--r--workflow-designer-ui/src/main/frontend/jest.config.js (renamed from workflow/workflow-designer-ui/src/main/frontend/jest.config.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/jsconfig.json (renamed from workflow/workflow-designer-ui/src/main/frontend/jsconfig.json)0
-rw-r--r--workflow-designer-ui/src/main/frontend/package.json (renamed from workflow/workflow-designer-ui/src/main/frontend/package.json)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/_common.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/_components.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/_components.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/_features.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/_features.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/common/_fonts.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_fonts.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/common/_utils.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_utils.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_customModal.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_customModal.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_expandableInput.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_expandableInput.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_inputOptions.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_inputOptions.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_layout.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_layout.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_loader.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_loader.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_navigationSideBar.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_navigationSideBar.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_notifications.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_notifications.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_searchInput.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_searchInput.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_tree.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_tree.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_validationForm.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_validationForm.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/components/_versionController.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_versionController.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/features/_catalog.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_catalog.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/features/_composition.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_composition.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/features/_general.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_general.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/features/_inputOutput.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_inputOutput.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/features/_overview.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_overview.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/features/_workflow.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_workflow.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/resources/scss/style.scss (renamed from workflow/workflow-designer-ui/src/main/frontend/resources/scss/style.scss)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/App.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/App.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/appConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/appConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/appSelectors.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/appSelectors.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/config/Configuration.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/config/Configuration.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/config/config.json (renamed from workflow/workflow-designer-ui/src/main/frontend/src/config/config.json)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogActions-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogActions-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogReducer-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogReducer-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogSagas-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogSagas-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/catalogActions.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogActions.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/catalogApi.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogApi.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/catalogConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/catalogReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/catalogSagas.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogSagas.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/views/Header.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Header.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/Version.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/Version.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/VersionView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/VersionView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/composition/CompositionView.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/composition/CompositionView.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/composition/newDiagram.bpmn (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/composition/newDiagram.bpmn)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersion.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersion.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersionView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersionView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/create/createVersionConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/createVersionConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/create/views/NewVersionContainer.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/views/NewVersionContainer.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/general/General.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/General.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/general/GeneralView.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/GeneralView.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/general/generalApi.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/generalApi.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/general/generalSelectors.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/generalSelectors.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutput.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutput.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutputView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutputView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputActions-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputActions-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputReducer-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputReducer-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputSelectors-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputSelectors-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputActions.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputActions.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputSelectors.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputSelectors.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputValidations.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputValidations.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/DataRow.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/DataRow.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/NoDataRow.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/NoDataRow.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/Tab.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/Tab.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableBody.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableBody.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableHead.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableHead.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionApi.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionApi.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionController.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionController.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionControllerView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionControllerView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/VersionControllerView_snapshot-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/VersionControllerView_snapshot-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/__snapshots__/VersionControllerView_snapshot-test.js.snap (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/__snapshots__/VersionControllerView_snapshot-test.js.snap)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerSelectors.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerSelectors.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/ActionButtons.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/ActionButtons.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/SvgButton.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/SvgButton.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionButton.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionButton.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionSelect.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionSelect.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionsContainer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionsContainer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/WorkflowTitle.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/WorkflowTitle.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflow.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflow.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflowView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflowView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/CreateWorkflowView_snapshot-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/CreateWorkflowView_snapshot-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSaga-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSaga-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSelector-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSelector-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowApi.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowApi.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSaga.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSaga.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSelector.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSelector.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/Overview.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/Overview.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/OverviewView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/OverviewView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewApi.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewApi.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewConstansts.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewConstansts.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSelectors.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSelectors.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/VersionListItem.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/VersionListItem.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/index.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/index.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionTree.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionTree.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowDetails.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowDetails.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowVersions.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowVersions.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/workflowConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/workflowSelectors.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowSelectors.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/i18n/I18n.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/i18n/I18n.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/i18n/i18next-scanner.config.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/i18n/i18next-scanner.config.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/i18n/languages.json (renamed from workflow/workflow-designer-ui/src/main/frontend/src/i18n/languages.json)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/i18n/translationSaga.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/i18n/translationSaga.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/index.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/index.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/rootReducers.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/rootReducers.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/rootSaga.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/rootSaga.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/routes.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/routes.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/services/restAPIUtil.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/services/restAPIUtil.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/components/Select/index.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/components/Select/index.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/components/VersionInfo/index.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/components/VersionInfo/index.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/errorResponseHandler/errorResponseHandler.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/errorResponseHandler/errorResponseHandler.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/loader/Loader.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/Loader.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/loader/__tests__/loaderReducer-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/__tests__/loaderReducer-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapper.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapper.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapperView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapperView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperActions-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperActions-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperReducer-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperReducer-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperActions.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperActions.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperComponents.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperComponents.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationLink.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationLink.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenu.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenu.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItem.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItem.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItems.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItems.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/index.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/index.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/Notifications.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/Notifications.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/NotificationsView.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/NotificationsView.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/NotificationView_snapshot-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/NotificationView_snapshot-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/__snapshots__/NotificationView_snapshot-test.js.snap (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/__snapshots__/NotificationView_snapshot-test.js.snap)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/notificationsReducer-test.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/notificationsReducer-test.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsActions.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsActions.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsConstants.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsConstants.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsReducer.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsReducer.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsSagas.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsSagas.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/searchInput/SearchInput.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/searchInput/SearchInput.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/shared/tree/Tree.jsx (renamed from workflow/workflow-designer-ui/src/main/frontend/src/shared/tree/Tree.jsx)0
-rw-r--r--workflow-designer-ui/src/main/frontend/src/store.js (renamed from workflow/workflow-designer-ui/src/main/frontend/src/store.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/testSetup/fileTransform.js (renamed from workflow/workflow-designer-ui/src/main/frontend/testSetup/fileTransform.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/tools/ModuleRedirectPlugin.js (renamed from workflow/workflow-designer-ui/src/main/frontend/tools/ModuleRedirectPlugin.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/tools/devConfig.defaults.json (renamed from workflow/workflow-designer-ui/src/main/frontend/tools/devConfig.defaults.json)0
-rw-r--r--workflow-designer-ui/src/main/frontend/tools/getDevConfig.js (renamed from workflow/workflow-designer-ui/src/main/frontend/tools/getDevConfig.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/tools/mocks/mock.js (renamed from workflow/workflow-designer-ui/src/main/frontend/tools/mocks/mock.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/tools/proxy-server.js (renamed from workflow/workflow-designer-ui/src/main/frontend/tools/proxy-server.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/webpack.config.js (renamed from workflow/workflow-designer-ui/src/main/frontend/webpack.config.js)0
-rw-r--r--workflow-designer-ui/src/main/frontend/yarn.lock (renamed from workflow/workflow-designer-ui/src/main/frontend/yarn.lock)0
-rw-r--r--[-rwxr-xr-x]workflow-designer-ui/src/main/java/org/onap/workflow/web/TransparentProxy.java (renamed from workflow/workflow-designer-ui/src/main/java/org/onap/workflow/web/TransparentProxy.java)0
-rw-r--r--[-rwxr-xr-x]workflow-designer-ui/src/main/webapp/WEB-INF/jetty-web.xml (renamed from workflow/workflow-designer-ui/src/main/webapp/WEB-INF/jetty-web.xml)0
-rw-r--r--[-rwxr-xr-x]workflow-designer-ui/src/main/webapp/WEB-INF/web.xml (renamed from workflow/workflow-designer-ui/src/main/webapp/WEB-INF/web.xml)0
-rw-r--r--workflow/pom.xml105
804 files changed, 19446 insertions, 19413 deletions
diff --git a/workflow/README.md b/README.md
index 2b6bcbce..2b6bcbce 100644
--- a/workflow/README.md
+++ b/README.md
diff --git a/deprecated-workflow-designer/DEPRECATION.md b/deprecated-workflow-designer/DEPRECATION.md
new file mode 100644
index 00000000..c46e8049
--- /dev/null
+++ b/deprecated-workflow-designer/DEPRECATION.md
@@ -0,0 +1 @@
+This implementation of SDC Workflow Designer is **deprecated**. \ No newline at end of file
diff --git a/distribution/pom.xml b/deprecated-workflow-designer/distribution/pom.xml
index 6b15fd2f..583f4664 100644
--- a/distribution/pom.xml
+++ b/deprecated-workflow-designer/distribution/pom.xml
@@ -16,11 +16,10 @@
<parent>
<groupId>org.onap.sdc.sdc-workflow-designer</groupId>
<artifactId>sdc-workflow-designer</artifactId>
- <version>1.1.0-SNAPSHOT</version>
+ <version>1.2.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
<artifactId>distribution</artifactId>
<name>distribution</name>
<packaging>pom</packaging>
diff --git a/distribution/src/main/assembly/bin/find_kill_process.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat
index 6e08993f..9d129ee5 100644
--- a/distribution/src/main/assembly/bin/find_kill_process.bat
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat
@@ -1,20 +1,20 @@
-@REM
-@REM Copyright (c) 2017 ZTE Corporation.
-@REM All rights reserved. This program and the accompanying materials
-@REM are made available under the terms of the Eclipse Public License v1.0
-@REM and the Apache License 2.0 which both accompany this distribution,
-@REM and are available at http://www.eclipse.org/legal/epl-v10.html
-@REM and http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Contributors:
-@REM ZTE - initial API and implementation and/or initial documentation
-@REM
-
-echo %1 | findstr %2 >NUL
-echo ERRORLEVEL=%ERRORLEVEL%
-IF ERRORLEVEL 1 goto findend
-for /f "tokens=1" %%a in (%1) do (
- echo kill %1
- taskkill /F /pid %%a
-)
+@REM
+@REM Copyright (c) 2017 ZTE Corporation.
+@REM All rights reserved. This program and the accompanying materials
+@REM are made available under the terms of the Eclipse Public License v1.0
+@REM and the Apache License 2.0 which both accompany this distribution,
+@REM and are available at http://www.eclipse.org/legal/epl-v10.html
+@REM and http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Contributors:
+@REM ZTE - initial API and implementation and/or initial documentation
+@REM
+
+echo %1 | findstr %2 >NUL
+echo ERRORLEVEL=%ERRORLEVEL%
+IF ERRORLEVEL 1 goto findend
+for /f "tokens=1" %%a in (%1) do (
+ echo kill %1
+ taskkill /F /pid %%a
+)
:findend \ No newline at end of file
diff --git a/distribution/src/main/assembly/bin/run.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat
index 40467718..63f3dcd5 100644
--- a/distribution/src/main/assembly/bin/run.bat
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat
@@ -1,37 +1,37 @@
-@REM
-@REM Copyright (c) 2017 ZTE Corporation.
-@REM All rights reserved. This program and the accompanying materials
-@REM are made available under the terms of the Eclipse Public License v1.0
-@REM and the Apache License 2.0 which both accompany this distribution,
-@REM and are available at http://www.eclipse.org/legal/epl-v10.html
-@REM and http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Contributors:
-@REM ZTE - initial API and implementation and/or initial documentation
-@REM
-
-@echo off
-title sdc-workflow-designer
-
-set RUNHOME=%~dp0
-echo ### RUNHOME: %RUNHOME%
-echo ### Starting sdc-workflow-designer
-set main_path=%RUNHOME%..\
-cd /d %main_path%
-set JAVA="%JAVA_HOME%\bin\java.exe"
-set port=12345
-set jvm_opts=-Xms50m -Xmx128m
-set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n
-set class_path=%main_path%;%main_path%sdc-workflow-designer.jar
-echo ### jvm_opts: %jvm_opts%
-echo ### class_path: %class_path%
-
-%JAVA% -classpath %class_path% %jvm_opts% org.onap.sdc.workflowdesigner.WorkflowDesignerApp server %main_path%conf/workflow-designer.yml
-
-IF ERRORLEVEL 1 goto showerror
-exit
-:showerror
-echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check!
-echo After checking, press any key to close
-pause
+@REM
+@REM Copyright (c) 2017 ZTE Corporation.
+@REM All rights reserved. This program and the accompanying materials
+@REM are made available under the terms of the Eclipse Public License v1.0
+@REM and the Apache License 2.0 which both accompany this distribution,
+@REM and are available at http://www.eclipse.org/legal/epl-v10.html
+@REM and http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Contributors:
+@REM ZTE - initial API and implementation and/or initial documentation
+@REM
+
+@echo off
+title sdc-workflow-designer
+
+set RUNHOME=%~dp0
+echo ### RUNHOME: %RUNHOME%
+echo ### Starting sdc-workflow-designer
+set main_path=%RUNHOME%..\
+cd /d %main_path%
+set JAVA="%JAVA_HOME%\bin\java.exe"
+set port=12345
+set jvm_opts=-Xms50m -Xmx128m
+set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n
+set class_path=%main_path%;%main_path%sdc-workflow-designer.jar
+echo ### jvm_opts: %jvm_opts%
+echo ### class_path: %class_path%
+
+%JAVA% -classpath %class_path% %jvm_opts% org.onap.sdc.workflowdesigner.WorkflowDesignerApp server %main_path%conf/workflow-designer.yml
+
+IF ERRORLEVEL 1 goto showerror
+exit
+:showerror
+echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check!
+echo After checking, press any key to close
+pause
exit \ No newline at end of file
diff --git a/distribution/src/main/assembly/bin/run.sh b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh
index 05d0dfd8..05d0dfd8 100644
--- a/distribution/src/main/assembly/bin/run.sh
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh
diff --git a/distribution/src/main/assembly/bin/stop.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat
index 4407a449..974d41b6 100644
--- a/distribution/src/main/assembly/bin/stop.bat
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat
@@ -1,30 +1,30 @@
-@REM
-@REM Copyright (c) 2017 ZTE Corporation.
-@REM All rights reserved. This program and the accompanying materials
-@REM are made available under the terms of the Eclipse Public License v1.0
-@REM and the Apache License 2.0 which both accompany this distribution,
-@REM and are available at http://www.eclipse.org/legal/epl-v10.html
-@REM and http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Contributors:
-@REM ZTE - initial API and implementation and/or initial documentation
-@REM
-
-@echo off
-title stopping sdc-workflow-designer
-
-set HOME=%~dp0
-set Main_Class="org.onap.sdc.workflowdesigner.WorkflowDesignerApp"
-
-echo ================== sdc-workflow-designer info =============================================
-echo HOME=$HOME
-echo Main_Class=%Main_Class%
-echo ===============================================================================
-
-echo ### Stopping sdc-workflow-designer
-cd /d %HOME%
-
-for /f "delims=" %%i in ('"%JAVA_HOME%\bin\jcmd"') do (
- call find_kill_process "%%i" %Main_Class%
-)
+@REM
+@REM Copyright (c) 2017 ZTE Corporation.
+@REM All rights reserved. This program and the accompanying materials
+@REM are made available under the terms of the Eclipse Public License v1.0
+@REM and the Apache License 2.0 which both accompany this distribution,
+@REM and are available at http://www.eclipse.org/legal/epl-v10.html
+@REM and http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Contributors:
+@REM ZTE - initial API and implementation and/or initial documentation
+@REM
+
+@echo off
+title stopping sdc-workflow-designer
+
+set HOME=%~dp0
+set Main_Class="org.onap.sdc.workflowdesigner.WorkflowDesignerApp"
+
+echo ================== sdc-workflow-designer info =============================================
+echo HOME=$HOME
+echo Main_Class=%Main_Class%
+echo ===============================================================================
+
+echo ### Stopping sdc-workflow-designer
+cd /d %HOME%
+
+for /f "delims=" %%i in ('"%JAVA_HOME%\bin\jcmd"') do (
+ call find_kill_process "%%i" %Main_Class%
+)
exit \ No newline at end of file
diff --git a/distribution/src/main/assembly/bin/stop.sh b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh
index 3fe6d60d..3fe6d60d 100644
--- a/distribution/src/main/assembly/bin/stop.sh
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh
diff --git a/distribution/src/main/assembly/conf/workflow-designer.yml b/deprecated-workflow-designer/distribution/src/main/assembly/conf/workflow-designer.yml
index 9b35b261..9b35b261 100644
--- a/distribution/src/main/assembly/conf/workflow-designer.yml
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/conf/workflow-designer.yml
diff --git a/distribution/src/main/assembly/ext-activities-display-info.json b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities-display-info.json
index 72056a5d..72056a5d 100644
--- a/distribution/src/main/assembly/ext-activities-display-info.json
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities-display-info.json
diff --git a/distribution/src/main/assembly/ext-activities.json b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities.json
index 6defc343..6defc343 100644
--- a/distribution/src/main/assembly/ext-activities.json
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities.json
diff --git a/distribution/src/main/assembly/temp_workflow.json b/deprecated-workflow-designer/distribution/src/main/assembly/temp_workflow.json
index 3b3fa1c1..112372ec 100644
--- a/distribution/src/main/assembly/temp_workflow.json
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/temp_workflow.json
@@ -1,189 +1,189 @@
-{
- "id": "id12345",
- "name": "test",
- "scene": "abcd",
- "data": {
- "nodes": [
- {
- "id": "startEvent",
- "type": "startEvent",
- "name": "Start",
- "parentId": "root",
- "position": {
- "left": 73,
- "top": 160,
- "width": 56,
- "height": 56
- },
- "connection": [
- {
- "sourceRef": "startEvent",
- "targetRef": "scriptTask"
- }
- ],
- "parameters": []
- },
- {
- "id": "scriptTask",
- "type": "scriptTask",
- "typeId": "apds_scriptA",
- "icon": "apds_script",
- "name": "Stop traffic",
- "parentId": "root",
- "position": {
- "left": 175,
- "top": 160,
- "width": 56,
- "height": 56
- },
- "connection": [
- {
- "sourceRef": "scriptTask",
- "targetRef": "scriptTask_2"
- }
- ],
- "scriptFormat": "JavaScript",
- "script": "abc"
- },
- {
- "id": "scriptTask_2",
- "type": "scriptTask",
- "typeId": "apds_scriptB",
- "icon": "apds_script",
- "name": "Drain traffic",
- "parentId": "root",
- "position": {
- "left": 289,
- "top": 160,
- "width": 56,
- "height": 56
- },
- "connection": [
- {
- "sourceRef": "scriptTask_2",
- "targetRef": "serviceTask"
- }
- ],
- "scriptFormat": "Groovy",
- "script": "xyz"
- },
- {
- "id": "serviceTask",
- "type": "serviceTask",
- "typeId": "apds_serviceA",
- "icon": "apds_service",
- "name": "Stop VNF",
- "parentId": "root",
- "position": {
- "left": 392,
- "top": 160,
- "width": 56,
- "height": 56
- },
- "connection": [
- {
- "sourceRef": "serviceTask",
- "targetRef": "serviceTask_2"
- }
- ],
- "className": "",
- "inputs": [
- {
- "name": "param1",
- "value": "default",
- "valueSource": "string",
- "type": "string",
- "required": false,
- "show": true,
- "errorMsg": ""
- },
- {
- "name": "param2",
- "value": null,
- "valueSource": "string",
- "type": "string",
- "required": true,
- "show": true,
- "errorMsg": ""
- },
- {
- "name": "param3",
- "value": "value3",
- "valueSource": "string",
- "type": "string",
- "required": true,
- "show": true,
- "errorMsg": ""
- }
- ],
- "outputs": [
- {
- "name": "out1",
- "value": null,
- "valueSource": "string",
- "type": "string",
- "required": false,
- "show": true,
- "errorMsg": ""
- }
- ]
- },
- {
- "id": "serviceTask_2",
- "type": "serviceTask",
- "typeId": "apds_serviceB",
- "icon": "apds_service",
- "name": "Create VNF",
- "parentId": "root",
- "position": {
- "left": 500,
- "top": 160,
- "width": 56,
- "height": 56
- },
- "connection": [
- {
- "sourceRef": "serviceTask_2",
- "targetRef": "serviceTask_3"
- }
- ]
- },
- {
- "id": "serviceTask_3",
- "type": "serviceTask",
- "typeId": "apds_service",
- "icon": "apds_service",
- "name": "Start VNF",
- "parentId": "root",
- "position": {
- "left": 620,
- "top": 160,
- "width": 56,
- "height": 56
- },
- "connection": [
- {
- "sourceRef": "serviceTask_3",
- "targetRef": "endEvent"
- }
- ],
- "className": "",
- "inputs": [],
- "outputs": []
- },
- {
- "id": "endEvent",
- "type": "endEvent",
- "name": "End",
- "parentId": "root",
- "position": {
- "left": 744,
- "top": 160,
- "width": 56,
- "height": 56
- },
- "connection": []
- }
- ]
- }
-}
+{
+ "id": "id12345",
+ "name": "test",
+ "scene": "abcd",
+ "data": {
+ "nodes": [
+ {
+ "id": "startEvent",
+ "type": "startEvent",
+ "name": "Start",
+ "parentId": "root",
+ "position": {
+ "left": 73,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "startEvent",
+ "targetRef": "scriptTask"
+ }
+ ],
+ "parameters": []
+ },
+ {
+ "id": "scriptTask",
+ "type": "scriptTask",
+ "typeId": "apds_scriptA",
+ "icon": "apds_script",
+ "name": "Stop traffic",
+ "parentId": "root",
+ "position": {
+ "left": 175,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "scriptTask",
+ "targetRef": "scriptTask_2"
+ }
+ ],
+ "scriptFormat": "JavaScript",
+ "script": "abc"
+ },
+ {
+ "id": "scriptTask_2",
+ "type": "scriptTask",
+ "typeId": "apds_scriptB",
+ "icon": "apds_script",
+ "name": "Drain traffic",
+ "parentId": "root",
+ "position": {
+ "left": 289,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "scriptTask_2",
+ "targetRef": "serviceTask"
+ }
+ ],
+ "scriptFormat": "Groovy",
+ "script": "xyz"
+ },
+ {
+ "id": "serviceTask",
+ "type": "serviceTask",
+ "typeId": "apds_serviceA",
+ "icon": "apds_service",
+ "name": "Stop VNF",
+ "parentId": "root",
+ "position": {
+ "left": 392,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "serviceTask",
+ "targetRef": "serviceTask_2"
+ }
+ ],
+ "className": "",
+ "inputs": [
+ {
+ "name": "param1",
+ "value": "default",
+ "valueSource": "string",
+ "type": "string",
+ "required": false,
+ "show": true,
+ "errorMsg": ""
+ },
+ {
+ "name": "param2",
+ "value": null,
+ "valueSource": "string",
+ "type": "string",
+ "required": true,
+ "show": true,
+ "errorMsg": ""
+ },
+ {
+ "name": "param3",
+ "value": "value3",
+ "valueSource": "string",
+ "type": "string",
+ "required": true,
+ "show": true,
+ "errorMsg": ""
+ }
+ ],
+ "outputs": [
+ {
+ "name": "out1",
+ "value": null,
+ "valueSource": "string",
+ "type": "string",
+ "required": false,
+ "show": true,
+ "errorMsg": ""
+ }
+ ]
+ },
+ {
+ "id": "serviceTask_2",
+ "type": "serviceTask",
+ "typeId": "apds_serviceB",
+ "icon": "apds_service",
+ "name": "Create VNF",
+ "parentId": "root",
+ "position": {
+ "left": 500,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "serviceTask_2",
+ "targetRef": "serviceTask_3"
+ }
+ ]
+ },
+ {
+ "id": "serviceTask_3",
+ "type": "serviceTask",
+ "typeId": "apds_service",
+ "icon": "apds_service",
+ "name": "Start VNF",
+ "parentId": "root",
+ "position": {
+ "left": 620,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "serviceTask_3",
+ "targetRef": "endEvent"
+ }
+ ],
+ "className": "",
+ "inputs": [],
+ "outputs": []
+ },
+ {
+ "id": "endEvent",
+ "type": "endEvent",
+ "name": "End",
+ "parentId": "root",
+ "position": {
+ "left": 744,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": []
+ }
+ ]
+ }
+}
diff --git a/distribution/src/main/docker/Dockerfile b/deprecated-workflow-designer/distribution/src/main/docker/Dockerfile
index bd28c615..bd28c615 100644
--- a/distribution/src/main/docker/Dockerfile
+++ b/deprecated-workflow-designer/distribution/src/main/docker/Dockerfile
diff --git a/docker_run.sh b/deprecated-workflow-designer/docker_run.sh
index 1e386c05..1e386c05 100644
--- a/docker_run.sh
+++ b/deprecated-workflow-designer/docker_run.sh
diff --git a/docs/index.rst b/deprecated-workflow-designer/docs/index.rst
index 7198c38b..7198c38b 100644
--- a/docs/index.rst
+++ b/deprecated-workflow-designer/docs/index.rst
diff --git a/docs/platform/architecture.rst b/deprecated-workflow-designer/docs/platform/architecture.rst
index 8569dd9f..8569dd9f 100644
--- a/docs/platform/architecture.rst
+++ b/deprecated-workflow-designer/docs/platform/architecture.rst
diff --git a/docs/platform/consumedapis.rst b/deprecated-workflow-designer/docs/platform/consumedapis.rst
index c18f59bb..c18f59bb 100644
--- a/docs/platform/consumedapis.rst
+++ b/deprecated-workflow-designer/docs/platform/consumedapis.rst
diff --git a/docs/platform/delivery.rst b/deprecated-workflow-designer/docs/platform/delivery.rst
index af33c9d5..af33c9d5 100644
--- a/docs/platform/delivery.rst
+++ b/deprecated-workflow-designer/docs/platform/delivery.rst
diff --git a/docs/platform/human-interfaces.rst b/deprecated-workflow-designer/docs/platform/human-interfaces.rst
index 4a0484e1..4a0484e1 100644
--- a/docs/platform/human-interfaces.rst
+++ b/deprecated-workflow-designer/docs/platform/human-interfaces.rst
diff --git a/docs/platform/images/workflow architecture.PNG b/deprecated-workflow-designer/docs/platform/images/workflow architecture.PNG
index 35dcf7b0..35dcf7b0 100644
--- a/docs/platform/images/workflow architecture.PNG
+++ b/deprecated-workflow-designer/docs/platform/images/workflow architecture.PNG
Binary files differ
diff --git a/docs/platform/index.rst b/deprecated-workflow-designer/docs/platform/index.rst
index 4eceb6e6..4eceb6e6 100644
--- a/docs/platform/index.rst
+++ b/deprecated-workflow-designer/docs/platform/index.rst
diff --git a/docs/platform/installation.rst b/deprecated-workflow-designer/docs/platform/installation.rst
index 7362603b..7362603b 100644
--- a/docs/platform/installation.rst
+++ b/deprecated-workflow-designer/docs/platform/installation.rst
diff --git a/docs/platform/offeredapis.rst b/deprecated-workflow-designer/docs/platform/offeredapis.rst
index f179df4d..f179df4d 100644
--- a/docs/platform/offeredapis.rst
+++ b/deprecated-workflow-designer/docs/platform/offeredapis.rst
diff --git a/docs/release-notes.rst b/deprecated-workflow-designer/docs/release-notes.rst
index 299586f0..299586f0 100644
--- a/docs/release-notes.rst
+++ b/deprecated-workflow-designer/docs/release-notes.rst
diff --git a/deprecated-workflow-designer/pom.xml b/deprecated-workflow-designer/pom.xml
new file mode 100644
index 00000000..5776029e
--- /dev/null
+++ b/deprecated-workflow-designer/pom.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <groupId>org.onap.oparent</groupId>
+ <artifactId>oparent</artifactId>
+ <version>1.1.0</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
+ <artifactId>sdc-workflow-designer</artifactId>
+ <name>sdc-sdc-workflow-designer</name>
+ <version>1.2.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>sdc-workflow-designer-ui</module>
+ <module>sdc-workflow-designer-server</module>
+ <module>distribution</module>
+ </modules>
+
+ <properties>
+ <onap.nexus.javadocs-url>dav:https://nexus.onap.org/content/sites/site/org/onap/sdc/sdc-workflow-designer/${project.version}</onap.nexus.javadocs-url>
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>ecomp-releases</id>
+ <name>Release Repository</name>
+ <url>https://nexus.onap.org/content/repositories/releases/</url>
+ </repository>
+ <repository>
+ <id>ecomp-snapshots</id>
+ <name>Snapshots Repository</name>
+ <url>https://nexus.onap.org/content/repositories/snapshots/</url>
+ </repository>
+ <repository>
+ <id>ecomp-public</id>
+ <name>Public Repository</name>
+ <url>https://nexus.onap.org/content/repositories/public/</url>
+ </repository>
+ </repositories>
+
+ <distributionManagement>
+ <site>
+ <id>ecomp-site</id>
+ <url>${onap.nexus.javadocs-url}</url>
+ </site>
+ </distributionManagement>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.10</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
diff --git a/sdc-workflow-designer-server/pom.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/pom.xml
index 8e04d88a..91d3c3c2 100644
--- a/sdc-workflow-designer-server/pom.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/pom.xml
@@ -16,11 +16,10 @@
<parent>
<groupId>org.onap.sdc.sdc-workflow-designer</groupId>
<artifactId>sdc-workflow-designer</artifactId>
- <version>1.1.0-SNAPSHOT</version>
+ <version>1.2.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
<artifactId>sdc-workflow-designer-server</artifactId>
<name>sdc-workflow-designer-server</name>
<packaging>jar</packaging>
diff --git a/sdc-workflow-designer-server/src/main/assembly/ext-activities-display-info.json b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/ext-activities-display-info.json
index d6817db2..d6817db2 100644
--- a/sdc-workflow-designer-server/src/main/assembly/ext-activities-display-info.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/ext-activities-display-info.json
diff --git a/sdc-workflow-designer-server/src/main/assembly/ext-activities.json b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/ext-activities.json
index eae58fce..eae58fce 100644
--- a/sdc-workflow-designer-server/src/main/assembly/ext-activities.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/ext-activities.json
diff --git a/sdc-workflow-designer-server/src/main/assembly/temp_workflow.json b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/temp_workflow.json
index 1b44d91e..1d9c5474 100644
--- a/sdc-workflow-designer-server/src/main/assembly/temp_workflow.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/assembly/temp_workflow.json
@@ -1,143 +1,143 @@
-{
- "id":"id12345",
- "name":"test",
- "scene":"abcd",
- "data":{
- "nodes":[
- {
- "id":"node0",
- "type":"startEvent",
- "name":"开始",
- "parentId":"root",
- "position":{
- "left":100,
- "top":136,
- "width":56,
- "height":56
- },
- "connection":[
- {
- "sourceRef":"node0",
- "targetRef":"node1"
- }
- ],
- "parameters":[
-
- ]
- },
- {
- "id":"node1",
- "type":"restTask",
- "name":"REST",
- "parentId":"root",
- "position":{
- "left":254,
- "top":136,
- "width":56,
- "height":56
- },
- "connection":[
- {
- "sourceRef":"node1",
- "targetRef":"node2"
- }
- ],
- "produces":[
- "application/json; charset=utf-8"
- ],
- "parameters":[
- {
- "name":"body",
- "value":{
- "value":{
- "type":{
- "value":"jhgjhv",
- "valueSource":"String"
- },
- "provider":{
- "value":"",
- "valueSource":"Variable"
- },
- "serviceType":{
- "value":"",
- "valueSource":"String"
- },
- "start":{
- "value":{
- "year":{
- "value":"",
- "valueSource":"String"
- },
- "month":{
- "value":"",
- "valueSource":"String"
- },
- "day":{
- "value":"",
- "valueSource":"String"
- }
- },
- "valueSource":"Definition"
- },
- "end":{
- "value":{
- "year":{
- "value":"",
- "valueSource":"String"
- },
- "month":{
- "value":"",
- "valueSource":"String"
- },
- "day":{
- "value":"",
- "valueSource":"String"
- }
- },
- "valueSource":"Definition"
- }
- },
- "valueSource":"Definition"
- },
- "valueSource":"String",
- "type":"String",
- "required":false,
- "position":"body",
- "schema":{
- "$ref":"#/definitions/PackageQueryParams"
- }
- },
- {
- "name":"language-option",
- "value":"",
- "valueSource":"String",
- "type":"String",
- "required":false,
- "position":"header"
- }
- ],
- "responses":[
-
- ],
- "restConfigId":"catalog.v1",
- "path":"/csars",
- "method":"post"
- },
- {
- "id":"node2",
- "type":"endEvent",
- "name":"结束",
- "parentId":"root",
- "position":{
- "left":396,
- "top":136,
- "width":56,
- "height":56
- },
- "connection":[
-
- ]
- }
- ]
- }
+{
+ "id":"id12345",
+ "name":"test",
+ "scene":"abcd",
+ "data":{
+ "nodes":[
+ {
+ "id":"node0",
+ "type":"startEvent",
+ "name":"开始",
+ "parentId":"root",
+ "position":{
+ "left":100,
+ "top":136,
+ "width":56,
+ "height":56
+ },
+ "connection":[
+ {
+ "sourceRef":"node0",
+ "targetRef":"node1"
+ }
+ ],
+ "parameters":[
+
+ ]
+ },
+ {
+ "id":"node1",
+ "type":"restTask",
+ "name":"REST",
+ "parentId":"root",
+ "position":{
+ "left":254,
+ "top":136,
+ "width":56,
+ "height":56
+ },
+ "connection":[
+ {
+ "sourceRef":"node1",
+ "targetRef":"node2"
+ }
+ ],
+ "produces":[
+ "application/json; charset=utf-8"
+ ],
+ "parameters":[
+ {
+ "name":"body",
+ "value":{
+ "value":{
+ "type":{
+ "value":"jhgjhv",
+ "valueSource":"String"
+ },
+ "provider":{
+ "value":"",
+ "valueSource":"Variable"
+ },
+ "serviceType":{
+ "value":"",
+ "valueSource":"String"
+ },
+ "start":{
+ "value":{
+ "year":{
+ "value":"",
+ "valueSource":"String"
+ },
+ "month":{
+ "value":"",
+ "valueSource":"String"
+ },
+ "day":{
+ "value":"",
+ "valueSource":"String"
+ }
+ },
+ "valueSource":"Definition"
+ },
+ "end":{
+ "value":{
+ "year":{
+ "value":"",
+ "valueSource":"String"
+ },
+ "month":{
+ "value":"",
+ "valueSource":"String"
+ },
+ "day":{
+ "value":"",
+ "valueSource":"String"
+ }
+ },
+ "valueSource":"Definition"
+ }
+ },
+ "valueSource":"Definition"
+ },
+ "valueSource":"String",
+ "type":"String",
+ "required":false,
+ "position":"body",
+ "schema":{
+ "$ref":"#/definitions/PackageQueryParams"
+ }
+ },
+ {
+ "name":"language-option",
+ "value":"",
+ "valueSource":"String",
+ "type":"String",
+ "required":false,
+ "position":"header"
+ }
+ ],
+ "responses":[
+
+ ],
+ "restConfigId":"catalog.v1",
+ "path":"/csars",
+ "method":"post"
+ },
+ {
+ "id":"node2",
+ "type":"endEvent",
+ "name":"结束",
+ "parentId":"root",
+ "position":{
+ "left":396,
+ "top":136,
+ "width":56,
+ "height":56
+ },
+ "connection":[
+
+ ]
+ }
+ ]
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/ActivitySpecServiceProxyInfo.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/ActivitySpecServiceProxyInfo.java
index fb82e506..fb82e506 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/ActivitySpecServiceProxyInfo.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/ActivitySpecServiceProxyInfo.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfo.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfo.java
index df4d0caa..e8fd07d4 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfo.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfo.java
@@ -1,74 +1,74 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- *
- */
-public class SDCServiceProxyInfo {
- private String serviceAddr;
-
- private String xEcompInstanceId;
-
- private String authorization;
-
- /**
- * @return the serviceAddr
- */
- @JsonProperty
- public String getServiceAddr() {
- return serviceAddr;
- }
-
- /**
- * @param serviceAddr the serviceAddr to set
- */
- @JsonProperty
- public void setServiceAddr(String serviceAddr) {
- this.serviceAddr = serviceAddr;
- }
-
- /**
- * @return the xEcompInstanceId
- */
- @JsonProperty
- public String getxEcompInstanceId() {
- return xEcompInstanceId;
- }
-
- /**
- * @param xEcompInstanceId the xEcompInstanceId to set
- */
- @JsonProperty
- public void setxEcompInstanceId(String xEcompInstanceId) {
- this.xEcompInstanceId = xEcompInstanceId;
- }
-
- /**
- * @return the authorization
- */
- @JsonProperty
- public String getAuthorization() {
- return authorization;
- }
-
- /**
- * @param authorization the authorization to set
- */
- @JsonProperty
- public void setAuthorization(String authorization) {
- this.authorization = authorization;
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ *
+ */
+public class SDCServiceProxyInfo {
+ private String serviceAddr;
+
+ private String xEcompInstanceId;
+
+ private String authorization;
+
+ /**
+ * @return the serviceAddr
+ */
+ @JsonProperty
+ public String getServiceAddr() {
+ return serviceAddr;
+ }
+
+ /**
+ * @param serviceAddr the serviceAddr to set
+ */
+ @JsonProperty
+ public void setServiceAddr(String serviceAddr) {
+ this.serviceAddr = serviceAddr;
+ }
+
+ /**
+ * @return the xEcompInstanceId
+ */
+ @JsonProperty
+ public String getxEcompInstanceId() {
+ return xEcompInstanceId;
+ }
+
+ /**
+ * @param xEcompInstanceId the xEcompInstanceId to set
+ */
+ @JsonProperty
+ public void setxEcompInstanceId(String xEcompInstanceId) {
+ this.xEcompInstanceId = xEcompInstanceId;
+ }
+
+ /**
+ * @return the authorization
+ */
+ @JsonProperty
+ public String getAuthorization() {
+ return authorization;
+ }
+
+ /**
+ * @param authorization the authorization to set
+ */
+ @JsonProperty
+ public void setAuthorization(String authorization) {
+ this.authorization = authorization;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java
index c9e0c40d..c9e0c40d 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfiguration.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfiguration.java
index 4c6766be..4c6766be 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfiguration.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfiguration.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/ActivitySpecProxyException.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/ActivitySpecProxyException.java
index bc3cf4b6..bc3cf4b6 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/ActivitySpecProxyException.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/ActivitySpecProxyException.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/SDCProxyException.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/SDCProxyException.java
index 8f596b0c..8f596b0c 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/SDCProxyException.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/common/SDCProxyException.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AdapterType.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AdapterType.java
index 6f9c291b..0c6e4c8b 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AdapterType.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AdapterType.java
@@ -1,20 +1,20 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.config;
-
-/**
- *
- */
-public enum AdapterType {
- DEFAULT, SDC
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.config;
+
+/**
+ *
+ */
+public enum AdapterType {
+ DEFAULT, SDC
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AppConfig.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AppConfig.java
index a6f72be0..a6f72be0 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AppConfig.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/AppConfig.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java
index 91cd4983..74d80e04 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java
@@ -1,54 +1,54 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.config;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Properties;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class Config {
- private static Logger log = LoggerFactory.getLogger(Config.class);
- private static String configFilePath = "bpmn.config.properties";
- public final static String HANDLER_ClASS = "handlerClass";
- public final static String TEMPLATE_PATH = "templatePath";
-
- public final static Properties PROPERTIES = load();
-
- public static Properties load() {
- Properties properties = new Properties();
- InputStream in = null;
- try {
- in = Config.class.getClassLoader().getResourceAsStream(configFilePath);
- properties.load(in);
- } catch (FileNotFoundException e) {
- log.error(configFilePath, e);
- } catch (IOException e) {
- log.error(configFilePath, e);
- } catch (Exception e) {
- log.error(configFilePath, e);
- } finally {
- if (in != null) {
- try {
- in.close();
- } catch (IOException e) {
- log.error(configFilePath, e);
- }
- }
- }
-
- return properties;
- }
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.config;
+
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Config {
+ private static Logger log = LoggerFactory.getLogger(Config.class);
+ private static String configFilePath = "bpmn.config.properties";
+ public final static String HANDLER_ClASS = "handlerClass";
+ public final static String TEMPLATE_PATH = "templatePath";
+
+ public final static Properties PROPERTIES = load();
+
+ public static Properties load() {
+ Properties properties = new Properties();
+ InputStream in = null;
+ try {
+ in = Config.class.getClassLoader().getResourceAsStream(configFilePath);
+ properties.load(in);
+ } catch (FileNotFoundException e) {
+ log.error(configFilePath, e);
+ } catch (IOException e) {
+ log.error(configFilePath, e);
+ } catch (Exception e) {
+ log.error(configFilePath, e);
+ } finally {
+ if (in != null) {
+ try {
+ in.close();
+ } catch (IOException e) {
+ log.error(configFilePath, e);
+ }
+ }
+ }
+
+ return properties;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecService.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecService.java
index b85d6d0b..b85d6d0b 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecService.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecService.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecServiceProxy.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecServiceProxy.java
index e210e872..e210e872 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecServiceProxy.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/ActivitySpecServiceProxy.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCService.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCService.java
index d5a55669..d5a55669 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCService.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCService.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCServiceProxy.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCServiceProxy.java
index 374bca7a..374bca7a 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCServiceProxy.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/SDCServiceProxy.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContent.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContent.java
index 66208a2c..092e8627 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContent.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContent.java
@@ -1,59 +1,59 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- */
-public class ActivityContent {
- @JsonProperty(value="class") // for dropwizard's Jackson
- @SerializedName("class") // for Gson
- public String clazz;
-
- private String scriptFormat;
-
- private String script;
-
-
- /**
- * @return the scriptFormat
- */
- public String getScriptFormat() {
- return scriptFormat;
- }
-
- /**
- * @param scriptFormat the scriptFormat to set
- */
- public void setScriptFormat(String scriptFormat) {
- this.scriptFormat = scriptFormat;
- }
-
- /**
- * @return the script
- */
- public String getScript() {
- return script;
- }
-
- /**
- * @param script the script to set
- */
- public void setScript(String script) {
- this.script = script;
- }
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.gson.annotations.SerializedName;
+
+/**
+ *
+ */
+public class ActivityContent {
+ @JsonProperty(value="class") // for dropwizard's Jackson
+ @SerializedName("class") // for Gson
+ public String clazz;
+
+ private String scriptFormat;
+
+ private String script;
+
+
+ /**
+ * @return the scriptFormat
+ */
+ public String getScriptFormat() {
+ return scriptFormat;
+ }
+
+ /**
+ * @param scriptFormat the scriptFormat to set
+ */
+ public void setScriptFormat(String scriptFormat) {
+ this.scriptFormat = scriptFormat;
+ }
+
+ /**
+ * @return the script
+ */
+ public String getScript() {
+ return script;
+ }
+
+ /**
+ * @param script the script to set
+ */
+ public void setScript(String script) {
+ this.script = script;
+ }
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpec.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpec.java
index 942afcab..ecaffb38 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpec.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpec.java
@@ -1,179 +1,179 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
-
-/**
- *
- */
-public class ActivitySpec {
- private String id;
-
- private String versionId;
-
- private String name;
-
- private String description;
-
- private String type;
-
- private String content;
-
- private String[] categoryList;
-
- private Parameter[] inputs;
-
- private Parameter[] outputs;
-
- private String status;
-
- /**
- * @return the id
- */
- public String getId() {
- return id;
- }
-
- /**
- * @param id the id to set
- */
- public void setId(String id) {
- this.id = id;
- }
-
- /**
- * @return the versionId
- */
- public String getVersionId() {
- return versionId;
- }
-
- /**
- * @param versionId the versionId to set
- */
- public void setVersionId(String versionId) {
- this.versionId = versionId;
- }
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @param description the description to set
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * @param type the type to set
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * @return the content
- */
- public String getContent() {
- return content;
- }
-
- /**
- * @param content the content to set
- */
- public void setContent(String content) {
- this.content = content;
- }
-
- /**
- * @return the categoryList
- */
- public String[] getCategoryList() {
- return categoryList;
- }
-
- /**
- * @param categoryList the categoryList to set
- */
- public void setCategoryList(String[] categoryList) {
- this.categoryList = categoryList;
- }
-
- /**
- * @return the inputs
- */
- public Parameter[] getInputs() {
- return inputs;
- }
-
- /**
- * @param inputs the inputs to set
- */
- public void setInputs(Parameter[] inputs) {
- this.inputs = inputs;
- }
-
- /**
- * @return the outputs
- */
- public Parameter[] getOutputs() {
- return outputs;
- }
-
- /**
- * @param outputs the outputs to set
- */
- public void setOutputs(Parameter[] outputs) {
- this.outputs = outputs;
- }
-
- /**
- * @return the status
- */
- public String getStatus() {
- return status;
- }
-
- /**
- * @param status the status to set
- */
- public void setStatus(String status) {
- this.status = status;
- }
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
+
+/**
+ *
+ */
+public class ActivitySpec {
+ private String id;
+
+ private String versionId;
+
+ private String name;
+
+ private String description;
+
+ private String type;
+
+ private String content;
+
+ private String[] categoryList;
+
+ private Parameter[] inputs;
+
+ private Parameter[] outputs;
+
+ private String status;
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the versionId
+ */
+ public String getVersionId() {
+ return versionId;
+ }
+
+ /**
+ * @param versionId the versionId to set
+ */
+ public void setVersionId(String versionId) {
+ this.versionId = versionId;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * @param description the description to set
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /**
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * @param type the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ * @return the content
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * @param content the content to set
+ */
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ /**
+ * @return the categoryList
+ */
+ public String[] getCategoryList() {
+ return categoryList;
+ }
+
+ /**
+ * @param categoryList the categoryList to set
+ */
+ public void setCategoryList(String[] categoryList) {
+ this.categoryList = categoryList;
+ }
+
+ /**
+ * @return the inputs
+ */
+ public Parameter[] getInputs() {
+ return inputs;
+ }
+
+ /**
+ * @param inputs the inputs to set
+ */
+ public void setInputs(Parameter[] inputs) {
+ this.inputs = inputs;
+ }
+
+ /**
+ * @return the outputs
+ */
+ public Parameter[] getOutputs() {
+ return outputs;
+ }
+
+ /**
+ * @param outputs the outputs to set
+ */
+ public void setOutputs(Parameter[] outputs) {
+ this.outputs = outputs;
+ }
+
+ /**
+ * @return the status
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * @param status the status to set
+ */
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/GenericCollectionWrapper.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/GenericCollectionWrapper.java
index 59813605..59813605 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/GenericCollectionWrapper.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/GenericCollectionWrapper.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/Parameter.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/Parameter.java
index 8a1aaf14..86a3d578 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/Parameter.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/Parameter.java
@@ -1,87 +1,87 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
-
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- */
-public class Parameter {
- private String name;
-
- private String type;
-
- @SerializedName("default")
- private String defaultValue;
-
- private String value;
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * @param type the type to set
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * @return the defaultValue
- */
- public String getDefault() {
- return defaultValue;
- }
-
- /**
- * @param defaultValue the defaultValue to set
- */
- public void setDefault(String defaultValue) {
- this.defaultValue = defaultValue;
- }
-
- /**
- * @return the value
- */
- public String getValue() {
- return value;
- }
-
- /**
- * @param value the value to set
- */
- public void setValue(String value) {
- this.value = value;
- }
-
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
+
+import com.google.gson.annotations.SerializedName;
+
+/**
+ *
+ */
+public class Parameter {
+ private String name;
+
+ private String type;
+
+ @SerializedName("default")
+ private String defaultValue;
+
+ private String value;
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * @param type the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ * @return the defaultValue
+ */
+ public String getDefault() {
+ return defaultValue;
+ }
+
+ /**
+ * @param defaultValue the defaultValue to set
+ */
+ public void setDefault(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ /**
+ * @return the value
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * @param value the value to set
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfo.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfo.java
index e2cab05e..e2cab05e 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfo.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfo.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/DataObject.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/DataObject.java
index 0ae76b5b..7c1e058c 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/DataObject.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/DataObject.java
@@ -1,42 +1,42 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class DataObject {
- private String id;
- private String name;
- private String value;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class DataObject {
+ private String id;
+ private String name;
+ private String value;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java
index 762d480b..4c362231 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java
@@ -1,85 +1,85 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import java.util.List;
-
-public class Element {
- public enum TYPE {
- startEvent,
- endEvent,
- errorStartEvent,
- errorEndEvent,
- serviceTask,
- scriptTask,
- exclusiveGateway,
- parallelGateway,
- restTask,
- intermediateCatchEvent
- };
-
- private String id;
- private String name;
- private TYPE type;
- private String documentation;
- private Position position;
- private List<String> connections;
-
- public String getId() {
- return id;
- }
-
- public Position getPosition() {
- return position;
- }
-
- public void setPosition(Position position) {
- this.position = position;
- }
-
- public List<String> getConnections() {
- return connections;
- }
-
- public void setConnections(List<String> connections) {
- this.connections = connections;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDocumentation() {
- return documentation;
- }
-
- public void setDocumentation(String documentation) {
- this.documentation = documentation;
- }
-
- public TYPE getType() {
- return type;
- }
-
- public void setType(TYPE type) {
- this.type = type;
- }
-
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import java.util.List;
+
+public class Element {
+ public enum TYPE {
+ startEvent,
+ endEvent,
+ errorStartEvent,
+ errorEndEvent,
+ serviceTask,
+ scriptTask,
+ exclusiveGateway,
+ parallelGateway,
+ restTask,
+ intermediateCatchEvent
+ };
+
+ private String id;
+ private String name;
+ private TYPE type;
+ private String documentation;
+ private Position position;
+ private List<String> connections;
+
+ public String getId() {
+ return id;
+ }
+
+ public Position getPosition() {
+ return position;
+ }
+
+ public void setPosition(Position position) {
+ this.position = position;
+ }
+
+ public List<String> getConnections() {
+ return connections;
+ }
+
+ public void setConnections(List<String> connections) {
+ this.connections = connections;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDocumentation() {
+ return documentation;
+ }
+
+ public void setDocumentation(String documentation) {
+ this.documentation = documentation;
+ }
+
+ public TYPE getType() {
+ return type;
+ }
+
+ public void setType(TYPE type) {
+ this.type = type;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/EndEvent.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/EndEvent.java
index c25e623e..56d81e63 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/EndEvent.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/EndEvent.java
@@ -1,16 +1,16 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class EndEvent extends Element {
- public final static String TYPE = "endEvent";
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class EndEvent extends Element {
+ public final static String TYPE = "endEvent";
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorEndEvent.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorEndEvent.java
index 0fda8c27..0fda8c27 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorEndEvent.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorEndEvent.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorStartEvent.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorStartEvent.java
index b4cf96c0..b4cf96c0 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorStartEvent.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ErrorStartEvent.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ExclusiveGateway.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ExclusiveGateway.java
index 77bc28c0..d34a4f9e 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ExclusiveGateway.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ExclusiveGateway.java
@@ -1,16 +1,16 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class ExclusiveGateway extends Element {
- public final static String TYPE = "exclusiveGateway";
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class ExclusiveGateway extends Element {
+ public final static String TYPE = "exclusiveGateway";
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/IntermediateCatchEvent.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/IntermediateCatchEvent.java
index ae6260c4..be8b28ea 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/IntermediateCatchEvent.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/IntermediateCatchEvent.java
@@ -1,25 +1,25 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class IntermediateCatchEvent extends Element {
- private TimerEventDefinition timerEventDefinition;
-
- public TimerEventDefinition getTimerEventDefinition() {
- return timerEventDefinition;
- }
-
- public void setTimerEventDefinition(TimerEventDefinition timerEventDefinition) {
- this.timerEventDefinition = timerEventDefinition;
- }
-
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class IntermediateCatchEvent extends Element {
+ private TimerEventDefinition timerEventDefinition;
+
+ public TimerEventDefinition getTimerEventDefinition() {
+ return timerEventDefinition;
+ }
+
+ public void setTimerEventDefinition(TimerEventDefinition timerEventDefinition) {
+ this.timerEventDefinition = timerEventDefinition;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ParallelGateway.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ParallelGateway.java
index b56aa33d..bde17957 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ParallelGateway.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ParallelGateway.java
@@ -1,16 +1,16 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class ParallelGateway extends Element {
- public final static String TYPE = "parallelGateway";
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class ParallelGateway extends Element {
+ public final static String TYPE = "parallelGateway";
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Parameter.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Parameter.java
index cf4c651f..039427ca 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Parameter.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Parameter.java
@@ -1,103 +1,103 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-public class Parameter {
- private static Logger log = LoggerFactory.getLogger(Parameter.class);
- private String description = "";
- private String name;
- private String position;
- private boolean required;
- private String type;
-
- // body parameter may be a json object
- private Object value;
-
- @JsonInclude(Include.NON_NULL)
- private String valueSource;
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getPosition() {
- return position;
- }
-
- public void setPosition(String position) {
- this.position = position;
- }
-
- public boolean isRequired() {
- return required;
- }
-
- public void setRequired(boolean required) {
- this.required = required;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public Object getValue() {
- return value;
- }
-
- public void setValue(Object value) {
- this.value = value;
- }
-
- public String getValueSource() {
- return valueSource;
- }
-
- public void setValueSource(String valueSource) {
- this.valueSource = valueSource;
- }
-
- public String toString() {
- ObjectMapper mapper = new ObjectMapper();
- String result = null;
- try {
- result = mapper.writeValueAsString(this);
- } catch (JsonProcessingException e) {
- log.error("fail to convert parameter to json string", e);
- }
- return result;
- }
-
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+public class Parameter {
+ private static Logger log = LoggerFactory.getLogger(Parameter.class);
+ private String description = "";
+ private String name;
+ private String position;
+ private boolean required;
+ private String type;
+
+ // body parameter may be a json object
+ private Object value;
+
+ @JsonInclude(Include.NON_NULL)
+ private String valueSource;
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public void setValue(Object value) {
+ this.value = value;
+ }
+
+ public String getValueSource() {
+ return valueSource;
+ }
+
+ public void setValueSource(String valueSource) {
+ this.valueSource = valueSource;
+ }
+
+ public String toString() {
+ ObjectMapper mapper = new ObjectMapper();
+ String result = null;
+ try {
+ result = mapper.writeValueAsString(this);
+ } catch (JsonProcessingException e) {
+ log.error("fail to convert parameter to json string", e);
+ }
+ return result;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java
index a409dd82..094bce34 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java
@@ -1,33 +1,33 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class Position {
- private int left;
- private int top;
-
- public int getLeft() {
- return left;
- }
-
- public void setLeft(int left) {
- this.left = left;
- }
-
- public int getTop() {
- return top;
- }
-
- public void setTop(int top) {
- this.top = top;
- }
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class Position {
+ private int left;
+ private int top;
+
+ public int getLeft() {
+ return left;
+ }
+
+ public void setLeft(int left) {
+ this.left = left;
+ }
+
+ public int getTop() {
+ return top;
+ }
+
+ public void setTop(int top) {
+ this.top = top;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java
index 6413ad67..3a9c7def 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java
@@ -1,67 +1,67 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class Process {
- private String id;
- private boolean isExecutable;
- private List<Element> elementList = new ArrayList<Element>();
- private List<SequenceFlow> sequenceFlowList = new ArrayList<SequenceFlow>();
- private List<DataObject> dataObjectList = new ArrayList<DataObject>();
-
- public Process(String id) {
- this.id = id;
- }
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public boolean isExecutable() {
- return isExecutable;
- }
-
- public void setExecutable(boolean isExecutable) {
- this.isExecutable = isExecutable;
- }
-
- public List<Element> getElementList() {
- return elementList;
- }
-
- public void setElementList(List<Element> elementList) {
- this.elementList = elementList;
- }
-
- public List<SequenceFlow> getSequenceFlowList() {
- return sequenceFlowList;
- }
-
- public void setSequenceFlowList(List<SequenceFlow> sequenceFlowList) {
- this.sequenceFlowList = sequenceFlowList;
- }
-
- public List<DataObject> getDataObjectList() {
- return dataObjectList;
- }
-
- public void setDataObjectList(List<DataObject> dataObjectList) {
- this.dataObjectList = dataObjectList;
- }
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Process {
+ private String id;
+ private boolean isExecutable;
+ private List<Element> elementList = new ArrayList<Element>();
+ private List<SequenceFlow> sequenceFlowList = new ArrayList<SequenceFlow>();
+ private List<DataObject> dataObjectList = new ArrayList<DataObject>();
+
+ public Process(String id) {
+ this.id = id;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public boolean isExecutable() {
+ return isExecutable;
+ }
+
+ public void setExecutable(boolean isExecutable) {
+ this.isExecutable = isExecutable;
+ }
+
+ public List<Element> getElementList() {
+ return elementList;
+ }
+
+ public void setElementList(List<Element> elementList) {
+ this.elementList = elementList;
+ }
+
+ public List<SequenceFlow> getSequenceFlowList() {
+ return sequenceFlowList;
+ }
+
+ public void setSequenceFlowList(List<SequenceFlow> sequenceFlowList) {
+ this.sequenceFlowList = sequenceFlowList;
+ }
+
+ public List<DataObject> getDataObjectList() {
+ return dataObjectList;
+ }
+
+ public void setDataObjectList(List<DataObject> dataObjectList) {
+ this.dataObjectList = dataObjectList;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/RestServiceTask.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/RestServiceTask.java
index 8a8da55a..fb425aae 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/RestServiceTask.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/RestServiceTask.java
@@ -1,95 +1,95 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import java.util.List;
-
-import org.onap.sdc.workflowdesigner.config.Config;
-
-public class RestServiceTask extends ServiceTask {
- private static String handler = Config.PROPERTIES.getProperty(Config.HANDLER_ClASS);
-
-// private String restConfigId;
-// public String getRestConfigId() {
-// return restConfigId;
-// }
-// public void setRestConfigId(String restConfigId) {
-// this.restConfigId = restConfigId;
-// }
- private List<String> produces;
- private List<String> consumes;
-
-
- private List<Parameter> parameters;
- private String baseUrl;
- private String serviceName;
- private String serviceVersion;
- private String path;
- private String method;
-
- public String getBaseUrl() {
- return baseUrl;
- }
- public void setBaseUrl(String url) {
- this.baseUrl = url;
- }
-
- public String getMethod() {
- return method;
- }
-
- public static String getHandler() {
- return handler;
- }
- public static void setHandler(String handler) {
- RestServiceTask.handler = handler;
- }
- public void setMethod(String method) {
- this.method = method;
- }
- public List<String> getProduces() {
- return produces;
- }
- public void setProduces(List<String> produces) {
- this.produces = produces;
- }
- public List<String> getConsumes() {
- return consumes;
- }
- public void setConsumes(List<String> consumes) {
- this.consumes = consumes;
- }
- public List<Parameter> getParameters() {
- return parameters;
- }
- public void setParameters(List<Parameter> parameters) {
- this.parameters = parameters;
- }
- public String getServiceName() {
- return serviceName;
- }
- public void setServiceName(String serviceName) {
- this.serviceName = serviceName;
- }
- public String getServiceVersion() {
- return serviceVersion;
- }
- public void setServiceVersion(String serviceVersion) {
- this.serviceVersion = serviceVersion;
- }
- public String getPath() {
- return path;
- }
- public void setPath(String path) {
- this.path = path;
- }
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import java.util.List;
+
+import org.onap.sdc.workflowdesigner.config.Config;
+
+public class RestServiceTask extends ServiceTask {
+ private static String handler = Config.PROPERTIES.getProperty(Config.HANDLER_ClASS);
+
+// private String restConfigId;
+// public String getRestConfigId() {
+// return restConfigId;
+// }
+// public void setRestConfigId(String restConfigId) {
+// this.restConfigId = restConfigId;
+// }
+ private List<String> produces;
+ private List<String> consumes;
+
+
+ private List<Parameter> parameters;
+ private String baseUrl;
+ private String serviceName;
+ private String serviceVersion;
+ private String path;
+ private String method;
+
+ public String getBaseUrl() {
+ return baseUrl;
+ }
+ public void setBaseUrl(String url) {
+ this.baseUrl = url;
+ }
+
+ public String getMethod() {
+ return method;
+ }
+
+ public static String getHandler() {
+ return handler;
+ }
+ public static void setHandler(String handler) {
+ RestServiceTask.handler = handler;
+ }
+ public void setMethod(String method) {
+ this.method = method;
+ }
+ public List<String> getProduces() {
+ return produces;
+ }
+ public void setProduces(List<String> produces) {
+ this.produces = produces;
+ }
+ public List<String> getConsumes() {
+ return consumes;
+ }
+ public void setConsumes(List<String> consumes) {
+ this.consumes = consumes;
+ }
+ public List<Parameter> getParameters() {
+ return parameters;
+ }
+ public void setParameters(List<Parameter> parameters) {
+ this.parameters = parameters;
+ }
+ public String getServiceName() {
+ return serviceName;
+ }
+ public void setServiceName(String serviceName) {
+ this.serviceName = serviceName;
+ }
+ public String getServiceVersion() {
+ return serviceVersion;
+ }
+ public void setServiceVersion(String serviceVersion) {
+ this.serviceVersion = serviceVersion;
+ }
+ public String getPath() {
+ return path;
+ }
+ public void setPath(String path) {
+ this.path = path;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ScriptTask.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ScriptTask.java
index 3ccba04e..51d916cd 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ScriptTask.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ScriptTask.java
@@ -1,33 +1,33 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class ScriptTask extends Element {
- private String scriptFormat;
- private String script;
-
- public String getScriptFormat() {
- return scriptFormat;
- }
-
- public void setScriptFormat(String scriptFormat) {
- this.scriptFormat = scriptFormat;
- }
-
- public String getScript() {
- return script;
- }
-
- public void setScript(String script) {
- this.script = script;
- }
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class ScriptTask extends Element {
+ private String scriptFormat;
+ private String script;
+
+ public String getScriptFormat() {
+ return scriptFormat;
+ }
+
+ public void setScriptFormat(String scriptFormat) {
+ this.scriptFormat = scriptFormat;
+ }
+
+ public String getScript() {
+ return script;
+ }
+
+ public void setScript(String script) {
+ this.script = script;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java
index 5fb6ba2c..6e7588a7 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java
@@ -1,70 +1,70 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class SequenceFlow {
- private String id = "";
- private String name;
- private String sourceRef;
- private String targetRef;
- private String documentation;
- private String condition;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getSourceRef() {
- return sourceRef;
- }
-
- public void setSourceRef(String sourceRef) {
- this.sourceRef = sourceRef;
- }
-
- public String getTargetRef() {
- return targetRef;
- }
-
- public void setTargetRef(String targetRef) {
- this.targetRef = targetRef;
- }
-
- public String getDocumentation() {
- return documentation;
- }
-
- public void setDocumentation(String documentation) {
- this.documentation = documentation;
- }
-
- public String getCondition() {
- return condition;
- }
-
- public void setCondition(String condition) {
- this.condition = condition;
- }
-
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class SequenceFlow {
+ private String id = "";
+ private String name;
+ private String sourceRef;
+ private String targetRef;
+ private String documentation;
+ private String condition;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getSourceRef() {
+ return sourceRef;
+ }
+
+ public void setSourceRef(String sourceRef) {
+ this.sourceRef = sourceRef;
+ }
+
+ public String getTargetRef() {
+ return targetRef;
+ }
+
+ public void setTargetRef(String targetRef) {
+ this.targetRef = targetRef;
+ }
+
+ public String getDocumentation() {
+ return documentation;
+ }
+
+ public void setDocumentation(String documentation) {
+ this.documentation = documentation;
+ }
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public void setCondition(String condition) {
+ this.condition = condition;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ServiceTask.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ServiceTask.java
index 90bc5d0e..8770d39c 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ServiceTask.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/ServiceTask.java
@@ -1,44 +1,44 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import java.util.List;
-
-public class ServiceTask extends Element {
- private String className;
- private List<Parameter> inputs;
- private List<Parameter> outputs;
-
- public String getClassName() {
- return className;
- }
-
- public void setClassName(String className) {
- this.className = className;
- }
-
- public List<Parameter> getInputs() {
- return inputs;
- }
-
- public void setInputs(List<Parameter> inputs) {
- this.inputs = inputs;
- }
-
- public List<Parameter> getOutputs() {
- return outputs;
- }
-
- public void setOutputs(List<Parameter> outputs) {
- this.outputs = outputs;
- }
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import java.util.List;
+
+public class ServiceTask extends Element {
+ private String className;
+ private List<Parameter> inputs;
+ private List<Parameter> outputs;
+
+ public String getClassName() {
+ return className;
+ }
+
+ public void setClassName(String className) {
+ this.className = className;
+ }
+
+ public List<Parameter> getInputs() {
+ return inputs;
+ }
+
+ public void setInputs(List<Parameter> inputs) {
+ this.inputs = inputs;
+ }
+
+ public List<Parameter> getOutputs() {
+ return outputs;
+ }
+
+ public void setOutputs(List<Parameter> outputs) {
+ this.outputs = outputs;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/StartEvent.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/StartEvent.java
index b24b0e22..c6517512 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/StartEvent.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/StartEvent.java
@@ -1,29 +1,29 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import java.util.List;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class StartEvent extends Element {
- @JsonProperty("parameters")
- private List<Parameter> parameters;
-
- public List<Parameter> getParameters() {
- return parameters;
- }
-
- public void setParameters(List<Parameter> parameters) {
- this.parameters = parameters;
- }
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class StartEvent extends Element {
+ @JsonProperty("parameters")
+ private List<Parameter> parameters;
+
+ public List<Parameter> getParameters() {
+ return parameters;
+ }
+
+ public void setParameters(List<Parameter> parameters) {
+ this.parameters = parameters;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinition.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinition.java
index c7b4b829..67304f96 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinition.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinition.java
@@ -1,52 +1,52 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-public class TimerEventDefinition {
- private String type;
- private String timeDuration;
- private String timeDate;
- private String timeCycle;
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public String getTimeDuration() {
- return timeDuration;
- }
-
- public void setTimeDuration(String timeDuration) {
- this.timeDuration = timeDuration;
- }
-
- public String getTimeDate() {
- return timeDate;
- }
-
- public void setTimeDate(String timeDate) {
- this.timeDate = timeDate;
- }
-
- public String getTimeCycle() {
- return timeCycle;
- }
-
- public void setTimeCycle(String timeCycle) {
- this.timeCycle = timeCycle;
- }
-
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class TimerEventDefinition {
+ private String type;
+ private String timeDuration;
+ private String timeDate;
+ private String timeCycle;
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getTimeDuration() {
+ return timeDuration;
+ }
+
+ public void setTimeDuration(String timeDuration) {
+ this.timeDuration = timeDuration;
+ }
+
+ public String getTimeDate() {
+ return timeDate;
+ }
+
+ public void setTimeDate(String timeDate) {
+ this.timeDate = timeDate;
+ }
+
+ public String getTimeCycle() {
+ return timeCycle;
+ }
+
+ public void setTimeCycle(String timeCycle) {
+ this.timeCycle = timeCycle;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParser.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParser.java
index e98acfb7..f41faa37 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParser.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParser.java
@@ -1,216 +1,216 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.parser;
-
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.onap.sdc.workflowdesigner.model.DataObject;
-import org.onap.sdc.workflowdesigner.model.Element;
-import org.onap.sdc.workflowdesigner.model.EndEvent;
-import org.onap.sdc.workflowdesigner.model.ErrorEndEvent;
-import org.onap.sdc.workflowdesigner.model.ErrorStartEvent;
-import org.onap.sdc.workflowdesigner.model.ExclusiveGateway;
-import org.onap.sdc.workflowdesigner.model.IntermediateCatchEvent;
-import org.onap.sdc.workflowdesigner.model.ParallelGateway;
-import org.onap.sdc.workflowdesigner.model.Parameter;
-import org.onap.sdc.workflowdesigner.model.Process;
-import org.onap.sdc.workflowdesigner.model.RestServiceTask;
-import org.onap.sdc.workflowdesigner.model.ScriptTask;
-import org.onap.sdc.workflowdesigner.model.SequenceFlow;
-import org.onap.sdc.workflowdesigner.model.ServiceTask;
-import org.onap.sdc.workflowdesigner.model.StartEvent;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.fasterxml.jackson.core.JsonParseException;
-import com.fasterxml.jackson.databind.DeserializationFeature;
-import com.fasterxml.jackson.databind.JsonMappingException;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.SerializationFeature;
-
-public class Bpmn4ToscaJsonParser {
-
- private static Logger log = LoggerFactory.getLogger(Bpmn4ToscaJsonParser.class);
-
- private static ObjectMapper MAPPER = new ObjectMapper();
-
- private Map<String, JsonNode> restConfigMap = new HashMap<String, JsonNode>();
-
- static {
- MAPPER.enable(SerializationFeature.INDENT_OUTPUT);
- MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
- }
-
- public Process parse(String processName, URI jsonFileUrl)
- throws JsonParseException, JsonMappingException, MalformedURLException, IOException {
- Process process = new Process(processName);
-
- JsonNode rootNode = MAPPER.readValue(jsonFileUrl.toURL(), JsonNode.class);
-
- log.debug("Creating Process models...");
-// JsonNode nodes = rootNode.get(JsonKeys.NODES);
- JsonNode data = rootNode.get(JsonKeys.DATA);
- if(null == data) {
- return process;
- }
- JsonNode nodes = data.get(JsonKeys.NODES);
- if (nodes == null) {
- return process;
- }
-
- this.loadConfigs(rootNode.get(JsonKeys.CONFIGS));
-
- Iterator<JsonNode> iter = nodes.iterator();
- while (iter.hasNext()) {
- JsonNode jsonNode = (JsonNode) iter.next();
-
- // get element
- Element element = createElementFromJson(jsonNode);
- process.getElementList().add(element);
-
- // get sequence flows
- List<SequenceFlow> flowList = getSequenceFlows(jsonNode);
- process.getSequenceFlowList().addAll(flowList);
-
- // add dataObject
- if (element instanceof StartEvent) {
- List<DataObject> dataObjects = this.getDataObject((StartEvent) element);
- process.getDataObjectList().addAll(dataObjects);
- }
- }
-
- return process;
-
- }
-
- private List<DataObject> getDataObject(StartEvent startEvent) {
- List<DataObject> dataObjects = new ArrayList<DataObject>();
-
- for (Parameter parameter : startEvent.getParameters()) {
- DataObject dataObject = new DataObject();
- dataObject.setId(parameter.getName());
- dataObject.setName(parameter.getName());
- dataObject.setValue((String) parameter.getValue());
-
- dataObjects.add(dataObject);
- }
-
- return dataObjects;
- }
-
- private void loadConfigs(JsonNode config) {
- if(config == null) {
- return;
- }
- loadRestConfigs(config.get(JsonKeys.REST_CONFIGS));
- }
-
- private void loadRestConfigs(JsonNode restConfigs) {
- if(restConfigs == null) {
- return;
- }
-
- Iterator<JsonNode> iter = restConfigs.iterator();
- while (iter.hasNext()) {
- JsonNode restConfig = (JsonNode) iter.next();
-
- String configId = getValueFromJsonNode(restConfig, JsonKeys.ID);
- restConfigMap.put(configId, restConfig);
- }
- }
-
- private List<SequenceFlow> getSequenceFlows(JsonNode jsonNode) {
- List<SequenceFlow> flowList = new ArrayList<SequenceFlow>();
- String elementId = getValueFromJsonNode(jsonNode, JsonKeys.ID);
- JsonNode connectionsNode = jsonNode.get(JsonKeys.CONNECTIONS);
-
- Iterator<JsonNode> iter = connectionsNode.iterator();
- while (iter.hasNext()) {
- JsonNode connectionEntry = (JsonNode) iter.next();
- String targetRef = getValueFromJsonNode(connectionEntry, JsonKeys.TARGET_REF);
- String condition = getValueFromJsonNode(connectionEntry, JsonKeys.CONDITION);
- SequenceFlow flow = new SequenceFlow();
- flow.setId(elementId + targetRef);
- flow.setSourceRef(elementId);
- flow.setTargetRef(targetRef);
- flow.setCondition(condition);
- flowList.add(flow);
- }
-
- return flowList;
- }
-
- protected Element createElementFromJson(JsonNode jsonNode)
- throws JsonParseException, JsonMappingException, IOException {
- String jsonObject = jsonNode.toString();
- Element element;
-
- String nodeType = getValueFromJsonNode(jsonNode, JsonKeys.TYPE);
- if (nodeType == null) {
- log.warn("Ignoring node: type is null");
- return null;
- }
-
- switch (nodeType) {
- case "startEvent":
- element = MAPPER.readValue(jsonObject, StartEvent.class);
- break;
- case "endEvent":
- element = MAPPER.readValue(jsonObject, EndEvent.class);
- break;
- case "errorStartEvent":
- element = MAPPER.readValue(jsonObject, ErrorStartEvent.class);
- break;
- case "errorEndEvent":
- element = MAPPER.readValue(jsonObject, ErrorEndEvent.class);
- break;
- case "intermediateCatchEvent":
- element = MAPPER.readValue(jsonObject, IntermediateCatchEvent.class);
- break;
- case "serviceTask":
- element = MAPPER.readValue(jsonObject, ServiceTask.class);
- break;
- case "restTask":
- // element = this.createRestServiceTask(jsonObject);
- element = MAPPER.readValue(jsonObject, RestServiceTask.class);
- break;
- case "scriptTask":
- element = MAPPER.readValue(jsonObject, ScriptTask.class);
- break;
- case "exclusiveGateway":
- element = MAPPER.readValue(jsonObject, ExclusiveGateway.class);
- break;
- case "parallelGateway":
- element = MAPPER.readValue(jsonObject, ParallelGateway.class);
- break;
- default:
- log.warn("Ignoring node: type '" + nodeType + "' is unkown");
- return null;
- }
-
- return element;
- }
-
-
- private String getValueFromJsonNode(JsonNode jsonNode, String key) {
- return jsonNode.get(key) == null ? null : jsonNode.get(key).asText();
- }
-
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.parser;
+
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.onap.sdc.workflowdesigner.model.DataObject;
+import org.onap.sdc.workflowdesigner.model.Element;
+import org.onap.sdc.workflowdesigner.model.EndEvent;
+import org.onap.sdc.workflowdesigner.model.ErrorEndEvent;
+import org.onap.sdc.workflowdesigner.model.ErrorStartEvent;
+import org.onap.sdc.workflowdesigner.model.ExclusiveGateway;
+import org.onap.sdc.workflowdesigner.model.IntermediateCatchEvent;
+import org.onap.sdc.workflowdesigner.model.ParallelGateway;
+import org.onap.sdc.workflowdesigner.model.Parameter;
+import org.onap.sdc.workflowdesigner.model.Process;
+import org.onap.sdc.workflowdesigner.model.RestServiceTask;
+import org.onap.sdc.workflowdesigner.model.ScriptTask;
+import org.onap.sdc.workflowdesigner.model.SequenceFlow;
+import org.onap.sdc.workflowdesigner.model.ServiceTask;
+import org.onap.sdc.workflowdesigner.model.StartEvent;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.fasterxml.jackson.core.JsonParseException;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+
+public class Bpmn4ToscaJsonParser {
+
+ private static Logger log = LoggerFactory.getLogger(Bpmn4ToscaJsonParser.class);
+
+ private static ObjectMapper MAPPER = new ObjectMapper();
+
+ private Map<String, JsonNode> restConfigMap = new HashMap<String, JsonNode>();
+
+ static {
+ MAPPER.enable(SerializationFeature.INDENT_OUTPUT);
+ MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
+ }
+
+ public Process parse(String processName, URI jsonFileUrl)
+ throws JsonParseException, JsonMappingException, MalformedURLException, IOException {
+ Process process = new Process(processName);
+
+ JsonNode rootNode = MAPPER.readValue(jsonFileUrl.toURL(), JsonNode.class);
+
+ log.debug("Creating Process models...");
+// JsonNode nodes = rootNode.get(JsonKeys.NODES);
+ JsonNode data = rootNode.get(JsonKeys.DATA);
+ if(null == data) {
+ return process;
+ }
+ JsonNode nodes = data.get(JsonKeys.NODES);
+ if (nodes == null) {
+ return process;
+ }
+
+ this.loadConfigs(rootNode.get(JsonKeys.CONFIGS));
+
+ Iterator<JsonNode> iter = nodes.iterator();
+ while (iter.hasNext()) {
+ JsonNode jsonNode = (JsonNode) iter.next();
+
+ // get element
+ Element element = createElementFromJson(jsonNode);
+ process.getElementList().add(element);
+
+ // get sequence flows
+ List<SequenceFlow> flowList = getSequenceFlows(jsonNode);
+ process.getSequenceFlowList().addAll(flowList);
+
+ // add dataObject
+ if (element instanceof StartEvent) {
+ List<DataObject> dataObjects = this.getDataObject((StartEvent) element);
+ process.getDataObjectList().addAll(dataObjects);
+ }
+ }
+
+ return process;
+
+ }
+
+ private List<DataObject> getDataObject(StartEvent startEvent) {
+ List<DataObject> dataObjects = new ArrayList<DataObject>();
+
+ for (Parameter parameter : startEvent.getParameters()) {
+ DataObject dataObject = new DataObject();
+ dataObject.setId(parameter.getName());
+ dataObject.setName(parameter.getName());
+ dataObject.setValue((String) parameter.getValue());
+
+ dataObjects.add(dataObject);
+ }
+
+ return dataObjects;
+ }
+
+ private void loadConfigs(JsonNode config) {
+ if(config == null) {
+ return;
+ }
+ loadRestConfigs(config.get(JsonKeys.REST_CONFIGS));
+ }
+
+ private void loadRestConfigs(JsonNode restConfigs) {
+ if(restConfigs == null) {
+ return;
+ }
+
+ Iterator<JsonNode> iter = restConfigs.iterator();
+ while (iter.hasNext()) {
+ JsonNode restConfig = (JsonNode) iter.next();
+
+ String configId = getValueFromJsonNode(restConfig, JsonKeys.ID);
+ restConfigMap.put(configId, restConfig);
+ }
+ }
+
+ private List<SequenceFlow> getSequenceFlows(JsonNode jsonNode) {
+ List<SequenceFlow> flowList = new ArrayList<SequenceFlow>();
+ String elementId = getValueFromJsonNode(jsonNode, JsonKeys.ID);
+ JsonNode connectionsNode = jsonNode.get(JsonKeys.CONNECTIONS);
+
+ Iterator<JsonNode> iter = connectionsNode.iterator();
+ while (iter.hasNext()) {
+ JsonNode connectionEntry = (JsonNode) iter.next();
+ String targetRef = getValueFromJsonNode(connectionEntry, JsonKeys.TARGET_REF);
+ String condition = getValueFromJsonNode(connectionEntry, JsonKeys.CONDITION);
+ SequenceFlow flow = new SequenceFlow();
+ flow.setId(elementId + targetRef);
+ flow.setSourceRef(elementId);
+ flow.setTargetRef(targetRef);
+ flow.setCondition(condition);
+ flowList.add(flow);
+ }
+
+ return flowList;
+ }
+
+ protected Element createElementFromJson(JsonNode jsonNode)
+ throws JsonParseException, JsonMappingException, IOException {
+ String jsonObject = jsonNode.toString();
+ Element element;
+
+ String nodeType = getValueFromJsonNode(jsonNode, JsonKeys.TYPE);
+ if (nodeType == null) {
+ log.warn("Ignoring node: type is null");
+ return null;
+ }
+
+ switch (nodeType) {
+ case "startEvent":
+ element = MAPPER.readValue(jsonObject, StartEvent.class);
+ break;
+ case "endEvent":
+ element = MAPPER.readValue(jsonObject, EndEvent.class);
+ break;
+ case "errorStartEvent":
+ element = MAPPER.readValue(jsonObject, ErrorStartEvent.class);
+ break;
+ case "errorEndEvent":
+ element = MAPPER.readValue(jsonObject, ErrorEndEvent.class);
+ break;
+ case "intermediateCatchEvent":
+ element = MAPPER.readValue(jsonObject, IntermediateCatchEvent.class);
+ break;
+ case "serviceTask":
+ element = MAPPER.readValue(jsonObject, ServiceTask.class);
+ break;
+ case "restTask":
+ // element = this.createRestServiceTask(jsonObject);
+ element = MAPPER.readValue(jsonObject, RestServiceTask.class);
+ break;
+ case "scriptTask":
+ element = MAPPER.readValue(jsonObject, ScriptTask.class);
+ break;
+ case "exclusiveGateway":
+ element = MAPPER.readValue(jsonObject, ExclusiveGateway.class);
+ break;
+ case "parallelGateway":
+ element = MAPPER.readValue(jsonObject, ParallelGateway.class);
+ break;
+ default:
+ log.warn("Ignoring node: type '" + nodeType + "' is unkown");
+ return null;
+ }
+
+ return element;
+ }
+
+
+ private String getValueFromJsonNode(JsonNode jsonNode, String key) {
+ return jsonNode.get(key) == null ? null : jsonNode.get(key).asText();
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/JsonKeys.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/JsonKeys.java
index 92390395..6128cfdf 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/JsonKeys.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/parser/JsonKeys.java
@@ -1,92 +1,92 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.parser;
-
-public interface JsonKeys {
-
-
- /*
- * Field names of BPMN4Tosca Model
- */
- public static final String DATA = "data";
- public static final String NODES = "nodes";
- public static final String REST_CONFIGS = "restConfigs";
- public static final String CONFIGS = "configs";
-
-
- // microservice info
- public static final String MICROSERVICE_URL = "url";
- public static final String MICROSERVICE_NAME = "name";
- public static final String MICROSERVICE_VERSION = "version";
-
- public static final String NAME = "name";
-
- public static final String ID = "id";
-
- public static final String TYPE = "type";
-
- public static final String INPUT = "input";
-
- public static final String OUTPUT = "output";
-
- public static final String VALUE = "value";
-
- public static final String NODE_TEMPLATE = "node_template";
-
- public static final String NODE_OPERATION = "node_operation";
-
- public static final String NODE_INTERFACE_NAME = "interface";
-
- public static final String CONNECTIONS = "connection";
-
- public static final String SOURCE_REF = "sourceRef";
-
- public static final String TARGET_REF = "targetRef";
-
- public static final String CONDITIONS = "conditions";
-
- public static final String CONDITION = "condition";
-
- public static final String DEFAULT = "default";
-
-
- /*
- * Exclusive-Gateway, Event, Management-Task Types
- *
- */
- public static final String NODE_TYPE_MGMT_TASK = "ToscaNodeManagementTask";
-
- public static final String NODE_TYPE_START_EVENT = "StartEvent";
-
- public static final String NODE_TYPE_END_EVENT = "EndEvent";
-
- public static final String NODE_TYPE_GATEWAY_EXCLUSIVE = "ExclusiveGateway";
-
- public static final String NODE_TYPE_GATEWAY_EXCLUSIVE_END = "ExclusiveGatewayEnd";
-
-
- /*
- * Parameter Types
- */
- public static final String PARAM_TYPE_VALUE_STRING = "string";
-
- public static final String PARAM_TYPE_VALUE_TOPOLOGY = "topology";
-
- public static final String PARAM_TYPE_VALUE_PLAN = "plan";
-
- public static final String PARAM_TYPE_VALUE_CONCAT = "concat";
-
- public static final String PARAM_TYPE_VALUE_IA = "implementation_artifact";
-
- public static final String PARAM_TYPE_VALUE_DA = "deployment_artifact";
-
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.parser;
+
+public interface JsonKeys {
+
+
+ /*
+ * Field names of BPMN4Tosca Model
+ */
+ public static final String DATA = "data";
+ public static final String NODES = "nodes";
+ public static final String REST_CONFIGS = "restConfigs";
+ public static final String CONFIGS = "configs";
+
+
+ // microservice info
+ public static final String MICROSERVICE_URL = "url";
+ public static final String MICROSERVICE_NAME = "name";
+ public static final String MICROSERVICE_VERSION = "version";
+
+ public static final String NAME = "name";
+
+ public static final String ID = "id";
+
+ public static final String TYPE = "type";
+
+ public static final String INPUT = "input";
+
+ public static final String OUTPUT = "output";
+
+ public static final String VALUE = "value";
+
+ public static final String NODE_TEMPLATE = "node_template";
+
+ public static final String NODE_OPERATION = "node_operation";
+
+ public static final String NODE_INTERFACE_NAME = "interface";
+
+ public static final String CONNECTIONS = "connection";
+
+ public static final String SOURCE_REF = "sourceRef";
+
+ public static final String TARGET_REF = "targetRef";
+
+ public static final String CONDITIONS = "conditions";
+
+ public static final String CONDITION = "condition";
+
+ public static final String DEFAULT = "default";
+
+
+ /*
+ * Exclusive-Gateway, Event, Management-Task Types
+ *
+ */
+ public static final String NODE_TYPE_MGMT_TASK = "ToscaNodeManagementTask";
+
+ public static final String NODE_TYPE_START_EVENT = "StartEvent";
+
+ public static final String NODE_TYPE_END_EVENT = "EndEvent";
+
+ public static final String NODE_TYPE_GATEWAY_EXCLUSIVE = "ExclusiveGateway";
+
+ public static final String NODE_TYPE_GATEWAY_EXCLUSIVE_END = "ExclusiveGatewayEnd";
+
+
+ /*
+ * Parameter Types
+ */
+ public static final String PARAM_TYPE_VALUE_STRING = "string";
+
+ public static final String PARAM_TYPE_VALUE_TOPOLOGY = "topology";
+
+ public static final String PARAM_TYPE_VALUE_PLAN = "plan";
+
+ public static final String PARAM_TYPE_VALUE_CONCAT = "concat";
+
+ public static final String PARAM_TYPE_VALUE_IA = "implementation_artifact";
+
+ public static final String PARAM_TYPE_VALUE_DA = "deployment_artifact";
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java
index 4a40597a..4a40597a 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/HealthCheckResource.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/HealthCheckResource.java
index 263ac73d..263ac73d 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/HealthCheckResource.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/HealthCheckResource.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java
index c08fcef5..c08fcef5 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java
index 1df2c2b1..04ce29ea 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java
@@ -1,65 +1,65 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-/**
- *
- */
-public class CategoryData {
- private I18nString displayName;
-
- private boolean collapse;
-
- /**
- *
- */
- public CategoryData() {
- super();
- }
-
- /**
- * @param displayName
- */
- public CategoryData(I18nString displayName) {
- super();
- this.displayName = displayName;
- }
-
- /**
- * @return the displayName
- */
- public I18nString getDisplayName() {
- return displayName;
- }
-
- /**
- * @param displayName the displayName to set
- */
- public void setDisplayName(I18nString displayName) {
- this.displayName = displayName;
- }
-
- /**
- * @return the collapse
- */
- public boolean isCollapse() {
- return collapse;
- }
-
- /**
- * @param collapse the collapse to set
- */
- public void setCollapse(boolean collapse) {
- this.collapse = collapse;
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+/**
+ *
+ */
+public class CategoryData {
+ private I18nString displayName;
+
+ private boolean collapse;
+
+ /**
+ *
+ */
+ public CategoryData() {
+ super();
+ }
+
+ /**
+ * @param displayName
+ */
+ public CategoryData(I18nString displayName) {
+ super();
+ this.displayName = displayName;
+ }
+
+ /**
+ * @return the displayName
+ */
+ public I18nString getDisplayName() {
+ return displayName;
+ }
+
+ /**
+ * @param displayName the displayName to set
+ */
+ public void setDisplayName(I18nString displayName) {
+ this.displayName = displayName;
+ }
+
+ /**
+ * @return the collapse
+ */
+ public boolean isCollapse() {
+ return collapse;
+ }
+
+ /**
+ * @param collapse the collapse to set
+ */
+ public void setCollapse(boolean collapse) {
+ this.collapse = collapse;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java
index 2a49ae07..a2b814d8 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java
@@ -1,95 +1,95 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import java.util.Map;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- */
-@JsonInclude(Include.NON_NULL)
-public class Content {
- @JsonProperty(value="class") // for dropwizard's Jackson
- @SerializedName("class") // for Gson
- public String clazz;
-
- private String script;
-
- private String scriptFormat;
-
- private Map<String, InputOutput> inputs;
-
- private Map<String, InputOutput> outputs;
-
-
- /**
- * @return the script
- */
- public String getScript() {
- return script;
- }
-
- /**
- * @param script the script to set
- */
- public void setScript(String script) {
- this.script = script;
- }
-
- /**
- * @return the scriptFormat
- */
- public String getScriptFormat() {
- return scriptFormat;
- }
-
- /**
- * @param scriptFormat the scriptFormat to set
- */
- public void setScriptFormat(String scriptFormat) {
- this.scriptFormat = scriptFormat;
- }
-
- /**
- * @return the inputs
- */
- public Map<String, InputOutput> getInputs() {
- return inputs;
- }
-
- /**
- * @param inputs the inputs to set
- */
- public void setInputs(Map<String, InputOutput> inputs) {
- this.inputs = inputs;
- }
-
- /**
- * @return the outputs
- */
- public Map<String, InputOutput> getOutputs() {
- return outputs;
- }
-
- /**
- * @param outputs the outputs to set
- */
- public void setOutputs(Map<String, InputOutput> outputs) {
- this.outputs = outputs;
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import java.util.Map;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.gson.annotations.SerializedName;
+
+/**
+ *
+ */
+@JsonInclude(Include.NON_NULL)
+public class Content {
+ @JsonProperty(value="class") // for dropwizard's Jackson
+ @SerializedName("class") // for Gson
+ public String clazz;
+
+ private String script;
+
+ private String scriptFormat;
+
+ private Map<String, InputOutput> inputs;
+
+ private Map<String, InputOutput> outputs;
+
+
+ /**
+ * @return the script
+ */
+ public String getScript() {
+ return script;
+ }
+
+ /**
+ * @param script the script to set
+ */
+ public void setScript(String script) {
+ this.script = script;
+ }
+
+ /**
+ * @return the scriptFormat
+ */
+ public String getScriptFormat() {
+ return scriptFormat;
+ }
+
+ /**
+ * @param scriptFormat the scriptFormat to set
+ */
+ public void setScriptFormat(String scriptFormat) {
+ this.scriptFormat = scriptFormat;
+ }
+
+ /**
+ * @return the inputs
+ */
+ public Map<String, InputOutput> getInputs() {
+ return inputs;
+ }
+
+ /**
+ * @param inputs the inputs to set
+ */
+ public void setInputs(Map<String, InputOutput> inputs) {
+ this.inputs = inputs;
+ }
+
+ /**
+ * @return the outputs
+ */
+ public Map<String, InputOutput> getOutputs() {
+ return outputs;
+ }
+
+ /**
+ * @param outputs the outputs to set
+ */
+ public void setOutputs(Map<String, InputOutput> outputs) {
+ this.outputs = outputs;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java
index 5a798ee2..ca63bebe 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java
@@ -1,120 +1,120 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-
-/**
- *
- */
-@JsonInclude(Include.NON_NULL)
-public class ExtActivity {
- private String id;
-
- private I18nString displayName;
-
- private I18nString description;
-
- private String type;
-
- private IconData icon;
-
- private Content content;
-
- /**
- * @return the id
- */
- public String getId() {
- return id;
- }
-
- /**
- * @param id the id to set
- */
- public void setId(String id) {
- this.id = id;
- }
-
- /**
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * @param type the type to set
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * @return the icon
- */
- public IconData getIcon() {
- return icon;
- }
-
- /**
- * @param icon the icon to set
- */
- public void setIcon(IconData icon) {
- this.icon = icon;
- }
-
- /**
- * @return the content
- */
- public Content getContent() {
- return content;
- }
-
- /**
- * @param content the content to set
- */
- public void setContent(Content content) {
- this.content = content;
- }
-
- /**
- * @return the displayName
- */
- public I18nString getDisplayName() {
- return displayName;
- }
-
- /**
- * @param displayName the displayName to set
- */
- public void setDisplayName(I18nString displayName) {
- this.displayName = displayName;
- }
-
- /**
- * @return the description
- */
- public I18nString getDescription() {
- return description;
- }
-
- /**
- * @param description the description to set
- */
- public void setDescription(I18nString description) {
- this.description = description;
- }
-
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+
+/**
+ *
+ */
+@JsonInclude(Include.NON_NULL)
+public class ExtActivity {
+ private String id;
+
+ private I18nString displayName;
+
+ private I18nString description;
+
+ private String type;
+
+ private IconData icon;
+
+ private Content content;
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * @param type the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ * @return the icon
+ */
+ public IconData getIcon() {
+ return icon;
+ }
+
+ /**
+ * @param icon the icon to set
+ */
+ public void setIcon(IconData icon) {
+ this.icon = icon;
+ }
+
+ /**
+ * @return the content
+ */
+ public Content getContent() {
+ return content;
+ }
+
+ /**
+ * @param content the content to set
+ */
+ public void setContent(Content content) {
+ this.content = content;
+ }
+
+ /**
+ * @return the displayName
+ */
+ public I18nString getDisplayName() {
+ return displayName;
+ }
+
+ /**
+ * @param displayName the displayName to set
+ */
+ public void setDisplayName(I18nString displayName) {
+ this.displayName = displayName;
+ }
+
+ /**
+ * @return the description
+ */
+ public I18nString getDescription() {
+ return description;
+ }
+
+ /**
+ * @param description the description to set
+ */
+ public void setDescription(I18nString description) {
+ this.description = description;
+ }
+
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java
index 5c96cea8..ac91a771 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java
@@ -1,53 +1,53 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- *
- */
-public class ExtActivityDisplayInfo {
- private Map<String, NodeCategory> nodes = new HashMap<>();
-
- private Map<String, CategoryData> categoryData = new HashMap<>();
-
- /**
- * @return the nodes
- */
- public Map<String, NodeCategory> getNodes() {
- return nodes;
- }
-
- /**
- * @param nodes the nodes to set
- */
- public void setNodes(Map<String, NodeCategory> nodes) {
- this.nodes = nodes;
- }
-
- /**
- * @return the categoryData
- */
- public Map<String, CategoryData> getCategoryData() {
- return categoryData;
- }
-
- /**
- * @param categoryData the categoryData to set
- */
- public void setCategoryData(Map<String, CategoryData> categoryData) {
- this.categoryData = categoryData;
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ *
+ */
+public class ExtActivityDisplayInfo {
+ private Map<String, NodeCategory> nodes = new HashMap<>();
+
+ private Map<String, CategoryData> categoryData = new HashMap<>();
+
+ /**
+ * @return the nodes
+ */
+ public Map<String, NodeCategory> getNodes() {
+ return nodes;
+ }
+
+ /**
+ * @param nodes the nodes to set
+ */
+ public void setNodes(Map<String, NodeCategory> nodes) {
+ this.nodes = nodes;
+ }
+
+ /**
+ * @return the categoryData
+ */
+ public Map<String, CategoryData> getCategoryData() {
+ return categoryData;
+ }
+
+ /**
+ * @param categoryData the categoryData to set
+ */
+ public void setCategoryData(Map<String, CategoryData> categoryData) {
+ this.categoryData = categoryData;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/I18nString.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/I18nString.java
index 1ed14f6f..faddfaa1 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/I18nString.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/I18nString.java
@@ -1,69 +1,69 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-/**
- *
- */
-public class I18nString {
- private String en_US;
-
- private String zh_CN;
-
- /**
- *
- */
- public I18nString() {
- super();
- }
-
- /**
- * @param en_US
- * @param zh_CN
- */
- public I18nString(String en_US, String zh_CN) {
- super();
- this.en_US = en_US;
- this.zh_CN = zh_CN;
- }
-
- /**
- * @return the en_US
- */
- public String getEn_US() {
- return en_US;
- }
-
- /**
- * @param en_US the en_US to set
- */
- public void setEn_US(String en_US) {
- this.en_US = en_US;
- }
-
- /**
- * @return the zh_CN
- */
- public String getZh_CN() {
- return zh_CN;
- }
-
- /**
- * @param zh_CN the zh_CN to set
- */
- public void setZh_CN(String zh_CN) {
- this.zh_CN = zh_CN;
- }
-
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+/**
+ *
+ */
+public class I18nString {
+ private String en_US;
+
+ private String zh_CN;
+
+ /**
+ *
+ */
+ public I18nString() {
+ super();
+ }
+
+ /**
+ * @param en_US
+ * @param zh_CN
+ */
+ public I18nString(String en_US, String zh_CN) {
+ super();
+ this.en_US = en_US;
+ this.zh_CN = zh_CN;
+ }
+
+ /**
+ * @return the en_US
+ */
+ public String getEn_US() {
+ return en_US;
+ }
+
+ /**
+ * @param en_US the en_US to set
+ */
+ public void setEn_US(String en_US) {
+ this.en_US = en_US;
+ }
+
+ /**
+ * @return the zh_CN
+ */
+ public String getZh_CN() {
+ return zh_CN;
+ }
+
+ /**
+ * @param zh_CN the zh_CN to set
+ */
+ public void setZh_CN(String zh_CN) {
+ this.zh_CN = zh_CN;
+ }
+
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/IconData.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/IconData.java
index b84446fc..731ad7c9 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/IconData.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/IconData.java
@@ -1,68 +1,68 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-/**
- *
- */
-public class IconData {
- private String name;
-
- private int width;
-
- private int height;
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the width
- */
- public int getWidth() {
- return width;
- }
-
- /**
- * @param width the width to set
- */
- public void setWidth(int width) {
- this.width = width;
- }
-
- /**
- * @return the height
- */
- public int getHeight() {
- return height;
- }
-
- /**
- * @param height the height to set
- */
- public void setHeight(int height) {
- this.height = height;
- }
-
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+/**
+ *
+ */
+public class IconData {
+ private String name;
+
+ private int width;
+
+ private int height;
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the width
+ */
+ public int getWidth() {
+ return width;
+ }
+
+ /**
+ * @param width the width to set
+ */
+ public void setWidth(int width) {
+ this.width = width;
+ }
+
+ /**
+ * @return the height
+ */
+ public int getHeight() {
+ return height;
+ }
+
+ /**
+ * @param height the height to set
+ */
+ public void setHeight(int height) {
+ this.height = height;
+ }
+
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutput.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutput.java
index 60ab4c78..1d5c34a7 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutput.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutput.java
@@ -1,135 +1,135 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- */
-public class InputOutput {
- private String type;
-
- @SerializedName("default")
- private String defaultValue;
-
- private boolean required;
-
- private I18nString displayName;
-
- private boolean show = true;
-
- private boolean editable = true;
-
- private String value;
-
-
- /**
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * @param type the type to set
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * @return the defaultValue
- */
- public String getDefault() {
- return defaultValue;
- }
-
- /**
- * @param defaultValue the defaultValue to set
- */
- public void setDefault(String defaultValue) {
- this.defaultValue = defaultValue;
- }
-
- /**
- * @return the required
- */
- public boolean isRequired() {
- return required;
- }
-
- /**
- * @param required the required to set
- */
- public void setRequired(boolean required) {
- this.required = required;
- }
-
- /**
- * @return the displayName
- */
- public I18nString getDisplayName() {
- return displayName;
- }
-
- /**
- * @param displayName the displayName to set
- */
- public void setDisplayName(I18nString displayName) {
- this.displayName = displayName;
- }
-
- /**
- * @return the show
- */
- public boolean isShow() {
- return show;
- }
-
- /**
- * @param show the show to set
- */
- public void setShow(boolean show) {
- this.show = show;
- }
-
- /**
- * @return the editable
- */
- public boolean isEditable() {
- return editable;
- }
-
- /**
- * @param editable the editable to set
- */
- public void setEditable(boolean editable) {
- this.editable = editable;
- }
-
- /**
- * @return the value
- */
- public String getValue() {
- return value;
- }
-
- /**
- * @param value the value to set
- */
- public void setValue(String value) {
- this.value = value;
- }
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import com.google.gson.annotations.SerializedName;
+
+/**
+ *
+ */
+public class InputOutput {
+ private String type;
+
+ @SerializedName("default")
+ private String defaultValue;
+
+ private boolean required;
+
+ private I18nString displayName;
+
+ private boolean show = true;
+
+ private boolean editable = true;
+
+ private String value;
+
+
+ /**
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * @param type the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ * @return the defaultValue
+ */
+ public String getDefault() {
+ return defaultValue;
+ }
+
+ /**
+ * @param defaultValue the defaultValue to set
+ */
+ public void setDefault(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ /**
+ * @return the required
+ */
+ public boolean isRequired() {
+ return required;
+ }
+
+ /**
+ * @param required the required to set
+ */
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ /**
+ * @return the displayName
+ */
+ public I18nString getDisplayName() {
+ return displayName;
+ }
+
+ /**
+ * @param displayName the displayName to set
+ */
+ public void setDisplayName(I18nString displayName) {
+ this.displayName = displayName;
+ }
+
+ /**
+ * @return the show
+ */
+ public boolean isShow() {
+ return show;
+ }
+
+ /**
+ * @param show the show to set
+ */
+ public void setShow(boolean show) {
+ this.show = show;
+ }
+
+ /**
+ * @return the editable
+ */
+ public boolean isEditable() {
+ return editable;
+ }
+
+ /**
+ * @param editable the editable to set
+ */
+ public void setEditable(boolean editable) {
+ this.editable = editable;
+ }
+
+ /**
+ * @return the value
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * @param value the value to set
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategory.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategory.java
index bcafca6e..bb1ce7c0 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategory.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategory.java
@@ -1,34 +1,34 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-/**
- *
- */
-public class NodeCategory {
- private String category;
-
- /**
- * @return the category
- */
- public String getCategory() {
- return category;
- }
-
- /**
- * @param category the category to set
- */
- public void setCategory(String category) {
- this.category = category;
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+/**
+ *
+ */
+public class NodeCategory {
+ private String category;
+
+ /**
+ * @return the category
+ */
+ public String getCategory() {
+ return category;
+ }
+
+ /**
+ * @param category the category to set
+ */
+ public void setCategory(String category) {
+ this.category = category;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfo.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfo.java
index 4ed4e501..b4747162 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfo.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfo.java
@@ -1,133 +1,133 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import com.google.gson.JsonObject;
-
-/**
- *
- */
-public class WorkflowInfo {
- private String uuid;
-
- private String operationId;
-
- private String id;
-
- private String name;
-
- private String description;
-
- private String scene;
-
- private JsonObject data;
-
- /**
- * @return the uuid
- */
- public String getUuid() {
- return uuid;
- }
-
- /**
- * @param uuid the uuid to set
- */
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
-
- /**
- * @return the operationId
- */
- public String getOperationId() {
- return operationId;
- }
-
- /**
- * @param operationId the operationId to set
- */
- public void setOperationId(String operationId) {
- this.operationId = operationId;
- }
-
- /**
- * @return the id
- */
- public String getId() {
- return id;
- }
-
- /**
- * @param id the id to set
- */
- public void setId(String id) {
- this.id = id;
- }
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @param description the description to set
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * @return the scene
- */
- public String getScene() {
- return scene;
- }
-
- /**
- * @param scene the scene to set
- */
- public void setScene(String scene) {
- this.scene = scene;
- }
-
- /**
- * @return the data
- */
- public JsonObject getData() {
- return data;
- }
-
- /**
- * @param data the data to set
- */
- public void setData(JsonObject data) {
- this.data = data;
- }
-
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import com.google.gson.JsonObject;
+
+/**
+ *
+ */
+public class WorkflowInfo {
+ private String uuid;
+
+ private String operationId;
+
+ private String id;
+
+ private String name;
+
+ private String description;
+
+ private String scene;
+
+ private JsonObject data;
+
+ /**
+ * @return the uuid
+ */
+ public String getUuid() {
+ return uuid;
+ }
+
+ /**
+ * @param uuid the uuid to set
+ */
+ public void setUuid(String uuid) {
+ this.uuid = uuid;
+ }
+
+ /**
+ * @return the operationId
+ */
+ public String getOperationId() {
+ return operationId;
+ }
+
+ /**
+ * @param operationId the operationId to set
+ */
+ public void setOperationId(String operationId) {
+ this.operationId = operationId;
+ }
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * @param description the description to set
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /**
+ * @return the scene
+ */
+ public String getScene() {
+ return scene;
+ }
+
+ /**
+ * @param scene the scene to set
+ */
+ public void setScene(String scene) {
+ this.scene = scene;
+ }
+
+ /**
+ * @return the data
+ */
+ public JsonObject getData() {
+ return data;
+ }
+
+ /**
+ * @param data the data to set
+ */
+ public void setData(JsonObject data) {
+ this.data = data;
+ }
+
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonConstants.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonConstants.java
index fdf11959..fdf11959 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonConstants.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonConstants.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtils.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtils.java
index 0f07dc50..0f07dc50 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtils.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtils.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/JsonUtils.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/JsonUtils.java
index 09588ef3..ee8a35e0 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/JsonUtils.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/JsonUtils.java
@@ -1,41 +1,41 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.utils;
-
-import com.google.gson.Gson;
-
-/**
- *
- */
-public class JsonUtils {
- /**
- *
- * @param json
- * @param clazz
- * @return
- */
- public static <T> T fromJson(String json, Class<T> clazz) {
- Gson gson = new Gson();
- return gson.fromJson(json, clazz);
- }
-
- /**
- *
- * @param t
- * @return
- */
- public static <T> String toJson(T t) {
- Gson gson = new Gson();
- return gson.toJson(t);
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.utils;
+
+import com.google.gson.Gson;
+
+/**
+ *
+ */
+public class JsonUtils {
+ /**
+ *
+ * @param json
+ * @param clazz
+ * @return
+ */
+ public static <T> T fromJson(String json, Class<T> clazz) {
+ Gson gson = new Gson();
+ return gson.fromJson(json, clazz);
+ }
+
+ /**
+ *
+ * @param t
+ * @return
+ */
+ public static <T> String toJson(T t) {
+ Gson gson = new Gson();
+ return gson.toJson(t);
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/RestUtils.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/RestUtils.java
index b8ba428c..b8ba428c 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/RestUtils.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/RestUtils.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/ToolUtils.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/ToolUtils.java
index c5bdee70..ea13cf8a 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/ToolUtils.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/ToolUtils.java
@@ -1,26 +1,26 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.utils;
-
-/**
- *
- */
-public class ToolUtils {
- /**
- * @param val
- * @return
- */
- public static boolean isEmpty(String val) {
- return val == null || val.trim().isEmpty();
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.utils;
+
+/**
+ *
+ */
+public class ToolUtils {
+ /**
+ * @param val
+ * @return
+ */
+ public static boolean isEmpty(String val) {
+ return val == null || val.trim().isEmpty();
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java
index 5983a5a5..5983a5a5 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/writer/BpmnPlanArtefactWriter.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/writer/BpmnPlanArtefactWriter.java
index 89e0c8c9..4b369ff3 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/writer/BpmnPlanArtefactWriter.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/writer/BpmnPlanArtefactWriter.java
@@ -1,64 +1,64 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.writer;
-
-import java.io.StringWriter;
-
-import org.apache.velocity.Template;
-import org.apache.velocity.VelocityContext;
-import org.apache.velocity.app.Velocity;
-import org.apache.velocity.app.VelocityEngine;
-import org.apache.velocity.exception.ParseErrorException;
-import org.apache.velocity.exception.ResourceNotFoundException;
-import org.onap.sdc.workflowdesigner.config.Config;
-import org.onap.sdc.workflowdesigner.model.Process;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class BpmnPlanArtefactWriter {
-
- private Process process;
-
- private final static String TEMPLATE_PATH = Config.PROPERTIES.getProperty(Config.TEMPLATE_PATH);
-
- private static Logger log = LoggerFactory.getLogger(BpmnPlanArtefactWriter.class);
-
- public BpmnPlanArtefactWriter(Process process) throws Exception {
- this.process = process;
- Velocity.init();
- }
-
- public String completePlanTemplate() throws ResourceNotFoundException, ParseErrorException, Exception {
- log.debug("Completing BPMN process template...");
-
- VelocityContext context = new VelocityContext();
-
- VelocityEngine ve = new VelocityEngine();
- ve.setProperty("resource.loader", "class");
- ve.setProperty("class.resource.loader.class",
- "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
- Template planTemplate = ve.getTemplate(TEMPLATE_PATH + "bpmn_template.xml");
-
- context.put("process", process);
- context.put("templatePath", TEMPLATE_PATH);
- StringWriter planWriter = new StringWriter();
- planTemplate.merge(context, planWriter);
-
- String bpmnProcessContent = planWriter.toString();
-
- log.debug("Completed BPMN process template" + bpmnProcessContent);
-
- return bpmnProcessContent;
-
- }
-
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.writer;
+
+import java.io.StringWriter;
+
+import org.apache.velocity.Template;
+import org.apache.velocity.VelocityContext;
+import org.apache.velocity.app.Velocity;
+import org.apache.velocity.app.VelocityEngine;
+import org.apache.velocity.exception.ParseErrorException;
+import org.apache.velocity.exception.ResourceNotFoundException;
+import org.onap.sdc.workflowdesigner.config.Config;
+import org.onap.sdc.workflowdesigner.model.Process;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class BpmnPlanArtefactWriter {
+
+ private Process process;
+
+ private final static String TEMPLATE_PATH = Config.PROPERTIES.getProperty(Config.TEMPLATE_PATH);
+
+ private static Logger log = LoggerFactory.getLogger(BpmnPlanArtefactWriter.class);
+
+ public BpmnPlanArtefactWriter(Process process) throws Exception {
+ this.process = process;
+ Velocity.init();
+ }
+
+ public String completePlanTemplate() throws ResourceNotFoundException, ParseErrorException, Exception {
+ log.debug("Completing BPMN process template...");
+
+ VelocityContext context = new VelocityContext();
+
+ VelocityEngine ve = new VelocityEngine();
+ ve.setProperty("resource.loader", "class");
+ ve.setProperty("class.resource.loader.class",
+ "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
+ Template planTemplate = ve.getTemplate(TEMPLATE_PATH + "bpmn_template.xml");
+
+ context.put("process", process);
+ context.put("templatePath", TEMPLATE_PATH);
+ StringWriter planWriter = new StringWriter();
+ planTemplate.merge(context, planWriter);
+
+ String bpmnProcessContent = planWriter.toString();
+
+ log.debug("Completed BPMN process template" + bpmnProcessContent);
+
+ return bpmnProcessContent;
+
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/META-INF/MANIFEST.MF b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/META-INF/MANIFEST.MF
index eaf90a94..eaf90a94 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/META-INF/MANIFEST.MF
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/META-INF/MANIFEST.MF
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/WEB-INF/web.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/WEB-INF/web.xml
index 2a5346c4..2a5346c4 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/WEB-INF/web.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/WEB-INF/web.xml
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/css/reset.css b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/reset.css
index d4945322..2e116124 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/css/reset.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/reset.css
@@ -1,140 +1,140 @@
-/**
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
-html,
-body,
-div,
-span,
-applet,
-object,
-iframe,
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-p,
-blockquote,
-pre,
-a,
-abbr,
-acronym,
-address,
-big,
-cite,
-code,
-del,
-dfn,
-em,
-img,
-ins,
-kbd,
-q,
-s,
-samp,
-small,
-strike,
-strong,
-sub,
-sup,
-tt,
-var,
-b,
-u,
-i,
-center,
-dl,
-dt,
-dd,
-ol,
-ul,
-li,
-fieldset,
-form,
-label,
-legend,
-table,
-caption,
-tbody,
-tfoot,
-thead,
-tr,
-th,
-td,
-article,
-aside,
-canvas,
-details,
-embed,
-figure,
-figcaption,
-footer,
-header,
-hgroup,
-menu,
-nav,
-output,
-ruby,
-section,
-summary,
-time,
-mark,
-audio,
-video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
-}
-/* HTML5 display-role reset for older browsers */
-article,
-aside,
-details,
-figcaption,
-figure,
-footer,
-header,
-hgroup,
-menu,
-nav,
-section {
- display: block;
-}
-body {
- line-height: 1;
-}
-ol,
-ul {
- list-style: none;
-}
-blockquote,
-q {
- quotes: none;
-}
-blockquote:before,
-blockquote:after,
-q:before,
-q:after {
- content: '';
- content: none;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
+/**
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
+html,
+body,
+div,
+span,
+applet,
+object,
+iframe,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+p,
+blockquote,
+pre,
+a,
+abbr,
+acronym,
+address,
+big,
+cite,
+code,
+del,
+dfn,
+em,
+img,
+ins,
+kbd,
+q,
+s,
+samp,
+small,
+strike,
+strong,
+sub,
+sup,
+tt,
+var,
+b,
+u,
+i,
+center,
+dl,
+dt,
+dd,
+ol,
+ul,
+li,
+fieldset,
+form,
+label,
+legend,
+table,
+caption,
+tbody,
+tfoot,
+thead,
+tr,
+th,
+td,
+article,
+aside,
+canvas,
+details,
+embed,
+figure,
+figcaption,
+footer,
+header,
+hgroup,
+menu,
+nav,
+output,
+ruby,
+section,
+summary,
+time,
+mark,
+audio,
+video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+/* HTML5 display-role reset for older browsers */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+menu,
+nav,
+section {
+ display: block;
+}
+body {
+ line-height: 1;
+}
+ol,
+ul {
+ list-style: none;
+}
+blockquote,
+q {
+ quotes: none;
+}
+blockquote:before,
+blockquote:after,
+q:before,
+q:after {
+ content: '';
+ content: none;
+}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/css/screen.css b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/screen.css
index caeace3d..2b982c22 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/css/screen.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/screen.css
@@ -1,1271 +1,1271 @@
-/**
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/* Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org> */
-.swagger-section pre code {
- display: block;
- padding: 0.5em;
- background: #F0F0F0;
-}
-.swagger-section pre code,
-.swagger-section pre .subst,
-.swagger-section pre .tag .title,
-.swagger-section pre .lisp .title,
-.swagger-section pre .clojure .built_in,
-.swagger-section pre .nginx .title {
- color: black;
-}
-.swagger-section pre .string,
-.swagger-section pre .title,
-.swagger-section pre .constant,
-.swagger-section pre .parent,
-.swagger-section pre .tag .value,
-.swagger-section pre .rules .value,
-.swagger-section pre .rules .value .number,
-.swagger-section pre .preprocessor,
-.swagger-section pre .ruby .symbol,
-.swagger-section pre .ruby .symbol .string,
-.swagger-section pre .aggregate,
-.swagger-section pre .template_tag,
-.swagger-section pre .django .variable,
-.swagger-section pre .smalltalk .class,
-.swagger-section pre .addition,
-.swagger-section pre .flow,
-.swagger-section pre .stream,
-.swagger-section pre .bash .variable,
-.swagger-section pre .apache .tag,
-.swagger-section pre .apache .cbracket,
-.swagger-section pre .tex .command,
-.swagger-section pre .tex .special,
-.swagger-section pre .erlang_repl .function_or_atom,
-.swagger-section pre .markdown .header {
- color: #800;
-}
-.swagger-section pre .comment,
-.swagger-section pre .annotation,
-.swagger-section pre .template_comment,
-.swagger-section pre .diff .header,
-.swagger-section pre .chunk,
-.swagger-section pre .markdown .blockquote {
- color: #888;
-}
-.swagger-section pre .number,
-.swagger-section pre .date,
-.swagger-section pre .regexp,
-.swagger-section pre .literal,
-.swagger-section pre .smalltalk .symbol,
-.swagger-section pre .smalltalk .char,
-.swagger-section pre .go .constant,
-.swagger-section pre .change,
-.swagger-section pre .markdown .bullet,
-.swagger-section pre .markdown .link_url {
- color: #080;
-}
-.swagger-section pre .label,
-.swagger-section pre .javadoc,
-.swagger-section pre .ruby .string,
-.swagger-section pre .decorator,
-.swagger-section pre .filter .argument,
-.swagger-section pre .localvars,
-.swagger-section pre .array,
-.swagger-section pre .attr_selector,
-.swagger-section pre .important,
-.swagger-section pre .pseudo,
-.swagger-section pre .pi,
-.swagger-section pre .doctype,
-.swagger-section pre .deletion,
-.swagger-section pre .envvar,
-.swagger-section pre .shebang,
-.swagger-section pre .apache .sqbracket,
-.swagger-section pre .nginx .built_in,
-.swagger-section pre .tex .formula,
-.swagger-section pre .erlang_repl .reserved,
-.swagger-section pre .prompt,
-.swagger-section pre .markdown .link_label,
-.swagger-section pre .vhdl .attribute,
-.swagger-section pre .clojure .attribute,
-.swagger-section pre .coffeescript .property {
- color: #8888ff;
-}
-.swagger-section pre .keyword,
-.swagger-section pre .id,
-.swagger-section pre .phpdoc,
-.swagger-section pre .title,
-.swagger-section pre .built_in,
-.swagger-section pre .aggregate,
-.swagger-section pre .css .tag,
-.swagger-section pre .javadoctag,
-.swagger-section pre .phpdoc,
-.swagger-section pre .yardoctag,
-.swagger-section pre .smalltalk .class,
-.swagger-section pre .winutils,
-.swagger-section pre .bash .variable,
-.swagger-section pre .apache .tag,
-.swagger-section pre .go .typename,
-.swagger-section pre .tex .command,
-.swagger-section pre .markdown .strong,
-.swagger-section pre .request,
-.swagger-section pre .status {
- font-weight: bold;
-}
-.swagger-section pre .markdown .emphasis {
- font-style: italic;
-}
-.swagger-section pre .nginx .built_in {
- font-weight: normal;
-}
-.swagger-section pre .coffeescript .javascript,
-.swagger-section pre .javascript .xml,
-.swagger-section pre .tex .formula,
-.swagger-section pre .xml .javascript,
-.swagger-section pre .xml .vbscript,
-.swagger-section pre .xml .css,
-.swagger-section pre .xml .cdata {
- opacity: 0.5;
-}
-.swagger-section .swagger-ui-wrap {
- line-height: 1;
- font-family: "Droid Sans", sans-serif;
- max-width: 960px;
- margin-left: auto;
- margin-right: auto;
-}
-.swagger-section .swagger-ui-wrap b,
-.swagger-section .swagger-ui-wrap strong {
- font-family: "Droid Sans", sans-serif;
- font-weight: bold;
-}
-.swagger-section .swagger-ui-wrap q,
-.swagger-section .swagger-ui-wrap blockquote {
- quotes: none;
-}
-.swagger-section .swagger-ui-wrap p {
- line-height: 1.4em;
- padding: 0 0 10px;
- color: #333333;
-}
-.swagger-section .swagger-ui-wrap q:before,
-.swagger-section .swagger-ui-wrap q:after,
-.swagger-section .swagger-ui-wrap blockquote:before,
-.swagger-section .swagger-ui-wrap blockquote:after {
- content: none;
-}
-.swagger-section .swagger-ui-wrap .heading_with_menu h1,
-.swagger-section .swagger-ui-wrap .heading_with_menu h2,
-.swagger-section .swagger-ui-wrap .heading_with_menu h3,
-.swagger-section .swagger-ui-wrap .heading_with_menu h4,
-.swagger-section .swagger-ui-wrap .heading_with_menu h5,
-.swagger-section .swagger-ui-wrap .heading_with_menu h6 {
- display: block;
- clear: none;
- float: left;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -ms-box-sizing: border-box;
- box-sizing: border-box;
- width: 60%;
-}
-.swagger-section .swagger-ui-wrap table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-.swagger-section .swagger-ui-wrap table thead tr th {
- padding: 5px;
- font-size: 0.9em;
- color: #666666;
- border-bottom: 1px solid #999999;
-}
-.swagger-section .swagger-ui-wrap table tbody tr:last-child td {
- border-bottom: none;
-}
-.swagger-section .swagger-ui-wrap table tbody tr.offset {
- background-color: #f0f0f0;
-}
-.swagger-section .swagger-ui-wrap table tbody tr td {
- padding: 6px;
- font-size: 0.9em;
- border-bottom: 1px solid #cccccc;
- vertical-align: top;
- line-height: 1.3em;
-}
-.swagger-section .swagger-ui-wrap ol {
- margin: 0px 0 10px;
- padding: 0 0 0 18px;
- list-style-type: decimal;
-}
-.swagger-section .swagger-ui-wrap ol li {
- padding: 5px 0px;
- font-size: 0.9em;
- color: #333333;
-}
-.swagger-section .swagger-ui-wrap ol,
-.swagger-section .swagger-ui-wrap ul {
- list-style: none;
-}
-.swagger-section .swagger-ui-wrap h1 a,
-.swagger-section .swagger-ui-wrap h2 a,
-.swagger-section .swagger-ui-wrap h3 a,
-.swagger-section .swagger-ui-wrap h4 a,
-.swagger-section .swagger-ui-wrap h5 a,
-.swagger-section .swagger-ui-wrap h6 a {
- text-decoration: none;
-}
-.swagger-section .swagger-ui-wrap h1 a:hover,
-.swagger-section .swagger-ui-wrap h2 a:hover,
-.swagger-section .swagger-ui-wrap h3 a:hover,
-.swagger-section .swagger-ui-wrap h4 a:hover,
-.swagger-section .swagger-ui-wrap h5 a:hover,
-.swagger-section .swagger-ui-wrap h6 a:hover {
- text-decoration: underline;
-}
-.swagger-section .swagger-ui-wrap h1 span.divider,
-.swagger-section .swagger-ui-wrap h2 span.divider,
-.swagger-section .swagger-ui-wrap h3 span.divider,
-.swagger-section .swagger-ui-wrap h4 span.divider,
-.swagger-section .swagger-ui-wrap h5 span.divider,
-.swagger-section .swagger-ui-wrap h6 span.divider {
- color: #aaaaaa;
-}
-.swagger-section .swagger-ui-wrap a {
- color: #547f00;
-}
-.swagger-section .swagger-ui-wrap a img {
- border: none;
-}
-.swagger-section .swagger-ui-wrap article,
-.swagger-section .swagger-ui-wrap aside,
-.swagger-section .swagger-ui-wrap details,
-.swagger-section .swagger-ui-wrap figcaption,
-.swagger-section .swagger-ui-wrap figure,
-.swagger-section .swagger-ui-wrap footer,
-.swagger-section .swagger-ui-wrap header,
-.swagger-section .swagger-ui-wrap hgroup,
-.swagger-section .swagger-ui-wrap menu,
-.swagger-section .swagger-ui-wrap nav,
-.swagger-section .swagger-ui-wrap section,
-.swagger-section .swagger-ui-wrap summary {
- display: block;
-}
-.swagger-section .swagger-ui-wrap pre {
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
- background-color: #fcf6db;
- border: 1px solid #e5e0c6;
- padding: 10px;
-}
-.swagger-section .swagger-ui-wrap pre code {
- line-height: 1.6em;
- background: none;
-}
-.swagger-section .swagger-ui-wrap .content > .content-type > div > label {
- clear: both;
- display: block;
- color: #0F6AB4;
- font-size: 1.1em;
- margin: 0;
- padding: 15px 0 5px;
-}
-.swagger-section .swagger-ui-wrap .content pre {
- font-size: 12px;
- margin-top: 5px;
- padding: 5px;
-}
-.swagger-section .swagger-ui-wrap .icon-btn {
- cursor: pointer;
-}
-.swagger-section .swagger-ui-wrap .info_title {
- padding-bottom: 10px;
- font-weight: bold;
- font-size: 25px;
-}
-.swagger-section .swagger-ui-wrap p.big,
-.swagger-section .swagger-ui-wrap div.big p {
- font-size: 1em;
- margin-bottom: 10px;
-}
-.swagger-section .swagger-ui-wrap form.fullwidth ol li.string input,
-.swagger-section .swagger-ui-wrap form.fullwidth ol li.url input,
-.swagger-section .swagger-ui-wrap form.fullwidth ol li.text textarea,
-.swagger-section .swagger-ui-wrap form.fullwidth ol li.numeric input {
- width: 500px !important;
-}
-.swagger-section .swagger-ui-wrap .info_license {
- padding-bottom: 5px;
-}
-.swagger-section .swagger-ui-wrap .info_tos {
- padding-bottom: 5px;
-}
-.swagger-section .swagger-ui-wrap .message-fail {
- color: #cc0000;
-}
-.swagger-section .swagger-ui-wrap .info_url {
- padding-bottom: 5px;
-}
-.swagger-section .swagger-ui-wrap .info_email {
- padding-bottom: 5px;
-}
-.swagger-section .swagger-ui-wrap .info_name {
- padding-bottom: 5px;
-}
-.swagger-section .swagger-ui-wrap .info_description {
- padding-bottom: 10px;
- font-size: 15px;
-}
-.swagger-section .swagger-ui-wrap .markdown ol li,
-.swagger-section .swagger-ui-wrap .markdown ul li {
- padding: 3px 0px;
- line-height: 1.4em;
- color: #333333;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input,
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input,
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input {
- display: block;
- padding: 4px;
- width: auto;
- clear: both;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input.title,
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input.title,
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input.title {
- font-size: 1.3em;
-}
-.swagger-section .swagger-ui-wrap table.fullwidth {
- width: 100%;
-}
-.swagger-section .swagger-ui-wrap .model-signature {
- font-family: "Droid Sans", sans-serif;
- font-size: 1em;
- line-height: 1.5em;
-}
-.swagger-section .swagger-ui-wrap .model-signature .signature-nav a {
- text-decoration: none;
- color: #AAA;
-}
-.swagger-section .swagger-ui-wrap .model-signature .signature-nav a:hover {
- text-decoration: underline;
- color: black;
-}
-.swagger-section .swagger-ui-wrap .model-signature .signature-nav .selected {
- color: black;
- text-decoration: none;
-}
-.swagger-section .swagger-ui-wrap .model-signature .propType {
- color: #5555aa;
-}
-.swagger-section .swagger-ui-wrap .model-signature pre:hover {
- background-color: #ffffdd;
-}
-.swagger-section .swagger-ui-wrap .model-signature pre {
- font-size: .85em;
- line-height: 1.2em;
- overflow: auto;
- max-height: 200px;
- cursor: pointer;
-}
-.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav {
- display: block;
- margin: 0;
- padding: 0;
-}
-.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li:last-child {
- padding-right: 0;
- border-right: none;
-}
-.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li {
- float: left;
- margin: 0 5px 5px 0;
- padding: 2px 5px 2px 0;
- border-right: 1px solid #ddd;
-}
-.swagger-section .swagger-ui-wrap .model-signature .propOpt {
- color: #555;
-}
-.swagger-section .swagger-ui-wrap .model-signature .snippet small {
- font-size: 0.75em;
-}
-.swagger-section .swagger-ui-wrap .model-signature .propOptKey {
- font-style: italic;
-}
-.swagger-section .swagger-ui-wrap .model-signature .description .strong {
- font-weight: bold;
- color: #000;
- font-size: .9em;
-}
-.swagger-section .swagger-ui-wrap .model-signature .description div {
- font-size: 0.9em;
- line-height: 1.5em;
- margin-left: 1em;
-}
-.swagger-section .swagger-ui-wrap .model-signature .description .stronger {
- font-weight: bold;
- color: #000;
-}
-.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper {
- border-spacing: 0;
- position: absolute;
- background-color: #ffffff;
- border: 1px solid #bbbbbb;
- display: none;
- font-size: 11px;
- max-width: 400px;
- line-height: 30px;
- color: black;
- padding: 5px;
- margin-left: 10px;
-}
-.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper th {
- text-align: center;
- background-color: #eeeeee;
- border: 1px solid #bbbbbb;
- font-size: 11px;
- color: #666666;
- font-weight: bold;
- padding: 5px;
- line-height: 15px;
-}
-.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper .optionName {
- font-weight: bold;
-}
-.swagger-section .swagger-ui-wrap .model-signature .propName {
- font-weight: bold;
-}
-.swagger-section .swagger-ui-wrap .model-signature .signature-container {
- clear: both;
-}
-.swagger-section .swagger-ui-wrap .body-textarea {
- width: 300px;
- height: 100px;
- border: 1px solid #aaa;
-}
-.swagger-section .swagger-ui-wrap .markdown p code,
-.swagger-section .swagger-ui-wrap .markdown li code {
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
- background-color: #f0f0f0;
- color: black;
- padding: 1px 3px;
-}
-.swagger-section .swagger-ui-wrap .required {
- font-weight: bold;
-}
-.swagger-section .swagger-ui-wrap input.parameter {
- width: 300px;
- border: 1px solid #aaa;
-}
-.swagger-section .swagger-ui-wrap h1 {
- color: black;
- font-size: 1.5em;
- line-height: 1.3em;
- padding: 10px 0 10px 0;
- font-family: "Droid Sans", sans-serif;
- font-weight: bold;
-}
-.swagger-section .swagger-ui-wrap .heading_with_menu {
- float: none;
- clear: both;
- overflow: hidden;
- display: block;
-}
-.swagger-section .swagger-ui-wrap .heading_with_menu ul {
- display: block;
- clear: none;
- float: right;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -ms-box-sizing: border-box;
- box-sizing: border-box;
- margin-top: 10px;
-}
-.swagger-section .swagger-ui-wrap h2 {
- color: black;
- font-size: 1.3em;
- padding: 10px 0 10px 0;
-}
-.swagger-section .swagger-ui-wrap h2 a {
- color: black;
-}
-.swagger-section .swagger-ui-wrap h2 span.sub {
- font-size: 0.7em;
- color: #999999;
- font-style: italic;
-}
-.swagger-section .swagger-ui-wrap h2 span.sub a {
- color: #777777;
-}
-.swagger-section .swagger-ui-wrap span.weak {
- color: #666666;
-}
-.swagger-section .swagger-ui-wrap .message-success {
- color: #89BF04;
-}
-.swagger-section .swagger-ui-wrap caption,
-.swagger-section .swagger-ui-wrap th,
-.swagger-section .swagger-ui-wrap td {
- text-align: left;
- font-weight: normal;
- vertical-align: middle;
-}
-.swagger-section .swagger-ui-wrap .code {
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.text textarea {
- font-family: "Droid Sans", sans-serif;
- height: 250px;
- padding: 4px;
- display: block;
- clear: both;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.select select {
- display: block;
- clear: both;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean {
- float: none;
- clear: both;
- overflow: hidden;
- display: block;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean label {
- display: block;
- float: left;
- clear: none;
- margin: 0;
- padding: 0;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean input {
- display: block;
- float: left;
- clear: none;
- margin: 0 5px 0 0;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.required label {
- color: black;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label {
- display: block;
- clear: both;
- width: auto;
- padding: 0 0 3px;
- color: #666666;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label abbr {
- padding-left: 3px;
- color: #888888;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li p.inline-hints {
- margin-left: 0;
- font-style: italic;
- font-size: 0.9em;
- margin: 0;
-}
-.swagger-section .swagger-ui-wrap form.formtastic fieldset.buttons {
- margin: 0;
- padding: 0;
-}
-.swagger-section .swagger-ui-wrap span.blank,
-.swagger-section .swagger-ui-wrap span.empty {
- color: #888888;
- font-style: italic;
-}
-.swagger-section .swagger-ui-wrap .markdown h3 {
- color: #547f00;
-}
-.swagger-section .swagger-ui-wrap .markdown h4 {
- color: #666666;
-}
-.swagger-section .swagger-ui-wrap .markdown pre {
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
- background-color: #fcf6db;
- border: 1px solid #e5e0c6;
- padding: 10px;
- margin: 0 0 10px 0;
-}
-.swagger-section .swagger-ui-wrap .markdown pre code {
- line-height: 1.6em;
-}
-.swagger-section .swagger-ui-wrap div.gist {
- margin: 20px 0 25px 0 !important;
-}
-.swagger-section .swagger-ui-wrap ul#resources {
- font-family: "Droid Sans", sans-serif;
- font-size: 0.9em;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource {
- border-bottom: 1px solid #dddddd;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading h2 a,
-.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading h2 a {
- color: black;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading ul.options li a,
-.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading ul.options li a {
- color: #555555;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource:last-child {
- border-bottom: none;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading {
- border: 1px solid transparent;
- float: none;
- clear: both;
- overflow: hidden;
- display: block;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options {
- overflow: hidden;
- padding: 0;
- display: block;
- clear: none;
- float: right;
- margin: 14px 10px 0 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li {
- float: left;
- clear: none;
- margin: 0;
- padding: 2px 10px;
- border-right: 1px solid #dddddd;
- color: #666666;
- font-size: 0.9em;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a {
- color: #aaaaaa;
- text-decoration: none;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover {
- text-decoration: underline;
- color: black;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover,
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:active,
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a.active {
- text-decoration: underline;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:first-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.first {
- padding-left: 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:last-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.last {
- padding-right: 0;
- border-right: none;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options:first-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options.first {
- padding-left: 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 {
- color: #999999;
- padding-left: 0;
- display: block;
- clear: none;
- float: left;
- font-family: "Droid Sans", sans-serif;
- font-weight: bold;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
- color: #999999;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover {
- color: black;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation {
- float: none;
- clear: both;
- overflow: hidden;
- display: block;
- margin: 0 0 10px;
- padding: 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading {
- float: none;
- clear: both;
- overflow: hidden;
- display: block;
- margin: 0;
- padding: 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 {
- display: block;
- clear: none;
- float: left;
- width: auto;
- margin: 0;
- padding: 0;
- line-height: 1.1em;
- color: black;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path {
- padding-left: 10px;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a {
- color: black;
- text-decoration: none;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover {
- text-decoration: underline;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a {
- text-transform: uppercase;
- text-decoration: none;
- color: white;
- display: inline-block;
- width: 50px;
- font-size: 0.7em;
- text-align: center;
- padding: 7px 0 4px;
- -moz-border-radius: 2px;
- -webkit-border-radius: 2px;
- -o-border-radius: 2px;
- -ms-border-radius: 2px;
- -khtml-border-radius: 2px;
- border-radius: 2px;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span {
- margin: 0;
- padding: 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options {
- overflow: hidden;
- padding: 0;
- display: block;
- clear: none;
- float: right;
- margin: 6px 10px 0 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li {
- float: left;
- clear: none;
- margin: 0;
- padding: 2px 10px;
- font-size: 0.9em;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a {
- text-decoration: none;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li.access {
- color: black;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content {
- border-top: none;
- padding: 10px;
- -moz-border-radius-bottomleft: 6px;
- -webkit-border-bottom-left-radius: 6px;
- -o-border-bottom-left-radius: 6px;
- -ms-border-bottom-left-radius: 6px;
- -khtml-border-bottom-left-radius: 6px;
- border-bottom-left-radius: 6px;
- -moz-border-radius-bottomright: 6px;
- -webkit-border-bottom-right-radius: 6px;
- -o-border-bottom-right-radius: 6px;
- -ms-border-bottom-right-radius: 6px;
- -khtml-border-bottom-right-radius: 6px;
- border-bottom-right-radius: 6px;
- margin: 0 0 20px;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content h4 {
- font-size: 1.1em;
- margin: 0;
- padding: 15px 0 5px;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header {
- float: none;
- clear: both;
- overflow: hidden;
- display: block;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header a {
- padding: 4px 0 0 10px;
- display: inline-block;
- font-size: 0.9em;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit {
- display: block;
- clear: none;
- float: left;
- padding: 6px 8px;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header span.response_throbber {
- background-image: url('../images/throbber.gif');
- width: 128px;
- height: 16px;
- display: block;
- clear: none;
- float: right;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error {
- outline: 2px solid black;
- outline-color: #cc0000;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.response div.block pre {
- font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
- padding: 10px;
- font-size: 0.9em;
- max-height: 400px;
- overflow-y: auto;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading {
- background-color: #f9f2e9;
- border: 1px solid #f0e0ca;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.http_method a {
- background-color: #c5862b;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li {
- border-right: 1px solid #dddddd;
- border-right-color: #f0e0ca;
- color: #c5862b;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a {
- color: #c5862b;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content {
- background-color: #faf5ee;
- border: 1px solid #f0e0ca;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 {
- color: #c5862b;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header a {
- color: #dcb67f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading {
- background-color: #fcffcd;
- border: 1px solid black;
- border-color: #ffd20f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.http_method a {
- text-transform: uppercase;
- background-color: #ffd20f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li {
- border-right: 1px solid #dddddd;
- border-right-color: #ffd20f;
- color: #ffd20f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a {
- color: #ffd20f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content {
- background-color: #fcffcd;
- border: 1px solid black;
- border-color: #ffd20f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content h4 {
- color: #ffd20f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header a {
- color: #6fc992;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading {
- background-color: #f5e8e8;
- border: 1px solid #e8c6c7;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.http_method a {
- text-transform: uppercase;
- background-color: #a41e22;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li {
- border-right: 1px solid #dddddd;
- border-right-color: #e8c6c7;
- color: #a41e22;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a {
- color: #a41e22;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
- background-color: #f7eded;
- border: 1px solid #e8c6c7;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content h4 {
- color: #a41e22;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header a {
- color: #c8787a;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading {
- background-color: #e7f6ec;
- border: 1px solid #c3e8d1;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.http_method a {
- background-color: #10a54a;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li {
- border-right: 1px solid #dddddd;
- border-right-color: #c3e8d1;
- color: #10a54a;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a {
- color: #10a54a;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content {
- background-color: #ebf7f0;
- border: 1px solid #c3e8d1;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 {
- color: #10a54a;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header a {
- color: #6fc992;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading {
- background-color: #FCE9E3;
- border: 1px solid #F5D5C3;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.http_method a {
- background-color: #D38042;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li {
- border-right: 1px solid #dddddd;
- border-right-color: #f0cecb;
- color: #D38042;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a {
- color: #D38042;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content {
- background-color: #faf0ef;
- border: 1px solid #f0cecb;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 {
- color: #D38042;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header a {
- color: #dcb67f;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading {
- background-color: #e7f0f7;
- border: 1px solid #c3d9ec;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.http_method a {
- background-color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li {
- border-right: 1px solid #dddddd;
- border-right-color: #c3d9ec;
- color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a {
- color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content {
- background-color: #ebf3f9;
- border: 1px solid #c3d9ec;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 {
- color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a {
- color: #6fa5d2;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading {
- background-color: #e7f0f7;
- border: 1px solid #c3d9ec;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading h3 span.http_method a {
- background-color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li {
- border-right: 1px solid #dddddd;
- border-right-color: #c3d9ec;
- color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li a {
- color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content {
- background-color: #ebf3f9;
- border: 1px solid #c3d9ec;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content h4 {
- color: #0f6ab4;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content div.sandbox_header a {
- color: #6fa5d2;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
- border-top: none;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:last-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:last-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:last-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:last-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:last-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:last-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.last,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.last,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.last,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.last,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.last,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.last {
- padding-right: 0;
- border-right: none;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:hover,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:active,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a.active {
- text-decoration: underline;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li:first-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li.first {
- padding-left: 0;
-}
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations:first-child,
-.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations.first {
- padding-left: 0;
-}
-.swagger-section .swagger-ui-wrap p#colophon {
- margin: 0 15px 40px 15px;
- padding: 10px 0;
- font-size: 0.8em;
- border-top: 1px solid #dddddd;
- font-family: "Droid Sans", sans-serif;
- color: #999999;
- font-style: italic;
-}
-.swagger-section .swagger-ui-wrap p#colophon a {
- text-decoration: none;
- color: #547f00;
-}
-.swagger-section .swagger-ui-wrap h3 {
- color: black;
- font-size: 1.1em;
- padding: 10px 0 10px 0;
-}
-.swagger-section .swagger-ui-wrap .markdown ol,
-.swagger-section .swagger-ui-wrap .markdown ul {
- font-family: "Droid Sans", sans-serif;
- margin: 5px 0 10px;
- padding: 0 0 0 18px;
- list-style-type: disc;
-}
-.swagger-section .swagger-ui-wrap form.form_box {
- background-color: #ebf3f9;
- border: 1px solid #c3d9ec;
- padding: 10px;
-}
-.swagger-section .swagger-ui-wrap form.form_box label {
- color: #0f6ab4 !important;
-}
-.swagger-section .swagger-ui-wrap form.form_box input[type=submit] {
- display: block;
- padding: 10px;
-}
-.swagger-section .swagger-ui-wrap form.form_box p.weak {
- font-size: 0.8em;
-}
-.swagger-section .swagger-ui-wrap form.form_box p {
- font-size: 0.9em;
- padding: 0 0 15px;
- color: #7e7b6d;
-}
-.swagger-section .swagger-ui-wrap form.form_box p a {
- color: #646257;
-}
-.swagger-section .swagger-ui-wrap form.form_box p strong {
- color: black;
-}
-.swagger-section .title {
- font-style: bold;
-}
-.swagger-section .secondary_form {
- display: none;
-}
-.swagger-section .main_image {
- display: block;
- margin-left: auto;
- margin-right: auto;
-}
-.swagger-section .oauth_body {
- margin-left: 100px;
- margin-right: 100px;
-}
-.swagger-section .oauth_submit {
- text-align: center;
-}
-.swagger-section .api-popup-dialog {
- z-index: 10000;
- position: absolute;
- width: 500px;
- background: #FFF;
- padding: 20px;
- border: 1px solid #ccc;
- border-radius: 5px;
- display: none;
- font-size: 13px;
- color: #777;
-}
-.swagger-section .api-popup-dialog .api-popup-title {
- font-size: 24px;
- padding: 10px 0;
-}
-.swagger-section .api-popup-dialog .api-popup-title {
- font-size: 24px;
- padding: 10px 0;
-}
-.swagger-section .api-popup-dialog p.error-msg {
- padding-left: 5px;
- padding-bottom: 5px;
-}
-.swagger-section .api-popup-dialog button.api-popup-authbtn {
- height: 30px;
-}
-.swagger-section .api-popup-dialog button.api-popup-cancel {
- height: 30px;
-}
-.swagger-section .api-popup-scopes {
- padding: 10px 20px;
-}
-.swagger-section .api-popup-scopes li {
- padding: 5px 0;
- line-height: 20px;
-}
-.swagger-section .api-popup-scopes .api-scope-desc {
- padding-left: 20px;
- font-style: italic;
-}
-.swagger-section .api-popup-scopes li input {
- position: relative;
- top: 2px;
-}
-.swagger-section .api-popup-actions {
- padding-top: 10px;
-}
-.swagger-section .access {
- float: right;
-}
-.swagger-section .auth {
- float: right;
-}
-.swagger-section #api_information_panel {
- position: absolute;
- background: #FFF;
- border: 1px solid #ccc;
- border-radius: 5px;
- display: none;
- font-size: 13px;
- max-width: 300px;
- line-height: 30px;
- color: black;
- padding: 5px;
-}
-.swagger-section #api_information_panel p .api-msg-enabled {
- color: green;
-}
-.swagger-section #api_information_panel p .api-msg-disabled {
- color: red;
-}
-.swagger-section .api-ic {
- height: 18px;
- vertical-align: middle;
- display: inline-block;
- background: url(../images/explorer_icons.png) no-repeat;
-}
-.swagger-section .ic-info {
- background-position: 0 0;
- width: 18px;
- margin-top: -7px;
- margin-left: 4px;
-}
-.swagger-section .ic-warning {
- background-position: -60px 0;
- width: 18px;
- margin-top: -7px;
- margin-left: 4px;
-}
-.swagger-section .ic-error {
- background-position: -30px 0;
- width: 18px;
- margin-top: -7px;
- margin-left: 4px;
-}
-.swagger-section .ic-off {
- background-position: -90px 0;
- width: 58px;
- margin-top: -4px;
- cursor: pointer;
-}
-.swagger-section .ic-on {
- background-position: -160px 0;
- width: 58px;
- margin-top: -4px;
- cursor: pointer;
-}
-.swagger-section #header {
- background-color: #89bf04;
- padding: 14px;
-}
-.swagger-section #header a#logo {
- font-size: 1.5em;
- font-weight: bold;
- text-decoration: none;
- background: transparent url(../images/logo_small.png) no-repeat left center;
- padding: 20px 0 20px 40px;
- color: white;
-}
-.swagger-section #header form#api_selector {
- display: block;
- clear: none;
- float: right;
-}
-.swagger-section #header form#api_selector .input {
- display: block;
- clear: none;
- float: left;
- margin: 0 10px 0 0;
-}
-.swagger-section #header form#api_selector .input input#input_apiKey {
- width: 200px;
-}
-.swagger-section #header form#api_selector .input input#input_baseUrl {
- width: 400px;
-}
-.swagger-section #header form#api_selector .input a#explore {
- display: block;
- text-decoration: none;
- font-weight: bold;
- padding: 6px 8px;
- font-size: 0.9em;
- color: white;
- background-color: #547f00;
- -moz-border-radius: 4px;
- -webkit-border-radius: 4px;
- -o-border-radius: 4px;
- -ms-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
-}
-.swagger-section #header form#api_selector .input a#explore:hover {
- background-color: #547f00;
-}
-.swagger-section #header form#api_selector .input input {
- font-size: 0.9em;
- padding: 3px;
- margin: 0;
-}
-.swagger-section #content_message {
- margin: 10px 15px;
- font-style: italic;
- color: #999999;
-}
-.swagger-section #message-bar {
- min-height: 30px;
- text-align: center;
- padding-top: 10px;
-}
+/**
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org> */
+.swagger-section pre code {
+ display: block;
+ padding: 0.5em;
+ background: #F0F0F0;
+}
+.swagger-section pre code,
+.swagger-section pre .subst,
+.swagger-section pre .tag .title,
+.swagger-section pre .lisp .title,
+.swagger-section pre .clojure .built_in,
+.swagger-section pre .nginx .title {
+ color: black;
+}
+.swagger-section pre .string,
+.swagger-section pre .title,
+.swagger-section pre .constant,
+.swagger-section pre .parent,
+.swagger-section pre .tag .value,
+.swagger-section pre .rules .value,
+.swagger-section pre .rules .value .number,
+.swagger-section pre .preprocessor,
+.swagger-section pre .ruby .symbol,
+.swagger-section pre .ruby .symbol .string,
+.swagger-section pre .aggregate,
+.swagger-section pre .template_tag,
+.swagger-section pre .django .variable,
+.swagger-section pre .smalltalk .class,
+.swagger-section pre .addition,
+.swagger-section pre .flow,
+.swagger-section pre .stream,
+.swagger-section pre .bash .variable,
+.swagger-section pre .apache .tag,
+.swagger-section pre .apache .cbracket,
+.swagger-section pre .tex .command,
+.swagger-section pre .tex .special,
+.swagger-section pre .erlang_repl .function_or_atom,
+.swagger-section pre .markdown .header {
+ color: #800;
+}
+.swagger-section pre .comment,
+.swagger-section pre .annotation,
+.swagger-section pre .template_comment,
+.swagger-section pre .diff .header,
+.swagger-section pre .chunk,
+.swagger-section pre .markdown .blockquote {
+ color: #888;
+}
+.swagger-section pre .number,
+.swagger-section pre .date,
+.swagger-section pre .regexp,
+.swagger-section pre .literal,
+.swagger-section pre .smalltalk .symbol,
+.swagger-section pre .smalltalk .char,
+.swagger-section pre .go .constant,
+.swagger-section pre .change,
+.swagger-section pre .markdown .bullet,
+.swagger-section pre .markdown .link_url {
+ color: #080;
+}
+.swagger-section pre .label,
+.swagger-section pre .javadoc,
+.swagger-section pre .ruby .string,
+.swagger-section pre .decorator,
+.swagger-section pre .filter .argument,
+.swagger-section pre .localvars,
+.swagger-section pre .array,
+.swagger-section pre .attr_selector,
+.swagger-section pre .important,
+.swagger-section pre .pseudo,
+.swagger-section pre .pi,
+.swagger-section pre .doctype,
+.swagger-section pre .deletion,
+.swagger-section pre .envvar,
+.swagger-section pre .shebang,
+.swagger-section pre .apache .sqbracket,
+.swagger-section pre .nginx .built_in,
+.swagger-section pre .tex .formula,
+.swagger-section pre .erlang_repl .reserved,
+.swagger-section pre .prompt,
+.swagger-section pre .markdown .link_label,
+.swagger-section pre .vhdl .attribute,
+.swagger-section pre .clojure .attribute,
+.swagger-section pre .coffeescript .property {
+ color: #8888ff;
+}
+.swagger-section pre .keyword,
+.swagger-section pre .id,
+.swagger-section pre .phpdoc,
+.swagger-section pre .title,
+.swagger-section pre .built_in,
+.swagger-section pre .aggregate,
+.swagger-section pre .css .tag,
+.swagger-section pre .javadoctag,
+.swagger-section pre .phpdoc,
+.swagger-section pre .yardoctag,
+.swagger-section pre .smalltalk .class,
+.swagger-section pre .winutils,
+.swagger-section pre .bash .variable,
+.swagger-section pre .apache .tag,
+.swagger-section pre .go .typename,
+.swagger-section pre .tex .command,
+.swagger-section pre .markdown .strong,
+.swagger-section pre .request,
+.swagger-section pre .status {
+ font-weight: bold;
+}
+.swagger-section pre .markdown .emphasis {
+ font-style: italic;
+}
+.swagger-section pre .nginx .built_in {
+ font-weight: normal;
+}
+.swagger-section pre .coffeescript .javascript,
+.swagger-section pre .javascript .xml,
+.swagger-section pre .tex .formula,
+.swagger-section pre .xml .javascript,
+.swagger-section pre .xml .vbscript,
+.swagger-section pre .xml .css,
+.swagger-section pre .xml .cdata {
+ opacity: 0.5;
+}
+.swagger-section .swagger-ui-wrap {
+ line-height: 1;
+ font-family: "Droid Sans", sans-serif;
+ max-width: 960px;
+ margin-left: auto;
+ margin-right: auto;
+}
+.swagger-section .swagger-ui-wrap b,
+.swagger-section .swagger-ui-wrap strong {
+ font-family: "Droid Sans", sans-serif;
+ font-weight: bold;
+}
+.swagger-section .swagger-ui-wrap q,
+.swagger-section .swagger-ui-wrap blockquote {
+ quotes: none;
+}
+.swagger-section .swagger-ui-wrap p {
+ line-height: 1.4em;
+ padding: 0 0 10px;
+ color: #333333;
+}
+.swagger-section .swagger-ui-wrap q:before,
+.swagger-section .swagger-ui-wrap q:after,
+.swagger-section .swagger-ui-wrap blockquote:before,
+.swagger-section .swagger-ui-wrap blockquote:after {
+ content: none;
+}
+.swagger-section .swagger-ui-wrap .heading_with_menu h1,
+.swagger-section .swagger-ui-wrap .heading_with_menu h2,
+.swagger-section .swagger-ui-wrap .heading_with_menu h3,
+.swagger-section .swagger-ui-wrap .heading_with_menu h4,
+.swagger-section .swagger-ui-wrap .heading_with_menu h5,
+.swagger-section .swagger-ui-wrap .heading_with_menu h6 {
+ display: block;
+ clear: none;
+ float: left;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ width: 60%;
+}
+.swagger-section .swagger-ui-wrap table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+.swagger-section .swagger-ui-wrap table thead tr th {
+ padding: 5px;
+ font-size: 0.9em;
+ color: #666666;
+ border-bottom: 1px solid #999999;
+}
+.swagger-section .swagger-ui-wrap table tbody tr:last-child td {
+ border-bottom: none;
+}
+.swagger-section .swagger-ui-wrap table tbody tr.offset {
+ background-color: #f0f0f0;
+}
+.swagger-section .swagger-ui-wrap table tbody tr td {
+ padding: 6px;
+ font-size: 0.9em;
+ border-bottom: 1px solid #cccccc;
+ vertical-align: top;
+ line-height: 1.3em;
+}
+.swagger-section .swagger-ui-wrap ol {
+ margin: 0px 0 10px;
+ padding: 0 0 0 18px;
+ list-style-type: decimal;
+}
+.swagger-section .swagger-ui-wrap ol li {
+ padding: 5px 0px;
+ font-size: 0.9em;
+ color: #333333;
+}
+.swagger-section .swagger-ui-wrap ol,
+.swagger-section .swagger-ui-wrap ul {
+ list-style: none;
+}
+.swagger-section .swagger-ui-wrap h1 a,
+.swagger-section .swagger-ui-wrap h2 a,
+.swagger-section .swagger-ui-wrap h3 a,
+.swagger-section .swagger-ui-wrap h4 a,
+.swagger-section .swagger-ui-wrap h5 a,
+.swagger-section .swagger-ui-wrap h6 a {
+ text-decoration: none;
+}
+.swagger-section .swagger-ui-wrap h1 a:hover,
+.swagger-section .swagger-ui-wrap h2 a:hover,
+.swagger-section .swagger-ui-wrap h3 a:hover,
+.swagger-section .swagger-ui-wrap h4 a:hover,
+.swagger-section .swagger-ui-wrap h5 a:hover,
+.swagger-section .swagger-ui-wrap h6 a:hover {
+ text-decoration: underline;
+}
+.swagger-section .swagger-ui-wrap h1 span.divider,
+.swagger-section .swagger-ui-wrap h2 span.divider,
+.swagger-section .swagger-ui-wrap h3 span.divider,
+.swagger-section .swagger-ui-wrap h4 span.divider,
+.swagger-section .swagger-ui-wrap h5 span.divider,
+.swagger-section .swagger-ui-wrap h6 span.divider {
+ color: #aaaaaa;
+}
+.swagger-section .swagger-ui-wrap a {
+ color: #547f00;
+}
+.swagger-section .swagger-ui-wrap a img {
+ border: none;
+}
+.swagger-section .swagger-ui-wrap article,
+.swagger-section .swagger-ui-wrap aside,
+.swagger-section .swagger-ui-wrap details,
+.swagger-section .swagger-ui-wrap figcaption,
+.swagger-section .swagger-ui-wrap figure,
+.swagger-section .swagger-ui-wrap footer,
+.swagger-section .swagger-ui-wrap header,
+.swagger-section .swagger-ui-wrap hgroup,
+.swagger-section .swagger-ui-wrap menu,
+.swagger-section .swagger-ui-wrap nav,
+.swagger-section .swagger-ui-wrap section,
+.swagger-section .swagger-ui-wrap summary {
+ display: block;
+}
+.swagger-section .swagger-ui-wrap pre {
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
+ background-color: #fcf6db;
+ border: 1px solid #e5e0c6;
+ padding: 10px;
+}
+.swagger-section .swagger-ui-wrap pre code {
+ line-height: 1.6em;
+ background: none;
+}
+.swagger-section .swagger-ui-wrap .content > .content-type > div > label {
+ clear: both;
+ display: block;
+ color: #0F6AB4;
+ font-size: 1.1em;
+ margin: 0;
+ padding: 15px 0 5px;
+}
+.swagger-section .swagger-ui-wrap .content pre {
+ font-size: 12px;
+ margin-top: 5px;
+ padding: 5px;
+}
+.swagger-section .swagger-ui-wrap .icon-btn {
+ cursor: pointer;
+}
+.swagger-section .swagger-ui-wrap .info_title {
+ padding-bottom: 10px;
+ font-weight: bold;
+ font-size: 25px;
+}
+.swagger-section .swagger-ui-wrap p.big,
+.swagger-section .swagger-ui-wrap div.big p {
+ font-size: 1em;
+ margin-bottom: 10px;
+}
+.swagger-section .swagger-ui-wrap form.fullwidth ol li.string input,
+.swagger-section .swagger-ui-wrap form.fullwidth ol li.url input,
+.swagger-section .swagger-ui-wrap form.fullwidth ol li.text textarea,
+.swagger-section .swagger-ui-wrap form.fullwidth ol li.numeric input {
+ width: 500px !important;
+}
+.swagger-section .swagger-ui-wrap .info_license {
+ padding-bottom: 5px;
+}
+.swagger-section .swagger-ui-wrap .info_tos {
+ padding-bottom: 5px;
+}
+.swagger-section .swagger-ui-wrap .message-fail {
+ color: #cc0000;
+}
+.swagger-section .swagger-ui-wrap .info_url {
+ padding-bottom: 5px;
+}
+.swagger-section .swagger-ui-wrap .info_email {
+ padding-bottom: 5px;
+}
+.swagger-section .swagger-ui-wrap .info_name {
+ padding-bottom: 5px;
+}
+.swagger-section .swagger-ui-wrap .info_description {
+ padding-bottom: 10px;
+ font-size: 15px;
+}
+.swagger-section .swagger-ui-wrap .markdown ol li,
+.swagger-section .swagger-ui-wrap .markdown ul li {
+ padding: 3px 0px;
+ line-height: 1.4em;
+ color: #333333;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input,
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input,
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input {
+ display: block;
+ padding: 4px;
+ width: auto;
+ clear: both;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input.title,
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input.title,
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input.title {
+ font-size: 1.3em;
+}
+.swagger-section .swagger-ui-wrap table.fullwidth {
+ width: 100%;
+}
+.swagger-section .swagger-ui-wrap .model-signature {
+ font-family: "Droid Sans", sans-serif;
+ font-size: 1em;
+ line-height: 1.5em;
+}
+.swagger-section .swagger-ui-wrap .model-signature .signature-nav a {
+ text-decoration: none;
+ color: #AAA;
+}
+.swagger-section .swagger-ui-wrap .model-signature .signature-nav a:hover {
+ text-decoration: underline;
+ color: black;
+}
+.swagger-section .swagger-ui-wrap .model-signature .signature-nav .selected {
+ color: black;
+ text-decoration: none;
+}
+.swagger-section .swagger-ui-wrap .model-signature .propType {
+ color: #5555aa;
+}
+.swagger-section .swagger-ui-wrap .model-signature pre:hover {
+ background-color: #ffffdd;
+}
+.swagger-section .swagger-ui-wrap .model-signature pre {
+ font-size: .85em;
+ line-height: 1.2em;
+ overflow: auto;
+ max-height: 200px;
+ cursor: pointer;
+}
+.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav {
+ display: block;
+ margin: 0;
+ padding: 0;
+}
+.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li:last-child {
+ padding-right: 0;
+ border-right: none;
+}
+.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li {
+ float: left;
+ margin: 0 5px 5px 0;
+ padding: 2px 5px 2px 0;
+ border-right: 1px solid #ddd;
+}
+.swagger-section .swagger-ui-wrap .model-signature .propOpt {
+ color: #555;
+}
+.swagger-section .swagger-ui-wrap .model-signature .snippet small {
+ font-size: 0.75em;
+}
+.swagger-section .swagger-ui-wrap .model-signature .propOptKey {
+ font-style: italic;
+}
+.swagger-section .swagger-ui-wrap .model-signature .description .strong {
+ font-weight: bold;
+ color: #000;
+ font-size: .9em;
+}
+.swagger-section .swagger-ui-wrap .model-signature .description div {
+ font-size: 0.9em;
+ line-height: 1.5em;
+ margin-left: 1em;
+}
+.swagger-section .swagger-ui-wrap .model-signature .description .stronger {
+ font-weight: bold;
+ color: #000;
+}
+.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper {
+ border-spacing: 0;
+ position: absolute;
+ background-color: #ffffff;
+ border: 1px solid #bbbbbb;
+ display: none;
+ font-size: 11px;
+ max-width: 400px;
+ line-height: 30px;
+ color: black;
+ padding: 5px;
+ margin-left: 10px;
+}
+.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper th {
+ text-align: center;
+ background-color: #eeeeee;
+ border: 1px solid #bbbbbb;
+ font-size: 11px;
+ color: #666666;
+ font-weight: bold;
+ padding: 5px;
+ line-height: 15px;
+}
+.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper .optionName {
+ font-weight: bold;
+}
+.swagger-section .swagger-ui-wrap .model-signature .propName {
+ font-weight: bold;
+}
+.swagger-section .swagger-ui-wrap .model-signature .signature-container {
+ clear: both;
+}
+.swagger-section .swagger-ui-wrap .body-textarea {
+ width: 300px;
+ height: 100px;
+ border: 1px solid #aaa;
+}
+.swagger-section .swagger-ui-wrap .markdown p code,
+.swagger-section .swagger-ui-wrap .markdown li code {
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
+ background-color: #f0f0f0;
+ color: black;
+ padding: 1px 3px;
+}
+.swagger-section .swagger-ui-wrap .required {
+ font-weight: bold;
+}
+.swagger-section .swagger-ui-wrap input.parameter {
+ width: 300px;
+ border: 1px solid #aaa;
+}
+.swagger-section .swagger-ui-wrap h1 {
+ color: black;
+ font-size: 1.5em;
+ line-height: 1.3em;
+ padding: 10px 0 10px 0;
+ font-family: "Droid Sans", sans-serif;
+ font-weight: bold;
+}
+.swagger-section .swagger-ui-wrap .heading_with_menu {
+ float: none;
+ clear: both;
+ overflow: hidden;
+ display: block;
+}
+.swagger-section .swagger-ui-wrap .heading_with_menu ul {
+ display: block;
+ clear: none;
+ float: right;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ margin-top: 10px;
+}
+.swagger-section .swagger-ui-wrap h2 {
+ color: black;
+ font-size: 1.3em;
+ padding: 10px 0 10px 0;
+}
+.swagger-section .swagger-ui-wrap h2 a {
+ color: black;
+}
+.swagger-section .swagger-ui-wrap h2 span.sub {
+ font-size: 0.7em;
+ color: #999999;
+ font-style: italic;
+}
+.swagger-section .swagger-ui-wrap h2 span.sub a {
+ color: #777777;
+}
+.swagger-section .swagger-ui-wrap span.weak {
+ color: #666666;
+}
+.swagger-section .swagger-ui-wrap .message-success {
+ color: #89BF04;
+}
+.swagger-section .swagger-ui-wrap caption,
+.swagger-section .swagger-ui-wrap th,
+.swagger-section .swagger-ui-wrap td {
+ text-align: left;
+ font-weight: normal;
+ vertical-align: middle;
+}
+.swagger-section .swagger-ui-wrap .code {
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.text textarea {
+ font-family: "Droid Sans", sans-serif;
+ height: 250px;
+ padding: 4px;
+ display: block;
+ clear: both;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.select select {
+ display: block;
+ clear: both;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean {
+ float: none;
+ clear: both;
+ overflow: hidden;
+ display: block;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean label {
+ display: block;
+ float: left;
+ clear: none;
+ margin: 0;
+ padding: 0;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean input {
+ display: block;
+ float: left;
+ clear: none;
+ margin: 0 5px 0 0;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.required label {
+ color: black;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label {
+ display: block;
+ clear: both;
+ width: auto;
+ padding: 0 0 3px;
+ color: #666666;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label abbr {
+ padding-left: 3px;
+ color: #888888;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li p.inline-hints {
+ margin-left: 0;
+ font-style: italic;
+ font-size: 0.9em;
+ margin: 0;
+}
+.swagger-section .swagger-ui-wrap form.formtastic fieldset.buttons {
+ margin: 0;
+ padding: 0;
+}
+.swagger-section .swagger-ui-wrap span.blank,
+.swagger-section .swagger-ui-wrap span.empty {
+ color: #888888;
+ font-style: italic;
+}
+.swagger-section .swagger-ui-wrap .markdown h3 {
+ color: #547f00;
+}
+.swagger-section .swagger-ui-wrap .markdown h4 {
+ color: #666666;
+}
+.swagger-section .swagger-ui-wrap .markdown pre {
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
+ background-color: #fcf6db;
+ border: 1px solid #e5e0c6;
+ padding: 10px;
+ margin: 0 0 10px 0;
+}
+.swagger-section .swagger-ui-wrap .markdown pre code {
+ line-height: 1.6em;
+}
+.swagger-section .swagger-ui-wrap div.gist {
+ margin: 20px 0 25px 0 !important;
+}
+.swagger-section .swagger-ui-wrap ul#resources {
+ font-family: "Droid Sans", sans-serif;
+ font-size: 0.9em;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource {
+ border-bottom: 1px solid #dddddd;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading h2 a,
+.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading h2 a {
+ color: black;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading ul.options li a,
+.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading ul.options li a {
+ color: #555555;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource:last-child {
+ border-bottom: none;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading {
+ border: 1px solid transparent;
+ float: none;
+ clear: both;
+ overflow: hidden;
+ display: block;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options {
+ overflow: hidden;
+ padding: 0;
+ display: block;
+ clear: none;
+ float: right;
+ margin: 14px 10px 0 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li {
+ float: left;
+ clear: none;
+ margin: 0;
+ padding: 2px 10px;
+ border-right: 1px solid #dddddd;
+ color: #666666;
+ font-size: 0.9em;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a {
+ color: #aaaaaa;
+ text-decoration: none;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover {
+ text-decoration: underline;
+ color: black;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover,
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:active,
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a.active {
+ text-decoration: underline;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:first-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.first {
+ padding-left: 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:last-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.last {
+ padding-right: 0;
+ border-right: none;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options:first-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options.first {
+ padding-left: 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 {
+ color: #999999;
+ padding-left: 0;
+ display: block;
+ clear: none;
+ float: left;
+ font-family: "Droid Sans", sans-serif;
+ font-weight: bold;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
+ color: #999999;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover {
+ color: black;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation {
+ float: none;
+ clear: both;
+ overflow: hidden;
+ display: block;
+ margin: 0 0 10px;
+ padding: 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading {
+ float: none;
+ clear: both;
+ overflow: hidden;
+ display: block;
+ margin: 0;
+ padding: 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 {
+ display: block;
+ clear: none;
+ float: left;
+ width: auto;
+ margin: 0;
+ padding: 0;
+ line-height: 1.1em;
+ color: black;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path {
+ padding-left: 10px;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a {
+ color: black;
+ text-decoration: none;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover {
+ text-decoration: underline;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a {
+ text-transform: uppercase;
+ text-decoration: none;
+ color: white;
+ display: inline-block;
+ width: 50px;
+ font-size: 0.7em;
+ text-align: center;
+ padding: 7px 0 4px;
+ -moz-border-radius: 2px;
+ -webkit-border-radius: 2px;
+ -o-border-radius: 2px;
+ -ms-border-radius: 2px;
+ -khtml-border-radius: 2px;
+ border-radius: 2px;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span {
+ margin: 0;
+ padding: 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options {
+ overflow: hidden;
+ padding: 0;
+ display: block;
+ clear: none;
+ float: right;
+ margin: 6px 10px 0 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li {
+ float: left;
+ clear: none;
+ margin: 0;
+ padding: 2px 10px;
+ font-size: 0.9em;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a {
+ text-decoration: none;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li.access {
+ color: black;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content {
+ border-top: none;
+ padding: 10px;
+ -moz-border-radius-bottomleft: 6px;
+ -webkit-border-bottom-left-radius: 6px;
+ -o-border-bottom-left-radius: 6px;
+ -ms-border-bottom-left-radius: 6px;
+ -khtml-border-bottom-left-radius: 6px;
+ border-bottom-left-radius: 6px;
+ -moz-border-radius-bottomright: 6px;
+ -webkit-border-bottom-right-radius: 6px;
+ -o-border-bottom-right-radius: 6px;
+ -ms-border-bottom-right-radius: 6px;
+ -khtml-border-bottom-right-radius: 6px;
+ border-bottom-right-radius: 6px;
+ margin: 0 0 20px;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content h4 {
+ font-size: 1.1em;
+ margin: 0;
+ padding: 15px 0 5px;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header {
+ float: none;
+ clear: both;
+ overflow: hidden;
+ display: block;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header a {
+ padding: 4px 0 0 10px;
+ display: inline-block;
+ font-size: 0.9em;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit {
+ display: block;
+ clear: none;
+ float: left;
+ padding: 6px 8px;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header span.response_throbber {
+ background-image: url('../images/throbber.gif');
+ width: 128px;
+ height: 16px;
+ display: block;
+ clear: none;
+ float: right;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error {
+ outline: 2px solid black;
+ outline-color: #cc0000;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.response div.block pre {
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
+ padding: 10px;
+ font-size: 0.9em;
+ max-height: 400px;
+ overflow-y: auto;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading {
+ background-color: #f9f2e9;
+ border: 1px solid #f0e0ca;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.http_method a {
+ background-color: #c5862b;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li {
+ border-right: 1px solid #dddddd;
+ border-right-color: #f0e0ca;
+ color: #c5862b;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a {
+ color: #c5862b;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content {
+ background-color: #faf5ee;
+ border: 1px solid #f0e0ca;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 {
+ color: #c5862b;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header a {
+ color: #dcb67f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading {
+ background-color: #fcffcd;
+ border: 1px solid black;
+ border-color: #ffd20f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.http_method a {
+ text-transform: uppercase;
+ background-color: #ffd20f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li {
+ border-right: 1px solid #dddddd;
+ border-right-color: #ffd20f;
+ color: #ffd20f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a {
+ color: #ffd20f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content {
+ background-color: #fcffcd;
+ border: 1px solid black;
+ border-color: #ffd20f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content h4 {
+ color: #ffd20f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header a {
+ color: #6fc992;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading {
+ background-color: #f5e8e8;
+ border: 1px solid #e8c6c7;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.http_method a {
+ text-transform: uppercase;
+ background-color: #a41e22;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li {
+ border-right: 1px solid #dddddd;
+ border-right-color: #e8c6c7;
+ color: #a41e22;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a {
+ color: #a41e22;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
+ background-color: #f7eded;
+ border: 1px solid #e8c6c7;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content h4 {
+ color: #a41e22;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header a {
+ color: #c8787a;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading {
+ background-color: #e7f6ec;
+ border: 1px solid #c3e8d1;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.http_method a {
+ background-color: #10a54a;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li {
+ border-right: 1px solid #dddddd;
+ border-right-color: #c3e8d1;
+ color: #10a54a;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a {
+ color: #10a54a;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content {
+ background-color: #ebf7f0;
+ border: 1px solid #c3e8d1;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 {
+ color: #10a54a;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header a {
+ color: #6fc992;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading {
+ background-color: #FCE9E3;
+ border: 1px solid #F5D5C3;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.http_method a {
+ background-color: #D38042;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li {
+ border-right: 1px solid #dddddd;
+ border-right-color: #f0cecb;
+ color: #D38042;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a {
+ color: #D38042;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content {
+ background-color: #faf0ef;
+ border: 1px solid #f0cecb;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 {
+ color: #D38042;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header a {
+ color: #dcb67f;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading {
+ background-color: #e7f0f7;
+ border: 1px solid #c3d9ec;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.http_method a {
+ background-color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li {
+ border-right: 1px solid #dddddd;
+ border-right-color: #c3d9ec;
+ color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a {
+ color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content {
+ background-color: #ebf3f9;
+ border: 1px solid #c3d9ec;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 {
+ color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a {
+ color: #6fa5d2;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading {
+ background-color: #e7f0f7;
+ border: 1px solid #c3d9ec;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading h3 span.http_method a {
+ background-color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li {
+ border-right: 1px solid #dddddd;
+ border-right-color: #c3d9ec;
+ color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li a {
+ color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content {
+ background-color: #ebf3f9;
+ border: 1px solid #c3d9ec;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content h4 {
+ color: #0f6ab4;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content div.sandbox_header a {
+ color: #6fa5d2;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
+ border-top: none;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:last-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:last-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:last-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:last-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:last-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:last-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.last,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.last,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.last,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.last,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.last,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.last {
+ padding-right: 0;
+ border-right: none;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:hover,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:active,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a.active {
+ text-decoration: underline;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li:first-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li.first {
+ padding-left: 0;
+}
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations:first-child,
+.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations.first {
+ padding-left: 0;
+}
+.swagger-section .swagger-ui-wrap p#colophon {
+ margin: 0 15px 40px 15px;
+ padding: 10px 0;
+ font-size: 0.8em;
+ border-top: 1px solid #dddddd;
+ font-family: "Droid Sans", sans-serif;
+ color: #999999;
+ font-style: italic;
+}
+.swagger-section .swagger-ui-wrap p#colophon a {
+ text-decoration: none;
+ color: #547f00;
+}
+.swagger-section .swagger-ui-wrap h3 {
+ color: black;
+ font-size: 1.1em;
+ padding: 10px 0 10px 0;
+}
+.swagger-section .swagger-ui-wrap .markdown ol,
+.swagger-section .swagger-ui-wrap .markdown ul {
+ font-family: "Droid Sans", sans-serif;
+ margin: 5px 0 10px;
+ padding: 0 0 0 18px;
+ list-style-type: disc;
+}
+.swagger-section .swagger-ui-wrap form.form_box {
+ background-color: #ebf3f9;
+ border: 1px solid #c3d9ec;
+ padding: 10px;
+}
+.swagger-section .swagger-ui-wrap form.form_box label {
+ color: #0f6ab4 !important;
+}
+.swagger-section .swagger-ui-wrap form.form_box input[type=submit] {
+ display: block;
+ padding: 10px;
+}
+.swagger-section .swagger-ui-wrap form.form_box p.weak {
+ font-size: 0.8em;
+}
+.swagger-section .swagger-ui-wrap form.form_box p {
+ font-size: 0.9em;
+ padding: 0 0 15px;
+ color: #7e7b6d;
+}
+.swagger-section .swagger-ui-wrap form.form_box p a {
+ color: #646257;
+}
+.swagger-section .swagger-ui-wrap form.form_box p strong {
+ color: black;
+}
+.swagger-section .title {
+ font-style: bold;
+}
+.swagger-section .secondary_form {
+ display: none;
+}
+.swagger-section .main_image {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+.swagger-section .oauth_body {
+ margin-left: 100px;
+ margin-right: 100px;
+}
+.swagger-section .oauth_submit {
+ text-align: center;
+}
+.swagger-section .api-popup-dialog {
+ z-index: 10000;
+ position: absolute;
+ width: 500px;
+ background: #FFF;
+ padding: 20px;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ display: none;
+ font-size: 13px;
+ color: #777;
+}
+.swagger-section .api-popup-dialog .api-popup-title {
+ font-size: 24px;
+ padding: 10px 0;
+}
+.swagger-section .api-popup-dialog .api-popup-title {
+ font-size: 24px;
+ padding: 10px 0;
+}
+.swagger-section .api-popup-dialog p.error-msg {
+ padding-left: 5px;
+ padding-bottom: 5px;
+}
+.swagger-section .api-popup-dialog button.api-popup-authbtn {
+ height: 30px;
+}
+.swagger-section .api-popup-dialog button.api-popup-cancel {
+ height: 30px;
+}
+.swagger-section .api-popup-scopes {
+ padding: 10px 20px;
+}
+.swagger-section .api-popup-scopes li {
+ padding: 5px 0;
+ line-height: 20px;
+}
+.swagger-section .api-popup-scopes .api-scope-desc {
+ padding-left: 20px;
+ font-style: italic;
+}
+.swagger-section .api-popup-scopes li input {
+ position: relative;
+ top: 2px;
+}
+.swagger-section .api-popup-actions {
+ padding-top: 10px;
+}
+.swagger-section .access {
+ float: right;
+}
+.swagger-section .auth {
+ float: right;
+}
+.swagger-section #api_information_panel {
+ position: absolute;
+ background: #FFF;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ display: none;
+ font-size: 13px;
+ max-width: 300px;
+ line-height: 30px;
+ color: black;
+ padding: 5px;
+}
+.swagger-section #api_information_panel p .api-msg-enabled {
+ color: green;
+}
+.swagger-section #api_information_panel p .api-msg-disabled {
+ color: red;
+}
+.swagger-section .api-ic {
+ height: 18px;
+ vertical-align: middle;
+ display: inline-block;
+ background: url(../images/explorer_icons.png) no-repeat;
+}
+.swagger-section .ic-info {
+ background-position: 0 0;
+ width: 18px;
+ margin-top: -7px;
+ margin-left: 4px;
+}
+.swagger-section .ic-warning {
+ background-position: -60px 0;
+ width: 18px;
+ margin-top: -7px;
+ margin-left: 4px;
+}
+.swagger-section .ic-error {
+ background-position: -30px 0;
+ width: 18px;
+ margin-top: -7px;
+ margin-left: 4px;
+}
+.swagger-section .ic-off {
+ background-position: -90px 0;
+ width: 58px;
+ margin-top: -4px;
+ cursor: pointer;
+}
+.swagger-section .ic-on {
+ background-position: -160px 0;
+ width: 58px;
+ margin-top: -4px;
+ cursor: pointer;
+}
+.swagger-section #header {
+ background-color: #89bf04;
+ padding: 14px;
+}
+.swagger-section #header a#logo {
+ font-size: 1.5em;
+ font-weight: bold;
+ text-decoration: none;
+ background: transparent url(../images/logo_small.png) no-repeat left center;
+ padding: 20px 0 20px 40px;
+ color: white;
+}
+.swagger-section #header form#api_selector {
+ display: block;
+ clear: none;
+ float: right;
+}
+.swagger-section #header form#api_selector .input {
+ display: block;
+ clear: none;
+ float: left;
+ margin: 0 10px 0 0;
+}
+.swagger-section #header form#api_selector .input input#input_apiKey {
+ width: 200px;
+}
+.swagger-section #header form#api_selector .input input#input_baseUrl {
+ width: 400px;
+}
+.swagger-section #header form#api_selector .input a#explore {
+ display: block;
+ text-decoration: none;
+ font-weight: bold;
+ padding: 6px 8px;
+ font-size: 0.9em;
+ color: white;
+ background-color: #547f00;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ -o-border-radius: 4px;
+ -ms-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+}
+.swagger-section #header form#api_selector .input a#explore:hover {
+ background-color: #547f00;
+}
+.swagger-section #header form#api_selector .input input {
+ font-size: 0.9em;
+ padding: 3px;
+ margin: 0;
+}
+.swagger-section #content_message {
+ margin: 10px 15px;
+ font-style: italic;
+ color: #999999;
+}
+.swagger-section #message-bar {
+ min-height: 30px;
+ text-align: center;
+ padding-top: 10px;
+}
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/css/typography.css b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/typography.css
index d051d368..991427a6 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/css/typography.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/css/typography.css
@@ -1,41 +1,41 @@
-/**
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/* droid-sans-regular - latin */
-@font-face {
- font-family: 'Droid Sans';
- font-style: normal;
- font-weight: 400;
- src: url('../fonts/droid-sans-v6-latin-regular.eot'); /* IE9 Compat Modes */
- src: local('Droid Sans'), local('DroidSans'),
- url('../fonts/droid-sans-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('../fonts/droid-sans-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
- url('../fonts/droid-sans-v6-latin-regular.woff') format('woff'), /* Modern Browsers */
- url('../fonts/droid-sans-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
- url('../fonts/droid-sans-v6-latin-regular.svg#DroidSans') format('svg'); /* Legacy iOS */
-}
-/* droid-sans-700 - latin */
-@font-face {
- font-family: 'Droid Sans';
- font-style: normal;
- font-weight: 700;
- src: url('../fonts/droid-sans-v6-latin-700.eot'); /* IE9 Compat Modes */
- src: local('Droid Sans Bold'), local('DroidSans-Bold'),
- url('../fonts/droid-sans-v6-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('../fonts/droid-sans-v6-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
- url('../fonts/droid-sans-v6-latin-700.woff') format('woff'), /* Modern Browsers */
- url('../fonts/droid-sans-v6-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
- url('../fonts/droid-sans-v6-latin-700.svg#DroidSans') format('svg'); /* Legacy iOS */
-}
+/**
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* droid-sans-regular - latin */
+@font-face {
+ font-family: 'Droid Sans';
+ font-style: normal;
+ font-weight: 400;
+ src: url('../fonts/droid-sans-v6-latin-regular.eot'); /* IE9 Compat Modes */
+ src: local('Droid Sans'), local('DroidSans'),
+ url('../fonts/droid-sans-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
+ url('../fonts/droid-sans-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
+ url('../fonts/droid-sans-v6-latin-regular.woff') format('woff'), /* Modern Browsers */
+ url('../fonts/droid-sans-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
+ url('../fonts/droid-sans-v6-latin-regular.svg#DroidSans') format('svg'); /* Legacy iOS */
+}
+/* droid-sans-700 - latin */
+@font-face {
+ font-family: 'Droid Sans';
+ font-style: normal;
+ font-weight: 700;
+ src: url('../fonts/droid-sans-v6-latin-700.eot'); /* IE9 Compat Modes */
+ src: local('Droid Sans Bold'), local('DroidSans-Bold'),
+ url('../fonts/droid-sans-v6-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
+ url('../fonts/droid-sans-v6-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
+ url('../fonts/droid-sans-v6-latin-700.woff') format('woff'), /* Modern Browsers */
+ url('../fonts/droid-sans-v6-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
+ url('../fonts/droid-sans-v6-latin-700.svg#DroidSans') format('svg'); /* Legacy iOS */
+}
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot
index 2250b71a..2250b71a 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg
index a54bbbbf..a54bbbbf 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf
index 523cb92d..523cb92d 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff
index 67e3e25f..67e3e25f 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2
index 1e726a7c..1e726a7c 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot
index ac2698e8..ac2698e8 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg
index d9f2a214..d9f2a214 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf
index 76aede27..76aede27 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff
index abf19899..abf19899 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2
index 9f93f74c..9f93f74c 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/images/explorer_icons.png b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/explorer_icons.png
index ed9d2fff..ed9d2fff 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/images/explorer_icons.png
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/explorer_icons.png
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/images/logo_small.png b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/logo_small.png
index 5496a655..5496a655 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/images/logo_small.png
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/logo_small.png
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/images/pet_store_api.png b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/pet_store_api.png
index f9f9cd4a..f9f9cd4a 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/images/pet_store_api.png
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/pet_store_api.png
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/images/throbber.gif b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/throbber.gif
index 06393889..06393889 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/images/throbber.gif
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/throbber.gif
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/images/wordnik_api.png b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/wordnik_api.png
index dca4f145..dca4f145 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/images/wordnik_api.png
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/images/wordnik_api.png
Binary files differ
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/index.html b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/index.html
index 98204ec2..c8e06410 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/index.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/index.html
@@ -1,115 +1,115 @@
-<!--
-
- Copyright 2016 ZTE Corporation.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<!DOCTYPE html>
-<html>
-<head>
- <title>Swagger UI</title>
- <link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
- <link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
- <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
- <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
- <link href='css/screen.css' media='print' rel='stylesheet' type='text/css'/>
- <script type="text/javascript" src="lib/shred.bundle.js"></script>
- <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
- <script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
- <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
- <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
- <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
- <script src='lib/underscore-min.js' type='text/javascript'></script>
- <script src='lib/backbone-min.js' type='text/javascript'></script>
- <script src='lib/swagger-client.js' type='text/javascript'></script>
- <script src='swagger-ui.js' type='text/javascript'></script>
- <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
- <script src='lib/marked.js' type='text/javascript'></script>
-
- <!-- enabling this will enable oauth2 implicit scope support -->
- <script src='lib/swagger-oauth.js' type='text/javascript'></script>
- <script type="text/javascript">
- $(function () {
- var url = window.location.search.match(/url=([^&]+)/);
- if (url && url.length > 1) {
- url = decodeURIComponent(url[1]);
- } else {
- url = "/api/workflow-modeler/v1/swagger.json";
- }
- window.swaggerUi = new SwaggerUi({
- url: url,
- dom_id: "swagger-ui-container",
- supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
- onComplete: function(swaggerApi, swaggerUi){
- if(typeof initOAuth == "function") {
- /*
- initOAuth({
- clientId: "your-client-id",
- realm: "your-realms",
- appName: "your-app-name"
- });
- */
- }
- $('pre code').each(function(i, e) {
- hljs.highlightBlock(e)
- });
- },
- onFailure: function(data) {
- log("Unable to Load SwaggerUI");
- },
- docExpansion: "none",
- sorter : "alpha"
- });
-
- function addApiKeyAuthorization() {
- var key = $('#input_apiKey')[0].value;
- log("key: " + key);
- if(key && key.trim() != "") {
- log("added key " + key);
- window.authorizations.add("api_key", new ApiKeyAuthorization("api_key", key, "query"));
- }
- }
-
- $('#input_apiKey').change(function() {
- addApiKeyAuthorization();
- });
-
- // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
- /*
- var apiKey = "myApiKeyXXXX123456789";
- $('#input_apiKey').val(apiKey);
- addApiKeyAuthorization();
- */
-
- window.swaggerUi.load();
- });
- </script>
-</head>
-
-<body class="swagger-section">
-<div id='header'>
- <div class="swagger-ui-wrap">
- <a id="logo" >OPEN-O Catalog</a>
- <form id='api_selector'>
- <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
- <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
- <div class='input'><a id="explore" href="#">Explore</a></div>
- </form>
- </div>
-</div>
-
-<div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
-<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
-</body>
-</html>
+<!--
+
+ Copyright 2016 ZTE Corporation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Swagger UI</title>
+ <link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
+ <link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
+ <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
+ <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
+ <link href='css/screen.css' media='print' rel='stylesheet' type='text/css'/>
+ <script type="text/javascript" src="lib/shred.bundle.js"></script>
+ <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
+ <script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
+ <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
+ <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
+ <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
+ <script src='lib/underscore-min.js' type='text/javascript'></script>
+ <script src='lib/backbone-min.js' type='text/javascript'></script>
+ <script src='lib/swagger-client.js' type='text/javascript'></script>
+ <script src='swagger-ui.js' type='text/javascript'></script>
+ <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
+ <script src='lib/marked.js' type='text/javascript'></script>
+
+ <!-- enabling this will enable oauth2 implicit scope support -->
+ <script src='lib/swagger-oauth.js' type='text/javascript'></script>
+ <script type="text/javascript">
+ $(function () {
+ var url = window.location.search.match(/url=([^&]+)/);
+ if (url && url.length > 1) {
+ url = decodeURIComponent(url[1]);
+ } else {
+ url = "/api/workflow-modeler/v1/swagger.json";
+ }
+ window.swaggerUi = new SwaggerUi({
+ url: url,
+ dom_id: "swagger-ui-container",
+ supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
+ onComplete: function(swaggerApi, swaggerUi){
+ if(typeof initOAuth == "function") {
+ /*
+ initOAuth({
+ clientId: "your-client-id",
+ realm: "your-realms",
+ appName: "your-app-name"
+ });
+ */
+ }
+ $('pre code').each(function(i, e) {
+ hljs.highlightBlock(e)
+ });
+ },
+ onFailure: function(data) {
+ log("Unable to Load SwaggerUI");
+ },
+ docExpansion: "none",
+ sorter : "alpha"
+ });
+
+ function addApiKeyAuthorization() {
+ var key = $('#input_apiKey')[0].value;
+ log("key: " + key);
+ if(key && key.trim() != "") {
+ log("added key " + key);
+ window.authorizations.add("api_key", new ApiKeyAuthorization("api_key", key, "query"));
+ }
+ }
+
+ $('#input_apiKey').change(function() {
+ addApiKeyAuthorization();
+ });
+
+ // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
+ /*
+ var apiKey = "myApiKeyXXXX123456789";
+ $('#input_apiKey').val(apiKey);
+ addApiKeyAuthorization();
+ */
+
+ window.swaggerUi.load();
+ });
+ </script>
+</head>
+
+<body class="swagger-section">
+<div id='header'>
+ <div class="swagger-ui-wrap">
+ <a id="logo" >OPEN-O Catalog</a>
+ <form id='api_selector'>
+ <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
+ <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
+ <div class='input'><a id="explore" href="#">Explore</a></div>
+ </form>
+ </div>
+</div>
+
+<div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
+<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
+</body>
+</html>
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/backbone-min.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/backbone-min.js
index 3df984d6..c66d3a5a 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/backbone-min.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/backbone-min.js
@@ -1,30 +1,30 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Backbone.js 1.1.2
-
-(function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h<u;h++){t=o[h];if(a=this._events[t]){this._events[t]=s=[];if(e||r){for(l=0,f=a.length;l<f;l++){n=a[l];if(e&&e!==n.callback&&e!==n.callback._callback||r&&r!==n.context){s.push(n)}}}if(!s.length)delete this._events[t]}}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!c(this,"trigger",t,e))return this;var i=this._events[t];var r=this._events.all;if(i)f(i,e);if(r)f(r,arguments);return this},stopListening:function(t,e,r){var s=this._listeningTo;if(!s)return this;var n=!e&&!r;if(!r&&typeof e==="object")r=this;if(t)(s={})[t._listenId]=t;for(var a in s){t=s[a];t.off(e,r,this);if(n||i.isEmpty(t._events))delete this._listeningTo[a]}return this}};var l=/\s+/;var c=function(t,e,i,r){if(!i)return true;if(typeof i==="object"){for(var s in i){t[e].apply(t,[s,i[s]].concat(r))}return false}if(l.test(i)){var n=i.split(l);for(var a=0,o=n.length;a<o;a++){t[e].apply(t,[n[a]].concat(r))}return false}return true};var f=function(t,e){var i,r=-1,s=t.length,n=e[0],a=e[1],o=e[2];switch(e.length){case 0:while(++r<s)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r<s)(i=t[r]).callback.call(i.ctx,n);return;case 2:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a);return;case 3:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a,o);return;default:while(++r<s)(i=t[r]).callback.apply(i.ctx,e);return}};var d={listenTo:"on",listenToOnce:"once"};i.each(d,function(t,e){u[e]=function(e,r,s){var n=this._listeningTo||(this._listeningTo={});var a=e._listenId||(e._listenId=i.uniqueId("l"));n[a]=e;if(!s&&typeof r==="object")s=this;e[t](r,s,this);return this}});u.bind=u.on;u.unbind=u.off;i.extend(e,u);var p=e.Model=function(t,e){var r=t||{};e||(e={});this.cid=i.uniqueId("c");this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)r=this.parse(r,e)||{};r=i.defaults({},r,i.result(this,"defaults"));this.set(r,e);this.changed={};this.initialize.apply(this,arguments)};i.extend(p.prototype,u,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return this.get(t)!=null},set:function(t,e,r){var s,n,a,o,h,u,l,c;if(t==null)return this;if(typeof t==="object"){n=t;r=e}else{(n={})[t]=e}r||(r={});if(!this._validate(n,r))return false;a=r.unset;h=r.silent;o=[];u=this._changing;this._changing=true;if(!u){this._previousAttributes=i.clone(this.attributes);this.changed={}}c=this.attributes,l=this._previousAttributes;if(this.idAttribute in n)this.id=n[this.idAttribute];for(s in n){e=n[s];if(!i.isEqual(c[s],e))o.push(s);if(!i.isEqual(l[s],e)){this.changed[s]=e}else{delete this.changed[s]}a?delete c[s]:c[s]=e}if(!h){if(o.length)this._pending=r;for(var f=0,d=o.length;f<d;f++){this.trigger("change:"+o[f],this,c[o[f]],r)}}if(u)return this;if(!h){while(this._pending){r=this._pending;this._pending=false;this.trigger("change",this,r)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:true}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,i.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!i.isEmpty(this.changed);return i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):false;var e,r=false;var s=this._changing?this._previousAttributes:this.attributes;for(var n in t){if(i.isEqual(s[n],e=t[n]))continue;(r||(r={}))[n]=e}return r},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=t?i.clone(t):{};if(t.parse===void 0)t.parse=true;var e=this;var r=t.success;t.success=function(i){if(!e.set(e.parse(i,t),t))return false;if(r)r(e,i,t);e.trigger("sync",e,i,t)};q(this,t);return this.sync("read",this,t)},save:function(t,e,r){var s,n,a,o=this.attributes;if(t==null||typeof t==="object"){s=t;r=e}else{(s={})[t]=e}r=i.extend({validate:true},r);if(s&&!r.wait){if(!this.set(s,r))return false}else{if(!this._validate(s,r))return false}if(s&&r.wait){this.attributes=i.extend({},o,s)}if(r.parse===void 0)r.parse=true;var h=this;var u=r.success;r.success=function(t){h.attributes=o;var e=h.parse(t,r);if(r.wait)e=i.extend(s||{},e);if(i.isObject(e)&&!h.set(e,r)){return false}if(u)u(h,t,r);h.trigger("sync",h,t,r)};q(this,r);n=this.isNew()?"create":r.patch?"patch":"update";if(n==="patch")r.attrs=s;a=this.sync(n,this,r);if(s&&r.wait)this.attributes=o;return a},destroy:function(t){t=t?i.clone(t):{};var e=this;var r=t.success;var s=function(){e.trigger("destroy",e,e.collection,t)};t.success=function(i){if(t.wait||e.isNew())s();if(r)r(e,i,t);if(!e.isNew())e.trigger("sync",e,i,t)};if(this.isNew()){t.success();return false}q(this,t);var n=this.sync("delete",this,t);if(!t.wait)s();return n},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||M();if(this.isNew())return t;return t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=i.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;if(!r)return true;this.trigger("invalid",this,r,i.extend(e,{validationError:r}));return false}});var v=["keys","values","pairs","invert","pick","omit"];i.each(v,function(t){p.prototype[t]=function(){var e=o.call(arguments);e.unshift(this.attributes);return i[t].apply(i,e)}});var g=e.Collection=function(t,e){e||(e={});if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,i.extend({silent:true},e))};var m={add:true,remove:true,merge:true};var y={add:true,remove:false};i.extend(g.prototype,u,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:false},e,y))},remove:function(t,e){var r=!i.isArray(t);t=r?[t]:i.clone(t);e||(e={});var s,n,a,o;for(s=0,n=t.length;s<n;s++){o=t[s]=this.get(t[s]);if(!o)continue;delete this._byId[o.id];delete this._byId[o.cid];a=this.indexOf(o);this.models.splice(a,1);this.length--;if(!e.silent){e.index=a;o.trigger("remove",o,this,e)}this._removeReference(o,e)}return r?t[0]:t},set:function(t,e){e=i.defaults({},e,m);if(e.parse)t=this.parse(t,e);var r=!i.isArray(t);t=r?t?[t]:[]:i.clone(t);var s,n,a,o,h,u,l;var c=e.at;var f=this.model;var d=this.comparator&&c==null&&e.sort!==false;var v=i.isString(this.comparator)?this.comparator:null;var g=[],y=[],_={};var b=e.add,w=e.merge,x=e.remove;var E=!d&&b&&x?[]:false;for(s=0,n=t.length;s<n;s++){h=t[s]||{};if(h instanceof p){a=o=h}else{a=h[f.prototype.idAttribute||"id"]}if(u=this.get(a)){if(x)_[u.cid]=true;if(w){h=h===o?o.attributes:h;if(e.parse)h=u.parse(h,e);u.set(h,e);if(d&&!l&&u.hasChanged(v))l=true}t[s]=u}else if(b){o=t[s]=this._prepareModel(h,e);if(!o)continue;g.push(o);this._addReference(o,e)}o=u||o;if(E&&(o.isNew()||!_[o.id]))E.push(o);_[o.id]=true}if(x){for(s=0,n=this.length;s<n;++s){if(!_[(o=this.models[s]).cid])y.push(o)}if(y.length)this.remove(y,e)}if(g.length||E&&E.length){if(d)l=true;this.length+=g.length;if(c!=null){for(s=0,n=g.length;s<n;s++){this.models.splice(c+s,0,g[s])}}else{if(E)this.models.length=0;var k=E||g;for(s=0,n=k.length;s<n;s++){this.models.push(k[s])}}}if(l)this.sort({silent:true});if(!e.silent){for(s=0,n=g.length;s<n;s++){(o=g[s]).trigger("add",o,this,e)}if(l||E&&E.length)this.trigger("sort",this,e)}return r?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,s=this.models.length;r<s;r++){this._removeReference(this.models[r],e)}e.previousModels=this.models;this._reset();t=this.add(t,i.extend({silent:true},e));if(!e.silent)this.trigger("reset",this,e);return t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);this.remove(e,t);return e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);this.remove(e,t);return e},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){if(i.isEmpty(t))return e?void 0:[];return this[e?"find":"filter"](function(e){for(var i in t){if(t[i]!==e.get(i))return false}return true})},findWhere:function(t){return this.where(t,true)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");t||(t={});if(i.isString(this.comparator)||this.comparator.length===1){this.models=this.sortBy(this.comparator,this)}else{this.models.sort(i.bind(this.comparator,this))}if(!t.silent)this.trigger("sort",this,t);return this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){t=t?i.clone(t):{};if(t.parse===void 0)t.parse=true;var e=t.success;var r=this;t.success=function(i){var s=t.reset?"reset":"set";r[s](i,t);if(e)e(r,i,t);r.trigger("sync",r,i,t)};q(this,t);return this.sync("read",this,t)},create:function(t,e){e=e?i.clone(e):{};if(!(t=this._prepareModel(t,e)))return false;if(!e.wait)this.add(t,e);var r=this;var s=e.success;e.success=function(t,i){if(e.wait)r.add(t,e);if(s)s(t,i,e)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t;e=e?i.clone(e):{};e.collection=this;var r=new this.model(t,e);if(!r.validationError)return r;this.trigger("invalid",this,r.validationError,e);return false},_addReference:function(t,e){this._byId[t.cid]=t;if(t.id!=null)this._byId[t.id]=t;if(!t.collection)t.collection=this;t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){if(this===t.collection)delete t.collection;t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if((t==="add"||t==="remove")&&i!==this)return;if(t==="destroy")this.remove(e,r);if(e&&t==="change:"+e.idAttribute){delete this._byId[e.previous(e.idAttribute)];if(e.id!=null)this._byId[e.id]=e}this.trigger.apply(this,arguments)}});var _=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];i.each(_,function(t){g.prototype[t]=function(){var e=o.call(arguments);e.unshift(this.models);return i[t].apply(i,e)}});var b=["groupBy","countBy","sortBy","indexBy"];i.each(b,function(t){g.prototype[t]=function(e,r){var s=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,s,r)}});var w=e.View=function(t){this.cid=i.uniqueId("view");t||(t={});i.extend(this,i.pick(t,E));this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()};var x=/^(\S+)\s*(.*)$/;var E=["model","collection","el","id","attributes","className","tagName","events"];i.extend(w.prototype,u,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(t,i){if(this.$el)this.undelegateEvents();this.$el=t instanceof e.$?t:e.$(t);this.el=this.$el[0];if(i!==false)this.delegateEvents();return this},delegateEvents:function(t){if(!(t||(t=i.result(this,"events"))))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(!i.isFunction(r))r=this[t[e]];if(!r)continue;var s=e.match(x);var n=s[1],a=s[2];r=i.bind(r,this);n+=".delegateEvents"+this.cid;if(a===""){this.$el.on(n,r)}else{this.$el.on(n,a,r)}}return this},undelegateEvents:function(){this.$el.off(".delegateEvents"+this.cid);return this},_ensureElement:function(){if(!this.el){var t=i.extend({},i.result(this,"attributes"));if(this.id)t.id=i.result(this,"id");if(this.className)t["class"]=i.result(this,"className");var r=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow;this.navigate(r)}if(this._hasPushState){e.$(window).on("popstate",this.checkUrl)}else if(this._wantsHashChange&&"onhashchange"in window&&!n){e.$(window).on("hashchange",this.checkUrl)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}this.fragment=r;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){this.fragment=this.getFragment(null,true);this.location.replace(this.root+"#"+this.fragment);return true}else if(this._hasPushState&&this.atRoot()&&o.hash){this.fragment=this.getHash().replace(R,"");this.history.replaceState({},document.title,this.root+this.fragment)}}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl);if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getFragment(this.getHash(this.iframe))}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){t=this.fragment=this.getFragment(t);return i.any(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};var i=this.root+(t=this.getFragment(t||""));t=t.replace(j,"");if(this.fragment===t)return;this.fragment=t;if(t===""&&i!=="/")i=i.slice(0,-1);if(this._hasPushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,i)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getFragment(this.getHash(this.iframe))){if(!e.replace)this.iframe.document.open().close();this._updateHash(this.iframe.location,t,e.replace)}}else{return this.location.assign(i)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else{t.hash="#"+e}}});e.history=new N;var U=function(t,e){var r=this;var s;if(t&&i.has(t,"constructor")){s=t.constructor}else{s=function(){return r.apply(this,arguments)}}i.extend(s,r,e);var n=function(){this.constructor=s};n.prototype=r.prototype;s.prototype=new n;if(t)i.extend(s.prototype,t);s.__super__=r.prototype;return s};p.extend=g.extend=$.extend=w.extend=N.extend=U;var M=function(){throw new Error('A "url" property or function must be specified')};var q=function(t,e){var i=e.error;e.error=function(r){if(i)i(t,r,e);t.trigger("error",t,r,e)}};return e});
-
-// From http://stackoverflow.com/a/19431552
-// Compatibility override - Backbone 1.1 got rid of the 'options' binding
-// automatically to views in the constructor - we need to keep that.
-Backbone.View = (function(View) {
- return View.extend({
- constructor: function(options) {
- this.options = options || {};
- View.apply(this, arguments);
- }
- });
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Backbone.js 1.1.2
+
+(function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h<u;h++){t=o[h];if(a=this._events[t]){this._events[t]=s=[];if(e||r){for(l=0,f=a.length;l<f;l++){n=a[l];if(e&&e!==n.callback&&e!==n.callback._callback||r&&r!==n.context){s.push(n)}}}if(!s.length)delete this._events[t]}}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!c(this,"trigger",t,e))return this;var i=this._events[t];var r=this._events.all;if(i)f(i,e);if(r)f(r,arguments);return this},stopListening:function(t,e,r){var s=this._listeningTo;if(!s)return this;var n=!e&&!r;if(!r&&typeof e==="object")r=this;if(t)(s={})[t._listenId]=t;for(var a in s){t=s[a];t.off(e,r,this);if(n||i.isEmpty(t._events))delete this._listeningTo[a]}return this}};var l=/\s+/;var c=function(t,e,i,r){if(!i)return true;if(typeof i==="object"){for(var s in i){t[e].apply(t,[s,i[s]].concat(r))}return false}if(l.test(i)){var n=i.split(l);for(var a=0,o=n.length;a<o;a++){t[e].apply(t,[n[a]].concat(r))}return false}return true};var f=function(t,e){var i,r=-1,s=t.length,n=e[0],a=e[1],o=e[2];switch(e.length){case 0:while(++r<s)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r<s)(i=t[r]).callback.call(i.ctx,n);return;case 2:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a);return;case 3:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a,o);return;default:while(++r<s)(i=t[r]).callback.apply(i.ctx,e);return}};var d={listenTo:"on",listenToOnce:"once"};i.each(d,function(t,e){u[e]=function(e,r,s){var n=this._listeningTo||(this._listeningTo={});var a=e._listenId||(e._listenId=i.uniqueId("l"));n[a]=e;if(!s&&typeof r==="object")s=this;e[t](r,s,this);return this}});u.bind=u.on;u.unbind=u.off;i.extend(e,u);var p=e.Model=function(t,e){var r=t||{};e||(e={});this.cid=i.uniqueId("c");this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)r=this.parse(r,e)||{};r=i.defaults({},r,i.result(this,"defaults"));this.set(r,e);this.changed={};this.initialize.apply(this,arguments)};i.extend(p.prototype,u,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return this.get(t)!=null},set:function(t,e,r){var s,n,a,o,h,u,l,c;if(t==null)return this;if(typeof t==="object"){n=t;r=e}else{(n={})[t]=e}r||(r={});if(!this._validate(n,r))return false;a=r.unset;h=r.silent;o=[];u=this._changing;this._changing=true;if(!u){this._previousAttributes=i.clone(this.attributes);this.changed={}}c=this.attributes,l=this._previousAttributes;if(this.idAttribute in n)this.id=n[this.idAttribute];for(s in n){e=n[s];if(!i.isEqual(c[s],e))o.push(s);if(!i.isEqual(l[s],e)){this.changed[s]=e}else{delete this.changed[s]}a?delete c[s]:c[s]=e}if(!h){if(o.length)this._pending=r;for(var f=0,d=o.length;f<d;f++){this.trigger("change:"+o[f],this,c[o[f]],r)}}if(u)return this;if(!h){while(this._pending){r=this._pending;this._pending=false;this.trigger("change",this,r)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:true}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,i.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!i.isEmpty(this.changed);return i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):false;var e,r=false;var s=this._changing?this._previousAttributes:this.attributes;for(var n in t){if(i.isEqual(s[n],e=t[n]))continue;(r||(r={}))[n]=e}return r},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=t?i.clone(t):{};if(t.parse===void 0)t.parse=true;var e=this;var r=t.success;t.success=function(i){if(!e.set(e.parse(i,t),t))return false;if(r)r(e,i,t);e.trigger("sync",e,i,t)};q(this,t);return this.sync("read",this,t)},save:function(t,e,r){var s,n,a,o=this.attributes;if(t==null||typeof t==="object"){s=t;r=e}else{(s={})[t]=e}r=i.extend({validate:true},r);if(s&&!r.wait){if(!this.set(s,r))return false}else{if(!this._validate(s,r))return false}if(s&&r.wait){this.attributes=i.extend({},o,s)}if(r.parse===void 0)r.parse=true;var h=this;var u=r.success;r.success=function(t){h.attributes=o;var e=h.parse(t,r);if(r.wait)e=i.extend(s||{},e);if(i.isObject(e)&&!h.set(e,r)){return false}if(u)u(h,t,r);h.trigger("sync",h,t,r)};q(this,r);n=this.isNew()?"create":r.patch?"patch":"update";if(n==="patch")r.attrs=s;a=this.sync(n,this,r);if(s&&r.wait)this.attributes=o;return a},destroy:function(t){t=t?i.clone(t):{};var e=this;var r=t.success;var s=function(){e.trigger("destroy",e,e.collection,t)};t.success=function(i){if(t.wait||e.isNew())s();if(r)r(e,i,t);if(!e.isNew())e.trigger("sync",e,i,t)};if(this.isNew()){t.success();return false}q(this,t);var n=this.sync("delete",this,t);if(!t.wait)s();return n},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||M();if(this.isNew())return t;return t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=i.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;if(!r)return true;this.trigger("invalid",this,r,i.extend(e,{validationError:r}));return false}});var v=["keys","values","pairs","invert","pick","omit"];i.each(v,function(t){p.prototype[t]=function(){var e=o.call(arguments);e.unshift(this.attributes);return i[t].apply(i,e)}});var g=e.Collection=function(t,e){e||(e={});if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,i.extend({silent:true},e))};var m={add:true,remove:true,merge:true};var y={add:true,remove:false};i.extend(g.prototype,u,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:false},e,y))},remove:function(t,e){var r=!i.isArray(t);t=r?[t]:i.clone(t);e||(e={});var s,n,a,o;for(s=0,n=t.length;s<n;s++){o=t[s]=this.get(t[s]);if(!o)continue;delete this._byId[o.id];delete this._byId[o.cid];a=this.indexOf(o);this.models.splice(a,1);this.length--;if(!e.silent){e.index=a;o.trigger("remove",o,this,e)}this._removeReference(o,e)}return r?t[0]:t},set:function(t,e){e=i.defaults({},e,m);if(e.parse)t=this.parse(t,e);var r=!i.isArray(t);t=r?t?[t]:[]:i.clone(t);var s,n,a,o,h,u,l;var c=e.at;var f=this.model;var d=this.comparator&&c==null&&e.sort!==false;var v=i.isString(this.comparator)?this.comparator:null;var g=[],y=[],_={};var b=e.add,w=e.merge,x=e.remove;var E=!d&&b&&x?[]:false;for(s=0,n=t.length;s<n;s++){h=t[s]||{};if(h instanceof p){a=o=h}else{a=h[f.prototype.idAttribute||"id"]}if(u=this.get(a)){if(x)_[u.cid]=true;if(w){h=h===o?o.attributes:h;if(e.parse)h=u.parse(h,e);u.set(h,e);if(d&&!l&&u.hasChanged(v))l=true}t[s]=u}else if(b){o=t[s]=this._prepareModel(h,e);if(!o)continue;g.push(o);this._addReference(o,e)}o=u||o;if(E&&(o.isNew()||!_[o.id]))E.push(o);_[o.id]=true}if(x){for(s=0,n=this.length;s<n;++s){if(!_[(o=this.models[s]).cid])y.push(o)}if(y.length)this.remove(y,e)}if(g.length||E&&E.length){if(d)l=true;this.length+=g.length;if(c!=null){for(s=0,n=g.length;s<n;s++){this.models.splice(c+s,0,g[s])}}else{if(E)this.models.length=0;var k=E||g;for(s=0,n=k.length;s<n;s++){this.models.push(k[s])}}}if(l)this.sort({silent:true});if(!e.silent){for(s=0,n=g.length;s<n;s++){(o=g[s]).trigger("add",o,this,e)}if(l||E&&E.length)this.trigger("sort",this,e)}return r?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,s=this.models.length;r<s;r++){this._removeReference(this.models[r],e)}e.previousModels=this.models;this._reset();t=this.add(t,i.extend({silent:true},e));if(!e.silent)this.trigger("reset",this,e);return t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);this.remove(e,t);return e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);this.remove(e,t);return e},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){if(i.isEmpty(t))return e?void 0:[];return this[e?"find":"filter"](function(e){for(var i in t){if(t[i]!==e.get(i))return false}return true})},findWhere:function(t){return this.where(t,true)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");t||(t={});if(i.isString(this.comparator)||this.comparator.length===1){this.models=this.sortBy(this.comparator,this)}else{this.models.sort(i.bind(this.comparator,this))}if(!t.silent)this.trigger("sort",this,t);return this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){t=t?i.clone(t):{};if(t.parse===void 0)t.parse=true;var e=t.success;var r=this;t.success=function(i){var s=t.reset?"reset":"set";r[s](i,t);if(e)e(r,i,t);r.trigger("sync",r,i,t)};q(this,t);return this.sync("read",this,t)},create:function(t,e){e=e?i.clone(e):{};if(!(t=this._prepareModel(t,e)))return false;if(!e.wait)this.add(t,e);var r=this;var s=e.success;e.success=function(t,i){if(e.wait)r.add(t,e);if(s)s(t,i,e)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t;e=e?i.clone(e):{};e.collection=this;var r=new this.model(t,e);if(!r.validationError)return r;this.trigger("invalid",this,r.validationError,e);return false},_addReference:function(t,e){this._byId[t.cid]=t;if(t.id!=null)this._byId[t.id]=t;if(!t.collection)t.collection=this;t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){if(this===t.collection)delete t.collection;t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if((t==="add"||t==="remove")&&i!==this)return;if(t==="destroy")this.remove(e,r);if(e&&t==="change:"+e.idAttribute){delete this._byId[e.previous(e.idAttribute)];if(e.id!=null)this._byId[e.id]=e}this.trigger.apply(this,arguments)}});var _=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];i.each(_,function(t){g.prototype[t]=function(){var e=o.call(arguments);e.unshift(this.models);return i[t].apply(i,e)}});var b=["groupBy","countBy","sortBy","indexBy"];i.each(b,function(t){g.prototype[t]=function(e,r){var s=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,s,r)}});var w=e.View=function(t){this.cid=i.uniqueId("view");t||(t={});i.extend(this,i.pick(t,E));this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()};var x=/^(\S+)\s*(.*)$/;var E=["model","collection","el","id","attributes","className","tagName","events"];i.extend(w.prototype,u,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(t,i){if(this.$el)this.undelegateEvents();this.$el=t instanceof e.$?t:e.$(t);this.el=this.$el[0];if(i!==false)this.delegateEvents();return this},delegateEvents:function(t){if(!(t||(t=i.result(this,"events"))))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(!i.isFunction(r))r=this[t[e]];if(!r)continue;var s=e.match(x);var n=s[1],a=s[2];r=i.bind(r,this);n+=".delegateEvents"+this.cid;if(a===""){this.$el.on(n,r)}else{this.$el.on(n,a,r)}}return this},undelegateEvents:function(){this.$el.off(".delegateEvents"+this.cid);return this},_ensureElement:function(){if(!this.el){var t=i.extend({},i.result(this,"attributes"));if(this.id)t.id=i.result(this,"id");if(this.className)t["class"]=i.result(this,"className");var r=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow;this.navigate(r)}if(this._hasPushState){e.$(window).on("popstate",this.checkUrl)}else if(this._wantsHashChange&&"onhashchange"in window&&!n){e.$(window).on("hashchange",this.checkUrl)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}this.fragment=r;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){this.fragment=this.getFragment(null,true);this.location.replace(this.root+"#"+this.fragment);return true}else if(this._hasPushState&&this.atRoot()&&o.hash){this.fragment=this.getHash().replace(R,"");this.history.replaceState({},document.title,this.root+this.fragment)}}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl);if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getFragment(this.getHash(this.iframe))}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){t=this.fragment=this.getFragment(t);return i.any(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};var i=this.root+(t=this.getFragment(t||""));t=t.replace(j,"");if(this.fragment===t)return;this.fragment=t;if(t===""&&i!=="/")i=i.slice(0,-1);if(this._hasPushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,i)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getFragment(this.getHash(this.iframe))){if(!e.replace)this.iframe.document.open().close();this._updateHash(this.iframe.location,t,e.replace)}}else{return this.location.assign(i)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else{t.hash="#"+e}}});e.history=new N;var U=function(t,e){var r=this;var s;if(t&&i.has(t,"constructor")){s=t.constructor}else{s=function(){return r.apply(this,arguments)}}i.extend(s,r,e);var n=function(){this.constructor=s};n.prototype=r.prototype;s.prototype=new n;if(t)i.extend(s.prototype,t);s.__super__=r.prototype;return s};p.extend=g.extend=$.extend=w.extend=N.extend=U;var M=function(){throw new Error('A "url" property or function must be specified')};var q=function(t,e){var i=e.error;e.error=function(r){if(i)i(t,r,e);t.trigger("error",t,r,e)}};return e});
+
+// From http://stackoverflow.com/a/19431552
+// Compatibility override - Backbone 1.1 got rid of the 'options' binding
+// automatically to views in the constructor - we need to keep that.
+Backbone.View = (function(View) {
+ return View.extend({
+ constructor: function(options) {
+ this.options = options || {};
+ View.apply(this, arguments);
+ }
+ });
})(Backbone.View); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/handlebars-2.0.0.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/handlebars-2.0.0.js
index 8004191c..743f04b2 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/handlebars-2.0.0.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/handlebars-2.0.0.js
@@ -1,43 +1,43 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*!
-
- handlebars v2.0.0
-
-Copyright (C) 2011-2014 by Yehuda Katz
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-@license
-*/
-!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.Handlebars=a.Handlebars||b()}(this,function(){var a=function(){"use strict";function a(a){this.string=a}var b;return a.prototype.toString=function(){return""+this.string},b=a}(),b=function(a){"use strict";function b(a){return i[a]}function c(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}function d(a){return a instanceof h?a.toString():null==a?"":a?(a=""+a,k.test(a)?a.replace(j,b):a):a+""}function e(a){return a||0===a?n(a)&&0===a.length?!0:!1:!0}function f(a,b){return(a?a+".":"")+b}var g={},h=a,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=/[&<>"'`]/g,k=/[&<>"'`]/;g.extend=c;var l=Object.prototype.toString;g.toString=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object Function]"===l.call(a)});var m;g.isFunction=m;var n=Array.isArray||function(a){return a&&"object"==typeof a?"[object Array]"===l.call(a):!1};return g.isArray=n,g.escapeExpression=d,g.isEmpty=e,g.appendContextPath=f,g}(a),c=function(){"use strict";function a(a,b){var d;b&&b.firstLine&&(d=b.firstLine,a+=" - "+d+":"+b.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;f<c.length;f++)this[c[f]]=e[c[f]];d&&(this.lineNumber=d,this.column=b.firstColumn)}var b,c=["description","fileName","lineNumber","message","name","number","stack"];return a.prototype=new Error,b=a}(),d=function(a,b){"use strict";function c(a,b){this.helpers=a||{},this.partials=b||{},d(this)}function d(a){a.registerHelper("helperMissing",function(){if(1===arguments.length)return void 0;throw new g("Missing helper: '"+arguments[arguments.length-1].name+"'")}),a.registerHelper("blockHelperMissing",function(b,c){var d=c.inverse,e=c.fn;if(b===!0)return e(this);if(b===!1||null==b)return d(this);if(k(b))return b.length>0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var g=q(c.data);g.contextPath=f.appendContextPath(c.data.contextPath,c.name),c={data:g}}return e(b,c)}),a.registerHelper("each",function(a,b){if(!b)throw new g("Must pass iterator to #each");var c,d,e=b.fn,h=b.inverse,i=0,j="";if(b.data&&b.ids&&(d=f.appendContextPath(b.data.contextPath,b.ids[0])+"."),l(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&"object"==typeof a)if(k(a))for(var m=a.length;m>i;i++)c&&(c.index=i,c.first=0===i,c.last=i===a.length-1,d&&(c.contextPath=d+i)),j+=e(a[i],{data:c});else for(var n in a)a.hasOwnProperty(n)&&(c&&(c.key=n,c.index=i,c.first=0===i,d&&(c.contextPath=d+n)),j+=e(a[n],{data:c}),i++);return 0===i&&(j=h(this)),j}),a.registerHelper("if",function(a,b){return l(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||f.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper("with",function(a,b){l(a)&&(a=a.call(this));var c=b.fn;if(f.isEmpty(a))return b.inverse(this);if(b.data&&b.ids){var d=q(b.data);d.contextPath=f.appendContextPath(b.data.contextPath,b.ids[0]),b={data:d}}return c(a,b)}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)}),a.registerHelper("lookup",function(a,b){return a&&a[b]})}var e={},f=a,g=b,h="2.0.0";e.VERSION=h;var i=6;e.COMPILER_REVISION=i;var j={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};e.REVISION_CHANGES=j;var k=f.isArray,l=f.isFunction,m=f.toString,n="[object Object]";e.HandlebarsEnvironment=c,c.prototype={constructor:c,logger:o,log:p,registerHelper:function(a,b){if(m.call(a)===n){if(b)throw new g("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){m.call(a)===n?f.extend(this.partials,a):this.partials[a]=b},unregisterPartial:function(a){delete this.partials[a]}};var o={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(o.level<=a){var c=o.methodMap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};e.logger=o;var p=o.log;e.log=p;var q=function(a){var b=f.extend({},a);return b._parent=a,b};return e.createFrame=q,e}(b,c),e=function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=m;if(b!==c){if(c>b){var d=n[c],e=n[b];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function e(a,b){if(!b)throw new l("No environment passed to template");if(!a||!a.main)throw new l("Unknown template object: "+typeof a);b.VM.checkRevision(a.compiler);var c=function(c,d,e,f,g,h,i,j,m){g&&(f=k.extend({},f,g));var n=b.VM.invokePartial.call(this,c,e,f,h,i,j,m);if(null==n&&b.compile){var o={helpers:h,partials:i,data:j,depths:m};i[e]=b.compile(c,{data:void 0!==j,compat:a.compat},b),n=i[e](f,o)}if(null!=n){if(d){for(var p=n.split("\n"),q=0,r=p.length;r>q&&(p[q]||q+1!==r);q++)p[q]=d+p[q];n=p.join("\n")}return n}throw new l("The partial "+e+" could not be compiled when running in runtime-only mode")},d={lookup:function(a,b){for(var c=a.length,d=0;c>d;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeExpression:k.escapeExpression,invokePartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b,c){var d=this.programs[a],e=this.fn(a);return b||c?d=f(this,a,e,b,c):d||(d=this.programs[a]=f(this,a,e)),d},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=k.extend({},b,a)),c},noop:b.VM.noop,compilerInfo:a.compiler},e=function(b,c){c=c||{};var f=c.data;e._setup(c),!c.partial&&a.useData&&(f=i(b,f));var g;return a.useDepths&&(g=c.depths?[b].concat(c.depths):[b]),a.main.call(d,b,d.helpers,d.partials,f,g)};return e.isTop=!0,e._setup=function(c){c.partial?(d.helpers=c.helpers,d.partials=c.partials):(d.helpers=d.merge(c.helpers,b.helpers),a.usePartial&&(d.partials=d.merge(c.partials,b.partials)))},e._child=function(b,c,e){if(a.useDepths&&!e)throw new l("must pass parent depths");return f(d,b,a[b],c,e)},e}function f(a,b,c,d,e){var f=function(b,f){return f=f||{},c.call(a,b,a.helpers,a.partials,f.data||d,e&&[b].concat(e))};return f.program=b,f.depth=e?e.length:0,f}function g(a,b,c,d,e,f,g){var h={partial:!0,helpers:d,partials:e,data:f,depths:g};if(void 0===a)throw new l("The partial "+b+" could not be found");return a instanceof Function?a(c,h):void 0}function h(){return""}function i(a,b){return b&&"root"in b||(b=b?o(b):{},b.root=a),b}var j={},k=a,l=b,m=c.COMPILER_REVISION,n=c.REVISION_CHANGES,o=c.createFrame;return j.checkRevision=d,j.template=e,j.program=f,j.invokePartial=g,j.noop=h,j}(b,c,d),f=function(a,b,c,d,e){"use strict";var f,g=a,h=b,i=c,j=d,k=e,l=function(){var a=new g.HandlebarsEnvironment;return j.extend(a,g),a.SafeString=h,a.Exception=i,a.Utils=j,a.escapeExpression=j.escapeExpression,a.VM=k,a.template=function(b){return k.template(b,a)},a},m=l();return m.create=l,m["default"]=m,f=m}(d,a,c,b,e),g=function(a){"use strict";function b(a){a=a||{},this.firstLine=a.first_line,this.firstColumn=a.first_column,this.lastColumn=a.last_column,this.lastLine=a.last_line}var c,d=a,e={ProgramNode:function(a,c,d){b.call(this,d),this.type="program",this.statements=a,this.strip=c},MustacheNode:function(a,c,d,f,g){if(b.call(this,g),this.type="mustache",this.strip=f,null!=d&&d.charAt){var h=d.charAt(3)||d.charAt(2);this.escaped="{"!==h&&"&"!==h}else this.escaped=!!d;this.sexpr=a instanceof e.SexprNode?a:new e.SexprNode(a,c),this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(a,c,d){b.call(this,d),this.type="sexpr",this.hash=c;var e=this.id=a[0],f=this.params=a.slice(1);this.isHelper=!(!f.length&&!c),this.eligibleHelper=this.isHelper||e.isSimple},PartialNode:function(a,c,d,e,f){b.call(this,f),this.type="partial",this.partialName=a,this.context=c,this.hash=d,this.strip=e,this.strip.inlineStandalone=!0},BlockNode:function(a,c,d,e,f){b.call(this,f),this.type="block",this.mustache=a,this.program=c,this.inverse=d,this.strip=e,d&&!c&&(this.isInverse=!0)},RawBlockNode:function(a,c,f,g){if(b.call(this,g),a.sexpr.id.original!==f)throw new d(a.sexpr.id.original+" doesn't match "+f,this);c=new e.ContentNode(c,g),this.type="block",this.mustache=a,this.program=new e.ProgramNode([c],{},g)},ContentNode:function(a,c){b.call(this,c),this.type="content",this.original=this.string=a},HashNode:function(a,c){b.call(this,c),this.type="hash",this.pairs=a},IdNode:function(a,c){b.call(this,c),this.type="ID";for(var e="",f=[],g=0,h="",i=0,j=a.length;j>i;i++){var k=a[i].part;if(e+=(a[i].separator||"")+k,".."===k||"."===k||"this"===k){if(f.length>0)throw new d("Invalid path: "+e,this);".."===k?(g++,h+="../"):this.isScoped=!0}else f.push(k)}this.original=e,this.parts=f,this.string=f.join("."),this.depth=g,this.idName=h+this.string,this.isSimple=1===a.length&&!this.isScoped&&0===g,this.stringModeValue=this.string},PartialNameNode:function(a,c){b.call(this,c),this.type="PARTIAL_NAME",this.name=a.original},DataNode:function(a,c){b.call(this,c),this.type="DATA",this.id=a,this.stringModeValue=a.stringModeValue,this.idName="@"+a.stringModeValue},StringNode:function(a,c){b.call(this,c),this.type="STRING",this.original=this.string=this.stringModeValue=a},NumberNode:function(a,c){b.call(this,c),this.type="NUMBER",this.original=this.number=a,this.stringModeValue=Number(a)},BooleanNode:function(a,c){b.call(this,c),this.type="BOOLEAN",this.bool=a,this.stringModeValue="true"===a},CommentNode:function(a,c){b.call(this,c),this.type="comment",this.comment=a,this.strip={inlineStandalone:!0}}};return c=e}(c),h=function(){"use strict";var a,b=function(){function a(){this.yy={}}var b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,CONTENT:12,COMMENT:13,openRawBlock:14,END_RAW_BLOCK:15,OPEN_RAW_BLOCK:16,sexpr:17,CLOSE_RAW_BLOCK:18,openBlock:19,block_option0:20,closeBlock:21,openInverse:22,block_option1:23,OPEN_BLOCK:24,CLOSE:25,OPEN_INVERSE:26,inverseAndProgram:27,INVERSE:28,OPEN_ENDBLOCK:29,path:30,OPEN:31,OPEN_UNESCAPED:32,CLOSE_UNESCAPED:33,OPEN_PARTIAL:34,partialName:35,param:36,partial_option0:37,partial_option1:38,sexpr_repetition0:39,sexpr_option0:40,dataName:41,STRING:42,NUMBER:43,BOOLEAN:44,OPEN_SEXPR:45,CLOSE_SEXPR:46,hash:47,hash_repetition_plus0:48,hashSegment:49,ID:50,EQUALS:51,DATA:52,pathSegments:53,SEP:54,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"CONTENT",13:"COMMENT",15:"END_RAW_BLOCK",16:"OPEN_RAW_BLOCK",18:"CLOSE_RAW_BLOCK",24:"OPEN_BLOCK",25:"CLOSE",26:"OPEN_INVERSE",28:"INVERSE",29:"OPEN_ENDBLOCK",31:"OPEN",32:"OPEN_UNESCAPED",33:"CLOSE_UNESCAPED",34:"OPEN_PARTIAL",42:"STRING",43:"NUMBER",44:"BOOLEAN",45:"OPEN_SEXPR",46:"CLOSE_SEXPR",50:"ID",51:"EQUALS",52:"DATA",54:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performAction:function(a,b,c,d,e,f){var g=f.length-1;switch(e){case 1:return d.prepareProgram(f[g-1].statements,!0),f[g-1];case 2:this.$=new d.ProgramNode(d.prepareProgram(f[g]),{},this._$);break;case 3:this.$=f[g];break;case 4:this.$=f[g];break;case 5:this.$=f[g];break;case 6:this.$=f[g];break;case 7:this.$=new d.ContentNode(f[g],this._$);break;case 8:this.$=new d.CommentNode(f[g],this._$);break;case 9:this.$=new d.RawBlockNode(f[g-2],f[g-1],f[g],this._$);break;case 10:this.$=new d.MustacheNode(f[g-1],null,"","",this._$);break;case 11:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!1,this._$);break;case 12:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!0,this._$);break;case 13:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 14:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 15:this.$={strip:d.stripFlags(f[g-1],f[g-1]),program:f[g]};break;case 16:this.$={path:f[g-1],strip:d.stripFlags(f[g-2],f[g])};break;case 17:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 18:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 19:this.$=new d.PartialNode(f[g-3],f[g-2],f[g-1],d.stripFlags(f[g-4],f[g]),this._$);break;case 20:this.$=new d.PartialNode(f[g-2],void 0,f[g-1],d.stripFlags(f[g-3],f[g]),this._$);break;case 21:this.$=new d.SexprNode([f[g-2]].concat(f[g-1]),f[g],this._$);break;case 22:this.$=new d.SexprNode([f[g]],null,this._$);break;case 23:this.$=f[g];break;case 24:this.$=new d.StringNode(f[g],this._$);break;case 25:this.$=new d.NumberNode(f[g],this._$);break;case 26:this.$=new d.BooleanNode(f[g],this._$);break;case 27:this.$=f[g];break;case 28:f[g-1].isHelper=!0,this.$=f[g-1];break;case 29:this.$=new d.HashNode(f[g],this._$);break;case 30:this.$=[f[g-2],f[g]];break;case 31:this.$=new d.PartialNameNode(f[g],this._$);break;case 32:this.$=new d.PartialNameNode(new d.StringNode(f[g],this._$),this._$);break;case 33:this.$=new d.PartialNameNode(new d.NumberNode(f[g],this._$));break;case 34:this.$=new d.DataNode(f[g],this._$);break;case 35:this.$=new d.IdNode(f[g],this._$);break;case 36:f[g-2].push({part:f[g],separator:f[g-1]}),this.$=f[g-2];break;case 37:this.$=[{part:f[g]}];break;case 38:this.$=[];break;case 39:f[g-1].push(f[g]);break;case 48:this.$=[];break;case 49:f[g-1].push(f[g]);break;case 52:this.$=[f[g]];break;case 53:f[g-1].push(f[g])}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultActions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},parseError:function(a){throw new Error(a)},parse:function(a){function b(){var a;return a=c.lexer.lex()||1,"number"!=typeof a&&(a=c.symbols_[a]||a),a}var c=this,d=[0],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;f.push(l);var m=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var n,o,p,q,r,s,t,u,v,w={};;){if(p=d[d.length-1],this.defaultActions[p]?q=this.defaultActions[p]:((null===n||"undefined"==typeof n)&&(n=b()),q=g[p]&&g[p][n]),"undefined"==typeof q||!q.length||!q[0]){var x="";if(!k){v=[];for(s in g[p])this.terminals_[s]&&s>2&&v.push("'"+this.terminals_[s]+"'");x=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==n?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[n]||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+n);switch(q[0]){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q[1]),n=null,o?(n=o,o=null):(j=this.lexer.yyleng,h=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,k>0&&k--);break;case 2:if(t=this.productions_[q[1]][1],w.$=e[e.length-t],w._$={first_line:f[f.length-(t||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(t||1)].first_column,last_column:f[f.length-1].last_column},m&&(w._$.range=[f[f.length-(t||1)].range[0],f[f.length-1].range[1]]),r=this.performAction.call(w,h,j,i,this.yy,q[1],e,f),"undefined"!=typeof r)return r;t&&(d=d.slice(0,-1*t*2),e=e.slice(0,-1*t),f=f.slice(0,-1*t)),d.push(this.productions_[q[1]][0]),e.push(w.$),f.push(w._$),u=g[d[d.length-2]][d[d.length-1]],d.push(u);break;case 3:return!0}}return!0}},c=function(){var a={EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var b=a.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d,e;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),g=0;g<f.length&&(c=this._input.match(this.rules[f[g]]),!c||b&&!(c[0].length>b[0].length)||(b=c,d=g,this.options.flex));g++);return b?(e=b[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a?a:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!=typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return a.options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substr(a,b.yyleng-c)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 12;break;case 1:return 12;case 2:return this.popState(),12;case 3:return b.yytext=b.yytext.substr(5,b.yyleng-9),this.popState(),15;case 4:return 12;case 5:return e(0,4),this.popState(),13;case 6:return 45;case 7:return 46;case 8:return 16;case 9:return this.popState(),this.begin("raw"),18;case 10:return 34;case 11:return 24;case 12:return 29;case 13:return this.popState(),28;case 14:return this.popState(),28;case 15:return 26;case 16:return 26;case 17:return 32;case 18:return 31;case 19:this.popState(),this.begin("com");break;case 20:return e(3,5),this.popState(),13;case 21:return 31;case 22:return 51;case 23:return 50;case 24:return 50;case 25:return 54;case 26:break;case 27:return this.popState(),33;case 28:return this.popState(),25;case 29:return b.yytext=e(1,2).replace(/\\"/g,'"'),42;case 30:return b.yytext=e(1,2).replace(/\\'/g,"'"),42;case 31:return 52;case 32:return 44;case 33:return 44;case 34:return 43;case 35:return 50;case 36:return b.yytext=e(1,2),50;case 37:return"INVALID";case 38:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,38],inclusive:!0}},a}();return b.lexer=c,a.prototype=b,b.Parser=a,new a}();return a=b}(),i=function(a){"use strict";function b(a,b){return{left:"~"===a.charAt(2),right:"~"===b.charAt(b.length-3)}}function c(a,b,c,d,i,k){if(a.sexpr.id.original!==d.path.original)throw new j(a.sexpr.id.original+" doesn't match "+d.path.original,a);var l=c&&c.program,m={left:a.strip.left,right:d.strip.right,openStandalone:f(b.statements),closeStandalone:e((l||b).statements)};if(a.strip.right&&g(b.statements,null,!0),l){var n=c.strip;n.left&&h(b.statements,null,!0),n.right&&g(l.statements,null,!0),d.strip.left&&h(l.statements,null,!0),e(b.statements)&&f(l.statements)&&(h(b.statements),g(l.statements))}else d.strip.left&&h(b.statements,null,!0);return i?new this.BlockNode(a,l,b,m,k):new this.BlockNode(a,b,l,m,k)}function d(a,b){for(var c=0,d=a.length;d>c;c++){var i=a[c],j=i.strip;if(j){var k=e(a,c,b,"partial"===i.type),l=f(a,c,b),m=j.openStandalone&&k,n=j.closeStandalone&&l,o=j.inlineStandalone&&k&&l;j.right&&g(a,c,!0),j.left&&h(a,c,!0),o&&(g(a,c),h(a,c)&&"partial"===i.type&&(i.indent=/([ \t]+$)/.exec(a[c-1].original)?RegExp.$1:"")),m&&(g((i.program||i.inverse).statements),h(a,c)),n&&(g(a,c),h((i.inverse||i.program).statements))}}return a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"content"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"content"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"content"===d.type&&(c||!d.rightStripped)){var e=d.string;d.string=d.string.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.string!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"content"===d.type&&(c||!d.leftStripped)){var e=d.string;return d.string=d.string.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.string!==e,d.leftStripped}}var i={},j=a;return i.stripFlags=b,i.prepareBlock=c,i.prepareProgram=d,i}(c),j=function(a,b,c,d){"use strict";function e(a){return a.constructor===h.ProgramNode?a:(g.yy=k,g.parse(a))}var f={},g=a,h=b,i=c,j=d.extend;f.parser=g;var k={};return j(k,i,h),f.parse=e,f}(h,g,i,b),k=function(a,b){"use strict";function c(){}function d(a,b,c){if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a),e=(new c.Compiler).compile(d,b);return(new c.JavaScriptCompiler).compile(e,b)}function e(a,b,c){function d(){var d=c.parse(a),e=(new c.Compiler).compile(d,b),f=(new c.JavaScriptCompiler).compile(e,b,void 0,!0);return c.template(f)}if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var e,f=function(a,b){return e||(e=d()),e.call(this,a,b)};return f._setup=function(a){return e||(e=d()),e._setup(a)},f._child=function(a,b,c){return e||(e=d()),e._child(a,b,c)},f}function f(a,b){if(a===b)return!0;if(i(a)&&i(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!f(a[c],b[c]))return!1;return!0}}var g={},h=a,i=b.isArray,j=[].slice;return g.Compiler=c,c.prototype={compiler:c,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;b>c;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||!f(d.args,e.args))return!1}for(b=this.children.length,c=0;b>c;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=b,this.stringParams=b.stringParams,this.trackIds=b.trackIds;var c=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},c)for(var d in c)this.options.knownHelpers[d]=c[d];return this.accept(a)},accept:function(a){return this[a.type](a)},program:function(a){for(var b=a.statements,c=0,d=b.length;d>c;c++)this.accept(b[c]);return this.isSimple=1===d,this.depths.list=this.depths.list.sort(function(a,b){return a-b}),this},compileProgram:function(a){var b,c=(new this.compiler).compile(a,this.options),d=this.guid++;
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/*!
+
+ handlebars v2.0.0
+
+Copyright (C) 2011-2014 by Yehuda Katz
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+@license
+*/
+!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.Handlebars=a.Handlebars||b()}(this,function(){var a=function(){"use strict";function a(a){this.string=a}var b;return a.prototype.toString=function(){return""+this.string},b=a}(),b=function(a){"use strict";function b(a){return i[a]}function c(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}function d(a){return a instanceof h?a.toString():null==a?"":a?(a=""+a,k.test(a)?a.replace(j,b):a):a+""}function e(a){return a||0===a?n(a)&&0===a.length?!0:!1:!0}function f(a,b){return(a?a+".":"")+b}var g={},h=a,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=/[&<>"'`]/g,k=/[&<>"'`]/;g.extend=c;var l=Object.prototype.toString;g.toString=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object Function]"===l.call(a)});var m;g.isFunction=m;var n=Array.isArray||function(a){return a&&"object"==typeof a?"[object Array]"===l.call(a):!1};return g.isArray=n,g.escapeExpression=d,g.isEmpty=e,g.appendContextPath=f,g}(a),c=function(){"use strict";function a(a,b){var d;b&&b.firstLine&&(d=b.firstLine,a+=" - "+d+":"+b.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;f<c.length;f++)this[c[f]]=e[c[f]];d&&(this.lineNumber=d,this.column=b.firstColumn)}var b,c=["description","fileName","lineNumber","message","name","number","stack"];return a.prototype=new Error,b=a}(),d=function(a,b){"use strict";function c(a,b){this.helpers=a||{},this.partials=b||{},d(this)}function d(a){a.registerHelper("helperMissing",function(){if(1===arguments.length)return void 0;throw new g("Missing helper: '"+arguments[arguments.length-1].name+"'")}),a.registerHelper("blockHelperMissing",function(b,c){var d=c.inverse,e=c.fn;if(b===!0)return e(this);if(b===!1||null==b)return d(this);if(k(b))return b.length>0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var g=q(c.data);g.contextPath=f.appendContextPath(c.data.contextPath,c.name),c={data:g}}return e(b,c)}),a.registerHelper("each",function(a,b){if(!b)throw new g("Must pass iterator to #each");var c,d,e=b.fn,h=b.inverse,i=0,j="";if(b.data&&b.ids&&(d=f.appendContextPath(b.data.contextPath,b.ids[0])+"."),l(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&"object"==typeof a)if(k(a))for(var m=a.length;m>i;i++)c&&(c.index=i,c.first=0===i,c.last=i===a.length-1,d&&(c.contextPath=d+i)),j+=e(a[i],{data:c});else for(var n in a)a.hasOwnProperty(n)&&(c&&(c.key=n,c.index=i,c.first=0===i,d&&(c.contextPath=d+n)),j+=e(a[n],{data:c}),i++);return 0===i&&(j=h(this)),j}),a.registerHelper("if",function(a,b){return l(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||f.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper("with",function(a,b){l(a)&&(a=a.call(this));var c=b.fn;if(f.isEmpty(a))return b.inverse(this);if(b.data&&b.ids){var d=q(b.data);d.contextPath=f.appendContextPath(b.data.contextPath,b.ids[0]),b={data:d}}return c(a,b)}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)}),a.registerHelper("lookup",function(a,b){return a&&a[b]})}var e={},f=a,g=b,h="2.0.0";e.VERSION=h;var i=6;e.COMPILER_REVISION=i;var j={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};e.REVISION_CHANGES=j;var k=f.isArray,l=f.isFunction,m=f.toString,n="[object Object]";e.HandlebarsEnvironment=c,c.prototype={constructor:c,logger:o,log:p,registerHelper:function(a,b){if(m.call(a)===n){if(b)throw new g("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){m.call(a)===n?f.extend(this.partials,a):this.partials[a]=b},unregisterPartial:function(a){delete this.partials[a]}};var o={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(o.level<=a){var c=o.methodMap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};e.logger=o;var p=o.log;e.log=p;var q=function(a){var b=f.extend({},a);return b._parent=a,b};return e.createFrame=q,e}(b,c),e=function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=m;if(b!==c){if(c>b){var d=n[c],e=n[b];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function e(a,b){if(!b)throw new l("No environment passed to template");if(!a||!a.main)throw new l("Unknown template object: "+typeof a);b.VM.checkRevision(a.compiler);var c=function(c,d,e,f,g,h,i,j,m){g&&(f=k.extend({},f,g));var n=b.VM.invokePartial.call(this,c,e,f,h,i,j,m);if(null==n&&b.compile){var o={helpers:h,partials:i,data:j,depths:m};i[e]=b.compile(c,{data:void 0!==j,compat:a.compat},b),n=i[e](f,o)}if(null!=n){if(d){for(var p=n.split("\n"),q=0,r=p.length;r>q&&(p[q]||q+1!==r);q++)p[q]=d+p[q];n=p.join("\n")}return n}throw new l("The partial "+e+" could not be compiled when running in runtime-only mode")},d={lookup:function(a,b){for(var c=a.length,d=0;c>d;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeExpression:k.escapeExpression,invokePartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b,c){var d=this.programs[a],e=this.fn(a);return b||c?d=f(this,a,e,b,c):d||(d=this.programs[a]=f(this,a,e)),d},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=k.extend({},b,a)),c},noop:b.VM.noop,compilerInfo:a.compiler},e=function(b,c){c=c||{};var f=c.data;e._setup(c),!c.partial&&a.useData&&(f=i(b,f));var g;return a.useDepths&&(g=c.depths?[b].concat(c.depths):[b]),a.main.call(d,b,d.helpers,d.partials,f,g)};return e.isTop=!0,e._setup=function(c){c.partial?(d.helpers=c.helpers,d.partials=c.partials):(d.helpers=d.merge(c.helpers,b.helpers),a.usePartial&&(d.partials=d.merge(c.partials,b.partials)))},e._child=function(b,c,e){if(a.useDepths&&!e)throw new l("must pass parent depths");return f(d,b,a[b],c,e)},e}function f(a,b,c,d,e){var f=function(b,f){return f=f||{},c.call(a,b,a.helpers,a.partials,f.data||d,e&&[b].concat(e))};return f.program=b,f.depth=e?e.length:0,f}function g(a,b,c,d,e,f,g){var h={partial:!0,helpers:d,partials:e,data:f,depths:g};if(void 0===a)throw new l("The partial "+b+" could not be found");return a instanceof Function?a(c,h):void 0}function h(){return""}function i(a,b){return b&&"root"in b||(b=b?o(b):{},b.root=a),b}var j={},k=a,l=b,m=c.COMPILER_REVISION,n=c.REVISION_CHANGES,o=c.createFrame;return j.checkRevision=d,j.template=e,j.program=f,j.invokePartial=g,j.noop=h,j}(b,c,d),f=function(a,b,c,d,e){"use strict";var f,g=a,h=b,i=c,j=d,k=e,l=function(){var a=new g.HandlebarsEnvironment;return j.extend(a,g),a.SafeString=h,a.Exception=i,a.Utils=j,a.escapeExpression=j.escapeExpression,a.VM=k,a.template=function(b){return k.template(b,a)},a},m=l();return m.create=l,m["default"]=m,f=m}(d,a,c,b,e),g=function(a){"use strict";function b(a){a=a||{},this.firstLine=a.first_line,this.firstColumn=a.first_column,this.lastColumn=a.last_column,this.lastLine=a.last_line}var c,d=a,e={ProgramNode:function(a,c,d){b.call(this,d),this.type="program",this.statements=a,this.strip=c},MustacheNode:function(a,c,d,f,g){if(b.call(this,g),this.type="mustache",this.strip=f,null!=d&&d.charAt){var h=d.charAt(3)||d.charAt(2);this.escaped="{"!==h&&"&"!==h}else this.escaped=!!d;this.sexpr=a instanceof e.SexprNode?a:new e.SexprNode(a,c),this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(a,c,d){b.call(this,d),this.type="sexpr",this.hash=c;var e=this.id=a[0],f=this.params=a.slice(1);this.isHelper=!(!f.length&&!c),this.eligibleHelper=this.isHelper||e.isSimple},PartialNode:function(a,c,d,e,f){b.call(this,f),this.type="partial",this.partialName=a,this.context=c,this.hash=d,this.strip=e,this.strip.inlineStandalone=!0},BlockNode:function(a,c,d,e,f){b.call(this,f),this.type="block",this.mustache=a,this.program=c,this.inverse=d,this.strip=e,d&&!c&&(this.isInverse=!0)},RawBlockNode:function(a,c,f,g){if(b.call(this,g),a.sexpr.id.original!==f)throw new d(a.sexpr.id.original+" doesn't match "+f,this);c=new e.ContentNode(c,g),this.type="block",this.mustache=a,this.program=new e.ProgramNode([c],{},g)},ContentNode:function(a,c){b.call(this,c),this.type="content",this.original=this.string=a},HashNode:function(a,c){b.call(this,c),this.type="hash",this.pairs=a},IdNode:function(a,c){b.call(this,c),this.type="ID";for(var e="",f=[],g=0,h="",i=0,j=a.length;j>i;i++){var k=a[i].part;if(e+=(a[i].separator||"")+k,".."===k||"."===k||"this"===k){if(f.length>0)throw new d("Invalid path: "+e,this);".."===k?(g++,h+="../"):this.isScoped=!0}else f.push(k)}this.original=e,this.parts=f,this.string=f.join("."),this.depth=g,this.idName=h+this.string,this.isSimple=1===a.length&&!this.isScoped&&0===g,this.stringModeValue=this.string},PartialNameNode:function(a,c){b.call(this,c),this.type="PARTIAL_NAME",this.name=a.original},DataNode:function(a,c){b.call(this,c),this.type="DATA",this.id=a,this.stringModeValue=a.stringModeValue,this.idName="@"+a.stringModeValue},StringNode:function(a,c){b.call(this,c),this.type="STRING",this.original=this.string=this.stringModeValue=a},NumberNode:function(a,c){b.call(this,c),this.type="NUMBER",this.original=this.number=a,this.stringModeValue=Number(a)},BooleanNode:function(a,c){b.call(this,c),this.type="BOOLEAN",this.bool=a,this.stringModeValue="true"===a},CommentNode:function(a,c){b.call(this,c),this.type="comment",this.comment=a,this.strip={inlineStandalone:!0}}};return c=e}(c),h=function(){"use strict";var a,b=function(){function a(){this.yy={}}var b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,CONTENT:12,COMMENT:13,openRawBlock:14,END_RAW_BLOCK:15,OPEN_RAW_BLOCK:16,sexpr:17,CLOSE_RAW_BLOCK:18,openBlock:19,block_option0:20,closeBlock:21,openInverse:22,block_option1:23,OPEN_BLOCK:24,CLOSE:25,OPEN_INVERSE:26,inverseAndProgram:27,INVERSE:28,OPEN_ENDBLOCK:29,path:30,OPEN:31,OPEN_UNESCAPED:32,CLOSE_UNESCAPED:33,OPEN_PARTIAL:34,partialName:35,param:36,partial_option0:37,partial_option1:38,sexpr_repetition0:39,sexpr_option0:40,dataName:41,STRING:42,NUMBER:43,BOOLEAN:44,OPEN_SEXPR:45,CLOSE_SEXPR:46,hash:47,hash_repetition_plus0:48,hashSegment:49,ID:50,EQUALS:51,DATA:52,pathSegments:53,SEP:54,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"CONTENT",13:"COMMENT",15:"END_RAW_BLOCK",16:"OPEN_RAW_BLOCK",18:"CLOSE_RAW_BLOCK",24:"OPEN_BLOCK",25:"CLOSE",26:"OPEN_INVERSE",28:"INVERSE",29:"OPEN_ENDBLOCK",31:"OPEN",32:"OPEN_UNESCAPED",33:"CLOSE_UNESCAPED",34:"OPEN_PARTIAL",42:"STRING",43:"NUMBER",44:"BOOLEAN",45:"OPEN_SEXPR",46:"CLOSE_SEXPR",50:"ID",51:"EQUALS",52:"DATA",54:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performAction:function(a,b,c,d,e,f){var g=f.length-1;switch(e){case 1:return d.prepareProgram(f[g-1].statements,!0),f[g-1];case 2:this.$=new d.ProgramNode(d.prepareProgram(f[g]),{},this._$);break;case 3:this.$=f[g];break;case 4:this.$=f[g];break;case 5:this.$=f[g];break;case 6:this.$=f[g];break;case 7:this.$=new d.ContentNode(f[g],this._$);break;case 8:this.$=new d.CommentNode(f[g],this._$);break;case 9:this.$=new d.RawBlockNode(f[g-2],f[g-1],f[g],this._$);break;case 10:this.$=new d.MustacheNode(f[g-1],null,"","",this._$);break;case 11:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!1,this._$);break;case 12:this.$=d.prepareBlock(f[g-3],f[g-2],f[g-1],f[g],!0,this._$);break;case 13:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 14:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 15:this.$={strip:d.stripFlags(f[g-1],f[g-1]),program:f[g]};break;case 16:this.$={path:f[g-1],strip:d.stripFlags(f[g-2],f[g])};break;case 17:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 18:this.$=new d.MustacheNode(f[g-1],null,f[g-2],d.stripFlags(f[g-2],f[g]),this._$);break;case 19:this.$=new d.PartialNode(f[g-3],f[g-2],f[g-1],d.stripFlags(f[g-4],f[g]),this._$);break;case 20:this.$=new d.PartialNode(f[g-2],void 0,f[g-1],d.stripFlags(f[g-3],f[g]),this._$);break;case 21:this.$=new d.SexprNode([f[g-2]].concat(f[g-1]),f[g],this._$);break;case 22:this.$=new d.SexprNode([f[g]],null,this._$);break;case 23:this.$=f[g];break;case 24:this.$=new d.StringNode(f[g],this._$);break;case 25:this.$=new d.NumberNode(f[g],this._$);break;case 26:this.$=new d.BooleanNode(f[g],this._$);break;case 27:this.$=f[g];break;case 28:f[g-1].isHelper=!0,this.$=f[g-1];break;case 29:this.$=new d.HashNode(f[g],this._$);break;case 30:this.$=[f[g-2],f[g]];break;case 31:this.$=new d.PartialNameNode(f[g],this._$);break;case 32:this.$=new d.PartialNameNode(new d.StringNode(f[g],this._$),this._$);break;case 33:this.$=new d.PartialNameNode(new d.NumberNode(f[g],this._$));break;case 34:this.$=new d.DataNode(f[g],this._$);break;case 35:this.$=new d.IdNode(f[g],this._$);break;case 36:f[g-2].push({part:f[g],separator:f[g-1]}),this.$=f[g-2];break;case 37:this.$=[{part:f[g]}];break;case 38:this.$=[];break;case 39:f[g-1].push(f[g]);break;case 48:this.$=[];break;case 49:f[g-1].push(f[g]);break;case 52:this.$=[f[g]];break;case 53:f[g-1].push(f[g])}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultActions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},parseError:function(a){throw new Error(a)},parse:function(a){function b(){var a;return a=c.lexer.lex()||1,"number"!=typeof a&&(a=c.symbols_[a]||a),a}var c=this,d=[0],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;f.push(l);var m=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var n,o,p,q,r,s,t,u,v,w={};;){if(p=d[d.length-1],this.defaultActions[p]?q=this.defaultActions[p]:((null===n||"undefined"==typeof n)&&(n=b()),q=g[p]&&g[p][n]),"undefined"==typeof q||!q.length||!q[0]){var x="";if(!k){v=[];for(s in g[p])this.terminals_[s]&&s>2&&v.push("'"+this.terminals_[s]+"'");x=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==n?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[n]||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+n);switch(q[0]){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q[1]),n=null,o?(n=o,o=null):(j=this.lexer.yyleng,h=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,k>0&&k--);break;case 2:if(t=this.productions_[q[1]][1],w.$=e[e.length-t],w._$={first_line:f[f.length-(t||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(t||1)].first_column,last_column:f[f.length-1].last_column},m&&(w._$.range=[f[f.length-(t||1)].range[0],f[f.length-1].range[1]]),r=this.performAction.call(w,h,j,i,this.yy,q[1],e,f),"undefined"!=typeof r)return r;t&&(d=d.slice(0,-1*t*2),e=e.slice(0,-1*t),f=f.slice(0,-1*t)),d.push(this.productions_[q[1]][0]),e.push(w.$),f.push(w._$),u=g[d[d.length-2]][d[d.length-1]],d.push(u);break;case 3:return!0}}return!0}},c=function(){var a={EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var b=a.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d,e;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),g=0;g<f.length&&(c=this._input.match(this.rules[f[g]]),!c||b&&!(c[0].length>b[0].length)||(b=c,d=g,this.options.flex));g++);return b?(e=b[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a?a:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!=typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return a.options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substr(a,b.yyleng-c)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 12;break;case 1:return 12;case 2:return this.popState(),12;case 3:return b.yytext=b.yytext.substr(5,b.yyleng-9),this.popState(),15;case 4:return 12;case 5:return e(0,4),this.popState(),13;case 6:return 45;case 7:return 46;case 8:return 16;case 9:return this.popState(),this.begin("raw"),18;case 10:return 34;case 11:return 24;case 12:return 29;case 13:return this.popState(),28;case 14:return this.popState(),28;case 15:return 26;case 16:return 26;case 17:return 32;case 18:return 31;case 19:this.popState(),this.begin("com");break;case 20:return e(3,5),this.popState(),13;case 21:return 31;case 22:return 51;case 23:return 50;case 24:return 50;case 25:return 54;case 26:break;case 27:return this.popState(),33;case 28:return this.popState(),25;case 29:return b.yytext=e(1,2).replace(/\\"/g,'"'),42;case 30:return b.yytext=e(1,2).replace(/\\'/g,"'"),42;case 31:return 52;case 32:return 44;case 33:return 44;case 34:return 43;case 35:return 50;case 36:return b.yytext=e(1,2),50;case 37:return"INVALID";case 38:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,38],inclusive:!0}},a}();return b.lexer=c,a.prototype=b,b.Parser=a,new a}();return a=b}(),i=function(a){"use strict";function b(a,b){return{left:"~"===a.charAt(2),right:"~"===b.charAt(b.length-3)}}function c(a,b,c,d,i,k){if(a.sexpr.id.original!==d.path.original)throw new j(a.sexpr.id.original+" doesn't match "+d.path.original,a);var l=c&&c.program,m={left:a.strip.left,right:d.strip.right,openStandalone:f(b.statements),closeStandalone:e((l||b).statements)};if(a.strip.right&&g(b.statements,null,!0),l){var n=c.strip;n.left&&h(b.statements,null,!0),n.right&&g(l.statements,null,!0),d.strip.left&&h(l.statements,null,!0),e(b.statements)&&f(l.statements)&&(h(b.statements),g(l.statements))}else d.strip.left&&h(b.statements,null,!0);return i?new this.BlockNode(a,l,b,m,k):new this.BlockNode(a,b,l,m,k)}function d(a,b){for(var c=0,d=a.length;d>c;c++){var i=a[c],j=i.strip;if(j){var k=e(a,c,b,"partial"===i.type),l=f(a,c,b),m=j.openStandalone&&k,n=j.closeStandalone&&l,o=j.inlineStandalone&&k&&l;j.right&&g(a,c,!0),j.left&&h(a,c,!0),o&&(g(a,c),h(a,c)&&"partial"===i.type&&(i.indent=/([ \t]+$)/.exec(a[c-1].original)?RegExp.$1:"")),m&&(g((i.program||i.inverse).statements),h(a,c)),n&&(g(a,c),h((i.inverse||i.program).statements))}}return a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"content"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"content"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"content"===d.type&&(c||!d.rightStripped)){var e=d.string;d.string=d.string.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.string!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"content"===d.type&&(c||!d.leftStripped)){var e=d.string;return d.string=d.string.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.string!==e,d.leftStripped}}var i={},j=a;return i.stripFlags=b,i.prepareBlock=c,i.prepareProgram=d,i}(c),j=function(a,b,c,d){"use strict";function e(a){return a.constructor===h.ProgramNode?a:(g.yy=k,g.parse(a))}var f={},g=a,h=b,i=c,j=d.extend;f.parser=g;var k={};return j(k,i,h),f.parse=e,f}(h,g,i,b),k=function(a,b){"use strict";function c(){}function d(a,b,c){if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a),e=(new c.Compiler).compile(d,b);return(new c.JavaScriptCompiler).compile(e,b)}function e(a,b,c){function d(){var d=c.parse(a),e=(new c.Compiler).compile(d,b),f=(new c.JavaScriptCompiler).compile(e,b,void 0,!0);return c.template(f)}if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var e,f=function(a,b){return e||(e=d()),e.call(this,a,b)};return f._setup=function(a){return e||(e=d()),e._setup(a)},f._child=function(a,b,c){return e||(e=d()),e._child(a,b,c)},f}function f(a,b){if(a===b)return!0;if(i(a)&&i(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!f(a[c],b[c]))return!1;return!0}}var g={},h=a,i=b.isArray,j=[].slice;return g.Compiler=c,c.prototype={compiler:c,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;b>c;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||!f(d.args,e.args))return!1}for(b=this.children.length,c=0;b>c;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=b,this.stringParams=b.stringParams,this.trackIds=b.trackIds;var c=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},c)for(var d in c)this.options.knownHelpers[d]=c[d];return this.accept(a)},accept:function(a){return this[a.type](a)},program:function(a){for(var b=a.statements,c=0,d=b.length;d>c;c++)this.accept(b[c]);return this.isSimple=1===d,this.depths.list=this.depths.list.sort(function(a,b){return a-b}),this},compileProgram:function(a){var b,c=(new this.compiler).compile(a,this.options),d=this.guid++;
this.usePartial=this.usePartial||c.usePartial,this.children[d]=c;for(var e=0,f=c.depths.list.length;f>e;e++)b=c.depths.list[e],2>b||this.addDepth(b-1);return d},block:function(a){var b=a.mustache,c=a.program,d=a.inverse;c&&(c=this.compileProgram(c)),d&&(d=this.compileProgram(d));var e=b.sexpr,f=this.classifySexpr(e);"helper"===f?this.helperSexpr(e,c,d):"simple"===f?(this.simpleSexpr(e),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("blockValue",e.id.original)):(this.ambiguousSexpr(e,c,d),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(a){var b,c,d=a.pairs;for(this.opcode("pushHash"),b=0,c=d.length;c>b;b++)this.pushParam(d[b][1]);for(;b--;)this.opcode("assignToHash",d[b][0]);this.opcode("popHash")},partial:function(a){var b=a.partialName;this.usePartial=!0,a.hash?this.accept(a.hash):this.opcode("push","undefined"),a.context?this.accept(a.context):(this.opcode("getContext",0),this.opcode("pushContext")),this.opcode("invokePartial",b.name,a.indent||""),this.opcode("append")},content:function(a){a.string&&this.opcode("appendContent",a.string)},mustache:function(a){this.sexpr(a.sexpr),a.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousSexpr:function(a,b,c){var d=a.id,e=d.parts[0],f=null!=b||null!=c;this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.ID(d),this.opcode("invokeAmbiguous",e,f)},simpleSexpr:function(a){var b=a.id;"DATA"===b.type?this.DATA(b):b.parts.length?this.ID(b):(this.addDepth(b.depth),this.opcode("getContext",b.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){var d=this.setupFullMustacheParams(a,b,c),e=a.id,f=e.parts[0];if(this.options.knownHelpers[f])this.opcode("invokeKnownHelper",d.length,f);else{if(this.options.knownHelpersOnly)throw new h("You specified knownHelpersOnly, but used the unknown helper "+f,a);e.falsy=!0,this.ID(e),this.opcode("invokeHelper",d.length,e.original,e.isSimple)}},sexpr:function(a){var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ID:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth);var b=a.parts[0];b?this.opcode("lookupOnContext",a.parts,a.falsy,a.isScoped):this.opcode("pushContext")},DATA:function(a){this.options.data=!0,this.opcode("lookupData",a.id.depth,a.id.parts)},STRING:function(a){this.opcode("pushString",a.string)},NUMBER:function(a){this.opcode("pushLiteral",a.number)},BOOLEAN:function(a){this.opcode("pushLiteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:j.call(arguments,1)})},addDepth:function(a){0!==a&&(this.depths[a]||(this.depths[a]=!0,this.depths.list.push(a)))},classifySexpr:function(a){var b=a.isHelper,c=a.eligibleHelper,d=this.options;if(c&&!b){var e=a.id.parts[0];d.knownHelpers[e]?b=!0:d.knownHelpersOnly&&(c=!1)}return b?"helper":c?"ambiguous":"simple"},pushParams:function(a){for(var b=0,c=a.length;c>b;b++)this.pushParam(a[b])},pushParam:function(a){this.stringParams?(a.depth&&this.addDepth(a.depth),this.opcode("getContext",a.depth||0),this.opcode("pushStringParam",a.stringModeValue,a.type),"sexpr"===a.type&&this.sexpr(a)):(this.trackIds&&this.opcode("pushId",a.type,a.idName||a.stringModeValue),this.accept(a))},setupFullMustacheParams:function(a,b,c){var d=a.params;return this.pushParams(d),this.opcode("pushProgram",b),this.opcode("pushProgram",c),a.hash?this.hash(a.hash):this.opcode("emptyHash"),d}},g.precompile=d,g.compile=e,g}(c,b),l=function(a,b){"use strict";function c(a){this.value=a}function d(){}var e,f=a.COMPILER_REVISION,g=a.REVISION_CHANGES,h=b;d.prototype={nameLookup:function(a,b){return d.isValidJavaScriptVariableName(b)?a+"."+b:a+"['"+b+"']"},depthedLookup:function(a){return this.aliases.lookup="this.lookup",'lookup(depths, "'+a+'")'},compilerInfo:function(){var a=f,b=g[a];return[a,b]},appendToBuffer:function(a){return this.environment.isSimple?"return "+a+";":{appendToBuffer:!0,content:a,toString:function(){return"buffer += "+a+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(a,b,c,d){this.environment=a,this.options=b,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,this.name=this.environment.name,this.isChild=!!c,this.context=c||{programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(a,b),this.useDepths=this.useDepths||a.depths.list.length||this.options.compat;var e,f,g,i=a.opcodes;for(f=0,g=i.length;g>f;f++)e=i[f],this[e.opcode].apply(this,e.args);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new h("Compile completed with content left on stack");var j=this.createFunctionContext(d);if(this.isChild)return j;var k={compiler:this.compilerInfo(),main:j},l=this.context.programs;for(f=0,g=l.length;g>f;f++)l[f]&&(k[f]=l[f]);return this.environment.usePartial&&(k.usePartial=!0),this.options.data&&(k.useData=!0),this.useDepths&&(k.useDepths=!0),this.options.compat&&(k.compat=!0),d||(k.compiler=JSON.stringify(k.compiler),k=this.objectLiteral(k)),k},preamble:function(){this.lastContext=0,this.source=[]},createFunctionContext:function(a){var b="",c=this.stackVars.concat(this.registers.list);c.length>0&&(b+=", "+c.join(", "));for(var d in this.aliases)this.aliases.hasOwnProperty(d)&&(b+=", "+d+"="+this.aliases[d]);var e=["depth0","helpers","partials","data"];this.useDepths&&e.push("depths");var f=this.mergeSource(b);return a?(e.push(f),Function.apply(this,e)):"function("+e.join(",")+") {\n "+f+"}"},mergeSource:function(a){for(var b,c,d="",e=!this.forceBuffer,f=0,g=this.source.length;g>f;f++){var h=this.source[f];h.appendToBuffer?b=b?b+"\n + "+h.content:h.content:(b&&(d?d+="buffer += "+b+";\n ":(c=!0,d=b+";\n "),b=void 0),d+=h+"\n ",this.environment.isSimple||(e=!1))}return e?(b||!d)&&(d+="return "+(b||'""')+";\n"):(a+=", buffer = "+(c?"":this.initializeBuffer()),d+=b?"return buffer + "+b+";\n":"return buffer;\n"),a&&(d="var "+a.substring(2)+(c?"":";\n ")+d),d},blockValue:function(a){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var b=[this.contextName(0)];this.setupParams(a,0,b);var c=this.popStack();b.splice(1,0,c),this.push("blockHelperMissing.call("+b.join(", ")+")")},ambiguousBlockValue:function(){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var a=[this.contextName(0)];this.setupParams("",0,a,!0),this.flushInline();var b=this.topStack();a.splice(1,0,b),this.pushSource("if (!"+this.lastHelper+") { "+b+" = blockHelperMissing.call("+a.join(", ")+"); }")},appendContent:function(a){this.pendingContent&&(a=this.pendingContent+a),this.pendingContent=a},append:function(){this.flushInline();var a=this.popStack();this.pushSource("if ("+a+" != null) { "+this.appendToBuffer(a)+" }"),this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.aliases.escapeExpression="this.escapeExpression",this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(a){this.lastContext=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(a,b,c){var d=0,e=a.length;for(c||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(a[d++]));e>d;d++)this.replaceStack(function(c){var e=this.nameLookup(c,a[d],"context");return b?" && "+e:" != null ? "+e+" : "+c})},lookupData:function(a,b){a?this.pushStackLiteral("this.data(data, "+a+")"):this.pushStackLiteral("data");for(var c=b.length,d=0;c>d;d++)this.replaceStack(function(a){return" && "+this.nameLookup(a,b[d],"data")})},resolvePossibleLambda:function(){this.aliases.lambda="this.lambda",this.push("lambda("+this.popStack()+", "+this.contextName(0)+")")},pushStringParam:function(a,b){this.pushContext(),this.pushString(b),"sexpr"!==b&&("string"==typeof a?this.pushString(a):this.pushStackLiteral(a))},emptyHash:function(){this.pushStackLiteral("{}"),this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var a=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push("{"+a.ids.join(",")+"}"),this.stringParams&&(this.push("{"+a.contexts.join(",")+"}"),this.push("{"+a.types.join(",")+"}")),this.push("{\n "+a.values.join(",\n ")+"\n }")},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},push:function(a){return this.inlineStack.push(a),a},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){null!=a?this.pushStackLiteral(this.programExpression(a)):this.pushStackLiteral(null)},invokeHelper:function(a,b,c){this.aliases.helperMissing="helpers.helperMissing";var d=this.popStack(),e=this.setupHelper(a,b),f=(c?e.name+" || ":"")+d+" || helperMissing";this.push("(("+f+").call("+e.callParams+"))")},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,b);this.push(c.name+".call("+c.callParams+")")},invokeAmbiguous:function(a,b){this.aliases.functionType='"function"',this.aliases.helperMissing="helpers.helperMissing",this.useRegister("helper");var c=this.popStack();this.emptyHash();var d=this.setupHelper(0,a,b),e=this.lastHelper=this.nameLookup("helpers",a,"helper");this.push("((helper = (helper = "+e+" || "+c+") != null ? helper : helperMissing"+(d.paramsInit?"),("+d.paramsInit:"")+"),(typeof helper === functionType ? helper.call("+d.callParams+") : helper))")},invokePartial:function(a,b){var c=[this.nameLookup("partials",a,"partial"),"'"+b+"'","'"+a+"'",this.popStack(),this.popStack(),"helpers","partials"];this.options.data?c.push("data"):this.options.compat&&c.push("undefined"),this.options.compat&&c.push("depths"),this.push("this.invokePartial("+c.join(", ")+")")},assignToHash:function(a){var b,c,d,e=this.popStack();this.trackIds&&(d=this.popStack()),this.stringParams&&(c=this.popStack(),b=this.popStack());var f=this.hash;b&&f.contexts.push("'"+a+"': "+b),c&&f.types.push("'"+a+"': "+c),d&&f.ids.push("'"+a+"': "+d),f.values.push("'"+a+"': ("+e+")")},pushId:function(a,b){"ID"===a||"DATA"===a?this.pushString(b):"sexpr"===a?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:d,compileChildren:function(a,b){for(var c,d,e=a.children,f=0,g=e.length;g>f;f++){c=e[f],d=new this.compiler;var h=this.matchExistingProgram(c);null==h?(this.context.programs.push(""),h=this.context.programs.length,c.index=h,c.name="program"+h,this.context.programs[h]=d.compile(c,b,this.context,!this.precompile),this.context.environments[h]=c,this.useDepths=this.useDepths||d.useDepths):(c.index=h,c.name="program"+h)}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;c>b;b++){var d=this.context.environments[b];if(d&&d.equals(a))return b}},programExpression:function(a){var b=this.environment.children[a],c=(b.depths.list,this.useDepths),d=[b.index,"data"];return c&&d.push("depths"),"this.program("+d.join(", ")+")"},useRegister:function(a){this.registers[a]||(this.registers[a]=!0,this.registers.list.push(a))},pushStackLiteral:function(a){return this.push(new c(a))},pushSource:function(a){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0),a&&this.source.push(a)},pushStack:function(a){this.flushInline();var b=this.incrStack();return this.pushSource(b+" = "+a+";"),this.compileStack.push(b),b},replaceStack:function(a){{var b,d,e,f="";this.isInline()}if(!this.isInline())throw new h("replaceStack on non-inline");var g=this.popStack(!0);if(g instanceof c)f=b=g.value,e=!0;else{d=!this.stackSlot;var i=d?this.incrStack():this.topStackName();f="("+this.push(i)+" = "+g+")",b=this.topStack()}var j=a.call(this,b);e||this.popStack(),d&&this.stackSlot--,this.push("("+f+j+")")},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;if(a.length){this.inlineStack=[];for(var b=0,d=a.length;d>b;b++){var e=a[b];e instanceof c?this.compileStack.push(e):this.pushStack(e)}}},isInline:function(){return this.inlineStack.length},popStack:function(a){var b=this.isInline(),d=(b?this.inlineStack:this.compileStack).pop();if(!a&&d instanceof c)return d.value;if(!b){if(!this.stackSlot)throw new h("Invalid stack pop");this.stackSlot--}return d},topStack:function(){var a=this.isInline()?this.inlineStack:this.compileStack,b=a[a.length-1];return b instanceof c?b.value:b},contextName:function(a){return this.useDepths&&a?"depths["+a+"]":"depth"+a},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(this.quotedString(c)+":"+a[c]);return"{"+b.join(",")+"}"},setupHelper:function(a,b,c){var d=[],e=this.setupParams(b,a,d,c),f=this.nameLookup("helpers",b,"helper");return{params:d,paramsInit:e,name:f,callParams:[this.contextName(0)].concat(d).join(", ")}},setupOptions:function(a,b,c){var d,e,f,g={},h=[],i=[],j=[];g.name=this.quotedString(a),g.hash=this.popStack(),this.trackIds&&(g.hashIds=this.popStack()),this.stringParams&&(g.hashTypes=this.popStack(),g.hashContexts=this.popStack()),e=this.popStack(),f=this.popStack(),(f||e)&&(f||(f="this.noop"),e||(e="this.noop"),g.fn=f,g.inverse=e);for(var k=b;k--;)d=this.popStack(),c[k]=d,this.trackIds&&(j[k]=this.popStack()),this.stringParams&&(i[k]=this.popStack(),h[k]=this.popStack());return this.trackIds&&(g.ids="["+j.join(",")+"]"),this.stringParams&&(g.types="["+i.join(",")+"]",g.contexts="["+h.join(",")+"]"),this.options.data&&(g.data="data"),g},setupParams:function(a,b,c,d){var e=this.objectLiteral(this.setupOptions(a,b,c));return d?(this.useRegister("options"),c.push("options"),"options="+e):(c.push(e),"")}};for(var i="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),j=d.RESERVED_WORDS={},k=0,l=i.length;l>k;k++)j[i[k]]=!0;return d.isValidJavaScriptVariableName=function(a){return!d.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a)},e=d}(d,c),m=function(a,b,c,d,e){"use strict";var f,g=a,h=b,i=c.parser,j=c.parse,k=d.Compiler,l=d.compile,m=d.precompile,n=e,o=g.create,p=function(){var a=o();return a.compile=function(b,c){return l(b,c,a)},a.precompile=function(b,c){return m(b,c,a)},a.AST=h,a.Compiler=k,a.JavaScriptCompiler=n,a.Parser=i,a.parse=j,a};return g=p(),g.create=p,g["default"]=g,f=g}(f,g,j,k,l);return m}); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/highlight.7.3.pack.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/highlight.7.3.pack.js
index 7e93f450..78f8bd9e 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/highlight.7.3.pack.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/highlight.7.3.pack.js
@@ -1,16 +1,16 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
var hljs=new function(){function l(o){return o.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function b(p){for(var o=p.firstChild;o;o=o.nextSibling){if(o.nodeName=="CODE"){return o}if(!(o.nodeType==3&&o.nodeValue.match(/\s+/))){break}}}function h(p,o){return Array.prototype.map.call(p.childNodes,function(q){if(q.nodeType==3){return o?q.nodeValue.replace(/\n/g,""):q.nodeValue}if(q.nodeName=="BR"){return"\n"}return h(q,o)}).join("")}function a(q){var p=(q.className+" "+q.parentNode.className).split(/\s+/);p=p.map(function(r){return r.replace(/^language-/,"")});for(var o=0;o<p.length;o++){if(e[p[o]]||p[o]=="no-highlight"){return p[o]}}}function c(q){var o=[];(function p(r,s){for(var t=r.firstChild;t;t=t.nextSibling){if(t.nodeType==3){s+=t.nodeValue.length}else{if(t.nodeName=="BR"){s+=1}else{if(t.nodeType==1){o.push({event:"start",offset:s,node:t});s=p(t,s);o.push({event:"stop",offset:s,node:t})}}}}return s})(q,0);return o}function j(x,v,w){var p=0;var y="";var r=[];function t(){if(x.length&&v.length){if(x[0].offset!=v[0].offset){return(x[0].offset<v[0].offset)?x:v}else{return v[0].event=="start"?x:v}}else{return x.length?x:v}}function s(A){function z(B){return" "+B.nodeName+'="'+l(B.value)+'"'}return"<"+A.nodeName+Array.prototype.map.call(A.attributes,z).join("")+">"}while(x.length||v.length){var u=t().splice(0,1)[0];y+=l(w.substr(p,u.offset-p));p=u.offset;if(u.event=="start"){y+=s(u.node);r.push(u.node)}else{if(u.event=="stop"){var o,q=r.length;do{q--;o=r[q];y+=("</"+o.nodeName.toLowerCase()+">")}while(o!=u.node);r.splice(q,1);while(q<r.length){y+=s(r[q]);q++}}}}return y+l(w.substr(p))}function f(q){function o(s,r){return RegExp(s,"m"+(q.cI?"i":"")+(r?"g":""))}function p(y,w){if(y.compiled){return}y.compiled=true;var s=[];if(y.k){var r={};function z(A,t){t.split(" ").forEach(function(B){var C=B.split("|");r[C[0]]=[A,C[1]?Number(C[1]):1];s.push(C[0])})}y.lR=o(y.l||hljs.IR,true);if(typeof y.k=="string"){z("keyword",y.k)}else{for(var x in y.k){if(!y.k.hasOwnProperty(x)){continue}z(x,y.k[x])}}y.k=r}if(w){if(y.bWK){y.b="\\b("+s.join("|")+")\\s"}y.bR=o(y.b?y.b:"\\B|\\b");if(!y.e&&!y.eW){y.e="\\B|\\b"}if(y.e){y.eR=o(y.e)}y.tE=y.e||"";if(y.eW&&w.tE){y.tE+=(y.e?"|":"")+w.tE}}if(y.i){y.iR=o(y.i)}if(y.r===undefined){y.r=1}if(!y.c){y.c=[]}for(var v=0;v<y.c.length;v++){if(y.c[v]=="self"){y.c[v]=y}p(y.c[v],y)}if(y.starts){p(y.starts,w)}var u=[];for(var v=0;v<y.c.length;v++){u.push(y.c[v].b)}if(y.tE){u.push(y.tE)}if(y.i){u.push(y.i)}y.t=u.length?o(u.join("|"),true):{exec:function(t){return null}}}p(q)}function d(D,E){function o(r,M){for(var L=0;L<M.c.length;L++){var K=M.c[L].bR.exec(r);if(K&&K.index==0){return M.c[L]}}}function s(K,r){if(K.e&&K.eR.test(r)){return K}if(K.eW){return s(K.parent,r)}}function t(r,K){return K.i&&K.iR.test(r)}function y(L,r){var K=F.cI?r[0].toLowerCase():r[0];return L.k.hasOwnProperty(K)&&L.k[K]}function G(){var K=l(w);if(!A.k){return K}var r="";var N=0;A.lR.lastIndex=0;var L=A.lR.exec(K);while(L){r+=K.substr(N,L.index-N);var M=y(A,L);if(M){v+=M[1];r+='<span class="'+M[0]+'">'+L[0]+"</span>"}else{r+=L[0]}N=A.lR.lastIndex;L=A.lR.exec(K)}return r+K.substr(N)}function z(){if(A.sL&&!e[A.sL]){return l(w)}var r=A.sL?d(A.sL,w):g(w);if(A.r>0){v+=r.keyword_count;B+=r.r}return'<span class="'+r.language+'">'+r.value+"</span>"}function J(){return A.sL!==undefined?z():G()}function I(L,r){var K=L.cN?'<span class="'+L.cN+'">':"";if(L.rB){x+=K;w=""}else{if(L.eB){x+=l(r)+K;w=""}else{x+=K;w=r}}A=Object.create(L,{parent:{value:A}});B+=L.r}function C(K,r){w+=K;if(r===undefined){x+=J();return 0}var L=o(r,A);if(L){x+=J();I(L,r);return L.rB?0:r.length}var M=s(A,r);if(M){if(!(M.rE||M.eE)){w+=r}x+=J();do{if(A.cN){x+="</span>"}A=A.parent}while(A!=M.parent);if(M.eE){x+=l(r)}w="";if(M.starts){I(M.starts,"")}return M.rE?0:r.length}if(t(r,A)){throw"Illegal"}w+=r;return r.length||1}var F=e[D];f(F);var A=F;var w="";var B=0;var v=0;var x="";try{var u,q,p=0;while(true){A.t.lastIndex=p;u=A.t.exec(E);if(!u){break}q=C(E.substr(p,u.index-p),u[0]);p=u.index+q}C(E.substr(p));return{r:B,keyword_count:v,value:x,language:D}}catch(H){if(H=="Illegal"){return{r:0,keyword_count:0,value:l(E)}}else{throw H}}}function g(s){var o={keyword_count:0,r:0,value:l(s)};var q=o;for(var p in e){if(!e.hasOwnProperty(p)){continue}var r=d(p,s);r.language=p;if(r.keyword_count+r.r>q.keyword_count+q.r){q=r}if(r.keyword_count+r.r>o.keyword_count+o.r){q=o;o=r}}if(q.language){o.second_best=q}return o}function i(q,p,o){if(p){q=q.replace(/^((<[^>]+>|\t)+)/gm,function(r,v,u,t){return v.replace(/\t/g,p)})}if(o){q=q.replace(/\n/g,"<br>")}return q}function m(r,u,p){var v=h(r,p);var t=a(r);if(t=="no-highlight"){return}var w=t?d(t,v):g(v);t=w.language;var o=c(r);if(o.length){var q=document.createElement("pre");q.innerHTML=w.value;w.value=j(o,c(q),v)}w.value=i(w.value,u,p);var s=r.className;if(!s.match("(\\s|^)(language-)?"+t+"(\\s|$)")){s=s?(s+" "+t):t}r.innerHTML=w.value;r.className=s;r.result={language:t,kw:w.keyword_count,re:w.r};if(w.second_best){r.second_best={language:w.second_best.language,kw:w.second_best.keyword_count,re:w.second_best.r}}}function n(){if(n.called){return}n.called=true;Array.prototype.map.call(document.getElementsByTagName("pre"),b).filter(Boolean).forEach(function(o){m(o,hljs.tabReplace)})}function k(){window.addEventListener("DOMContentLoaded",n,false);window.addEventListener("load",n,false)}var e={};this.LANGUAGES=e;this.highlight=d;this.highlightAuto=g;this.fixMarkup=i;this.highlightBlock=m;this.initHighlighting=n;this.initHighlightingOnLoad=k;this.IR="[a-zA-Z][a-zA-Z0-9_]*";this.UIR="[a-zA-Z_][a-zA-Z0-9_]*";this.NR="\\b\\d+(\\.\\d+)?";this.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";this.BNR="\\b(0b[01]+)";this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.BE={b:"\\\\[\\s\\S]",r:0};this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE],r:0};this.CLCM={cN:"comment",b:"//",e:"$"};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NM={cN:"number",b:this.NR,r:0};this.CNM={cN:"number",b:this.CNR,r:0};this.BNM={cN:"number",b:this.BNR,r:0};this.inherit=function(q,r){var o={};for(var p in q){o[p]=q[p]}if(r){for(var p in r){o[p]=r[p]}}return o}}();hljs.LANGUAGES.xml=function(a){var c="[A-Za-z0-9\\._:-]+";var b={eW:true,c:[{cN:"attribute",b:c,r:0},{b:'="',rB:true,e:'"',c:[{cN:"value",b:'"',eW:true}]},{b:"='",rB:true,e:"'",c:[{cN:"value",b:"'",eW:true}]},{b:"=",c:[{cN:"value",b:"[^\\s/>]+"}]}]};return{cI:true,c:[{cN:"pi",b:"<\\?",e:"\\?>",r:10},{cN:"doctype",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"<!--",e:"-->",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{title:"style"},c:[b],starts:{e:"</style>",rE:true,sL:"css"}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{title:"script"},c:[b],starts:{e:"<\/script>",rE:true,sL:"javascript"}},{b:"<%",e:"%>",sL:"vbscript"},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"title",b:"[^ />]+"},b]}]}}(hljs);hljs.LANGUAGES.json=function(a){var e={literal:"true false null"};var d=[a.QSM,a.CNM];var c={cN:"value",e:",",eW:true,eE:true,c:d,k:e};var b={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:true,eE:true,c:[a.BE],i:"\\n",starts:c}],i:"\\S"};var f={b:"\\[",e:"\\]",c:[a.inherit(c,{cN:null})],i:"\\S"};d.splice(d.length,0,b,f);return{c:d,k:e,i:"\\S"}}(hljs); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery-1.8.0.min.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery-1.8.0.min.js
index fcdf2c43..d6be2561 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery-1.8.0.min.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery-1.8.0.min.js
@@ -1,17 +1,17 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*! jQuery v@1.8.0 jquery.com | jquery.org/license */
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d<e;d++)p.event.add(b,c,h[c][d])}g.data&&(g.data=p.extend({},g.data))}function bE(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?(b.parentNode&&(b.outerHTML=a.outerHTML),p.support.html5Clone&&a.innerHTML&&!p.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):c==="input"&&bv.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text),b.removeAttribute(p.expando)}function bF(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bG(a){bv.test(a.type)&&(a.defaultChecked=a.checked)}function bX(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=bV.length;while(e--){b=bV[e]+c;if(b in a)return b}return d}function bY(a,b){return a=b||a,p.css(a,"display")==="none"||!p.contains(a.ownerDocument,a)}function bZ(a,b){var c,d,e=[],f=0,g=a.length;for(;f<g;f++){c=a[f];if(!c.style)continue;e[f]=p._data(c,"olddisplay"),b?(!e[f]&&c.style.display==="none"&&(c.style.display=""),c.style.display===""&&bY(c)&&(e[f]=p._data(c,"olddisplay",cb(c.nodeName)))):(d=bH(c,"display"),!e[f]&&d!=="none"&&p._data(c,"olddisplay",d))}for(f=0;f<g;f++){c=a[f];if(!c.style)continue;if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?e[f]||"":"none"}return a}function b$(a,b,c){var d=bO.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function b_(a,b,c,d){var e=c===(d?"border":"content")?4:b==="width"?1:0,f=0;for(;e<4;e+=2)c==="margin"&&(f+=p.css(a,c+bU[e],!0)),d?(c==="content"&&(f-=parseFloat(bH(a,"padding"+bU[e]))||0),c!=="margin"&&(f-=parseFloat(bH(a,"border"+bU[e]+"Width"))||0)):(f+=parseFloat(bH(a,"padding"+bU[e]))||0,c!=="padding"&&(f+=parseFloat(bH(a,"border"+bU[e]+"Width"))||0));return f}function ca(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=!0,f=p.support.boxSizing&&p.css(a,"boxSizing")==="border-box";if(d<=0){d=bH(a,b);if(d<0||d==null)d=a.style[b];if(bP.test(d))return d;e=f&&(p.support.boxSizingReliable||d===a.style[b]),d=parseFloat(d)||0}return d+b_(a,b,c||(f?"border":"content"),e)+"px"}function cb(a){if(bR[a])return bR[a];var b=p("<"+a+">").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write("<!doctype html><html><body>"),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bR[a]=c,c}function ch(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||cd.test(a)?d(a,e):ch(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ch(a+"["+e+"]",b[e],c,d);else d(a,b)}function cy(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h<i;h++)d=g[h],f=/^\+/.test(d),f&&(d=d.substr(1)||"*"),e=a[d]=a[d]||[],e[f?"unshift":"push"](c)}}function cz(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h,i=a[f],j=0,k=i?i.length:0,l=a===cu;for(;j<k&&(l||!h);j++)h=i[j](c,d,e),typeof h=="string"&&(!l||g[h]?h=b:(c.dataTypes.unshift(h),h=cz(a,c,d,e,h,g)));return(l||!h)&&!g["*"]&&(h=cz(a,c,d,e,"*",g)),h}function cA(a,c){var d,e,f=p.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((f[d]?a:e||(e={}))[d]=c[d]);e&&p.extend(!0,a,e)}function cB(a,c,d){var e,f,g,h,i=a.contents,j=a.dataTypes,k=a.responseFields;for(f in k)f in d&&(c[k[f]]=d[f]);while(j[0]==="*")j.shift(),e===b&&(e=a.mimeType||c.getResponseHeader("content-type"));if(e)for(f in i)if(i[f]&&i[f].test(e)){j.unshift(f);break}if(j[0]in d)g=j[0];else{for(f in d){if(!j[0]||a.converters[f+" "+j[0]]){g=f;break}h||(h=f)}g=g||h}if(g)return g!==j[0]&&j.unshift(g),d[g]}function cC(a,b){var c,d,e,f,g=a.dataTypes.slice(),h=g[0],i={},j=0;a.dataFilter&&(b=a.dataFilter(b,a.dataType));if(g[1])for(c in a.converters)i[c.toLowerCase()]=a.converters[c];for(;e=g[++j];)if(e!=="*"){if(h!=="*"&&h!==e){c=i[h+" "+e]||i["* "+e];if(!c)for(d in i){f=d.split(" ");if(f[1]===e){c=i[h+" "+f[0]]||i["* "+f[0]];if(c){c===!0?c=i[d]:i[d]!==!0&&(e=f[0],g.splice(j--,0,e));break}}}if(c!==!0)if(c&&a["throws"])b=c(b);else try{b=c(b)}catch(k){return{state:"parsererror",error:c?k:"No conversion from "+h+" to "+e}}}h=e}return{state:"success",data:b}}function cK(){try{return new a.XMLHttpRequest}catch(b){}}function cL(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function cT(){return setTimeout(function(){cM=b},0),cM=p.now()}function cU(a,b){p.each(b,function(b,c){var d=(cS[b]||[]).concat(cS["*"]),e=0,f=d.length;for(;e<f;e++)if(d[e].call(a,b,c))return})}function cV(a,b,c){var d,e=0,f=0,g=cR.length,h=p.Deferred().always(function(){delete i.elem}),i=function(){var b=cM||cT(),c=Math.max(0,j.startTime+j.duration-b),d=1-(c/j.duration||0),e=0,f=j.tweens.length;for(;e<f;e++)j.tweens[e].run(d);return h.notifyWith(a,[j,d,c]),d<1&&f?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:p.extend({},b),opts:p.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:cM||cT(),duration:c.duration,tweens:[],createTween:function(b,c,d){var e=p.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(e),e},stop:function(b){var c=0,d=b?j.tweens.length:0;for(;c<d;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;cW(k,j.opts.specialEasing);for(;e<g;e++){d=cR[e].call(j,a,k,j.opts);if(d)return d}return cU(j,k),p.isFunction(j.opts.start)&&j.opts.start.call(a,j),p.fx.timer(p.extend(i,{anim:j,queue:j.opts.queue,elem:a})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function cW(a,b){var c,d,e,f,g;for(c in a){d=p.camelCase(c),e=b[d],f=a[c],p.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=p.cssHooks[d];if(g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}}function cX(a,b,c){var d,e,f,g,h,i,j,k,l=this,m=a.style,n={},o=[],q=a.nodeType&&bY(a);c.queue||(j=p._queueHooks(a,"fx"),j.unqueued==null&&(j.unqueued=0,k=j.empty.fire,j.empty.fire=function(){j.unqueued||k()}),j.unqueued++,l.always(function(){l.always(function(){j.unqueued--,p.queue(a,"fx").length||j.empty.fire()})})),a.nodeType===1&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],p.css(a,"display")==="inline"&&p.css(a,"float")==="none"&&(!p.support.inlineBlockNeedsLayout||cb(a.nodeName)==="inline"?m.display="inline-block":m.zoom=1)),c.overflow&&(m.overflow="hidden",p.support.shrinkWrapBlocks||l.done(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b){f=b[d];if(cO.exec(f)){delete b[d];if(f===(q?"hide":"show"))continue;o.push(d)}}g=o.length;if(g){h=p._data(a,"fxshow")||p._data(a,"fxshow",{}),q?p(a).show():l.done(function(){p(a).hide()}),l.done(function(){var b;p.removeData(a,"fxshow",!0);for(b in n)p.style(a,b,n[b])});for(d=0;d<g;d++)e=o[d],i=l.createTween(e,q?h[e]:0),n[e]=h[e]||p.style(a,e),e in h||(h[e]=i.start,q&&(i.end=i.start,i.start=e==="width"||e==="height"?1:0))}}function cY(a,b,c,d,e){return new cY.prototype.init(a,b,c,d,e)}function cZ(a,b){var c,d={height:a},e=0;for(;e<4;e+=2-b)c=bU[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function c_(a){return p.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c,d,e=a.document,f=a.location,g=a.navigator,h=a.jQuery,i=a.$,j=Array.prototype.push,k=Array.prototype.slice,l=Array.prototype.indexOf,m=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=String.prototype.trim,p=function(a,b){return new p.fn.init(a,b,c)},q=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,r=/\S/,s=/\s+/,t=r.test(" ")?/^[\s\xA0]+|[\s\xA0]+$/g:/^\s+|\s+$/g,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.0",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i<j;i++)if((a=arguments[i])!=null)for(c in a){d=h[c],e=a[c];if(h===e)continue;k&&e&&(p.isPlainObject(e)||(f=p.isArray(e)))?(f?(f=!1,g=d&&p.isArray(d)?d:[]):g=d&&p.isPlainObject(d)?d:{},h[c]=p.extend(k,g,e)):e!==b&&(h[c]=e)}return h},p.extend({noConflict:function(b){return a.$===p&&(a.$=i),b&&a.jQuery===p&&(a.jQuery=h),p},isReady:!1,readyWait:1,holdReady:function(a){a?p.readyWait++:p.ready(!0)},ready:function(a){if(a===!0?--p.readyWait:p.isReady)return;if(!e.body)return setTimeout(p.ready,1);p.isReady=!0;if(a!==!0&&--p.readyWait>0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f<g;)if(c.apply(a[f++],d)===!1)break}else if(h){for(e in a)if(c.call(a[e],e,a[e])===!1)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===!1)break;return a},trim:o?function(a){return a==null?"":o.call(a)}:function(a){return a==null?"":a.toString().replace(t,"")},makeArray:function(a,b){var c,d=b||[];return a!=null&&(c=p.type(a),a.length==null||c==="string"||c==="function"||c==="regexp"||p.isWindow(a)?j.call(d,a):p.merge(d,a)),d},inArray:function(a,b,c){var d;if(b){if(l)return l.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=c.length,e=a.length,f=0;if(typeof d=="number")for(;f<d;f++)a[e++]=c[f];else while(c[f]!==b)a[e++]=c[f++];return a.length=e,a},grep:function(a,b,c){var d,e=[],f=0,g=a.length;c=!!c;for(;f<g;f++)d=!!b(a[f],f),c!==d&&e.push(a[f]);return e},map:function(a,c,d){var e,f,g=[],h=0,i=a.length,j=a instanceof p||i!==b&&typeof i=="number"&&(i>0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h<i;h++)e=c(a[h],h,d),e!=null&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),e!=null&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){var d,e,f;return typeof c=="string"&&(d=a[c],c=a,a=d),p.isFunction(a)?(e=k.call(arguments,2),f=function(){return a.apply(c,e.concat(k.call(arguments)))},f.guid=a.guid=a.guid||f.guid||p.guid++,f):b},access:function(a,c,d,e,f,g,h){var i,j=d==null,k=0,l=a.length;if(d&&typeof d=="object"){for(k in d)p.access(a,c,k,d[k],1,g,e);f=1}else if(e!==b){i=h===b&&p.isFunction(e),j&&(i?(i=c,c=function(a,b,c){return i.call(p(a),c)}):(c.call(a,e),c=null));if(c)for(;k<l;k++)c(a[k],d,i?e.call(a[k],k,c(a[k],d)):e,h);f=1}return f?a:j?c.call(a):l?c(a[0],d):g},now:function(){return(new Date).getTime()}}),p.ready.promise=function(b){if(!d){d=p.Deferred();if(e.readyState==="complete"||e.readyState!=="loading"&&e.addEventListener)setTimeout(p.ready,1);else if(e.addEventListener)e.addEventListener("DOMContentLoaded",D,!1),a.addEventListener("load",p.ready,!1);else{e.attachEvent("onreadystatechange",D),a.attachEvent("onload",p.ready);var c=!1;try{c=a.frameElement==null&&e.documentElement}catch(f){}c&&c.doScroll&&function g(){if(!p.isReady){try{c.doScroll("left")}catch(a){return setTimeout(g,50)}p.ready()}}()}}return d.promise(b)},p.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){E["[object "+b+"]"]=b.toLowerCase()}),c=p(e);var F={};p.Callbacks=function(a){a=typeof a=="string"?F[a]||G(a):p.extend({},a);var c,d,e,f,g,h,i=[],j=!a.once&&[],k=function(b){c=a.memory&&b,d=!0,h=f||0,f=0,g=i.length,e=!0;for(;i&&h<g;h++)if(i[h].apply(b[0],b[1])===!1&&a.stopOnFalse){c=!1;break}e=!1,i&&(j?j.length&&k(j.shift()):c?i=[]:l.disable())},l={add:function(){if(i){var b=i.length;(function d(b){p.each(b,function(b,c){p.isFunction(c)&&(!a.unique||!l.has(c))?i.push(c):c&&c.length&&d(c)})})(arguments),e?g=i.length:c&&(f=b,k(c))}return this},remove:function(){return i&&p.each(arguments,function(a,b){var c;while((c=p.inArray(b,i,c))>-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return typeof a=="object"?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b<d;b++)c[b]&&p.isFunction(c[b].promise)?c[b].promise().done(g(b,j,c)).fail(f.reject).progress(g(b,i,h)):--e}return e||f.resolveWith(j,c),f.promise()}}),p.support=function(){var b,c,d,f,g,h,i,j,k,l,m,n=e.createElement("div");n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length||!d)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div></div>",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/^(?:\{.*\}|\[.*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||++p.uuid:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e<f;e++)delete d[b[e]];if(!(c?K:p.isEmptyObject)(d))return}}if(!c){delete h[i].data;if(!K(h[i]))return}g?p.cleanData([a],!0):p.support.deleteExpando||h!=h.window?delete h[i]:h[i]=null},_data:function(a,b,c){return p.data(a,b,c,!0)},acceptData:function(a){var b=a.nodeName&&p.noData[a.nodeName.toLowerCase()];return!b||b!==!0&&a.getAttribute("classid")===b}}),p.fn.extend({data:function(a,c){var d,e,f,g,h,i=this[0],j=0,k=null;if(a===b){if(this.length){k=p.data(i);if(i.nodeType===1&&!p._data(i,"parsedAttrs")){f=i.attributes;for(h=f.length;j<h;j++)g=f[j].name,g.indexOf("data-")===0&&(g=p.camelCase(g.substring(5)),J(i,g,k[g]));p._data(i,"parsedAttrs",!0)}}return k}return typeof a=="object"?this.each(function(){p.data(this,a)}):(d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!",p.access(this,function(c){if(c===b)return k=this.triggerHandler("getData"+e,[d[0]]),k===b&&i&&(k=p.data(i,a),k=J(i,a,k)),k===b&&d[1]?this.data(d[0]):k;d[1]=c,this.each(function(){var b=p(this);b.triggerHandler("setData"+e,d),p.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.shift(),e=p._queueHooks(a,b),f=function(){p.dequeue(a,b)};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),delete e.stop,d.call(a,f,e)),!c.length&&e&&e.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length<d?p.queue(this[0],a):c===b?this:this.each(function(){var b=p.queue(this,a,c);p._queueHooks(this,a),a==="fx"&&b[0]!=="inprogress"&&p.dequeue(this,a)})},dequeue:function(a){return this.each(function(){p.dequeue(this,a)})},delay:function(a,b){return a=p.fx?p.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var d,e=1,f=p.Deferred(),g=this,h=this.length,i=function(){--e||f.resolveWith(g,[g])};typeof a!="string"&&(c=a,a=b),a=a||"fx";while(h--)(d=p._data(g[h],a+"queueHooks"))&&d.empty&&(e++,d.empty.add(i));return i(),f.promise(c)}});var L,M,N,O=/[\t\r\n]/g,P=/\r/g,Q=/^(?:button|input)$/i,R=/^(?:button|input|object|select|textarea)$/i,S=/^a(?:rea|)$/i,T=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,U=p.support.getSetAttribute;p.fn.extend({attr:function(a,b){return p.access(this,p.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{f=" "+e.className+" ";for(g=0,h=b.length;g<h;g++)~f.indexOf(" "+b[g]+" ")||(f+=b[g]+" ");e.className=p.trim(f)}}}return this},removeClass:function(a){var c,d,e,f,g,h,i;if(p.isFunction(a))return this.each(function(b){p(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(s);for(h=0,i=this.length;h<i;h++){e=this[h];if(e.nodeType===1&&e.className){d=(" "+e.className+" ").replace(O," ");for(f=0,g=c.length;f<g;f++)while(d.indexOf(" "+c[f]+" ")>-1)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(O," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c<d;c++){e=h[c];if(e.selected&&(p.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!p.nodeName(e.parentNode,"optgroup"))){b=p(e).val();if(i)return b;g.push(b)}}return i&&!g.length&&h.length?p(h[f]).val():g},set:function(a,b){var c=p.makeArray(b);return p(a).find("option").each(function(){this.selected=p.inArray(p(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,""+d),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g<d.length;g++)e=d[g],e&&(c=p.propFix[e]||e,f=T.test(e),f||p.attr(a,e,""),a.removeAttribute(U?e:c),f&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(Q.test(a.nodeName)&&a.parentNode)p.error("type property can't be changed");else if(!p.support.radioValue&&b==="radio"&&p.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},value:{get:function(a,b){return L&&p.nodeName(a,"button")?L.get(a,b):b in a?a.value:null},set:function(a,b,c){if(L&&p.nodeName(a,"button"))return L.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,f,g,h=a.nodeType;if(!a||h===3||h===8||h===2)return;return g=h!==1||!p.isXMLDoc(a),g&&(c=p.propFix[c]||c,f=p.propHooks[c]),d!==b?f&&"set"in f&&(e=f.set(a,d,c))!==b?e:a[c]=d:f&&"get"in f&&(e=f.get(a,c))!==null?e:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):R.test(a.nodeName)||S.test(a.nodeName)&&a.href?0:b}}}}),M={get:function(a,c){var d,e=p.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?p.removeAttr(a,c):(d=p.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase())),c}},U||(N={name:!0,id:!0,coords:!0},L=p.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&(N[c]?d.value!=="":d.specified)?d.value:b},set:function(a,b,c){var d=a.getAttributeNode(c);return d||(d=e.createAttribute(c),a.setAttributeNode(d)),d.value=b+""}},p.each(["width","height"],function(a,b){p.attrHooks[b]=p.extend(p.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}),p.attrHooks.contenteditable={get:L.get,set:function(a,b,c){b===""&&(b="false"),L.set(a,b,c)}}),p.support.hrefNormalized||p.each(["href","src","width","height"],function(a,c){p.attrHooks[c]=p.extend(p.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),p.support.style||(p.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),p.support.optSelected||(p.propHooks.selected=p.extend(p.propHooks.selected,{get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}})),p.support.enctype||(p.propFix.enctype="encoding"),p.support.checkOn||p.each(["radio","checkbox"],function(){p.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]=p.extend(p.valHooks[this],{set:function(a,b){if(p.isArray(b))return a.checked=p.inArray(p(a).val(),b)>=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j<c.length;j++){k=W.exec(c[j])||[],l=k[1],m=(k[2]||"").split(".").sort(),r=p.event.special[l]||{},l=(f?r.delegateType:r.bindType)||l,r=p.event.special[l]||{},n=p.extend({type:l,origType:k[1],data:e,handler:d,guid:d.guid,selector:f,namespace:m.join(".")},o),q=i[l];if(!q){q=i[l]=[],q.delegateCount=0;if(!r.setup||r.setup.call(a,e,m,h)===!1)a.addEventListener?a.addEventListener(l,h,!1):a.attachEvent&&a.attachEvent("on"+l,h)}r.add&&(r.add.call(a,n),n.handler.guid||(n.handler.guid=d.guid)),f?q.splice(q.delegateCount++,0,n):q.push(n),p.event.global[l]=!0}a=null},global:{},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,q,r=p.hasData(a)&&p._data(a);if(!r||!(m=r.events))return;b=p.trim(_(b||"")).split(" ");for(f=0;f<b.length;f++){g=W.exec(b[f])||[],h=i=g[1],j=g[2];if(!h){for(h in m)p.event.remove(a,h+b[f],c,d,!0);continue}n=p.event.special[h]||{},h=(d?n.delegateType:n.bindType)||h,o=m[h]||[],k=o.length,j=j?new RegExp("(^|\\.)"+j.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(l=0;l<o.length;l++)q=o[l],(e||i===q.origType)&&(!c||c.guid===q.guid)&&(!j||j.test(q.namespace))&&(!d||d===q.selector||d==="**"&&q.selector)&&(o.splice(l--,1),q.selector&&o.delegateCount--,n.remove&&n.remove.call(a,q));o.length===0&&k!==o.length&&((!n.teardown||n.teardown.call(a,j,r.handle)===!1)&&p.removeEvent(a,h,r.handle),delete m[h])}p.isEmptyObject(m)&&(delete r.handle,p.removeData(a,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,f,g){if(!f||f.nodeType!==3&&f.nodeType!==8){var h,i,j,k,l,m,n,o,q,r,s=c.type||c,t=[];if($.test(s+p.event.triggered))return;s.indexOf("!")>=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j<q.length&&!c.isPropagationStopped();j++)k=q[j][0],c.type=q[j][1],o=(p._data(k,"events")||{})[c.type]&&p._data(k,"handle"),o&&o.apply(k,d),o=m&&k[m],o&&p.acceptData(k)&&o.apply(k,d)===!1&&c.preventDefault();return c.type=s,!g&&!c.isDefaultPrevented()&&(!n._default||n._default.apply(f.ownerDocument,d)===!1)&&(s!=="click"||!p.nodeName(f,"a"))&&p.acceptData(f)&&m&&f[s]&&(s!=="focus"&&s!=="blur"||c.target.offsetWidth!==0)&&!p.isWindow(f)&&(l=f[m],l&&(f[m]=null),p.event.triggered=s,f[s](),p.event.triggered=b,l&&(f[m]=l)),c.result}return},dispatch:function(c){c=p.event.fix(c||a.event);var d,e,f,g,h,i,j,k,l,m,n,o=(p._data(this,"events")||{})[c.type]||[],q=o.delegateCount,r=[].slice.call(arguments),s=!c.exclusive&&!c.namespace,t=p.event.special[c.type]||{},u=[];r[0]=c,c.delegateTarget=this;if(t.preDispatch&&t.preDispatch.call(this,c)===!1)return;if(q&&(!c.button||c.type!=="click")){g=p(this),g.context=this;for(f=c.target;f!=this;f=f.parentNode||this)if(f.disabled!==!0||c.type!=="click"){i={},k=[],g[0]=f;for(d=0;d<q;d++)l=o[d],m=l.selector,i[m]===b&&(i[m]=g.is(m)),i[m]&&k.push(l);k.length&&u.push({elem:f,matches:k})}}o.length>q&&u.push({elem:this,matches:o.slice(q)});for(d=0;d<u.length&&!c.isPropagationStopped();d++){j=u[d],c.currentTarget=j.elem;for(e=0;e<j.matches.length&&!c.isImmediatePropagationStopped();e++){l=j.matches[e];if(s||!c.namespace&&!l.namespace||c.namespace_re&&c.namespace_re.test(l.namespace))c.data=l.data,c.handleObj=l,h=((p.event.special[l.origType]||{}).handle||l.handler).apply(j.elem,r),h!==b&&(c.result=h,h===!1&&(c.preventDefault(),c.stopPropagation()))}}return t.postDispatch&&t.postDispatch.call(this,c),c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,f,g,h=c.button,i=c.fromElement;return a.pageX==null&&c.clientX!=null&&(d=a.target.ownerDocument||e,f=d.documentElement,g=d.body,a.pageX=c.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=c.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?c.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0),a}},fix:function(a){if(a[p.expando])return a;var b,c,d=a,f=p.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props;a=p.Event(d);for(b=g.length;b;)c=g[--b],a[c]=d[c];return a.target||(a.target=d.srcElement||e),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,f.filter?f.filter(a,d):a},special:{ready:{setup:p.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){p.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=p.extend(new p.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?p.event.trigger(e,null,b):p.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},p.event.handle=p.event.dispatch,p.removeEvent=e.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]=="undefined"&&(a[d]=null),a.detachEvent(d,c))},p.Event=function(a,b){if(this instanceof p.Event)a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?bb:ba):this.type=a,b&&p.extend(this,b),this.timeStamp=a&&a.timeStamp||p.now(),this[p.expando]=!0;else return new p.Event(a,b)},p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=bb;var a=this.originalEvent;if(!a)return;a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=bb;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()},isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba},p.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){p.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj,g=f.selector;if(!e||e!==d&&!p.contains(d,e))a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b;return c}}}),p.support.submitBubbles||(p.event.special.submit={setup:function(){if(p.nodeName(this,"form"))return!1;p.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=p.nodeName(c,"input")||p.nodeName(c,"button")?c.form:b;d&&!p._data(d,"_submit_attached")&&(p.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),p._data(d,"_submit_attached",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&p.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(p.nodeName(this,"form"))return!1;p.event.remove(this,"._submit")}}),p.support.changeBubbles||(p.event.special.change={setup:function(){if(V.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")p.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),p.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),p.event.simulate("change",this,a,!0)});return!1}p.event.add(this,"beforeactivate._change",function(a){var b=a.target;V.test(b.nodeName)&&!p._data(b,"_change_attached")&&(p.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&p.event.simulate("change",this.parentNode,a,!0)}),p._data(b,"_change_attached",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){return p.event.remove(this,"._change"),V.test(this.nodeName)}}),p.support.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,d=function(a){p.event.simulate(b,a.target,p.event.fix(a),!0)};p.event.special[b]={setup:function(){c++===0&&e.addEventListener(a,d,!0)},teardown:function(){--c===0&&e.removeEventListener(a,d,!0)}}}),p.fn.extend({on:function(a,c,d,e,f){var g,h;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(h in a)this.on(h,c,d,a[h],f);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=ba;else if(!e)return this;return f===1&&(g=e,e=function(a){return p().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=p.guid++)),this.each(function(){p.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){var e,f;if(a&&a.preventDefault&&a.handleObj)return e=a.handleObj,p(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if(typeof a=="object"){for(f in a)this.off(f,c,a[f]);return this}if(c===!1||typeof c=="function")d=c,c=b;return d===!1&&(d=ba),this.each(function(){p.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){return p(this.context).on(a,this.selector,b,c),this},die:function(a,b){return p(this.context).off(a,this.selector||"**",b),this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){p.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return p.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||p.guid++,d=0,e=function(c){var e=(p._data(this,"lastToggle"+a.guid)||0)%d;return p._data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),p.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){p.fn[b]=function(a,c){return c==null&&(c=a,a=null),arguments.length>0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bd(a,b,c,d){var e=0,f=b.length;for(;e<f;e++)Z(a,b[e],c,d)}function be(a,b,c,d,e,f){var g,h=$.setFilters[b.toLowerCase()];return h||Z.error(b),(a||!(g=e))&&bd(a||"*",d,g=[],e),g.length>0?h(g,c,f):[]}function bf(a,c,d,e,f){var g,h,i,j,k,l,m,n,p=0,q=f.length,s=L.POS,t=new RegExp("^"+s.source+"(?!"+r+")","i"),u=function(){var a=1,c=arguments.length-2;for(;a<c;a++)arguments[a]===b&&(g[a]=b)};for(;p<q;p++){s.exec(""),a=f[p],j=[],i=0,k=e;while(g=s.exec(a)){n=s.lastIndex=g.index+g[0].length;if(n>i){m=a.slice(i,g.index),i=n,l=[c],B.test(m)&&(k&&(l=k),k=e);if(h=H.test(m))m=m.slice(0,-5).replace(B,"$&*");g.length>1&&g[0].replace(t,u),k=be(m,g[1],g[2],l,k,h)}}k?(j=j.concat(k),(m=a.slice(i))&&m!==")"?B.test(m)?bd(m,j,d,e):Z(m,c,d,e?e.concat(k):k):o.apply(d,j)):Z(a,c,d,e)}return q===1?d:Z.uniqueSort(d)}function bg(a,b,c){var d,e,f,g=[],i=0,j=D.exec(a),k=!j.pop()&&!j.pop(),l=k&&a.match(C)||[""],m=$.preFilter,n=$.filter,o=!c&&b!==h;for(;(e=l[i])!=null&&k;i++){g.push(d=[]),o&&(e=" "+e);while(e){k=!1;if(j=B.exec(e))e=e.slice(j[0].length),k=d.push({part:j.pop().replace(A," "),captures:j});for(f in n)(j=L[f].exec(e))&&(!m[f]||(j=m[f](j,b,c)))&&(e=e.slice(j.shift().length),k=d.push({part:f,captures:j}));if(!k)break}}return k||Z.error(a),g}function bh(a,b,e){var f=b.dir,g=m++;return a||(a=function(a){return a===e}),b.first?function(b,c){while(b=b[f])if(b.nodeType===1)return a(b,c)&&b}:function(b,e){var h,i=g+"."+d,j=i+"."+c;while(b=b[f])if(b.nodeType===1){if((h=b[q])===j)return b.sizset;if(typeof h=="string"&&h.indexOf(i)===0){if(b.sizset)return b}else{b[q]=j;if(a(b,e))return b.sizset=!0,b;b.sizset=!1}}}}function bi(a,b){return a?function(c,d){var e=b(c,d);return e&&a(e===!0?c:e,d)}:b}function bj(a,b,c){var d,e,f=0;for(;d=a[f];f++)$.relative[d.part]?e=bh(e,$.relative[d.part],b):(d.captures.push(b,c),e=bi(e,$.filter[d.part].apply(null,d.captures)));return e}function bk(a){return function(b,c){var d,e=0;for(;d=a[e];e++)if(d(b,c))return!0;return!1}}var c,d,e,f,g,h=a.document,i=h.documentElement,j="undefined",k=!1,l=!0,m=0,n=[].slice,o=[].push,q=("sizcache"+Math.random()).replace(".",""),r="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",t=s.replace("w","w#"),u="([*^$|!~]?=)",v="\\["+r+"*("+s+")"+r+"*(?:"+u+r+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+t+")|)|)"+r+"*\\]",w=":("+s+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|((?:[^,]|\\\\,|(?:,(?=[^\\[]*\\]))|(?:,(?=[^\\(]*\\))))*))\\)|)",x=":(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\)|)(?=[^-]|$)",y=r+"*([\\x20\\t\\r\\n\\f>+~])"+r+"*",z="(?=[^\\x20\\t\\r\\n\\f])(?:\\\\.|"+v+"|"+w.replace(2,7)+"|[^\\\\(),])+",A=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),B=new RegExp("^"+y),C=new RegExp(z+"?(?="+r+"*,|$)","g"),D=new RegExp("^(?:(?!,)(?:(?:^|,)"+r+"*"+z+")*?|"+r+"*(.*?))(\\)|$)"),E=new RegExp(z.slice(19,-6)+"\\x20\\t\\r\\n\\f>+~])+|"+y,"g"),F=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,G=/[\x20\t\r\n\f]*[+~]/,H=/:not\($/,I=/h\d/i,J=/input|select|textarea|button/i,K=/\\(?!\\)/g,L={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),NAME:new RegExp("^\\[name=['\"]?("+s+")['\"]?\\]"),TAG:new RegExp("^("+s.replace("[-","[-\\*")+")"),ATTR:new RegExp("^"+v),PSEUDO:new RegExp("^"+w),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),POS:new RegExp(x,"ig"),needsContext:new RegExp("^"+r+"*[>+~]|"+x,"i")},M={},N=[],O={},P=[],Q=function(a){return a.sizzleFilter=!0,a},R=function(a){return function(b){return b.nodeName.toLowerCase()==="input"&&b.type===a}},S=function(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}},T=function(a){var b=!1,c=h.createElement("div");try{b=a(c)}catch(d){}return c=null,b},U=T(function(a){a.innerHTML="<select></select>";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),V=T(function(a){a.id=q+0,a.innerHTML="<a name='"+q+"'></a><div name='"+q+"'></div>",i.insertBefore(a,i.firstChild);var b=h.getElementsByName&&h.getElementsByName(q).length===2+h.getElementsByName(q+0).length;return g=!h.getElementById(q),i.removeChild(a),b}),W=T(function(a){return a.appendChild(h.createComment("")),a.getElementsByTagName("*").length===0}),X=T(function(a){return a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!==j&&a.firstChild.getAttribute("href")==="#"}),Y=T(function(a){return a.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!a.getElementsByClassName||a.getElementsByClassName("e").length===0?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length!==1)}),Z=function(a,b,c,d){c=c||[],b=b||h;var e,f,g,i,j=b.nodeType;if(j!==1&&j!==9)return[];if(!a||typeof a!="string")return c;g=ba(b);if(!g&&!d)if(e=F.exec(a))if(i=e[1]){if(j===9){f=b.getElementById(i);if(!f||!f.parentNode)return c;if(f.id===i)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(i))&&bb(b,f)&&f.id===i)return c.push(f),c}else{if(e[2])return o.apply(c,n.call(b.getElementsByTagName(a),0)),c;if((i=e[3])&&Y&&b.getElementsByClassName)return o.apply(c,n.call(b.getElementsByClassName(i),0)),c}return bm(a,b,c,d,g)},$=Z.selectors={cacheLength:50,match:L,order:["ID","TAG"],attrHandle:{},createPseudo:Q,find:{ID:g?function(a,b,c){if(typeof b.getElementById!==j&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==j&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==j&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:W?function(a,b){if(typeof b.getElementsByTagName!==j)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(K,""),a[3]=(a[4]||a[5]||"").replace(K,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||Z.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&Z.error(a[0]),a},PSEUDO:function(a){var b,c=a[4];return L.CHILD.test(a[0])?null:(c&&(b=D.exec(c))&&b.pop()&&(a[0]=a[0].slice(0,b[0].length-c.length-1),c=b[0].slice(0,-1)),a.splice(2,3,c||a[3]),a)}},filter:{ID:g?function(a){return a=a.replace(K,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(K,""),function(b){var c=typeof b.getAttributeNode!==j&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(K,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=M[a];return b||(b=M[a]=new RegExp("(^|"+r+")"+a+"("+r+"|$)"),N.push(a),N.length>$.cacheLength&&delete M[N.shift()]),function(a){return b.test(a.className||typeof a.getAttribute!==j&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return b?function(d){var e=Z.attr(d,a),f=e+"";if(e==null)return b==="!=";switch(b){case"=":return f===c;case"!=":return f!==c;case"^=":return c&&f.indexOf(c)===0;case"*=":return c&&f.indexOf(c)>-1;case"$=":return c&&f.substr(f.length-c.length)===c;case"~=":return(" "+f+" ").indexOf(c)>-1;case"|=":return f===c||f.substr(0,c.length+1)===c+"-"}}:function(b){return Z.attr(b,a)!=null}},CHILD:function(a,b,c,d){if(a==="nth"){var e=m++;return function(a){var b,f,g=0,h=a;if(c===1&&d===0)return!0;b=a.parentNode;if(b&&(b[q]!==e||!a.sizset)){for(h=b.firstChild;h;h=h.nextSibling)if(h.nodeType===1){h.sizset=++g;if(h===a)break}b[q]=e}return f=a.sizset-d,c===0?f===0:f%c===0&&f/c>=0}}return function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b,c,d){var e=$.pseudos[a]||$.pseudos[a.toLowerCase()];return e||Z.error("unsupported pseudo: "+a),e.sizzleFilter?e(b,c,d):e}},pseudos:{not:Q(function(a,b,c){var d=bl(a.replace(A,"$1"),b,c);return function(a){return!d(a)}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!$.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},contains:Q(function(a){return function(b){return(b.textContent||b.innerText||bc(b)).indexOf(a)>-1}}),has:Q(function(a){return function(b){return Z(a,b).length>0}}),header:function(a){return I.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:R("radio"),checkbox:R("checkbox"),file:R("file"),password:R("password"),image:R("image"),submit:S("submit"),reset:S("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return J.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b,c){return c?a.slice(1):[a[0]]},last:function(a,b,c){var d=a.pop();return c?a:[d]},even:function(a,b,c){var d=[],e=c?1:0,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},odd:function(a,b,c){var d=[],e=c?0:1,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},lt:function(a,b,c){return c?a.slice(+b):a.slice(0,+b)},gt:function(a,b,c){return c?a.slice(0,+b+1):a.slice(+b+1)},eq:function(a,b,c){var d=a.splice(+b,1);return c?a:d}}};$.setFilters.nth=$.setFilters.eq,$.filters=$.pseudos,X||($.attrHandle={href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}}),V&&($.order.push("NAME"),$.find.NAME=function(a,b){if(typeof b.getElementsByName!==j)return b.getElementsByName(a)}),Y&&($.order.splice(1,0,"CLASS"),$.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!==j&&!c)return b.getElementsByClassName(a)});try{n.call(i.childNodes,0)[0].nodeType}catch(_){n=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}var ba=Z.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},bb=Z.contains=i.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:i.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},bc=Z.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=bc(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=bc(b);return c};Z.attr=function(a,b){var c,d=ba(a);return d||(b=b.toLowerCase()),$.attrHandle[b]?$.attrHandle[b](a):U||d?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},Z.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},[0,0].sort(function(){return l=0}),i.compareDocumentPosition?e=function(a,b){return a===b?(k=!0,0):(!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition:a.compareDocumentPosition(b)&4)?-1:1}:(e=function(a,b){if(a===b)return k=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],g=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return f(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)g.unshift(j),j=j.parentNode;c=e.length,d=g.length;for(var l=0;l<c&&l<d;l++)if(e[l]!==g[l])return f(e[l],g[l]);return l===c?f(a,g[l],-1):f(e[l],b,1)},f=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),Z.uniqueSort=function(a){var b,c=1;if(e){k=l,a.sort(e);if(k)for(;b=a[c];c++)b===a[c-1]&&a.splice(c--,1)}return a};var bl=Z.compile=function(a,b,c){var d,e,f,g=O[a];if(g&&g.context===b)return g;e=bg(a,b,c);for(f=0;d=e[f];f++)e[f]=bj(d,b,c);return g=O[a]=bk(e),g.context=b,g.runs=g.dirruns=0,P.push(a),P.length>$.cacheLength&&delete O[P.shift()],g};Z.matches=function(a,b){return Z(a,null,null,b)},Z.matchesSelector=function(a,b){return Z(b,null,null,[a]).length>0};var bm=function(a,b,e,f,g){a=a.replace(A,"$1");var h,i,j,k,l,m,p,q,r,s=a.match(C),t=a.match(E),u=b.nodeType;if(L.POS.test(a))return bf(a,b,e,f,s);if(f)h=n.call(f,0);else if(s&&s.length===1){if(t.length>1&&u===9&&!g&&(s=L.ID.exec(t[0]))){b=$.find.ID(s[1],b,g)[0];if(!b)return e;a=a.slice(t.shift().length)}q=(s=G.exec(t[0]))&&!s.index&&b.parentNode||b,r=t.pop(),m=r.split(":not")[0];for(j=0,k=$.order.length;j<k;j++){p=$.order[j];if(s=L[p].exec(m)){h=$.find[p]((s[1]||"").replace(K,""),q,g);if(h==null)continue;m===r&&(a=a.slice(0,a.length-r.length)+m.replace(L[p],""),a||o.apply(e,n.call(h,0)));break}}}if(a){i=bl(a,b,g),d=i.dirruns++,h==null&&(h=$.find.TAG("*",G.test(a)&&b.parentNode||b));for(j=0;l=h[j];j++)c=i.runs++,i(l,b)&&e.push(l)}return e};h.querySelectorAll&&function(){var a,b=bm,c=/'|\\/g,d=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,e=[],f=[":active"],g=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||i.msMatchesSelector;T(function(a){a.innerHTML="<select><option selected></option></select>",a.querySelectorAll("[selected]").length||e.push("\\["+r+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),T(function(a){a.innerHTML="<p test=''></p>",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+r+"*(?:\"\"|'')"),a.innerHTML="<input type='hidden'>",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=e.length&&new RegExp(e.join("|")),bm=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a)))if(d.nodeType===9)try{return o.apply(f,n.call(d.querySelectorAll(a),0)),f}catch(i){}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var j=d.getAttribute("id"),k=j||q,l=G.test(a)&&d.parentNode||d;j?k=k.replace(c,"\\$&"):d.setAttribute("id",k);try{return o.apply(f,n.call(l.querySelectorAll(a.replace(C,"[id='"+k+"'] $&")),0)),f}catch(i){}finally{j||d.removeAttribute("id")}}return b(a,d,f,g,h)},g&&(T(function(b){a=g.call(b,"div");try{g.call(b,"[test!='']:sizzle"),f.push($.match.PSEUDO)}catch(c){}}),f=new RegExp(f.join("|")),Z.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!ba(b)&&!f.test(c)&&(!e||!e.test(c)))try{var h=g.call(b,c);if(h||a||b.document&&b.document.nodeType!==11)return h}catch(i){}return Z(c,null,null,[b]).length>0})}(),Z.attr=p.attr,p.find=Z,p.expr=Z.selectors,p.expr[":"]=p.expr.pseudos,p.unique=Z.uniqueSort,p.text=Z.getText,p.isXMLDoc=Z.isXML,p.contains=Z.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b<c;b++)if(p.contains(h[b],this))return!0});g=this.pushStack("","find",a);for(b=0,c=this.length;b<c;b++){d=g.length,p.find(a,this[b],g);if(b>0)for(e=d;e<g.length;e++)for(f=0;f<d;f++)if(g[f]===g[e]){g.splice(e--,1);break}}return g},has:function(a){var b,c=p(a,this),d=c.length;return this.filter(function(){for(b=0;b<d;b++)if(p.contains(this,c[b]))return!0})},not:function(a){return this.pushStack(bj(this,a,!1),"not",a)},filter:function(a){return this.pushStack(bj(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?bf.test(a)?p(a,this.context).index(this[0])>=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d<e;d++){c=this[d];while(c&&c.ownerDocument&&c!==b&&c.nodeType!==11){if(g?g.index(c)>-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/<tbody/i,br=/<|&#?\w+;/,bs=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,bu=new RegExp("<(?:"+bl+")[\\s/>]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,bz={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X<div>","</div>"]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(f){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){return bh(this[0])?this.length?this.pushStack(p(p.isFunction(a)?a():a),"replaceWith",a):this:p.isFunction(a)?this.each(function(b){var c=p(this),d=c.html();c.replaceWith(a.call(this,b,d))}):(typeof a!="string"&&(a=p(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;p(this).remove(),b?p(b).before(a):p(c).append(a)}))},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){a=[].concat.apply([],a);var e,f,g,h,i=0,j=a[0],k=[],l=this.length;if(!p.support.checkClone&&l>1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i<l;i++)d.call(c&&p.nodeName(this[i],"table")?bC(this[i],"tbody"):this[i],i===h?g:p.clone(g,!0,!0))}g=f=null,k.length&&p.each(k,function(a,b){b.src?p.ajax?p.ajax({url:b.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):p.error("no ajax"):p.globalEval((b.text||b.textContent||b.innerHTML||"").replace(by,"")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),p.buildFragment=function(a,c,d){var f,g,h,i=a[0];return c=c||e,c=(c[0]||c).ownerDocument||c[0]||c,typeof c.createDocumentFragment=="undefined"&&(c=e),a.length===1&&typeof i=="string"&&i.length<512&&c===e&&i.charAt(0)==="<"&&!bt.test(i)&&(p.support.checkClone||!bw.test(i))&&(p.support.html5Clone||!bu.test(i))&&(g=!0,f=p.fragments[i],h=f!==b),f||(f=c.createDocumentFragment(),p.clean(a,c,f,d),g&&(p.fragments[i]=h&&f)),{fragment:f,cacheable:g}},p.fragments={},p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){p.fn[a]=function(c){var d,e=0,f=[],g=p(c),h=g.length,i=this.length===1&&this[0].parentNode;if((i==null||i&&i.nodeType===11&&i.childNodes.length===1)&&h===1)return g[b](this[0]),this;for(;e<h;e++)d=(e>0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=0,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(g=b===e&&bA;(h=a[s])!=null;s++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{g=g||bk(b),l=l||g.appendChild(b.createElement("div")),h=h.replace(bo,"<$1></$2>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]==="<table>"&&!m?l.childNodes:[];for(f=n.length-1;f>=0;--f)p.nodeName(n[f],"tbody")&&!n[f].childNodes.length&&n[f].parentNode.removeChild(n[f])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l=g.lastChild}h.nodeType?t.push(h):t=p.merge(t,h)}l&&(g.removeChild(l),h=l=g=null);if(!p.support.appendChecked)for(s=0;(h=t[s])!=null;s++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(s=0;(h=t[s])!=null;s++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[s+1,0].concat(r)),s+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^margin/,bO=new RegExp("^("+q+")(.*)$","i"),bP=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bQ=new RegExp("^([-+])=("+q+")","i"),bR={},bS={position:"absolute",visibility:"hidden",display:"block"},bT={letterSpacing:0,fontWeight:400,lineHeight:1},bU=["Top","Right","Bottom","Left"],bV=["Webkit","O","Moz","ms"],bW=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return bZ(this,!0)},hide:function(){return bZ(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bW.apply(this,arguments):this.each(function(){(c?a:bY(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bX(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bQ.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bX(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bT&&(f=bT[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(a,b){var c,d,e,f,g=getComputedStyle(a,null),h=a.style;return g&&(c=g[b],c===""&&!p.contains(a.ownerDocument.documentElement,a)&&(c=p.style(a,b)),bP.test(c)&&bN.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=c,c=g.width,h.width=d,h.minWidth=e,h.maxWidth=f)),c}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bP.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0||bH(a,"display")!=="none"?ca(a,b,d):p.swap(a,bS,function(){return ca(a,b,d)})},set:function(a,c,d){return b$(a,c,d?b_(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bP.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bU[d]+b]=e[d]||e[d-2]||e[0];return f}},bN.test(a)||(p.cssHooks[a+b].set=b$)});var cc=/%20/g,cd=/\[\]$/,ce=/\r?\n/g,cf=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,cg=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||cg.test(this.nodeName)||cf.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(ce,"\r\n")}}):{name:b.name,value:c.replace(ce,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ch(d,a[d],c,f);return e.join("&").replace(cc,"+")};var ci,cj,ck=/#.*$/,cl=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cm=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,cn=/^(?:GET|HEAD)$/,co=/^\/\//,cp=/\?/,cq=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cr=/([?&])_=[^&]*/,cs=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,ct=p.fn.load,cu={},cv={},cw=["*/"]+["*"];try{ci=f.href}catch(cx){ci=e.createElement("a"),ci.href="",ci=ci.href}cj=cs.exec(ci.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&ct)return ct.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("<div>").append(a.replace(cq,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cA(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cA(a,b),a},ajaxSettings:{url:ci,isLocal:cm.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cw},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cy(cu),ajaxTransport:cy(cv),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cB(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cC(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=""+(c||y),k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cl.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(ck,"").replace(co,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=cs.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]==cj[1]&&i[2]==cj[2]&&(i[3]||(i[1]==="http:"?80:443))==(cj[3]||(cj[1]==="http:"?80:443)))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cz(cu,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!cn.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cp.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cr,"$1_="+z);l.url=A+(A===l.url?(cp.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cw+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cz(cv,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cD=[],cE=/\?/,cF=/(=)\?(?=&|$)|\?\?/,cG=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cD.pop()||p.expando+"_"+cG++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cF.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cF.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cF,"$1"+f):m?c.data=i.replace(cF,"$1"+f):k&&(c.url+=(cE.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cD.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cH,cI=a.ActiveXObject?function(){for(var a in cH)cH[a](0,1)}:!1,cJ=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cK()||cL()}:cK,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cI&&delete cH[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cJ,cI&&(cH||(cH={},p(a).unload(cI)),cH[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cM,cN,cO=/^(?:toggle|show|hide)$/,cP=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cQ=/queueHooks$/,cR=[cX],cS={"*":[function(a,b){var c,d,e,f=this.createTween(a,b),g=cP.exec(b),h=f.cur(),i=+h||0,j=1;if(g){c=+g[2],d=g[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&i){i=p.css(f.elem,a,!0)||c||1;do e=j=j||".5",i=i/j,p.style(f.elem,a,i+d),j=f.cur()/h;while(j!==1&&j!==e)}f.unit=d,f.start=i,f.end=g[1]?i+(g[1]+1)*c:c}return f}]};p.Animation=p.extend(cV,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d<e;d++)c=a[d],cS[c]=cS[c]||[],cS[c].unshift(b)},prefilter:function(a,b){b?cR.unshift(a):cR.push(a)}}),p.Tween=cY,cY.prototype={constructor:cY,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(p.cssNumber[c]?"":"px")},cur:function(){var a=cY.propHooks[this.prop];return a&&a.get?a.get(this):cY.propHooks._default.get(this)},run:function(a){var b,c=cY.propHooks[this.prop];return this.pos=b=p.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration),this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):cY.propHooks._default.set(this),this}},cY.prototype.init.prototype=cY.prototype,cY.propHooks={_default:{get:function(a){var b;return a.elem[a.prop]==null||!!a.elem.style&&a.elem.style[a.prop]!=null?(b=p.css(a.elem,a.prop,!1,""),!b||b==="auto"?0:b):a.elem[a.prop]},set:function(a){p.fx.step[a.prop]?p.fx.step[a.prop](a):a.elem.style&&(a.elem.style[p.cssProps[a.prop]]!=null||p.cssHooks[a.prop])?p.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},cY.propHooks.scrollTop=cY.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},p.each(["toggle","show","hide"],function(a,b){var c=p.fn[b];p.fn[b]=function(d,e,f){return d==null||typeof d=="boolean"||!a&&p.isFunction(d)&&p.isFunction(e)?c.apply(this,arguments):this.animate(cZ(b,!0),d,e,f)}}),p.fn.extend({fadeTo:function(a,b,c,d){return this.filter(bY).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=p.isEmptyObject(a),f=p.speed(b,c,d),g=function(){var b=cV(this,p.extend({},a),f);e&&b.stop(!0)};return e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,c=a!=null&&a+"queueHooks",f=p.timers,g=p._data(this);if(c)g[c]&&g[c].stop&&e(g[c]);else for(c in g)g[c]&&g[c].stop&&cQ.test(c)&&e(g[c]);for(c=f.length;c--;)f[c].elem===this&&(a==null||f[c].queue===a)&&(f[c].anim.stop(d),b=!1,f.splice(c,1));(b||!d)&&p.dequeue(this,a)})}}),p.each({slideDown:cZ("show"),slideUp:cZ("hide"),slideToggle:cZ("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){p.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),p.speed=function(a,b,c){var d=a&&typeof a=="object"?p.extend({},a):{complete:c||!c&&b||p.isFunction(a)&&a,duration:a,easing:c&&b||b&&!p.isFunction(b)&&b};d.duration=p.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in p.fx.speeds?p.fx.speeds[d.duration]:p.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";return d.old=d.complete,d.complete=function(){p.isFunction(d.old)&&d.old.call(this),d.queue&&p.dequeue(this,d.queue)},d},p.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},p.timers=[],p.fx=cY.prototype.init,p.fx.tick=function(){var a,b=p.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||p.fx.stop()},p.fx.timer=function(a){a()&&p.timers.push(a)&&!cN&&(cN=setInterval(p.fx.tick,p.fx.interval))},p.fx.interval=13,p.fx.stop=function(){clearInterval(cN),cN=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fx.step={},p.expr&&p.expr.filters&&(p.expr.filters.animated=function(a){return p.grep(p.timers,function(b){return a===b.elem}).length});var c$=/^(?:body|html)$/i;p.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){p.offset.setOffset(this,a,b)});var c,d,e,f,g,h,i,j,k,l,m=this[0],n=m&&m.ownerDocument;if(!n)return;return(e=n.body)===m?p.offset.bodyOffset(m):(d=n.documentElement,p.contains(d,m)?(c=m.getBoundingClientRect(),f=c_(n),g=d.clientTop||e.clientTop||0,h=d.clientLeft||e.clientLeft||0,i=f.pageYOffset||d.scrollTop,j=f.pageXOffset||d.scrollLeft,k=c.top+i-g,l=c.left+j-h,{top:k,left:l}):{top:0,left:0})},p.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return p.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(p.css(a,"marginTop"))||0,c+=parseFloat(p.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=p.css(a,"position");d==="static"&&(a.style.position="relative");var e=p(a),f=e.offset(),g=p.css(a,"top"),h=p.css(a,"left"),i=(d==="absolute"||d==="fixed")&&p.inArray("auto",[g,h])>-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c$.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c$.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=c_(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js
index a9756be3..8c1ae26c 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js
@@ -1,25 +1,25 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M<N?O[P]||(R[M+1]&&isNaN(R[M+1])?{}:[]):J}}else{if($.isArray(H[P])){H[P].push(J)}else{if(H[P]!==i){H[P]=[H[P],J]}else{H[P]=J}}}}else{if(P){H[P]=F?i:""}}});return H};function z(H,F,G){if(F===i||typeof F==="boolean"){G=F;F=a[H?D:A]()}else{F=E(F)?F.replace(H?w:x,""):F}return l(F,G)}l[A]=B(z,0);l[D]=v=B(z,1);$[y]||($[y]=function(F){return $.extend(C,F)})({a:k,base:k,iframe:t,img:t,input:t,form:"action",link:k,script:t});j=$[y];function s(I,G,H,F){if(!E(H)&&typeof H!=="object"){F=H;H=G;G=i}return this.each(function(){var L=$(this),J=G||j()[(this.nodeName||"").toLowerCase()]||"",K=J&&L.attr(J)||"";L.attr(J,a[I](K,H,F))})}$.fn[A]=B(s,A);$.fn[D]=B(s,D);b.pushState=q=function(I,F){if(E(I)&&/^#/.test(I)&&F===i){F=2}var H=I!==i,G=c(p[g][k],H?I:{},H?F:2);p[g][k]=G+(/#/.test(G)?"":"#")};b.getState=u=function(F,G){return F===i||typeof F==="boolean"?v(F):v(G)[F]};b.removeState=function(F){var G={};if(F!==i){G=u();$.each($.isArray(F)?F:arguments,function(I,H){delete G[H]})}q(G,2)};e[d]=$.extend(e[d],{add:function(F){var H;function G(J){var I=J[D]=c();J.getState=function(K,L){return K===i||typeof K==="boolean"?l(I,K):l(I,L)[K]};H.apply(this,arguments)}if($.isFunction(F)){H=F;return G}else{H=F.handler;F.handler=G}}})})(jQuery,this);
-/*
- * jQuery hashchange event - v1.2 - 2/11/2010
- * http://benalman.com/projects/jquery-hashchange-plugin/
- *
- * Copyright (c) 2010 "Cowboy" Ben Alman
- * Dual licensed under the MIT and GPL licenses.
- * http://benalman.com/about/license/
- */
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M<N?O[P]||(R[M+1]&&isNaN(R[M+1])?{}:[]):J}}else{if($.isArray(H[P])){H[P].push(J)}else{if(H[P]!==i){H[P]=[H[P],J]}else{H[P]=J}}}}else{if(P){H[P]=F?i:""}}});return H};function z(H,F,G){if(F===i||typeof F==="boolean"){G=F;F=a[H?D:A]()}else{F=E(F)?F.replace(H?w:x,""):F}return l(F,G)}l[A]=B(z,0);l[D]=v=B(z,1);$[y]||($[y]=function(F){return $.extend(C,F)})({a:k,base:k,iframe:t,img:t,input:t,form:"action",link:k,script:t});j=$[y];function s(I,G,H,F){if(!E(H)&&typeof H!=="object"){F=H;H=G;G=i}return this.each(function(){var L=$(this),J=G||j()[(this.nodeName||"").toLowerCase()]||"",K=J&&L.attr(J)||"";L.attr(J,a[I](K,H,F))})}$.fn[A]=B(s,A);$.fn[D]=B(s,D);b.pushState=q=function(I,F){if(E(I)&&/^#/.test(I)&&F===i){F=2}var H=I!==i,G=c(p[g][k],H?I:{},H?F:2);p[g][k]=G+(/#/.test(G)?"":"#")};b.getState=u=function(F,G){return F===i||typeof F==="boolean"?v(F):v(G)[F]};b.removeState=function(F){var G={};if(F!==i){G=u();$.each($.isArray(F)?F:arguments,function(I,H){delete G[H]})}q(G,2)};e[d]=$.extend(e[d],{add:function(F){var H;function G(J){var I=J[D]=c();J.getState=function(K,L){return K===i||typeof K==="boolean"?l(I,K):l(I,L)[K]};H.apply(this,arguments)}if($.isFunction(F)){H=F;return G}else{H=F.handler;F.handler=G}}})})(jQuery,this);
+/*
+ * jQuery hashchange event - v1.2 - 2/11/2010
+ * http://benalman.com/projects/jquery-hashchange-plugin/
+ *
+ * Copyright (c) 2010 "Cowboy" Ben Alman
+ * Dual licensed under the MIT and GPL licenses.
+ * http://benalman.com/about/license/
+ */
(function($,i,b){var j,k=$.event.special,c="location",d="hashchange",l="href",f=$.browser,g=document.documentMode,h=f.msie&&(g===b||g<8),e="on"+d in i&&!h;function a(m){m=m||i[c][l];return m.replace(/^[^#]*#?(.*)$/,"$1")}$[d+"Delay"]=100;k[d]=$.extend(k[d],{setup:function(){if(e){return false}$(j.start)},teardown:function(){if(e){return false}$(j.stop)}});j=(function(){var m={},r,n,o,q;function p(){o=q=function(s){return s};if(h){n=$('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.slideto.min.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.slideto.min.js
index 6c79a233..09b15846 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.slideto.min.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.slideto.min.js
@@ -1,16 +1,16 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-(function(b){b.fn.slideto=function(a){a=b.extend({slide_duration:"slow",highlight_duration:3E3,highlight:true,highlight_color:"#FFFF99"},a);return this.each(function(){obj=b(this);b("body").animate({scrollTop:obj.offset().top},a.slide_duration,function(){a.highlight&&b.ui.version&&obj.effect("highlight",{color:a.highlight_color},a.highlight_duration)})})}})(jQuery);
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+(function(b){b.fn.slideto=function(a){a=b.extend({slide_duration:"slow",highlight_duration:3E3,highlight:true,highlight_color:"#FFFF99"},a);return this.each(function(){obj=b(this);b("body").animate({scrollTop:obj.offset().top},a.slide_duration,function(){a.highlight&&b.ui.version&&obj.effect("highlight",{color:a.highlight_color},a.highlight_duration)})})}})(jQuery);
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.wiggle.min.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.wiggle.min.js
index 35e7be63..6d9404d6 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.wiggle.min.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/jquery.wiggle.min.js
@@ -1,23 +1,23 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
-jQuery Wiggle
-Author: WonderGroup, Jordan Thomas
-URL: http://labs.wondergroup.com/demos/mini-ui/index.html
-License: MIT (http://en.wikipedia.org/wiki/MIT_License)
-*/
-jQuery.fn.wiggle=function(o){var d={speed:50,wiggles:3,travel:5,callback:null};var o=jQuery.extend(d,o);return this.each(function(){var cache=this;var wrap=jQuery(this).wrap('<div class="wiggle-wrap"></div>').css("position","relative");var calls=0;for(i=1;i<=o.wiggles;i++){jQuery(this).animate({left:"-="+o.travel},o.speed).animate({left:"+="+o.travel*2},o.speed*2).animate({left:"-="+o.travel},o.speed,function(){calls++;if(jQuery(cache).parent().hasClass('wiggle-wrap')){jQuery(cache).parent().replaceWith(cache);}
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/*
+jQuery Wiggle
+Author: WonderGroup, Jordan Thomas
+URL: http://labs.wondergroup.com/demos/mini-ui/index.html
+License: MIT (http://en.wikipedia.org/wiki/MIT_License)
+*/
+jQuery.fn.wiggle=function(o){var d={speed:50,wiggles:3,travel:5,callback:null};var o=jQuery.extend(d,o);return this.each(function(){var cache=this;var wrap=jQuery(this).wrap('<div class="wiggle-wrap"></div>').css("position","relative");var calls=0;for(i=1;i<=o.wiggles;i++){jQuery(this).animate({left:"-="+o.travel},o.speed).animate({left:"+="+o.travel*2},o.speed*2).animate({left:"-="+o.travel},o.speed,function(){calls++;if(jQuery(cache).parent().hasClass('wiggle-wrap')){jQuery(cache).parent().replaceWith(cache);}
if(calls==o.wiggles&&jQuery.isFunction(o.callback)){o.callback();}});}});}; \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/marked.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/marked.js
index 7940c03c..51111451 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/marked.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/marked.js
@@ -1,1281 +1,1281 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-;(function() {
-
-/**
- * Block-Level Grammar
- */
-
-var block = {
- newline: /^\n+/,
- code: /^( {4}[^\n]+\n*)+/,
- fences: noop,
- hr: /^( *[-*_]){3,} *(?:\n+|$)/,
- heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
- nptable: noop,
- lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
- blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,
- list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
- html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
- table: noop,
- paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,
- text: /^[^\n]+/
-};
-
-block.bullet = /(?:[*+-]|\d+\.)/;
-block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;
-block.item = replace(block.item, 'gm')
- (/bull/g, block.bullet)
- ();
-
-block.list = replace(block.list)
- (/bull/g, block.bullet)
- ('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')
- ('def', '\\n+(?=' + block.def.source + ')')
- ();
-
-block.blockquote = replace(block.blockquote)
- ('def', block.def)
- ();
-
-block._tag = '(?!(?:'
- + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'
- + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'
- + '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';
-
-block.html = replace(block.html)
- ('comment', /<!--[\s\S]*?-->/)
- ('closed', /<(tag)[\s\S]+?<\/\1>/)
- ('closing', /<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)
- (/tag/g, block._tag)
- ();
-
-block.paragraph = replace(block.paragraph)
- ('hr', block.hr)
- ('heading', block.heading)
- ('lheading', block.lheading)
- ('blockquote', block.blockquote)
- ('tag', '<' + block._tag)
- ('def', block.def)
- ();
-
-/**
- * Normal Block Grammar
- */
-
-block.normal = merge({}, block);
-
-/**
- * GFM Block Grammar
- */
-
-block.gfm = merge({}, block.normal, {
- fences: /^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,
- paragraph: /^/
-});
-
-block.gfm.paragraph = replace(block.paragraph)
- ('(?!', '(?!'
- + block.gfm.fences.source.replace('\\1', '\\2') + '|'
- + block.list.source.replace('\\1', '\\3') + '|')
- ();
-
-/**
- * GFM + Tables Block Grammar
- */
-
-block.tables = merge({}, block.gfm, {
- nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,
- table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/
-});
-
-/**
- * Block Lexer
- */
-
-function Lexer(options) {
- this.tokens = [];
- this.tokens.links = {};
- this.options = options || marked.defaults;
- this.rules = block.normal;
-
- if (this.options.gfm) {
- if (this.options.tables) {
- this.rules = block.tables;
- } else {
- this.rules = block.gfm;
- }
- }
-}
-
-/**
- * Expose Block Rules
- */
-
-Lexer.rules = block;
-
-/**
- * Static Lex Method
- */
-
-Lexer.lex = function(src, options) {
- var lexer = new Lexer(options);
- return lexer.lex(src);
-};
-
-/**
- * Preprocessing
- */
-
-Lexer.prototype.lex = function(src) {
- src = src
- .replace(/\r\n|\r/g, '\n')
- .replace(/\t/g, ' ')
- .replace(/\u00a0/g, ' ')
- .replace(/\u2424/g, '\n');
-
- return this.token(src, true);
-};
-
-/**
- * Lexing
- */
-
-Lexer.prototype.token = function(src, top, bq) {
- var src = src.replace(/^ +$/gm, '')
- , next
- , loose
- , cap
- , bull
- , b
- , item
- , space
- , i
- , l;
-
- while (src) {
- // newline
- if (cap = this.rules.newline.exec(src)) {
- src = src.substring(cap[0].length);
- if (cap[0].length > 1) {
- this.tokens.push({
- type: 'space'
- });
- }
- }
-
- // code
- if (cap = this.rules.code.exec(src)) {
- src = src.substring(cap[0].length);
- cap = cap[0].replace(/^ {4}/gm, '');
- this.tokens.push({
- type: 'code',
- text: !this.options.pedantic
- ? cap.replace(/\n+$/, '')
- : cap
- });
- continue;
- }
-
- // fences (gfm)
- if (cap = this.rules.fences.exec(src)) {
- src = src.substring(cap[0].length);
- this.tokens.push({
- type: 'code',
- lang: cap[2],
- text: cap[3]
- });
- continue;
- }
-
- // heading
- if (cap = this.rules.heading.exec(src)) {
- src = src.substring(cap[0].length);
- this.tokens.push({
- type: 'heading',
- depth: cap[1].length,
- text: cap[2]
- });
- continue;
- }
-
- // table no leading pipe (gfm)
- if (top && (cap = this.rules.nptable.exec(src))) {
- src = src.substring(cap[0].length);
-
- item = {
- type: 'table',
- header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
- align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
- cells: cap[3].replace(/\n$/, '').split('\n')
- };
-
- for (i = 0; i < item.align.length; i++) {
- if (/^ *-+: *$/.test(item.align[i])) {
- item.align[i] = 'right';
- } else if (/^ *:-+: *$/.test(item.align[i])) {
- item.align[i] = 'center';
- } else if (/^ *:-+ *$/.test(item.align[i])) {
- item.align[i] = 'left';
- } else {
- item.align[i] = null;
- }
- }
-
- for (i = 0; i < item.cells.length; i++) {
- item.cells[i] = item.cells[i].split(/ *\| */);
- }
-
- this.tokens.push(item);
-
- continue;
- }
-
- // lheading
- if (cap = this.rules.lheading.exec(src)) {
- src = src.substring(cap[0].length);
- this.tokens.push({
- type: 'heading',
- depth: cap[2] === '=' ? 1 : 2,
- text: cap[1]
- });
- continue;
- }
-
- // hr
- if (cap = this.rules.hr.exec(src)) {
- src = src.substring(cap[0].length);
- this.tokens.push({
- type: 'hr'
- });
- continue;
- }
-
- // blockquote
- if (cap = this.rules.blockquote.exec(src)) {
- src = src.substring(cap[0].length);
-
- this.tokens.push({
- type: 'blockquote_start'
- });
-
- cap = cap[0].replace(/^ *> ?/gm, '');
-
- // Pass `top` to keep the current
- // "toplevel" state. This is exactly
- // how markdown.pl works.
- this.token(cap, top, true);
-
- this.tokens.push({
- type: 'blockquote_end'
- });
-
- continue;
- }
-
- // list
- if (cap = this.rules.list.exec(src)) {
- src = src.substring(cap[0].length);
- bull = cap[2];
-
- this.tokens.push({
- type: 'list_start',
- ordered: bull.length > 1
- });
-
- // Get each top-level item.
- cap = cap[0].match(this.rules.item);
-
- next = false;
- l = cap.length;
- i = 0;
-
- for (; i < l; i++) {
- item = cap[i];
-
- // Remove the list item's bullet
- // so it is seen as the next token.
- space = item.length;
- item = item.replace(/^ *([*+-]|\d+\.) +/, '');
-
- // Outdent whatever the
- // list item contains. Hacky.
- if (~item.indexOf('\n ')) {
- space -= item.length;
- item = !this.options.pedantic
- ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')
- : item.replace(/^ {1,4}/gm, '');
- }
-
- // Determine whether the next list item belongs here.
- // Backpedal if it does not belong in this list.
- if (this.options.smartLists && i !== l - 1) {
- b = block.bullet.exec(cap[i + 1])[0];
- if (bull !== b && !(bull.length > 1 && b.length > 1)) {
- src = cap.slice(i + 1).join('\n') + src;
- i = l - 1;
- }
- }
-
- // Determine whether item is loose or not.
- // Use: /(^|\n)(?! )[^\n]+\n\n(?!\s*$)/
- // for discount behavior.
- loose = next || /\n\n(?!\s*$)/.test(item);
- if (i !== l - 1) {
- next = item.charAt(item.length - 1) === '\n';
- if (!loose) loose = next;
- }
-
- this.tokens.push({
- type: loose
- ? 'loose_item_start'
- : 'list_item_start'
- });
-
- // Recurse.
- this.token(item, false, bq);
-
- this.tokens.push({
- type: 'list_item_end'
- });
- }
-
- this.tokens.push({
- type: 'list_end'
- });
-
- continue;
- }
-
- // html
- if (cap = this.rules.html.exec(src)) {
- src = src.substring(cap[0].length);
- this.tokens.push({
- type: this.options.sanitize
- ? 'paragraph'
- : 'html',
- pre: cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style',
- text: cap[0]
- });
- continue;
- }
-
- // def
- if ((!bq && top) && (cap = this.rules.def.exec(src))) {
- src = src.substring(cap[0].length);
- this.tokens.links[cap[1].toLowerCase()] = {
- href: cap[2],
- title: cap[3]
- };
- continue;
- }
-
- // table (gfm)
- if (top && (cap = this.rules.table.exec(src))) {
- src = src.substring(cap[0].length);
-
- item = {
- type: 'table',
- header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
- align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
- cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n')
- };
-
- for (i = 0; i < item.align.length; i++) {
- if (/^ *-+: *$/.test(item.align[i])) {
- item.align[i] = 'right';
- } else if (/^ *:-+: *$/.test(item.align[i])) {
- item.align[i] = 'center';
- } else if (/^ *:-+ *$/.test(item.align[i])) {
- item.align[i] = 'left';
- } else {
- item.align[i] = null;
- }
- }
-
- for (i = 0; i < item.cells.length; i++) {
- item.cells[i] = item.cells[i]
- .replace(/^ *\| *| *\| *$/g, '')
- .split(/ *\| */);
- }
-
- this.tokens.push(item);
-
- continue;
- }
-
- // top-level paragraph
- if (top && (cap = this.rules.paragraph.exec(src))) {
- src = src.substring(cap[0].length);
- this.tokens.push({
- type: 'paragraph',
- text: cap[1].charAt(cap[1].length - 1) === '\n'
- ? cap[1].slice(0, -1)
- : cap[1]
- });
- continue;
- }
-
- // text
- if (cap = this.rules.text.exec(src)) {
- // Top-level should never reach here.
- src = src.substring(cap[0].length);
- this.tokens.push({
- type: 'text',
- text: cap[0]
- });
- continue;
- }
-
- if (src) {
- throw new
- Error('Infinite loop on byte: ' + src.charCodeAt(0));
- }
- }
-
- return this.tokens;
-};
-
-/**
- * Inline-Level Grammar
- */
-
-var inline = {
- escape: /^\\([\\`*{}\[\]()#+\-.!_>])/,
- autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
- url: noop,
- tag: /^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,
- link: /^!?\[(inside)\]\(href\)/,
- reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/,
- nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
- strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
- em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
- code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
- br: /^ {2,}\n(?!\s*$)/,
- del: noop,
- text: /^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/
-};
-
-inline._inside = /(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/;
-inline._href = /\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/;
-
-inline.link = replace(inline.link)
- ('inside', inline._inside)
- ('href', inline._href)
- ();
-
-inline.reflink = replace(inline.reflink)
- ('inside', inline._inside)
- ();
-
-/**
- * Normal Inline Grammar
- */
-
-inline.normal = merge({}, inline);
-
-/**
- * Pedantic Inline Grammar
- */
-
-inline.pedantic = merge({}, inline.normal, {
- strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
- em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/
-});
-
-/**
- * GFM Inline Grammar
- */
-
-inline.gfm = merge({}, inline.normal, {
- escape: replace(inline.escape)('])', '~|])')(),
- url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
- del: /^~~(?=\S)([\s\S]*?\S)~~/,
- text: replace(inline.text)
- (']|', '~]|')
- ('|', '|https?://|')
- ()
-});
-
-/**
- * GFM + Line Breaks Inline Grammar
- */
-
-inline.breaks = merge({}, inline.gfm, {
- br: replace(inline.br)('{2,}', '*')(),
- text: replace(inline.gfm.text)('{2,}', '*')()
-});
-
-/**
- * Inline Lexer & Compiler
- */
-
-function InlineLexer(links, options) {
- this.options = options || marked.defaults;
- this.links = links;
- this.rules = inline.normal;
- this.renderer = this.options.renderer || new Renderer;
- this.renderer.options = this.options;
-
- if (!this.links) {
- throw new
- Error('Tokens array requires a `links` property.');
- }
-
- if (this.options.gfm) {
- if (this.options.breaks) {
- this.rules = inline.breaks;
- } else {
- this.rules = inline.gfm;
- }
- } else if (this.options.pedantic) {
- this.rules = inline.pedantic;
- }
-}
-
-/**
- * Expose Inline Rules
- */
-
-InlineLexer.rules = inline;
-
-/**
- * Static Lexing/Compiling Method
- */
-
-InlineLexer.output = function(src, links, options) {
- var inline = new InlineLexer(links, options);
- return inline.output(src);
-};
-
-/**
- * Lexing/Compiling
- */
-
-InlineLexer.prototype.output = function(src) {
- var out = ''
- , link
- , text
- , href
- , cap;
-
- while (src) {
- // escape
- if (cap = this.rules.escape.exec(src)) {
- src = src.substring(cap[0].length);
- out += cap[1];
- continue;
- }
-
- // autolink
- if (cap = this.rules.autolink.exec(src)) {
- src = src.substring(cap[0].length);
- if (cap[2] === '@') {
- text = cap[1].charAt(6) === ':'
- ? this.mangle(cap[1].substring(7))
- : this.mangle(cap[1]);
- href = this.mangle('mailto:') + text;
- } else {
- text = escape(cap[1]);
- href = text;
- }
- out += this.renderer.link(href, null, text);
- continue;
- }
-
- // url (gfm)
- if (!this.inLink && (cap = this.rules.url.exec(src))) {
- src = src.substring(cap[0].length);
- text = escape(cap[1]);
- href = text;
- out += this.renderer.link(href, null, text);
- continue;
- }
-
- // tag
- if (cap = this.rules.tag.exec(src)) {
- if (!this.inLink && /^<a /i.test(cap[0])) {
- this.inLink = true;
- } else if (this.inLink && /^<\/a>/i.test(cap[0])) {
- this.inLink = false;
- }
- src = src.substring(cap[0].length);
- out += this.options.sanitize
- ? escape(cap[0])
- : cap[0];
- continue;
- }
-
- // link
- if (cap = this.rules.link.exec(src)) {
- src = src.substring(cap[0].length);
- this.inLink = true;
- out += this.outputLink(cap, {
- href: cap[2],
- title: cap[3]
- });
- this.inLink = false;
- continue;
- }
-
- // reflink, nolink
- if ((cap = this.rules.reflink.exec(src))
- || (cap = this.rules.nolink.exec(src))) {
- src = src.substring(cap[0].length);
- link = (cap[2] || cap[1]).replace(/\s+/g, ' ');
- link = this.links[link.toLowerCase()];
- if (!link || !link.href) {
- out += cap[0].charAt(0);
- src = cap[0].substring(1) + src;
- continue;
- }
- this.inLink = true;
- out += this.outputLink(cap, link);
- this.inLink = false;
- continue;
- }
-
- // strong
- if (cap = this.rules.strong.exec(src)) {
- src = src.substring(cap[0].length);
- out += this.renderer.strong(this.output(cap[2] || cap[1]));
- continue;
- }
-
- // em
- if (cap = this.rules.em.exec(src)) {
- src = src.substring(cap[0].length);
- out += this.renderer.em(this.output(cap[2] || cap[1]));
- continue;
- }
-
- // code
- if (cap = this.rules.code.exec(src)) {
- src = src.substring(cap[0].length);
- out += this.renderer.codespan(escape(cap[2], true));
- continue;
- }
-
- // br
- if (cap = this.rules.br.exec(src)) {
- src = src.substring(cap[0].length);
- out += this.renderer.br();
- continue;
- }
-
- // del (gfm)
- if (cap = this.rules.del.exec(src)) {
- src = src.substring(cap[0].length);
- out += this.renderer.del(this.output(cap[1]));
- continue;
- }
-
- // text
- if (cap = this.rules.text.exec(src)) {
- src = src.substring(cap[0].length);
- out += escape(this.smartypants(cap[0]));
- continue;
- }
-
- if (src) {
- throw new
- Error('Infinite loop on byte: ' + src.charCodeAt(0));
- }
- }
-
- return out;
-};
-
-/**
- * Compile Link
- */
-
-InlineLexer.prototype.outputLink = function(cap, link) {
- var href = escape(link.href)
- , title = link.title ? escape(link.title) : null;
-
- return cap[0].charAt(0) !== '!'
- ? this.renderer.link(href, title, this.output(cap[1]))
- : this.renderer.image(href, title, escape(cap[1]));
-};
-
-/**
- * Smartypants Transformations
- */
-
-InlineLexer.prototype.smartypants = function(text) {
- if (!this.options.smartypants) return text;
- return text
- // em-dashes
- .replace(/--/g, '\u2014')
- // opening singles
- .replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018')
- // closing singles & apostrophes
- .replace(/'/g, '\u2019')
- // opening doubles
- .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c')
- // closing doubles
- .replace(/"/g, '\u201d')
- // ellipses
- .replace(/\.{3}/g, '\u2026');
-};
-
-/**
- * Mangle Links
- */
-
-InlineLexer.prototype.mangle = function(text) {
- var out = ''
- , l = text.length
- , i = 0
- , ch;
-
- for (; i < l; i++) {
- ch = text.charCodeAt(i);
- if (Math.random() > 0.5) {
- ch = 'x' + ch.toString(16);
- }
- out += '&#' + ch + ';';
- }
-
- return out;
-};
-
-/**
- * Renderer
- */
-
-function Renderer(options) {
- this.options = options || {};
-}
-
-Renderer.prototype.code = function(code, lang, escaped) {
- if (this.options.highlight) {
- var out = this.options.highlight(code, lang);
- if (out != null && out !== code) {
- escaped = true;
- code = out;
- }
- }
-
- if (!lang) {
- return '<pre><code>'
- + (escaped ? code : escape(code, true))
- + '\n</code></pre>';
- }
-
- return '<pre><code class="'
- + this.options.langPrefix
- + escape(lang, true)
- + '">'
- + (escaped ? code : escape(code, true))
- + '\n</code></pre>\n';
-};
-
-Renderer.prototype.blockquote = function(quote) {
- return '<blockquote>\n' + quote + '</blockquote>\n';
-};
-
-Renderer.prototype.html = function(html) {
- return html;
-};
-
-Renderer.prototype.heading = function(text, level, raw) {
- return '<h'
- + level
- + ' id="'
- + this.options.headerPrefix
- + raw.toLowerCase().replace(/[^\w]+/g, '-')
- + '">'
- + text
- + '</h'
- + level
- + '>\n';
-};
-
-Renderer.prototype.hr = function() {
- return this.options.xhtml ? '<hr/>\n' : '<hr>\n';
-};
-
-Renderer.prototype.list = function(body, ordered) {
- var type = ordered ? 'ol' : 'ul';
- return '<' + type + '>\n' + body + '</' + type + '>\n';
-};
-
-Renderer.prototype.listitem = function(text) {
- return '<li>' + text + '</li>\n';
-};
-
-Renderer.prototype.paragraph = function(text) {
- return '<p>' + text + '</p>\n';
-};
-
-Renderer.prototype.table = function(header, body) {
- return '<table>\n'
- + '<thead>\n'
- + header
- + '</thead>\n'
- + '<tbody>\n'
- + body
- + '</tbody>\n'
- + '</table>\n';
-};
-
-Renderer.prototype.tablerow = function(content) {
- return '<tr>\n' + content + '</tr>\n';
-};
-
-Renderer.prototype.tablecell = function(content, flags) {
- var type = flags.header ? 'th' : 'td';
- var tag = flags.align
- ? '<' + type + ' style="text-align:' + flags.align + '">'
- : '<' + type + '>';
- return tag + content + '</' + type + '>\n';
-};
-
-// span level renderer
-Renderer.prototype.strong = function(text) {
- return '<strong>' + text + '</strong>';
-};
-
-Renderer.prototype.em = function(text) {
- return '<em>' + text + '</em>';
-};
-
-Renderer.prototype.codespan = function(text) {
- return '<code>' + text + '</code>';
-};
-
-Renderer.prototype.br = function() {
- return this.options.xhtml ? '<br/>' : '<br>';
-};
-
-Renderer.prototype.del = function(text) {
- return '<del>' + text + '</del>';
-};
-
-Renderer.prototype.link = function(href, title, text) {
- if (this.options.sanitize) {
- try {
- var prot = decodeURIComponent(unescape(href))
- .replace(/[^\w:]/g, '')
- .toLowerCase();
- } catch (e) {
- return '';
- }
- if (prot.indexOf('javascript:') === 0) {
- return '';
- }
- }
- var out = '<a href="' + href + '"';
- if (title) {
- out += ' title="' + title + '"';
- }
- out += '>' + text + '</a>';
- return out;
-};
-
-Renderer.prototype.image = function(href, title, text) {
- var out = '<img src="' + href + '" alt="' + text + '"';
- if (title) {
- out += ' title="' + title + '"';
- }
- out += this.options.xhtml ? '/>' : '>';
- return out;
-};
-
-/**
- * Parsing & Compiling
- */
-
-function Parser(options) {
- this.tokens = [];
- this.token = null;
- this.options = options || marked.defaults;
- this.options.renderer = this.options.renderer || new Renderer;
- this.renderer = this.options.renderer;
- this.renderer.options = this.options;
-}
-
-/**
- * Static Parse Method
- */
-
-Parser.parse = function(src, options, renderer) {
- var parser = new Parser(options, renderer);
- return parser.parse(src);
-};
-
-/**
- * Parse Loop
- */
-
-Parser.prototype.parse = function(src) {
- this.inline = new InlineLexer(src.links, this.options, this.renderer);
- this.tokens = src.reverse();
-
- var out = '';
- while (this.next()) {
- out += this.tok();
- }
-
- return out;
-};
-
-/**
- * Next Token
- */
-
-Parser.prototype.next = function() {
- return this.token = this.tokens.pop();
-};
-
-/**
- * Preview Next Token
- */
-
-Parser.prototype.peek = function() {
- return this.tokens[this.tokens.length - 1] || 0;
-};
-
-/**
- * Parse Text Tokens
- */
-
-Parser.prototype.parseText = function() {
- var body = this.token.text;
-
- while (this.peek().type === 'text') {
- body += '\n' + this.next().text;
- }
-
- return this.inline.output(body);
-};
-
-/**
- * Parse Current Token
- */
-
-Parser.prototype.tok = function() {
- switch (this.token.type) {
- case 'space': {
- return '';
- }
- case 'hr': {
- return this.renderer.hr();
- }
- case 'heading': {
- return this.renderer.heading(
- this.inline.output(this.token.text),
- this.token.depth,
- this.token.text);
- }
- case 'code': {
- return this.renderer.code(this.token.text,
- this.token.lang,
- this.token.escaped);
- }
- case 'table': {
- var header = ''
- , body = ''
- , i
- , row
- , cell
- , flags
- , j;
-
- // header
- cell = '';
- for (i = 0; i < this.token.header.length; i++) {
- flags = { header: true, align: this.token.align[i] };
- cell += this.renderer.tablecell(
- this.inline.output(this.token.header[i]),
- { header: true, align: this.token.align[i] }
- );
- }
- header += this.renderer.tablerow(cell);
-
- for (i = 0; i < this.token.cells.length; i++) {
- row = this.token.cells[i];
-
- cell = '';
- for (j = 0; j < row.length; j++) {
- cell += this.renderer.tablecell(
- this.inline.output(row[j]),
- { header: false, align: this.token.align[j] }
- );
- }
-
- body += this.renderer.tablerow(cell);
- }
- return this.renderer.table(header, body);
- }
- case 'blockquote_start': {
- var body = '';
-
- while (this.next().type !== 'blockquote_end') {
- body += this.tok();
- }
-
- return this.renderer.blockquote(body);
- }
- case 'list_start': {
- var body = ''
- , ordered = this.token.ordered;
-
- while (this.next().type !== 'list_end') {
- body += this.tok();
- }
-
- return this.renderer.list(body, ordered);
- }
- case 'list_item_start': {
- var body = '';
-
- while (this.next().type !== 'list_item_end') {
- body += this.token.type === 'text'
- ? this.parseText()
- : this.tok();
- }
-
- return this.renderer.listitem(body);
- }
- case 'loose_item_start': {
- var body = '';
-
- while (this.next().type !== 'list_item_end') {
- body += this.tok();
- }
-
- return this.renderer.listitem(body);
- }
- case 'html': {
- var html = !this.token.pre && !this.options.pedantic
- ? this.inline.output(this.token.text)
- : this.token.text;
- return this.renderer.html(html);
- }
- case 'paragraph': {
- return this.renderer.paragraph(this.inline.output(this.token.text));
- }
- case 'text': {
- return this.renderer.paragraph(this.parseText());
- }
- }
-};
-
-/**
- * Helpers
- */
-
-function escape(html, encode) {
- return html
- .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&amp;')
- .replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/"/g, '&quot;')
- .replace(/'/g, '&#39;');
-}
-
-function unescape(html) {
- return html.replace(/&([#\w]+);/g, function(_, n) {
- n = n.toLowerCase();
- if (n === 'colon') return ':';
- if (n.charAt(0) === '#') {
- return n.charAt(1) === 'x'
- ? String.fromCharCode(parseInt(n.substring(2), 16))
- : String.fromCharCode(+n.substring(1));
- }
- return '';
- });
-}
-
-function replace(regex, opt) {
- regex = regex.source;
- opt = opt || '';
- return function self(name, val) {
- if (!name) return new RegExp(regex, opt);
- val = val.source || val;
- val = val.replace(/(^|[^\[])\^/g, '$1');
- regex = regex.replace(name, val);
- return self;
- };
-}
-
-function noop() {}
-noop.exec = noop;
-
-function merge(obj) {
- var i = 1
- , target
- , key;
-
- for (; i < arguments.length; i++) {
- target = arguments[i];
- for (key in target) {
- if (Object.prototype.hasOwnProperty.call(target, key)) {
- obj[key] = target[key];
- }
- }
- }
-
- return obj;
-}
-
-
-/**
- * Marked
- */
-
-function marked(src, opt, callback) {
- if (callback || typeof opt === 'function') {
- if (!callback) {
- callback = opt;
- opt = null;
- }
-
- opt = merge({}, marked.defaults, opt || {});
-
- var highlight = opt.highlight
- , tokens
- , pending
- , i = 0;
-
- try {
- tokens = Lexer.lex(src, opt)
- } catch (e) {
- return callback(e);
- }
-
- pending = tokens.length;
-
- var done = function(err) {
- if (err) {
- opt.highlight = highlight;
- return callback(err);
- }
-
- var out;
-
- try {
- out = Parser.parse(tokens, opt);
- } catch (e) {
- err = e;
- }
-
- opt.highlight = highlight;
-
- return err
- ? callback(err)
- : callback(null, out);
- };
-
- if (!highlight || highlight.length < 3) {
- return done();
- }
-
- delete opt.highlight;
-
- if (!pending) return done();
-
- for (; i < tokens.length; i++) {
- (function(token) {
- if (token.type !== 'code') {
- return --pending || done();
- }
- return highlight(token.text, token.lang, function(err, code) {
- if (err) return done(err);
- if (code == null || code === token.text) {
- return --pending || done();
- }
- token.text = code;
- token.escaped = true;
- --pending || done();
- });
- })(tokens[i]);
- }
-
- return;
- }
- try {
- if (opt) opt = merge({}, marked.defaults, opt);
- return Parser.parse(Lexer.lex(src, opt), opt);
- } catch (e) {
- e.message += '\nPlease report this to https://github.com/chjj/marked.';
- if ((opt || marked.defaults).silent) {
- return '<p>An error occured:</p><pre>'
- + escape(e.message + '', true)
- + '</pre>';
- }
- throw e;
- }
-}
-
-/**
- * Options
- */
-
-marked.options =
-marked.setOptions = function(opt) {
- merge(marked.defaults, opt);
- return marked;
-};
-
-marked.defaults = {
- gfm: true,
- tables: true,
- breaks: false,
- pedantic: false,
- sanitize: false,
- smartLists: false,
- silent: false,
- highlight: null,
- langPrefix: 'lang-',
- smartypants: false,
- headerPrefix: '',
- renderer: new Renderer,
- xhtml: false
-};
-
-/**
- * Expose
- */
-
-marked.Parser = Parser;
-marked.parser = Parser.parse;
-
-marked.Renderer = Renderer;
-
-marked.Lexer = Lexer;
-marked.lexer = Lexer.lex;
-
-marked.InlineLexer = InlineLexer;
-marked.inlineLexer = InlineLexer.output;
-
-marked.parse = marked;
-
-if (typeof module !== 'undefined' && typeof exports === 'object') {
- module.exports = marked;
-} else if (typeof define === 'function' && define.amd) {
- define(function() { return marked; });
-} else {
- this.marked = marked;
-}
-
-}).call(function() {
- return this || (typeof window !== 'undefined' ? window : global);
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+;(function() {
+
+/**
+ * Block-Level Grammar
+ */
+
+var block = {
+ newline: /^\n+/,
+ code: /^( {4}[^\n]+\n*)+/,
+ fences: noop,
+ hr: /^( *[-*_]){3,} *(?:\n+|$)/,
+ heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
+ nptable: noop,
+ lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
+ blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,
+ list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
+ html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,
+ def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
+ table: noop,
+ paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,
+ text: /^[^\n]+/
+};
+
+block.bullet = /(?:[*+-]|\d+\.)/;
+block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;
+block.item = replace(block.item, 'gm')
+ (/bull/g, block.bullet)
+ ();
+
+block.list = replace(block.list)
+ (/bull/g, block.bullet)
+ ('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')
+ ('def', '\\n+(?=' + block.def.source + ')')
+ ();
+
+block.blockquote = replace(block.blockquote)
+ ('def', block.def)
+ ();
+
+block._tag = '(?!(?:'
+ + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'
+ + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'
+ + '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';
+
+block.html = replace(block.html)
+ ('comment', /<!--[\s\S]*?-->/)
+ ('closed', /<(tag)[\s\S]+?<\/\1>/)
+ ('closing', /<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)
+ (/tag/g, block._tag)
+ ();
+
+block.paragraph = replace(block.paragraph)
+ ('hr', block.hr)
+ ('heading', block.heading)
+ ('lheading', block.lheading)
+ ('blockquote', block.blockquote)
+ ('tag', '<' + block._tag)
+ ('def', block.def)
+ ();
+
+/**
+ * Normal Block Grammar
+ */
+
+block.normal = merge({}, block);
+
+/**
+ * GFM Block Grammar
+ */
+
+block.gfm = merge({}, block.normal, {
+ fences: /^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,
+ paragraph: /^/
+});
+
+block.gfm.paragraph = replace(block.paragraph)
+ ('(?!', '(?!'
+ + block.gfm.fences.source.replace('\\1', '\\2') + '|'
+ + block.list.source.replace('\\1', '\\3') + '|')
+ ();
+
+/**
+ * GFM + Tables Block Grammar
+ */
+
+block.tables = merge({}, block.gfm, {
+ nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,
+ table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/
+});
+
+/**
+ * Block Lexer
+ */
+
+function Lexer(options) {
+ this.tokens = [];
+ this.tokens.links = {};
+ this.options = options || marked.defaults;
+ this.rules = block.normal;
+
+ if (this.options.gfm) {
+ if (this.options.tables) {
+ this.rules = block.tables;
+ } else {
+ this.rules = block.gfm;
+ }
+ }
+}
+
+/**
+ * Expose Block Rules
+ */
+
+Lexer.rules = block;
+
+/**
+ * Static Lex Method
+ */
+
+Lexer.lex = function(src, options) {
+ var lexer = new Lexer(options);
+ return lexer.lex(src);
+};
+
+/**
+ * Preprocessing
+ */
+
+Lexer.prototype.lex = function(src) {
+ src = src
+ .replace(/\r\n|\r/g, '\n')
+ .replace(/\t/g, ' ')
+ .replace(/\u00a0/g, ' ')
+ .replace(/\u2424/g, '\n');
+
+ return this.token(src, true);
+};
+
+/**
+ * Lexing
+ */
+
+Lexer.prototype.token = function(src, top, bq) {
+ var src = src.replace(/^ +$/gm, '')
+ , next
+ , loose
+ , cap
+ , bull
+ , b
+ , item
+ , space
+ , i
+ , l;
+
+ while (src) {
+ // newline
+ if (cap = this.rules.newline.exec(src)) {
+ src = src.substring(cap[0].length);
+ if (cap[0].length > 1) {
+ this.tokens.push({
+ type: 'space'
+ });
+ }
+ }
+
+ // code
+ if (cap = this.rules.code.exec(src)) {
+ src = src.substring(cap[0].length);
+ cap = cap[0].replace(/^ {4}/gm, '');
+ this.tokens.push({
+ type: 'code',
+ text: !this.options.pedantic
+ ? cap.replace(/\n+$/, '')
+ : cap
+ });
+ continue;
+ }
+
+ // fences (gfm)
+ if (cap = this.rules.fences.exec(src)) {
+ src = src.substring(cap[0].length);
+ this.tokens.push({
+ type: 'code',
+ lang: cap[2],
+ text: cap[3]
+ });
+ continue;
+ }
+
+ // heading
+ if (cap = this.rules.heading.exec(src)) {
+ src = src.substring(cap[0].length);
+ this.tokens.push({
+ type: 'heading',
+ depth: cap[1].length,
+ text: cap[2]
+ });
+ continue;
+ }
+
+ // table no leading pipe (gfm)
+ if (top && (cap = this.rules.nptable.exec(src))) {
+ src = src.substring(cap[0].length);
+
+ item = {
+ type: 'table',
+ header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
+ align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
+ cells: cap[3].replace(/\n$/, '').split('\n')
+ };
+
+ for (i = 0; i < item.align.length; i++) {
+ if (/^ *-+: *$/.test(item.align[i])) {
+ item.align[i] = 'right';
+ } else if (/^ *:-+: *$/.test(item.align[i])) {
+ item.align[i] = 'center';
+ } else if (/^ *:-+ *$/.test(item.align[i])) {
+ item.align[i] = 'left';
+ } else {
+ item.align[i] = null;
+ }
+ }
+
+ for (i = 0; i < item.cells.length; i++) {
+ item.cells[i] = item.cells[i].split(/ *\| */);
+ }
+
+ this.tokens.push(item);
+
+ continue;
+ }
+
+ // lheading
+ if (cap = this.rules.lheading.exec(src)) {
+ src = src.substring(cap[0].length);
+ this.tokens.push({
+ type: 'heading',
+ depth: cap[2] === '=' ? 1 : 2,
+ text: cap[1]
+ });
+ continue;
+ }
+
+ // hr
+ if (cap = this.rules.hr.exec(src)) {
+ src = src.substring(cap[0].length);
+ this.tokens.push({
+ type: 'hr'
+ });
+ continue;
+ }
+
+ // blockquote
+ if (cap = this.rules.blockquote.exec(src)) {
+ src = src.substring(cap[0].length);
+
+ this.tokens.push({
+ type: 'blockquote_start'
+ });
+
+ cap = cap[0].replace(/^ *> ?/gm, '');
+
+ // Pass `top` to keep the current
+ // "toplevel" state. This is exactly
+ // how markdown.pl works.
+ this.token(cap, top, true);
+
+ this.tokens.push({
+ type: 'blockquote_end'
+ });
+
+ continue;
+ }
+
+ // list
+ if (cap = this.rules.list.exec(src)) {
+ src = src.substring(cap[0].length);
+ bull = cap[2];
+
+ this.tokens.push({
+ type: 'list_start',
+ ordered: bull.length > 1
+ });
+
+ // Get each top-level item.
+ cap = cap[0].match(this.rules.item);
+
+ next = false;
+ l = cap.length;
+ i = 0;
+
+ for (; i < l; i++) {
+ item = cap[i];
+
+ // Remove the list item's bullet
+ // so it is seen as the next token.
+ space = item.length;
+ item = item.replace(/^ *([*+-]|\d+\.) +/, '');
+
+ // Outdent whatever the
+ // list item contains. Hacky.
+ if (~item.indexOf('\n ')) {
+ space -= item.length;
+ item = !this.options.pedantic
+ ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')
+ : item.replace(/^ {1,4}/gm, '');
+ }
+
+ // Determine whether the next list item belongs here.
+ // Backpedal if it does not belong in this list.
+ if (this.options.smartLists && i !== l - 1) {
+ b = block.bullet.exec(cap[i + 1])[0];
+ if (bull !== b && !(bull.length > 1 && b.length > 1)) {
+ src = cap.slice(i + 1).join('\n') + src;
+ i = l - 1;
+ }
+ }
+
+ // Determine whether item is loose or not.
+ // Use: /(^|\n)(?! )[^\n]+\n\n(?!\s*$)/
+ // for discount behavior.
+ loose = next || /\n\n(?!\s*$)/.test(item);
+ if (i !== l - 1) {
+ next = item.charAt(item.length - 1) === '\n';
+ if (!loose) loose = next;
+ }
+
+ this.tokens.push({
+ type: loose
+ ? 'loose_item_start'
+ : 'list_item_start'
+ });
+
+ // Recurse.
+ this.token(item, false, bq);
+
+ this.tokens.push({
+ type: 'list_item_end'
+ });
+ }
+
+ this.tokens.push({
+ type: 'list_end'
+ });
+
+ continue;
+ }
+
+ // html
+ if (cap = this.rules.html.exec(src)) {
+ src = src.substring(cap[0].length);
+ this.tokens.push({
+ type: this.options.sanitize
+ ? 'paragraph'
+ : 'html',
+ pre: cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style',
+ text: cap[0]
+ });
+ continue;
+ }
+
+ // def
+ if ((!bq && top) && (cap = this.rules.def.exec(src))) {
+ src = src.substring(cap[0].length);
+ this.tokens.links[cap[1].toLowerCase()] = {
+ href: cap[2],
+ title: cap[3]
+ };
+ continue;
+ }
+
+ // table (gfm)
+ if (top && (cap = this.rules.table.exec(src))) {
+ src = src.substring(cap[0].length);
+
+ item = {
+ type: 'table',
+ header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
+ align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
+ cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n')
+ };
+
+ for (i = 0; i < item.align.length; i++) {
+ if (/^ *-+: *$/.test(item.align[i])) {
+ item.align[i] = 'right';
+ } else if (/^ *:-+: *$/.test(item.align[i])) {
+ item.align[i] = 'center';
+ } else if (/^ *:-+ *$/.test(item.align[i])) {
+ item.align[i] = 'left';
+ } else {
+ item.align[i] = null;
+ }
+ }
+
+ for (i = 0; i < item.cells.length; i++) {
+ item.cells[i] = item.cells[i]
+ .replace(/^ *\| *| *\| *$/g, '')
+ .split(/ *\| */);
+ }
+
+ this.tokens.push(item);
+
+ continue;
+ }
+
+ // top-level paragraph
+ if (top && (cap = this.rules.paragraph.exec(src))) {
+ src = src.substring(cap[0].length);
+ this.tokens.push({
+ type: 'paragraph',
+ text: cap[1].charAt(cap[1].length - 1) === '\n'
+ ? cap[1].slice(0, -1)
+ : cap[1]
+ });
+ continue;
+ }
+
+ // text
+ if (cap = this.rules.text.exec(src)) {
+ // Top-level should never reach here.
+ src = src.substring(cap[0].length);
+ this.tokens.push({
+ type: 'text',
+ text: cap[0]
+ });
+ continue;
+ }
+
+ if (src) {
+ throw new
+ Error('Infinite loop on byte: ' + src.charCodeAt(0));
+ }
+ }
+
+ return this.tokens;
+};
+
+/**
+ * Inline-Level Grammar
+ */
+
+var inline = {
+ escape: /^\\([\\`*{}\[\]()#+\-.!_>])/,
+ autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
+ url: noop,
+ tag: /^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,
+ link: /^!?\[(inside)\]\(href\)/,
+ reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/,
+ nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
+ strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
+ em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
+ code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
+ br: /^ {2,}\n(?!\s*$)/,
+ del: noop,
+ text: /^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/
+};
+
+inline._inside = /(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/;
+inline._href = /\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/;
+
+inline.link = replace(inline.link)
+ ('inside', inline._inside)
+ ('href', inline._href)
+ ();
+
+inline.reflink = replace(inline.reflink)
+ ('inside', inline._inside)
+ ();
+
+/**
+ * Normal Inline Grammar
+ */
+
+inline.normal = merge({}, inline);
+
+/**
+ * Pedantic Inline Grammar
+ */
+
+inline.pedantic = merge({}, inline.normal, {
+ strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
+ em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/
+});
+
+/**
+ * GFM Inline Grammar
+ */
+
+inline.gfm = merge({}, inline.normal, {
+ escape: replace(inline.escape)('])', '~|])')(),
+ url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
+ del: /^~~(?=\S)([\s\S]*?\S)~~/,
+ text: replace(inline.text)
+ (']|', '~]|')
+ ('|', '|https?://|')
+ ()
+});
+
+/**
+ * GFM + Line Breaks Inline Grammar
+ */
+
+inline.breaks = merge({}, inline.gfm, {
+ br: replace(inline.br)('{2,}', '*')(),
+ text: replace(inline.gfm.text)('{2,}', '*')()
+});
+
+/**
+ * Inline Lexer & Compiler
+ */
+
+function InlineLexer(links, options) {
+ this.options = options || marked.defaults;
+ this.links = links;
+ this.rules = inline.normal;
+ this.renderer = this.options.renderer || new Renderer;
+ this.renderer.options = this.options;
+
+ if (!this.links) {
+ throw new
+ Error('Tokens array requires a `links` property.');
+ }
+
+ if (this.options.gfm) {
+ if (this.options.breaks) {
+ this.rules = inline.breaks;
+ } else {
+ this.rules = inline.gfm;
+ }
+ } else if (this.options.pedantic) {
+ this.rules = inline.pedantic;
+ }
+}
+
+/**
+ * Expose Inline Rules
+ */
+
+InlineLexer.rules = inline;
+
+/**
+ * Static Lexing/Compiling Method
+ */
+
+InlineLexer.output = function(src, links, options) {
+ var inline = new InlineLexer(links, options);
+ return inline.output(src);
+};
+
+/**
+ * Lexing/Compiling
+ */
+
+InlineLexer.prototype.output = function(src) {
+ var out = ''
+ , link
+ , text
+ , href
+ , cap;
+
+ while (src) {
+ // escape
+ if (cap = this.rules.escape.exec(src)) {
+ src = src.substring(cap[0].length);
+ out += cap[1];
+ continue;
+ }
+
+ // autolink
+ if (cap = this.rules.autolink.exec(src)) {
+ src = src.substring(cap[0].length);
+ if (cap[2] === '@') {
+ text = cap[1].charAt(6) === ':'
+ ? this.mangle(cap[1].substring(7))
+ : this.mangle(cap[1]);
+ href = this.mangle('mailto:') + text;
+ } else {
+ text = escape(cap[1]);
+ href = text;
+ }
+ out += this.renderer.link(href, null, text);
+ continue;
+ }
+
+ // url (gfm)
+ if (!this.inLink && (cap = this.rules.url.exec(src))) {
+ src = src.substring(cap[0].length);
+ text = escape(cap[1]);
+ href = text;
+ out += this.renderer.link(href, null, text);
+ continue;
+ }
+
+ // tag
+ if (cap = this.rules.tag.exec(src)) {
+ if (!this.inLink && /^<a /i.test(cap[0])) {
+ this.inLink = true;
+ } else if (this.inLink && /^<\/a>/i.test(cap[0])) {
+ this.inLink = false;
+ }
+ src = src.substring(cap[0].length);
+ out += this.options.sanitize
+ ? escape(cap[0])
+ : cap[0];
+ continue;
+ }
+
+ // link
+ if (cap = this.rules.link.exec(src)) {
+ src = src.substring(cap[0].length);
+ this.inLink = true;
+ out += this.outputLink(cap, {
+ href: cap[2],
+ title: cap[3]
+ });
+ this.inLink = false;
+ continue;
+ }
+
+ // reflink, nolink
+ if ((cap = this.rules.reflink.exec(src))
+ || (cap = this.rules.nolink.exec(src))) {
+ src = src.substring(cap[0].length);
+ link = (cap[2] || cap[1]).replace(/\s+/g, ' ');
+ link = this.links[link.toLowerCase()];
+ if (!link || !link.href) {
+ out += cap[0].charAt(0);
+ src = cap[0].substring(1) + src;
+ continue;
+ }
+ this.inLink = true;
+ out += this.outputLink(cap, link);
+ this.inLink = false;
+ continue;
+ }
+
+ // strong
+ if (cap = this.rules.strong.exec(src)) {
+ src = src.substring(cap[0].length);
+ out += this.renderer.strong(this.output(cap[2] || cap[1]));
+ continue;
+ }
+
+ // em
+ if (cap = this.rules.em.exec(src)) {
+ src = src.substring(cap[0].length);
+ out += this.renderer.em(this.output(cap[2] || cap[1]));
+ continue;
+ }
+
+ // code
+ if (cap = this.rules.code.exec(src)) {
+ src = src.substring(cap[0].length);
+ out += this.renderer.codespan(escape(cap[2], true));
+ continue;
+ }
+
+ // br
+ if (cap = this.rules.br.exec(src)) {
+ src = src.substring(cap[0].length);
+ out += this.renderer.br();
+ continue;
+ }
+
+ // del (gfm)
+ if (cap = this.rules.del.exec(src)) {
+ src = src.substring(cap[0].length);
+ out += this.renderer.del(this.output(cap[1]));
+ continue;
+ }
+
+ // text
+ if (cap = this.rules.text.exec(src)) {
+ src = src.substring(cap[0].length);
+ out += escape(this.smartypants(cap[0]));
+ continue;
+ }
+
+ if (src) {
+ throw new
+ Error('Infinite loop on byte: ' + src.charCodeAt(0));
+ }
+ }
+
+ return out;
+};
+
+/**
+ * Compile Link
+ */
+
+InlineLexer.prototype.outputLink = function(cap, link) {
+ var href = escape(link.href)
+ , title = link.title ? escape(link.title) : null;
+
+ return cap[0].charAt(0) !== '!'
+ ? this.renderer.link(href, title, this.output(cap[1]))
+ : this.renderer.image(href, title, escape(cap[1]));
+};
+
+/**
+ * Smartypants Transformations
+ */
+
+InlineLexer.prototype.smartypants = function(text) {
+ if (!this.options.smartypants) return text;
+ return text
+ // em-dashes
+ .replace(/--/g, '\u2014')
+ // opening singles
+ .replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018')
+ // closing singles & apostrophes
+ .replace(/'/g, '\u2019')
+ // opening doubles
+ .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c')
+ // closing doubles
+ .replace(/"/g, '\u201d')
+ // ellipses
+ .replace(/\.{3}/g, '\u2026');
+};
+
+/**
+ * Mangle Links
+ */
+
+InlineLexer.prototype.mangle = function(text) {
+ var out = ''
+ , l = text.length
+ , i = 0
+ , ch;
+
+ for (; i < l; i++) {
+ ch = text.charCodeAt(i);
+ if (Math.random() > 0.5) {
+ ch = 'x' + ch.toString(16);
+ }
+ out += '&#' + ch + ';';
+ }
+
+ return out;
+};
+
+/**
+ * Renderer
+ */
+
+function Renderer(options) {
+ this.options = options || {};
+}
+
+Renderer.prototype.code = function(code, lang, escaped) {
+ if (this.options.highlight) {
+ var out = this.options.highlight(code, lang);
+ if (out != null && out !== code) {
+ escaped = true;
+ code = out;
+ }
+ }
+
+ if (!lang) {
+ return '<pre><code>'
+ + (escaped ? code : escape(code, true))
+ + '\n</code></pre>';
+ }
+
+ return '<pre><code class="'
+ + this.options.langPrefix
+ + escape(lang, true)
+ + '">'
+ + (escaped ? code : escape(code, true))
+ + '\n</code></pre>\n';
+};
+
+Renderer.prototype.blockquote = function(quote) {
+ return '<blockquote>\n' + quote + '</blockquote>\n';
+};
+
+Renderer.prototype.html = function(html) {
+ return html;
+};
+
+Renderer.prototype.heading = function(text, level, raw) {
+ return '<h'
+ + level
+ + ' id="'
+ + this.options.headerPrefix
+ + raw.toLowerCase().replace(/[^\w]+/g, '-')
+ + '">'
+ + text
+ + '</h'
+ + level
+ + '>\n';
+};
+
+Renderer.prototype.hr = function() {
+ return this.options.xhtml ? '<hr/>\n' : '<hr>\n';
+};
+
+Renderer.prototype.list = function(body, ordered) {
+ var type = ordered ? 'ol' : 'ul';
+ return '<' + type + '>\n' + body + '</' + type + '>\n';
+};
+
+Renderer.prototype.listitem = function(text) {
+ return '<li>' + text + '</li>\n';
+};
+
+Renderer.prototype.paragraph = function(text) {
+ return '<p>' + text + '</p>\n';
+};
+
+Renderer.prototype.table = function(header, body) {
+ return '<table>\n'
+ + '<thead>\n'
+ + header
+ + '</thead>\n'
+ + '<tbody>\n'
+ + body
+ + '</tbody>\n'
+ + '</table>\n';
+};
+
+Renderer.prototype.tablerow = function(content) {
+ return '<tr>\n' + content + '</tr>\n';
+};
+
+Renderer.prototype.tablecell = function(content, flags) {
+ var type = flags.header ? 'th' : 'td';
+ var tag = flags.align
+ ? '<' + type + ' style="text-align:' + flags.align + '">'
+ : '<' + type + '>';
+ return tag + content + '</' + type + '>\n';
+};
+
+// span level renderer
+Renderer.prototype.strong = function(text) {
+ return '<strong>' + text + '</strong>';
+};
+
+Renderer.prototype.em = function(text) {
+ return '<em>' + text + '</em>';
+};
+
+Renderer.prototype.codespan = function(text) {
+ return '<code>' + text + '</code>';
+};
+
+Renderer.prototype.br = function() {
+ return this.options.xhtml ? '<br/>' : '<br>';
+};
+
+Renderer.prototype.del = function(text) {
+ return '<del>' + text + '</del>';
+};
+
+Renderer.prototype.link = function(href, title, text) {
+ if (this.options.sanitize) {
+ try {
+ var prot = decodeURIComponent(unescape(href))
+ .replace(/[^\w:]/g, '')
+ .toLowerCase();
+ } catch (e) {
+ return '';
+ }
+ if (prot.indexOf('javascript:') === 0) {
+ return '';
+ }
+ }
+ var out = '<a href="' + href + '"';
+ if (title) {
+ out += ' title="' + title + '"';
+ }
+ out += '>' + text + '</a>';
+ return out;
+};
+
+Renderer.prototype.image = function(href, title, text) {
+ var out = '<img src="' + href + '" alt="' + text + '"';
+ if (title) {
+ out += ' title="' + title + '"';
+ }
+ out += this.options.xhtml ? '/>' : '>';
+ return out;
+};
+
+/**
+ * Parsing & Compiling
+ */
+
+function Parser(options) {
+ this.tokens = [];
+ this.token = null;
+ this.options = options || marked.defaults;
+ this.options.renderer = this.options.renderer || new Renderer;
+ this.renderer = this.options.renderer;
+ this.renderer.options = this.options;
+}
+
+/**
+ * Static Parse Method
+ */
+
+Parser.parse = function(src, options, renderer) {
+ var parser = new Parser(options, renderer);
+ return parser.parse(src);
+};
+
+/**
+ * Parse Loop
+ */
+
+Parser.prototype.parse = function(src) {
+ this.inline = new InlineLexer(src.links, this.options, this.renderer);
+ this.tokens = src.reverse();
+
+ var out = '';
+ while (this.next()) {
+ out += this.tok();
+ }
+
+ return out;
+};
+
+/**
+ * Next Token
+ */
+
+Parser.prototype.next = function() {
+ return this.token = this.tokens.pop();
+};
+
+/**
+ * Preview Next Token
+ */
+
+Parser.prototype.peek = function() {
+ return this.tokens[this.tokens.length - 1] || 0;
+};
+
+/**
+ * Parse Text Tokens
+ */
+
+Parser.prototype.parseText = function() {
+ var body = this.token.text;
+
+ while (this.peek().type === 'text') {
+ body += '\n' + this.next().text;
+ }
+
+ return this.inline.output(body);
+};
+
+/**
+ * Parse Current Token
+ */
+
+Parser.prototype.tok = function() {
+ switch (this.token.type) {
+ case 'space': {
+ return '';
+ }
+ case 'hr': {
+ return this.renderer.hr();
+ }
+ case 'heading': {
+ return this.renderer.heading(
+ this.inline.output(this.token.text),
+ this.token.depth,
+ this.token.text);
+ }
+ case 'code': {
+ return this.renderer.code(this.token.text,
+ this.token.lang,
+ this.token.escaped);
+ }
+ case 'table': {
+ var header = ''
+ , body = ''
+ , i
+ , row
+ , cell
+ , flags
+ , j;
+
+ // header
+ cell = '';
+ for (i = 0; i < this.token.header.length; i++) {
+ flags = { header: true, align: this.token.align[i] };
+ cell += this.renderer.tablecell(
+ this.inline.output(this.token.header[i]),
+ { header: true, align: this.token.align[i] }
+ );
+ }
+ header += this.renderer.tablerow(cell);
+
+ for (i = 0; i < this.token.cells.length; i++) {
+ row = this.token.cells[i];
+
+ cell = '';
+ for (j = 0; j < row.length; j++) {
+ cell += this.renderer.tablecell(
+ this.inline.output(row[j]),
+ { header: false, align: this.token.align[j] }
+ );
+ }
+
+ body += this.renderer.tablerow(cell);
+ }
+ return this.renderer.table(header, body);
+ }
+ case 'blockquote_start': {
+ var body = '';
+
+ while (this.next().type !== 'blockquote_end') {
+ body += this.tok();
+ }
+
+ return this.renderer.blockquote(body);
+ }
+ case 'list_start': {
+ var body = ''
+ , ordered = this.token.ordered;
+
+ while (this.next().type !== 'list_end') {
+ body += this.tok();
+ }
+
+ return this.renderer.list(body, ordered);
+ }
+ case 'list_item_start': {
+ var body = '';
+
+ while (this.next().type !== 'list_item_end') {
+ body += this.token.type === 'text'
+ ? this.parseText()
+ : this.tok();
+ }
+
+ return this.renderer.listitem(body);
+ }
+ case 'loose_item_start': {
+ var body = '';
+
+ while (this.next().type !== 'list_item_end') {
+ body += this.tok();
+ }
+
+ return this.renderer.listitem(body);
+ }
+ case 'html': {
+ var html = !this.token.pre && !this.options.pedantic
+ ? this.inline.output(this.token.text)
+ : this.token.text;
+ return this.renderer.html(html);
+ }
+ case 'paragraph': {
+ return this.renderer.paragraph(this.inline.output(this.token.text));
+ }
+ case 'text': {
+ return this.renderer.paragraph(this.parseText());
+ }
+ }
+};
+
+/**
+ * Helpers
+ */
+
+function escape(html, encode) {
+ return html
+ .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&amp;')
+ .replace(/</g, '&lt;')
+ .replace(/>/g, '&gt;')
+ .replace(/"/g, '&quot;')
+ .replace(/'/g, '&#39;');
+}
+
+function unescape(html) {
+ return html.replace(/&([#\w]+);/g, function(_, n) {
+ n = n.toLowerCase();
+ if (n === 'colon') return ':';
+ if (n.charAt(0) === '#') {
+ return n.charAt(1) === 'x'
+ ? String.fromCharCode(parseInt(n.substring(2), 16))
+ : String.fromCharCode(+n.substring(1));
+ }
+ return '';
+ });
+}
+
+function replace(regex, opt) {
+ regex = regex.source;
+ opt = opt || '';
+ return function self(name, val) {
+ if (!name) return new RegExp(regex, opt);
+ val = val.source || val;
+ val = val.replace(/(^|[^\[])\^/g, '$1');
+ regex = regex.replace(name, val);
+ return self;
+ };
+}
+
+function noop() {}
+noop.exec = noop;
+
+function merge(obj) {
+ var i = 1
+ , target
+ , key;
+
+ for (; i < arguments.length; i++) {
+ target = arguments[i];
+ for (key in target) {
+ if (Object.prototype.hasOwnProperty.call(target, key)) {
+ obj[key] = target[key];
+ }
+ }
+ }
+
+ return obj;
+}
+
+
+/**
+ * Marked
+ */
+
+function marked(src, opt, callback) {
+ if (callback || typeof opt === 'function') {
+ if (!callback) {
+ callback = opt;
+ opt = null;
+ }
+
+ opt = merge({}, marked.defaults, opt || {});
+
+ var highlight = opt.highlight
+ , tokens
+ , pending
+ , i = 0;
+
+ try {
+ tokens = Lexer.lex(src, opt)
+ } catch (e) {
+ return callback(e);
+ }
+
+ pending = tokens.length;
+
+ var done = function(err) {
+ if (err) {
+ opt.highlight = highlight;
+ return callback(err);
+ }
+
+ var out;
+
+ try {
+ out = Parser.parse(tokens, opt);
+ } catch (e) {
+ err = e;
+ }
+
+ opt.highlight = highlight;
+
+ return err
+ ? callback(err)
+ : callback(null, out);
+ };
+
+ if (!highlight || highlight.length < 3) {
+ return done();
+ }
+
+ delete opt.highlight;
+
+ if (!pending) return done();
+
+ for (; i < tokens.length; i++) {
+ (function(token) {
+ if (token.type !== 'code') {
+ return --pending || done();
+ }
+ return highlight(token.text, token.lang, function(err, code) {
+ if (err) return done(err);
+ if (code == null || code === token.text) {
+ return --pending || done();
+ }
+ token.text = code;
+ token.escaped = true;
+ --pending || done();
+ });
+ })(tokens[i]);
+ }
+
+ return;
+ }
+ try {
+ if (opt) opt = merge({}, marked.defaults, opt);
+ return Parser.parse(Lexer.lex(src, opt), opt);
+ } catch (e) {
+ e.message += '\nPlease report this to https://github.com/chjj/marked.';
+ if ((opt || marked.defaults).silent) {
+ return '<p>An error occured:</p><pre>'
+ + escape(e.message + '', true)
+ + '</pre>';
+ }
+ throw e;
+ }
+}
+
+/**
+ * Options
+ */
+
+marked.options =
+marked.setOptions = function(opt) {
+ merge(marked.defaults, opt);
+ return marked;
+};
+
+marked.defaults = {
+ gfm: true,
+ tables: true,
+ breaks: false,
+ pedantic: false,
+ sanitize: false,
+ smartLists: false,
+ silent: false,
+ highlight: null,
+ langPrefix: 'lang-',
+ smartypants: false,
+ headerPrefix: '',
+ renderer: new Renderer,
+ xhtml: false
+};
+
+/**
+ * Expose
+ */
+
+marked.Parser = Parser;
+marked.parser = Parser.parse;
+
+marked.Renderer = Renderer;
+
+marked.Lexer = Lexer;
+marked.lexer = Lexer.lex;
+
+marked.InlineLexer = InlineLexer;
+marked.inlineLexer = InlineLexer.output;
+
+marked.parse = marked;
+
+if (typeof module !== 'undefined' && typeof exports === 'object') {
+ module.exports = marked;
+} else if (typeof define === 'function' && define.amd) {
+ define(function() { return marked; });
+} else {
+ this.marked = marked;
+}
+
+}).call(function() {
+ return this || (typeof window !== 'undefined' ? window : global);
}()); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred.bundle.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred.bundle.js
index 4bbad0f5..83fe8fa6 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred.bundle.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred.bundle.js
@@ -1,2780 +1,2780 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-var require = function (file, cwd) {
- var resolved = require.resolve(file, cwd || '/');
- var mod = require.modules[resolved];
- if (!mod) throw new Error(
- 'Failed to resolve module ' + file + ', tried ' + resolved
- );
- var res = mod._cached ? mod._cached : mod();
- return res;
-}
-
-require.paths = [];
-require.modules = {};
-require.extensions = [".js",".coffee"];
-
-require._core = {
- 'assert': true,
- 'events': true,
- 'fs': true,
- 'path': true,
- 'vm': true
-};
-
-require.resolve = (function () {
- return function (x, cwd) {
- if (!cwd) cwd = '/';
-
- if (require._core[x]) return x;
- var path = require.modules.path();
- var y = cwd || '.';
-
- if (x.match(/^(?:\.\.?\/|\/)/)) {
- var m = loadAsFileSync(path.resolve(y, x))
- || loadAsDirectorySync(path.resolve(y, x));
- if (m) return m;
- }
-
- var n = loadNodeModulesSync(x, y);
- if (n) return n;
-
- throw new Error("Cannot find module '" + x + "'");
-
- function loadAsFileSync (x) {
- if (require.modules[x]) {
- return x;
- }
-
- for (var i = 0; i < require.extensions.length; i++) {
- var ext = require.extensions[i];
- if (require.modules[x + ext]) return x + ext;
- }
- }
-
- function loadAsDirectorySync (x) {
- x = x.replace(/\/+$/, '');
- var pkgfile = x + '/package.json';
- if (require.modules[pkgfile]) {
- var pkg = require.modules[pkgfile]();
- var b = pkg.browserify;
- if (typeof b === 'object' && b.main) {
- var m = loadAsFileSync(path.resolve(x, b.main));
- if (m) return m;
- }
- else if (typeof b === 'string') {
- var m = loadAsFileSync(path.resolve(x, b));
- if (m) return m;
- }
- else if (pkg.main) {
- var m = loadAsFileSync(path.resolve(x, pkg.main));
- if (m) return m;
- }
- }
-
- return loadAsFileSync(x + '/index');
- }
-
- function loadNodeModulesSync (x, start) {
- var dirs = nodeModulesPathsSync(start);
- for (var i = 0; i < dirs.length; i++) {
- var dir = dirs[i];
- var m = loadAsFileSync(dir + '/' + x);
- if (m) return m;
- var n = loadAsDirectorySync(dir + '/' + x);
- if (n) return n;
- }
-
- var m = loadAsFileSync(x);
- if (m) return m;
- }
-
- function nodeModulesPathsSync (start) {
- var parts;
- if (start === '/') parts = [ '' ];
- else parts = path.normalize(start).split('/');
-
- var dirs = [];
- for (var i = parts.length - 1; i >= 0; i--) {
- if (parts[i] === 'node_modules') continue;
- var dir = parts.slice(0, i + 1).join('/') + '/node_modules';
- dirs.push(dir);
- }
-
- return dirs;
- }
- };
-})();
-
-require.alias = function (from, to) {
- var path = require.modules.path();
- var res = null;
- try {
- res = require.resolve(from + '/package.json', '/');
- }
- catch (err) {
- res = require.resolve(from, '/');
- }
- var basedir = path.dirname(res);
-
- var keys = (Object.keys || function (obj) {
- var res = [];
- for (var key in obj) res.push(key)
- return res;
- })(require.modules);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- if (key.slice(0, basedir.length + 1) === basedir + '/') {
- var f = key.slice(basedir.length);
- require.modules[to + f] = require.modules[basedir + f];
- }
- else if (key === basedir) {
- require.modules[to] = require.modules[basedir];
- }
- }
-};
-
-require.define = function (filename, fn) {
- var dirname = require._core[filename]
- ? ''
- : require.modules.path().dirname(filename)
- ;
-
- var require_ = function (file) {
- return require(file, dirname)
- };
- require_.resolve = function (name) {
- return require.resolve(name, dirname);
- };
- require_.modules = require.modules;
- require_.define = require.define;
- var module_ = { exports : {} };
-
- require.modules[filename] = function () {
- require.modules[filename]._cached = module_.exports;
- fn.call(
- module_.exports,
- require_,
- module_,
- module_.exports,
- dirname,
- filename
- );
- require.modules[filename]._cached = module_.exports;
- return module_.exports;
- };
-};
-
-if (typeof process === 'undefined') process = {};
-
-if (!process.nextTick) process.nextTick = (function () {
- var queue = [];
- var canPost = typeof window !== 'undefined'
- && window.postMessage && window.addEventListener
- ;
-
- if (canPost) {
- window.addEventListener('message', function (ev) {
- if (ev.source === window && ev.data === 'browserify-tick') {
- ev.stopPropagation();
- if (queue.length > 0) {
- var fn = queue.shift();
- fn();
- }
- }
- }, true);
- }
-
- return function (fn) {
- if (canPost) {
- queue.push(fn);
- window.postMessage('browserify-tick', '*');
- }
- else setTimeout(fn, 0);
- };
-})();
-
-if (!process.title) process.title = 'browser';
-
-if (!process.binding) process.binding = function (name) {
- if (name === 'evals') return require('vm')
- else throw new Error('No such module')
-};
-
-if (!process.cwd) process.cwd = function () { return '.' };
-
-require.define("path", function (require, module, exports, __dirname, __filename) {
- function filter (xs, fn) {
- var res = [];
- for (var i = 0; i < xs.length; i++) {
- if (fn(xs[i], i, xs)) res.push(xs[i]);
- }
- return res;
-}
-
-// resolves . and .. elements in a path array with directory names there
-// must be no slashes, empty elements, or device names (c:\) in the array
-// (so also no leading and trailing slashes - it does not distinguish
-// relative and absolute paths)
-function normalizeArray(parts, allowAboveRoot) {
- // if the path tries to go above the root, `up` ends up > 0
- var up = 0;
- for (var i = parts.length; i >= 0; i--) {
- var last = parts[i];
- if (last == '.') {
- parts.splice(i, 1);
- } else if (last === '..') {
- parts.splice(i, 1);
- up++;
- } else if (up) {
- parts.splice(i, 1);
- up--;
- }
- }
-
- // if the path is allowed to go above the root, restore leading ..s
- if (allowAboveRoot) {
- for (; up--; up) {
- parts.unshift('..');
- }
- }
-
- return parts;
-}
-
-// Regex to split a filename into [*, dir, basename, ext]
-// posix version
-var splitPathRe = /^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;
-
-// path.resolve([from ...], to)
-// posix version
-exports.resolve = function() {
-var resolvedPath = '',
- resolvedAbsolute = false;
-
-for (var i = arguments.length; i >= -1 && !resolvedAbsolute; i--) {
- var path = (i >= 0)
- ? arguments[i]
- : process.cwd();
-
- // Skip empty and invalid entries
- if (typeof path !== 'string' || !path) {
- continue;
- }
-
- resolvedPath = path + '/' + resolvedPath;
- resolvedAbsolute = path.charAt(0) === '/';
-}
-
-// At this point the path should be resolved to a full absolute path, but
-// handle relative paths to be safe (might happen when process.cwd() fails)
-
-// Normalize the path
-resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
- return !!p;
- }), !resolvedAbsolute).join('/');
-
- return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
-};
-
-// path.normalize(path)
-// posix version
-exports.normalize = function(path) {
-var isAbsolute = path.charAt(0) === '/',
- trailingSlash = path.slice(-1) === '/';
-
-// Normalize the path
-path = normalizeArray(filter(path.split('/'), function(p) {
- return !!p;
- }), !isAbsolute).join('/');
-
- if (!path && !isAbsolute) {
- path = '.';
- }
- if (path && trailingSlash) {
- path += '/';
- }
-
- return (isAbsolute ? '/' : '') + path;
-};
-
-
-// posix version
-exports.join = function() {
- var paths = Array.prototype.slice.call(arguments, 0);
- return exports.normalize(filter(paths, function(p, index) {
- return p && typeof p === 'string';
- }).join('/'));
-};
-
-
-exports.dirname = function(path) {
- var dir = splitPathRe.exec(path)[1] || '';
- var isWindows = false;
- if (!dir) {
- // No dirname
- return '.';
- } else if (dir.length === 1 ||
- (isWindows && dir.length <= 3 && dir.charAt(1) === ':')) {
- // It is just a slash or a drive letter with a slash
- return dir;
- } else {
- // It is a full dirname, strip trailing slash
- return dir.substring(0, dir.length - 1);
- }
-};
-
-
-exports.basename = function(path, ext) {
- var f = splitPathRe.exec(path)[2] || '';
- // TODO: make this comparison case-insensitive on windows?
- if (ext && f.substr(-1 * ext.length) === ext) {
- f = f.substr(0, f.length - ext.length);
- }
- return f;
-};
-
-
-exports.extname = function(path) {
- return splitPathRe.exec(path)[3] || '';
-};
-
-});
-
-require.define("/shred.js", function (require, module, exports, __dirname, __filename) {
- // Shred is an HTTP client library intended to simplify the use of Node's
-// built-in HTTP library. In particular, we wanted to make it easier to interact
-// with HTTP-based APIs.
-//
-// See the [examples](./examples.html) for more details.
-
-// Ax is a nice logging library we wrote. You can use any logger, providing it
-// has `info`, `warn`, `debug`, and `error` methods that take a string.
-var Ax = require("ax")
- , CookieJarLib = require( "cookiejar" )
- , CookieJar = CookieJarLib.CookieJar
-;
-
-// Shred takes some options, including a logger and request defaults.
-
-var Shred = function(options) {
- options = (options||{});
- this.agent = options.agent;
- this.defaults = options.defaults||{};
- this.log = options.logger||(new Ax({ level: "info" }));
- this._sharedCookieJar = new CookieJar();
- this.logCurl = options.logCurl || false;
-};
-
-// Most of the real work is done in the request and reponse classes.
-
-Shred.Request = require("./shred/request");
-Shred.Response = require("./shred/response");
-
-// The `request` method kicks off a new request, instantiating a new `Request`
-// object and passing along whatever default options we were given.
-
-Shred.prototype = {
- request: function(options) {
- options.logger = this.log;
- options.logCurl = options.logCurl || this.logCurl;
- options.cookieJar = ( 'cookieJar' in options ) ? options.cookieJar : this._sharedCookieJar; // let them set cookieJar = null
- options.agent = options.agent || this.agent;
- // fill in default options
- for (var key in this.defaults) {
- if (this.defaults.hasOwnProperty(key) && !options[key]) {
- options[key] = this.defaults[key]
- }
- }
- return new Shred.Request(options);
- }
-};
-
-// Define a bunch of convenience methods so that you don't have to include
-// a `method` property in your request options.
-
-"get put post delete".split(" ").forEach(function(method) {
- Shred.prototype[method] = function(options) {
- options.method = method;
- return this.request(options);
- };
-});
-
-
-module.exports = Shred;
-
-});
-
-require.define("/node_modules/ax/package.json", function (require, module, exports, __dirname, __filename) {
- module.exports = {"main":"./lib/ax.js"}
-});
-
-require.define("/node_modules/ax/lib/ax.js", function (require, module, exports, __dirname, __filename) {
- var inspect = require("util").inspect
- , fs = require("fs")
-;
-
-
-// this is a quick-and-dirty logger. there are other nicer loggers out there
-// but the ones i found were also somewhat involved. this one has a Ruby
-// logger type interface
-//
-// we can easily replace this, provide the info, debug, etc. methods are the
-// same. or, we can change Haiku to use a more standard node.js interface
-
-var format = function(level,message) {
- var debug = (level=="debug"||level=="error");
- if (!message) { return message.toString(); }
- if (typeof(message) == "object") {
- if (message instanceof Error && debug) {
- return message.stack;
- } else {
- return inspect(message);
- }
- } else {
- return message.toString();
- }
-};
-
-var noOp = function(message) { return this; }
-var makeLogger = function(level,fn) {
- return function(message) {
- this.stream.write(this.format(level, message)+"\n");
- return this;
- }
-};
-
-var Logger = function(options) {
- var logger = this;
- var options = options||{};
-
- // Default options
- options.level = options.level || "info";
- options.timestamp = options.timestamp || true;
- options.prefix = options.prefix || "";
- logger.options = options;
-
- // Allows a prefix to be added to the message.
- //
- // var logger = new Ax({ module: 'Haiku' })
- // logger.warn('this is going to be awesome!');
- // //=> Haiku: this is going to be awesome!
- //
- if (logger.options.module){
- logger.options.prefix = logger.options.module;
- }
-
- // Write to stderr or a file
- if (logger.options.file){
- logger.stream = fs.createWriteStream(logger.options.file, {"flags": "a"});
- } else {
- if(process.title === "node")
- logger.stream = process.stderr;
- else if(process.title === "browser")
- logger.stream = function () {
- // Work around weird console context issue: http://code.google.com/p/chromium/issues/detail?id=48662
- return console[logger.options.level].apply(console, arguments);
- };
- }
-
- switch(logger.options.level){
- case 'debug':
- ['debug', 'info', 'warn'].forEach(function (level) {
- logger[level] = Logger.writer(level);
- });
- case 'info':
- ['info', 'warn'].forEach(function (level) {
- logger[level] = Logger.writer(level);
- });
- case 'warn':
- logger.warn = Logger.writer('warn');
- }
-}
-
-// Used to define logger methods
-Logger.writer = function(level){
- return function(message){
- var logger = this;
-
- if(process.title === "node")
- logger.stream.write(logger.format(level, message) + '\n');
- else if(process.title === "browser")
- logger.stream(logger.format(level, message) + '\n');
-
- };
-}
-
-
-Logger.prototype = {
- info: function(){},
- debug: function(){},
- warn: function(){},
- error: Logger.writer('error'),
- format: function(level, message){
- if (! message) return '';
-
- var logger = this
- , prefix = logger.options.prefix
- , timestamp = logger.options.timestamp ? " " + (new Date().toISOString()) : ""
- ;
-
- return (prefix + timestamp + ": " + message);
- }
-};
-
-module.exports = Logger;
-
-});
-
-require.define("util", function (require, module, exports, __dirname, __filename) {
- // todo
-
-});
-
-require.define("fs", function (require, module, exports, __dirname, __filename) {
- // nothing to see here... no file methods for the browser
-
-});
-
-require.define("/node_modules/cookiejar/package.json", function (require, module, exports, __dirname, __filename) {
- module.exports = {"main":"cookiejar.js"}
-});
-
-require.define("/node_modules/cookiejar/cookiejar.js", function (require, module, exports, __dirname, __filename) {
- exports.CookieAccessInfo=CookieAccessInfo=function CookieAccessInfo(domain,path,secure,script) {
- if(this instanceof CookieAccessInfo) {
- this.domain=domain||undefined;
- this.path=path||"/";
- this.secure=!!secure;
- this.script=!!script;
- return this;
- }
- else {
- return new CookieAccessInfo(domain,path,secure,script)
- }
-}
-
-exports.Cookie=Cookie=function Cookie(cookiestr) {
- if(cookiestr instanceof Cookie) {
- return cookiestr;
- }
- else {
- if(this instanceof Cookie) {
- this.name = null;
- this.value = null;
- this.expiration_date = Infinity;
- this.path = "/";
- this.domain = null;
- this.secure = false; //how to define?
- this.noscript = false; //httponly
- if(cookiestr) {
- this.parse(cookiestr)
- }
- return this;
- }
- return new Cookie(cookiestr)
- }
-}
-
-Cookie.prototype.toString = function toString() {
- var str=[this.name+"="+this.value];
- if(this.expiration_date !== Infinity) {
- str.push("expires="+(new Date(this.expiration_date)).toGMTString());
- }
- if(this.domain) {
- str.push("domain="+this.domain);
- }
- if(this.path) {
- str.push("path="+this.path);
- }
- if(this.secure) {
- str.push("secure");
- }
- if(this.noscript) {
- str.push("httponly");
- }
- return str.join("; ");
-}
-
-Cookie.prototype.toValueString = function toValueString() {
- return this.name+"="+this.value;
-}
-
-var cookie_str_splitter=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g
-Cookie.prototype.parse = function parse(str) {
- if(this instanceof Cookie) {
- var parts=str.split(";")
- , pair=parts[0].match(/([^=]+)=((?:.|\n)*)/)
- , key=pair[1]
- , value=pair[2];
- this.name = key;
- this.value = value;
-
- for(var i=1;i<parts.length;i++) {
- pair=parts[i].match(/([^=]+)(?:=((?:.|\n)*))?/)
- , key=pair[1].trim().toLowerCase()
- , value=pair[2];
- switch(key) {
- case "httponly":
- this.noscript = true;
- break;
- case "expires":
- this.expiration_date = value
- ? Number(Date.parse(value))
- : Infinity;
- break;
- case "path":
- this.path = value
- ? value.trim()
- : "";
- break;
- case "domain":
- this.domain = value
- ? value.trim()
- : "";
- break;
- case "secure":
- this.secure = true;
- break
- }
- }
-
- return this;
- }
- return new Cookie().parse(str)
-}
-
-Cookie.prototype.matches = function matches(access_info) {
- if(this.noscript && access_info.script
- || this.secure && !access_info.secure
- || !this.collidesWith(access_info)) {
- return false
- }
- return true;
-}
-
-Cookie.prototype.collidesWith = function collidesWith(access_info) {
- if((this.path && !access_info.path) || (this.domain && !access_info.domain)) {
- return false
- }
- if(this.path && access_info.path.indexOf(this.path) !== 0) {
- return false;
- }
- if (this.domain===access_info.domain) {
- return true;
- }
- else if(this.domain && this.domain.charAt(0)===".")
- {
- var wildcard=access_info.domain.indexOf(this.domain.slice(1))
- if(wildcard===-1 || wildcard!==access_info.domain.length-this.domain.length+1) {
- return false;
- }
- }
- else if(this.domain){
- return false
- }
- return true;
-}
-
-exports.CookieJar=CookieJar=function CookieJar() {
- if(this instanceof CookieJar) {
- var cookies = {} //name: [Cookie]
-
- this.setCookie = function setCookie(cookie) {
- cookie = Cookie(cookie);
- //Delete the cookie if the set is past the current time
- var remove = cookie.expiration_date <= Date.now();
- if(cookie.name in cookies) {
- var cookies_list = cookies[cookie.name];
- for(var i=0;i<cookies_list.length;i++) {
- var collidable_cookie = cookies_list[i];
- if(collidable_cookie.collidesWith(cookie)) {
- if(remove) {
- cookies_list.splice(i,1);
- if(cookies_list.length===0) {
- delete cookies[cookie.name]
- }
- return false;
- }
- else {
- return cookies_list[i]=cookie;
- }
- }
- }
- if(remove) {
- return false;
- }
- cookies_list.push(cookie);
- return cookie;
- }
- else if(remove){
- return false;
- }
- else {
- return cookies[cookie.name]=[cookie];
- }
- }
- //returns a cookie
- this.getCookie = function getCookie(cookie_name,access_info) {
- var cookies_list = cookies[cookie_name];
- for(var i=0;i<cookies_list.length;i++) {
- var cookie = cookies_list[i];
- if(cookie.expiration_date <= Date.now()) {
- if(cookies_list.length===0) {
- delete cookies[cookie.name]
- }
- continue;
- }
- if(cookie.matches(access_info)) {
- return cookie;
- }
- }
- }
- //returns a list of cookies
- this.getCookies = function getCookies(access_info) {
- var matches=[];
- for(var cookie_name in cookies) {
- var cookie=this.getCookie(cookie_name,access_info);
- if (cookie) {
- matches.push(cookie);
- }
- }
- matches.toString=function toString(){return matches.join(":");}
- matches.toValueString=function() {return matches.map(function(c){return c.toValueString();}).join(';');}
- return matches;
- }
-
- return this;
- }
- return new CookieJar()
-}
-
-
-//returns list of cookies that were set correctly
-CookieJar.prototype.setCookies = function setCookies(cookies) {
- cookies=Array.isArray(cookies)
- ?cookies
- :cookies.split(cookie_str_splitter);
- var successful=[]
- for(var i=0;i<cookies.length;i++) {
- var cookie = Cookie(cookies[i]);
- if(this.setCookie(cookie)) {
- successful.push(cookie);
- }
- }
- return successful;
-}
-
-});
-
-require.define("/shred/request.js", function (require, module, exports, __dirname, __filename) {
- // The request object encapsulates a request, creating a Node.js HTTP request and
-// then handling the response.
-
-var HTTP = require("http")
- , HTTPS = require("https")
- , parseUri = require("./parseUri")
- , Emitter = require('events').EventEmitter
- , sprintf = require("sprintf").sprintf
- , Response = require("./response")
- , HeaderMixins = require("./mixins/headers")
- , Content = require("./content")
-;
-
-var STATUS_CODES = HTTP.STATUS_CODES || {
- 100 : 'Continue',
- 101 : 'Switching Protocols',
- 102 : 'Processing', // RFC 2518, obsoleted by RFC 4918
- 200 : 'OK',
- 201 : 'Created',
- 202 : 'Accepted',
- 203 : 'Non-Authoritative Information',
- 204 : 'No Content',
- 205 : 'Reset Content',
- 206 : 'Partial Content',
- 207 : 'Multi-Status', // RFC 4918
- 300 : 'Multiple Choices',
- 301 : 'Moved Permanently',
- 302 : 'Moved Temporarily',
- 303 : 'See Other',
- 304 : 'Not Modified',
- 305 : 'Use Proxy',
- 307 : 'Temporary Redirect',
- 400 : 'Bad Request',
- 401 : 'Unauthorized',
- 402 : 'Payment Required',
- 403 : 'Forbidden',
- 404 : 'Not Found',
- 405 : 'Method Not Allowed',
- 406 : 'Not Acceptable',
- 407 : 'Proxy Authentication Required',
- 408 : 'Request Time-out',
- 409 : 'Conflict',
- 410 : 'Gone',
- 411 : 'Length Required',
- 412 : 'Precondition Failed',
- 413 : 'Request Entity Too Large',
- 414 : 'Request-URI Too Large',
- 415 : 'Unsupported Media Type',
- 416 : 'Requested Range Not Satisfiable',
- 417 : 'Expectation Failed',
- 418 : 'I\'m a teapot', // RFC 2324
- 422 : 'Unprocessable Entity', // RFC 4918
- 423 : 'Locked', // RFC 4918
- 424 : 'Failed Dependency', // RFC 4918
- 425 : 'Unordered Collection', // RFC 4918
- 426 : 'Upgrade Required', // RFC 2817
- 500 : 'Internal Server Error',
- 501 : 'Not Implemented',
- 502 : 'Bad Gateway',
- 503 : 'Service Unavailable',
- 504 : 'Gateway Time-out',
- 505 : 'HTTP Version not supported',
- 506 : 'Variant Also Negotiates', // RFC 2295
- 507 : 'Insufficient Storage', // RFC 4918
- 509 : 'Bandwidth Limit Exceeded',
- 510 : 'Not Extended' // RFC 2774
-};
-
-// The Shred object itself constructs the `Request` object. You should rarely
-// need to do this directly.
-
-var Request = function(options) {
- this.log = options.logger;
- this.cookieJar = options.cookieJar;
- this.encoding = options.encoding;
- this.logCurl = options.logCurl;
- processOptions(this,options||{});
- createRequest(this);
-};
-
-// A `Request` has a number of properties, many of which help with details like
-// URL parsing or defaulting the port for the request.
-
-Object.defineProperties(Request.prototype, {
-
-// - **url**. You can set the `url` property with a valid URL string and all the
-// URL-related properties (host, port, etc.) will be automatically set on the
-// request object.
-
- url: {
- get: function() {
- if (!this.scheme) { return null; }
- return sprintf("%s://%s:%s%s",
- this.scheme, this.host, this.port,
- (this.proxy ? "/" : this.path) +
- (this.query ? ("?" + this.query) : ""));
- },
- set: function(_url) {
- _url = parseUri(_url);
- this.scheme = _url.protocol;
- this.host = _url.host;
- this.port = _url.port;
- this.path = _url.path;
- this.query = _url.query;
- return this;
- },
- enumerable: true
- },
-
-// - **headers**. Returns a hash representing the request headers. You can't set
-// this directly, only get it. You can add or modify headers by using the
-// `setHeader` or `setHeaders` method. This ensures that the headers are
-// normalized - that is, you don't accidentally send `Content-Type` and
-// `content-type` headers. Keep in mind that if you modify the returned hash,
-// it will *not* modify the request headers.
-
- headers: {
- get: function() {
- return this.getHeaders();
- },
- enumerable: true
- },
-
-// - **port**. Unless you set the `port` explicitly or include it in the URL, it
-// will default based on the scheme.
-
- port: {
- get: function() {
- if (!this._port) {
- switch(this.scheme) {
- case "https": return this._port = 443;
- case "http":
- default: return this._port = 80;
- }
- }
- return this._port;
- },
- set: function(value) { this._port = value; return this; },
- enumerable: true
- },
-
-// - **method**. The request method - `get`, `put`, `post`, etc. that will be
-// used to make the request. Defaults to `get`.
-
- method: {
- get: function() {
- return this._method = (this._method||"GET");
- },
- set: function(value) {
- this._method = value; return this;
- },
- enumerable: true
- },
-
-// - **query**. Can be set either with a query string or a hash (object). Get
-// will always return a properly escaped query string or null if there is no
-// query component for the request.
-
- query: {
- get: function() {return this._query;},
- set: function(value) {
- var stringify = function (hash) {
- var query = "";
- for (var key in hash) {
- query += encodeURIComponent(key) + '=' + encodeURIComponent(hash[key]) + '&';
- }
- // Remove the last '&'
- query = query.slice(0, -1);
- return query;
- }
-
- if (value) {
- if (typeof value === 'object') {
- value = stringify(value);
- }
- this._query = value;
- } else {
- this._query = "";
- }
- return this;
- },
- enumerable: true
- },
-
-// - **parameters**. This will return the query parameters in the form of a hash
-// (object).
-
- parameters: {
- get: function() { return QueryString.parse(this._query||""); },
- enumerable: true
- },
-
-// - **content**. (Aliased as `body`.) Set this to add a content entity to the
-// request. Attempts to use the `content-type` header to determine what to do
-// with the content value. Get this to get back a [`Content`
-// object](./content.html).
-
- body: {
- get: function() { return this._body; },
- set: function(value) {
- this._body = new Content({
- data: value,
- type: this.getHeader("Content-Type")
- });
- this.setHeader("Content-Type",this.content.type);
- this.setHeader("Content-Length",this.content.length);
- return this;
- },
- enumerable: true
- },
-
-// - **timeout**. Used to determine how long to wait for a response. Does not
-// distinguish between connect timeouts versus request timeouts. Set either in
-// milliseconds or with an object with temporal attributes (hours, minutes,
-// seconds) and convert it into milliseconds. Get will always return
-// milliseconds.
-
- timeout: {
- get: function() { return this._timeout; }, // in milliseconds
- set: function(timeout) {
- var request = this
- , milliseconds = 0;
- ;
- if (!timeout) return this;
- if (typeof timeout==="number") { milliseconds = timeout; }
- else {
- milliseconds = (timeout.milliseconds||0) +
- (1000 * ((timeout.seconds||0) +
- (60 * ((timeout.minutes||0) +
- (60 * (timeout.hours||0))))));
- }
- this._timeout = milliseconds;
- return this;
- },
- enumerable: true
- }
-});
-
-// Alias `body` property to `content`. Since the [content object](./content.html)
-// has a `body` attribute, it's preferable to use `content` since you can then
-// access the raw content data using `content.body`.
-
-Object.defineProperty(Request.prototype,"content",
- Object.getOwnPropertyDescriptor(Request.prototype, "body"));
-
-// The `Request` object can be pretty overwhelming to view using the built-in
-// Node.js inspect method. We want to make it a bit more manageable. This
-// probably goes [too far in the other
-// direction](https://github.com/spire-io/shred/issues/2).
-
-Request.prototype.inspect = function () {
- var request = this;
- var headers = this.format_headers();
- var summary = ["<Shred Request> ", request.method.toUpperCase(),
- request.url].join(" ")
- return [ summary, "- Headers:", headers].join("\n");
-};
-
-Request.prototype.format_headers = function () {
- var array = []
- var headers = this._headers
- for (var key in headers) {
- if (headers.hasOwnProperty(key)) {
- var value = headers[key]
- array.push("\t" + key + ": " + value);
- }
- }
- return array.join("\n");
-};
-
-// Allow chainable 'on's: shred.get({ ... }).on( ... ). You can pass in a
-// single function, a pair (event, function), or a hash:
-// { event: function, event: function }
-Request.prototype.on = function (eventOrHash, listener) {
- var emitter = this.emitter;
- // Pass in a single argument as a function then make it the default response handler
- if (arguments.length === 1 && typeof(eventOrHash) === 'function') {
- emitter.on('response', eventOrHash);
- } else if (arguments.length === 1 && typeof(eventOrHash) === 'object') {
- for (var key in eventOrHash) {
- if (eventOrHash.hasOwnProperty(key)) {
- emitter.on(key, eventOrHash[key]);
- }
- }
- } else {
- emitter.on(eventOrHash, listener);
- }
- return this;
-};
-
-// Add in the header methods. Again, these ensure we don't get the same header
-// multiple times with different case conventions.
-HeaderMixins.gettersAndSetters(Request);
-
-// `processOptions` is called from the constructor to handle all the work
-// associated with making sure we do our best to ensure we have a valid request.
-
-var processOptions = function(request,options) {
-
- request.log.debug("Processing request options ..");
-
- // We'll use `request.emitter` to manage the `on` event handlers.
- request.emitter = (new Emitter);
-
- request.agent = options.agent;
-
- // Set up the handlers ...
- if (options.on) {
- for (var key in options.on) {
- if (options.on.hasOwnProperty(key)) {
- request.emitter.on(key, options.on[key]);
- }
- }
- }
-
- // Make sure we were give a URL or a host
- if (!options.url && !options.host) {
- request.emitter.emit("request_error",
- new Error("No url or url options (host, port, etc.)"));
- return;
- }
-
- // Allow for the [use of a proxy](http://www.jmarshall.com/easy/http/#proxies).
-
- if (options.url) {
- if (options.proxy) {
- request.url = options.proxy;
- request.path = options.url;
- } else {
- request.url = options.url;
- }
- }
-
- // Set the remaining options.
- request.query = options.query||options.parameters||request.query ;
- request.method = options.method;
- request.setHeader("user-agent",options.agent||"Shred");
- request.setHeaders(options.headers);
-
- if (request.cookieJar) {
- var cookies = request.cookieJar.getCookies( CookieAccessInfo( request.host, request.path ) );
- if (cookies.length) {
- var cookieString = request.getHeader('cookie')||'';
- for (var cookieIndex = 0; cookieIndex < cookies.length; ++cookieIndex) {
- if ( cookieString.length && cookieString[ cookieString.length - 1 ] != ';' )
- {
- cookieString += ';';
- }
- cookieString += cookies[ cookieIndex ].name + '=' + cookies[ cookieIndex ].value + ';';
- }
- request.setHeader("cookie", cookieString);
- }
- }
-
- // The content entity can be set either using the `body` or `content` attributes.
- if (options.body||options.content) {
- request.content = options.body||options.content;
- }
- request.timeout = options.timeout;
-
-};
-
-// `createRequest` is also called by the constructor, after `processOptions`.
-// This actually makes the request and processes the response, so `createRequest`
-// is a bit of a misnomer.
-
-var createRequest = function(request) {
- var timeout ;
-
- request.log.debug("Creating request ..");
- request.log.debug(request);
-
- var reqParams = {
- host: request.host,
- port: request.port,
- method: request.method,
- path: request.path + (request.query ? '?'+request.query : ""),
- headers: request.getHeaders(),
- // Node's HTTP/S modules will ignore this, but we are using the
- // browserify-http module in the browser for both HTTP and HTTPS, and this
- // is how you differentiate the two.
- scheme: request.scheme,
- // Use a provided agent. 'Undefined' is the default, which uses a global
- // agent.
- agent: request.agent
- };
-
- if (request.logCurl) {
- logCurl(request);
- }
-
- var http = request.scheme == "http" ? HTTP : HTTPS;
-
- // Set up the real request using the selected library. The request won't be
- // sent until we call `.end()`.
- request._raw = http.request(reqParams, function(response) {
- request.log.debug("Received response ..");
-
- // We haven't timed out and we have a response, so make sure we clear the
- // timeout so it doesn't fire while we're processing the response.
- clearTimeout(timeout);
-
- // Construct a Shred `Response` object from the response. This will stream
- // the response, thus the need for the callback. We can access the response
- // entity safely once we're in the callback.
- response = new Response(response, request, function(response) {
-
- // Set up some event magic. The precedence is given first to
- // status-specific handlers, then to responses for a given event, and then
- // finally to the more general `response` handler. In the last case, we
- // need to first make sure we're not dealing with a a redirect.
- var emit = function(event) {
- var emitter = request.emitter;
- var textStatus = STATUS_CODES[response.status] ? STATUS_CODES[response.status].toLowerCase() : null;
- if (emitter.listeners(response.status).length > 0 || emitter.listeners(textStatus).length > 0) {
- emitter.emit(response.status, response);
- emitter.emit(textStatus, response);
- } else {
- if (emitter.listeners(event).length>0) {
- emitter.emit(event, response);
- } else if (!response.isRedirect) {
- emitter.emit("response", response);
- //console.warn("Request has no event listener for status code " + response.status);
- }
- }
- };
-
- // Next, check for a redirect. We simply repeat the request with the URL
- // given in the `Location` header. We fire a `redirect` event.
- if (response.isRedirect) {
- request.log.debug("Redirecting to "
- + response.getHeader("Location"));
- request.url = response.getHeader("Location");
- emit("redirect");
- createRequest(request);
-
- // Okay, it's not a redirect. Is it an error of some kind?
- } else if (response.isError) {
- emit("error");
- } else {
- // It looks like we're good shape. Trigger the `success` event.
- emit("success");
- }
- });
- });
-
- // We're still setting up the request. Next, we're going to handle error cases
- // where we have no response. We don't emit an error event because that event
- // takes a response. We don't response handlers to have to check for a null
- // value. However, we [should introduce a different event
- // type](https://github.com/spire-io/shred/issues/3) for this type of error.
- request._raw.on("error", function(error) {
- request.emitter.emit("request_error", error);
- });
-
- request._raw.on("socket", function(socket) {
- request.emitter.emit("socket", socket);
- });
-
- // TCP timeouts should also trigger the "response_error" event.
- request._raw.on('socket', function () {
- request._raw.socket.on('timeout', function () {
- // This should trigger the "error" event on the raw request, which will
- // trigger the "response_error" on the shred request.
- request._raw.abort();
- });
- });
-
-
- // We're almost there. Next, we need to write the request entity to the
- // underlying request object.
- if (request.content) {
- request.log.debug("Streaming body: '" +
- request.content.data.slice(0,59) + "' ... ");
- request._raw.write(request.content.data);
- }
-
- // Finally, we need to set up the timeout. We do this last so that we don't
- // start the clock ticking until the last possible moment.
- if (request.timeout) {
- timeout = setTimeout(function() {
- request.log.debug("Timeout fired, aborting request ...");
- request._raw.abort();
- request.emitter.emit("timeout", request);
- },request.timeout);
- }
-
- // The `.end()` method will cause the request to fire. Technically, it might
- // have already sent the headers and body.
- request.log.debug("Sending request ...");
- request._raw.end();
-};
-
-// Logs the curl command for the request.
-var logCurl = function (req) {
- var headers = req.getHeaders();
- var headerString = "";
-
- for (var key in headers) {
- headerString += '-H "' + key + ": " + headers[key] + '" ';
- }
-
- var bodyString = ""
-
- if (req.content) {
- bodyString += "-d '" + req.content.body + "' ";
- }
-
- var query = req.query ? '?' + req.query : "";
-
- console.log("curl " +
- "-X " + req.method.toUpperCase() + " " +
- req.scheme + "://" + req.host + ":" + req.port + req.path + query + " " +
- headerString +
- bodyString
- );
-};
-
-
-module.exports = Request;
-
-});
-
-require.define("http", function (require, module, exports, __dirname, __filename) {
- // todo
-
-});
-
-require.define("https", function (require, module, exports, __dirname, __filename) {
- // todo
-
-});
-
-require.define("/shred/parseUri.js", function (require, module, exports, __dirname, __filename) {
- // parseUri 1.2.2
-// (c) Steven Levithan <stevenlevithan.com>
-// MIT License
-
-function parseUri (str) {
- var o = parseUri.options,
- m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
- uri = {},
- i = 14;
-
- while (i--) uri[o.key[i]] = m[i] || "";
-
- uri[o.q.name] = {};
- uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
- if ($1) uri[o.q.name][$1] = $2;
- });
-
- return uri;
-};
-
-parseUri.options = {
- strictMode: false,
- key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
- q: {
- name: "queryKey",
- parser: /(?:^|&)([^&=]*)=?([^&]*)/g
- },
- parser: {
- strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
- loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
- }
-};
-
-module.exports = parseUri;
-
-});
-
-require.define("events", function (require, module, exports, __dirname, __filename) {
- if (!process.EventEmitter) process.EventEmitter = function () {};
-
-var EventEmitter = exports.EventEmitter = process.EventEmitter;
-var isArray = typeof Array.isArray === 'function'
- ? Array.isArray
- : function (xs) {
- return Object.toString.call(xs) === '[object Array]'
- }
-;
-
-// By default EventEmitters will print a warning if more than
-// 10 listeners are added to it. This is a useful default which
-// helps finding memory leaks.
-//
-// Obviously not all Emitters should be limited to 10. This function allows
-// that to be increased. Set to zero for unlimited.
-var defaultMaxListeners = 10;
-EventEmitter.prototype.setMaxListeners = function(n) {
- if (!this._events) this._events = {};
- this._events.maxListeners = n;
-};
-
-
-EventEmitter.prototype.emit = function(type) {
- // If there is no 'error' event listener then throw.
- if (type === 'error') {
- if (!this._events || !this._events.error ||
- (isArray(this._events.error) && !this._events.error.length))
- {
- if (arguments[1] instanceof Error) {
- throw arguments[1]; // Unhandled 'error' event
- } else {
- throw new Error("Uncaught, unspecified 'error' event.");
- }
- return false;
- }
- }
-
- if (!this._events) return false;
- var handler = this._events[type];
- if (!handler) return false;
-
- if (typeof handler == 'function') {
- switch (arguments.length) {
- // fast cases
- case 1:
- handler.call(this);
- break;
- case 2:
- handler.call(this, arguments[1]);
- break;
- case 3:
- handler.call(this, arguments[1], arguments[2]);
- break;
- // slower
- default:
- var args = Array.prototype.slice.call(arguments, 1);
- handler.apply(this, args);
- }
- return true;
-
- } else if (isArray(handler)) {
- var args = Array.prototype.slice.call(arguments, 1);
-
- var listeners = handler.slice();
- for (var i = 0, l = listeners.length; i < l; i++) {
- listeners[i].apply(this, args);
- }
- return true;
-
- } else {
- return false;
- }
-};
-
-// EventEmitter is defined in src/node_events.cc
-// EventEmitter.prototype.emit() is also defined there.
-EventEmitter.prototype.addListener = function(type, listener) {
- if ('function' !== typeof listener) {
- throw new Error('addListener only takes instances of Function');
- }
-
- if (!this._events) this._events = {};
-
- // To avoid recursion in the case that type == "newListeners"! Before
- // adding it to the listeners, first emit "newListeners".
- this.emit('newListener', type, listener);
-
- if (!this._events[type]) {
- // Optimize the case of one listener. Don't need the extra array object.
- this._events[type] = listener;
- } else if (isArray(this._events[type])) {
-
- // Check for listener leak
- if (!this._events[type].warned) {
- var m;
- if (this._events.maxListeners !== undefined) {
- m = this._events.maxListeners;
- } else {
- m = defaultMaxListeners;
- }
-
- if (m && m > 0 && this._events[type].length > m) {
- this._events[type].warned = true;
- console.error('(node) warning: possible EventEmitter memory ' +
- 'leak detected. %d listeners added. ' +
- 'Use emitter.setMaxListeners() to increase limit.',
- this._events[type].length);
- console.trace();
- }
- }
-
- // If we've already got an array, just append.
- this._events[type].push(listener);
- } else {
- // Adding the second element, need to change to array.
- this._events[type] = [this._events[type], listener];
- }
-
- return this;
-};
-
-EventEmitter.prototype.on = EventEmitter.prototype.addListener;
-
-EventEmitter.prototype.once = function(type, listener) {
- var self = this;
- self.on(type, function g() {
- self.removeListener(type, g);
- listener.apply(this, arguments);
- });
-
- return this;
-};
-
-EventEmitter.prototype.removeListener = function(type, listener) {
- if ('function' !== typeof listener) {
- throw new Error('removeListener only takes instances of Function');
- }
-
- // does not use listeners(), so no side effect of creating _events[type]
- if (!this._events || !this._events[type]) return this;
-
- var list = this._events[type];
-
- if (isArray(list)) {
- var i = list.indexOf(listener);
- if (i < 0) return this;
- list.splice(i, 1);
- if (list.length == 0)
- delete this._events[type];
- } else if (this._events[type] === listener) {
- delete this._events[type];
- }
-
- return this;
-};
-
-EventEmitter.prototype.removeAllListeners = function(type) {
- // does not use listeners(), so no side effect of creating _events[type]
- if (type && this._events && this._events[type]) this._events[type] = null;
- return this;
-};
-
-EventEmitter.prototype.listeners = function(type) {
- if (!this._events) this._events = {};
- if (!this._events[type]) this._events[type] = [];
- if (!isArray(this._events[type])) {
- this._events[type] = [this._events[type]];
- }
- return this._events[type];
-};
-
-});
-
-require.define("/node_modules/sprintf/package.json", function (require, module, exports, __dirname, __filename) {
- module.exports = {"main":"./lib/sprintf"}
-});
-
-require.define("/node_modules/sprintf/lib/sprintf.js", function (require, module, exports, __dirname, __filename) {
- /**
-sprintf() for JavaScript 0.7-beta1
-http://www.diveintojavascript.com/projects/javascript-sprintf
-
-Copyright (c) Alexandru Marasteanu <alexaholic [at) gmail (dot] com>
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * Neither the name of sprintf() for JavaScript nor the
- names of its contributors may be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-Changelog:
-2010.11.07 - 0.7-beta1-node
- - converted it to a node.js compatible module
-
-2010.09.06 - 0.7-beta1
- - features: vsprintf, support for named placeholders
- - enhancements: format cache, reduced global namespace pollution
-
-2010.05.22 - 0.6:
- - reverted to 0.4 and fixed the bug regarding the sign of the number 0
- Note:
- Thanks to Raphael Pigulla <raph (at] n3rd [dot) org> (http://www.n3rd.org/)
- who warned me about a bug in 0.5, I discovered that the last update was
- a regress. I appologize for that.
-
-2010.05.09 - 0.5:
- - bug fix: 0 is now preceeded with a + sign
- - bug fix: the sign was not at the right position on padded results (Kamal Abdali)
- - switched from GPL to BSD license
-
-2007.10.21 - 0.4:
- - unit test and patch (David Baird)
-
-2007.09.17 - 0.3:
- - bug fix: no longer throws exception on empty paramenters (Hans Pufal)
-
-2007.09.11 - 0.2:
- - feature: added argument swapping
-
-2007.04.03 - 0.1:
- - initial release
-**/
-
-var sprintf = (function() {
- function get_type(variable) {
- return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
- }
- function str_repeat(input, multiplier) {
- for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */}
- return output.join('');
- }
-
- var str_format = function() {
- if (!str_format.cache.hasOwnProperty(arguments[0])) {
- str_format.cache[arguments[0]] = str_format.parse(arguments[0]);
- }
- return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
- };
-
- str_format.format = function(parse_tree, argv) {
- var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length;
- for (i = 0; i < tree_length; i++) {
- node_type = get_type(parse_tree[i]);
- if (node_type === 'string') {
- output.push(parse_tree[i]);
- }
- else if (node_type === 'array') {
- match = parse_tree[i]; // convenience purposes only
- if (match[2]) { // keyword argument
- arg = argv[cursor];
- for (k = 0; k < match[2].length; k++) {
- if (!arg.hasOwnProperty(match[2][k])) {
- throw(sprintf('[sprintf] property "%s" does not exist', match[2][k]));
- }
- arg = arg[match[2][k]];
- }
- }
- else if (match[1]) { // positional argument (explicit)
- arg = argv[match[1]];
- }
- else { // positional argument (implicit)
- arg = argv[cursor++];
- }
-
- if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) {
- throw(sprintf('[sprintf] expecting number but found %s', get_type(arg)));
- }
- switch (match[8]) {
- case 'b': arg = arg.toString(2); break;
- case 'c': arg = String.fromCharCode(arg); break;
- case 'd': arg = parseInt(arg, 10); break;
- case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break;
- case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break;
- case 'o': arg = arg.toString(8); break;
- case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break;
- case 'u': arg = Math.abs(arg); break;
- case 'x': arg = arg.toString(16); break;
- case 'X': arg = arg.toString(16).toUpperCase(); break;
- }
- arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg);
- pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' ';
- pad_length = match[6] - String(arg).length;
- pad = match[6] ? str_repeat(pad_character, pad_length) : '';
- output.push(match[5] ? arg + pad : pad + arg);
- }
- }
- return output.join('');
- };
-
- str_format.cache = {};
-
- str_format.parse = function(fmt) {
- var _fmt = fmt, match = [], parse_tree = [], arg_names = 0;
- while (_fmt) {
- if ((match = /^[^\x25]+/.exec(_fmt)) !== null) {
- parse_tree.push(match[0]);
- }
- else if ((match = /^\x25{2}/.exec(_fmt)) !== null) {
- parse_tree.push('%');
- }
- else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
- if (match[2]) {
- arg_names |= 1;
- var field_list = [], replacement_field = match[2], field_match = [];
- if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
- field_list.push(field_match[1]);
- while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
- if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
- field_list.push(field_match[1]);
- }
- else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
- field_list.push(field_match[1]);
- }
- else {
- throw('[sprintf] huh?');
- }
- }
- }
- else {
- throw('[sprintf] huh?');
- }
- match[2] = field_list;
- }
- else {
- arg_names |= 2;
- }
- if (arg_names === 3) {
- throw('[sprintf] mixing positional and named placeholders is not (yet) supported');
- }
- parse_tree.push(match);
- }
- else {
- throw('[sprintf] huh?');
- }
- _fmt = _fmt.substring(match[0].length);
- }
- return parse_tree;
- };
-
- return str_format;
-})();
-
-var vsprintf = function(fmt, argv) {
- argv.unshift(fmt);
- return sprintf.apply(null, argv);
-};
-
-exports.sprintf = sprintf;
-exports.vsprintf = vsprintf;
-});
-
-require.define("/shred/response.js", function (require, module, exports, __dirname, __filename) {
- // The `Response object` encapsulates a Node.js HTTP response.
-
-var Content = require("./content")
- , HeaderMixins = require("./mixins/headers")
- , CookieJarLib = require( "cookiejar" )
- , Cookie = CookieJarLib.Cookie
-;
-
-// Browser doesn't have zlib.
-var zlib = null;
-try {
- zlib = require('zlib');
-} catch (e) {
- // console.warn("no zlib library");
-}
-
-// Iconv doesn't work in browser
-var Iconv = null;
-try {
- Iconv = require('iconv-lite');
-} catch (e) {
- // console.warn("no iconv library");
-}
-
-// Construct a `Response` object. You should never have to do this directly. The
-// `Request` object handles this, getting the raw response object and passing it
-// in here, along with the request. The callback allows us to stream the response
-// and then use the callback to let the request know when it's ready.
-var Response = function(raw, request, callback) {
- var response = this;
- this._raw = raw;
-
- // The `._setHeaders` method is "private"; you can't otherwise set headers on
- // the response.
- this._setHeaders.call(this,raw.headers);
-
- // store any cookies
- if (request.cookieJar && this.getHeader('set-cookie')) {
- var cookieStrings = this.getHeader('set-cookie');
- var cookieObjs = []
- , cookie;
-
- for (var i = 0; i < cookieStrings.length; i++) {
- var cookieString = cookieStrings[i];
- if (!cookieString) {
- continue;
- }
-
- if (!cookieString.match(/domain\=/i)) {
- cookieString += '; domain=' + request.host;
- }
-
- if (!cookieString.match(/path\=/i)) {
- cookieString += '; path=' + request.path;
- }
-
- try {
- cookie = new Cookie(cookieString);
- if (cookie) {
- cookieObjs.push(cookie);
- }
- } catch (e) {
- console.warn("Tried to set bad cookie: " + cookieString);
- }
- }
-
- request.cookieJar.setCookies(cookieObjs);
- }
-
- this.request = request;
- this.client = request.client;
- this.log = this.request.log;
-
- // Stream the response content entity and fire the callback when we're done.
- // Store the incoming data in a array of Buffers which we concatinate into one
- // buffer at the end. We need to use buffers instead of strings here in order
- // to preserve binary data.
- var chunkBuffers = [];
- var dataLength = 0;
- raw.on("data", function(chunk) {
- chunkBuffers.push(chunk);
- dataLength += chunk.length;
- });
- raw.on("end", function() {
- var body;
- if (typeof Buffer === 'undefined') {
- // Just concatinate into a string
- body = chunkBuffers.join('');
- } else {
- // Initialize new buffer and add the chunks one-at-a-time.
- body = new Buffer(dataLength);
- for (var i = 0, pos = 0; i < chunkBuffers.length; i++) {
- chunkBuffers[i].copy(body, pos);
- pos += chunkBuffers[i].length;
- }
- }
-
- var setBodyAndFinish = function (body) {
- response._body = new Content({
- body: body,
- type: response.getHeader("Content-Type")
- });
- callback(response);
- }
-
- if (zlib && response.getHeader("Content-Encoding") === 'gzip'){
- zlib.gunzip(body, function (err, gunzippedBody) {
- if (Iconv && response.request.encoding){
- body = Iconv.fromEncoding(gunzippedBody,response.request.encoding);
- } else {
- body = gunzippedBody.toString();
- }
- setBodyAndFinish(body);
- })
- }
- else{
- if (response.request.encoding){
- body = Iconv.fromEncoding(body,response.request.encoding);
- }
- setBodyAndFinish(body);
- }
- });
-};
-
-// The `Response` object can be pretty overwhelming to view using the built-in
-// Node.js inspect method. We want to make it a bit more manageable. This
-// probably goes [too far in the other
-// direction](https://github.com/spire-io/shred/issues/2).
-
-Response.prototype = {
- inspect: function() {
- var response = this;
- var headers = this.format_headers();
- var summary = ["<Shred Response> ", response.status].join(" ")
- return [ summary, "- Headers:", headers].join("\n");
- },
- format_headers: function () {
- var array = []
- var headers = this._headers
- for (var key in headers) {
- if (headers.hasOwnProperty(key)) {
- var value = headers[key]
- array.push("\t" + key + ": " + value);
- }
- }
- return array.join("\n");
- }
-};
-
-// `Response` object properties, all of which are read-only:
-Object.defineProperties(Response.prototype, {
-
-// - **status**. The HTTP status code for the response.
- status: {
- get: function() { return this._raw.statusCode; },
- enumerable: true
- },
-
-// - **content**. The HTTP content entity, if any. Provided as a [content
-// object](./content.html), which will attempt to convert the entity based upon
-// the `content-type` header. The converted value is available as
-// `content.data`. The original raw content entity is available as
-// `content.body`.
- body: {
- get: function() { return this._body; }
- },
- content: {
- get: function() { return this.body; },
- enumerable: true
- },
-
-// - **isRedirect**. Is the response a redirect? These are responses with 3xx
-// status and a `Location` header.
- isRedirect: {
- get: function() {
- return (this.status>299
- &&this.status<400
- &&this.getHeader("Location"));
- },
- enumerable: true
- },
-
-// - **isError**. Is the response an error? These are responses with status of
-// 400 or greater.
- isError: {
- get: function() {
- return (this.status === 0 || this.status > 399)
- },
- enumerable: true
- }
-});
-
-// Add in the [getters for accessing the normalized headers](./headers.js).
-HeaderMixins.getters(Response);
-HeaderMixins.privateSetters(Response);
-
-// Work around Mozilla bug #608735 [https://bugzil.la/608735], which causes
-// getAllResponseHeaders() to return {} if the response is a CORS request.
-// xhr.getHeader still works correctly.
-var getHeader = Response.prototype.getHeader;
-Response.prototype.getHeader = function (name) {
- return (getHeader.call(this,name) ||
- (typeof this._raw.getHeader === 'function' && this._raw.getHeader(name)));
-};
-
-module.exports = Response;
-
-});
-
-require.define("/shred/content.js", function (require, module, exports, __dirname, __filename) {
-
-// The purpose of the `Content` object is to abstract away the data conversions
-// to and from raw content entities as strings. For example, you want to be able
-// to pass in a Javascript object and have it be automatically converted into a
-// JSON string if the `content-type` is set to a JSON-based media type.
-// Conversely, you want to be able to transparently get back a Javascript object
-// in the response if the `content-type` is a JSON-based media-type.
-
-// One limitation of the current implementation is that it [assumes the `charset` is UTF-8](https://github.com/spire-io/shred/issues/5).
-
-// The `Content` constructor takes an options object, which *must* have either a
-// `body` or `data` property and *may* have a `type` property indicating the
-// media type. If there is no `type` attribute, a default will be inferred.
-var Content = function(options) {
- this.body = options.body;
- this.data = options.data;
- this.type = options.type;
-};
-
-Content.prototype = {
- // Treat `toString()` as asking for the `content.body`. That is, the raw content entity.
- //
- // toString: function() { return this.body; }
- //
- // Commented out, but I've forgotten why. :/
-};
-
-
-// `Content` objects have the following attributes:
-Object.defineProperties(Content.prototype,{
-
-// - **type**. Typically accessed as `content.type`, reflects the `content-type`
-// header associated with the request or response. If not passed as an options
-// to the constructor or set explicitly, it will infer the type the `data`
-// attribute, if possible, and, failing that, will default to `text/plain`.
- type: {
- get: function() {
- if (this._type) {
- return this._type;
- } else {
- if (this._data) {
- switch(typeof this._data) {
- case "string": return "text/plain";
- case "object": return "application/json";
- }
- }
- }
- return "text/plain";
- },
- set: function(value) {
- this._type = value;
- return this;
- },
- enumerable: true
- },
-
-// - **data**. Typically accessed as `content.data`, reflects the content entity
-// converted into Javascript data. This can be a string, if the `type` is, say,
-// `text/plain`, but can also be a Javascript object. The conversion applied is
-// based on the `processor` attribute. The `data` attribute can also be set
-// directly, in which case the conversion will be done the other way, to infer
-// the `body` attribute.
- data: {
- get: function() {
- if (this._body) {
- return this.processor.parser(this._body);
- } else {
- return this._data;
- }
- },
- set: function(data) {
- if (this._body&&data) Errors.setDataWithBody(this);
- this._data = data;
- return this;
- },
- enumerable: true
- },
-
-// - **body**. Typically accessed as `content.body`, reflects the content entity
-// as a UTF-8 string. It is the mirror of the `data` attribute. If you set the
-// `data` attribute, the `body` attribute will be inferred and vice-versa. If
-// you attempt to set both, an exception is raised.
- body: {
- get: function() {
- if (this._data) {
- return this.processor.stringify(this._data);
- } else {
- return this.processor.stringify(this._body);
- }
- },
- set: function(body) {
- if (this._data&&body) Errors.setBodyWithData(this);
- this._body = body;
- return this;
- },
- enumerable: true
- },
-
-// - **processor**. The functions that will be used to convert to/from `data` and
-// `body` attributes. You can add processors. The two that are built-in are for
-// `text/plain`, which is basically an identity transformation and
-// `application/json` and other JSON-based media types (including custom media
-// types with `+json`). You can add your own processors. See below.
- processor: {
- get: function() {
- var processor = Content.processors[this.type];
- if (processor) {
- return processor;
- } else {
- // Return the first processor that matches any part of the
- // content type. ex: application/vnd.foobar.baz+json will match json.
- var main = this.type.split(";")[0];
- var parts = main.split(/\+|\//);
- for (var i=0, l=parts.length; i < l; i++) {
- processor = Content.processors[parts[i]]
- }
- return processor || {parser:identity,stringify:toString};
- }
- },
- enumerable: true
- },
-
-// - **length**. Typically accessed as `content.length`, returns the length in
-// bytes of the raw content entity.
- length: {
- get: function() {
- if (typeof Buffer !== 'undefined') {
- return Buffer.byteLength(this.body);
- }
- return this.body.length;
- }
- }
-});
-
-Content.processors = {};
-
-// The `registerProcessor` function allows you to add your own processors to
-// convert content entities. Each processor consists of a Javascript object with
-// two properties:
-// - **parser**. The function used to parse a raw content entity and convert it
-// into a Javascript data type.
-// - **stringify**. The function used to convert a Javascript data type into a
-// raw content entity.
-Content.registerProcessor = function(types,processor) {
-
-// You can pass an array of types that will trigger this processor, or just one.
-// We determine the array via duck-typing here.
- if (types.forEach) {
- types.forEach(function(type) {
- Content.processors[type] = processor;
- });
- } else {
- // If you didn't pass an array, we just use what you pass in.
- Content.processors[types] = processor;
- }
-};
-
-// Register the identity processor, which is used for text-based media types.
-var identity = function(x) { return x; }
- , toString = function(x) { return x.toString(); }
-Content.registerProcessor(
- ["text/html","text/plain","text"],
- { parser: identity, stringify: toString });
-
-// Register the JSON processor, which is used for JSON-based media types.
-Content.registerProcessor(
- ["application/json; charset=utf-8","application/json","json"],
- {
- parser: function(string) {
- return JSON.parse(string);
- },
- stringify: function(data) {
- return JSON.stringify(data); }});
-
-// Error functions are defined separately here in an attempt to make the code
-// easier to read.
-var Errors = {
- setDataWithBody: function(object) {
- throw new Error("Attempt to set data attribute of a content object " +
- "when the body attributes was already set.");
- },
- setBodyWithData: function(object) {
- throw new Error("Attempt to set body attribute of a content object " +
- "when the data attributes was already set.");
- }
-}
-module.exports = Content;
-
-});
-
-require.define("/shred/mixins/headers.js", function (require, module, exports, __dirname, __filename) {
- // The header mixins allow you to add HTTP header support to any object. This
-// might seem pointless: why not simply use a hash? The main reason is that, per
-// the [HTTP spec](http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2),
-// headers are case-insensitive. So, for example, `content-type` is the same as
-// `CONTENT-TYPE` which is the same as `Content-Type`. Since there is no way to
-// overload the index operator in Javascript, using a hash to represent the
-// headers means it's possible to have two conflicting values for a single
-// header.
-//
-// The solution to this is to provide explicit methods to set or get headers.
-// This also has the benefit of allowing us to introduce additional variations,
-// including snake case, which we automatically convert to what Matthew King has
-// dubbed "corset case" - the hyphen-separated names with initial caps:
-// `Content-Type`. We use corset-case just in case we're dealing with servers
-// that haven't properly implemented the spec.
-
-// Convert headers to corset-case. **Example:** `CONTENT-TYPE` will be converted
-// to `Content-Type`.
-
-var corsetCase = function(string) {
- return string;//.toLowerCase()
- //.replace("_","-")
- // .replace(/(^|-)(\w)/g,
- // function(s) { return s.toUpperCase(); });
-};
-
-// We suspect that `initializeHeaders` was once more complicated ...
-var initializeHeaders = function(object) {
- return {};
-};
-
-// Access the `_headers` property using lazy initialization. **Warning:** If you
-// mix this into an object that is using the `_headers` property already, you're
-// going to have trouble.
-var $H = function(object) {
- return object._headers||(object._headers=initializeHeaders(object));
-};
-
-// Hide the implementations as private functions, separate from how we expose them.
-
-// The "real" `getHeader` function: get the header after normalizing the name.
-var getHeader = function(object,name) {
- return $H(object)[corsetCase(name)];
-};
-
-// The "real" `getHeader` function: get one or more headers, or all of them
-// if you don't ask for any specifics.
-var getHeaders = function(object,names) {
- var keys = (names && names.length>0) ? names : Object.keys($H(object));
- var hash = keys.reduce(function(hash,key) {
- hash[key] = getHeader(object,key);
- return hash;
- },{});
- // Freeze the resulting hash so you don't mistakenly think you're modifying
- // the real headers.
- Object.freeze(hash);
- return hash;
-};
-
-// The "real" `setHeader` function: set a header, after normalizing the name.
-var setHeader = function(object,name,value) {
- $H(object)[corsetCase(name)] = value;
- return object;
-};
-
-// The "real" `setHeaders` function: set multiple headers based on a hash.
-var setHeaders = function(object,hash) {
- for( var key in hash ) { setHeader(object,key,hash[key]); };
- return this;
-};
-
-// Here's where we actually bind the functionality to an object. These mixins work by
-// exposing mixin functions. Each function mixes in a specific batch of features.
-module.exports = {
-
- // Add getters.
- getters: function(constructor) {
- constructor.prototype.getHeader = function(name) { return getHeader(this,name); };
- constructor.prototype.getHeaders = function() { return getHeaders(this,arguments); };
- },
- // Add setters but as "private" methods.
- privateSetters: function(constructor) {
- constructor.prototype._setHeader = function(key,value) { return setHeader(this,key,value); };
- constructor.prototype._setHeaders = function(hash) { return setHeaders(this,hash); };
- },
- // Add setters.
- setters: function(constructor) {
- constructor.prototype.setHeader = function(key,value) { return setHeader(this,key,value); };
- constructor.prototype.setHeaders = function(hash) { return setHeaders(this,hash); };
- },
- // Add both getters and setters.
- gettersAndSetters: function(constructor) {
- constructor.prototype.getHeader = function(name) { return getHeader(this,name); };
- constructor.prototype.getHeaders = function() { return getHeaders(this,arguments); };
- constructor.prototype.setHeader = function(key,value) { return setHeader(this,key,value); };
- constructor.prototype.setHeaders = function(hash) { return setHeaders(this,hash); };
- }
-};
-
-});
-
-require.define("/node_modules/iconv-lite/package.json", function (require, module, exports, __dirname, __filename) {
- module.exports = {}
-});
-
-require.define("/node_modules/iconv-lite/index.js", function (require, module, exports, __dirname, __filename) {
- // Module exports
-var iconv = module.exports = {
- toEncoding: function(str, encoding) {
- return iconv.getCodec(encoding).toEncoding(str);
- },
- fromEncoding: function(buf, encoding) {
- return iconv.getCodec(encoding).fromEncoding(buf);
- },
-
- defaultCharUnicode: '�',
- defaultCharSingleByte: '?',
-
- // Get correct codec for given encoding.
- getCodec: function(encoding) {
- var enc = encoding || "utf8";
- var codecOptions = undefined;
- while (1) {
- if (getType(enc) === "String")
- enc = enc.replace(/[- ]/g, "").toLowerCase();
- var codec = iconv.encodings[enc];
- var type = getType(codec);
- if (type === "String") {
- // Link to other encoding.
- codecOptions = {originalEncoding: enc};
- enc = codec;
- }
- else if (type === "Object" && codec.type != undefined) {
- // Options for other encoding.
- codecOptions = codec;
- enc = codec.type;
- }
- else if (type === "Function")
- // Codec itself.
- return codec(codecOptions);
- else
- throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '"+enc+"')");
- }
- },
-
- // Define basic encodings
- encodings: {
- internal: function(options) {
- return {
- toEncoding: function(str) {
- return new Buffer(ensureString(str), options.originalEncoding);
- },
- fromEncoding: function(buf) {
- return ensureBuffer(buf).toString(options.originalEncoding);
- }
- };
- },
- utf8: "internal",
- ucs2: "internal",
- binary: "internal",
- ascii: "internal",
- base64: "internal",
-
- // Codepage single-byte encodings.
- singlebyte: function(options) {
- // Prepare chars if needed
- if (!options.chars || (options.chars.length !== 128 && options.chars.length !== 256))
- throw new Error("Encoding '"+options.type+"' has incorrect 'chars' (must be of len 128 or 256)");
-
- if (options.chars.length === 128)
- options.chars = asciiString + options.chars;
-
- if (!options.charsBuf) {
- options.charsBuf = new Buffer(options.chars, 'ucs2');
- }
-
- if (!options.revCharsBuf) {
- options.revCharsBuf = new Buffer(65536);
- var defChar = iconv.defaultCharSingleByte.charCodeAt(0);
- for (var i = 0; i < options.revCharsBuf.length; i++)
- options.revCharsBuf[i] = defChar;
- for (var i = 0; i < options.chars.length; i++)
- options.revCharsBuf[options.chars.charCodeAt(i)] = i;
- }
-
- return {
- toEncoding: function(str) {
- str = ensureString(str);
-
- var buf = new Buffer(str.length);
- var revCharsBuf = options.revCharsBuf;
- for (var i = 0; i < str.length; i++)
- buf[i] = revCharsBuf[str.charCodeAt(i)];
-
- return buf;
- },
- fromEncoding: function(buf) {
- buf = ensureBuffer(buf);
-
- // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.
- var charsBuf = options.charsBuf;
- var newBuf = new Buffer(buf.length*2);
- var idx1 = 0, idx2 = 0;
- for (var i = 0, _len = buf.length; i < _len; i++) {
- idx1 = buf[i]*2; idx2 = i*2;
- newBuf[idx2] = charsBuf[idx1];
- newBuf[idx2+1] = charsBuf[idx1+1];
- }
- return newBuf.toString('ucs2');
- }
- };
- },
-
- // Codepage double-byte encodings.
- table: function(options) {
- var table = options.table, key, revCharsTable = options.revCharsTable;
- if (!table) {
- throw new Error("Encoding '" + options.type +"' has incorect 'table' option");
- }
- if(!revCharsTable) {
- revCharsTable = options.revCharsTable = {};
- for (key in table) {
- revCharsTable[table[key]] = parseInt(key);
- }
- }
-
- return {
- toEncoding: function(str) {
- str = ensureString(str);
- var strLen = str.length;
- var bufLen = strLen;
- for (var i = 0; i < strLen; i++)
- if (str.charCodeAt(i) >> 7)
- bufLen++;
-
- var newBuf = new Buffer(bufLen), gbkcode, unicode,
- defaultChar = revCharsTable[iconv.defaultCharUnicode.charCodeAt(0)];
-
- for (var i = 0, j = 0; i < strLen; i++) {
- unicode = str.charCodeAt(i);
- if (unicode >> 7) {
- gbkcode = revCharsTable[unicode] || defaultChar;
- newBuf[j++] = gbkcode >> 8; //high byte;
- newBuf[j++] = gbkcode & 0xFF; //low byte
- } else {//ascii
- newBuf[j++] = unicode;
- }
- }
- return newBuf;
- },
- fromEncoding: function(buf) {
- buf = ensureBuffer(buf);
- var bufLen = buf.length, strLen = 0;
- for (var i = 0; i < bufLen; i++) {
- strLen++;
- if (buf[i] & 0x80) //the high bit is 1, so this byte is gbkcode's high byte.skip next byte
- i++;
- }
- var newBuf = new Buffer(strLen*2), unicode, gbkcode,
- defaultChar = iconv.defaultCharUnicode.charCodeAt(0);
-
- for (var i = 0, j = 0; i < bufLen; i++, j+=2) {
- gbkcode = buf[i];
- if (gbkcode & 0x80) {
- gbkcode = (gbkcode << 8) + buf[++i];
- unicode = table[gbkcode] || defaultChar;
- } else {
- unicode = gbkcode;
- }
- newBuf[j] = unicode & 0xFF; //low byte
- newBuf[j+1] = unicode >> 8; //high byte
- }
- return newBuf.toString('ucs2');
- }
- }
- }
- }
-};
-
-// Add aliases to convert functions
-iconv.encode = iconv.toEncoding;
-iconv.decode = iconv.fromEncoding;
-
-// Load other encodings from files in /encodings dir.
-var encodingsDir = __dirname+"/encodings/",
- fs = require('fs');
-fs.readdirSync(encodingsDir).forEach(function(file) {
- if(fs.statSync(encodingsDir + file).isDirectory()) return;
- var encodings = require(encodingsDir + file)
- for (var key in encodings)
- iconv.encodings[key] = encodings[key]
-});
-
-// Utilities
-var asciiString = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f'+
- ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f';
-
-var ensureBuffer = function(buf) {
- buf = buf || new Buffer(0);
- return (buf instanceof Buffer) ? buf : new Buffer(buf.toString(), "utf8");
-}
-
-var ensureString = function(str) {
- str = str || "";
- return (str instanceof String) ? str : str.toString((str instanceof Buffer) ? 'utf8' : undefined);
-}
-
-var getType = function(obj) {
- return Object.prototype.toString.call(obj).slice(8, -1);
-}
-
-
-});
-
-require.define("/node_modules/http-browserify/package.json", function (require, module, exports, __dirname, __filename) {
- module.exports = {"main":"index.js","browserify":"browser.js"}
-});
-
-require.define("/node_modules/http-browserify/browser.js", function (require, module, exports, __dirname, __filename) {
- var http = module.exports;
-var EventEmitter = require('events').EventEmitter;
-var Request = require('./lib/request');
-
-http.request = function (params, cb) {
- if (!params) params = {};
- if (!params.host) params.host = window.location.host.split(':')[0];
- if (!params.port) params.port = window.location.port;
-
- var req = new Request(new xhrHttp, params);
- if (cb) req.on('response', cb);
- return req;
-};
-
-http.get = function (params, cb) {
- params.method = 'GET';
- var req = http.request(params, cb);
- req.end();
- return req;
-};
-
-var xhrHttp = (function () {
- if (typeof window === 'undefined') {
- throw new Error('no window object present');
- }
- else if (window.XMLHttpRequest) {
- return window.XMLHttpRequest;
- }
- else if (window.ActiveXObject) {
- var axs = [
- 'Msxml2.XMLHTTP.6.0',
- 'Msxml2.XMLHTTP.3.0',
- 'Microsoft.XMLHTTP'
- ];
- for (var i = 0; i < axs.length; i++) {
- try {
- var ax = new(window.ActiveXObject)(axs[i]);
- return function () {
- if (ax) {
- var ax_ = ax;
- ax = null;
- return ax_;
- }
- else {
- return new(window.ActiveXObject)(axs[i]);
- }
- };
- }
- catch (e) {}
- }
- throw new Error('ajax not supported in this browser')
- }
- else {
- throw new Error('ajax not supported in this browser');
- }
-})();
-
-http.STATUS_CODES = {
- 100 : 'Continue',
- 101 : 'Switching Protocols',
- 102 : 'Processing', // RFC 2518, obsoleted by RFC 4918
- 200 : 'OK',
- 201 : 'Created',
- 202 : 'Accepted',
- 203 : 'Non-Authoritative Information',
- 204 : 'No Content',
- 205 : 'Reset Content',
- 206 : 'Partial Content',
- 207 : 'Multi-Status', // RFC 4918
- 300 : 'Multiple Choices',
- 301 : 'Moved Permanently',
- 302 : 'Moved Temporarily',
- 303 : 'See Other',
- 304 : 'Not Modified',
- 305 : 'Use Proxy',
- 307 : 'Temporary Redirect',
- 400 : 'Bad Request',
- 401 : 'Unauthorized',
- 402 : 'Payment Required',
- 403 : 'Forbidden',
- 404 : 'Not Found',
- 405 : 'Method Not Allowed',
- 406 : 'Not Acceptable',
- 407 : 'Proxy Authentication Required',
- 408 : 'Request Time-out',
- 409 : 'Conflict',
- 410 : 'Gone',
- 411 : 'Length Required',
- 412 : 'Precondition Failed',
- 413 : 'Request Entity Too Large',
- 414 : 'Request-URI Too Large',
- 415 : 'Unsupported Media Type',
- 416 : 'Requested Range Not Satisfiable',
- 417 : 'Expectation Failed',
- 418 : 'I\'m a teapot', // RFC 2324
- 422 : 'Unprocessable Entity', // RFC 4918
- 423 : 'Locked', // RFC 4918
- 424 : 'Failed Dependency', // RFC 4918
- 425 : 'Unordered Collection', // RFC 4918
- 426 : 'Upgrade Required', // RFC 2817
- 500 : 'Internal Server Error',
- 501 : 'Not Implemented',
- 502 : 'Bad Gateway',
- 503 : 'Service Unavailable',
- 504 : 'Gateway Time-out',
- 505 : 'HTTP Version not supported',
- 506 : 'Variant Also Negotiates', // RFC 2295
- 507 : 'Insufficient Storage', // RFC 4918
- 509 : 'Bandwidth Limit Exceeded',
- 510 : 'Not Extended' // RFC 2774
-};
-
-});
-
-require.define("/node_modules/http-browserify/lib/request.js", function (require, module, exports, __dirname, __filename) {
- var EventEmitter = require('events').EventEmitter;
-var Response = require('./response');
-var isSafeHeader = require('./isSafeHeader');
-
-var Request = module.exports = function (xhr, params) {
- var self = this;
- self.xhr = xhr;
- self.body = '';
-
- var uri = params.host + ':' + params.port + (params.path || '/');
-
- xhr.open(
- params.method || 'GET',
- (params.scheme || 'http') + '://' + uri,
- true
- );
-
- if (params.headers) {
- Object.keys(params.headers).forEach(function (key) {
- if (!isSafeHeader(key)) return;
- var value = params.headers[key];
- if (Array.isArray(value)) {
- value.forEach(function (v) {
- xhr.setRequestHeader(key, v);
- });
- }
- else xhr.setRequestHeader(key, value)
- });
- }
-
- var res = new Response(xhr);
- res.on('ready', function () {
- self.emit('response', res);
- });
-
- xhr.onreadystatechange = function () {
- res.handle(xhr);
- };
-};
-
-Request.prototype = new EventEmitter;
-
-Request.prototype.setHeader = function (key, value) {
- if ((Array.isArray && Array.isArray(value))
- || value instanceof Array) {
- for (var i = 0; i < value.length; i++) {
- this.xhr.setRequestHeader(key, value[i]);
- }
- }
- else {
- this.xhr.setRequestHeader(key, value);
- }
-};
-
-Request.prototype.write = function (s) {
- this.body += s;
-};
-
-Request.prototype.end = function (s) {
- if (s !== undefined) this.write(s);
- this.xhr.send(this.body);
-};
-
-});
-
-require.define("/node_modules/http-browserify/lib/response.js", function (require, module, exports, __dirname, __filename) {
- var EventEmitter = require('events').EventEmitter;
-var isSafeHeader = require('./isSafeHeader');
-
-var Response = module.exports = function (xhr) {
- this.xhr = xhr;
- this.offset = 0;
-};
-
-Response.prototype = new EventEmitter;
-
-var capable = {
- streaming : true,
- status2 : true
-};
-
-function parseHeaders (xhr) {
- var lines = xhr.getAllResponseHeaders().split(/\r?\n/);
- var headers = {};
- for (var i = 0; i < lines.length; i++) {
- var line = lines[i];
- if (line === '') continue;
-
- var m = line.match(/^([^:]+):\s*(.*)/);
- if (m) {
- var key = m[1].toLowerCase(), value = m[2];
-
- if (headers[key] !== undefined) {
- if ((Array.isArray && Array.isArray(headers[key]))
- || headers[key] instanceof Array) {
- headers[key].push(value);
- }
- else {
- headers[key] = [ headers[key], value ];
- }
- }
- else {
- headers[key] = value;
- }
- }
- else {
- headers[line] = true;
- }
- }
- return headers;
-}
-
-Response.prototype.getHeader = function (key) {
- var header = this.headers ? this.headers[key.toLowerCase()] : null;
- if (header) return header;
-
- // Work around Mozilla bug #608735 [https://bugzil.la/608735], which causes
- // getAllResponseHeaders() to return {} if the response is a CORS request.
- // xhr.getHeader still works correctly.
- if (isSafeHeader(key)) {
- return this.xhr.getResponseHeader(key);
- }
- return null;
-};
-
-Response.prototype.handle = function () {
- var xhr = this.xhr;
- if (xhr.readyState === 2 && capable.status2) {
- try {
- this.statusCode = xhr.status;
- this.headers = parseHeaders(xhr);
- }
- catch (err) {
- capable.status2 = false;
- }
-
- if (capable.status2) {
- this.emit('ready');
- }
- }
- else if (capable.streaming && xhr.readyState === 3) {
- try {
- if (!this.statusCode) {
- this.statusCode = xhr.status;
- this.headers = parseHeaders(xhr);
- this.emit('ready');
- }
- }
- catch (err) {}
-
- try {
- this.write();
- }
- catch (err) {
- capable.streaming = false;
- }
- }
- else if (xhr.readyState === 4) {
- if (!this.statusCode) {
- this.statusCode = xhr.status;
- this.emit('ready');
- }
- this.write();
-
- if (xhr.error) {
- this.emit('error', xhr.responseText);
- }
- else this.emit('end');
- }
-};
-
-Response.prototype.write = function () {
- var xhr = this.xhr;
- if (xhr.responseText.length > this.offset) {
- this.emit('data', xhr.responseText.slice(this.offset));
- this.offset = xhr.responseText.length;
- }
-};
-
-});
-
-require.define("/node_modules/http-browserify/lib/isSafeHeader.js", function (require, module, exports, __dirname, __filename) {
- // Taken from http://dxr.mozilla.org/mozilla/mozilla-central/content/base/src/nsXMLHttpRequest.cpp.html
-var unsafeHeaders = [
- "accept-charset",
- "accept-encoding",
- "access-control-request-headers",
- "access-control-request-method",
- "connection",
- "content-length",
- "cookie",
- "cookie2",
- "content-transfer-encoding",
- "date",
- "expect",
- "host",
- "keep-alive",
- "origin",
- "referer",
- "set-cookie",
- "te",
- "trailer",
- "transfer-encoding",
- "upgrade",
- "user-agent",
- "via"
-];
-
-module.exports = function (headerName) {
- if (!headerName) return false;
- return (unsafeHeaders.indexOf(headerName.toLowerCase()) === -1)
-};
-
-});
-
-require.alias("http-browserify", "/node_modules/http");
-
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var require = function (file, cwd) {
+ var resolved = require.resolve(file, cwd || '/');
+ var mod = require.modules[resolved];
+ if (!mod) throw new Error(
+ 'Failed to resolve module ' + file + ', tried ' + resolved
+ );
+ var res = mod._cached ? mod._cached : mod();
+ return res;
+}
+
+require.paths = [];
+require.modules = {};
+require.extensions = [".js",".coffee"];
+
+require._core = {
+ 'assert': true,
+ 'events': true,
+ 'fs': true,
+ 'path': true,
+ 'vm': true
+};
+
+require.resolve = (function () {
+ return function (x, cwd) {
+ if (!cwd) cwd = '/';
+
+ if (require._core[x]) return x;
+ var path = require.modules.path();
+ var y = cwd || '.';
+
+ if (x.match(/^(?:\.\.?\/|\/)/)) {
+ var m = loadAsFileSync(path.resolve(y, x))
+ || loadAsDirectorySync(path.resolve(y, x));
+ if (m) return m;
+ }
+
+ var n = loadNodeModulesSync(x, y);
+ if (n) return n;
+
+ throw new Error("Cannot find module '" + x + "'");
+
+ function loadAsFileSync (x) {
+ if (require.modules[x]) {
+ return x;
+ }
+
+ for (var i = 0; i < require.extensions.length; i++) {
+ var ext = require.extensions[i];
+ if (require.modules[x + ext]) return x + ext;
+ }
+ }
+
+ function loadAsDirectorySync (x) {
+ x = x.replace(/\/+$/, '');
+ var pkgfile = x + '/package.json';
+ if (require.modules[pkgfile]) {
+ var pkg = require.modules[pkgfile]();
+ var b = pkg.browserify;
+ if (typeof b === 'object' && b.main) {
+ var m = loadAsFileSync(path.resolve(x, b.main));
+ if (m) return m;
+ }
+ else if (typeof b === 'string') {
+ var m = loadAsFileSync(path.resolve(x, b));
+ if (m) return m;
+ }
+ else if (pkg.main) {
+ var m = loadAsFileSync(path.resolve(x, pkg.main));
+ if (m) return m;
+ }
+ }
+
+ return loadAsFileSync(x + '/index');
+ }
+
+ function loadNodeModulesSync (x, start) {
+ var dirs = nodeModulesPathsSync(start);
+ for (var i = 0; i < dirs.length; i++) {
+ var dir = dirs[i];
+ var m = loadAsFileSync(dir + '/' + x);
+ if (m) return m;
+ var n = loadAsDirectorySync(dir + '/' + x);
+ if (n) return n;
+ }
+
+ var m = loadAsFileSync(x);
+ if (m) return m;
+ }
+
+ function nodeModulesPathsSync (start) {
+ var parts;
+ if (start === '/') parts = [ '' ];
+ else parts = path.normalize(start).split('/');
+
+ var dirs = [];
+ for (var i = parts.length - 1; i >= 0; i--) {
+ if (parts[i] === 'node_modules') continue;
+ var dir = parts.slice(0, i + 1).join('/') + '/node_modules';
+ dirs.push(dir);
+ }
+
+ return dirs;
+ }
+ };
+})();
+
+require.alias = function (from, to) {
+ var path = require.modules.path();
+ var res = null;
+ try {
+ res = require.resolve(from + '/package.json', '/');
+ }
+ catch (err) {
+ res = require.resolve(from, '/');
+ }
+ var basedir = path.dirname(res);
+
+ var keys = (Object.keys || function (obj) {
+ var res = [];
+ for (var key in obj) res.push(key)
+ return res;
+ })(require.modules);
+
+ for (var i = 0; i < keys.length; i++) {
+ var key = keys[i];
+ if (key.slice(0, basedir.length + 1) === basedir + '/') {
+ var f = key.slice(basedir.length);
+ require.modules[to + f] = require.modules[basedir + f];
+ }
+ else if (key === basedir) {
+ require.modules[to] = require.modules[basedir];
+ }
+ }
+};
+
+require.define = function (filename, fn) {
+ var dirname = require._core[filename]
+ ? ''
+ : require.modules.path().dirname(filename)
+ ;
+
+ var require_ = function (file) {
+ return require(file, dirname)
+ };
+ require_.resolve = function (name) {
+ return require.resolve(name, dirname);
+ };
+ require_.modules = require.modules;
+ require_.define = require.define;
+ var module_ = { exports : {} };
+
+ require.modules[filename] = function () {
+ require.modules[filename]._cached = module_.exports;
+ fn.call(
+ module_.exports,
+ require_,
+ module_,
+ module_.exports,
+ dirname,
+ filename
+ );
+ require.modules[filename]._cached = module_.exports;
+ return module_.exports;
+ };
+};
+
+if (typeof process === 'undefined') process = {};
+
+if (!process.nextTick) process.nextTick = (function () {
+ var queue = [];
+ var canPost = typeof window !== 'undefined'
+ && window.postMessage && window.addEventListener
+ ;
+
+ if (canPost) {
+ window.addEventListener('message', function (ev) {
+ if (ev.source === window && ev.data === 'browserify-tick') {
+ ev.stopPropagation();
+ if (queue.length > 0) {
+ var fn = queue.shift();
+ fn();
+ }
+ }
+ }, true);
+ }
+
+ return function (fn) {
+ if (canPost) {
+ queue.push(fn);
+ window.postMessage('browserify-tick', '*');
+ }
+ else setTimeout(fn, 0);
+ };
+})();
+
+if (!process.title) process.title = 'browser';
+
+if (!process.binding) process.binding = function (name) {
+ if (name === 'evals') return require('vm')
+ else throw new Error('No such module')
+};
+
+if (!process.cwd) process.cwd = function () { return '.' };
+
+require.define("path", function (require, module, exports, __dirname, __filename) {
+ function filter (xs, fn) {
+ var res = [];
+ for (var i = 0; i < xs.length; i++) {
+ if (fn(xs[i], i, xs)) res.push(xs[i]);
+ }
+ return res;
+}
+
+// resolves . and .. elements in a path array with directory names there
+// must be no slashes, empty elements, or device names (c:\) in the array
+// (so also no leading and trailing slashes - it does not distinguish
+// relative and absolute paths)
+function normalizeArray(parts, allowAboveRoot) {
+ // if the path tries to go above the root, `up` ends up > 0
+ var up = 0;
+ for (var i = parts.length; i >= 0; i--) {
+ var last = parts[i];
+ if (last == '.') {
+ parts.splice(i, 1);
+ } else if (last === '..') {
+ parts.splice(i, 1);
+ up++;
+ } else if (up) {
+ parts.splice(i, 1);
+ up--;
+ }
+ }
+
+ // if the path is allowed to go above the root, restore leading ..s
+ if (allowAboveRoot) {
+ for (; up--; up) {
+ parts.unshift('..');
+ }
+ }
+
+ return parts;
+}
+
+// Regex to split a filename into [*, dir, basename, ext]
+// posix version
+var splitPathRe = /^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;
+
+// path.resolve([from ...], to)
+// posix version
+exports.resolve = function() {
+var resolvedPath = '',
+ resolvedAbsolute = false;
+
+for (var i = arguments.length; i >= -1 && !resolvedAbsolute; i--) {
+ var path = (i >= 0)
+ ? arguments[i]
+ : process.cwd();
+
+ // Skip empty and invalid entries
+ if (typeof path !== 'string' || !path) {
+ continue;
+ }
+
+ resolvedPath = path + '/' + resolvedPath;
+ resolvedAbsolute = path.charAt(0) === '/';
+}
+
+// At this point the path should be resolved to a full absolute path, but
+// handle relative paths to be safe (might happen when process.cwd() fails)
+
+// Normalize the path
+resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
+ return !!p;
+ }), !resolvedAbsolute).join('/');
+
+ return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
+};
+
+// path.normalize(path)
+// posix version
+exports.normalize = function(path) {
+var isAbsolute = path.charAt(0) === '/',
+ trailingSlash = path.slice(-1) === '/';
+
+// Normalize the path
+path = normalizeArray(filter(path.split('/'), function(p) {
+ return !!p;
+ }), !isAbsolute).join('/');
+
+ if (!path && !isAbsolute) {
+ path = '.';
+ }
+ if (path && trailingSlash) {
+ path += '/';
+ }
+
+ return (isAbsolute ? '/' : '') + path;
+};
+
+
+// posix version
+exports.join = function() {
+ var paths = Array.prototype.slice.call(arguments, 0);
+ return exports.normalize(filter(paths, function(p, index) {
+ return p && typeof p === 'string';
+ }).join('/'));
+};
+
+
+exports.dirname = function(path) {
+ var dir = splitPathRe.exec(path)[1] || '';
+ var isWindows = false;
+ if (!dir) {
+ // No dirname
+ return '.';
+ } else if (dir.length === 1 ||
+ (isWindows && dir.length <= 3 && dir.charAt(1) === ':')) {
+ // It is just a slash or a drive letter with a slash
+ return dir;
+ } else {
+ // It is a full dirname, strip trailing slash
+ return dir.substring(0, dir.length - 1);
+ }
+};
+
+
+exports.basename = function(path, ext) {
+ var f = splitPathRe.exec(path)[2] || '';
+ // TODO: make this comparison case-insensitive on windows?
+ if (ext && f.substr(-1 * ext.length) === ext) {
+ f = f.substr(0, f.length - ext.length);
+ }
+ return f;
+};
+
+
+exports.extname = function(path) {
+ return splitPathRe.exec(path)[3] || '';
+};
+
+});
+
+require.define("/shred.js", function (require, module, exports, __dirname, __filename) {
+ // Shred is an HTTP client library intended to simplify the use of Node's
+// built-in HTTP library. In particular, we wanted to make it easier to interact
+// with HTTP-based APIs.
+//
+// See the [examples](./examples.html) for more details.
+
+// Ax is a nice logging library we wrote. You can use any logger, providing it
+// has `info`, `warn`, `debug`, and `error` methods that take a string.
+var Ax = require("ax")
+ , CookieJarLib = require( "cookiejar" )
+ , CookieJar = CookieJarLib.CookieJar
+;
+
+// Shred takes some options, including a logger and request defaults.
+
+var Shred = function(options) {
+ options = (options||{});
+ this.agent = options.agent;
+ this.defaults = options.defaults||{};
+ this.log = options.logger||(new Ax({ level: "info" }));
+ this._sharedCookieJar = new CookieJar();
+ this.logCurl = options.logCurl || false;
+};
+
+// Most of the real work is done in the request and reponse classes.
+
+Shred.Request = require("./shred/request");
+Shred.Response = require("./shred/response");
+
+// The `request` method kicks off a new request, instantiating a new `Request`
+// object and passing along whatever default options we were given.
+
+Shred.prototype = {
+ request: function(options) {
+ options.logger = this.log;
+ options.logCurl = options.logCurl || this.logCurl;
+ options.cookieJar = ( 'cookieJar' in options ) ? options.cookieJar : this._sharedCookieJar; // let them set cookieJar = null
+ options.agent = options.agent || this.agent;
+ // fill in default options
+ for (var key in this.defaults) {
+ if (this.defaults.hasOwnProperty(key) && !options[key]) {
+ options[key] = this.defaults[key]
+ }
+ }
+ return new Shred.Request(options);
+ }
+};
+
+// Define a bunch of convenience methods so that you don't have to include
+// a `method` property in your request options.
+
+"get put post delete".split(" ").forEach(function(method) {
+ Shred.prototype[method] = function(options) {
+ options.method = method;
+ return this.request(options);
+ };
+});
+
+
+module.exports = Shred;
+
+});
+
+require.define("/node_modules/ax/package.json", function (require, module, exports, __dirname, __filename) {
+ module.exports = {"main":"./lib/ax.js"}
+});
+
+require.define("/node_modules/ax/lib/ax.js", function (require, module, exports, __dirname, __filename) {
+ var inspect = require("util").inspect
+ , fs = require("fs")
+;
+
+
+// this is a quick-and-dirty logger. there are other nicer loggers out there
+// but the ones i found were also somewhat involved. this one has a Ruby
+// logger type interface
+//
+// we can easily replace this, provide the info, debug, etc. methods are the
+// same. or, we can change Haiku to use a more standard node.js interface
+
+var format = function(level,message) {
+ var debug = (level=="debug"||level=="error");
+ if (!message) { return message.toString(); }
+ if (typeof(message) == "object") {
+ if (message instanceof Error && debug) {
+ return message.stack;
+ } else {
+ return inspect(message);
+ }
+ } else {
+ return message.toString();
+ }
+};
+
+var noOp = function(message) { return this; }
+var makeLogger = function(level,fn) {
+ return function(message) {
+ this.stream.write(this.format(level, message)+"\n");
+ return this;
+ }
+};
+
+var Logger = function(options) {
+ var logger = this;
+ var options = options||{};
+
+ // Default options
+ options.level = options.level || "info";
+ options.timestamp = options.timestamp || true;
+ options.prefix = options.prefix || "";
+ logger.options = options;
+
+ // Allows a prefix to be added to the message.
+ //
+ // var logger = new Ax({ module: 'Haiku' })
+ // logger.warn('this is going to be awesome!');
+ // //=> Haiku: this is going to be awesome!
+ //
+ if (logger.options.module){
+ logger.options.prefix = logger.options.module;
+ }
+
+ // Write to stderr or a file
+ if (logger.options.file){
+ logger.stream = fs.createWriteStream(logger.options.file, {"flags": "a"});
+ } else {
+ if(process.title === "node")
+ logger.stream = process.stderr;
+ else if(process.title === "browser")
+ logger.stream = function () {
+ // Work around weird console context issue: http://code.google.com/p/chromium/issues/detail?id=48662
+ return console[logger.options.level].apply(console, arguments);
+ };
+ }
+
+ switch(logger.options.level){
+ case 'debug':
+ ['debug', 'info', 'warn'].forEach(function (level) {
+ logger[level] = Logger.writer(level);
+ });
+ case 'info':
+ ['info', 'warn'].forEach(function (level) {
+ logger[level] = Logger.writer(level);
+ });
+ case 'warn':
+ logger.warn = Logger.writer('warn');
+ }
+}
+
+// Used to define logger methods
+Logger.writer = function(level){
+ return function(message){
+ var logger = this;
+
+ if(process.title === "node")
+ logger.stream.write(logger.format(level, message) + '\n');
+ else if(process.title === "browser")
+ logger.stream(logger.format(level, message) + '\n');
+
+ };
+}
+
+
+Logger.prototype = {
+ info: function(){},
+ debug: function(){},
+ warn: function(){},
+ error: Logger.writer('error'),
+ format: function(level, message){
+ if (! message) return '';
+
+ var logger = this
+ , prefix = logger.options.prefix
+ , timestamp = logger.options.timestamp ? " " + (new Date().toISOString()) : ""
+ ;
+
+ return (prefix + timestamp + ": " + message);
+ }
+};
+
+module.exports = Logger;
+
+});
+
+require.define("util", function (require, module, exports, __dirname, __filename) {
+ // todo
+
+});
+
+require.define("fs", function (require, module, exports, __dirname, __filename) {
+ // nothing to see here... no file methods for the browser
+
+});
+
+require.define("/node_modules/cookiejar/package.json", function (require, module, exports, __dirname, __filename) {
+ module.exports = {"main":"cookiejar.js"}
+});
+
+require.define("/node_modules/cookiejar/cookiejar.js", function (require, module, exports, __dirname, __filename) {
+ exports.CookieAccessInfo=CookieAccessInfo=function CookieAccessInfo(domain,path,secure,script) {
+ if(this instanceof CookieAccessInfo) {
+ this.domain=domain||undefined;
+ this.path=path||"/";
+ this.secure=!!secure;
+ this.script=!!script;
+ return this;
+ }
+ else {
+ return new CookieAccessInfo(domain,path,secure,script)
+ }
+}
+
+exports.Cookie=Cookie=function Cookie(cookiestr) {
+ if(cookiestr instanceof Cookie) {
+ return cookiestr;
+ }
+ else {
+ if(this instanceof Cookie) {
+ this.name = null;
+ this.value = null;
+ this.expiration_date = Infinity;
+ this.path = "/";
+ this.domain = null;
+ this.secure = false; //how to define?
+ this.noscript = false; //httponly
+ if(cookiestr) {
+ this.parse(cookiestr)
+ }
+ return this;
+ }
+ return new Cookie(cookiestr)
+ }
+}
+
+Cookie.prototype.toString = function toString() {
+ var str=[this.name+"="+this.value];
+ if(this.expiration_date !== Infinity) {
+ str.push("expires="+(new Date(this.expiration_date)).toGMTString());
+ }
+ if(this.domain) {
+ str.push("domain="+this.domain);
+ }
+ if(this.path) {
+ str.push("path="+this.path);
+ }
+ if(this.secure) {
+ str.push("secure");
+ }
+ if(this.noscript) {
+ str.push("httponly");
+ }
+ return str.join("; ");
+}
+
+Cookie.prototype.toValueString = function toValueString() {
+ return this.name+"="+this.value;
+}
+
+var cookie_str_splitter=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g
+Cookie.prototype.parse = function parse(str) {
+ if(this instanceof Cookie) {
+ var parts=str.split(";")
+ , pair=parts[0].match(/([^=]+)=((?:.|\n)*)/)
+ , key=pair[1]
+ , value=pair[2];
+ this.name = key;
+ this.value = value;
+
+ for(var i=1;i<parts.length;i++) {
+ pair=parts[i].match(/([^=]+)(?:=((?:.|\n)*))?/)
+ , key=pair[1].trim().toLowerCase()
+ , value=pair[2];
+ switch(key) {
+ case "httponly":
+ this.noscript = true;
+ break;
+ case "expires":
+ this.expiration_date = value
+ ? Number(Date.parse(value))
+ : Infinity;
+ break;
+ case "path":
+ this.path = value
+ ? value.trim()
+ : "";
+ break;
+ case "domain":
+ this.domain = value
+ ? value.trim()
+ : "";
+ break;
+ case "secure":
+ this.secure = true;
+ break
+ }
+ }
+
+ return this;
+ }
+ return new Cookie().parse(str)
+}
+
+Cookie.prototype.matches = function matches(access_info) {
+ if(this.noscript && access_info.script
+ || this.secure && !access_info.secure
+ || !this.collidesWith(access_info)) {
+ return false
+ }
+ return true;
+}
+
+Cookie.prototype.collidesWith = function collidesWith(access_info) {
+ if((this.path && !access_info.path) || (this.domain && !access_info.domain)) {
+ return false
+ }
+ if(this.path && access_info.path.indexOf(this.path) !== 0) {
+ return false;
+ }
+ if (this.domain===access_info.domain) {
+ return true;
+ }
+ else if(this.domain && this.domain.charAt(0)===".")
+ {
+ var wildcard=access_info.domain.indexOf(this.domain.slice(1))
+ if(wildcard===-1 || wildcard!==access_info.domain.length-this.domain.length+1) {
+ return false;
+ }
+ }
+ else if(this.domain){
+ return false
+ }
+ return true;
+}
+
+exports.CookieJar=CookieJar=function CookieJar() {
+ if(this instanceof CookieJar) {
+ var cookies = {} //name: [Cookie]
+
+ this.setCookie = function setCookie(cookie) {
+ cookie = Cookie(cookie);
+ //Delete the cookie if the set is past the current time
+ var remove = cookie.expiration_date <= Date.now();
+ if(cookie.name in cookies) {
+ var cookies_list = cookies[cookie.name];
+ for(var i=0;i<cookies_list.length;i++) {
+ var collidable_cookie = cookies_list[i];
+ if(collidable_cookie.collidesWith(cookie)) {
+ if(remove) {
+ cookies_list.splice(i,1);
+ if(cookies_list.length===0) {
+ delete cookies[cookie.name]
+ }
+ return false;
+ }
+ else {
+ return cookies_list[i]=cookie;
+ }
+ }
+ }
+ if(remove) {
+ return false;
+ }
+ cookies_list.push(cookie);
+ return cookie;
+ }
+ else if(remove){
+ return false;
+ }
+ else {
+ return cookies[cookie.name]=[cookie];
+ }
+ }
+ //returns a cookie
+ this.getCookie = function getCookie(cookie_name,access_info) {
+ var cookies_list = cookies[cookie_name];
+ for(var i=0;i<cookies_list.length;i++) {
+ var cookie = cookies_list[i];
+ if(cookie.expiration_date <= Date.now()) {
+ if(cookies_list.length===0) {
+ delete cookies[cookie.name]
+ }
+ continue;
+ }
+ if(cookie.matches(access_info)) {
+ return cookie;
+ }
+ }
+ }
+ //returns a list of cookies
+ this.getCookies = function getCookies(access_info) {
+ var matches=[];
+ for(var cookie_name in cookies) {
+ var cookie=this.getCookie(cookie_name,access_info);
+ if (cookie) {
+ matches.push(cookie);
+ }
+ }
+ matches.toString=function toString(){return matches.join(":");}
+ matches.toValueString=function() {return matches.map(function(c){return c.toValueString();}).join(';');}
+ return matches;
+ }
+
+ return this;
+ }
+ return new CookieJar()
+}
+
+
+//returns list of cookies that were set correctly
+CookieJar.prototype.setCookies = function setCookies(cookies) {
+ cookies=Array.isArray(cookies)
+ ?cookies
+ :cookies.split(cookie_str_splitter);
+ var successful=[]
+ for(var i=0;i<cookies.length;i++) {
+ var cookie = Cookie(cookies[i]);
+ if(this.setCookie(cookie)) {
+ successful.push(cookie);
+ }
+ }
+ return successful;
+}
+
+});
+
+require.define("/shred/request.js", function (require, module, exports, __dirname, __filename) {
+ // The request object encapsulates a request, creating a Node.js HTTP request and
+// then handling the response.
+
+var HTTP = require("http")
+ , HTTPS = require("https")
+ , parseUri = require("./parseUri")
+ , Emitter = require('events').EventEmitter
+ , sprintf = require("sprintf").sprintf
+ , Response = require("./response")
+ , HeaderMixins = require("./mixins/headers")
+ , Content = require("./content")
+;
+
+var STATUS_CODES = HTTP.STATUS_CODES || {
+ 100 : 'Continue',
+ 101 : 'Switching Protocols',
+ 102 : 'Processing', // RFC 2518, obsoleted by RFC 4918
+ 200 : 'OK',
+ 201 : 'Created',
+ 202 : 'Accepted',
+ 203 : 'Non-Authoritative Information',
+ 204 : 'No Content',
+ 205 : 'Reset Content',
+ 206 : 'Partial Content',
+ 207 : 'Multi-Status', // RFC 4918
+ 300 : 'Multiple Choices',
+ 301 : 'Moved Permanently',
+ 302 : 'Moved Temporarily',
+ 303 : 'See Other',
+ 304 : 'Not Modified',
+ 305 : 'Use Proxy',
+ 307 : 'Temporary Redirect',
+ 400 : 'Bad Request',
+ 401 : 'Unauthorized',
+ 402 : 'Payment Required',
+ 403 : 'Forbidden',
+ 404 : 'Not Found',
+ 405 : 'Method Not Allowed',
+ 406 : 'Not Acceptable',
+ 407 : 'Proxy Authentication Required',
+ 408 : 'Request Time-out',
+ 409 : 'Conflict',
+ 410 : 'Gone',
+ 411 : 'Length Required',
+ 412 : 'Precondition Failed',
+ 413 : 'Request Entity Too Large',
+ 414 : 'Request-URI Too Large',
+ 415 : 'Unsupported Media Type',
+ 416 : 'Requested Range Not Satisfiable',
+ 417 : 'Expectation Failed',
+ 418 : 'I\'m a teapot', // RFC 2324
+ 422 : 'Unprocessable Entity', // RFC 4918
+ 423 : 'Locked', // RFC 4918
+ 424 : 'Failed Dependency', // RFC 4918
+ 425 : 'Unordered Collection', // RFC 4918
+ 426 : 'Upgrade Required', // RFC 2817
+ 500 : 'Internal Server Error',
+ 501 : 'Not Implemented',
+ 502 : 'Bad Gateway',
+ 503 : 'Service Unavailable',
+ 504 : 'Gateway Time-out',
+ 505 : 'HTTP Version not supported',
+ 506 : 'Variant Also Negotiates', // RFC 2295
+ 507 : 'Insufficient Storage', // RFC 4918
+ 509 : 'Bandwidth Limit Exceeded',
+ 510 : 'Not Extended' // RFC 2774
+};
+
+// The Shred object itself constructs the `Request` object. You should rarely
+// need to do this directly.
+
+var Request = function(options) {
+ this.log = options.logger;
+ this.cookieJar = options.cookieJar;
+ this.encoding = options.encoding;
+ this.logCurl = options.logCurl;
+ processOptions(this,options||{});
+ createRequest(this);
+};
+
+// A `Request` has a number of properties, many of which help with details like
+// URL parsing or defaulting the port for the request.
+
+Object.defineProperties(Request.prototype, {
+
+// - **url**. You can set the `url` property with a valid URL string and all the
+// URL-related properties (host, port, etc.) will be automatically set on the
+// request object.
+
+ url: {
+ get: function() {
+ if (!this.scheme) { return null; }
+ return sprintf("%s://%s:%s%s",
+ this.scheme, this.host, this.port,
+ (this.proxy ? "/" : this.path) +
+ (this.query ? ("?" + this.query) : ""));
+ },
+ set: function(_url) {
+ _url = parseUri(_url);
+ this.scheme = _url.protocol;
+ this.host = _url.host;
+ this.port = _url.port;
+ this.path = _url.path;
+ this.query = _url.query;
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **headers**. Returns a hash representing the request headers. You can't set
+// this directly, only get it. You can add or modify headers by using the
+// `setHeader` or `setHeaders` method. This ensures that the headers are
+// normalized - that is, you don't accidentally send `Content-Type` and
+// `content-type` headers. Keep in mind that if you modify the returned hash,
+// it will *not* modify the request headers.
+
+ headers: {
+ get: function() {
+ return this.getHeaders();
+ },
+ enumerable: true
+ },
+
+// - **port**. Unless you set the `port` explicitly or include it in the URL, it
+// will default based on the scheme.
+
+ port: {
+ get: function() {
+ if (!this._port) {
+ switch(this.scheme) {
+ case "https": return this._port = 443;
+ case "http":
+ default: return this._port = 80;
+ }
+ }
+ return this._port;
+ },
+ set: function(value) { this._port = value; return this; },
+ enumerable: true
+ },
+
+// - **method**. The request method - `get`, `put`, `post`, etc. that will be
+// used to make the request. Defaults to `get`.
+
+ method: {
+ get: function() {
+ return this._method = (this._method||"GET");
+ },
+ set: function(value) {
+ this._method = value; return this;
+ },
+ enumerable: true
+ },
+
+// - **query**. Can be set either with a query string or a hash (object). Get
+// will always return a properly escaped query string or null if there is no
+// query component for the request.
+
+ query: {
+ get: function() {return this._query;},
+ set: function(value) {
+ var stringify = function (hash) {
+ var query = "";
+ for (var key in hash) {
+ query += encodeURIComponent(key) + '=' + encodeURIComponent(hash[key]) + '&';
+ }
+ // Remove the last '&'
+ query = query.slice(0, -1);
+ return query;
+ }
+
+ if (value) {
+ if (typeof value === 'object') {
+ value = stringify(value);
+ }
+ this._query = value;
+ } else {
+ this._query = "";
+ }
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **parameters**. This will return the query parameters in the form of a hash
+// (object).
+
+ parameters: {
+ get: function() { return QueryString.parse(this._query||""); },
+ enumerable: true
+ },
+
+// - **content**. (Aliased as `body`.) Set this to add a content entity to the
+// request. Attempts to use the `content-type` header to determine what to do
+// with the content value. Get this to get back a [`Content`
+// object](./content.html).
+
+ body: {
+ get: function() { return this._body; },
+ set: function(value) {
+ this._body = new Content({
+ data: value,
+ type: this.getHeader("Content-Type")
+ });
+ this.setHeader("Content-Type",this.content.type);
+ this.setHeader("Content-Length",this.content.length);
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **timeout**. Used to determine how long to wait for a response. Does not
+// distinguish between connect timeouts versus request timeouts. Set either in
+// milliseconds or with an object with temporal attributes (hours, minutes,
+// seconds) and convert it into milliseconds. Get will always return
+// milliseconds.
+
+ timeout: {
+ get: function() { return this._timeout; }, // in milliseconds
+ set: function(timeout) {
+ var request = this
+ , milliseconds = 0;
+ ;
+ if (!timeout) return this;
+ if (typeof timeout==="number") { milliseconds = timeout; }
+ else {
+ milliseconds = (timeout.milliseconds||0) +
+ (1000 * ((timeout.seconds||0) +
+ (60 * ((timeout.minutes||0) +
+ (60 * (timeout.hours||0))))));
+ }
+ this._timeout = milliseconds;
+ return this;
+ },
+ enumerable: true
+ }
+});
+
+// Alias `body` property to `content`. Since the [content object](./content.html)
+// has a `body` attribute, it's preferable to use `content` since you can then
+// access the raw content data using `content.body`.
+
+Object.defineProperty(Request.prototype,"content",
+ Object.getOwnPropertyDescriptor(Request.prototype, "body"));
+
+// The `Request` object can be pretty overwhelming to view using the built-in
+// Node.js inspect method. We want to make it a bit more manageable. This
+// probably goes [too far in the other
+// direction](https://github.com/spire-io/shred/issues/2).
+
+Request.prototype.inspect = function () {
+ var request = this;
+ var headers = this.format_headers();
+ var summary = ["<Shred Request> ", request.method.toUpperCase(),
+ request.url].join(" ")
+ return [ summary, "- Headers:", headers].join("\n");
+};
+
+Request.prototype.format_headers = function () {
+ var array = []
+ var headers = this._headers
+ for (var key in headers) {
+ if (headers.hasOwnProperty(key)) {
+ var value = headers[key]
+ array.push("\t" + key + ": " + value);
+ }
+ }
+ return array.join("\n");
+};
+
+// Allow chainable 'on's: shred.get({ ... }).on( ... ). You can pass in a
+// single function, a pair (event, function), or a hash:
+// { event: function, event: function }
+Request.prototype.on = function (eventOrHash, listener) {
+ var emitter = this.emitter;
+ // Pass in a single argument as a function then make it the default response handler
+ if (arguments.length === 1 && typeof(eventOrHash) === 'function') {
+ emitter.on('response', eventOrHash);
+ } else if (arguments.length === 1 && typeof(eventOrHash) === 'object') {
+ for (var key in eventOrHash) {
+ if (eventOrHash.hasOwnProperty(key)) {
+ emitter.on(key, eventOrHash[key]);
+ }
+ }
+ } else {
+ emitter.on(eventOrHash, listener);
+ }
+ return this;
+};
+
+// Add in the header methods. Again, these ensure we don't get the same header
+// multiple times with different case conventions.
+HeaderMixins.gettersAndSetters(Request);
+
+// `processOptions` is called from the constructor to handle all the work
+// associated with making sure we do our best to ensure we have a valid request.
+
+var processOptions = function(request,options) {
+
+ request.log.debug("Processing request options ..");
+
+ // We'll use `request.emitter` to manage the `on` event handlers.
+ request.emitter = (new Emitter);
+
+ request.agent = options.agent;
+
+ // Set up the handlers ...
+ if (options.on) {
+ for (var key in options.on) {
+ if (options.on.hasOwnProperty(key)) {
+ request.emitter.on(key, options.on[key]);
+ }
+ }
+ }
+
+ // Make sure we were give a URL or a host
+ if (!options.url && !options.host) {
+ request.emitter.emit("request_error",
+ new Error("No url or url options (host, port, etc.)"));
+ return;
+ }
+
+ // Allow for the [use of a proxy](http://www.jmarshall.com/easy/http/#proxies).
+
+ if (options.url) {
+ if (options.proxy) {
+ request.url = options.proxy;
+ request.path = options.url;
+ } else {
+ request.url = options.url;
+ }
+ }
+
+ // Set the remaining options.
+ request.query = options.query||options.parameters||request.query ;
+ request.method = options.method;
+ request.setHeader("user-agent",options.agent||"Shred");
+ request.setHeaders(options.headers);
+
+ if (request.cookieJar) {
+ var cookies = request.cookieJar.getCookies( CookieAccessInfo( request.host, request.path ) );
+ if (cookies.length) {
+ var cookieString = request.getHeader('cookie')||'';
+ for (var cookieIndex = 0; cookieIndex < cookies.length; ++cookieIndex) {
+ if ( cookieString.length && cookieString[ cookieString.length - 1 ] != ';' )
+ {
+ cookieString += ';';
+ }
+ cookieString += cookies[ cookieIndex ].name + '=' + cookies[ cookieIndex ].value + ';';
+ }
+ request.setHeader("cookie", cookieString);
+ }
+ }
+
+ // The content entity can be set either using the `body` or `content` attributes.
+ if (options.body||options.content) {
+ request.content = options.body||options.content;
+ }
+ request.timeout = options.timeout;
+
+};
+
+// `createRequest` is also called by the constructor, after `processOptions`.
+// This actually makes the request and processes the response, so `createRequest`
+// is a bit of a misnomer.
+
+var createRequest = function(request) {
+ var timeout ;
+
+ request.log.debug("Creating request ..");
+ request.log.debug(request);
+
+ var reqParams = {
+ host: request.host,
+ port: request.port,
+ method: request.method,
+ path: request.path + (request.query ? '?'+request.query : ""),
+ headers: request.getHeaders(),
+ // Node's HTTP/S modules will ignore this, but we are using the
+ // browserify-http module in the browser for both HTTP and HTTPS, and this
+ // is how you differentiate the two.
+ scheme: request.scheme,
+ // Use a provided agent. 'Undefined' is the default, which uses a global
+ // agent.
+ agent: request.agent
+ };
+
+ if (request.logCurl) {
+ logCurl(request);
+ }
+
+ var http = request.scheme == "http" ? HTTP : HTTPS;
+
+ // Set up the real request using the selected library. The request won't be
+ // sent until we call `.end()`.
+ request._raw = http.request(reqParams, function(response) {
+ request.log.debug("Received response ..");
+
+ // We haven't timed out and we have a response, so make sure we clear the
+ // timeout so it doesn't fire while we're processing the response.
+ clearTimeout(timeout);
+
+ // Construct a Shred `Response` object from the response. This will stream
+ // the response, thus the need for the callback. We can access the response
+ // entity safely once we're in the callback.
+ response = new Response(response, request, function(response) {
+
+ // Set up some event magic. The precedence is given first to
+ // status-specific handlers, then to responses for a given event, and then
+ // finally to the more general `response` handler. In the last case, we
+ // need to first make sure we're not dealing with a a redirect.
+ var emit = function(event) {
+ var emitter = request.emitter;
+ var textStatus = STATUS_CODES[response.status] ? STATUS_CODES[response.status].toLowerCase() : null;
+ if (emitter.listeners(response.status).length > 0 || emitter.listeners(textStatus).length > 0) {
+ emitter.emit(response.status, response);
+ emitter.emit(textStatus, response);
+ } else {
+ if (emitter.listeners(event).length>0) {
+ emitter.emit(event, response);
+ } else if (!response.isRedirect) {
+ emitter.emit("response", response);
+ //console.warn("Request has no event listener for status code " + response.status);
+ }
+ }
+ };
+
+ // Next, check for a redirect. We simply repeat the request with the URL
+ // given in the `Location` header. We fire a `redirect` event.
+ if (response.isRedirect) {
+ request.log.debug("Redirecting to "
+ + response.getHeader("Location"));
+ request.url = response.getHeader("Location");
+ emit("redirect");
+ createRequest(request);
+
+ // Okay, it's not a redirect. Is it an error of some kind?
+ } else if (response.isError) {
+ emit("error");
+ } else {
+ // It looks like we're good shape. Trigger the `success` event.
+ emit("success");
+ }
+ });
+ });
+
+ // We're still setting up the request. Next, we're going to handle error cases
+ // where we have no response. We don't emit an error event because that event
+ // takes a response. We don't response handlers to have to check for a null
+ // value. However, we [should introduce a different event
+ // type](https://github.com/spire-io/shred/issues/3) for this type of error.
+ request._raw.on("error", function(error) {
+ request.emitter.emit("request_error", error);
+ });
+
+ request._raw.on("socket", function(socket) {
+ request.emitter.emit("socket", socket);
+ });
+
+ // TCP timeouts should also trigger the "response_error" event.
+ request._raw.on('socket', function () {
+ request._raw.socket.on('timeout', function () {
+ // This should trigger the "error" event on the raw request, which will
+ // trigger the "response_error" on the shred request.
+ request._raw.abort();
+ });
+ });
+
+
+ // We're almost there. Next, we need to write the request entity to the
+ // underlying request object.
+ if (request.content) {
+ request.log.debug("Streaming body: '" +
+ request.content.data.slice(0,59) + "' ... ");
+ request._raw.write(request.content.data);
+ }
+
+ // Finally, we need to set up the timeout. We do this last so that we don't
+ // start the clock ticking until the last possible moment.
+ if (request.timeout) {
+ timeout = setTimeout(function() {
+ request.log.debug("Timeout fired, aborting request ...");
+ request._raw.abort();
+ request.emitter.emit("timeout", request);
+ },request.timeout);
+ }
+
+ // The `.end()` method will cause the request to fire. Technically, it might
+ // have already sent the headers and body.
+ request.log.debug("Sending request ...");
+ request._raw.end();
+};
+
+// Logs the curl command for the request.
+var logCurl = function (req) {
+ var headers = req.getHeaders();
+ var headerString = "";
+
+ for (var key in headers) {
+ headerString += '-H "' + key + ": " + headers[key] + '" ';
+ }
+
+ var bodyString = ""
+
+ if (req.content) {
+ bodyString += "-d '" + req.content.body + "' ";
+ }
+
+ var query = req.query ? '?' + req.query : "";
+
+ console.log("curl " +
+ "-X " + req.method.toUpperCase() + " " +
+ req.scheme + "://" + req.host + ":" + req.port + req.path + query + " " +
+ headerString +
+ bodyString
+ );
+};
+
+
+module.exports = Request;
+
+});
+
+require.define("http", function (require, module, exports, __dirname, __filename) {
+ // todo
+
+});
+
+require.define("https", function (require, module, exports, __dirname, __filename) {
+ // todo
+
+});
+
+require.define("/shred/parseUri.js", function (require, module, exports, __dirname, __filename) {
+ // parseUri 1.2.2
+// (c) Steven Levithan <stevenlevithan.com>
+// MIT License
+
+function parseUri (str) {
+ var o = parseUri.options,
+ m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
+ uri = {},
+ i = 14;
+
+ while (i--) uri[o.key[i]] = m[i] || "";
+
+ uri[o.q.name] = {};
+ uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
+ if ($1) uri[o.q.name][$1] = $2;
+ });
+
+ return uri;
+};
+
+parseUri.options = {
+ strictMode: false,
+ key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
+ q: {
+ name: "queryKey",
+ parser: /(?:^|&)([^&=]*)=?([^&]*)/g
+ },
+ parser: {
+ strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
+ loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
+ }
+};
+
+module.exports = parseUri;
+
+});
+
+require.define("events", function (require, module, exports, __dirname, __filename) {
+ if (!process.EventEmitter) process.EventEmitter = function () {};
+
+var EventEmitter = exports.EventEmitter = process.EventEmitter;
+var isArray = typeof Array.isArray === 'function'
+ ? Array.isArray
+ : function (xs) {
+ return Object.toString.call(xs) === '[object Array]'
+ }
+;
+
+// By default EventEmitters will print a warning if more than
+// 10 listeners are added to it. This is a useful default which
+// helps finding memory leaks.
+//
+// Obviously not all Emitters should be limited to 10. This function allows
+// that to be increased. Set to zero for unlimited.
+var defaultMaxListeners = 10;
+EventEmitter.prototype.setMaxListeners = function(n) {
+ if (!this._events) this._events = {};
+ this._events.maxListeners = n;
+};
+
+
+EventEmitter.prototype.emit = function(type) {
+ // If there is no 'error' event listener then throw.
+ if (type === 'error') {
+ if (!this._events || !this._events.error ||
+ (isArray(this._events.error) && !this._events.error.length))
+ {
+ if (arguments[1] instanceof Error) {
+ throw arguments[1]; // Unhandled 'error' event
+ } else {
+ throw new Error("Uncaught, unspecified 'error' event.");
+ }
+ return false;
+ }
+ }
+
+ if (!this._events) return false;
+ var handler = this._events[type];
+ if (!handler) return false;
+
+ if (typeof handler == 'function') {
+ switch (arguments.length) {
+ // fast cases
+ case 1:
+ handler.call(this);
+ break;
+ case 2:
+ handler.call(this, arguments[1]);
+ break;
+ case 3:
+ handler.call(this, arguments[1], arguments[2]);
+ break;
+ // slower
+ default:
+ var args = Array.prototype.slice.call(arguments, 1);
+ handler.apply(this, args);
+ }
+ return true;
+
+ } else if (isArray(handler)) {
+ var args = Array.prototype.slice.call(arguments, 1);
+
+ var listeners = handler.slice();
+ for (var i = 0, l = listeners.length; i < l; i++) {
+ listeners[i].apply(this, args);
+ }
+ return true;
+
+ } else {
+ return false;
+ }
+};
+
+// EventEmitter is defined in src/node_events.cc
+// EventEmitter.prototype.emit() is also defined there.
+EventEmitter.prototype.addListener = function(type, listener) {
+ if ('function' !== typeof listener) {
+ throw new Error('addListener only takes instances of Function');
+ }
+
+ if (!this._events) this._events = {};
+
+ // To avoid recursion in the case that type == "newListeners"! Before
+ // adding it to the listeners, first emit "newListeners".
+ this.emit('newListener', type, listener);
+
+ if (!this._events[type]) {
+ // Optimize the case of one listener. Don't need the extra array object.
+ this._events[type] = listener;
+ } else if (isArray(this._events[type])) {
+
+ // Check for listener leak
+ if (!this._events[type].warned) {
+ var m;
+ if (this._events.maxListeners !== undefined) {
+ m = this._events.maxListeners;
+ } else {
+ m = defaultMaxListeners;
+ }
+
+ if (m && m > 0 && this._events[type].length > m) {
+ this._events[type].warned = true;
+ console.error('(node) warning: possible EventEmitter memory ' +
+ 'leak detected. %d listeners added. ' +
+ 'Use emitter.setMaxListeners() to increase limit.',
+ this._events[type].length);
+ console.trace();
+ }
+ }
+
+ // If we've already got an array, just append.
+ this._events[type].push(listener);
+ } else {
+ // Adding the second element, need to change to array.
+ this._events[type] = [this._events[type], listener];
+ }
+
+ return this;
+};
+
+EventEmitter.prototype.on = EventEmitter.prototype.addListener;
+
+EventEmitter.prototype.once = function(type, listener) {
+ var self = this;
+ self.on(type, function g() {
+ self.removeListener(type, g);
+ listener.apply(this, arguments);
+ });
+
+ return this;
+};
+
+EventEmitter.prototype.removeListener = function(type, listener) {
+ if ('function' !== typeof listener) {
+ throw new Error('removeListener only takes instances of Function');
+ }
+
+ // does not use listeners(), so no side effect of creating _events[type]
+ if (!this._events || !this._events[type]) return this;
+
+ var list = this._events[type];
+
+ if (isArray(list)) {
+ var i = list.indexOf(listener);
+ if (i < 0) return this;
+ list.splice(i, 1);
+ if (list.length == 0)
+ delete this._events[type];
+ } else if (this._events[type] === listener) {
+ delete this._events[type];
+ }
+
+ return this;
+};
+
+EventEmitter.prototype.removeAllListeners = function(type) {
+ // does not use listeners(), so no side effect of creating _events[type]
+ if (type && this._events && this._events[type]) this._events[type] = null;
+ return this;
+};
+
+EventEmitter.prototype.listeners = function(type) {
+ if (!this._events) this._events = {};
+ if (!this._events[type]) this._events[type] = [];
+ if (!isArray(this._events[type])) {
+ this._events[type] = [this._events[type]];
+ }
+ return this._events[type];
+};
+
+});
+
+require.define("/node_modules/sprintf/package.json", function (require, module, exports, __dirname, __filename) {
+ module.exports = {"main":"./lib/sprintf"}
+});
+
+require.define("/node_modules/sprintf/lib/sprintf.js", function (require, module, exports, __dirname, __filename) {
+ /**
+sprintf() for JavaScript 0.7-beta1
+http://www.diveintojavascript.com/projects/javascript-sprintf
+
+Copyright (c) Alexandru Marasteanu <alexaholic [at) gmail (dot] com>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of sprintf() for JavaScript nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+Changelog:
+2010.11.07 - 0.7-beta1-node
+ - converted it to a node.js compatible module
+
+2010.09.06 - 0.7-beta1
+ - features: vsprintf, support for named placeholders
+ - enhancements: format cache, reduced global namespace pollution
+
+2010.05.22 - 0.6:
+ - reverted to 0.4 and fixed the bug regarding the sign of the number 0
+ Note:
+ Thanks to Raphael Pigulla <raph (at] n3rd [dot) org> (http://www.n3rd.org/)
+ who warned me about a bug in 0.5, I discovered that the last update was
+ a regress. I appologize for that.
+
+2010.05.09 - 0.5:
+ - bug fix: 0 is now preceeded with a + sign
+ - bug fix: the sign was not at the right position on padded results (Kamal Abdali)
+ - switched from GPL to BSD license
+
+2007.10.21 - 0.4:
+ - unit test and patch (David Baird)
+
+2007.09.17 - 0.3:
+ - bug fix: no longer throws exception on empty paramenters (Hans Pufal)
+
+2007.09.11 - 0.2:
+ - feature: added argument swapping
+
+2007.04.03 - 0.1:
+ - initial release
+**/
+
+var sprintf = (function() {
+ function get_type(variable) {
+ return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
+ }
+ function str_repeat(input, multiplier) {
+ for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */}
+ return output.join('');
+ }
+
+ var str_format = function() {
+ if (!str_format.cache.hasOwnProperty(arguments[0])) {
+ str_format.cache[arguments[0]] = str_format.parse(arguments[0]);
+ }
+ return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
+ };
+
+ str_format.format = function(parse_tree, argv) {
+ var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length;
+ for (i = 0; i < tree_length; i++) {
+ node_type = get_type(parse_tree[i]);
+ if (node_type === 'string') {
+ output.push(parse_tree[i]);
+ }
+ else if (node_type === 'array') {
+ match = parse_tree[i]; // convenience purposes only
+ if (match[2]) { // keyword argument
+ arg = argv[cursor];
+ for (k = 0; k < match[2].length; k++) {
+ if (!arg.hasOwnProperty(match[2][k])) {
+ throw(sprintf('[sprintf] property "%s" does not exist', match[2][k]));
+ }
+ arg = arg[match[2][k]];
+ }
+ }
+ else if (match[1]) { // positional argument (explicit)
+ arg = argv[match[1]];
+ }
+ else { // positional argument (implicit)
+ arg = argv[cursor++];
+ }
+
+ if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) {
+ throw(sprintf('[sprintf] expecting number but found %s', get_type(arg)));
+ }
+ switch (match[8]) {
+ case 'b': arg = arg.toString(2); break;
+ case 'c': arg = String.fromCharCode(arg); break;
+ case 'd': arg = parseInt(arg, 10); break;
+ case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break;
+ case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break;
+ case 'o': arg = arg.toString(8); break;
+ case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break;
+ case 'u': arg = Math.abs(arg); break;
+ case 'x': arg = arg.toString(16); break;
+ case 'X': arg = arg.toString(16).toUpperCase(); break;
+ }
+ arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg);
+ pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' ';
+ pad_length = match[6] - String(arg).length;
+ pad = match[6] ? str_repeat(pad_character, pad_length) : '';
+ output.push(match[5] ? arg + pad : pad + arg);
+ }
+ }
+ return output.join('');
+ };
+
+ str_format.cache = {};
+
+ str_format.parse = function(fmt) {
+ var _fmt = fmt, match = [], parse_tree = [], arg_names = 0;
+ while (_fmt) {
+ if ((match = /^[^\x25]+/.exec(_fmt)) !== null) {
+ parse_tree.push(match[0]);
+ }
+ else if ((match = /^\x25{2}/.exec(_fmt)) !== null) {
+ parse_tree.push('%');
+ }
+ else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
+ if (match[2]) {
+ arg_names |= 1;
+ var field_list = [], replacement_field = match[2], field_match = [];
+ if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
+ field_list.push(field_match[1]);
+ while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
+ if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
+ field_list.push(field_match[1]);
+ }
+ else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
+ field_list.push(field_match[1]);
+ }
+ else {
+ throw('[sprintf] huh?');
+ }
+ }
+ }
+ else {
+ throw('[sprintf] huh?');
+ }
+ match[2] = field_list;
+ }
+ else {
+ arg_names |= 2;
+ }
+ if (arg_names === 3) {
+ throw('[sprintf] mixing positional and named placeholders is not (yet) supported');
+ }
+ parse_tree.push(match);
+ }
+ else {
+ throw('[sprintf] huh?');
+ }
+ _fmt = _fmt.substring(match[0].length);
+ }
+ return parse_tree;
+ };
+
+ return str_format;
+})();
+
+var vsprintf = function(fmt, argv) {
+ argv.unshift(fmt);
+ return sprintf.apply(null, argv);
+};
+
+exports.sprintf = sprintf;
+exports.vsprintf = vsprintf;
+});
+
+require.define("/shred/response.js", function (require, module, exports, __dirname, __filename) {
+ // The `Response object` encapsulates a Node.js HTTP response.
+
+var Content = require("./content")
+ , HeaderMixins = require("./mixins/headers")
+ , CookieJarLib = require( "cookiejar" )
+ , Cookie = CookieJarLib.Cookie
+;
+
+// Browser doesn't have zlib.
+var zlib = null;
+try {
+ zlib = require('zlib');
+} catch (e) {
+ // console.warn("no zlib library");
+}
+
+// Iconv doesn't work in browser
+var Iconv = null;
+try {
+ Iconv = require('iconv-lite');
+} catch (e) {
+ // console.warn("no iconv library");
+}
+
+// Construct a `Response` object. You should never have to do this directly. The
+// `Request` object handles this, getting the raw response object and passing it
+// in here, along with the request. The callback allows us to stream the response
+// and then use the callback to let the request know when it's ready.
+var Response = function(raw, request, callback) {
+ var response = this;
+ this._raw = raw;
+
+ // The `._setHeaders` method is "private"; you can't otherwise set headers on
+ // the response.
+ this._setHeaders.call(this,raw.headers);
+
+ // store any cookies
+ if (request.cookieJar && this.getHeader('set-cookie')) {
+ var cookieStrings = this.getHeader('set-cookie');
+ var cookieObjs = []
+ , cookie;
+
+ for (var i = 0; i < cookieStrings.length; i++) {
+ var cookieString = cookieStrings[i];
+ if (!cookieString) {
+ continue;
+ }
+
+ if (!cookieString.match(/domain\=/i)) {
+ cookieString += '; domain=' + request.host;
+ }
+
+ if (!cookieString.match(/path\=/i)) {
+ cookieString += '; path=' + request.path;
+ }
+
+ try {
+ cookie = new Cookie(cookieString);
+ if (cookie) {
+ cookieObjs.push(cookie);
+ }
+ } catch (e) {
+ console.warn("Tried to set bad cookie: " + cookieString);
+ }
+ }
+
+ request.cookieJar.setCookies(cookieObjs);
+ }
+
+ this.request = request;
+ this.client = request.client;
+ this.log = this.request.log;
+
+ // Stream the response content entity and fire the callback when we're done.
+ // Store the incoming data in a array of Buffers which we concatinate into one
+ // buffer at the end. We need to use buffers instead of strings here in order
+ // to preserve binary data.
+ var chunkBuffers = [];
+ var dataLength = 0;
+ raw.on("data", function(chunk) {
+ chunkBuffers.push(chunk);
+ dataLength += chunk.length;
+ });
+ raw.on("end", function() {
+ var body;
+ if (typeof Buffer === 'undefined') {
+ // Just concatinate into a string
+ body = chunkBuffers.join('');
+ } else {
+ // Initialize new buffer and add the chunks one-at-a-time.
+ body = new Buffer(dataLength);
+ for (var i = 0, pos = 0; i < chunkBuffers.length; i++) {
+ chunkBuffers[i].copy(body, pos);
+ pos += chunkBuffers[i].length;
+ }
+ }
+
+ var setBodyAndFinish = function (body) {
+ response._body = new Content({
+ body: body,
+ type: response.getHeader("Content-Type")
+ });
+ callback(response);
+ }
+
+ if (zlib && response.getHeader("Content-Encoding") === 'gzip'){
+ zlib.gunzip(body, function (err, gunzippedBody) {
+ if (Iconv && response.request.encoding){
+ body = Iconv.fromEncoding(gunzippedBody,response.request.encoding);
+ } else {
+ body = gunzippedBody.toString();
+ }
+ setBodyAndFinish(body);
+ })
+ }
+ else{
+ if (response.request.encoding){
+ body = Iconv.fromEncoding(body,response.request.encoding);
+ }
+ setBodyAndFinish(body);
+ }
+ });
+};
+
+// The `Response` object can be pretty overwhelming to view using the built-in
+// Node.js inspect method. We want to make it a bit more manageable. This
+// probably goes [too far in the other
+// direction](https://github.com/spire-io/shred/issues/2).
+
+Response.prototype = {
+ inspect: function() {
+ var response = this;
+ var headers = this.format_headers();
+ var summary = ["<Shred Response> ", response.status].join(" ")
+ return [ summary, "- Headers:", headers].join("\n");
+ },
+ format_headers: function () {
+ var array = []
+ var headers = this._headers
+ for (var key in headers) {
+ if (headers.hasOwnProperty(key)) {
+ var value = headers[key]
+ array.push("\t" + key + ": " + value);
+ }
+ }
+ return array.join("\n");
+ }
+};
+
+// `Response` object properties, all of which are read-only:
+Object.defineProperties(Response.prototype, {
+
+// - **status**. The HTTP status code for the response.
+ status: {
+ get: function() { return this._raw.statusCode; },
+ enumerable: true
+ },
+
+// - **content**. The HTTP content entity, if any. Provided as a [content
+// object](./content.html), which will attempt to convert the entity based upon
+// the `content-type` header. The converted value is available as
+// `content.data`. The original raw content entity is available as
+// `content.body`.
+ body: {
+ get: function() { return this._body; }
+ },
+ content: {
+ get: function() { return this.body; },
+ enumerable: true
+ },
+
+// - **isRedirect**. Is the response a redirect? These are responses with 3xx
+// status and a `Location` header.
+ isRedirect: {
+ get: function() {
+ return (this.status>299
+ &&this.status<400
+ &&this.getHeader("Location"));
+ },
+ enumerable: true
+ },
+
+// - **isError**. Is the response an error? These are responses with status of
+// 400 or greater.
+ isError: {
+ get: function() {
+ return (this.status === 0 || this.status > 399)
+ },
+ enumerable: true
+ }
+});
+
+// Add in the [getters for accessing the normalized headers](./headers.js).
+HeaderMixins.getters(Response);
+HeaderMixins.privateSetters(Response);
+
+// Work around Mozilla bug #608735 [https://bugzil.la/608735], which causes
+// getAllResponseHeaders() to return {} if the response is a CORS request.
+// xhr.getHeader still works correctly.
+var getHeader = Response.prototype.getHeader;
+Response.prototype.getHeader = function (name) {
+ return (getHeader.call(this,name) ||
+ (typeof this._raw.getHeader === 'function' && this._raw.getHeader(name)));
+};
+
+module.exports = Response;
+
+});
+
+require.define("/shred/content.js", function (require, module, exports, __dirname, __filename) {
+
+// The purpose of the `Content` object is to abstract away the data conversions
+// to and from raw content entities as strings. For example, you want to be able
+// to pass in a Javascript object and have it be automatically converted into a
+// JSON string if the `content-type` is set to a JSON-based media type.
+// Conversely, you want to be able to transparently get back a Javascript object
+// in the response if the `content-type` is a JSON-based media-type.
+
+// One limitation of the current implementation is that it [assumes the `charset` is UTF-8](https://github.com/spire-io/shred/issues/5).
+
+// The `Content` constructor takes an options object, which *must* have either a
+// `body` or `data` property and *may* have a `type` property indicating the
+// media type. If there is no `type` attribute, a default will be inferred.
+var Content = function(options) {
+ this.body = options.body;
+ this.data = options.data;
+ this.type = options.type;
+};
+
+Content.prototype = {
+ // Treat `toString()` as asking for the `content.body`. That is, the raw content entity.
+ //
+ // toString: function() { return this.body; }
+ //
+ // Commented out, but I've forgotten why. :/
+};
+
+
+// `Content` objects have the following attributes:
+Object.defineProperties(Content.prototype,{
+
+// - **type**. Typically accessed as `content.type`, reflects the `content-type`
+// header associated with the request or response. If not passed as an options
+// to the constructor or set explicitly, it will infer the type the `data`
+// attribute, if possible, and, failing that, will default to `text/plain`.
+ type: {
+ get: function() {
+ if (this._type) {
+ return this._type;
+ } else {
+ if (this._data) {
+ switch(typeof this._data) {
+ case "string": return "text/plain";
+ case "object": return "application/json";
+ }
+ }
+ }
+ return "text/plain";
+ },
+ set: function(value) {
+ this._type = value;
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **data**. Typically accessed as `content.data`, reflects the content entity
+// converted into Javascript data. This can be a string, if the `type` is, say,
+// `text/plain`, but can also be a Javascript object. The conversion applied is
+// based on the `processor` attribute. The `data` attribute can also be set
+// directly, in which case the conversion will be done the other way, to infer
+// the `body` attribute.
+ data: {
+ get: function() {
+ if (this._body) {
+ return this.processor.parser(this._body);
+ } else {
+ return this._data;
+ }
+ },
+ set: function(data) {
+ if (this._body&&data) Errors.setDataWithBody(this);
+ this._data = data;
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **body**. Typically accessed as `content.body`, reflects the content entity
+// as a UTF-8 string. It is the mirror of the `data` attribute. If you set the
+// `data` attribute, the `body` attribute will be inferred and vice-versa. If
+// you attempt to set both, an exception is raised.
+ body: {
+ get: function() {
+ if (this._data) {
+ return this.processor.stringify(this._data);
+ } else {
+ return this.processor.stringify(this._body);
+ }
+ },
+ set: function(body) {
+ if (this._data&&body) Errors.setBodyWithData(this);
+ this._body = body;
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **processor**. The functions that will be used to convert to/from `data` and
+// `body` attributes. You can add processors. The two that are built-in are for
+// `text/plain`, which is basically an identity transformation and
+// `application/json` and other JSON-based media types (including custom media
+// types with `+json`). You can add your own processors. See below.
+ processor: {
+ get: function() {
+ var processor = Content.processors[this.type];
+ if (processor) {
+ return processor;
+ } else {
+ // Return the first processor that matches any part of the
+ // content type. ex: application/vnd.foobar.baz+json will match json.
+ var main = this.type.split(";")[0];
+ var parts = main.split(/\+|\//);
+ for (var i=0, l=parts.length; i < l; i++) {
+ processor = Content.processors[parts[i]]
+ }
+ return processor || {parser:identity,stringify:toString};
+ }
+ },
+ enumerable: true
+ },
+
+// - **length**. Typically accessed as `content.length`, returns the length in
+// bytes of the raw content entity.
+ length: {
+ get: function() {
+ if (typeof Buffer !== 'undefined') {
+ return Buffer.byteLength(this.body);
+ }
+ return this.body.length;
+ }
+ }
+});
+
+Content.processors = {};
+
+// The `registerProcessor` function allows you to add your own processors to
+// convert content entities. Each processor consists of a Javascript object with
+// two properties:
+// - **parser**. The function used to parse a raw content entity and convert it
+// into a Javascript data type.
+// - **stringify**. The function used to convert a Javascript data type into a
+// raw content entity.
+Content.registerProcessor = function(types,processor) {
+
+// You can pass an array of types that will trigger this processor, or just one.
+// We determine the array via duck-typing here.
+ if (types.forEach) {
+ types.forEach(function(type) {
+ Content.processors[type] = processor;
+ });
+ } else {
+ // If you didn't pass an array, we just use what you pass in.
+ Content.processors[types] = processor;
+ }
+};
+
+// Register the identity processor, which is used for text-based media types.
+var identity = function(x) { return x; }
+ , toString = function(x) { return x.toString(); }
+Content.registerProcessor(
+ ["text/html","text/plain","text"],
+ { parser: identity, stringify: toString });
+
+// Register the JSON processor, which is used for JSON-based media types.
+Content.registerProcessor(
+ ["application/json; charset=utf-8","application/json","json"],
+ {
+ parser: function(string) {
+ return JSON.parse(string);
+ },
+ stringify: function(data) {
+ return JSON.stringify(data); }});
+
+// Error functions are defined separately here in an attempt to make the code
+// easier to read.
+var Errors = {
+ setDataWithBody: function(object) {
+ throw new Error("Attempt to set data attribute of a content object " +
+ "when the body attributes was already set.");
+ },
+ setBodyWithData: function(object) {
+ throw new Error("Attempt to set body attribute of a content object " +
+ "when the data attributes was already set.");
+ }
+}
+module.exports = Content;
+
+});
+
+require.define("/shred/mixins/headers.js", function (require, module, exports, __dirname, __filename) {
+ // The header mixins allow you to add HTTP header support to any object. This
+// might seem pointless: why not simply use a hash? The main reason is that, per
+// the [HTTP spec](http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2),
+// headers are case-insensitive. So, for example, `content-type` is the same as
+// `CONTENT-TYPE` which is the same as `Content-Type`. Since there is no way to
+// overload the index operator in Javascript, using a hash to represent the
+// headers means it's possible to have two conflicting values for a single
+// header.
+//
+// The solution to this is to provide explicit methods to set or get headers.
+// This also has the benefit of allowing us to introduce additional variations,
+// including snake case, which we automatically convert to what Matthew King has
+// dubbed "corset case" - the hyphen-separated names with initial caps:
+// `Content-Type`. We use corset-case just in case we're dealing with servers
+// that haven't properly implemented the spec.
+
+// Convert headers to corset-case. **Example:** `CONTENT-TYPE` will be converted
+// to `Content-Type`.
+
+var corsetCase = function(string) {
+ return string;//.toLowerCase()
+ //.replace("_","-")
+ // .replace(/(^|-)(\w)/g,
+ // function(s) { return s.toUpperCase(); });
+};
+
+// We suspect that `initializeHeaders` was once more complicated ...
+var initializeHeaders = function(object) {
+ return {};
+};
+
+// Access the `_headers` property using lazy initialization. **Warning:** If you
+// mix this into an object that is using the `_headers` property already, you're
+// going to have trouble.
+var $H = function(object) {
+ return object._headers||(object._headers=initializeHeaders(object));
+};
+
+// Hide the implementations as private functions, separate from how we expose them.
+
+// The "real" `getHeader` function: get the header after normalizing the name.
+var getHeader = function(object,name) {
+ return $H(object)[corsetCase(name)];
+};
+
+// The "real" `getHeader` function: get one or more headers, or all of them
+// if you don't ask for any specifics.
+var getHeaders = function(object,names) {
+ var keys = (names && names.length>0) ? names : Object.keys($H(object));
+ var hash = keys.reduce(function(hash,key) {
+ hash[key] = getHeader(object,key);
+ return hash;
+ },{});
+ // Freeze the resulting hash so you don't mistakenly think you're modifying
+ // the real headers.
+ Object.freeze(hash);
+ return hash;
+};
+
+// The "real" `setHeader` function: set a header, after normalizing the name.
+var setHeader = function(object,name,value) {
+ $H(object)[corsetCase(name)] = value;
+ return object;
+};
+
+// The "real" `setHeaders` function: set multiple headers based on a hash.
+var setHeaders = function(object,hash) {
+ for( var key in hash ) { setHeader(object,key,hash[key]); };
+ return this;
+};
+
+// Here's where we actually bind the functionality to an object. These mixins work by
+// exposing mixin functions. Each function mixes in a specific batch of features.
+module.exports = {
+
+ // Add getters.
+ getters: function(constructor) {
+ constructor.prototype.getHeader = function(name) { return getHeader(this,name); };
+ constructor.prototype.getHeaders = function() { return getHeaders(this,arguments); };
+ },
+ // Add setters but as "private" methods.
+ privateSetters: function(constructor) {
+ constructor.prototype._setHeader = function(key,value) { return setHeader(this,key,value); };
+ constructor.prototype._setHeaders = function(hash) { return setHeaders(this,hash); };
+ },
+ // Add setters.
+ setters: function(constructor) {
+ constructor.prototype.setHeader = function(key,value) { return setHeader(this,key,value); };
+ constructor.prototype.setHeaders = function(hash) { return setHeaders(this,hash); };
+ },
+ // Add both getters and setters.
+ gettersAndSetters: function(constructor) {
+ constructor.prototype.getHeader = function(name) { return getHeader(this,name); };
+ constructor.prototype.getHeaders = function() { return getHeaders(this,arguments); };
+ constructor.prototype.setHeader = function(key,value) { return setHeader(this,key,value); };
+ constructor.prototype.setHeaders = function(hash) { return setHeaders(this,hash); };
+ }
+};
+
+});
+
+require.define("/node_modules/iconv-lite/package.json", function (require, module, exports, __dirname, __filename) {
+ module.exports = {}
+});
+
+require.define("/node_modules/iconv-lite/index.js", function (require, module, exports, __dirname, __filename) {
+ // Module exports
+var iconv = module.exports = {
+ toEncoding: function(str, encoding) {
+ return iconv.getCodec(encoding).toEncoding(str);
+ },
+ fromEncoding: function(buf, encoding) {
+ return iconv.getCodec(encoding).fromEncoding(buf);
+ },
+
+ defaultCharUnicode: '�',
+ defaultCharSingleByte: '?',
+
+ // Get correct codec for given encoding.
+ getCodec: function(encoding) {
+ var enc = encoding || "utf8";
+ var codecOptions = undefined;
+ while (1) {
+ if (getType(enc) === "String")
+ enc = enc.replace(/[- ]/g, "").toLowerCase();
+ var codec = iconv.encodings[enc];
+ var type = getType(codec);
+ if (type === "String") {
+ // Link to other encoding.
+ codecOptions = {originalEncoding: enc};
+ enc = codec;
+ }
+ else if (type === "Object" && codec.type != undefined) {
+ // Options for other encoding.
+ codecOptions = codec;
+ enc = codec.type;
+ }
+ else if (type === "Function")
+ // Codec itself.
+ return codec(codecOptions);
+ else
+ throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '"+enc+"')");
+ }
+ },
+
+ // Define basic encodings
+ encodings: {
+ internal: function(options) {
+ return {
+ toEncoding: function(str) {
+ return new Buffer(ensureString(str), options.originalEncoding);
+ },
+ fromEncoding: function(buf) {
+ return ensureBuffer(buf).toString(options.originalEncoding);
+ }
+ };
+ },
+ utf8: "internal",
+ ucs2: "internal",
+ binary: "internal",
+ ascii: "internal",
+ base64: "internal",
+
+ // Codepage single-byte encodings.
+ singlebyte: function(options) {
+ // Prepare chars if needed
+ if (!options.chars || (options.chars.length !== 128 && options.chars.length !== 256))
+ throw new Error("Encoding '"+options.type+"' has incorrect 'chars' (must be of len 128 or 256)");
+
+ if (options.chars.length === 128)
+ options.chars = asciiString + options.chars;
+
+ if (!options.charsBuf) {
+ options.charsBuf = new Buffer(options.chars, 'ucs2');
+ }
+
+ if (!options.revCharsBuf) {
+ options.revCharsBuf = new Buffer(65536);
+ var defChar = iconv.defaultCharSingleByte.charCodeAt(0);
+ for (var i = 0; i < options.revCharsBuf.length; i++)
+ options.revCharsBuf[i] = defChar;
+ for (var i = 0; i < options.chars.length; i++)
+ options.revCharsBuf[options.chars.charCodeAt(i)] = i;
+ }
+
+ return {
+ toEncoding: function(str) {
+ str = ensureString(str);
+
+ var buf = new Buffer(str.length);
+ var revCharsBuf = options.revCharsBuf;
+ for (var i = 0; i < str.length; i++)
+ buf[i] = revCharsBuf[str.charCodeAt(i)];
+
+ return buf;
+ },
+ fromEncoding: function(buf) {
+ buf = ensureBuffer(buf);
+
+ // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.
+ var charsBuf = options.charsBuf;
+ var newBuf = new Buffer(buf.length*2);
+ var idx1 = 0, idx2 = 0;
+ for (var i = 0, _len = buf.length; i < _len; i++) {
+ idx1 = buf[i]*2; idx2 = i*2;
+ newBuf[idx2] = charsBuf[idx1];
+ newBuf[idx2+1] = charsBuf[idx1+1];
+ }
+ return newBuf.toString('ucs2');
+ }
+ };
+ },
+
+ // Codepage double-byte encodings.
+ table: function(options) {
+ var table = options.table, key, revCharsTable = options.revCharsTable;
+ if (!table) {
+ throw new Error("Encoding '" + options.type +"' has incorect 'table' option");
+ }
+ if(!revCharsTable) {
+ revCharsTable = options.revCharsTable = {};
+ for (key in table) {
+ revCharsTable[table[key]] = parseInt(key);
+ }
+ }
+
+ return {
+ toEncoding: function(str) {
+ str = ensureString(str);
+ var strLen = str.length;
+ var bufLen = strLen;
+ for (var i = 0; i < strLen; i++)
+ if (str.charCodeAt(i) >> 7)
+ bufLen++;
+
+ var newBuf = new Buffer(bufLen), gbkcode, unicode,
+ defaultChar = revCharsTable[iconv.defaultCharUnicode.charCodeAt(0)];
+
+ for (var i = 0, j = 0; i < strLen; i++) {
+ unicode = str.charCodeAt(i);
+ if (unicode >> 7) {
+ gbkcode = revCharsTable[unicode] || defaultChar;
+ newBuf[j++] = gbkcode >> 8; //high byte;
+ newBuf[j++] = gbkcode & 0xFF; //low byte
+ } else {//ascii
+ newBuf[j++] = unicode;
+ }
+ }
+ return newBuf;
+ },
+ fromEncoding: function(buf) {
+ buf = ensureBuffer(buf);
+ var bufLen = buf.length, strLen = 0;
+ for (var i = 0; i < bufLen; i++) {
+ strLen++;
+ if (buf[i] & 0x80) //the high bit is 1, so this byte is gbkcode's high byte.skip next byte
+ i++;
+ }
+ var newBuf = new Buffer(strLen*2), unicode, gbkcode,
+ defaultChar = iconv.defaultCharUnicode.charCodeAt(0);
+
+ for (var i = 0, j = 0; i < bufLen; i++, j+=2) {
+ gbkcode = buf[i];
+ if (gbkcode & 0x80) {
+ gbkcode = (gbkcode << 8) + buf[++i];
+ unicode = table[gbkcode] || defaultChar;
+ } else {
+ unicode = gbkcode;
+ }
+ newBuf[j] = unicode & 0xFF; //low byte
+ newBuf[j+1] = unicode >> 8; //high byte
+ }
+ return newBuf.toString('ucs2');
+ }
+ }
+ }
+ }
+};
+
+// Add aliases to convert functions
+iconv.encode = iconv.toEncoding;
+iconv.decode = iconv.fromEncoding;
+
+// Load other encodings from files in /encodings dir.
+var encodingsDir = __dirname+"/encodings/",
+ fs = require('fs');
+fs.readdirSync(encodingsDir).forEach(function(file) {
+ if(fs.statSync(encodingsDir + file).isDirectory()) return;
+ var encodings = require(encodingsDir + file)
+ for (var key in encodings)
+ iconv.encodings[key] = encodings[key]
+});
+
+// Utilities
+var asciiString = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f'+
+ ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f';
+
+var ensureBuffer = function(buf) {
+ buf = buf || new Buffer(0);
+ return (buf instanceof Buffer) ? buf : new Buffer(buf.toString(), "utf8");
+}
+
+var ensureString = function(str) {
+ str = str || "";
+ return (str instanceof String) ? str : str.toString((str instanceof Buffer) ? 'utf8' : undefined);
+}
+
+var getType = function(obj) {
+ return Object.prototype.toString.call(obj).slice(8, -1);
+}
+
+
+});
+
+require.define("/node_modules/http-browserify/package.json", function (require, module, exports, __dirname, __filename) {
+ module.exports = {"main":"index.js","browserify":"browser.js"}
+});
+
+require.define("/node_modules/http-browserify/browser.js", function (require, module, exports, __dirname, __filename) {
+ var http = module.exports;
+var EventEmitter = require('events').EventEmitter;
+var Request = require('./lib/request');
+
+http.request = function (params, cb) {
+ if (!params) params = {};
+ if (!params.host) params.host = window.location.host.split(':')[0];
+ if (!params.port) params.port = window.location.port;
+
+ var req = new Request(new xhrHttp, params);
+ if (cb) req.on('response', cb);
+ return req;
+};
+
+http.get = function (params, cb) {
+ params.method = 'GET';
+ var req = http.request(params, cb);
+ req.end();
+ return req;
+};
+
+var xhrHttp = (function () {
+ if (typeof window === 'undefined') {
+ throw new Error('no window object present');
+ }
+ else if (window.XMLHttpRequest) {
+ return window.XMLHttpRequest;
+ }
+ else if (window.ActiveXObject) {
+ var axs = [
+ 'Msxml2.XMLHTTP.6.0',
+ 'Msxml2.XMLHTTP.3.0',
+ 'Microsoft.XMLHTTP'
+ ];
+ for (var i = 0; i < axs.length; i++) {
+ try {
+ var ax = new(window.ActiveXObject)(axs[i]);
+ return function () {
+ if (ax) {
+ var ax_ = ax;
+ ax = null;
+ return ax_;
+ }
+ else {
+ return new(window.ActiveXObject)(axs[i]);
+ }
+ };
+ }
+ catch (e) {}
+ }
+ throw new Error('ajax not supported in this browser')
+ }
+ else {
+ throw new Error('ajax not supported in this browser');
+ }
+})();
+
+http.STATUS_CODES = {
+ 100 : 'Continue',
+ 101 : 'Switching Protocols',
+ 102 : 'Processing', // RFC 2518, obsoleted by RFC 4918
+ 200 : 'OK',
+ 201 : 'Created',
+ 202 : 'Accepted',
+ 203 : 'Non-Authoritative Information',
+ 204 : 'No Content',
+ 205 : 'Reset Content',
+ 206 : 'Partial Content',
+ 207 : 'Multi-Status', // RFC 4918
+ 300 : 'Multiple Choices',
+ 301 : 'Moved Permanently',
+ 302 : 'Moved Temporarily',
+ 303 : 'See Other',
+ 304 : 'Not Modified',
+ 305 : 'Use Proxy',
+ 307 : 'Temporary Redirect',
+ 400 : 'Bad Request',
+ 401 : 'Unauthorized',
+ 402 : 'Payment Required',
+ 403 : 'Forbidden',
+ 404 : 'Not Found',
+ 405 : 'Method Not Allowed',
+ 406 : 'Not Acceptable',
+ 407 : 'Proxy Authentication Required',
+ 408 : 'Request Time-out',
+ 409 : 'Conflict',
+ 410 : 'Gone',
+ 411 : 'Length Required',
+ 412 : 'Precondition Failed',
+ 413 : 'Request Entity Too Large',
+ 414 : 'Request-URI Too Large',
+ 415 : 'Unsupported Media Type',
+ 416 : 'Requested Range Not Satisfiable',
+ 417 : 'Expectation Failed',
+ 418 : 'I\'m a teapot', // RFC 2324
+ 422 : 'Unprocessable Entity', // RFC 4918
+ 423 : 'Locked', // RFC 4918
+ 424 : 'Failed Dependency', // RFC 4918
+ 425 : 'Unordered Collection', // RFC 4918
+ 426 : 'Upgrade Required', // RFC 2817
+ 500 : 'Internal Server Error',
+ 501 : 'Not Implemented',
+ 502 : 'Bad Gateway',
+ 503 : 'Service Unavailable',
+ 504 : 'Gateway Time-out',
+ 505 : 'HTTP Version not supported',
+ 506 : 'Variant Also Negotiates', // RFC 2295
+ 507 : 'Insufficient Storage', // RFC 4918
+ 509 : 'Bandwidth Limit Exceeded',
+ 510 : 'Not Extended' // RFC 2774
+};
+
+});
+
+require.define("/node_modules/http-browserify/lib/request.js", function (require, module, exports, __dirname, __filename) {
+ var EventEmitter = require('events').EventEmitter;
+var Response = require('./response');
+var isSafeHeader = require('./isSafeHeader');
+
+var Request = module.exports = function (xhr, params) {
+ var self = this;
+ self.xhr = xhr;
+ self.body = '';
+
+ var uri = params.host + ':' + params.port + (params.path || '/');
+
+ xhr.open(
+ params.method || 'GET',
+ (params.scheme || 'http') + '://' + uri,
+ true
+ );
+
+ if (params.headers) {
+ Object.keys(params.headers).forEach(function (key) {
+ if (!isSafeHeader(key)) return;
+ var value = params.headers[key];
+ if (Array.isArray(value)) {
+ value.forEach(function (v) {
+ xhr.setRequestHeader(key, v);
+ });
+ }
+ else xhr.setRequestHeader(key, value)
+ });
+ }
+
+ var res = new Response(xhr);
+ res.on('ready', function () {
+ self.emit('response', res);
+ });
+
+ xhr.onreadystatechange = function () {
+ res.handle(xhr);
+ };
+};
+
+Request.prototype = new EventEmitter;
+
+Request.prototype.setHeader = function (key, value) {
+ if ((Array.isArray && Array.isArray(value))
+ || value instanceof Array) {
+ for (var i = 0; i < value.length; i++) {
+ this.xhr.setRequestHeader(key, value[i]);
+ }
+ }
+ else {
+ this.xhr.setRequestHeader(key, value);
+ }
+};
+
+Request.prototype.write = function (s) {
+ this.body += s;
+};
+
+Request.prototype.end = function (s) {
+ if (s !== undefined) this.write(s);
+ this.xhr.send(this.body);
+};
+
+});
+
+require.define("/node_modules/http-browserify/lib/response.js", function (require, module, exports, __dirname, __filename) {
+ var EventEmitter = require('events').EventEmitter;
+var isSafeHeader = require('./isSafeHeader');
+
+var Response = module.exports = function (xhr) {
+ this.xhr = xhr;
+ this.offset = 0;
+};
+
+Response.prototype = new EventEmitter;
+
+var capable = {
+ streaming : true,
+ status2 : true
+};
+
+function parseHeaders (xhr) {
+ var lines = xhr.getAllResponseHeaders().split(/\r?\n/);
+ var headers = {};
+ for (var i = 0; i < lines.length; i++) {
+ var line = lines[i];
+ if (line === '') continue;
+
+ var m = line.match(/^([^:]+):\s*(.*)/);
+ if (m) {
+ var key = m[1].toLowerCase(), value = m[2];
+
+ if (headers[key] !== undefined) {
+ if ((Array.isArray && Array.isArray(headers[key]))
+ || headers[key] instanceof Array) {
+ headers[key].push(value);
+ }
+ else {
+ headers[key] = [ headers[key], value ];
+ }
+ }
+ else {
+ headers[key] = value;
+ }
+ }
+ else {
+ headers[line] = true;
+ }
+ }
+ return headers;
+}
+
+Response.prototype.getHeader = function (key) {
+ var header = this.headers ? this.headers[key.toLowerCase()] : null;
+ if (header) return header;
+
+ // Work around Mozilla bug #608735 [https://bugzil.la/608735], which causes
+ // getAllResponseHeaders() to return {} if the response is a CORS request.
+ // xhr.getHeader still works correctly.
+ if (isSafeHeader(key)) {
+ return this.xhr.getResponseHeader(key);
+ }
+ return null;
+};
+
+Response.prototype.handle = function () {
+ var xhr = this.xhr;
+ if (xhr.readyState === 2 && capable.status2) {
+ try {
+ this.statusCode = xhr.status;
+ this.headers = parseHeaders(xhr);
+ }
+ catch (err) {
+ capable.status2 = false;
+ }
+
+ if (capable.status2) {
+ this.emit('ready');
+ }
+ }
+ else if (capable.streaming && xhr.readyState === 3) {
+ try {
+ if (!this.statusCode) {
+ this.statusCode = xhr.status;
+ this.headers = parseHeaders(xhr);
+ this.emit('ready');
+ }
+ }
+ catch (err) {}
+
+ try {
+ this.write();
+ }
+ catch (err) {
+ capable.streaming = false;
+ }
+ }
+ else if (xhr.readyState === 4) {
+ if (!this.statusCode) {
+ this.statusCode = xhr.status;
+ this.emit('ready');
+ }
+ this.write();
+
+ if (xhr.error) {
+ this.emit('error', xhr.responseText);
+ }
+ else this.emit('end');
+ }
+};
+
+Response.prototype.write = function () {
+ var xhr = this.xhr;
+ if (xhr.responseText.length > this.offset) {
+ this.emit('data', xhr.responseText.slice(this.offset));
+ this.offset = xhr.responseText.length;
+ }
+};
+
+});
+
+require.define("/node_modules/http-browserify/lib/isSafeHeader.js", function (require, module, exports, __dirname, __filename) {
+ // Taken from http://dxr.mozilla.org/mozilla/mozilla-central/content/base/src/nsXMLHttpRequest.cpp.html
+var unsafeHeaders = [
+ "accept-charset",
+ "accept-encoding",
+ "access-control-request-headers",
+ "access-control-request-method",
+ "connection",
+ "content-length",
+ "cookie",
+ "cookie2",
+ "content-transfer-encoding",
+ "date",
+ "expect",
+ "host",
+ "keep-alive",
+ "origin",
+ "referer",
+ "set-cookie",
+ "te",
+ "trailer",
+ "transfer-encoding",
+ "upgrade",
+ "user-agent",
+ "via"
+];
+
+module.exports = function (headerName) {
+ if (!headerName) return false;
+ return (unsafeHeaders.indexOf(headerName.toLowerCase()) === -1)
+};
+
+});
+
+require.alias("http-browserify", "/node_modules/http");
+
require.alias("http-browserify", "/node_modules/https"); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred/content.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred/content.js
index 465b3ceb..e28bec7d 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred/content.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/shred/content.js
@@ -1,207 +1,207 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// The purpose of the `Content` object is to abstract away the data conversions
-// to and from raw content entities as strings. For example, you want to be able
-// to pass in a Javascript object and have it be automatically converted into a
-// JSON string if the `content-type` is set to a JSON-based media type.
-// Conversely, you want to be able to transparently get back a Javascript object
-// in the response if the `content-type` is a JSON-based media-type.
-
-// One limitation of the current implementation is that it [assumes the `charset` is UTF-8](https://github.com/spire-io/shred/issues/5).
-
-// The `Content` constructor takes an options object, which *must* have either a
-// `body` or `data` property and *may* have a `type` property indicating the
-// media type. If there is no `type` attribute, a default will be inferred.
-var Content = function(options) {
- this.body = options.body;
- this.data = options.data;
- this.type = options.type;
-};
-
-Content.prototype = {
- // Treat `toString()` as asking for the `content.body`. That is, the raw content entity.
- //
- // toString: function() { return this.body; }
- //
- // Commented out, but I've forgotten why. :/
-};
-
-
-// `Content` objects have the following attributes:
-Object.defineProperties(Content.prototype,{
-
-// - **type**. Typically accessed as `content.type`, reflects the `content-type`
-// header associated with the request or response. If not passed as an options
-// to the constructor or set explicitly, it will infer the type the `data`
-// attribute, if possible, and, failing that, will default to `text/plain`.
- type: {
- get: function() {
- if (this._type) {
- return this._type;
- } else {
- if (this._data) {
- switch(typeof this._data) {
- case "string": return "text/plain";
- case "object": return "application/json";
- }
- }
- }
- return "text/plain";
- },
- set: function(value) {
- this._type = value;
- return this;
- },
- enumerable: true
- },
-
-// - **data**. Typically accessed as `content.data`, reflects the content entity
-// converted into Javascript data. This can be a string, if the `type` is, say,
-// `text/plain`, but can also be a Javascript object. The conversion applied is
-// based on the `processor` attribute. The `data` attribute can also be set
-// directly, in which case the conversion will be done the other way, to infer
-// the `body` attribute.
- data: {
- get: function() {
- if (this._body) {
- return this.processor.parser(this._body);
- } else {
- return this._data;
- }
- },
- set: function(data) {
- if (this._body&&data) Errors.setDataWithBody(this);
- this._data = data;
- return this;
- },
- enumerable: true
- },
-
-// - **body**. Typically accessed as `content.body`, reflects the content entity
-// as a UTF-8 string. It is the mirror of the `data` attribute. If you set the
-// `data` attribute, the `body` attribute will be inferred and vice-versa. If
-// you attempt to set both, an exception is raised.
- body: {
- get: function() {
- if (this._data) {
- return this.processor.stringify(this._data);
- } else {
- return this._body.toString();
- }
- },
- set: function(body) {
- if (this._data&&body) Errors.setBodyWithData(this);
- this._body = body;
- return this;
- },
- enumerable: true
- },
-
-// - **processor**. The functions that will be used to convert to/from `data` and
-// `body` attributes. You can add processors. The two that are built-in are for
-// `text/plain`, which is basically an identity transformation and
-// `application/json` and other JSON-based media types (including custom media
-// types with `+json`). You can add your own processors. See below.
- processor: {
- get: function() {
- var processor = Content.processors[this.type];
- if (processor) {
- return processor;
- } else {
- // Return the first processor that matches any part of the
- // content type. ex: application/vnd.foobar.baz+json will match json.
- var main = this.type.split(";")[0];
- var parts = main.split(/\+|\//);
- for (var i=0, l=parts.length; i < l; i++) {
- processor = Content.processors[parts[i]]
- }
- return processor || {parser:identity,stringify:toString};
- }
- },
- enumerable: true
- },
-
-// - **length**. Typically accessed as `content.length`, returns the length in
-// bytes of the raw content entity.
- length: {
- get: function() {
- if (typeof Buffer !== 'undefined') {
- return Buffer.byteLength(this.body);
- }
- return this.body.length;
- }
- }
-});
-
-Content.processors = {};
-
-// The `registerProcessor` function allows you to add your own processors to
-// convert content entities. Each processor consists of a Javascript object with
-// two properties:
-// - **parser**. The function used to parse a raw content entity and convert it
-// into a Javascript data type.
-// - **stringify**. The function used to convert a Javascript data type into a
-// raw content entity.
-Content.registerProcessor = function(types,processor) {
-
-// You can pass an array of types that will trigger this processor, or just one.
-// We determine the array via duck-typing here.
- if (types.forEach) {
- types.forEach(function(type) {
- Content.processors[type] = processor;
- });
- } else {
- // If you didn't pass an array, we just use what you pass in.
- Content.processors[types] = processor;
- }
-};
-
-// Register the identity processor, which is used for text-based media types.
-var identity = function(x) { return x; }
- , toString = function(x) { return x.toString(); }
-Content.registerProcessor(
- ["text/html","text/plain","text"],
- { parser: identity, stringify: toString });
-
-// Register the JSON processor, which is used for JSON-based media types.
-Content.registerProcessor(
- ["application/json; charset=utf-8","application/json","json"],
- {
- parser: function(string) {
- return JSON.parse(string);
- },
- stringify: function(data) {
- return JSON.stringify(data); }});
-
-var qs = require('querystring');
-// Register the post processor, which is used for JSON-based media types.
-Content.registerProcessor(
- ["application/x-www-form-urlencoded"],
- { parser : qs.parse, stringify : qs.stringify });
-
-// Error functions are defined separately here in an attempt to make the code
-// easier to read.
-var Errors = {
- setDataWithBody: function(object) {
- throw new Error("Attempt to set data attribute of a content object " +
- "when the body attributes was already set.");
- },
- setBodyWithData: function(object) {
- throw new Error("Attempt to set body attribute of a content object " +
- "when the data attributes was already set.");
- }
-}
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// The purpose of the `Content` object is to abstract away the data conversions
+// to and from raw content entities as strings. For example, you want to be able
+// to pass in a Javascript object and have it be automatically converted into a
+// JSON string if the `content-type` is set to a JSON-based media type.
+// Conversely, you want to be able to transparently get back a Javascript object
+// in the response if the `content-type` is a JSON-based media-type.
+
+// One limitation of the current implementation is that it [assumes the `charset` is UTF-8](https://github.com/spire-io/shred/issues/5).
+
+// The `Content` constructor takes an options object, which *must* have either a
+// `body` or `data` property and *may* have a `type` property indicating the
+// media type. If there is no `type` attribute, a default will be inferred.
+var Content = function(options) {
+ this.body = options.body;
+ this.data = options.data;
+ this.type = options.type;
+};
+
+Content.prototype = {
+ // Treat `toString()` as asking for the `content.body`. That is, the raw content entity.
+ //
+ // toString: function() { return this.body; }
+ //
+ // Commented out, but I've forgotten why. :/
+};
+
+
+// `Content` objects have the following attributes:
+Object.defineProperties(Content.prototype,{
+
+// - **type**. Typically accessed as `content.type`, reflects the `content-type`
+// header associated with the request or response. If not passed as an options
+// to the constructor or set explicitly, it will infer the type the `data`
+// attribute, if possible, and, failing that, will default to `text/plain`.
+ type: {
+ get: function() {
+ if (this._type) {
+ return this._type;
+ } else {
+ if (this._data) {
+ switch(typeof this._data) {
+ case "string": return "text/plain";
+ case "object": return "application/json";
+ }
+ }
+ }
+ return "text/plain";
+ },
+ set: function(value) {
+ this._type = value;
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **data**. Typically accessed as `content.data`, reflects the content entity
+// converted into Javascript data. This can be a string, if the `type` is, say,
+// `text/plain`, but can also be a Javascript object. The conversion applied is
+// based on the `processor` attribute. The `data` attribute can also be set
+// directly, in which case the conversion will be done the other way, to infer
+// the `body` attribute.
+ data: {
+ get: function() {
+ if (this._body) {
+ return this.processor.parser(this._body);
+ } else {
+ return this._data;
+ }
+ },
+ set: function(data) {
+ if (this._body&&data) Errors.setDataWithBody(this);
+ this._data = data;
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **body**. Typically accessed as `content.body`, reflects the content entity
+// as a UTF-8 string. It is the mirror of the `data` attribute. If you set the
+// `data` attribute, the `body` attribute will be inferred and vice-versa. If
+// you attempt to set both, an exception is raised.
+ body: {
+ get: function() {
+ if (this._data) {
+ return this.processor.stringify(this._data);
+ } else {
+ return this._body.toString();
+ }
+ },
+ set: function(body) {
+ if (this._data&&body) Errors.setBodyWithData(this);
+ this._body = body;
+ return this;
+ },
+ enumerable: true
+ },
+
+// - **processor**. The functions that will be used to convert to/from `data` and
+// `body` attributes. You can add processors. The two that are built-in are for
+// `text/plain`, which is basically an identity transformation and
+// `application/json` and other JSON-based media types (including custom media
+// types with `+json`). You can add your own processors. See below.
+ processor: {
+ get: function() {
+ var processor = Content.processors[this.type];
+ if (processor) {
+ return processor;
+ } else {
+ // Return the first processor that matches any part of the
+ // content type. ex: application/vnd.foobar.baz+json will match json.
+ var main = this.type.split(";")[0];
+ var parts = main.split(/\+|\//);
+ for (var i=0, l=parts.length; i < l; i++) {
+ processor = Content.processors[parts[i]]
+ }
+ return processor || {parser:identity,stringify:toString};
+ }
+ },
+ enumerable: true
+ },
+
+// - **length**. Typically accessed as `content.length`, returns the length in
+// bytes of the raw content entity.
+ length: {
+ get: function() {
+ if (typeof Buffer !== 'undefined') {
+ return Buffer.byteLength(this.body);
+ }
+ return this.body.length;
+ }
+ }
+});
+
+Content.processors = {};
+
+// The `registerProcessor` function allows you to add your own processors to
+// convert content entities. Each processor consists of a Javascript object with
+// two properties:
+// - **parser**. The function used to parse a raw content entity and convert it
+// into a Javascript data type.
+// - **stringify**. The function used to convert a Javascript data type into a
+// raw content entity.
+Content.registerProcessor = function(types,processor) {
+
+// You can pass an array of types that will trigger this processor, or just one.
+// We determine the array via duck-typing here.
+ if (types.forEach) {
+ types.forEach(function(type) {
+ Content.processors[type] = processor;
+ });
+ } else {
+ // If you didn't pass an array, we just use what you pass in.
+ Content.processors[types] = processor;
+ }
+};
+
+// Register the identity processor, which is used for text-based media types.
+var identity = function(x) { return x; }
+ , toString = function(x) { return x.toString(); }
+Content.registerProcessor(
+ ["text/html","text/plain","text"],
+ { parser: identity, stringify: toString });
+
+// Register the JSON processor, which is used for JSON-based media types.
+Content.registerProcessor(
+ ["application/json; charset=utf-8","application/json","json"],
+ {
+ parser: function(string) {
+ return JSON.parse(string);
+ },
+ stringify: function(data) {
+ return JSON.stringify(data); }});
+
+var qs = require('querystring');
+// Register the post processor, which is used for JSON-based media types.
+Content.registerProcessor(
+ ["application/x-www-form-urlencoded"],
+ { parser : qs.parse, stringify : qs.stringify });
+
+// Error functions are defined separately here in an attempt to make the code
+// easier to read.
+var Errors = {
+ setDataWithBody: function(object) {
+ throw new Error("Attempt to set data attribute of a content object " +
+ "when the body attributes was already set.");
+ },
+ setBodyWithData: function(object) {
+ throw new Error("Attempt to set body attribute of a content object " +
+ "when the data attributes was already set.");
+ }
+}
module.exports = Content; \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-client.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-client.js
index 510464ce..1c76448b 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-client.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-client.js
@@ -1,3309 +1,3309 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * swagger-client - swagger.js is a javascript client for use with swaggering APIs.
- * @version v2.1.9-M1
- * @link http://swagger.io
- * @license apache 2.0
- */
-(function(){
-var ArrayModel = function(definition) {
- this.name = "arrayModel";
- this.definition = definition || {};
- this.properties = [];
-
- var requiredFields = definition.enum || [];
- var innerType = definition.items;
- if(innerType) {
- if(innerType.type) {
- this.type = typeFromJsonSchema(innerType.type, innerType.format);
- }
- else {
- this.ref = innerType.$ref;
- }
- }
- return this;
-};
-
-ArrayModel.prototype.createJSONSample = function(modelsToIgnore) {
- var result;
- modelsToIgnore = (modelsToIgnore||{});
- if(this.type) {
- result = this.type;
- }
- else if (this.ref) {
- var name = simpleRef(this.ref);
- if(typeof modelsToIgnore[name] === 'undefined') {
- modelsToIgnore[name] = this;
- result = models[name].createJSONSample(modelsToIgnore);
- }
- else {
- return name;
- }
- }
- return [ result ];
-};
-
-ArrayModel.prototype.getSampleValue = function(modelsToIgnore) {
- var result;
- modelsToIgnore = (modelsToIgnore || {});
- if(this.type) {
- result = type;
- }
- else if (this.ref) {
- var name = simpleRef(this.ref);
- result = models[name].getSampleValue(modelsToIgnore);
- }
- return [ result ];
-};
-
-ArrayModel.prototype.getMockSignature = function(modelsToIgnore) {
- var propertiesStr = [];
- var i, prop;
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- propertiesStr.push(prop.toString());
- }
-
- var strong = '<span class="strong">';
- var stronger = '<span class="stronger">';
- var strongClose = '</span>';
- var classOpen = strong + 'array' + ' {' + strongClose;
- var classClose = strong + '}' + strongClose;
- var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
-
- if (!modelsToIgnore)
- modelsToIgnore = {};
- modelsToIgnore[this.name] = this;
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- var ref = prop.$ref;
- var model = models[ref];
- if (model && typeof modelsToIgnore[ref] === 'undefined') {
- returnVal = returnVal + ('<br>' + model.getMockSignature(modelsToIgnore));
- }
- }
- return returnVal;
-};
-
-
-/**
- * SwaggerAuthorizations applys the correct authorization to an operation being executed
- */
-var SwaggerAuthorizations = function() {
- this.authz = {};
-};
-
-SwaggerAuthorizations.prototype.add = function(name, auth) {
- this.authz[name] = auth;
- return auth;
-};
-
-SwaggerAuthorizations.prototype.remove = function(name) {
- return delete this.authz[name];
-};
-
-SwaggerAuthorizations.prototype.apply = function (obj, authorizations) {
- var status = null;
- var key, name, value, result;
-
- // if the "authorizations" key is undefined, or has an empty array, add all keys
- if (typeof authorizations === 'undefined' || Object.keys(authorizations).length === 0) {
- for (key in this.authz) {
- value = this.authz[key];
- result = value.apply(obj, authorizations);
- if (result === true)
- status = true;
- }
- }
- else {
- // 2.0 support
- if (Array.isArray(authorizations)) {
-
- for (var i = 0; i < authorizations.length; i++) {
- var auth = authorizations[i];
- for (name in auth) {
- for (key in this.authz) {
- if (key == name) {
- value = this.authz[key];
- result = value.apply(obj, authorizations);
- if (result === true)
- status = true;
- }
- }
- }
- }
- }
- else {
- // 1.2 support
- for (name in authorizations) {
- for (key in this.authz) {
- if (key == name) {
- value = this.authz[key];
- result = value.apply(obj, authorizations);
- if (result === true)
- status = true;
- }
- }
- }
- }
- }
-
- return status;
-};
-
-/**
- * ApiKeyAuthorization allows a query param or header to be injected
- */
-var ApiKeyAuthorization = function(name, value, type) {
- this.name = name;
- this.value = value;
- this.type = type;
-};
-
-ApiKeyAuthorization.prototype.apply = function(obj, authorizations) {
- if (this.type === "query") {
- if (obj.url.indexOf('?') > 0)
- obj.url = obj.url + "&" + this.name + "=" + this.value;
- else
- obj.url = obj.url + "?" + this.name + "=" + this.value;
- return true;
- } else if (this.type === "header") {
- obj.headers[this.name] = this.value;
- return true;
- }
-};
-
-var CookieAuthorization = function(cookie) {
- this.cookie = cookie;
-};
-
-CookieAuthorization.prototype.apply = function(obj, authorizations) {
- obj.cookieJar = obj.cookieJar || CookieJar();
- obj.cookieJar.setCookie(this.cookie);
- return true;
-};
-
-/**
- * Password Authorization is a basic auth implementation
- */
-var PasswordAuthorization = function(name, username, password) {
- this.name = name;
- this.username = username;
- this.password = password;
- this._btoa = null;
- if (typeof window !== 'undefined')
- this._btoa = btoa;
- else
- this._btoa = require("btoa");
-};
-
-PasswordAuthorization.prototype.apply = function(obj, authorizations) {
- var base64encoder = this._btoa;
- obj.headers.Authorization = "Basic " + base64encoder(this.username + ":" + this.password);
- return true;
-};
-var __bind = function(fn, me){
- return function(){
- return fn.apply(me, arguments);
- };
-};
-
-fail = function(message) {
- log(message);
-};
-
-log = function(){
- log.history = log.history || [];
- log.history.push(arguments);
- if(this.console){
- console.log( Array.prototype.slice.call(arguments)[0] );
- }
-};
-
-if (!Array.prototype.indexOf) {
- Array.prototype.indexOf = function(obj, start) {
- for (var i = (start || 0), j = this.length; i < j; i++) {
- if (this[i] === obj) { return i; }
- }
- return -1;
- };
-}
-
-/**
- * allows override of the default value based on the parameter being
- * supplied
- **/
-var applyParameterMacro = function (operation, parameter) {
- var e = (typeof window !== 'undefined' ? window : exports);
- if(e.parameterMacro)
- return e.parameterMacro(operation, parameter);
- else
- return parameter.defaultValue;
-};
-
-/**
- * allows overriding the default value of an model property
- **/
-var applyModelPropertyMacro = function (model, property) {
- var e = (typeof window !== 'undefined' ? window : exports);
- if(e.modelPropertyMacro)
- return e.modelPropertyMacro(model, property);
- else
- return property.defaultValue;
-};
-
-/**
- * PrimitiveModel
- **/
-var PrimitiveModel = function(definition) {
- this.name = "name";
- this.definition = definition || {};
- this.properties = [];
-
- var requiredFields = definition.enum || [];
- this.type = typeFromJsonSchema(definition.type, definition.format);
-};
-
-PrimitiveModel.prototype.createJSONSample = function(modelsToIgnore) {
- var result = this.type;
- return result;
-};
-
-PrimitiveModel.prototype.getSampleValue = function() {
- var result = this.type;
- return null;
-};
-
-PrimitiveModel.prototype.getMockSignature = function(modelsToIgnore) {
- var propertiesStr = [];
- var i, prop;
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- propertiesStr.push(prop.toString());
- }
-
- var strong = '<span class="strong">';
- var stronger = '<span class="stronger">';
- var strongClose = '</span>';
- var classOpen = strong + this.name + ' {' + strongClose;
- var classClose = strong + '}' + strongClose;
- var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
-
- if (!modelsToIgnore)
- modelsToIgnore = {};
- modelsToIgnore[this.name] = this;
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- var ref = prop.$ref;
- var model = models[ref];
- if (model && typeof modelsToIgnore[ref] === 'undefined') {
- returnVal = returnVal + ('<br>' + model.getMockSignature(modelsToIgnore));
- }
- }
- return returnVal;
-};
-/**
- * Resolves a spec's remote references
- */
-var Resolver = function (){};
-
-Resolver.prototype.resolve = function(spec, callback, scope) {
- this.scope = (scope || this);
- var host, name, path, property, propertyName, type;
- var processedCalls = 0, resolvedRefs = {}, unresolvedRefs = {};
-
- // store objects for dereferencing
- var resolutionTable = {};
-
- // models
- for(name in spec.definitions) {
- var model = spec.definitions[name];
- for(propertyName in model.properties) {
- property = model.properties[propertyName];
- this.resolveTo(property, resolutionTable);
- }
- }
- // operations
- for(name in spec.paths) {
- var method, operation, responseCode;
- path = spec.paths[name];
- for(method in path) {
- operation = path[method];
- var i, parameters = operation.parameters;
- for(i in parameters) {
- var parameter = parameters[i];
- if(parameter.in === 'body' && parameter.schema) {
- this.resolveTo(parameter.schema, resolutionTable);
- }
- if(parameter.$ref) {
- this.resolveInline(spec, parameter, resolutionTable, unresolvedRefs);
- }
- }
- for(responseCode in operation.responses) {
- var response = operation.responses[responseCode];
- if(response.schema) {
- this.resolveTo(response.schema, resolutionTable);
- }
- }
- }
- }
- // get hosts
- var opts = {}, expectedCalls = 0;
- for(name in resolutionTable) {
- var parts = name.split('#');
- if(parts.length == 2) {
- host = parts[0]; path = parts[1];
- if(!Array.isArray(opts[host])) {
- opts[host] = [];
- expectedCalls += 1;
- }
- opts[host].push(path);
- }
- }
-
- for(name in opts) {
- var self = this, opt = opts[name];
- host = name;
-
- var obj = {
- useJQuery: false, // TODO
- url: host,
- method: "get",
- headers: {
- accept: this.scope.swaggerRequestHeaders || 'application/json'
- },
- on: {
- error: function(response) {
- processedCalls += 1;
- var i;
- for(i = 0; i < opt.length; i++) {
- // fail all of these
- var resolved = host + '#' + opt[i];
- unresolvedRefs[resolved] = null;
- }
- if(processedCalls === expectedCalls)
- self.finish(spec, resolutionTable, resolvedRefs, unresolvedRefs, callback);
- },
- response: function(response) {
- var i, j, swagger = response.obj;
- processedCalls += 1;
- for(i = 0; i < opt.length; i++) {
- var location = swagger, path = opt[i], parts = path.split('/');
- for(j = 0; j < parts.length; j++) {
- var segment = parts[j];
- if(typeof location === 'undefined')
- break;
- if(segment.length > 0)
- location = location[segment];
- }
- var resolved = host + '#' + path, resolvedName = parts[j-1];
- if(typeof location !== 'undefined') {
- resolvedRefs[resolved] = {
- name: resolvedName,
- obj: location
- };
- }
- else unresolvedRefs[resolved] = null;
- }
- if(processedCalls === expectedCalls)
- self.finish(spec, resolutionTable, resolvedRefs, unresolvedRefs, callback);
- }
- }
- };
- authorizations.apply(obj);
- new SwaggerHttp().execute(obj);
- }
- if(Object.keys(opts).length === 0)
- callback.call(this.scope, spec, unresolvedRefs);
-};
-
-Resolver.prototype.finish = function(spec, resolutionTable, resolvedRefs, unresolvedRefs, callback) {
- // walk resolution table and replace with resolved refs
- var ref;
- for(ref in resolutionTable) {
- var i, locations = resolutionTable[ref];
- for(i = 0; i < locations.length; i++) {
- var resolvedTo = resolvedRefs[locations[i].obj.$ref];
- if(resolvedTo) {
- if(!spec.definitions)
- spec.definitions = {};
- if(locations[i].resolveAs === '$ref') {
- spec.definitions[resolvedTo.name] = resolvedTo.obj;
- locations[i].obj.$ref = '#/definitions/' + resolvedTo.name;
- }
- else if (locations[i].resolveAs === 'inline') {
- var key;
- var targetObj = locations[i].obj;
- delete targetObj.$ref;
- for(key in resolvedTo.obj) {
- targetObj[key] = resolvedTo.obj[key];
- }
- }
- }
- }
- }
- callback.call(this.scope, spec, unresolvedRefs);
-};
-
-/**
- * immediately in-lines local refs, queues remote refs
- * for inline resolution
- */
-Resolver.prototype.resolveInline = function (spec, property, objs, unresolvedRefs) {
- var ref = property.$ref;
- if(ref) {
- if(ref.indexOf('http') === 0) {
- if(Array.isArray(objs[ref])) {
- objs[ref].push({obj: property, resolveAs: 'inline'});
- }
- else {
- objs[ref] = [{obj: property, resolveAs: 'inline'}];
- }
- }
- else if (ref.indexOf('#') === 0) {
- // local resolve
- var shortenedRef = ref.substring(1);
- var i, parts = shortenedRef.split('/'), location = spec;
- for(i = 0; i < parts.length; i++) {
- var part = parts[i];
- if(part.length > 0) {
- location = location[part];
- }
- }
- if(location) {
- delete property.$ref;
- var key;
- for(key in location) {
- property[key] = location[key];
- }
- }
- else unresolvedRefs[ref] = null;
- }
- }
- else if(property.type === 'array') {
- this.resolveTo(property.items, objs);
- }
-};
-
-Resolver.prototype.resolveTo = function (property, objs) {
- var ref = property.$ref;
- if(ref) {
- if(ref.indexOf('http') === 0) {
- if(Array.isArray(objs[ref])) {
- objs[ref].push({obj: property, resolveAs: '$ref'});
- }
- else {
- objs[ref] = [{obj: property, resolveAs: '$ref'}];
- }
- }
- }
- else if(property.type === 'array') {
- var items = property.items;
- this.resolveTo(items, objs);
- }
-};
-var addModel = function(name, model) {
- models[name] = model;
-};
-
-var SwaggerClient = function(url, options) {
- this.isBuilt = false;
- this.url = null;
- this.debug = false;
- this.basePath = null;
- this.modelsArray = [];
- this.authorizations = null;
- this.authorizationScheme = null;
- this.isValid = false;
- this.info = null;
- this.useJQuery = false;
- this.resourceCount = 0;
-
- if(typeof url !== 'undefined')
- return this.initialize(url, options);
-};
-
-SwaggerClient.prototype.initialize = function (url, options) {
- this.models = models = {};
-
- options = (options||{});
-
- if(typeof url === 'string')
- this.url = url;
- else if(typeof url === 'object') {
- options = url;
- this.url = options.url;
- }
- this.swaggerRequstHeaders = options.swaggerRequstHeaders || 'application/json;charset=utf-8,*/*';
- this.defaultSuccessCallback = options.defaultSuccessCallback || null;
- this.defaultErrorCallback = options.defaultErrorCallback || null;
-
- if (typeof options.success === 'function')
- this.success = options.success;
-
- if (options.useJQuery)
- this.useJQuery = options.useJQuery;
-
- if (options.authorizations) {
- this.clientAuthorizations = options.authorizations;
- } else {
- this.clientAuthorizations = authorizations;
- }
-
- this.supportedSubmitMethods = options.supportedSubmitMethods || [];
- this.failure = options.failure || function() {};
- this.progress = options.progress || function() {};
- this.spec = options.spec;
- this.options = options;
-
- if (typeof options.success === 'function') {
- this.ready = true;
- this.build();
- }
-};
-
-SwaggerClient.prototype.build = function(mock) {
- if (this.isBuilt) return this;
- var self = this;
- this.progress('fetching resource list: ' + this.url);
- var obj = {
- useJQuery: this.useJQuery,
- url: this.url,
- method: "get",
- headers: {
- accept: this.swaggerRequstHeaders
- },
- on: {
- error: function(response) {
- if (self.url.substring(0, 4) !== 'http')
- return self.fail('Please specify the protocol for ' + self.url);
- else if (response.status === 0)
- return self.fail('Can\'t read from server. It may not have the appropriate access-control-origin settings.');
- else if (response.status === 404)
- return self.fail('Can\'t read swagger JSON from ' + self.url);
- else
- return self.fail(response.status + ' : ' + response.statusText + ' ' + self.url);
- },
- response: function(resp) {
- var responseObj = resp.obj || JSON.parse(resp.data);
- self.swaggerVersion = responseObj.swaggerVersion;
-
- if(responseObj.swagger && parseInt(responseObj.swagger) === 2) {
- self.swaggerVersion = responseObj.swagger;
- new Resolver().resolve(responseObj, self.buildFromSpec, self);
- self.isValid = true;
- }
- else {
- if (self.swaggerVersion === '1.2') {
- return self.buildFrom1_2Spec(responseObj);
- } else {
- return self.buildFrom1_1Spec(responseObj);
- }
- }
- }
- }
- };
- if(this.spec) {
- setTimeout(function() {
- new Resolver().resolve(self.spec, self.buildFromSpec, self);
- }, 10);
- }
- else {
- authorizations.apply(obj);
- if(mock)
- return obj;
- new SwaggerHttp().execute(obj);
- }
- return this;
-};
-
-SwaggerClient.prototype.buildFromSpec = function(response) {
- if(this.isBuilt) return this;
-
- this.info = response.info || {};
- this.title = response.title || '';
- this.host = response.host || '';
- this.schemes = response.schemes || [];
- this.basePath = response.basePath || '';
- this.apis = {};
- this.apisArray = [];
- this.consumes = response.consumes;
- this.produces = response.produces;
- this.securityDefinitions = response.securityDefinitions;
-
- // legacy support
- this.authSchemes = response.securityDefinitions;
-
- var definedTags = {};
- if(Array.isArray(response.tags)) {
- definedTags = {};
- for(k = 0; k < response.tags.length; k++) {
- var t = response.tags[k];
- definedTags[t.name] = t;
- }
- }
-
- var location;
- if(typeof this.url === 'string') {
- location = this.parseUri(this.url);
- }
-
- if(typeof this.schemes === 'undefined' || this.schemes.length === 0) {
- this.scheme = location.scheme || 'http';
- }
- else {
- this.scheme = this.schemes[0];
- }
-
- if(typeof this.host === 'undefined' || this.host === '') {
- this.host = location.host;
- if (location.port) {
- this.host = this.host + ':' + location.port;
- }
- }
-
- this.definitions = response.definitions;
- var key;
- for(key in this.definitions) {
- var model = new Model(key, this.definitions[key]);
- if(model) {
- models[key] = model;
- }
- }
-
- // get paths, create functions for each operationId
- var path;
- var operations = [];
- for(path in response.paths) {
- if(typeof response.paths[path] === 'object') {
- var httpMethod;
- for(httpMethod in response.paths[path]) {
- if(['delete', 'get', 'head', 'options', 'patch', 'post', 'put'].indexOf(httpMethod) === -1) {
- continue;
- }
- var operation = response.paths[path][httpMethod];
- var tags = operation.tags;
- if(typeof tags === 'undefined') {
- operation.tags = [ 'default' ];
- tags = operation.tags;
- }
- var operationId = this.idFromOp(path, httpMethod, operation);
- var operationObject = new Operation (
- this,
- operation.scheme,
- operationId,
- httpMethod,
- path,
- operation,
- this.definitions
- );
- // bind this operation's execute command to the api
- if(tags.length > 0) {
- var i;
- for(i = 0; i < tags.length; i++) {
- var tag = this.tagFromLabel(tags[i]);
- var operationGroup = this[tag];
- if(typeof this.apis[tag] === 'undefined')
- this.apis[tag] = {};
- if(typeof operationGroup === 'undefined') {
- this[tag] = [];
- operationGroup = this[tag];
- operationGroup.operations = {};
- operationGroup.label = tag;
- operationGroup.apis = [];
- var tagObject = definedTags[tag];
- if(typeof tagObject === 'object') {
- operationGroup.description = tagObject.description;
- operationGroup.externalDocs = tagObject.externalDocs;
- }
- this[tag].help = this.help.bind(operationGroup);
- this.apisArray.push(new OperationGroup(tag, operationGroup.description, operationGroup.externalDocs, operationObject));
- }
- if(typeof this.apis[tag].help !== 'function')
- this.apis[tag].help = this.help.bind(operationGroup);
- // bind to the apis object
- this.apis[tag][operationId] = operationObject.execute.bind(operationObject);
- this.apis[tag][operationId].help = operationObject.help.bind(operationObject);
- this.apis[tag][operationId].asCurl = operationObject.asCurl.bind(operationObject);
- operationGroup[operationId] = operationObject.execute.bind(operationObject);
- operationGroup[operationId].help = operationObject.help.bind(operationObject);
- operationGroup[operationId].asCurl = operationObject.asCurl.bind(operationObject);
-
- operationGroup.apis.push(operationObject);
- operationGroup.operations[operationId] = operationObject;
-
- // legacy UI feature
- var j;
- var api;
- for(j = 0; j < this.apisArray.length; j++) {
- if(this.apisArray[j].tag === tag) {
- api = this.apisArray[j];
- }
- }
- if(api) {
- api.operationsArray.push(operationObject);
- }
- }
- }
- else {
- log('no group to bind to');
- }
- }
- }
- }
- this.isBuilt = true;
- if (this.success) {
- this.isValid = true;
- this.isBuilt = true;
- this.success();
- }
- return this;
-};
-
-SwaggerClient.prototype.parseUri = function(uri) {
- var urlParseRE = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;
- var parts = urlParseRE.exec(uri);
- return {
- scheme: parts[4].replace(':',''),
- host: parts[11],
- port: parts[12],
- path: parts[15]
- };
-};
-
-SwaggerClient.prototype.help = function(dontPrint) {
- var i;
- var output = 'operations for the "' + this.label + '" tag';
- for(i = 0; i < this.apis.length; i++) {
- var api = this.apis[i];
- output += '\n * ' + api.nickname + ': ' + api.operation.summary;
- }
- if(dontPrint)
- return output;
- else {
- log(output);
- return output;
- }
-};
-
-SwaggerClient.prototype.tagFromLabel = function(label) {
- return label;
-};
-
-SwaggerClient.prototype.idFromOp = function(path, httpMethod, op) {
- var opId = op.operationId || (path.substring(1) + '_' + httpMethod);
- return opId.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()\+\s]/g,'_');
-};
-
-SwaggerClient.prototype.fail = function(message) {
- this.failure(message);
- throw message;
-};
-
-var OperationGroup = function(tag, description, externalDocs, operation) {
- this.tag = tag;
- this.path = tag;
- this.description = description;
- this.externalDocs = externalDocs;
- this.name = tag;
- this.operation = operation;
- this.operationsArray = [];
-};
-
-var Operation = function(parent, scheme, operationId, httpMethod, path, args, definitions) {
- var errors = [];
- parent = parent||{};
- args = args||{};
-
- this.operations = {};
- this.operation = args;
- this.deprecated = args.deprecated;
- this.consumes = args.consumes;
- this.produces = args.produces;
- this.parent = parent;
- this.host = parent.host || 'localhost';
- this.schemes = parent.schemes;
- this.scheme = scheme || parent.scheme || 'http';
- this.basePath = parent.basePath || '/';
- this.nickname = (operationId||errors.push('Operations must have a nickname.'));
- this.method = (httpMethod||errors.push('Operation ' + operationId + ' is missing method.'));
- this.path = (path||errors.push('Operation ' + this.nickname + ' is missing path.'));
- this.parameters = args !== null ? (args.parameters||[]) : {};
- this.summary = args.summary || '';
- this.responses = (args.responses||{});
- this.type = null;
- this.security = args.security;
- this.authorizations = args.security;
- this.description = args.description;
- this.useJQuery = parent.useJQuery;
-
- if(typeof this.deprecated === 'string') {
- switch(this.deprecated.toLowerCase()) {
- case 'true': case 'yes': case '1': {
- this.deprecated = true;
- break;
- }
- case 'false': case 'no': case '0': case null: {
- this.deprecated = false;
- break;
- }
- default: this.deprecated = Boolean(this.deprecated);
- }
- }
-
- var i, model;
-
- if(definitions) {
- // add to global models
- var key;
- for(key in this.definitions) {
- model = new Model(key, definitions[key]);
- if(model) {
- models[key] = model;
- }
- }
- }
- for(i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- if(param.type === 'array') {
- param.isList = true;
- param.allowMultiple = true;
- }
- var innerType = this.getType(param);
- if(innerType && innerType.toString().toLowerCase() === 'boolean') {
- param.allowableValues = {};
- param.isList = true;
- param['enum'] = ["true", "false"];
- }
- if(typeof param['enum'] !== 'undefined') {
- var id;
- param.allowableValues = {};
- param.allowableValues.values = [];
- param.allowableValues.descriptiveValues = [];
- for(id = 0; id < param['enum'].length; id++) {
- var value = param['enum'][id];
- var isDefault = (value === param.default) ? true : false;
- param.allowableValues.values.push(value);
- param.allowableValues.descriptiveValues.push({value : value, isDefault: isDefault});
- }
- }
- if(param.type === 'array') {
- innerType = [innerType];
- if(typeof param.allowableValues === 'undefined') {
- // can't show as a list if no values to select from
- delete param.isList;
- delete param.allowMultiple;
- }
- }
- param.signature = this.getModelSignature(innerType, models).toString();
- param.sampleJSON = this.getModelSampleJSON(innerType, models);
- param.responseClassSignature = param.signature;
- }
-
- var defaultResponseCode, response, responses = this.responses;
-
- if(responses['200']) {
- response = responses['200'];
- defaultResponseCode = '200';
- }
- else if(responses['201']) {
- response = responses['201'];
- defaultResponseCode = '201';
- }
- else if(responses['202']) {
- response = responses['202'];
- defaultResponseCode = '202';
- }
- else if(responses['203']) {
- response = responses['203'];
- defaultResponseCode = '203';
- }
- else if(responses['204']) {
- response = responses['204'];
- defaultResponseCode = '204';
- }
- else if(responses['205']) {
- response = responses['205'];
- defaultResponseCode = '205';
- }
- else if(responses['206']) {
- response = responses['206'];
- defaultResponseCode = '206';
- }
- else if(responses['default']) {
- response = responses['default'];
- defaultResponseCode = 'default';
- }
-
- if(response && response.schema) {
- var resolvedModel = this.resolveModel(response.schema, definitions);
- delete responses[defaultResponseCode];
- if(resolvedModel) {
- this.successResponse = {};
- this.successResponse[defaultResponseCode] = resolvedModel;
- }
- else {
- this.successResponse = {};
- this.successResponse[defaultResponseCode] = response.schema.type;
- }
- this.type = response;
- }
-
- if (errors.length > 0) {
- if(this.resource && this.resource.api && this.resource.api.fail)
- this.resource.api.fail(errors);
- }
-
- return this;
-};
-
-OperationGroup.prototype.sort = function(sorter) {
-
-};
-
-Operation.prototype.getType = function (param) {
- var type = param.type;
- var format = param.format;
- var isArray = false;
- var str;
- if(type === 'integer' && format === 'int32')
- str = 'integer';
- else if(type === 'integer' && format === 'int64')
- str = 'long';
- else if(type === 'integer')
- str = 'integer';
- else if(type === 'string') {
- if(format === 'date-time')
- str = 'date-time';
- else if(format === 'date')
- str = 'date';
- else
- str = 'string';
- }
- else if(type === 'number' && format === 'float')
- str = 'float';
- else if(type === 'number' && format === 'double')
- str = 'double';
- else if(type === 'number')
- str = 'double';
- else if(type === 'boolean')
- str = 'boolean';
- else if(type === 'array') {
- isArray = true;
- if(param.items)
- str = this.getType(param.items);
- }
- if(param.$ref)
- str = param.$ref;
-
- var schema = param.schema;
- if(schema) {
- var ref = schema.$ref;
- if(ref) {
- ref = simpleRef(ref);
- if(isArray)
- return [ ref ];
- else
- return ref;
- }
- else
- return this.getType(schema);
- }
- if(isArray)
- return [ str ];
- else
- return str;
-};
-
-Operation.prototype.resolveModel = function (schema, definitions) {
- if(typeof schema.$ref !== 'undefined') {
- var ref = schema.$ref;
- if(ref.indexOf('#/definitions/') === 0)
- ref = ref.substring('#/definitions/'.length);
- if(definitions[ref]) {
- return new Model(ref, definitions[ref]);
- }
- }
- if(schema.type === 'array')
- return new ArrayModel(schema);
- else
- return null;
-};
-
-Operation.prototype.help = function(dontPrint) {
- var out = this.nickname + ': ' + this.summary + '\n';
- for(var i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- var typeInfo = param.signature;
- out += '\n * ' + param.name + ' (' + typeInfo + '): ' + param.description;
- }
- if(typeof dontPrint === 'undefined')
- log(out);
- return out;
-};
-
-Operation.prototype.getModelSignature = function(type, definitions) {
- var isPrimitive, listType;
-
- if(type instanceof Array) {
- listType = true;
- type = type[0];
- }
- else if(typeof type === 'undefined')
- type = 'undefined';
-
- if(type === 'string')
- isPrimitive = true;
- else
- isPrimitive = (listType && definitions[listType]) || (definitions[type]) ? false : true;
- if (isPrimitive) {
- if(listType)
- return 'Array[' + type + ']';
- else
- return type.toString();
- } else {
- if (listType)
- return 'Array[' + definitions[type].getMockSignature() + ']';
- else
- return definitions[type].getMockSignature();
- }
-};
-
-Operation.prototype.supportHeaderParams = function () {
- return true;
-};
-
-Operation.prototype.supportedSubmitMethods = function () {
- return this.parent.supportedSubmitMethods;
-};
-
-Operation.prototype.getHeaderParams = function (args) {
- var headers = this.setContentTypes(args, {});
- for(var i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- if(typeof args[param.name] !== 'undefined') {
- if (param.in === 'header') {
- var value = args[param.name];
- if(Array.isArray(value))
- value = value.toString();
- headers[param.name] = value;
- }
- }
- }
- return headers;
-};
-
-Operation.prototype.urlify = function (args) {
- var formParams = {};
- var requestUrl = this.path;
-
- // grab params from the args, build the querystring along the way
- var querystring = '';
- for(var i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- if(typeof args[param.name] !== 'undefined') {
- if(param.in === 'path') {
- var reg = new RegExp('\{' + param.name + '\}', 'gi');
- var value = args[param.name];
- if(Array.isArray(value))
- value = this.encodePathCollection(param.collectionFormat, param.name, value);
- else
- value = this.encodePathParam(value);
- requestUrl = requestUrl.replace(reg, value);
- }
- else if (param.in === 'query' && typeof args[param.name] !== 'undefined') {
- if(querystring === '')
- querystring += '?';
- else
- querystring += '&';
- if(typeof param.collectionFormat !== 'undefined') {
- var qp = args[param.name];
- if(Array.isArray(qp))
- querystring += this.encodeQueryCollection(param.collectionFormat, param.name, qp);
- else
- querystring += this.encodeQueryParam(param.name) + '=' + this.encodeQueryParam(args[param.name]);
- }
- else
- querystring += this.encodeQueryParam(param.name) + '=' + this.encodeQueryParam(args[param.name]);
- }
- else if (param.in === 'formData')
- formParams[param.name] = args[param.name];
- }
- }
- var url = this.scheme + '://' + this.host;
-
- if(this.basePath !== '/')
- url += this.basePath;
-
- return url + requestUrl + querystring;
-};
-
-Operation.prototype.getMissingParams = function(args) {
- var missingParams = [];
- // check required params, track the ones that are missing
- var i;
- for(i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- if(param.required === true) {
- if(typeof args[param.name] === 'undefined')
- missingParams = param.name;
- }
- }
- return missingParams;
-};
-
-Operation.prototype.getBody = function(headers, args, opts) {
- var formParams = {}, body, key;
-
- for(var i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- if(typeof args[param.name] !== 'undefined') {
- if (param.in === 'body') {
- body = args[param.name];
- } else if(param.in === 'formData') {
- formParams[param.name] = args[param.name];
- }
- }
- }
-
- // handle form params
- if(headers['Content-Type'] === 'application/x-www-form-urlencoded') {
- var encoded = "";
- for(key in formParams) {
- value = formParams[key];
- if(typeof value !== 'undefined'){
- if(encoded !== "")
- encoded += "&";
- encoded += encodeURIComponent(key) + '=' + encodeURIComponent(value);
- }
- }
- body = encoded;
- }
- else if (headers['Content-Type'] && headers['Content-Type'].indexOf('multipart/form-data') >= 0) {
- if(opts.useJQuery) {
- var bodyParam = new FormData();
- bodyParam.type = 'formData';
- for (key in formParams) {
- value = args[key];
- if (typeof value !== 'undefined') {
- // required for jquery file upload
- if(value.type === 'file' && value.value) {
- delete headers['Content-Type'];
- bodyParam.append(key, value.value);
- }
- else
- bodyParam.append(key, value);
- }
- }
- body = bodyParam;
- }
- }
-
- return body;
-};
-
-/**
- * gets sample response for a single operation
- **/
-Operation.prototype.getModelSampleJSON = function(type, models) {
- var isPrimitive, listType, sampleJson;
-
- listType = (type instanceof Array);
- isPrimitive = models[type] ? false : true;
- sampleJson = isPrimitive ? void 0 : models[type].createJSONSample();
- if (sampleJson) {
- sampleJson = listType ? [sampleJson] : sampleJson;
- if(typeof sampleJson == 'string')
- return sampleJson;
- else if(typeof sampleJson === 'object') {
- var t = sampleJson;
- if(sampleJson instanceof Array && sampleJson.length > 0) {
- t = sampleJson[0];
- }
- if(t.nodeName) {
- var xmlString = new XMLSerializer().serializeToString(t);
- return this.formatXml(xmlString);
- }
- else
- return JSON.stringify(sampleJson, null, 2);
- }
- else
- return sampleJson;
- }
-};
-
-/**
- * legacy binding
- **/
-Operation.prototype["do"] = function(args, opts, callback, error, parent) {
- return this.execute(args, opts, callback, error, parent);
-};
-
-
-/**
- * executes an operation
- **/
-Operation.prototype.execute = function(arg1, arg2, arg3, arg4, parent) {
- var args = arg1 || {};
- var opts = {}, success, error;
- if(typeof arg2 === 'object') {
- opts = arg2;
- success = arg3;
- error = arg4;
- }
-
- if(typeof arg2 === 'function') {
- success = arg2;
- error = arg3;
- }
-
- success = (success||log);
- error = (error||log);
-
- if(opts.useJQuery)
- this.useJQuery = opts.useJQuery;
-
- var missingParams = this.getMissingParams(args);
- if(missingParams.length > 0) {
- var message = 'missing required params: ' + missingParams;
- fail(message);
- return;
- }
- var allHeaders = this.getHeaderParams(args);
- var contentTypeHeaders = this.setContentTypes(args, opts);
-
- var headers = {}, attrname;
- for (attrname in allHeaders) { headers[attrname] = allHeaders[attrname]; }
- for (attrname in contentTypeHeaders) { headers[attrname] = contentTypeHeaders[attrname]; }
-
- var body = this.getBody(headers, args, opts);
- var url = this.urlify(args);
-
- var obj = {
- url: url,
- method: this.method.toUpperCase(),
- body: body,
- useJQuery: this.useJQuery,
- headers: headers,
- on: {
- response: function(response) {
- return success(response, parent);
- },
- error: function(response) {
- return error(response, parent);
- }
- }
- };
- var status = authorizations.apply(obj, this.operation.security);
- if(opts.mock === true)
- return obj;
- else
- new SwaggerHttp().execute(obj, opts);
-};
-
-Operation.prototype.setContentTypes = function(args, opts) {
- // default type
- var accepts = 'application/json';
- var consumes = args.parameterContentType || 'application/json';
- var allDefinedParams = this.parameters;
- var definedFormParams = [];
- var definedFileParams = [];
- var body;
- var headers = {};
-
- // get params from the operation and set them in definedFileParams, definedFormParams, headers
- var i;
- for(i = 0; i < allDefinedParams.length; i++) {
- var param = allDefinedParams[i];
- if(param.in === 'formData') {
- if(param.type === 'file')
- definedFileParams.push(param);
- else
- definedFormParams.push(param);
- }
- else if(param.in === 'header' && opts) {
- var key = param.name;
- var headerValue = opts[param.name];
- if(typeof opts[param.name] !== 'undefined')
- headers[key] = headerValue;
- }
- else if(param.in === 'body' && typeof args[param.name] !== 'undefined') {
- body = args[param.name];
- }
- }
-
- // if there's a body, need to set the consumes header via requestContentType
- if (body && (this.method === 'post' || this.method === 'put' || this.method === 'patch' || this.method === 'delete')) {
- if (opts.requestContentType)
- consumes = opts.requestContentType;
- } else {
- // if any form params, content type must be set
- if(definedFormParams.length > 0) {
- if(opts.requestContentType) // override if set
- consumes = opts.requestContentType;
- else if(definedFileParams.length > 0) // if a file, must be multipart/form-data
- consumes = 'multipart/form-data';
- else // default to x-www-from-urlencoded
- consumes = 'application/x-www-form-urlencoded';
- }
- else if (this.type == 'DELETE')
- body = '{}';
- else if (this.type != 'DELETE')
- consumes = null;
- }
-
- if (consumes && this.consumes) {
- if (this.consumes.indexOf(consumes) === -1) {
- log('server doesn\'t consume ' + consumes + ', try ' + JSON.stringify(this.consumes));
- }
- }
-
- if (opts.responseContentType) {
- accepts = opts.responseContentType;
- } else {
- accepts = 'application/json';
- }
- if (accepts && this.produces) {
- if (this.produces.indexOf(accepts) === -1) {
- log('server can\'t produce ' + accepts);
- }
- }
-
- if ((consumes && body !== '') || (consumes === 'application/x-www-form-urlencoded'))
- headers['Content-Type'] = consumes;
- if (accepts)
- headers.Accept = accepts;
- return headers;
-};
-
-Operation.prototype.asCurl = function (args) {
- var obj = this.execute(args, {mock: true});
- authorizations.apply(obj);
- var results = [];
- results.push('-X ' + this.method.toUpperCase());
- if (obj.headers) {
- var key;
- for (key in obj.headers)
- results.push('--header "' + key + ': ' + obj.headers[key] + '"');
- }
- if(obj.body) {
- var body;
- if(typeof obj.body === 'object')
- body = JSON.stringify(obj.body);
- else
- body = obj.body;
- results.push('-d "' + body.replace(/"/g, '\\"') + '"');
- }
- return 'curl ' + (results.join(' ')) + ' "' + obj.url + '"';
-};
-
-Operation.prototype.encodePathCollection = function(type, name, value) {
- var encoded = '';
- var i;
- var separator = '';
- if(type === 'ssv')
- separator = '%20';
- else if(type === 'tsv')
- separator = '\\t';
- else if(type === 'pipes')
- separator = '|';
- else
- separator = ',';
-
- for(i = 0; i < value.length; i++) {
- if(i === 0)
- encoded = this.encodeQueryParam(value[i]);
- else
- encoded += separator + this.encodeQueryParam(value[i]);
- }
- return encoded;
-};
-
-Operation.prototype.encodeQueryCollection = function(type, name, value) {
- var encoded = '';
- var i;
- if(type === 'default' || type === 'multi') {
- for(i = 0; i < value.length; i++) {
- if(i > 0) encoded += '&';
- encoded += this.encodeQueryParam(name) + '=' + this.encodeQueryParam(value[i]);
- }
- }
- else {
- var separator = '';
- if(type === 'csv')
- separator = ',';
- else if(type === 'ssv')
- separator = '%20';
- else if(type === 'tsv')
- separator = '\\t';
- else if(type === 'pipes')
- separator = '|';
- else if(type === 'brackets') {
- for(i = 0; i < value.length; i++) {
- if(i !== 0)
- encoded += '&';
- encoded += this.encodeQueryParam(name) + '[]=' + this.encodeQueryParam(value[i]);
- }
- }
- if(separator !== '') {
- for(i = 0; i < value.length; i++) {
- if(i === 0)
- encoded = this.encodeQueryParam(name) + '=' + this.encodeQueryParam(value[i]);
- else
- encoded += separator + this.encodeQueryParam(value[i]);
- }
- }
- }
- return encoded;
-};
-
-Operation.prototype.encodeQueryParam = function(arg) {
- return encodeURIComponent(arg);
-};
-
-/**
- * TODO revisit, might not want to leave '/'
- **/
-Operation.prototype.encodePathParam = function(pathParam) {
- var encParts, part, parts, i, len;
- pathParam = pathParam.toString();
- if (pathParam.indexOf('/') === -1) {
- return encodeURIComponent(pathParam);
- } else {
- parts = pathParam.split('/');
- encParts = [];
- for (i = 0, len = parts.length; i < len; i++) {
- encParts.push(encodeURIComponent(parts[i]));
- }
- return encParts.join('/');
- }
-};
-
-var Model = function(name, definition) {
- this.name = name;
- this.definition = definition || {};
- this.properties = [];
- var requiredFields = definition.required || [];
- if(definition.type === 'array') {
- var out = new ArrayModel(definition);
- return out;
- }
- var key;
- var props = definition.properties;
- if(props) {
- for(key in props) {
- var required = false;
- var property = props[key];
- if(requiredFields.indexOf(key) >= 0)
- required = true;
- this.properties.push(new Property(key, property, required));
- }
- }
-};
-
-Model.prototype.createJSONSample = function(modelsToIgnore) {
- var i, result = {}, representations = {};
- modelsToIgnore = (modelsToIgnore||{});
- modelsToIgnore[this.name] = this;
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- var sample = prop.getSampleValue(modelsToIgnore, representations);
- result[prop.name] = sample;
- }
- delete modelsToIgnore[this.name];
- return result;
-};
-
-Model.prototype.getSampleValue = function(modelsToIgnore) {
- var i, obj = {}, representations = {};
- for(i = 0; i < this.properties.length; i++ ) {
- var property = this.properties[i];
- obj[property.name] = property.sampleValue(false, modelsToIgnore, representations);
- }
- return obj;
-};
-
-Model.prototype.getMockSignature = function(modelsToIgnore) {
- var i, prop, propertiesStr = [];
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- propertiesStr.push(prop.toString());
- }
- var strong = '<span class="strong">';
- var stronger = '<span class="stronger">';
- var strongClose = '</span>';
- var classOpen = strong + this.name + ' {' + strongClose;
- var classClose = strong + '}' + strongClose;
- var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
- if (!modelsToIgnore)
- modelsToIgnore = {};
-
- modelsToIgnore[this.name] = this;
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- var ref = prop.$ref;
- var model = models[ref];
- if (model && typeof modelsToIgnore[model.name] === 'undefined') {
- returnVal = returnVal + ('<br>' + model.getMockSignature(modelsToIgnore));
- }
- }
- return returnVal;
-};
-
-var Property = function(name, obj, required) {
- this.schema = obj;
- this.required = required;
- if(obj.$ref)
- this.$ref = simpleRef(obj.$ref);
- else if (obj.type === 'array' && obj.items) {
- if(obj.items.$ref)
- this.$ref = simpleRef(obj.items.$ref);
- else
- obj = obj.items;
- }
- this.name = name;
- this.description = obj.description;
- this.obj = obj;
- this.optional = true;
- this.optional = !required;
- this.default = obj.default || null;
- this.example = obj.example !== undefined ? obj.example : null;
- this.collectionFormat = obj.collectionFormat || null;
- this.maximum = obj.maximum || null;
- this.exclusiveMaximum = obj.exclusiveMaximum || null;
- this.minimum = obj.minimum || null;
- this.exclusiveMinimum = obj.exclusiveMinimum || null;
- this.maxLength = obj.maxLength || null;
- this.minLength = obj.minLength || null;
- this.pattern = obj.pattern || null;
- this.maxItems = obj.maxItems || null;
- this.minItems = obj.minItems || null;
- this.uniqueItems = obj.uniqueItems || null;
- this['enum'] = obj['enum'] || null;
- this.multipleOf = obj.multipleOf || null;
-};
-
-Property.prototype.getSampleValue = function (modelsToIgnore, representations) {
- return this.sampleValue(false, modelsToIgnore, representations);
-};
-
-Property.prototype.isArray = function () {
- var schema = this.schema;
- if(schema.type === 'array')
- return true;
- else
- return false;
-};
-
-Property.prototype.sampleValue = function(isArray, ignoredModels, representations) {
- isArray = (isArray || this.isArray());
- ignoredModels = (ignoredModels || {});
- // representations = (representations || {});
-
- var type = getStringSignature(this.obj, true);
- var output;
-
- if(this.$ref) {
- var refModelName = simpleRef(this.$ref);
- var refModel = models[refModelName];
- if(typeof representations[type] !== 'undefined') {
- return representations[type];
- }
- else
-
- if(refModel && typeof ignoredModels[type] === 'undefined') {
- ignoredModels[type] = this;
- output = refModel.getSampleValue(ignoredModels, representations);
- representations[type] = output;
- }
- else {
- output = (representations[type] || refModelName);
- }
- }
- else if(this.example)
- output = this.example;
- else if(this.default)
- output = this.default;
- else if(type === 'date-time')
- output = new Date().toISOString();
- else if(type === 'date')
- output = new Date().toISOString().split("T")[0];
- else if(type === 'string')
- output = 'string';
- else if(type === 'integer')
- output = 0;
- else if(type === 'long')
- output = 0;
- else if(type === 'float')
- output = 0.0;
- else if(type === 'double')
- output = 0.0;
- else if(type === 'boolean')
- output = true;
- else
- output = {};
- ignoredModels[type] = output;
- if(isArray)
- return [output];
- else
- return output;
-};
-
-getStringSignature = function(obj, baseComponent) {
- var str = '';
- if(typeof obj.$ref !== 'undefined')
- str += simpleRef(obj.$ref);
- else if(typeof obj.type === 'undefined')
- str += 'object';
- else if(obj.type === 'array') {
- if(baseComponent)
- str += getStringSignature((obj.items || obj.$ref || {}));
- else {
- str += 'Array[';
- str += getStringSignature((obj.items || obj.$ref || {}));
- str += ']';
- }
- }
- else if(obj.type === 'integer' && obj.format === 'int32')
- str += 'integer';
- else if(obj.type === 'integer' && obj.format === 'int64')
- str += 'long';
- else if(obj.type === 'integer' && typeof obj.format === 'undefined')
- str += 'long';
- else if(obj.type === 'string' && obj.format === 'date-time')
- str += 'date-time';
- else if(obj.type === 'string' && obj.format === 'date')
- str += 'date';
- else if(obj.type === 'string' && typeof obj.format === 'undefined')
- str += 'string';
- else if(obj.type === 'number' && obj.format === 'float')
- str += 'float';
- else if(obj.type === 'number' && obj.format === 'double')
- str += 'double';
- else if(obj.type === 'number' && typeof obj.format === 'undefined')
- str += 'double';
- else if(obj.type === 'boolean')
- str += 'boolean';
- else if(obj.$ref)
- str += simpleRef(obj.$ref);
- else
- str += obj.type;
- return str;
-};
-
-simpleRef = function(name) {
- if(typeof name === 'undefined')
- return null;
- if(name.indexOf("#/definitions/") === 0)
- return name.substring('#/definitions/'.length);
- else
- return name;
-};
-
-Property.prototype.toString = function() {
- var str = getStringSignature(this.obj);
- if(str !== '') {
- str = '<span class="propName ' + this.required + '">' + this.name + '</span> (<span class="propType">' + str + '</span>';
- if(!this.required)
- str += ', <span class="propOptKey">optional</span>';
- str += ')';
- }
- else
- str = this.name + ' (' + JSON.stringify(this.obj) + ')';
-
- if(typeof this.description !== 'undefined')
- str += ': ' + this.description;
-
- if (this['enum']) {
- str += ' = <span class="propVals">[\'' + this['enum'].join('\' or \'') + '\']</span>';
- }
- if (this.descr) {
- str += ': <span class="propDesc">' + this.descr + '</span>';
- }
-
-
- var options = '';
- var isArray = this.schema.type === 'array';
- var type;
-
- if(isArray) {
- if(this.schema.items)
- type = this.schema.items.type;
- else
- type = '';
- }
- else {
- type = this.schema.type;
- }
-
- if (this.default)
- options += optionHtml('Default', this.default);
-
- switch (type) {
- case 'string':
- if (this.minLength)
- options += optionHtml('Min. Length', this.minLength);
- if (this.maxLength)
- options += optionHtml('Max. Length', this.maxLength);
- if (this.pattern)
- options += optionHtml('Reg. Exp.', this.pattern);
- break;
- case 'integer':
- case 'number':
- if (this.minimum)
- options += optionHtml('Min. Value', this.minimum);
- if (this.exclusiveMinimum)
- options += optionHtml('Exclusive Min.', "true");
- if (this.maximum)
- options += optionHtml('Max. Value', this.maximum);
- if (this.exclusiveMaximum)
- options += optionHtml('Exclusive Max.', "true");
- if (this.multipleOf)
- options += optionHtml('Multiple Of', this.multipleOf);
- break;
- }
-
- if (isArray) {
- if (this.minItems)
- options += optionHtml('Min. Items', this.minItems);
- if (this.maxItems)
- options += optionHtml('Max. Items', this.maxItems);
- if (this.uniqueItems)
- options += optionHtml('Unique Items', "true");
- if (this.collectionFormat)
- options += optionHtml('Coll. Format', this.collectionFormat);
- }
-
- if (this['enum']) {
- var enumString;
-
- if (type === 'number' || type === 'integer')
- enumString = this['enum'].join(', ');
- else {
- enumString = '"' + this['enum'].join('", "') + '"';
- }
-
- options += optionHtml('Enum', enumString);
- }
-
- if (options.length > 0)
- str = '<span class="propWrap">' + str + '<table class="optionsWrapper"><tr><th colspan="2">' + this.name + '</th></tr>' + options + '</table></span>';
-
- return str;
-};
-
-optionHtml = function(label, value) {
- return '<tr><td class="optionName">' + label + ':</td><td>' + value + '</td></tr>';
-};
-
-typeFromJsonSchema = function(type, format) {
- var str;
- if(type === 'integer' && format === 'int32')
- str = 'integer';
- else if(type === 'integer' && format === 'int64')
- str = 'long';
- else if(type === 'integer' && typeof format === 'undefined')
- str = 'long';
- else if(type === 'string' && format === 'date-time')
- str = 'date-time';
- else if(type === 'string' && format === 'date')
- str = 'date';
- else if(type === 'number' && format === 'float')
- str = 'float';
- else if(type === 'number' && format === 'double')
- str = 'double';
- else if(type === 'number' && typeof format === 'undefined')
- str = 'double';
- else if(type === 'boolean')
- str = 'boolean';
- else if(type === 'string')
- str = 'string';
-
- return str;
-};
-
-var sampleModels = {};
-var cookies = {};
-var models = {};
-
-SwaggerClient.prototype.buildFrom1_2Spec = function (response) {
- if (response.apiVersion !== null) {
- this.apiVersion = response.apiVersion;
- }
- this.apis = {};
- this.apisArray = [];
- this.consumes = response.consumes;
- this.produces = response.produces;
- this.authSchemes = response.authorizations;
- this.info = this.convertInfo(response.info);
-
- var isApi = false, i, res;
- for (i = 0; i < response.apis.length; i++) {
- var api = response.apis[i];
- if (api.operations) {
- var j;
- for (j = 0; j < api.operations.length; j++) {
- operation = api.operations[j];
- isApi = true;
- }
- }
- }
- if (response.basePath)
- this.basePath = response.basePath;
- else if (this.url.indexOf('?') > 0)
- this.basePath = this.url.substring(0, this.url.lastIndexOf('?'));
- else
- this.basePath = this.url;
-
- if (isApi) {
- var newName = response.resourcePath.replace(/\//g, '');
- this.resourcePath = response.resourcePath;
- res = new SwaggerResource(response, this);
- this.apis[newName] = res;
- this.apisArray.push(res);
- this.finish();
- } else {
- var k;
- this.expectedResourceCount = response.apis.length;
- for (k = 0; k < response.apis.length; k++) {
- var resource = response.apis[k];
- res = new SwaggerResource(resource, this);
- this.apis[res.name] = res;
- this.apisArray.push(res);
- }
- }
- this.isValid = true;
- return this;
-};
-
-SwaggerClient.prototype.finish = function() {
- if (typeof this.success === 'function') {
- this.isValid = true;
- this.ready = true;
- this.isBuilt = true;
- this.selfReflect();
- this.success();
- }
-};
-
-SwaggerClient.prototype.buildFrom1_1Spec = function (response) {
- log('This API is using a deprecated version of Swagger! Please see http://github.com/wordnik/swagger-core/wiki for more info');
- if (response.apiVersion !== null)
- this.apiVersion = response.apiVersion;
- this.apis = {};
- this.apisArray = [];
- this.produces = response.produces;
- this.info = this.convertInfo(response.info);
- var isApi = false, res;
- for (var i = 0; i < response.apis.length; i++) {
- var api = response.apis[i];
- if (api.operations) {
- for (var j = 0; j < api.operations.length; j++) {
- operation = api.operations[j];
- isApi = true;
- }
- }
- }
- if (response.basePath) {
- this.basePath = response.basePath;
- } else if (this.url.indexOf('?') > 0) {
- this.basePath = this.url.substring(0, this.url.lastIndexOf('?'));
- } else {
- this.basePath = this.url;
- }
- if (isApi) {
- var newName = response.resourcePath.replace(/\//g, '');
- this.resourcePath = response.resourcePath;
- res = new SwaggerResource(response, this);
- this.apis[newName] = res;
- this.apisArray.push(res);
- this.finish();
- } else {
- this.expectedResourceCount = response.apis.length;
- for (k = 0; k < response.apis.length; k++) {
- resource = response.apis[k];
- res = new SwaggerResource(resource, this);
- this.apis[res.name] = res;
- this.apisArray.push(res);
- }
- }
- this.isValid = true;
- return this;
-};
-
-SwaggerClient.prototype.convertInfo = function (resp) {
- if(typeof resp == 'object') {
- var info = {};
-
- info.title = resp.title;
- info.description = resp.description;
- info.termsOfService = resp.termsOfServiceUrl;
- info.contact = {};
- info.contact.name = resp.contact;
- info.license = {};
- info.license.name = resp.license;
- info.license.url = resp.licenseUrl;
-
- return info;
- }
-};
-
-SwaggerClient.prototype.selfReflect = function () {
- var resource, tag, ref;
- if (this.apis === null) {
- return false;
- }
- ref = this.apis;
- for (tag in ref) {
- api = ref[tag];
- if (api.ready === null) {
- return false;
- }
- this[tag] = api;
- this[tag].help = __bind(api.help, api);
- }
- this.setConsolidatedModels();
- this.ready = true;
-};
-
-SwaggerClient.prototype.setConsolidatedModels = function () {
- var model, modelName, resource, resource_name, i, apis, models, results;
- this.models = {};
- apis = this.apis;
- for (resource_name in apis) {
- resource = apis[resource_name];
- for (modelName in resource.models) {
- if (typeof this.models[modelName] === 'undefined') {
- this.models[modelName] = resource.models[modelName];
- this.modelsArray.push(resource.models[modelName]);
- }
- }
- }
- models = this.modelsArray;
- results = [];
- for (i = 0; i < models.length; i++) {
- model = models[i];
- results.push(model.setReferencedModels(this.models));
- }
- return results;
-};
-
-var SwaggerResource = function (resourceObj, api) {
- var _this = this;
- this.api = api;
- this.swaggerRequstHeaders = api.swaggerRequstHeaders;
- this.path = (typeof this.api.resourcePath === 'string') ? this.api.resourcePath : resourceObj.path;
- this.description = resourceObj.description;
- this.authorizations = (resourceObj.authorizations || {});
-
- var parts = this.path.split('/');
- this.name = parts[parts.length - 1].replace('.{format}', '');
- this.basePath = this.api.basePath;
- this.operations = {};
- this.operationsArray = [];
- this.modelsArray = [];
- this.models = api.models || {};
- this.rawModels = {};
- this.useJQuery = (typeof api.useJQuery !== 'undefined') ? api.useJQuery : null;
-
- if ((resourceObj.apis) && this.api.resourcePath) {
- this.addApiDeclaration(resourceObj);
- } else {
- if (typeof this.path === 'undefined') {
- this.api.fail('SwaggerResources must have a path.');
- }
- if (this.path.substring(0, 4) === 'http') {
- this.url = this.path.replace('{format}', 'json');
- } else {
- this.url = this.api.basePath + this.path.replace('{format}', 'json');
- }
- this.api.progress('fetching resource ' + this.name + ': ' + this.url);
- var obj = {
- url: this.url,
- method: 'GET',
- useJQuery: this.useJQuery,
- headers: {
- accept: this.swaggerRequstHeaders
- },
- on: {
- response: function (resp) {
- var responseObj = resp.obj || JSON.parse(resp.data);
- _this.api.resourceCount += 1;
- return _this.addApiDeclaration(responseObj);
- },
- error: function (response) {
- _this.api.resourceCount += 1;
- return _this.api.fail('Unable to read api \'' +
- _this.name + '\' from path ' + _this.url + ' (server returned ' + response.statusText + ')');
- }
- }
- };
- var e = typeof window !== 'undefined' ? window : exports;
- e.authorizations.apply(obj);
- new SwaggerHttp().execute(obj);
- }
-};
-
-SwaggerResource.prototype.help = function (dontPrint) {
- var i;
- var output = 'operations for the "' + this.name + '" tag';
- for(i = 0; i < this.operationsArray.length; i++) {
- var api = this.operationsArray[i];
- output += '\n * ' + api.nickname + ': ' + api.description;
- }
- if(dontPrint)
- return output;
- else {
- log(output);
- return output;
- }
-};
-
-SwaggerResource.prototype.getAbsoluteBasePath = function (relativeBasePath) {
- var pos, url;
- url = this.api.basePath;
- pos = url.lastIndexOf(relativeBasePath);
- var parts = url.split('/');
- var rootUrl = parts[0] + '//' + parts[2];
-
- if (relativeBasePath.indexOf('http') === 0)
- return relativeBasePath;
- if (relativeBasePath === '/')
- return rootUrl;
- if (relativeBasePath.substring(0, 1) == '/') {
- // use root + relative
- return rootUrl + relativeBasePath;
- }
- else {
- pos = this.basePath.lastIndexOf('/');
- var base = this.basePath.substring(0, pos);
- if (base.substring(base.length - 1) == '/')
- return base + relativeBasePath;
- else
- return base + '/' + relativeBasePath;
- }
-};
-
-SwaggerResource.prototype.addApiDeclaration = function (response) {
- if (typeof response.produces === 'string')
- this.produces = response.produces;
- if (typeof response.consumes === 'string')
- this.consumes = response.consumes;
- if ((typeof response.basePath === 'string') && response.basePath.replace(/\s/g, '').length > 0)
- this.basePath = response.basePath.indexOf('http') === -1 ? this.getAbsoluteBasePath(response.basePath) : response.basePath;
- this.resourcePath = response.resourcePath;
- this.addModels(response.models);
- if (response.apis) {
- for (var i = 0 ; i < response.apis.length; i++) {
- var endpoint = response.apis[i];
- this.addOperations(endpoint.path, endpoint.operations, response.consumes, response.produces);
- }
- }
- this.api[this.name] = this;
- this.ready = true;
- if(this.api.resourceCount === this.api.expectedResourceCount)
- this.api.finish();
- return this;
-};
-
-SwaggerResource.prototype.addModels = function (models) {
- if (typeof models === 'object') {
- var modelName;
- for (modelName in models) {
- if (typeof this.models[modelName] === 'undefined') {
- var swaggerModel = new SwaggerModel(modelName, models[modelName]);
- this.modelsArray.push(swaggerModel);
- this.models[modelName] = swaggerModel;
- this.rawModels[modelName] = models[modelName];
- }
- }
- var output = [];
- for (var i = 0; i < this.modelsArray.length; i++) {
- var model = this.modelsArray[i];
- output.push(model.setReferencedModels(this.models));
- }
- return output;
- }
-};
-
-SwaggerResource.prototype.addOperations = function (resource_path, ops, consumes, produces) {
- if (ops) {
- var output = [];
- for (var i = 0; i < ops.length; i++) {
- var o = ops[i];
- consumes = this.consumes;
- produces = this.produces;
- if (typeof o.consumes !== 'undefined')
- consumes = o.consumes;
- else
- consumes = this.consumes;
-
- if (typeof o.produces !== 'undefined')
- produces = o.produces;
- else
- produces = this.produces;
- var type = (o.type || o.responseClass);
-
- if (type === 'array') {
- ref = null;
- if (o.items)
- ref = o.items.type || o.items.$ref;
- type = 'array[' + ref + ']';
- }
- var responseMessages = o.responseMessages;
- var method = o.method;
- if (o.httpMethod) {
- method = o.httpMethod;
- }
- if (o.supportedContentTypes) {
- consumes = o.supportedContentTypes;
- }
- if (o.errorResponses) {
- responseMessages = o.errorResponses;
- for (var j = 0; j < responseMessages.length; j++) {
- r = responseMessages[j];
- r.message = r.reason;
- r.reason = null;
- }
- }
- o.nickname = this.sanitize(o.nickname);
- var op = new SwaggerOperation(o.nickname,
- resource_path,
- method,
- o.parameters,
- o.summary,
- o.notes,
- type,
- responseMessages,
- this,
- consumes,
- produces,
- o.authorizations,
- o.deprecated);
-
- this.operations[op.nickname] = op;
- output.push(this.operationsArray.push(op));
- }
- return output;
- }
-};
-
-SwaggerResource.prototype.sanitize = function (nickname) {
- var op;
- op = nickname.replace(/[\s!@#$%^&*()_+=\[{\]};:<>|.\/?,\\'""-]/g, '_');
- op = op.replace(/((_){2,})/g, '_');
- op = op.replace(/^(_)*/g, '');
- op = op.replace(/([_])*$/g, '');
- return op;
-};
-
-var SwaggerModel = function (modelName, obj) {
- this.name = typeof obj.id !== 'undefined' ? obj.id : modelName;
- this.properties = [];
- var propertyName;
- for (propertyName in obj.properties) {
- if (obj.required) {
- var value;
- for (value in obj.required) {
- if (propertyName === obj.required[value]) {
- obj.properties[propertyName].required = true;
- }
- }
- }
- var prop = new SwaggerModelProperty(propertyName, obj.properties[propertyName], this);
- this.properties.push(prop);
- }
-};
-
-SwaggerModel.prototype.setReferencedModels = function (allModels) {
- var results = [];
- for (var i = 0; i < this.properties.length; i++) {
- var property = this.properties[i];
- var type = property.type || property.dataType;
- if (allModels[type])
- results.push(property.refModel = allModels[type]);
- else if ((property.refDataType) && (allModels[property.refDataType]))
- results.push(property.refModel = allModels[property.refDataType]);
- else
- results.push(void 0);
- }
- return results;
-};
-
-SwaggerModel.prototype.getMockSignature = function (modelsToIgnore) {
- var i, prop, propertiesStr = [];
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- propertiesStr.push(prop.toString());
- }
-
- var strong = '<span class="strong">';
- var strongClose = '</span>';
- var classOpen = strong + this.name + ' {' + strongClose;
- var classClose = strong + '}' + strongClose;
- var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
- if (!modelsToIgnore)
- modelsToIgnore = [];
- modelsToIgnore.push(this.name);
-
- for (i = 0; i < this.properties.length; i++) {
- prop = this.properties[i];
- if ((prop.refModel) && modelsToIgnore.indexOf(prop.refModel.name) === -1) {
- returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
- }
- }
- return returnVal;
-};
-
-SwaggerModel.prototype.createJSONSample = function (modelsToIgnore) {
- if (sampleModels[this.name]) {
- return sampleModels[this.name];
- }
- else {
- var result = {};
- modelsToIgnore = (modelsToIgnore || []);
- modelsToIgnore.push(this.name);
- for (var i = 0; i < this.properties.length; i++) {
- var prop = this.properties[i];
- result[prop.name] = prop.getSampleValue(modelsToIgnore);
- }
- modelsToIgnore.pop(this.name);
- return result;
- }
-};
-
-var SwaggerModelProperty = function (name, obj, model) {
- this.name = name;
- this.dataType = obj.type || obj.dataType || obj.$ref;
- this.isCollection = this.dataType && (this.dataType.toLowerCase() === 'array' || this.dataType.toLowerCase() === 'list' || this.dataType.toLowerCase() === 'set');
- this.descr = obj.description;
- this.required = obj.required;
- this.defaultValue = applyModelPropertyMacro(obj, model);
- if (obj.items) {
- if (obj.items.type) {
- this.refDataType = obj.items.type;
- }
- if (obj.items.$ref) {
- this.refDataType = obj.items.$ref;
- }
- }
- this.dataTypeWithRef = this.refDataType ? (this.dataType + '[' + this.refDataType + ']') : this.dataType;
- if (obj.allowableValues) {
- this.valueType = obj.allowableValues.valueType;
- this.values = obj.allowableValues.values;
- if (this.values) {
- this.valuesString = '\'' + this.values.join('\' or \'') + '\'';
- }
- }
- if (obj['enum']) {
- this.valueType = 'string';
- this.values = obj['enum'];
- if (this.values) {
- this.valueString = '\'' + this.values.join('\' or \'') + '\'';
- }
- }
-};
-
-SwaggerModelProperty.prototype.getSampleValue = function (modelsToIgnore) {
- var result;
- if ((this.refModel) && (modelsToIgnore.indexOf(this.refModel.name) === -1)) {
- result = this.refModel.createJSONSample(modelsToIgnore);
- } else {
- if (this.isCollection) {
- result = this.toSampleValue(this.refDataType);
- } else {
- result = this.toSampleValue(this.dataType);
- }
- }
- if (this.isCollection) {
- return [result];
- } else {
- return result;
- }
-};
-
-SwaggerModelProperty.prototype.toSampleValue = function (value) {
- var result;
- if ((typeof this.defaultValue !== 'undefined') && this.defaultValue) {
- result = this.defaultValue;
- } else if (value === 'integer') {
- result = 0;
- } else if (value === 'boolean') {
- result = false;
- } else if (value === 'double' || value === 'number') {
- result = 0.0;
- } else if (value === 'string') {
- result = '';
- } else {
- result = value;
- }
- return result;
-};
-
-SwaggerModelProperty.prototype.toString = function () {
- var req = this.required ? 'propReq' : 'propOpt';
- var str = '<span class="propName ' + req + '">' + this.name + '</span> (<span class="propType">' + this.dataTypeWithRef + '</span>';
- if (!this.required) {
- str += ', <span class="propOptKey">optional</span>';
- }
- str += ')';
- if (this.values) {
- str += ' = <span class="propVals">[\'' + this.values.join('\' or \'') + '\']</span>';
- }
- if (this.descr) {
- str += ': <span class="propDesc">' + this.descr + '</span>';
- }
- return str;
-};
-
-var SwaggerOperation = function (nickname, path, method, parameters, summary, notes, type, responseMessages, resource, consumes, produces, authorizations, deprecated) {
- var _this = this;
-
- var errors = [];
- this.nickname = (nickname || errors.push('SwaggerOperations must have a nickname.'));
- this.path = (path || errors.push('SwaggerOperation ' + nickname + ' is missing path.'));
- this.method = (method || errors.push('SwaggerOperation ' + nickname + ' is missing method.'));
- this.parameters = parameters ? parameters : [];
- this.summary = summary;
- this.notes = notes;
- this.type = type;
- this.responseMessages = (responseMessages || []);
- this.resource = (resource || errors.push('Resource is required'));
- this.consumes = consumes;
- this.produces = produces;
- this.authorizations = typeof authorizations !== 'undefined' ? authorizations : resource.authorizations;
- this.deprecated = deprecated;
- this['do'] = __bind(this['do'], this);
-
-
- if(typeof this.deprecated === 'string') {
- switch(this.deprecated.toLowerCase()) {
- case 'true': case 'yes': case '1': {
- this.deprecated = true;
- break;
- }
- case 'false': case 'no': case '0': case null: {
- this.deprecated = false;
- break;
- }
- default: this.deprecated = Boolean(this.deprecated);
- }
- }
-
- if (errors.length > 0) {
- console.error('SwaggerOperation errors', errors, arguments);
- this.resource.api.fail(errors);
- }
-
- this.path = this.path.replace('{format}', 'json');
- this.method = this.method.toLowerCase();
- this.isGetMethod = this.method === 'get';
-
- var i, j, v;
- this.resourceName = this.resource.name;
- if (typeof this.type !== 'undefined' && this.type === 'void')
- this.type = null;
- else {
- this.responseClassSignature = this.getSignature(this.type, this.resource.models);
- this.responseSampleJSON = this.getSampleJSON(this.type, this.resource.models);
- }
-
- for (i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- // might take this away
- param.name = param.name || param.type || param.dataType;
- // for 1.1 compatibility
- type = param.type || param.dataType;
- if (type === 'array') {
- type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']';
- }
- param.type = type;
-
- if (type && type.toLowerCase() === 'boolean') {
- param.allowableValues = {};
- param.allowableValues.values = ['true', 'false'];
- }
- param.signature = this.getSignature(type, this.resource.models);
- param.sampleJSON = this.getSampleJSON(type, this.resource.models);
-
- var enumValue = param['enum'];
- if (typeof enumValue !== 'undefined') {
- param.isList = true;
- param.allowableValues = {};
- param.allowableValues.descriptiveValues = [];
-
- for (j = 0; j < enumValue.length; j++) {
- v = enumValue[j];
- if (param.defaultValue) {
- param.allowableValues.descriptiveValues.push({
- value: String(v),
- isDefault: (v === param.defaultValue)
- });
- }
- else {
- param.allowableValues.descriptiveValues.push({
- value: String(v),
- isDefault: false
- });
- }
- }
- }
- else if (param.allowableValues) {
- if (param.allowableValues.valueType === 'RANGE')
- param.isRange = true;
- else
- param.isList = true;
- if (param.allowableValues) {
- param.allowableValues.descriptiveValues = [];
- if (param.allowableValues.values) {
- for (j = 0; j < param.allowableValues.values.length; j++) {
- v = param.allowableValues.values[j];
- if (param.defaultValue !== null) {
- param.allowableValues.descriptiveValues.push({
- value: String(v),
- isDefault: (v === param.defaultValue)
- });
- }
- else {
- param.allowableValues.descriptiveValues.push({
- value: String(v),
- isDefault: false
- });
- }
- }
- }
- }
- }
- param.defaultValue = applyParameterMacro(this, param);
- }
- var defaultSuccessCallback = this.resource.api.defaultSuccessCallback || null;
- var defaultErrorCallback = this.resource.api.defaultErrorCallback || null;
-
- this.resource[this.nickname] = function (args, opts, callback, error) {
- var arg1, arg2, arg3, arg4;
- if(typeof args === 'function') { // right shift 3
- arg1 = {}; arg2 = {}; arg3 = args; arg4 = opts;
- }
- else if(typeof args === 'object' && typeof opts === 'function') { // right shift 2
- arg1 = args; arg2 = {}; arg3 = opts; arg4 = callback;
- }
- else {
- arg1 = args; arg2 = opts; arg3 = callback; arg4 = error;
- }
- return _this['do'](arg1 || {}, arg2 || {}, arg3 || defaultSuccessCallback, arg4 || defaultErrorCallback);
- };
-
- this.resource[this.nickname].help = function (dontPrint) {
- return _this.help(dontPrint);
- };
- this.resource[this.nickname].asCurl = function (args) {
- return _this.asCurl(args);
- };
-};
-
-SwaggerOperation.prototype.isListType = function (type) {
- if (type && type.indexOf('[') >= 0) {
- return type.substring(type.indexOf('[') + 1, type.indexOf(']'));
- } else {
- return void 0;
- }
-};
-
-SwaggerOperation.prototype.getSignature = function (type, models) {
- var isPrimitive, listType;
- listType = this.isListType(type);
- isPrimitive = ((typeof listType !== 'undefined') && models[listType]) || (typeof models[type] !== 'undefined') ? false : true;
- if (isPrimitive) {
- return type;
- } else {
- if (typeof listType !== 'undefined') {
- return models[listType].getMockSignature();
- } else {
- return models[type].getMockSignature();
- }
- }
-};
-
-SwaggerOperation.prototype.getSampleJSON = function (type, models) {
- var isPrimitive, listType, val;
- listType = this.isListType(type);
- isPrimitive = ((typeof listType !== 'undefined') && models[listType]) || (typeof models[type] !== 'undefined') ? false : true;
- val = isPrimitive ? void 0 : (listType ? models[listType].createJSONSample() : models[type].createJSONSample());
- if (val) {
- val = listType ? [val] : val;
- if (typeof val == 'string')
- return val;
- else if (typeof val === 'object') {
- var t = val;
- if (val instanceof Array && val.length > 0) {
- t = val[0];
- }
- if (t.nodeName) {
- var xmlString = new XMLSerializer().serializeToString(t);
- return this.formatXml(xmlString);
- }
- else
- return JSON.stringify(val, null, 2);
- }
- else
- return val;
- }
-};
-
-SwaggerOperation.prototype['do'] = function (args, opts, callback, error) {
- var key, param, params, possibleParams = [], req, value;
-
- if (typeof error !== 'function') {
- error = function (xhr, textStatus, error) {
- return log(xhr, textStatus, error);
- };
- }
-
- if (typeof callback !== 'function') {
- callback = function (response) {
- var content;
- content = null;
- if (response !== null) {
- content = response.data;
- } else {
- content = 'no data';
- }
- return log('default callback: ' + content);
- };
- }
-
- params = {};
- params.headers = [];
- if (args.headers) {
- params.headers = args.headers;
- delete args.headers;
- }
- // allow override from the opts
- if(opts && opts.responseContentType) {
- params.headers['Content-Type'] = opts.responseContentType;
- }
- if(opts && opts.requestContentType) {
- params.headers.Accept = opts.requestContentType;
- }
-
- for (var i = 0; i < this.parameters.length; i++) {
- param = this.parameters[i];
- if (param.paramType === 'header') {
- if (typeof args[param.name] !== 'undefined')
- params.headers[param.name] = args[param.name];
- }
- else if (param.paramType === 'form' || param.paramType.toLowerCase() === 'file')
- possibleParams.push(param);
- else if (param.paramType === 'body' && param.name !== 'body' && typeof args[param.name] !== 'undefined') {
- if (args.body) {
- throw new Error('Saw two body params in an API listing; expecting a max of one.');
- }
- args.body = args[param.name];
- }
- }
-
- if (typeof args.body !== 'undefined') {
- params.body = args.body;
- delete args.body;
- }
-
- if (possibleParams) {
- for (key in possibleParams) {
- value = possibleParams[key];
- if (args[value.name]) {
- params[value.name] = args[value.name];
- }
- }
- }
-
- req = new SwaggerRequest(this.method, this.urlify(args), params, opts, callback, error, this);
- if (opts.mock) {
- return req;
- } else {
- return true;
- }
-};
-
-SwaggerOperation.prototype.pathJson = function () {
- return this.path.replace('{format}', 'json');
-};
-
-SwaggerOperation.prototype.pathXml = function () {
- return this.path.replace('{format}', 'xml');
-};
-
-SwaggerOperation.prototype.encodePathParam = function (pathParam) {
- var encParts, part, parts, _i, _len;
- pathParam = pathParam.toString();
- if (pathParam.indexOf('/') === -1) {
- return encodeURIComponent(pathParam);
- } else {
- parts = pathParam.split('/');
- encParts = [];
- for (_i = 0, _len = parts.length; _i < _len; _i++) {
- part = parts[_i];
- encParts.push(encodeURIComponent(part));
- }
- return encParts.join('/');
- }
-};
-
-SwaggerOperation.prototype.urlify = function (args) {
- var i, j, param, url;
- // ensure no double slashing...
- if(this.resource.basePath.length > 1 && this.resource.basePath.slice(-1) === '/' && this.pathJson().charAt(0) === '/')
- url = this.resource.basePath + this.pathJson().substring(1);
- else
- url = this.resource.basePath + this.pathJson();
- var params = this.parameters;
- for (i = 0; i < params.length; i++) {
- param = params[i];
- if (param.paramType === 'path') {
- if (typeof args[param.name] !== 'undefined') {
- // apply path params and remove from args
- var reg = new RegExp('\\{\\s*?' + param.name + '[^\\{\\}\\/]*(?:\\{.*?\\}[^\\{\\}\\/]*)*\\}(?=(\\/?|$))', 'gi');
- url = url.replace(reg, this.encodePathParam(args[param.name]));
- delete args[param.name];
- }
- else
- throw '' + param.name + ' is a required path param.';
- }
- }
-
- var queryParams = '';
- for (i = 0; i < params.length; i++) {
- param = params[i];
- if(param.paramType === 'query') {
- if (queryParams !== '')
- queryParams += '&';
- if (Array.isArray(param)) {
- var output = '';
- for(j = 0; j < param.length; j++) {
- if(j > 0)
- output += ',';
- output += encodeURIComponent(param[j]);
- }
- queryParams += encodeURIComponent(param.name) + '=' + output;
- }
- else {
- if (typeof args[param.name] !== 'undefined') {
- queryParams += encodeURIComponent(param.name) + '=' + encodeURIComponent(args[param.name]);
- } else {
- if (param.required)
- throw '' + param.name + ' is a required query param.';
- }
- }
- }
- }
- if ((queryParams) && queryParams.length > 0)
- url += '?' + queryParams;
- return url;
-};
-
-SwaggerOperation.prototype.supportHeaderParams = function () {
- return this.resource.api.supportHeaderParams;
-};
-
-SwaggerOperation.prototype.supportedSubmitMethods = function () {
- return this.resource.api.supportedSubmitMethods;
-};
-
-SwaggerOperation.prototype.getQueryParams = function (args) {
- return this.getMatchingParams(['query'], args);
-};
-
-SwaggerOperation.prototype.getHeaderParams = function (args) {
- return this.getMatchingParams(['header'], args);
-};
-
-SwaggerOperation.prototype.getMatchingParams = function (paramTypes, args) {
- var matchingParams = {};
- var params = this.parameters;
- for (var i = 0; i < params.length; i++) {
- param = params[i];
- if (args && args[param.name])
- matchingParams[param.name] = args[param.name];
- }
- var headers = this.resource.api.headers;
- var name;
- for (name in headers) {
- var value = headers[name];
- matchingParams[name] = value;
- }
- return matchingParams;
-};
-
-SwaggerOperation.prototype.help = function (dontPrint) {
- var msg = this.nickname + ': ' + this.summary;
- var params = this.parameters;
- for (var i = 0; i < params.length; i++) {
- var param = params[i];
- msg += '\n* ' + param.name + (param.required ? ' (required)' : '') + " - " + param.description;
- }
- if(dontPrint)
- return msg;
- else {
- console.log(msg);
- return msg;
- }
-};
-
-SwaggerOperation.prototype.asCurl = function (args) {
- var results = [];
- var i;
-
- var headers = SwaggerRequest.prototype.setHeaders(args, {}, this);
- for(i = 0; i < this.parameters.length; i++) {
- var param = this.parameters[i];
- if(param.paramType && param.paramType === 'header' && args[param.name]) {
- headers[param.name] = args[param.name];
- }
- }
-
- var key;
- for (key in headers) {
- results.push('--header "' + key + ': ' + headers[key] + '"');
- }
- return 'curl ' + (results.join(' ')) + ' ' + this.urlify(args);
-};
-
-SwaggerOperation.prototype.formatXml = function (xml) {
- var contexp, formatted, indent, lastType, lines, ln, pad, reg, transitions, wsexp, _fn, _i, _len;
- reg = /(>)(<)(\/*)/g;
- wsexp = /[ ]*(.*)[ ]+\n/g;
- contexp = /(<.+>)(.+\n)/g;
- xml = xml.replace(reg, '$1\n$2$3').replace(wsexp, '$1\n').replace(contexp, '$1\n$2');
- pad = 0;
- formatted = '';
- lines = xml.split('\n');
- indent = 0;
- lastType = 'other';
- transitions = {
- 'single->single': 0,
- 'single->closing': -1,
- 'single->opening': 0,
- 'single->other': 0,
- 'closing->single': 0,
- 'closing->closing': -1,
- 'closing->opening': 0,
- 'closing->other': 0,
- 'opening->single': 1,
- 'opening->closing': 0,
- 'opening->opening': 1,
- 'opening->other': 1,
- 'other->single': 0,
- 'other->closing': -1,
- 'other->opening': 0,
- 'other->other': 0
- };
- _fn = function (ln) {
- var fromTo, j, key, padding, type, types, value;
- types = {
- single: Boolean(ln.match(/<.+\/>/)),
- closing: Boolean(ln.match(/<\/.+>/)),
- opening: Boolean(ln.match(/<[^!?].*>/))
- };
- type = ((function () {
- var _results;
- _results = [];
- for (key in types) {
- value = types[key];
- if (value) {
- _results.push(key);
- }
- }
- return _results;
- })())[0];
- type = type === void 0 ? 'other' : type;
- fromTo = lastType + '->' + type;
- lastType = type;
- padding = '';
- indent += transitions[fromTo];
- padding = ((function () {
- var _j, _ref5, _results;
- _results = [];
- for (j = _j = 0, _ref5 = indent; 0 <= _ref5 ? _j < _ref5 : _j > _ref5; j = 0 <= _ref5 ? ++_j : --_j) {
- _results.push(' ');
- }
- return _results;
- })()).join('');
- if (fromTo === 'opening->closing') {
- formatted = formatted.substr(0, formatted.length - 1) + ln + '\n';
- } else {
- formatted += padding + ln + '\n';
- }
- };
- for (_i = 0, _len = lines.length; _i < _len; _i++) {
- ln = lines[_i];
- _fn(ln);
- }
- return formatted;
-};
-
-var SwaggerRequest = function (type, url, params, opts, successCallback, errorCallback, operation, execution) {
- var _this = this;
- var errors = [];
-
- this.useJQuery = (typeof operation.resource.useJQuery !== 'undefined' ? operation.resource.useJQuery : null);
- this.type = (type || errors.push('SwaggerRequest type is required (get/post/put/delete/patch/options).'));
- this.url = (url || errors.push('SwaggerRequest url is required.'));
- this.params = params;
- this.opts = opts;
- this.successCallback = (successCallback || errors.push('SwaggerRequest successCallback is required.'));
- this.errorCallback = (errorCallback || errors.push('SwaggerRequest error callback is required.'));
- this.operation = (operation || errors.push('SwaggerRequest operation is required.'));
- this.execution = execution;
- this.headers = (params.headers || {});
-
- if (errors.length > 0) {
- throw errors;
- }
-
- this.type = this.type.toUpperCase();
-
- // set request, response content type headers
- var headers = this.setHeaders(params, opts, this.operation);
- var body = params.body;
-
- // encode the body for form submits
- if (headers['Content-Type']) {
- var key, value, values = {}, i;
- var operationParams = this.operation.parameters;
- for (i = 0; i < operationParams.length; i++) {
- var param = operationParams[i];
- if (param.paramType === 'form')
- values[param.name] = param;
- }
-
- if (headers['Content-Type'].indexOf('application/x-www-form-urlencoded') === 0) {
- var encoded = '';
- for (key in values) {
- value = this.params[key];
- if (typeof value !== 'undefined') {
- if (encoded !== '')
- encoded += '&';
- encoded += encodeURIComponent(key) + '=' + encodeURIComponent(value);
- }
- }
- body = encoded;
- }
- else if (headers['Content-Type'].indexOf('multipart/form-data') === 0) {
- // encode the body for form submits
- var data = '';
- var boundary = '----SwaggerFormBoundary' + Date.now();
- for (key in values) {
- value = this.params[key];
- if (typeof value !== 'undefined') {
- data += '--' + boundary + '\n';
- data += 'Content-Disposition: form-data; name="' + key + '"';
- data += '\n\n';
- data += value + '\n';
- }
- }
- data += '--' + boundary + '--\n';
- headers['Content-Type'] = 'multipart/form-data; boundary=' + boundary;
- body = data;
- }
- }
-
- var obj;
- if (!((this.headers) && (this.headers.mock))) {
- obj = {
- url: this.url,
- method: this.type,
- headers: headers,
- body: body,
- useJQuery: this.useJQuery,
- on: {
- error: function (response) {
- return _this.errorCallback(response, _this.opts.parent);
- },
- redirect: function (response) {
- return _this.successCallback(response, _this.opts.parent);
- },
- 307: function (response) {
- return _this.successCallback(response, _this.opts.parent);
- },
- response: function (response) {
- return _this.successCallback(response, _this.opts.parent);
- }
- }
- };
-
- var status = false;
- if (this.operation.resource && this.operation.resource.api && this.operation.resource.api.clientAuthorizations) {
- // Get the client authorizations from the resource declaration
- status = this.operation.resource.api.clientAuthorizations.apply(obj, this.operation.authorizations);
- } else {
- // Get the client authorization from the default authorization declaration
- var e;
- if (typeof window !== 'undefined') {
- e = window;
- } else {
- e = exports;
- }
- status = e.authorizations.apply(obj, this.operation.authorizations);
- }
-
- if (!opts.mock) {
- if (status !== false) {
- new SwaggerHttp().execute(obj);
- } else {
- obj.canceled = true;
- }
- } else {
- return obj;
- }
- }
- return obj;
-};
-
-SwaggerRequest.prototype.setHeaders = function (params, opts, operation) {
- // default type
- var accepts = opts.responseContentType || 'application/json';
- var consumes = opts.requestContentType || 'application/json';
-
- var allDefinedParams = operation.parameters;
- var definedFormParams = [];
- var definedFileParams = [];
- var body = params.body;
- var headers = {};
-
- // get params from the operation and set them in definedFileParams, definedFormParams, headers
- var i;
- for (i = 0; i < allDefinedParams.length; i++) {
- var param = allDefinedParams[i];
- if (param.paramType === 'form')
- definedFormParams.push(param);
- else if (param.paramType === 'file')
- definedFileParams.push(param);
- else if (param.paramType === 'header' && this.params.headers) {
- var key = param.name;
- var headerValue = this.params.headers[param.name];
- if (typeof this.params.headers[param.name] !== 'undefined')
- headers[key] = headerValue;
- }
- }
-
- // if there's a body, need to set the accepts header via requestContentType
- if (body && (this.type === 'POST' || this.type === 'PUT' || this.type === 'PATCH' || this.type === 'DELETE')) {
- if (this.opts.requestContentType)
- consumes = this.opts.requestContentType;
- } else {
- // if any form params, content type must be set
- if (definedFormParams.length > 0) {
- if (definedFileParams.length > 0)
- consumes = 'multipart/form-data';
- else
- consumes = 'application/x-www-form-urlencoded';
- }
- else if (this.type === 'DELETE')
- body = '{}';
- else if (this.type != 'DELETE')
- consumes = null;
- }
-
- if (consumes && this.operation.consumes) {
- if (this.operation.consumes.indexOf(consumes) === -1) {
- log('server doesn\'t consume ' + consumes + ', try ' + JSON.stringify(this.operation.consumes));
- }
- }
-
- if (this.opts && this.opts.responseContentType) {
- accepts = this.opts.responseContentType;
- } else {
- accepts = 'application/json';
- }
- if (accepts && operation.produces) {
- if (operation.produces.indexOf(accepts) === -1) {
- log('server can\'t produce ' + accepts);
- }
- }
-
- if ((consumes && body !== '') || (consumes === 'application/x-www-form-urlencoded'))
- headers['Content-Type'] = consumes;
- if (accepts)
- headers.Accept = accepts;
- return headers;
-};
-
-/**
- * SwaggerHttp is a wrapper for executing requests
- */
-var SwaggerHttp = function() {};
-
-SwaggerHttp.prototype.execute = function(obj, opts) {
- if(obj && (typeof obj.useJQuery === 'boolean'))
- this.useJQuery = obj.useJQuery;
- else
- this.useJQuery = this.isIE8();
-
- if(obj && typeof obj.body === 'object') {
- if(obj.body.type && obj.body.type !== 'formData')
- obj.body = JSON.stringify(obj.body);
- else {
- obj.contentType = false;
- obj.processData = false;
- // delete obj.cache;
- delete obj.headers['Content-Type'];
- }
- }
-
- if(this.useJQuery)
- return new JQueryHttpClient(opts).execute(obj);
- else
- return new ShredHttpClient(opts).execute(obj);
-};
-
-SwaggerHttp.prototype.isIE8 = function() {
- var detectedIE = false;
- if (typeof navigator !== 'undefined' && navigator.userAgent) {
- nav = navigator.userAgent.toLowerCase();
- if (nav.indexOf('msie') !== -1) {
- var version = parseInt(nav.split('msie')[1]);
- if (version <= 8) {
- detectedIE = true;
- }
- }
- }
- return detectedIE;
-};
-
-/*
- * JQueryHttpClient lets a browser take advantage of JQuery's cross-browser magic.
- * NOTE: when jQuery is available it will export both '$' and 'jQuery' to the global space.
- * Since we are using closures here we need to alias it for internal use.
- */
-var JQueryHttpClient = function(options) {
- "use strict";
- if(!jQuery){
- var jQuery = window.jQuery;
- }
-};
-
-JQueryHttpClient.prototype.execute = function(obj) {
- var cb = obj.on;
- var request = obj;
-
- obj.type = obj.method;
- obj.cache = false;
- delete obj.useJQuery;
-
- /*
- obj.beforeSend = function(xhr) {
- var key, results;
- if (obj.headers) {
- results = [];
- for (key in obj.headers) {
- if (key.toLowerCase() === "content-type") {
- results.push(obj.contentType = obj.headers[key]);
- } else if (key.toLowerCase() === "accept") {
- results.push(obj.accepts = obj.headers[key]);
- } else {
- results.push(xhr.setRequestHeader(key, obj.headers[key]));
- }
- }
- return results;
- }
- };*/
-
- obj.data = obj.body;
- delete obj.body;
- obj.complete = function(response, textStatus, opts) {
- var headers = {},
- headerArray = response.getAllResponseHeaders().split("\n");
-
- for(var i = 0; i < headerArray.length; i++) {
- var toSplit = headerArray[i].trim();
- if(toSplit.length === 0)
- continue;
- var separator = toSplit.indexOf(":");
- if(separator === -1) {
- // Name but no value in the header
- headers[toSplit] = null;
- continue;
- }
- var name = toSplit.substring(0, separator).trim(),
- value = toSplit.substring(separator + 1).trim();
- headers[name] = value;
- }
-
- var out = {
- url: request.url,
- method: request.method,
- status: response.status,
- statusText: response.statusText,
- data: response.responseText,
- headers: headers
- };
-
- var contentType = (headers["content-type"]||headers["Content-Type"]||null);
- if(contentType) {
- if(contentType.indexOf("application/json") === 0 || contentType.indexOf("+json") > 0) {
- try {
- out.obj = response.responseJSON || JSON.parse(out.data) || {};
- } catch (ex) {
- // do not set out.obj
- log("unable to parse JSON content");
- }
- }
- }
-
- if(response.status >= 200 && response.status < 300)
- cb.response(out);
- else if(response.status === 0 || (response.status >= 400 && response.status < 599))
- cb.error(out);
- else
- return cb.response(out);
- };
-
- jQuery.support.cors = true;
- return jQuery.ajax(obj);
-};
-
-/*
- * ShredHttpClient is a light-weight, node or browser HTTP client
- */
-var ShredHttpClient = function(opts) {
- this.opts = (opts||{});
- this.isInitialized = false;
-
- var identity, toString;
-
- if (typeof window !== 'undefined') {
- this.Shred = require("./shred");
- this.content = require("./shred/content");
- }
- else
- this.Shred = require("shred");
- this.shred = new this.Shred(opts);
-};
-
-ShredHttpClient.prototype.initShred = function () {
- this.isInitialized = true;
- this.registerProcessors(this.shred);
-};
-
-ShredHttpClient.prototype.registerProcessors = function(shred) {
- var identity = function(x) {
- return x;
- };
- var toString = function(x) {
- return x.toString();
- };
-
- if (typeof window !== 'undefined') {
- this.content.registerProcessor(["application/json; charset=utf-8", "application/json", "json"], {
- parser: identity,
- stringify: toString
- });
- } else {
- this.Shred.registerProcessor(["application/json; charset=utf-8", "application/json", "json"], {
- parser: identity,
- stringify: toString
- });
- }
-};
-
-ShredHttpClient.prototype.execute = function(obj) {
- if(!this.isInitialized)
- this.initShred();
-
- var cb = obj.on, res;
- var transform = function(response) {
- var out = {
- headers: response._headers,
- url: response.request.url,
- method: response.request.method,
- status: response.status,
- data: response.content.data
- };
-
- var headers = response._headers.normalized || response._headers;
- var contentType = (headers["content-type"]||headers["Content-Type"]||null);
-
- if(contentType) {
- if(contentType.indexOf("application/json") === 0 || contentType.indexOf("+json") > 0) {
- if(response.content.data && response.content.data !== "")
- try{
- out.obj = JSON.parse(response.content.data);
- }
- catch (e) {
- // unable to parse
- }
- else
- out.obj = {};
- }
- }
- return out;
- };
-
- // Transform an error into a usable response-like object
- var transformError = function (error) {
- var out = {
- // Default to a status of 0 - The client will treat this as a generic permissions sort of error
- status: 0,
- data: error.message || error
- };
-
- if (error.code) {
- out.obj = error;
-
- if (error.code === 'ENOTFOUND' || error.code === 'ECONNREFUSED') {
- // We can tell the client that this should be treated as a missing resource and not as a permissions thing
- out.status = 404;
- }
- }
- return out;
- };
-
- res = {
- error: function (response) {
- if (obj)
- return cb.error(transform(response));
- },
- // Catch the Shred error raised when the request errors as it is made (i.e. No Response is coming)
- request_error: function (err) {
- if (obj)
- return cb.error(transformError(err));
- },
- response: function (response) {
- if (obj) {
- return cb.response(transform(response));
- }
- }
- };
- if (obj) {
- obj.on = res;
- }
- return this.shred.request(obj);
-};
-
-
-var e = (typeof window !== 'undefined' ? window : exports);
-
-e.authorizations = authorizations = new SwaggerAuthorizations();
-e.ApiKeyAuthorization = ApiKeyAuthorization;
-e.PasswordAuthorization = PasswordAuthorization;
-e.CookieAuthorization = CookieAuthorization;
-e.SwaggerClient = SwaggerClient;
-e.SwaggerApi = SwaggerClient;
-e.Operation = Operation;
-e.Model = Model;
-e.addModel = addModel;
-e.Resolver = Resolver;
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * swagger-client - swagger.js is a javascript client for use with swaggering APIs.
+ * @version v2.1.9-M1
+ * @link http://swagger.io
+ * @license apache 2.0
+ */
+(function(){
+var ArrayModel = function(definition) {
+ this.name = "arrayModel";
+ this.definition = definition || {};
+ this.properties = [];
+
+ var requiredFields = definition.enum || [];
+ var innerType = definition.items;
+ if(innerType) {
+ if(innerType.type) {
+ this.type = typeFromJsonSchema(innerType.type, innerType.format);
+ }
+ else {
+ this.ref = innerType.$ref;
+ }
+ }
+ return this;
+};
+
+ArrayModel.prototype.createJSONSample = function(modelsToIgnore) {
+ var result;
+ modelsToIgnore = (modelsToIgnore||{});
+ if(this.type) {
+ result = this.type;
+ }
+ else if (this.ref) {
+ var name = simpleRef(this.ref);
+ if(typeof modelsToIgnore[name] === 'undefined') {
+ modelsToIgnore[name] = this;
+ result = models[name].createJSONSample(modelsToIgnore);
+ }
+ else {
+ return name;
+ }
+ }
+ return [ result ];
+};
+
+ArrayModel.prototype.getSampleValue = function(modelsToIgnore) {
+ var result;
+ modelsToIgnore = (modelsToIgnore || {});
+ if(this.type) {
+ result = type;
+ }
+ else if (this.ref) {
+ var name = simpleRef(this.ref);
+ result = models[name].getSampleValue(modelsToIgnore);
+ }
+ return [ result ];
+};
+
+ArrayModel.prototype.getMockSignature = function(modelsToIgnore) {
+ var propertiesStr = [];
+ var i, prop;
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ propertiesStr.push(prop.toString());
+ }
+
+ var strong = '<span class="strong">';
+ var stronger = '<span class="stronger">';
+ var strongClose = '</span>';
+ var classOpen = strong + 'array' + ' {' + strongClose;
+ var classClose = strong + '}' + strongClose;
+ var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
+
+ if (!modelsToIgnore)
+ modelsToIgnore = {};
+ modelsToIgnore[this.name] = this;
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ var ref = prop.$ref;
+ var model = models[ref];
+ if (model && typeof modelsToIgnore[ref] === 'undefined') {
+ returnVal = returnVal + ('<br>' + model.getMockSignature(modelsToIgnore));
+ }
+ }
+ return returnVal;
+};
+
+
+/**
+ * SwaggerAuthorizations applys the correct authorization to an operation being executed
+ */
+var SwaggerAuthorizations = function() {
+ this.authz = {};
+};
+
+SwaggerAuthorizations.prototype.add = function(name, auth) {
+ this.authz[name] = auth;
+ return auth;
+};
+
+SwaggerAuthorizations.prototype.remove = function(name) {
+ return delete this.authz[name];
+};
+
+SwaggerAuthorizations.prototype.apply = function (obj, authorizations) {
+ var status = null;
+ var key, name, value, result;
+
+ // if the "authorizations" key is undefined, or has an empty array, add all keys
+ if (typeof authorizations === 'undefined' || Object.keys(authorizations).length === 0) {
+ for (key in this.authz) {
+ value = this.authz[key];
+ result = value.apply(obj, authorizations);
+ if (result === true)
+ status = true;
+ }
+ }
+ else {
+ // 2.0 support
+ if (Array.isArray(authorizations)) {
+
+ for (var i = 0; i < authorizations.length; i++) {
+ var auth = authorizations[i];
+ for (name in auth) {
+ for (key in this.authz) {
+ if (key == name) {
+ value = this.authz[key];
+ result = value.apply(obj, authorizations);
+ if (result === true)
+ status = true;
+ }
+ }
+ }
+ }
+ }
+ else {
+ // 1.2 support
+ for (name in authorizations) {
+ for (key in this.authz) {
+ if (key == name) {
+ value = this.authz[key];
+ result = value.apply(obj, authorizations);
+ if (result === true)
+ status = true;
+ }
+ }
+ }
+ }
+ }
+
+ return status;
+};
+
+/**
+ * ApiKeyAuthorization allows a query param or header to be injected
+ */
+var ApiKeyAuthorization = function(name, value, type) {
+ this.name = name;
+ this.value = value;
+ this.type = type;
+};
+
+ApiKeyAuthorization.prototype.apply = function(obj, authorizations) {
+ if (this.type === "query") {
+ if (obj.url.indexOf('?') > 0)
+ obj.url = obj.url + "&" + this.name + "=" + this.value;
+ else
+ obj.url = obj.url + "?" + this.name + "=" + this.value;
+ return true;
+ } else if (this.type === "header") {
+ obj.headers[this.name] = this.value;
+ return true;
+ }
+};
+
+var CookieAuthorization = function(cookie) {
+ this.cookie = cookie;
+};
+
+CookieAuthorization.prototype.apply = function(obj, authorizations) {
+ obj.cookieJar = obj.cookieJar || CookieJar();
+ obj.cookieJar.setCookie(this.cookie);
+ return true;
+};
+
+/**
+ * Password Authorization is a basic auth implementation
+ */
+var PasswordAuthorization = function(name, username, password) {
+ this.name = name;
+ this.username = username;
+ this.password = password;
+ this._btoa = null;
+ if (typeof window !== 'undefined')
+ this._btoa = btoa;
+ else
+ this._btoa = require("btoa");
+};
+
+PasswordAuthorization.prototype.apply = function(obj, authorizations) {
+ var base64encoder = this._btoa;
+ obj.headers.Authorization = "Basic " + base64encoder(this.username + ":" + this.password);
+ return true;
+};
+var __bind = function(fn, me){
+ return function(){
+ return fn.apply(me, arguments);
+ };
+};
+
+fail = function(message) {
+ log(message);
+};
+
+log = function(){
+ log.history = log.history || [];
+ log.history.push(arguments);
+ if(this.console){
+ console.log( Array.prototype.slice.call(arguments)[0] );
+ }
+};
+
+if (!Array.prototype.indexOf) {
+ Array.prototype.indexOf = function(obj, start) {
+ for (var i = (start || 0), j = this.length; i < j; i++) {
+ if (this[i] === obj) { return i; }
+ }
+ return -1;
+ };
+}
+
+/**
+ * allows override of the default value based on the parameter being
+ * supplied
+ **/
+var applyParameterMacro = function (operation, parameter) {
+ var e = (typeof window !== 'undefined' ? window : exports);
+ if(e.parameterMacro)
+ return e.parameterMacro(operation, parameter);
+ else
+ return parameter.defaultValue;
+};
+
+/**
+ * allows overriding the default value of an model property
+ **/
+var applyModelPropertyMacro = function (model, property) {
+ var e = (typeof window !== 'undefined' ? window : exports);
+ if(e.modelPropertyMacro)
+ return e.modelPropertyMacro(model, property);
+ else
+ return property.defaultValue;
+};
+
+/**
+ * PrimitiveModel
+ **/
+var PrimitiveModel = function(definition) {
+ this.name = "name";
+ this.definition = definition || {};
+ this.properties = [];
+
+ var requiredFields = definition.enum || [];
+ this.type = typeFromJsonSchema(definition.type, definition.format);
+};
+
+PrimitiveModel.prototype.createJSONSample = function(modelsToIgnore) {
+ var result = this.type;
+ return result;
+};
+
+PrimitiveModel.prototype.getSampleValue = function() {
+ var result = this.type;
+ return null;
+};
+
+PrimitiveModel.prototype.getMockSignature = function(modelsToIgnore) {
+ var propertiesStr = [];
+ var i, prop;
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ propertiesStr.push(prop.toString());
+ }
+
+ var strong = '<span class="strong">';
+ var stronger = '<span class="stronger">';
+ var strongClose = '</span>';
+ var classOpen = strong + this.name + ' {' + strongClose;
+ var classClose = strong + '}' + strongClose;
+ var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
+
+ if (!modelsToIgnore)
+ modelsToIgnore = {};
+ modelsToIgnore[this.name] = this;
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ var ref = prop.$ref;
+ var model = models[ref];
+ if (model && typeof modelsToIgnore[ref] === 'undefined') {
+ returnVal = returnVal + ('<br>' + model.getMockSignature(modelsToIgnore));
+ }
+ }
+ return returnVal;
+};
+/**
+ * Resolves a spec's remote references
+ */
+var Resolver = function (){};
+
+Resolver.prototype.resolve = function(spec, callback, scope) {
+ this.scope = (scope || this);
+ var host, name, path, property, propertyName, type;
+ var processedCalls = 0, resolvedRefs = {}, unresolvedRefs = {};
+
+ // store objects for dereferencing
+ var resolutionTable = {};
+
+ // models
+ for(name in spec.definitions) {
+ var model = spec.definitions[name];
+ for(propertyName in model.properties) {
+ property = model.properties[propertyName];
+ this.resolveTo(property, resolutionTable);
+ }
+ }
+ // operations
+ for(name in spec.paths) {
+ var method, operation, responseCode;
+ path = spec.paths[name];
+ for(method in path) {
+ operation = path[method];
+ var i, parameters = operation.parameters;
+ for(i in parameters) {
+ var parameter = parameters[i];
+ if(parameter.in === 'body' && parameter.schema) {
+ this.resolveTo(parameter.schema, resolutionTable);
+ }
+ if(parameter.$ref) {
+ this.resolveInline(spec, parameter, resolutionTable, unresolvedRefs);
+ }
+ }
+ for(responseCode in operation.responses) {
+ var response = operation.responses[responseCode];
+ if(response.schema) {
+ this.resolveTo(response.schema, resolutionTable);
+ }
+ }
+ }
+ }
+ // get hosts
+ var opts = {}, expectedCalls = 0;
+ for(name in resolutionTable) {
+ var parts = name.split('#');
+ if(parts.length == 2) {
+ host = parts[0]; path = parts[1];
+ if(!Array.isArray(opts[host])) {
+ opts[host] = [];
+ expectedCalls += 1;
+ }
+ opts[host].push(path);
+ }
+ }
+
+ for(name in opts) {
+ var self = this, opt = opts[name];
+ host = name;
+
+ var obj = {
+ useJQuery: false, // TODO
+ url: host,
+ method: "get",
+ headers: {
+ accept: this.scope.swaggerRequestHeaders || 'application/json'
+ },
+ on: {
+ error: function(response) {
+ processedCalls += 1;
+ var i;
+ for(i = 0; i < opt.length; i++) {
+ // fail all of these
+ var resolved = host + '#' + opt[i];
+ unresolvedRefs[resolved] = null;
+ }
+ if(processedCalls === expectedCalls)
+ self.finish(spec, resolutionTable, resolvedRefs, unresolvedRefs, callback);
+ },
+ response: function(response) {
+ var i, j, swagger = response.obj;
+ processedCalls += 1;
+ for(i = 0; i < opt.length; i++) {
+ var location = swagger, path = opt[i], parts = path.split('/');
+ for(j = 0; j < parts.length; j++) {
+ var segment = parts[j];
+ if(typeof location === 'undefined')
+ break;
+ if(segment.length > 0)
+ location = location[segment];
+ }
+ var resolved = host + '#' + path, resolvedName = parts[j-1];
+ if(typeof location !== 'undefined') {
+ resolvedRefs[resolved] = {
+ name: resolvedName,
+ obj: location
+ };
+ }
+ else unresolvedRefs[resolved] = null;
+ }
+ if(processedCalls === expectedCalls)
+ self.finish(spec, resolutionTable, resolvedRefs, unresolvedRefs, callback);
+ }
+ }
+ };
+ authorizations.apply(obj);
+ new SwaggerHttp().execute(obj);
+ }
+ if(Object.keys(opts).length === 0)
+ callback.call(this.scope, spec, unresolvedRefs);
+};
+
+Resolver.prototype.finish = function(spec, resolutionTable, resolvedRefs, unresolvedRefs, callback) {
+ // walk resolution table and replace with resolved refs
+ var ref;
+ for(ref in resolutionTable) {
+ var i, locations = resolutionTable[ref];
+ for(i = 0; i < locations.length; i++) {
+ var resolvedTo = resolvedRefs[locations[i].obj.$ref];
+ if(resolvedTo) {
+ if(!spec.definitions)
+ spec.definitions = {};
+ if(locations[i].resolveAs === '$ref') {
+ spec.definitions[resolvedTo.name] = resolvedTo.obj;
+ locations[i].obj.$ref = '#/definitions/' + resolvedTo.name;
+ }
+ else if (locations[i].resolveAs === 'inline') {
+ var key;
+ var targetObj = locations[i].obj;
+ delete targetObj.$ref;
+ for(key in resolvedTo.obj) {
+ targetObj[key] = resolvedTo.obj[key];
+ }
+ }
+ }
+ }
+ }
+ callback.call(this.scope, spec, unresolvedRefs);
+};
+
+/**
+ * immediately in-lines local refs, queues remote refs
+ * for inline resolution
+ */
+Resolver.prototype.resolveInline = function (spec, property, objs, unresolvedRefs) {
+ var ref = property.$ref;
+ if(ref) {
+ if(ref.indexOf('http') === 0) {
+ if(Array.isArray(objs[ref])) {
+ objs[ref].push({obj: property, resolveAs: 'inline'});
+ }
+ else {
+ objs[ref] = [{obj: property, resolveAs: 'inline'}];
+ }
+ }
+ else if (ref.indexOf('#') === 0) {
+ // local resolve
+ var shortenedRef = ref.substring(1);
+ var i, parts = shortenedRef.split('/'), location = spec;
+ for(i = 0; i < parts.length; i++) {
+ var part = parts[i];
+ if(part.length > 0) {
+ location = location[part];
+ }
+ }
+ if(location) {
+ delete property.$ref;
+ var key;
+ for(key in location) {
+ property[key] = location[key];
+ }
+ }
+ else unresolvedRefs[ref] = null;
+ }
+ }
+ else if(property.type === 'array') {
+ this.resolveTo(property.items, objs);
+ }
+};
+
+Resolver.prototype.resolveTo = function (property, objs) {
+ var ref = property.$ref;
+ if(ref) {
+ if(ref.indexOf('http') === 0) {
+ if(Array.isArray(objs[ref])) {
+ objs[ref].push({obj: property, resolveAs: '$ref'});
+ }
+ else {
+ objs[ref] = [{obj: property, resolveAs: '$ref'}];
+ }
+ }
+ }
+ else if(property.type === 'array') {
+ var items = property.items;
+ this.resolveTo(items, objs);
+ }
+};
+var addModel = function(name, model) {
+ models[name] = model;
+};
+
+var SwaggerClient = function(url, options) {
+ this.isBuilt = false;
+ this.url = null;
+ this.debug = false;
+ this.basePath = null;
+ this.modelsArray = [];
+ this.authorizations = null;
+ this.authorizationScheme = null;
+ this.isValid = false;
+ this.info = null;
+ this.useJQuery = false;
+ this.resourceCount = 0;
+
+ if(typeof url !== 'undefined')
+ return this.initialize(url, options);
+};
+
+SwaggerClient.prototype.initialize = function (url, options) {
+ this.models = models = {};
+
+ options = (options||{});
+
+ if(typeof url === 'string')
+ this.url = url;
+ else if(typeof url === 'object') {
+ options = url;
+ this.url = options.url;
+ }
+ this.swaggerRequstHeaders = options.swaggerRequstHeaders || 'application/json;charset=utf-8,*/*';
+ this.defaultSuccessCallback = options.defaultSuccessCallback || null;
+ this.defaultErrorCallback = options.defaultErrorCallback || null;
+
+ if (typeof options.success === 'function')
+ this.success = options.success;
+
+ if (options.useJQuery)
+ this.useJQuery = options.useJQuery;
+
+ if (options.authorizations) {
+ this.clientAuthorizations = options.authorizations;
+ } else {
+ this.clientAuthorizations = authorizations;
+ }
+
+ this.supportedSubmitMethods = options.supportedSubmitMethods || [];
+ this.failure = options.failure || function() {};
+ this.progress = options.progress || function() {};
+ this.spec = options.spec;
+ this.options = options;
+
+ if (typeof options.success === 'function') {
+ this.ready = true;
+ this.build();
+ }
+};
+
+SwaggerClient.prototype.build = function(mock) {
+ if (this.isBuilt) return this;
+ var self = this;
+ this.progress('fetching resource list: ' + this.url);
+ var obj = {
+ useJQuery: this.useJQuery,
+ url: this.url,
+ method: "get",
+ headers: {
+ accept: this.swaggerRequstHeaders
+ },
+ on: {
+ error: function(response) {
+ if (self.url.substring(0, 4) !== 'http')
+ return self.fail('Please specify the protocol for ' + self.url);
+ else if (response.status === 0)
+ return self.fail('Can\'t read from server. It may not have the appropriate access-control-origin settings.');
+ else if (response.status === 404)
+ return self.fail('Can\'t read swagger JSON from ' + self.url);
+ else
+ return self.fail(response.status + ' : ' + response.statusText + ' ' + self.url);
+ },
+ response: function(resp) {
+ var responseObj = resp.obj || JSON.parse(resp.data);
+ self.swaggerVersion = responseObj.swaggerVersion;
+
+ if(responseObj.swagger && parseInt(responseObj.swagger) === 2) {
+ self.swaggerVersion = responseObj.swagger;
+ new Resolver().resolve(responseObj, self.buildFromSpec, self);
+ self.isValid = true;
+ }
+ else {
+ if (self.swaggerVersion === '1.2') {
+ return self.buildFrom1_2Spec(responseObj);
+ } else {
+ return self.buildFrom1_1Spec(responseObj);
+ }
+ }
+ }
+ }
+ };
+ if(this.spec) {
+ setTimeout(function() {
+ new Resolver().resolve(self.spec, self.buildFromSpec, self);
+ }, 10);
+ }
+ else {
+ authorizations.apply(obj);
+ if(mock)
+ return obj;
+ new SwaggerHttp().execute(obj);
+ }
+ return this;
+};
+
+SwaggerClient.prototype.buildFromSpec = function(response) {
+ if(this.isBuilt) return this;
+
+ this.info = response.info || {};
+ this.title = response.title || '';
+ this.host = response.host || '';
+ this.schemes = response.schemes || [];
+ this.basePath = response.basePath || '';
+ this.apis = {};
+ this.apisArray = [];
+ this.consumes = response.consumes;
+ this.produces = response.produces;
+ this.securityDefinitions = response.securityDefinitions;
+
+ // legacy support
+ this.authSchemes = response.securityDefinitions;
+
+ var definedTags = {};
+ if(Array.isArray(response.tags)) {
+ definedTags = {};
+ for(k = 0; k < response.tags.length; k++) {
+ var t = response.tags[k];
+ definedTags[t.name] = t;
+ }
+ }
+
+ var location;
+ if(typeof this.url === 'string') {
+ location = this.parseUri(this.url);
+ }
+
+ if(typeof this.schemes === 'undefined' || this.schemes.length === 0) {
+ this.scheme = location.scheme || 'http';
+ }
+ else {
+ this.scheme = this.schemes[0];
+ }
+
+ if(typeof this.host === 'undefined' || this.host === '') {
+ this.host = location.host;
+ if (location.port) {
+ this.host = this.host + ':' + location.port;
+ }
+ }
+
+ this.definitions = response.definitions;
+ var key;
+ for(key in this.definitions) {
+ var model = new Model(key, this.definitions[key]);
+ if(model) {
+ models[key] = model;
+ }
+ }
+
+ // get paths, create functions for each operationId
+ var path;
+ var operations = [];
+ for(path in response.paths) {
+ if(typeof response.paths[path] === 'object') {
+ var httpMethod;
+ for(httpMethod in response.paths[path]) {
+ if(['delete', 'get', 'head', 'options', 'patch', 'post', 'put'].indexOf(httpMethod) === -1) {
+ continue;
+ }
+ var operation = response.paths[path][httpMethod];
+ var tags = operation.tags;
+ if(typeof tags === 'undefined') {
+ operation.tags = [ 'default' ];
+ tags = operation.tags;
+ }
+ var operationId = this.idFromOp(path, httpMethod, operation);
+ var operationObject = new Operation (
+ this,
+ operation.scheme,
+ operationId,
+ httpMethod,
+ path,
+ operation,
+ this.definitions
+ );
+ // bind this operation's execute command to the api
+ if(tags.length > 0) {
+ var i;
+ for(i = 0; i < tags.length; i++) {
+ var tag = this.tagFromLabel(tags[i]);
+ var operationGroup = this[tag];
+ if(typeof this.apis[tag] === 'undefined')
+ this.apis[tag] = {};
+ if(typeof operationGroup === 'undefined') {
+ this[tag] = [];
+ operationGroup = this[tag];
+ operationGroup.operations = {};
+ operationGroup.label = tag;
+ operationGroup.apis = [];
+ var tagObject = definedTags[tag];
+ if(typeof tagObject === 'object') {
+ operationGroup.description = tagObject.description;
+ operationGroup.externalDocs = tagObject.externalDocs;
+ }
+ this[tag].help = this.help.bind(operationGroup);
+ this.apisArray.push(new OperationGroup(tag, operationGroup.description, operationGroup.externalDocs, operationObject));
+ }
+ if(typeof this.apis[tag].help !== 'function')
+ this.apis[tag].help = this.help.bind(operationGroup);
+ // bind to the apis object
+ this.apis[tag][operationId] = operationObject.execute.bind(operationObject);
+ this.apis[tag][operationId].help = operationObject.help.bind(operationObject);
+ this.apis[tag][operationId].asCurl = operationObject.asCurl.bind(operationObject);
+ operationGroup[operationId] = operationObject.execute.bind(operationObject);
+ operationGroup[operationId].help = operationObject.help.bind(operationObject);
+ operationGroup[operationId].asCurl = operationObject.asCurl.bind(operationObject);
+
+ operationGroup.apis.push(operationObject);
+ operationGroup.operations[operationId] = operationObject;
+
+ // legacy UI feature
+ var j;
+ var api;
+ for(j = 0; j < this.apisArray.length; j++) {
+ if(this.apisArray[j].tag === tag) {
+ api = this.apisArray[j];
+ }
+ }
+ if(api) {
+ api.operationsArray.push(operationObject);
+ }
+ }
+ }
+ else {
+ log('no group to bind to');
+ }
+ }
+ }
+ }
+ this.isBuilt = true;
+ if (this.success) {
+ this.isValid = true;
+ this.isBuilt = true;
+ this.success();
+ }
+ return this;
+};
+
+SwaggerClient.prototype.parseUri = function(uri) {
+ var urlParseRE = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;
+ var parts = urlParseRE.exec(uri);
+ return {
+ scheme: parts[4].replace(':',''),
+ host: parts[11],
+ port: parts[12],
+ path: parts[15]
+ };
+};
+
+SwaggerClient.prototype.help = function(dontPrint) {
+ var i;
+ var output = 'operations for the "' + this.label + '" tag';
+ for(i = 0; i < this.apis.length; i++) {
+ var api = this.apis[i];
+ output += '\n * ' + api.nickname + ': ' + api.operation.summary;
+ }
+ if(dontPrint)
+ return output;
+ else {
+ log(output);
+ return output;
+ }
+};
+
+SwaggerClient.prototype.tagFromLabel = function(label) {
+ return label;
+};
+
+SwaggerClient.prototype.idFromOp = function(path, httpMethod, op) {
+ var opId = op.operationId || (path.substring(1) + '_' + httpMethod);
+ return opId.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()\+\s]/g,'_');
+};
+
+SwaggerClient.prototype.fail = function(message) {
+ this.failure(message);
+ throw message;
+};
+
+var OperationGroup = function(tag, description, externalDocs, operation) {
+ this.tag = tag;
+ this.path = tag;
+ this.description = description;
+ this.externalDocs = externalDocs;
+ this.name = tag;
+ this.operation = operation;
+ this.operationsArray = [];
+};
+
+var Operation = function(parent, scheme, operationId, httpMethod, path, args, definitions) {
+ var errors = [];
+ parent = parent||{};
+ args = args||{};
+
+ this.operations = {};
+ this.operation = args;
+ this.deprecated = args.deprecated;
+ this.consumes = args.consumes;
+ this.produces = args.produces;
+ this.parent = parent;
+ this.host = parent.host || 'localhost';
+ this.schemes = parent.schemes;
+ this.scheme = scheme || parent.scheme || 'http';
+ this.basePath = parent.basePath || '/';
+ this.nickname = (operationId||errors.push('Operations must have a nickname.'));
+ this.method = (httpMethod||errors.push('Operation ' + operationId + ' is missing method.'));
+ this.path = (path||errors.push('Operation ' + this.nickname + ' is missing path.'));
+ this.parameters = args !== null ? (args.parameters||[]) : {};
+ this.summary = args.summary || '';
+ this.responses = (args.responses||{});
+ this.type = null;
+ this.security = args.security;
+ this.authorizations = args.security;
+ this.description = args.description;
+ this.useJQuery = parent.useJQuery;
+
+ if(typeof this.deprecated === 'string') {
+ switch(this.deprecated.toLowerCase()) {
+ case 'true': case 'yes': case '1': {
+ this.deprecated = true;
+ break;
+ }
+ case 'false': case 'no': case '0': case null: {
+ this.deprecated = false;
+ break;
+ }
+ default: this.deprecated = Boolean(this.deprecated);
+ }
+ }
+
+ var i, model;
+
+ if(definitions) {
+ // add to global models
+ var key;
+ for(key in this.definitions) {
+ model = new Model(key, definitions[key]);
+ if(model) {
+ models[key] = model;
+ }
+ }
+ }
+ for(i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ if(param.type === 'array') {
+ param.isList = true;
+ param.allowMultiple = true;
+ }
+ var innerType = this.getType(param);
+ if(innerType && innerType.toString().toLowerCase() === 'boolean') {
+ param.allowableValues = {};
+ param.isList = true;
+ param['enum'] = ["true", "false"];
+ }
+ if(typeof param['enum'] !== 'undefined') {
+ var id;
+ param.allowableValues = {};
+ param.allowableValues.values = [];
+ param.allowableValues.descriptiveValues = [];
+ for(id = 0; id < param['enum'].length; id++) {
+ var value = param['enum'][id];
+ var isDefault = (value === param.default) ? true : false;
+ param.allowableValues.values.push(value);
+ param.allowableValues.descriptiveValues.push({value : value, isDefault: isDefault});
+ }
+ }
+ if(param.type === 'array') {
+ innerType = [innerType];
+ if(typeof param.allowableValues === 'undefined') {
+ // can't show as a list if no values to select from
+ delete param.isList;
+ delete param.allowMultiple;
+ }
+ }
+ param.signature = this.getModelSignature(innerType, models).toString();
+ param.sampleJSON = this.getModelSampleJSON(innerType, models);
+ param.responseClassSignature = param.signature;
+ }
+
+ var defaultResponseCode, response, responses = this.responses;
+
+ if(responses['200']) {
+ response = responses['200'];
+ defaultResponseCode = '200';
+ }
+ else if(responses['201']) {
+ response = responses['201'];
+ defaultResponseCode = '201';
+ }
+ else if(responses['202']) {
+ response = responses['202'];
+ defaultResponseCode = '202';
+ }
+ else if(responses['203']) {
+ response = responses['203'];
+ defaultResponseCode = '203';
+ }
+ else if(responses['204']) {
+ response = responses['204'];
+ defaultResponseCode = '204';
+ }
+ else if(responses['205']) {
+ response = responses['205'];
+ defaultResponseCode = '205';
+ }
+ else if(responses['206']) {
+ response = responses['206'];
+ defaultResponseCode = '206';
+ }
+ else if(responses['default']) {
+ response = responses['default'];
+ defaultResponseCode = 'default';
+ }
+
+ if(response && response.schema) {
+ var resolvedModel = this.resolveModel(response.schema, definitions);
+ delete responses[defaultResponseCode];
+ if(resolvedModel) {
+ this.successResponse = {};
+ this.successResponse[defaultResponseCode] = resolvedModel;
+ }
+ else {
+ this.successResponse = {};
+ this.successResponse[defaultResponseCode] = response.schema.type;
+ }
+ this.type = response;
+ }
+
+ if (errors.length > 0) {
+ if(this.resource && this.resource.api && this.resource.api.fail)
+ this.resource.api.fail(errors);
+ }
+
+ return this;
+};
+
+OperationGroup.prototype.sort = function(sorter) {
+
+};
+
+Operation.prototype.getType = function (param) {
+ var type = param.type;
+ var format = param.format;
+ var isArray = false;
+ var str;
+ if(type === 'integer' && format === 'int32')
+ str = 'integer';
+ else if(type === 'integer' && format === 'int64')
+ str = 'long';
+ else if(type === 'integer')
+ str = 'integer';
+ else if(type === 'string') {
+ if(format === 'date-time')
+ str = 'date-time';
+ else if(format === 'date')
+ str = 'date';
+ else
+ str = 'string';
+ }
+ else if(type === 'number' && format === 'float')
+ str = 'float';
+ else if(type === 'number' && format === 'double')
+ str = 'double';
+ else if(type === 'number')
+ str = 'double';
+ else if(type === 'boolean')
+ str = 'boolean';
+ else if(type === 'array') {
+ isArray = true;
+ if(param.items)
+ str = this.getType(param.items);
+ }
+ if(param.$ref)
+ str = param.$ref;
+
+ var schema = param.schema;
+ if(schema) {
+ var ref = schema.$ref;
+ if(ref) {
+ ref = simpleRef(ref);
+ if(isArray)
+ return [ ref ];
+ else
+ return ref;
+ }
+ else
+ return this.getType(schema);
+ }
+ if(isArray)
+ return [ str ];
+ else
+ return str;
+};
+
+Operation.prototype.resolveModel = function (schema, definitions) {
+ if(typeof schema.$ref !== 'undefined') {
+ var ref = schema.$ref;
+ if(ref.indexOf('#/definitions/') === 0)
+ ref = ref.substring('#/definitions/'.length);
+ if(definitions[ref]) {
+ return new Model(ref, definitions[ref]);
+ }
+ }
+ if(schema.type === 'array')
+ return new ArrayModel(schema);
+ else
+ return null;
+};
+
+Operation.prototype.help = function(dontPrint) {
+ var out = this.nickname + ': ' + this.summary + '\n';
+ for(var i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ var typeInfo = param.signature;
+ out += '\n * ' + param.name + ' (' + typeInfo + '): ' + param.description;
+ }
+ if(typeof dontPrint === 'undefined')
+ log(out);
+ return out;
+};
+
+Operation.prototype.getModelSignature = function(type, definitions) {
+ var isPrimitive, listType;
+
+ if(type instanceof Array) {
+ listType = true;
+ type = type[0];
+ }
+ else if(typeof type === 'undefined')
+ type = 'undefined';
+
+ if(type === 'string')
+ isPrimitive = true;
+ else
+ isPrimitive = (listType && definitions[listType]) || (definitions[type]) ? false : true;
+ if (isPrimitive) {
+ if(listType)
+ return 'Array[' + type + ']';
+ else
+ return type.toString();
+ } else {
+ if (listType)
+ return 'Array[' + definitions[type].getMockSignature() + ']';
+ else
+ return definitions[type].getMockSignature();
+ }
+};
+
+Operation.prototype.supportHeaderParams = function () {
+ return true;
+};
+
+Operation.prototype.supportedSubmitMethods = function () {
+ return this.parent.supportedSubmitMethods;
+};
+
+Operation.prototype.getHeaderParams = function (args) {
+ var headers = this.setContentTypes(args, {});
+ for(var i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ if(typeof args[param.name] !== 'undefined') {
+ if (param.in === 'header') {
+ var value = args[param.name];
+ if(Array.isArray(value))
+ value = value.toString();
+ headers[param.name] = value;
+ }
+ }
+ }
+ return headers;
+};
+
+Operation.prototype.urlify = function (args) {
+ var formParams = {};
+ var requestUrl = this.path;
+
+ // grab params from the args, build the querystring along the way
+ var querystring = '';
+ for(var i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ if(typeof args[param.name] !== 'undefined') {
+ if(param.in === 'path') {
+ var reg = new RegExp('\{' + param.name + '\}', 'gi');
+ var value = args[param.name];
+ if(Array.isArray(value))
+ value = this.encodePathCollection(param.collectionFormat, param.name, value);
+ else
+ value = this.encodePathParam(value);
+ requestUrl = requestUrl.replace(reg, value);
+ }
+ else if (param.in === 'query' && typeof args[param.name] !== 'undefined') {
+ if(querystring === '')
+ querystring += '?';
+ else
+ querystring += '&';
+ if(typeof param.collectionFormat !== 'undefined') {
+ var qp = args[param.name];
+ if(Array.isArray(qp))
+ querystring += this.encodeQueryCollection(param.collectionFormat, param.name, qp);
+ else
+ querystring += this.encodeQueryParam(param.name) + '=' + this.encodeQueryParam(args[param.name]);
+ }
+ else
+ querystring += this.encodeQueryParam(param.name) + '=' + this.encodeQueryParam(args[param.name]);
+ }
+ else if (param.in === 'formData')
+ formParams[param.name] = args[param.name];
+ }
+ }
+ var url = this.scheme + '://' + this.host;
+
+ if(this.basePath !== '/')
+ url += this.basePath;
+
+ return url + requestUrl + querystring;
+};
+
+Operation.prototype.getMissingParams = function(args) {
+ var missingParams = [];
+ // check required params, track the ones that are missing
+ var i;
+ for(i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ if(param.required === true) {
+ if(typeof args[param.name] === 'undefined')
+ missingParams = param.name;
+ }
+ }
+ return missingParams;
+};
+
+Operation.prototype.getBody = function(headers, args, opts) {
+ var formParams = {}, body, key;
+
+ for(var i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ if(typeof args[param.name] !== 'undefined') {
+ if (param.in === 'body') {
+ body = args[param.name];
+ } else if(param.in === 'formData') {
+ formParams[param.name] = args[param.name];
+ }
+ }
+ }
+
+ // handle form params
+ if(headers['Content-Type'] === 'application/x-www-form-urlencoded') {
+ var encoded = "";
+ for(key in formParams) {
+ value = formParams[key];
+ if(typeof value !== 'undefined'){
+ if(encoded !== "")
+ encoded += "&";
+ encoded += encodeURIComponent(key) + '=' + encodeURIComponent(value);
+ }
+ }
+ body = encoded;
+ }
+ else if (headers['Content-Type'] && headers['Content-Type'].indexOf('multipart/form-data') >= 0) {
+ if(opts.useJQuery) {
+ var bodyParam = new FormData();
+ bodyParam.type = 'formData';
+ for (key in formParams) {
+ value = args[key];
+ if (typeof value !== 'undefined') {
+ // required for jquery file upload
+ if(value.type === 'file' && value.value) {
+ delete headers['Content-Type'];
+ bodyParam.append(key, value.value);
+ }
+ else
+ bodyParam.append(key, value);
+ }
+ }
+ body = bodyParam;
+ }
+ }
+
+ return body;
+};
+
+/**
+ * gets sample response for a single operation
+ **/
+Operation.prototype.getModelSampleJSON = function(type, models) {
+ var isPrimitive, listType, sampleJson;
+
+ listType = (type instanceof Array);
+ isPrimitive = models[type] ? false : true;
+ sampleJson = isPrimitive ? void 0 : models[type].createJSONSample();
+ if (sampleJson) {
+ sampleJson = listType ? [sampleJson] : sampleJson;
+ if(typeof sampleJson == 'string')
+ return sampleJson;
+ else if(typeof sampleJson === 'object') {
+ var t = sampleJson;
+ if(sampleJson instanceof Array && sampleJson.length > 0) {
+ t = sampleJson[0];
+ }
+ if(t.nodeName) {
+ var xmlString = new XMLSerializer().serializeToString(t);
+ return this.formatXml(xmlString);
+ }
+ else
+ return JSON.stringify(sampleJson, null, 2);
+ }
+ else
+ return sampleJson;
+ }
+};
+
+/**
+ * legacy binding
+ **/
+Operation.prototype["do"] = function(args, opts, callback, error, parent) {
+ return this.execute(args, opts, callback, error, parent);
+};
+
+
+/**
+ * executes an operation
+ **/
+Operation.prototype.execute = function(arg1, arg2, arg3, arg4, parent) {
+ var args = arg1 || {};
+ var opts = {}, success, error;
+ if(typeof arg2 === 'object') {
+ opts = arg2;
+ success = arg3;
+ error = arg4;
+ }
+
+ if(typeof arg2 === 'function') {
+ success = arg2;
+ error = arg3;
+ }
+
+ success = (success||log);
+ error = (error||log);
+
+ if(opts.useJQuery)
+ this.useJQuery = opts.useJQuery;
+
+ var missingParams = this.getMissingParams(args);
+ if(missingParams.length > 0) {
+ var message = 'missing required params: ' + missingParams;
+ fail(message);
+ return;
+ }
+ var allHeaders = this.getHeaderParams(args);
+ var contentTypeHeaders = this.setContentTypes(args, opts);
+
+ var headers = {}, attrname;
+ for (attrname in allHeaders) { headers[attrname] = allHeaders[attrname]; }
+ for (attrname in contentTypeHeaders) { headers[attrname] = contentTypeHeaders[attrname]; }
+
+ var body = this.getBody(headers, args, opts);
+ var url = this.urlify(args);
+
+ var obj = {
+ url: url,
+ method: this.method.toUpperCase(),
+ body: body,
+ useJQuery: this.useJQuery,
+ headers: headers,
+ on: {
+ response: function(response) {
+ return success(response, parent);
+ },
+ error: function(response) {
+ return error(response, parent);
+ }
+ }
+ };
+ var status = authorizations.apply(obj, this.operation.security);
+ if(opts.mock === true)
+ return obj;
+ else
+ new SwaggerHttp().execute(obj, opts);
+};
+
+Operation.prototype.setContentTypes = function(args, opts) {
+ // default type
+ var accepts = 'application/json';
+ var consumes = args.parameterContentType || 'application/json';
+ var allDefinedParams = this.parameters;
+ var definedFormParams = [];
+ var definedFileParams = [];
+ var body;
+ var headers = {};
+
+ // get params from the operation and set them in definedFileParams, definedFormParams, headers
+ var i;
+ for(i = 0; i < allDefinedParams.length; i++) {
+ var param = allDefinedParams[i];
+ if(param.in === 'formData') {
+ if(param.type === 'file')
+ definedFileParams.push(param);
+ else
+ definedFormParams.push(param);
+ }
+ else if(param.in === 'header' && opts) {
+ var key = param.name;
+ var headerValue = opts[param.name];
+ if(typeof opts[param.name] !== 'undefined')
+ headers[key] = headerValue;
+ }
+ else if(param.in === 'body' && typeof args[param.name] !== 'undefined') {
+ body = args[param.name];
+ }
+ }
+
+ // if there's a body, need to set the consumes header via requestContentType
+ if (body && (this.method === 'post' || this.method === 'put' || this.method === 'patch' || this.method === 'delete')) {
+ if (opts.requestContentType)
+ consumes = opts.requestContentType;
+ } else {
+ // if any form params, content type must be set
+ if(definedFormParams.length > 0) {
+ if(opts.requestContentType) // override if set
+ consumes = opts.requestContentType;
+ else if(definedFileParams.length > 0) // if a file, must be multipart/form-data
+ consumes = 'multipart/form-data';
+ else // default to x-www-from-urlencoded
+ consumes = 'application/x-www-form-urlencoded';
+ }
+ else if (this.type == 'DELETE')
+ body = '{}';
+ else if (this.type != 'DELETE')
+ consumes = null;
+ }
+
+ if (consumes && this.consumes) {
+ if (this.consumes.indexOf(consumes) === -1) {
+ log('server doesn\'t consume ' + consumes + ', try ' + JSON.stringify(this.consumes));
+ }
+ }
+
+ if (opts.responseContentType) {
+ accepts = opts.responseContentType;
+ } else {
+ accepts = 'application/json';
+ }
+ if (accepts && this.produces) {
+ if (this.produces.indexOf(accepts) === -1) {
+ log('server can\'t produce ' + accepts);
+ }
+ }
+
+ if ((consumes && body !== '') || (consumes === 'application/x-www-form-urlencoded'))
+ headers['Content-Type'] = consumes;
+ if (accepts)
+ headers.Accept = accepts;
+ return headers;
+};
+
+Operation.prototype.asCurl = function (args) {
+ var obj = this.execute(args, {mock: true});
+ authorizations.apply(obj);
+ var results = [];
+ results.push('-X ' + this.method.toUpperCase());
+ if (obj.headers) {
+ var key;
+ for (key in obj.headers)
+ results.push('--header "' + key + ': ' + obj.headers[key] + '"');
+ }
+ if(obj.body) {
+ var body;
+ if(typeof obj.body === 'object')
+ body = JSON.stringify(obj.body);
+ else
+ body = obj.body;
+ results.push('-d "' + body.replace(/"/g, '\\"') + '"');
+ }
+ return 'curl ' + (results.join(' ')) + ' "' + obj.url + '"';
+};
+
+Operation.prototype.encodePathCollection = function(type, name, value) {
+ var encoded = '';
+ var i;
+ var separator = '';
+ if(type === 'ssv')
+ separator = '%20';
+ else if(type === 'tsv')
+ separator = '\\t';
+ else if(type === 'pipes')
+ separator = '|';
+ else
+ separator = ',';
+
+ for(i = 0; i < value.length; i++) {
+ if(i === 0)
+ encoded = this.encodeQueryParam(value[i]);
+ else
+ encoded += separator + this.encodeQueryParam(value[i]);
+ }
+ return encoded;
+};
+
+Operation.prototype.encodeQueryCollection = function(type, name, value) {
+ var encoded = '';
+ var i;
+ if(type === 'default' || type === 'multi') {
+ for(i = 0; i < value.length; i++) {
+ if(i > 0) encoded += '&';
+ encoded += this.encodeQueryParam(name) + '=' + this.encodeQueryParam(value[i]);
+ }
+ }
+ else {
+ var separator = '';
+ if(type === 'csv')
+ separator = ',';
+ else if(type === 'ssv')
+ separator = '%20';
+ else if(type === 'tsv')
+ separator = '\\t';
+ else if(type === 'pipes')
+ separator = '|';
+ else if(type === 'brackets') {
+ for(i = 0; i < value.length; i++) {
+ if(i !== 0)
+ encoded += '&';
+ encoded += this.encodeQueryParam(name) + '[]=' + this.encodeQueryParam(value[i]);
+ }
+ }
+ if(separator !== '') {
+ for(i = 0; i < value.length; i++) {
+ if(i === 0)
+ encoded = this.encodeQueryParam(name) + '=' + this.encodeQueryParam(value[i]);
+ else
+ encoded += separator + this.encodeQueryParam(value[i]);
+ }
+ }
+ }
+ return encoded;
+};
+
+Operation.prototype.encodeQueryParam = function(arg) {
+ return encodeURIComponent(arg);
+};
+
+/**
+ * TODO revisit, might not want to leave '/'
+ **/
+Operation.prototype.encodePathParam = function(pathParam) {
+ var encParts, part, parts, i, len;
+ pathParam = pathParam.toString();
+ if (pathParam.indexOf('/') === -1) {
+ return encodeURIComponent(pathParam);
+ } else {
+ parts = pathParam.split('/');
+ encParts = [];
+ for (i = 0, len = parts.length; i < len; i++) {
+ encParts.push(encodeURIComponent(parts[i]));
+ }
+ return encParts.join('/');
+ }
+};
+
+var Model = function(name, definition) {
+ this.name = name;
+ this.definition = definition || {};
+ this.properties = [];
+ var requiredFields = definition.required || [];
+ if(definition.type === 'array') {
+ var out = new ArrayModel(definition);
+ return out;
+ }
+ var key;
+ var props = definition.properties;
+ if(props) {
+ for(key in props) {
+ var required = false;
+ var property = props[key];
+ if(requiredFields.indexOf(key) >= 0)
+ required = true;
+ this.properties.push(new Property(key, property, required));
+ }
+ }
+};
+
+Model.prototype.createJSONSample = function(modelsToIgnore) {
+ var i, result = {}, representations = {};
+ modelsToIgnore = (modelsToIgnore||{});
+ modelsToIgnore[this.name] = this;
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ var sample = prop.getSampleValue(modelsToIgnore, representations);
+ result[prop.name] = sample;
+ }
+ delete modelsToIgnore[this.name];
+ return result;
+};
+
+Model.prototype.getSampleValue = function(modelsToIgnore) {
+ var i, obj = {}, representations = {};
+ for(i = 0; i < this.properties.length; i++ ) {
+ var property = this.properties[i];
+ obj[property.name] = property.sampleValue(false, modelsToIgnore, representations);
+ }
+ return obj;
+};
+
+Model.prototype.getMockSignature = function(modelsToIgnore) {
+ var i, prop, propertiesStr = [];
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ propertiesStr.push(prop.toString());
+ }
+ var strong = '<span class="strong">';
+ var stronger = '<span class="stronger">';
+ var strongClose = '</span>';
+ var classOpen = strong + this.name + ' {' + strongClose;
+ var classClose = strong + '}' + strongClose;
+ var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
+ if (!modelsToIgnore)
+ modelsToIgnore = {};
+
+ modelsToIgnore[this.name] = this;
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ var ref = prop.$ref;
+ var model = models[ref];
+ if (model && typeof modelsToIgnore[model.name] === 'undefined') {
+ returnVal = returnVal + ('<br>' + model.getMockSignature(modelsToIgnore));
+ }
+ }
+ return returnVal;
+};
+
+var Property = function(name, obj, required) {
+ this.schema = obj;
+ this.required = required;
+ if(obj.$ref)
+ this.$ref = simpleRef(obj.$ref);
+ else if (obj.type === 'array' && obj.items) {
+ if(obj.items.$ref)
+ this.$ref = simpleRef(obj.items.$ref);
+ else
+ obj = obj.items;
+ }
+ this.name = name;
+ this.description = obj.description;
+ this.obj = obj;
+ this.optional = true;
+ this.optional = !required;
+ this.default = obj.default || null;
+ this.example = obj.example !== undefined ? obj.example : null;
+ this.collectionFormat = obj.collectionFormat || null;
+ this.maximum = obj.maximum || null;
+ this.exclusiveMaximum = obj.exclusiveMaximum || null;
+ this.minimum = obj.minimum || null;
+ this.exclusiveMinimum = obj.exclusiveMinimum || null;
+ this.maxLength = obj.maxLength || null;
+ this.minLength = obj.minLength || null;
+ this.pattern = obj.pattern || null;
+ this.maxItems = obj.maxItems || null;
+ this.minItems = obj.minItems || null;
+ this.uniqueItems = obj.uniqueItems || null;
+ this['enum'] = obj['enum'] || null;
+ this.multipleOf = obj.multipleOf || null;
+};
+
+Property.prototype.getSampleValue = function (modelsToIgnore, representations) {
+ return this.sampleValue(false, modelsToIgnore, representations);
+};
+
+Property.prototype.isArray = function () {
+ var schema = this.schema;
+ if(schema.type === 'array')
+ return true;
+ else
+ return false;
+};
+
+Property.prototype.sampleValue = function(isArray, ignoredModels, representations) {
+ isArray = (isArray || this.isArray());
+ ignoredModels = (ignoredModels || {});
+ // representations = (representations || {});
+
+ var type = getStringSignature(this.obj, true);
+ var output;
+
+ if(this.$ref) {
+ var refModelName = simpleRef(this.$ref);
+ var refModel = models[refModelName];
+ if(typeof representations[type] !== 'undefined') {
+ return representations[type];
+ }
+ else
+
+ if(refModel && typeof ignoredModels[type] === 'undefined') {
+ ignoredModels[type] = this;
+ output = refModel.getSampleValue(ignoredModels, representations);
+ representations[type] = output;
+ }
+ else {
+ output = (representations[type] || refModelName);
+ }
+ }
+ else if(this.example)
+ output = this.example;
+ else if(this.default)
+ output = this.default;
+ else if(type === 'date-time')
+ output = new Date().toISOString();
+ else if(type === 'date')
+ output = new Date().toISOString().split("T")[0];
+ else if(type === 'string')
+ output = 'string';
+ else if(type === 'integer')
+ output = 0;
+ else if(type === 'long')
+ output = 0;
+ else if(type === 'float')
+ output = 0.0;
+ else if(type === 'double')
+ output = 0.0;
+ else if(type === 'boolean')
+ output = true;
+ else
+ output = {};
+ ignoredModels[type] = output;
+ if(isArray)
+ return [output];
+ else
+ return output;
+};
+
+getStringSignature = function(obj, baseComponent) {
+ var str = '';
+ if(typeof obj.$ref !== 'undefined')
+ str += simpleRef(obj.$ref);
+ else if(typeof obj.type === 'undefined')
+ str += 'object';
+ else if(obj.type === 'array') {
+ if(baseComponent)
+ str += getStringSignature((obj.items || obj.$ref || {}));
+ else {
+ str += 'Array[';
+ str += getStringSignature((obj.items || obj.$ref || {}));
+ str += ']';
+ }
+ }
+ else if(obj.type === 'integer' && obj.format === 'int32')
+ str += 'integer';
+ else if(obj.type === 'integer' && obj.format === 'int64')
+ str += 'long';
+ else if(obj.type === 'integer' && typeof obj.format === 'undefined')
+ str += 'long';
+ else if(obj.type === 'string' && obj.format === 'date-time')
+ str += 'date-time';
+ else if(obj.type === 'string' && obj.format === 'date')
+ str += 'date';
+ else if(obj.type === 'string' && typeof obj.format === 'undefined')
+ str += 'string';
+ else if(obj.type === 'number' && obj.format === 'float')
+ str += 'float';
+ else if(obj.type === 'number' && obj.format === 'double')
+ str += 'double';
+ else if(obj.type === 'number' && typeof obj.format === 'undefined')
+ str += 'double';
+ else if(obj.type === 'boolean')
+ str += 'boolean';
+ else if(obj.$ref)
+ str += simpleRef(obj.$ref);
+ else
+ str += obj.type;
+ return str;
+};
+
+simpleRef = function(name) {
+ if(typeof name === 'undefined')
+ return null;
+ if(name.indexOf("#/definitions/") === 0)
+ return name.substring('#/definitions/'.length);
+ else
+ return name;
+};
+
+Property.prototype.toString = function() {
+ var str = getStringSignature(this.obj);
+ if(str !== '') {
+ str = '<span class="propName ' + this.required + '">' + this.name + '</span> (<span class="propType">' + str + '</span>';
+ if(!this.required)
+ str += ', <span class="propOptKey">optional</span>';
+ str += ')';
+ }
+ else
+ str = this.name + ' (' + JSON.stringify(this.obj) + ')';
+
+ if(typeof this.description !== 'undefined')
+ str += ': ' + this.description;
+
+ if (this['enum']) {
+ str += ' = <span class="propVals">[\'' + this['enum'].join('\' or \'') + '\']</span>';
+ }
+ if (this.descr) {
+ str += ': <span class="propDesc">' + this.descr + '</span>';
+ }
+
+
+ var options = '';
+ var isArray = this.schema.type === 'array';
+ var type;
+
+ if(isArray) {
+ if(this.schema.items)
+ type = this.schema.items.type;
+ else
+ type = '';
+ }
+ else {
+ type = this.schema.type;
+ }
+
+ if (this.default)
+ options += optionHtml('Default', this.default);
+
+ switch (type) {
+ case 'string':
+ if (this.minLength)
+ options += optionHtml('Min. Length', this.minLength);
+ if (this.maxLength)
+ options += optionHtml('Max. Length', this.maxLength);
+ if (this.pattern)
+ options += optionHtml('Reg. Exp.', this.pattern);
+ break;
+ case 'integer':
+ case 'number':
+ if (this.minimum)
+ options += optionHtml('Min. Value', this.minimum);
+ if (this.exclusiveMinimum)
+ options += optionHtml('Exclusive Min.', "true");
+ if (this.maximum)
+ options += optionHtml('Max. Value', this.maximum);
+ if (this.exclusiveMaximum)
+ options += optionHtml('Exclusive Max.', "true");
+ if (this.multipleOf)
+ options += optionHtml('Multiple Of', this.multipleOf);
+ break;
+ }
+
+ if (isArray) {
+ if (this.minItems)
+ options += optionHtml('Min. Items', this.minItems);
+ if (this.maxItems)
+ options += optionHtml('Max. Items', this.maxItems);
+ if (this.uniqueItems)
+ options += optionHtml('Unique Items', "true");
+ if (this.collectionFormat)
+ options += optionHtml('Coll. Format', this.collectionFormat);
+ }
+
+ if (this['enum']) {
+ var enumString;
+
+ if (type === 'number' || type === 'integer')
+ enumString = this['enum'].join(', ');
+ else {
+ enumString = '"' + this['enum'].join('", "') + '"';
+ }
+
+ options += optionHtml('Enum', enumString);
+ }
+
+ if (options.length > 0)
+ str = '<span class="propWrap">' + str + '<table class="optionsWrapper"><tr><th colspan="2">' + this.name + '</th></tr>' + options + '</table></span>';
+
+ return str;
+};
+
+optionHtml = function(label, value) {
+ return '<tr><td class="optionName">' + label + ':</td><td>' + value + '</td></tr>';
+};
+
+typeFromJsonSchema = function(type, format) {
+ var str;
+ if(type === 'integer' && format === 'int32')
+ str = 'integer';
+ else if(type === 'integer' && format === 'int64')
+ str = 'long';
+ else if(type === 'integer' && typeof format === 'undefined')
+ str = 'long';
+ else if(type === 'string' && format === 'date-time')
+ str = 'date-time';
+ else if(type === 'string' && format === 'date')
+ str = 'date';
+ else if(type === 'number' && format === 'float')
+ str = 'float';
+ else if(type === 'number' && format === 'double')
+ str = 'double';
+ else if(type === 'number' && typeof format === 'undefined')
+ str = 'double';
+ else if(type === 'boolean')
+ str = 'boolean';
+ else if(type === 'string')
+ str = 'string';
+
+ return str;
+};
+
+var sampleModels = {};
+var cookies = {};
+var models = {};
+
+SwaggerClient.prototype.buildFrom1_2Spec = function (response) {
+ if (response.apiVersion !== null) {
+ this.apiVersion = response.apiVersion;
+ }
+ this.apis = {};
+ this.apisArray = [];
+ this.consumes = response.consumes;
+ this.produces = response.produces;
+ this.authSchemes = response.authorizations;
+ this.info = this.convertInfo(response.info);
+
+ var isApi = false, i, res;
+ for (i = 0; i < response.apis.length; i++) {
+ var api = response.apis[i];
+ if (api.operations) {
+ var j;
+ for (j = 0; j < api.operations.length; j++) {
+ operation = api.operations[j];
+ isApi = true;
+ }
+ }
+ }
+ if (response.basePath)
+ this.basePath = response.basePath;
+ else if (this.url.indexOf('?') > 0)
+ this.basePath = this.url.substring(0, this.url.lastIndexOf('?'));
+ else
+ this.basePath = this.url;
+
+ if (isApi) {
+ var newName = response.resourcePath.replace(/\//g, '');
+ this.resourcePath = response.resourcePath;
+ res = new SwaggerResource(response, this);
+ this.apis[newName] = res;
+ this.apisArray.push(res);
+ this.finish();
+ } else {
+ var k;
+ this.expectedResourceCount = response.apis.length;
+ for (k = 0; k < response.apis.length; k++) {
+ var resource = response.apis[k];
+ res = new SwaggerResource(resource, this);
+ this.apis[res.name] = res;
+ this.apisArray.push(res);
+ }
+ }
+ this.isValid = true;
+ return this;
+};
+
+SwaggerClient.prototype.finish = function() {
+ if (typeof this.success === 'function') {
+ this.isValid = true;
+ this.ready = true;
+ this.isBuilt = true;
+ this.selfReflect();
+ this.success();
+ }
+};
+
+SwaggerClient.prototype.buildFrom1_1Spec = function (response) {
+ log('This API is using a deprecated version of Swagger! Please see http://github.com/wordnik/swagger-core/wiki for more info');
+ if (response.apiVersion !== null)
+ this.apiVersion = response.apiVersion;
+ this.apis = {};
+ this.apisArray = [];
+ this.produces = response.produces;
+ this.info = this.convertInfo(response.info);
+ var isApi = false, res;
+ for (var i = 0; i < response.apis.length; i++) {
+ var api = response.apis[i];
+ if (api.operations) {
+ for (var j = 0; j < api.operations.length; j++) {
+ operation = api.operations[j];
+ isApi = true;
+ }
+ }
+ }
+ if (response.basePath) {
+ this.basePath = response.basePath;
+ } else if (this.url.indexOf('?') > 0) {
+ this.basePath = this.url.substring(0, this.url.lastIndexOf('?'));
+ } else {
+ this.basePath = this.url;
+ }
+ if (isApi) {
+ var newName = response.resourcePath.replace(/\//g, '');
+ this.resourcePath = response.resourcePath;
+ res = new SwaggerResource(response, this);
+ this.apis[newName] = res;
+ this.apisArray.push(res);
+ this.finish();
+ } else {
+ this.expectedResourceCount = response.apis.length;
+ for (k = 0; k < response.apis.length; k++) {
+ resource = response.apis[k];
+ res = new SwaggerResource(resource, this);
+ this.apis[res.name] = res;
+ this.apisArray.push(res);
+ }
+ }
+ this.isValid = true;
+ return this;
+};
+
+SwaggerClient.prototype.convertInfo = function (resp) {
+ if(typeof resp == 'object') {
+ var info = {};
+
+ info.title = resp.title;
+ info.description = resp.description;
+ info.termsOfService = resp.termsOfServiceUrl;
+ info.contact = {};
+ info.contact.name = resp.contact;
+ info.license = {};
+ info.license.name = resp.license;
+ info.license.url = resp.licenseUrl;
+
+ return info;
+ }
+};
+
+SwaggerClient.prototype.selfReflect = function () {
+ var resource, tag, ref;
+ if (this.apis === null) {
+ return false;
+ }
+ ref = this.apis;
+ for (tag in ref) {
+ api = ref[tag];
+ if (api.ready === null) {
+ return false;
+ }
+ this[tag] = api;
+ this[tag].help = __bind(api.help, api);
+ }
+ this.setConsolidatedModels();
+ this.ready = true;
+};
+
+SwaggerClient.prototype.setConsolidatedModels = function () {
+ var model, modelName, resource, resource_name, i, apis, models, results;
+ this.models = {};
+ apis = this.apis;
+ for (resource_name in apis) {
+ resource = apis[resource_name];
+ for (modelName in resource.models) {
+ if (typeof this.models[modelName] === 'undefined') {
+ this.models[modelName] = resource.models[modelName];
+ this.modelsArray.push(resource.models[modelName]);
+ }
+ }
+ }
+ models = this.modelsArray;
+ results = [];
+ for (i = 0; i < models.length; i++) {
+ model = models[i];
+ results.push(model.setReferencedModels(this.models));
+ }
+ return results;
+};
+
+var SwaggerResource = function (resourceObj, api) {
+ var _this = this;
+ this.api = api;
+ this.swaggerRequstHeaders = api.swaggerRequstHeaders;
+ this.path = (typeof this.api.resourcePath === 'string') ? this.api.resourcePath : resourceObj.path;
+ this.description = resourceObj.description;
+ this.authorizations = (resourceObj.authorizations || {});
+
+ var parts = this.path.split('/');
+ this.name = parts[parts.length - 1].replace('.{format}', '');
+ this.basePath = this.api.basePath;
+ this.operations = {};
+ this.operationsArray = [];
+ this.modelsArray = [];
+ this.models = api.models || {};
+ this.rawModels = {};
+ this.useJQuery = (typeof api.useJQuery !== 'undefined') ? api.useJQuery : null;
+
+ if ((resourceObj.apis) && this.api.resourcePath) {
+ this.addApiDeclaration(resourceObj);
+ } else {
+ if (typeof this.path === 'undefined') {
+ this.api.fail('SwaggerResources must have a path.');
+ }
+ if (this.path.substring(0, 4) === 'http') {
+ this.url = this.path.replace('{format}', 'json');
+ } else {
+ this.url = this.api.basePath + this.path.replace('{format}', 'json');
+ }
+ this.api.progress('fetching resource ' + this.name + ': ' + this.url);
+ var obj = {
+ url: this.url,
+ method: 'GET',
+ useJQuery: this.useJQuery,
+ headers: {
+ accept: this.swaggerRequstHeaders
+ },
+ on: {
+ response: function (resp) {
+ var responseObj = resp.obj || JSON.parse(resp.data);
+ _this.api.resourceCount += 1;
+ return _this.addApiDeclaration(responseObj);
+ },
+ error: function (response) {
+ _this.api.resourceCount += 1;
+ return _this.api.fail('Unable to read api \'' +
+ _this.name + '\' from path ' + _this.url + ' (server returned ' + response.statusText + ')');
+ }
+ }
+ };
+ var e = typeof window !== 'undefined' ? window : exports;
+ e.authorizations.apply(obj);
+ new SwaggerHttp().execute(obj);
+ }
+};
+
+SwaggerResource.prototype.help = function (dontPrint) {
+ var i;
+ var output = 'operations for the "' + this.name + '" tag';
+ for(i = 0; i < this.operationsArray.length; i++) {
+ var api = this.operationsArray[i];
+ output += '\n * ' + api.nickname + ': ' + api.description;
+ }
+ if(dontPrint)
+ return output;
+ else {
+ log(output);
+ return output;
+ }
+};
+
+SwaggerResource.prototype.getAbsoluteBasePath = function (relativeBasePath) {
+ var pos, url;
+ url = this.api.basePath;
+ pos = url.lastIndexOf(relativeBasePath);
+ var parts = url.split('/');
+ var rootUrl = parts[0] + '//' + parts[2];
+
+ if (relativeBasePath.indexOf('http') === 0)
+ return relativeBasePath;
+ if (relativeBasePath === '/')
+ return rootUrl;
+ if (relativeBasePath.substring(0, 1) == '/') {
+ // use root + relative
+ return rootUrl + relativeBasePath;
+ }
+ else {
+ pos = this.basePath.lastIndexOf('/');
+ var base = this.basePath.substring(0, pos);
+ if (base.substring(base.length - 1) == '/')
+ return base + relativeBasePath;
+ else
+ return base + '/' + relativeBasePath;
+ }
+};
+
+SwaggerResource.prototype.addApiDeclaration = function (response) {
+ if (typeof response.produces === 'string')
+ this.produces = response.produces;
+ if (typeof response.consumes === 'string')
+ this.consumes = response.consumes;
+ if ((typeof response.basePath === 'string') && response.basePath.replace(/\s/g, '').length > 0)
+ this.basePath = response.basePath.indexOf('http') === -1 ? this.getAbsoluteBasePath(response.basePath) : response.basePath;
+ this.resourcePath = response.resourcePath;
+ this.addModels(response.models);
+ if (response.apis) {
+ for (var i = 0 ; i < response.apis.length; i++) {
+ var endpoint = response.apis[i];
+ this.addOperations(endpoint.path, endpoint.operations, response.consumes, response.produces);
+ }
+ }
+ this.api[this.name] = this;
+ this.ready = true;
+ if(this.api.resourceCount === this.api.expectedResourceCount)
+ this.api.finish();
+ return this;
+};
+
+SwaggerResource.prototype.addModels = function (models) {
+ if (typeof models === 'object') {
+ var modelName;
+ for (modelName in models) {
+ if (typeof this.models[modelName] === 'undefined') {
+ var swaggerModel = new SwaggerModel(modelName, models[modelName]);
+ this.modelsArray.push(swaggerModel);
+ this.models[modelName] = swaggerModel;
+ this.rawModels[modelName] = models[modelName];
+ }
+ }
+ var output = [];
+ for (var i = 0; i < this.modelsArray.length; i++) {
+ var model = this.modelsArray[i];
+ output.push(model.setReferencedModels(this.models));
+ }
+ return output;
+ }
+};
+
+SwaggerResource.prototype.addOperations = function (resource_path, ops, consumes, produces) {
+ if (ops) {
+ var output = [];
+ for (var i = 0; i < ops.length; i++) {
+ var o = ops[i];
+ consumes = this.consumes;
+ produces = this.produces;
+ if (typeof o.consumes !== 'undefined')
+ consumes = o.consumes;
+ else
+ consumes = this.consumes;
+
+ if (typeof o.produces !== 'undefined')
+ produces = o.produces;
+ else
+ produces = this.produces;
+ var type = (o.type || o.responseClass);
+
+ if (type === 'array') {
+ ref = null;
+ if (o.items)
+ ref = o.items.type || o.items.$ref;
+ type = 'array[' + ref + ']';
+ }
+ var responseMessages = o.responseMessages;
+ var method = o.method;
+ if (o.httpMethod) {
+ method = o.httpMethod;
+ }
+ if (o.supportedContentTypes) {
+ consumes = o.supportedContentTypes;
+ }
+ if (o.errorResponses) {
+ responseMessages = o.errorResponses;
+ for (var j = 0; j < responseMessages.length; j++) {
+ r = responseMessages[j];
+ r.message = r.reason;
+ r.reason = null;
+ }
+ }
+ o.nickname = this.sanitize(o.nickname);
+ var op = new SwaggerOperation(o.nickname,
+ resource_path,
+ method,
+ o.parameters,
+ o.summary,
+ o.notes,
+ type,
+ responseMessages,
+ this,
+ consumes,
+ produces,
+ o.authorizations,
+ o.deprecated);
+
+ this.operations[op.nickname] = op;
+ output.push(this.operationsArray.push(op));
+ }
+ return output;
+ }
+};
+
+SwaggerResource.prototype.sanitize = function (nickname) {
+ var op;
+ op = nickname.replace(/[\s!@#$%^&*()_+=\[{\]};:<>|.\/?,\\'""-]/g, '_');
+ op = op.replace(/((_){2,})/g, '_');
+ op = op.replace(/^(_)*/g, '');
+ op = op.replace(/([_])*$/g, '');
+ return op;
+};
+
+var SwaggerModel = function (modelName, obj) {
+ this.name = typeof obj.id !== 'undefined' ? obj.id : modelName;
+ this.properties = [];
+ var propertyName;
+ for (propertyName in obj.properties) {
+ if (obj.required) {
+ var value;
+ for (value in obj.required) {
+ if (propertyName === obj.required[value]) {
+ obj.properties[propertyName].required = true;
+ }
+ }
+ }
+ var prop = new SwaggerModelProperty(propertyName, obj.properties[propertyName], this);
+ this.properties.push(prop);
+ }
+};
+
+SwaggerModel.prototype.setReferencedModels = function (allModels) {
+ var results = [];
+ for (var i = 0; i < this.properties.length; i++) {
+ var property = this.properties[i];
+ var type = property.type || property.dataType;
+ if (allModels[type])
+ results.push(property.refModel = allModels[type]);
+ else if ((property.refDataType) && (allModels[property.refDataType]))
+ results.push(property.refModel = allModels[property.refDataType]);
+ else
+ results.push(void 0);
+ }
+ return results;
+};
+
+SwaggerModel.prototype.getMockSignature = function (modelsToIgnore) {
+ var i, prop, propertiesStr = [];
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ propertiesStr.push(prop.toString());
+ }
+
+ var strong = '<span class="strong">';
+ var strongClose = '</span>';
+ var classOpen = strong + this.name + ' {' + strongClose;
+ var classClose = strong + '}' + strongClose;
+ var returnVal = classOpen + '<div>' + propertiesStr.join(',</div><div>') + '</div>' + classClose;
+ if (!modelsToIgnore)
+ modelsToIgnore = [];
+ modelsToIgnore.push(this.name);
+
+ for (i = 0; i < this.properties.length; i++) {
+ prop = this.properties[i];
+ if ((prop.refModel) && modelsToIgnore.indexOf(prop.refModel.name) === -1) {
+ returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
+ }
+ }
+ return returnVal;
+};
+
+SwaggerModel.prototype.createJSONSample = function (modelsToIgnore) {
+ if (sampleModels[this.name]) {
+ return sampleModels[this.name];
+ }
+ else {
+ var result = {};
+ modelsToIgnore = (modelsToIgnore || []);
+ modelsToIgnore.push(this.name);
+ for (var i = 0; i < this.properties.length; i++) {
+ var prop = this.properties[i];
+ result[prop.name] = prop.getSampleValue(modelsToIgnore);
+ }
+ modelsToIgnore.pop(this.name);
+ return result;
+ }
+};
+
+var SwaggerModelProperty = function (name, obj, model) {
+ this.name = name;
+ this.dataType = obj.type || obj.dataType || obj.$ref;
+ this.isCollection = this.dataType && (this.dataType.toLowerCase() === 'array' || this.dataType.toLowerCase() === 'list' || this.dataType.toLowerCase() === 'set');
+ this.descr = obj.description;
+ this.required = obj.required;
+ this.defaultValue = applyModelPropertyMacro(obj, model);
+ if (obj.items) {
+ if (obj.items.type) {
+ this.refDataType = obj.items.type;
+ }
+ if (obj.items.$ref) {
+ this.refDataType = obj.items.$ref;
+ }
+ }
+ this.dataTypeWithRef = this.refDataType ? (this.dataType + '[' + this.refDataType + ']') : this.dataType;
+ if (obj.allowableValues) {
+ this.valueType = obj.allowableValues.valueType;
+ this.values = obj.allowableValues.values;
+ if (this.values) {
+ this.valuesString = '\'' + this.values.join('\' or \'') + '\'';
+ }
+ }
+ if (obj['enum']) {
+ this.valueType = 'string';
+ this.values = obj['enum'];
+ if (this.values) {
+ this.valueString = '\'' + this.values.join('\' or \'') + '\'';
+ }
+ }
+};
+
+SwaggerModelProperty.prototype.getSampleValue = function (modelsToIgnore) {
+ var result;
+ if ((this.refModel) && (modelsToIgnore.indexOf(this.refModel.name) === -1)) {
+ result = this.refModel.createJSONSample(modelsToIgnore);
+ } else {
+ if (this.isCollection) {
+ result = this.toSampleValue(this.refDataType);
+ } else {
+ result = this.toSampleValue(this.dataType);
+ }
+ }
+ if (this.isCollection) {
+ return [result];
+ } else {
+ return result;
+ }
+};
+
+SwaggerModelProperty.prototype.toSampleValue = function (value) {
+ var result;
+ if ((typeof this.defaultValue !== 'undefined') && this.defaultValue) {
+ result = this.defaultValue;
+ } else if (value === 'integer') {
+ result = 0;
+ } else if (value === 'boolean') {
+ result = false;
+ } else if (value === 'double' || value === 'number') {
+ result = 0.0;
+ } else if (value === 'string') {
+ result = '';
+ } else {
+ result = value;
+ }
+ return result;
+};
+
+SwaggerModelProperty.prototype.toString = function () {
+ var req = this.required ? 'propReq' : 'propOpt';
+ var str = '<span class="propName ' + req + '">' + this.name + '</span> (<span class="propType">' + this.dataTypeWithRef + '</span>';
+ if (!this.required) {
+ str += ', <span class="propOptKey">optional</span>';
+ }
+ str += ')';
+ if (this.values) {
+ str += ' = <span class="propVals">[\'' + this.values.join('\' or \'') + '\']</span>';
+ }
+ if (this.descr) {
+ str += ': <span class="propDesc">' + this.descr + '</span>';
+ }
+ return str;
+};
+
+var SwaggerOperation = function (nickname, path, method, parameters, summary, notes, type, responseMessages, resource, consumes, produces, authorizations, deprecated) {
+ var _this = this;
+
+ var errors = [];
+ this.nickname = (nickname || errors.push('SwaggerOperations must have a nickname.'));
+ this.path = (path || errors.push('SwaggerOperation ' + nickname + ' is missing path.'));
+ this.method = (method || errors.push('SwaggerOperation ' + nickname + ' is missing method.'));
+ this.parameters = parameters ? parameters : [];
+ this.summary = summary;
+ this.notes = notes;
+ this.type = type;
+ this.responseMessages = (responseMessages || []);
+ this.resource = (resource || errors.push('Resource is required'));
+ this.consumes = consumes;
+ this.produces = produces;
+ this.authorizations = typeof authorizations !== 'undefined' ? authorizations : resource.authorizations;
+ this.deprecated = deprecated;
+ this['do'] = __bind(this['do'], this);
+
+
+ if(typeof this.deprecated === 'string') {
+ switch(this.deprecated.toLowerCase()) {
+ case 'true': case 'yes': case '1': {
+ this.deprecated = true;
+ break;
+ }
+ case 'false': case 'no': case '0': case null: {
+ this.deprecated = false;
+ break;
+ }
+ default: this.deprecated = Boolean(this.deprecated);
+ }
+ }
+
+ if (errors.length > 0) {
+ console.error('SwaggerOperation errors', errors, arguments);
+ this.resource.api.fail(errors);
+ }
+
+ this.path = this.path.replace('{format}', 'json');
+ this.method = this.method.toLowerCase();
+ this.isGetMethod = this.method === 'get';
+
+ var i, j, v;
+ this.resourceName = this.resource.name;
+ if (typeof this.type !== 'undefined' && this.type === 'void')
+ this.type = null;
+ else {
+ this.responseClassSignature = this.getSignature(this.type, this.resource.models);
+ this.responseSampleJSON = this.getSampleJSON(this.type, this.resource.models);
+ }
+
+ for (i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ // might take this away
+ param.name = param.name || param.type || param.dataType;
+ // for 1.1 compatibility
+ type = param.type || param.dataType;
+ if (type === 'array') {
+ type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']';
+ }
+ param.type = type;
+
+ if (type && type.toLowerCase() === 'boolean') {
+ param.allowableValues = {};
+ param.allowableValues.values = ['true', 'false'];
+ }
+ param.signature = this.getSignature(type, this.resource.models);
+ param.sampleJSON = this.getSampleJSON(type, this.resource.models);
+
+ var enumValue = param['enum'];
+ if (typeof enumValue !== 'undefined') {
+ param.isList = true;
+ param.allowableValues = {};
+ param.allowableValues.descriptiveValues = [];
+
+ for (j = 0; j < enumValue.length; j++) {
+ v = enumValue[j];
+ if (param.defaultValue) {
+ param.allowableValues.descriptiveValues.push({
+ value: String(v),
+ isDefault: (v === param.defaultValue)
+ });
+ }
+ else {
+ param.allowableValues.descriptiveValues.push({
+ value: String(v),
+ isDefault: false
+ });
+ }
+ }
+ }
+ else if (param.allowableValues) {
+ if (param.allowableValues.valueType === 'RANGE')
+ param.isRange = true;
+ else
+ param.isList = true;
+ if (param.allowableValues) {
+ param.allowableValues.descriptiveValues = [];
+ if (param.allowableValues.values) {
+ for (j = 0; j < param.allowableValues.values.length; j++) {
+ v = param.allowableValues.values[j];
+ if (param.defaultValue !== null) {
+ param.allowableValues.descriptiveValues.push({
+ value: String(v),
+ isDefault: (v === param.defaultValue)
+ });
+ }
+ else {
+ param.allowableValues.descriptiveValues.push({
+ value: String(v),
+ isDefault: false
+ });
+ }
+ }
+ }
+ }
+ }
+ param.defaultValue = applyParameterMacro(this, param);
+ }
+ var defaultSuccessCallback = this.resource.api.defaultSuccessCallback || null;
+ var defaultErrorCallback = this.resource.api.defaultErrorCallback || null;
+
+ this.resource[this.nickname] = function (args, opts, callback, error) {
+ var arg1, arg2, arg3, arg4;
+ if(typeof args === 'function') { // right shift 3
+ arg1 = {}; arg2 = {}; arg3 = args; arg4 = opts;
+ }
+ else if(typeof args === 'object' && typeof opts === 'function') { // right shift 2
+ arg1 = args; arg2 = {}; arg3 = opts; arg4 = callback;
+ }
+ else {
+ arg1 = args; arg2 = opts; arg3 = callback; arg4 = error;
+ }
+ return _this['do'](arg1 || {}, arg2 || {}, arg3 || defaultSuccessCallback, arg4 || defaultErrorCallback);
+ };
+
+ this.resource[this.nickname].help = function (dontPrint) {
+ return _this.help(dontPrint);
+ };
+ this.resource[this.nickname].asCurl = function (args) {
+ return _this.asCurl(args);
+ };
+};
+
+SwaggerOperation.prototype.isListType = function (type) {
+ if (type && type.indexOf('[') >= 0) {
+ return type.substring(type.indexOf('[') + 1, type.indexOf(']'));
+ } else {
+ return void 0;
+ }
+};
+
+SwaggerOperation.prototype.getSignature = function (type, models) {
+ var isPrimitive, listType;
+ listType = this.isListType(type);
+ isPrimitive = ((typeof listType !== 'undefined') && models[listType]) || (typeof models[type] !== 'undefined') ? false : true;
+ if (isPrimitive) {
+ return type;
+ } else {
+ if (typeof listType !== 'undefined') {
+ return models[listType].getMockSignature();
+ } else {
+ return models[type].getMockSignature();
+ }
+ }
+};
+
+SwaggerOperation.prototype.getSampleJSON = function (type, models) {
+ var isPrimitive, listType, val;
+ listType = this.isListType(type);
+ isPrimitive = ((typeof listType !== 'undefined') && models[listType]) || (typeof models[type] !== 'undefined') ? false : true;
+ val = isPrimitive ? void 0 : (listType ? models[listType].createJSONSample() : models[type].createJSONSample());
+ if (val) {
+ val = listType ? [val] : val;
+ if (typeof val == 'string')
+ return val;
+ else if (typeof val === 'object') {
+ var t = val;
+ if (val instanceof Array && val.length > 0) {
+ t = val[0];
+ }
+ if (t.nodeName) {
+ var xmlString = new XMLSerializer().serializeToString(t);
+ return this.formatXml(xmlString);
+ }
+ else
+ return JSON.stringify(val, null, 2);
+ }
+ else
+ return val;
+ }
+};
+
+SwaggerOperation.prototype['do'] = function (args, opts, callback, error) {
+ var key, param, params, possibleParams = [], req, value;
+
+ if (typeof error !== 'function') {
+ error = function (xhr, textStatus, error) {
+ return log(xhr, textStatus, error);
+ };
+ }
+
+ if (typeof callback !== 'function') {
+ callback = function (response) {
+ var content;
+ content = null;
+ if (response !== null) {
+ content = response.data;
+ } else {
+ content = 'no data';
+ }
+ return log('default callback: ' + content);
+ };
+ }
+
+ params = {};
+ params.headers = [];
+ if (args.headers) {
+ params.headers = args.headers;
+ delete args.headers;
+ }
+ // allow override from the opts
+ if(opts && opts.responseContentType) {
+ params.headers['Content-Type'] = opts.responseContentType;
+ }
+ if(opts && opts.requestContentType) {
+ params.headers.Accept = opts.requestContentType;
+ }
+
+ for (var i = 0; i < this.parameters.length; i++) {
+ param = this.parameters[i];
+ if (param.paramType === 'header') {
+ if (typeof args[param.name] !== 'undefined')
+ params.headers[param.name] = args[param.name];
+ }
+ else if (param.paramType === 'form' || param.paramType.toLowerCase() === 'file')
+ possibleParams.push(param);
+ else if (param.paramType === 'body' && param.name !== 'body' && typeof args[param.name] !== 'undefined') {
+ if (args.body) {
+ throw new Error('Saw two body params in an API listing; expecting a max of one.');
+ }
+ args.body = args[param.name];
+ }
+ }
+
+ if (typeof args.body !== 'undefined') {
+ params.body = args.body;
+ delete args.body;
+ }
+
+ if (possibleParams) {
+ for (key in possibleParams) {
+ value = possibleParams[key];
+ if (args[value.name]) {
+ params[value.name] = args[value.name];
+ }
+ }
+ }
+
+ req = new SwaggerRequest(this.method, this.urlify(args), params, opts, callback, error, this);
+ if (opts.mock) {
+ return req;
+ } else {
+ return true;
+ }
+};
+
+SwaggerOperation.prototype.pathJson = function () {
+ return this.path.replace('{format}', 'json');
+};
+
+SwaggerOperation.prototype.pathXml = function () {
+ return this.path.replace('{format}', 'xml');
+};
+
+SwaggerOperation.prototype.encodePathParam = function (pathParam) {
+ var encParts, part, parts, _i, _len;
+ pathParam = pathParam.toString();
+ if (pathParam.indexOf('/') === -1) {
+ return encodeURIComponent(pathParam);
+ } else {
+ parts = pathParam.split('/');
+ encParts = [];
+ for (_i = 0, _len = parts.length; _i < _len; _i++) {
+ part = parts[_i];
+ encParts.push(encodeURIComponent(part));
+ }
+ return encParts.join('/');
+ }
+};
+
+SwaggerOperation.prototype.urlify = function (args) {
+ var i, j, param, url;
+ // ensure no double slashing...
+ if(this.resource.basePath.length > 1 && this.resource.basePath.slice(-1) === '/' && this.pathJson().charAt(0) === '/')
+ url = this.resource.basePath + this.pathJson().substring(1);
+ else
+ url = this.resource.basePath + this.pathJson();
+ var params = this.parameters;
+ for (i = 0; i < params.length; i++) {
+ param = params[i];
+ if (param.paramType === 'path') {
+ if (typeof args[param.name] !== 'undefined') {
+ // apply path params and remove from args
+ var reg = new RegExp('\\{\\s*?' + param.name + '[^\\{\\}\\/]*(?:\\{.*?\\}[^\\{\\}\\/]*)*\\}(?=(\\/?|$))', 'gi');
+ url = url.replace(reg, this.encodePathParam(args[param.name]));
+ delete args[param.name];
+ }
+ else
+ throw '' + param.name + ' is a required path param.';
+ }
+ }
+
+ var queryParams = '';
+ for (i = 0; i < params.length; i++) {
+ param = params[i];
+ if(param.paramType === 'query') {
+ if (queryParams !== '')
+ queryParams += '&';
+ if (Array.isArray(param)) {
+ var output = '';
+ for(j = 0; j < param.length; j++) {
+ if(j > 0)
+ output += ',';
+ output += encodeURIComponent(param[j]);
+ }
+ queryParams += encodeURIComponent(param.name) + '=' + output;
+ }
+ else {
+ if (typeof args[param.name] !== 'undefined') {
+ queryParams += encodeURIComponent(param.name) + '=' + encodeURIComponent(args[param.name]);
+ } else {
+ if (param.required)
+ throw '' + param.name + ' is a required query param.';
+ }
+ }
+ }
+ }
+ if ((queryParams) && queryParams.length > 0)
+ url += '?' + queryParams;
+ return url;
+};
+
+SwaggerOperation.prototype.supportHeaderParams = function () {
+ return this.resource.api.supportHeaderParams;
+};
+
+SwaggerOperation.prototype.supportedSubmitMethods = function () {
+ return this.resource.api.supportedSubmitMethods;
+};
+
+SwaggerOperation.prototype.getQueryParams = function (args) {
+ return this.getMatchingParams(['query'], args);
+};
+
+SwaggerOperation.prototype.getHeaderParams = function (args) {
+ return this.getMatchingParams(['header'], args);
+};
+
+SwaggerOperation.prototype.getMatchingParams = function (paramTypes, args) {
+ var matchingParams = {};
+ var params = this.parameters;
+ for (var i = 0; i < params.length; i++) {
+ param = params[i];
+ if (args && args[param.name])
+ matchingParams[param.name] = args[param.name];
+ }
+ var headers = this.resource.api.headers;
+ var name;
+ for (name in headers) {
+ var value = headers[name];
+ matchingParams[name] = value;
+ }
+ return matchingParams;
+};
+
+SwaggerOperation.prototype.help = function (dontPrint) {
+ var msg = this.nickname + ': ' + this.summary;
+ var params = this.parameters;
+ for (var i = 0; i < params.length; i++) {
+ var param = params[i];
+ msg += '\n* ' + param.name + (param.required ? ' (required)' : '') + " - " + param.description;
+ }
+ if(dontPrint)
+ return msg;
+ else {
+ console.log(msg);
+ return msg;
+ }
+};
+
+SwaggerOperation.prototype.asCurl = function (args) {
+ var results = [];
+ var i;
+
+ var headers = SwaggerRequest.prototype.setHeaders(args, {}, this);
+ for(i = 0; i < this.parameters.length; i++) {
+ var param = this.parameters[i];
+ if(param.paramType && param.paramType === 'header' && args[param.name]) {
+ headers[param.name] = args[param.name];
+ }
+ }
+
+ var key;
+ for (key in headers) {
+ results.push('--header "' + key + ': ' + headers[key] + '"');
+ }
+ return 'curl ' + (results.join(' ')) + ' ' + this.urlify(args);
+};
+
+SwaggerOperation.prototype.formatXml = function (xml) {
+ var contexp, formatted, indent, lastType, lines, ln, pad, reg, transitions, wsexp, _fn, _i, _len;
+ reg = /(>)(<)(\/*)/g;
+ wsexp = /[ ]*(.*)[ ]+\n/g;
+ contexp = /(<.+>)(.+\n)/g;
+ xml = xml.replace(reg, '$1\n$2$3').replace(wsexp, '$1\n').replace(contexp, '$1\n$2');
+ pad = 0;
+ formatted = '';
+ lines = xml.split('\n');
+ indent = 0;
+ lastType = 'other';
+ transitions = {
+ 'single->single': 0,
+ 'single->closing': -1,
+ 'single->opening': 0,
+ 'single->other': 0,
+ 'closing->single': 0,
+ 'closing->closing': -1,
+ 'closing->opening': 0,
+ 'closing->other': 0,
+ 'opening->single': 1,
+ 'opening->closing': 0,
+ 'opening->opening': 1,
+ 'opening->other': 1,
+ 'other->single': 0,
+ 'other->closing': -1,
+ 'other->opening': 0,
+ 'other->other': 0
+ };
+ _fn = function (ln) {
+ var fromTo, j, key, padding, type, types, value;
+ types = {
+ single: Boolean(ln.match(/<.+\/>/)),
+ closing: Boolean(ln.match(/<\/.+>/)),
+ opening: Boolean(ln.match(/<[^!?].*>/))
+ };
+ type = ((function () {
+ var _results;
+ _results = [];
+ for (key in types) {
+ value = types[key];
+ if (value) {
+ _results.push(key);
+ }
+ }
+ return _results;
+ })())[0];
+ type = type === void 0 ? 'other' : type;
+ fromTo = lastType + '->' + type;
+ lastType = type;
+ padding = '';
+ indent += transitions[fromTo];
+ padding = ((function () {
+ var _j, _ref5, _results;
+ _results = [];
+ for (j = _j = 0, _ref5 = indent; 0 <= _ref5 ? _j < _ref5 : _j > _ref5; j = 0 <= _ref5 ? ++_j : --_j) {
+ _results.push(' ');
+ }
+ return _results;
+ })()).join('');
+ if (fromTo === 'opening->closing') {
+ formatted = formatted.substr(0, formatted.length - 1) + ln + '\n';
+ } else {
+ formatted += padding + ln + '\n';
+ }
+ };
+ for (_i = 0, _len = lines.length; _i < _len; _i++) {
+ ln = lines[_i];
+ _fn(ln);
+ }
+ return formatted;
+};
+
+var SwaggerRequest = function (type, url, params, opts, successCallback, errorCallback, operation, execution) {
+ var _this = this;
+ var errors = [];
+
+ this.useJQuery = (typeof operation.resource.useJQuery !== 'undefined' ? operation.resource.useJQuery : null);
+ this.type = (type || errors.push('SwaggerRequest type is required (get/post/put/delete/patch/options).'));
+ this.url = (url || errors.push('SwaggerRequest url is required.'));
+ this.params = params;
+ this.opts = opts;
+ this.successCallback = (successCallback || errors.push('SwaggerRequest successCallback is required.'));
+ this.errorCallback = (errorCallback || errors.push('SwaggerRequest error callback is required.'));
+ this.operation = (operation || errors.push('SwaggerRequest operation is required.'));
+ this.execution = execution;
+ this.headers = (params.headers || {});
+
+ if (errors.length > 0) {
+ throw errors;
+ }
+
+ this.type = this.type.toUpperCase();
+
+ // set request, response content type headers
+ var headers = this.setHeaders(params, opts, this.operation);
+ var body = params.body;
+
+ // encode the body for form submits
+ if (headers['Content-Type']) {
+ var key, value, values = {}, i;
+ var operationParams = this.operation.parameters;
+ for (i = 0; i < operationParams.length; i++) {
+ var param = operationParams[i];
+ if (param.paramType === 'form')
+ values[param.name] = param;
+ }
+
+ if (headers['Content-Type'].indexOf('application/x-www-form-urlencoded') === 0) {
+ var encoded = '';
+ for (key in values) {
+ value = this.params[key];
+ if (typeof value !== 'undefined') {
+ if (encoded !== '')
+ encoded += '&';
+ encoded += encodeURIComponent(key) + '=' + encodeURIComponent(value);
+ }
+ }
+ body = encoded;
+ }
+ else if (headers['Content-Type'].indexOf('multipart/form-data') === 0) {
+ // encode the body for form submits
+ var data = '';
+ var boundary = '----SwaggerFormBoundary' + Date.now();
+ for (key in values) {
+ value = this.params[key];
+ if (typeof value !== 'undefined') {
+ data += '--' + boundary + '\n';
+ data += 'Content-Disposition: form-data; name="' + key + '"';
+ data += '\n\n';
+ data += value + '\n';
+ }
+ }
+ data += '--' + boundary + '--\n';
+ headers['Content-Type'] = 'multipart/form-data; boundary=' + boundary;
+ body = data;
+ }
+ }
+
+ var obj;
+ if (!((this.headers) && (this.headers.mock))) {
+ obj = {
+ url: this.url,
+ method: this.type,
+ headers: headers,
+ body: body,
+ useJQuery: this.useJQuery,
+ on: {
+ error: function (response) {
+ return _this.errorCallback(response, _this.opts.parent);
+ },
+ redirect: function (response) {
+ return _this.successCallback(response, _this.opts.parent);
+ },
+ 307: function (response) {
+ return _this.successCallback(response, _this.opts.parent);
+ },
+ response: function (response) {
+ return _this.successCallback(response, _this.opts.parent);
+ }
+ }
+ };
+
+ var status = false;
+ if (this.operation.resource && this.operation.resource.api && this.operation.resource.api.clientAuthorizations) {
+ // Get the client authorizations from the resource declaration
+ status = this.operation.resource.api.clientAuthorizations.apply(obj, this.operation.authorizations);
+ } else {
+ // Get the client authorization from the default authorization declaration
+ var e;
+ if (typeof window !== 'undefined') {
+ e = window;
+ } else {
+ e = exports;
+ }
+ status = e.authorizations.apply(obj, this.operation.authorizations);
+ }
+
+ if (!opts.mock) {
+ if (status !== false) {
+ new SwaggerHttp().execute(obj);
+ } else {
+ obj.canceled = true;
+ }
+ } else {
+ return obj;
+ }
+ }
+ return obj;
+};
+
+SwaggerRequest.prototype.setHeaders = function (params, opts, operation) {
+ // default type
+ var accepts = opts.responseContentType || 'application/json';
+ var consumes = opts.requestContentType || 'application/json';
+
+ var allDefinedParams = operation.parameters;
+ var definedFormParams = [];
+ var definedFileParams = [];
+ var body = params.body;
+ var headers = {};
+
+ // get params from the operation and set them in definedFileParams, definedFormParams, headers
+ var i;
+ for (i = 0; i < allDefinedParams.length; i++) {
+ var param = allDefinedParams[i];
+ if (param.paramType === 'form')
+ definedFormParams.push(param);
+ else if (param.paramType === 'file')
+ definedFileParams.push(param);
+ else if (param.paramType === 'header' && this.params.headers) {
+ var key = param.name;
+ var headerValue = this.params.headers[param.name];
+ if (typeof this.params.headers[param.name] !== 'undefined')
+ headers[key] = headerValue;
+ }
+ }
+
+ // if there's a body, need to set the accepts header via requestContentType
+ if (body && (this.type === 'POST' || this.type === 'PUT' || this.type === 'PATCH' || this.type === 'DELETE')) {
+ if (this.opts.requestContentType)
+ consumes = this.opts.requestContentType;
+ } else {
+ // if any form params, content type must be set
+ if (definedFormParams.length > 0) {
+ if (definedFileParams.length > 0)
+ consumes = 'multipart/form-data';
+ else
+ consumes = 'application/x-www-form-urlencoded';
+ }
+ else if (this.type === 'DELETE')
+ body = '{}';
+ else if (this.type != 'DELETE')
+ consumes = null;
+ }
+
+ if (consumes && this.operation.consumes) {
+ if (this.operation.consumes.indexOf(consumes) === -1) {
+ log('server doesn\'t consume ' + consumes + ', try ' + JSON.stringify(this.operation.consumes));
+ }
+ }
+
+ if (this.opts && this.opts.responseContentType) {
+ accepts = this.opts.responseContentType;
+ } else {
+ accepts = 'application/json';
+ }
+ if (accepts && operation.produces) {
+ if (operation.produces.indexOf(accepts) === -1) {
+ log('server can\'t produce ' + accepts);
+ }
+ }
+
+ if ((consumes && body !== '') || (consumes === 'application/x-www-form-urlencoded'))
+ headers['Content-Type'] = consumes;
+ if (accepts)
+ headers.Accept = accepts;
+ return headers;
+};
+
+/**
+ * SwaggerHttp is a wrapper for executing requests
+ */
+var SwaggerHttp = function() {};
+
+SwaggerHttp.prototype.execute = function(obj, opts) {
+ if(obj && (typeof obj.useJQuery === 'boolean'))
+ this.useJQuery = obj.useJQuery;
+ else
+ this.useJQuery = this.isIE8();
+
+ if(obj && typeof obj.body === 'object') {
+ if(obj.body.type && obj.body.type !== 'formData')
+ obj.body = JSON.stringify(obj.body);
+ else {
+ obj.contentType = false;
+ obj.processData = false;
+ // delete obj.cache;
+ delete obj.headers['Content-Type'];
+ }
+ }
+
+ if(this.useJQuery)
+ return new JQueryHttpClient(opts).execute(obj);
+ else
+ return new ShredHttpClient(opts).execute(obj);
+};
+
+SwaggerHttp.prototype.isIE8 = function() {
+ var detectedIE = false;
+ if (typeof navigator !== 'undefined' && navigator.userAgent) {
+ nav = navigator.userAgent.toLowerCase();
+ if (nav.indexOf('msie') !== -1) {
+ var version = parseInt(nav.split('msie')[1]);
+ if (version <= 8) {
+ detectedIE = true;
+ }
+ }
+ }
+ return detectedIE;
+};
+
+/*
+ * JQueryHttpClient lets a browser take advantage of JQuery's cross-browser magic.
+ * NOTE: when jQuery is available it will export both '$' and 'jQuery' to the global space.
+ * Since we are using closures here we need to alias it for internal use.
+ */
+var JQueryHttpClient = function(options) {
+ "use strict";
+ if(!jQuery){
+ var jQuery = window.jQuery;
+ }
+};
+
+JQueryHttpClient.prototype.execute = function(obj) {
+ var cb = obj.on;
+ var request = obj;
+
+ obj.type = obj.method;
+ obj.cache = false;
+ delete obj.useJQuery;
+
+ /*
+ obj.beforeSend = function(xhr) {
+ var key, results;
+ if (obj.headers) {
+ results = [];
+ for (key in obj.headers) {
+ if (key.toLowerCase() === "content-type") {
+ results.push(obj.contentType = obj.headers[key]);
+ } else if (key.toLowerCase() === "accept") {
+ results.push(obj.accepts = obj.headers[key]);
+ } else {
+ results.push(xhr.setRequestHeader(key, obj.headers[key]));
+ }
+ }
+ return results;
+ }
+ };*/
+
+ obj.data = obj.body;
+ delete obj.body;
+ obj.complete = function(response, textStatus, opts) {
+ var headers = {},
+ headerArray = response.getAllResponseHeaders().split("\n");
+
+ for(var i = 0; i < headerArray.length; i++) {
+ var toSplit = headerArray[i].trim();
+ if(toSplit.length === 0)
+ continue;
+ var separator = toSplit.indexOf(":");
+ if(separator === -1) {
+ // Name but no value in the header
+ headers[toSplit] = null;
+ continue;
+ }
+ var name = toSplit.substring(0, separator).trim(),
+ value = toSplit.substring(separator + 1).trim();
+ headers[name] = value;
+ }
+
+ var out = {
+ url: request.url,
+ method: request.method,
+ status: response.status,
+ statusText: response.statusText,
+ data: response.responseText,
+ headers: headers
+ };
+
+ var contentType = (headers["content-type"]||headers["Content-Type"]||null);
+ if(contentType) {
+ if(contentType.indexOf("application/json") === 0 || contentType.indexOf("+json") > 0) {
+ try {
+ out.obj = response.responseJSON || JSON.parse(out.data) || {};
+ } catch (ex) {
+ // do not set out.obj
+ log("unable to parse JSON content");
+ }
+ }
+ }
+
+ if(response.status >= 200 && response.status < 300)
+ cb.response(out);
+ else if(response.status === 0 || (response.status >= 400 && response.status < 599))
+ cb.error(out);
+ else
+ return cb.response(out);
+ };
+
+ jQuery.support.cors = true;
+ return jQuery.ajax(obj);
+};
+
+/*
+ * ShredHttpClient is a light-weight, node or browser HTTP client
+ */
+var ShredHttpClient = function(opts) {
+ this.opts = (opts||{});
+ this.isInitialized = false;
+
+ var identity, toString;
+
+ if (typeof window !== 'undefined') {
+ this.Shred = require("./shred");
+ this.content = require("./shred/content");
+ }
+ else
+ this.Shred = require("shred");
+ this.shred = new this.Shred(opts);
+};
+
+ShredHttpClient.prototype.initShred = function () {
+ this.isInitialized = true;
+ this.registerProcessors(this.shred);
+};
+
+ShredHttpClient.prototype.registerProcessors = function(shred) {
+ var identity = function(x) {
+ return x;
+ };
+ var toString = function(x) {
+ return x.toString();
+ };
+
+ if (typeof window !== 'undefined') {
+ this.content.registerProcessor(["application/json; charset=utf-8", "application/json", "json"], {
+ parser: identity,
+ stringify: toString
+ });
+ } else {
+ this.Shred.registerProcessor(["application/json; charset=utf-8", "application/json", "json"], {
+ parser: identity,
+ stringify: toString
+ });
+ }
+};
+
+ShredHttpClient.prototype.execute = function(obj) {
+ if(!this.isInitialized)
+ this.initShred();
+
+ var cb = obj.on, res;
+ var transform = function(response) {
+ var out = {
+ headers: response._headers,
+ url: response.request.url,
+ method: response.request.method,
+ status: response.status,
+ data: response.content.data
+ };
+
+ var headers = response._headers.normalized || response._headers;
+ var contentType = (headers["content-type"]||headers["Content-Type"]||null);
+
+ if(contentType) {
+ if(contentType.indexOf("application/json") === 0 || contentType.indexOf("+json") > 0) {
+ if(response.content.data && response.content.data !== "")
+ try{
+ out.obj = JSON.parse(response.content.data);
+ }
+ catch (e) {
+ // unable to parse
+ }
+ else
+ out.obj = {};
+ }
+ }
+ return out;
+ };
+
+ // Transform an error into a usable response-like object
+ var transformError = function (error) {
+ var out = {
+ // Default to a status of 0 - The client will treat this as a generic permissions sort of error
+ status: 0,
+ data: error.message || error
+ };
+
+ if (error.code) {
+ out.obj = error;
+
+ if (error.code === 'ENOTFOUND' || error.code === 'ECONNREFUSED') {
+ // We can tell the client that this should be treated as a missing resource and not as a permissions thing
+ out.status = 404;
+ }
+ }
+ return out;
+ };
+
+ res = {
+ error: function (response) {
+ if (obj)
+ return cb.error(transform(response));
+ },
+ // Catch the Shred error raised when the request errors as it is made (i.e. No Response is coming)
+ request_error: function (err) {
+ if (obj)
+ return cb.error(transformError(err));
+ },
+ response: function (response) {
+ if (obj) {
+ return cb.response(transform(response));
+ }
+ }
+ };
+ if (obj) {
+ obj.on = res;
+ }
+ return this.shred.request(obj);
+};
+
+
+var e = (typeof window !== 'undefined' ? window : exports);
+
+e.authorizations = authorizations = new SwaggerAuthorizations();
+e.ApiKeyAuthorization = ApiKeyAuthorization;
+e.PasswordAuthorization = PasswordAuthorization;
+e.CookieAuthorization = CookieAuthorization;
+e.SwaggerClient = SwaggerClient;
+e.SwaggerApi = SwaggerClient;
+e.Operation = Operation;
+e.Model = Model;
+e.addModel = addModel;
+e.Resolver = Resolver;
})(); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-oauth.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-oauth.js
index 26d99d5e..c0dd5581 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-oauth.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/swagger-oauth.js
@@ -1,294 +1,294 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-var appName;
-var popupMask;
-var popupDialog;
-var clientId;
-var realm;
-var oauth2KeyName;
-var redirect_uri;
-
-function handleLogin() {
- var scopes = [];
-
- var auths = window.swaggerUi.api.authSchemes || window.swaggerUi.api.securityDefinitions;
- if(auths) {
- var key;
- var defs = auths;
- for(key in defs) {
- var auth = defs[key];
- if(auth.type === 'oauth2' && auth.scopes) {
- oauth2KeyName = key;
- var scope;
- if(Array.isArray(auth.scopes)) {
- // 1.2 support
- var i;
- for(i = 0; i < auth.scopes.length; i++) {
- scopes.push(auth.scopes[i]);
- }
- }
- else {
- // 2.0 support
- for(scope in auth.scopes) {
- scopes.push({scope: scope, description: auth.scopes[scope]});
- }
- }
- }
- }
- }
-
- if(window.swaggerUi.api
- && window.swaggerUi.api.info) {
- appName = window.swaggerUi.api.info.title;
- }
-
- popupDialog = $(
- [
- '<div class="api-popup-dialog">',
- '<div class="api-popup-title">Select OAuth2.0 Scopes</div>',
- '<div class="api-popup-content">',
- '<p>Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.',
- '<a href="#">Learn how to use</a>',
- '</p>',
- '<p><strong>' + appName + '</strong> API requires the following scopes. Select which ones you want to grant to Swagger UI.</p>',
- '<ul class="api-popup-scopes">',
- '</ul>',
- '<p class="error-msg"></p>',
- '<div class="api-popup-actions"><button class="api-popup-authbtn api-button green" type="button">Authorize</button><button class="api-popup-cancel api-button gray" type="button">Cancel</button></div>',
- '</div>',
- '</div>'].join(''));
- $(document.body).append(popupDialog);
-
- popup = popupDialog.find('ul.api-popup-scopes').empty();
- for (i = 0; i < scopes.length; i ++) {
- scope = scopes[i];
- str = '<li><input type="checkbox" id="scope_' + i + '" scope="' + scope.scope + '"/>' + '<label for="scope_' + i + '">' + scope.scope;
- if (scope.description) {
- str += '<br/><span class="api-scope-desc">' + scope.description + '</span>';
- }
- str += '</label></li>';
- popup.append(str);
- }
-
- var $win = $(window),
- dw = $win.width(),
- dh = $win.height(),
- st = $win.scrollTop(),
- dlgWd = popupDialog.outerWidth(),
- dlgHt = popupDialog.outerHeight(),
- top = (dh -dlgHt)/2 + st,
- left = (dw - dlgWd)/2;
-
- popupDialog.css({
- top: (top < 0? 0 : top) + 'px',
- left: (left < 0? 0 : left) + 'px'
- });
-
- popupDialog.find('button.api-popup-cancel').click(function() {
- popupMask.hide();
- popupDialog.hide();
- popupDialog.empty();
- popupDialog = [];
- });
-
- $('button.api-popup-authbtn').unbind();
- popupDialog.find('button.api-popup-authbtn').click(function() {
- popupMask.hide();
- popupDialog.hide();
-
- var authSchemes = window.swaggerUi.api.authSchemes;
- var host = window.location;
- var pathname = location.pathname.substring(0, location.pathname.lastIndexOf("/"));
- var redirectUrl = host.protocol + '//' + host.host + pathname + '/o2c.html';
- var url = null;
-
- for (var key in authSchemes) {
- if (authSchemes.hasOwnProperty(key)) {
- var flow = authSchemes[key].flow;
-
- if(authSchemes[key].type === 'oauth2' && flow && (flow === 'implicit' || flow === 'accessCode')) {
- var dets = authSchemes[key];
- url = dets.authorizationUrl + '?response_type=' + (flow === 'implicit' ? 'token' : 'code');
- window.swaggerUi.tokenName = dets.tokenName || 'access_token';
- window.swaggerUi.tokenUrl = (flow === 'accessCode' ? dets.tokenUrl : null);
- }
- else if(authSchemes[key].grantTypes) {
- // 1.2 support
- var o = authSchemes[key].grantTypes;
- for(var t in o) {
- if(o.hasOwnProperty(t) && t === 'implicit') {
- var dets = o[t];
- var ep = dets.loginEndpoint.url;
- url = dets.loginEndpoint.url + '?response_type=token';
- window.swaggerUi.tokenName = dets.tokenName;
- }
- else if (o.hasOwnProperty(t) && t === 'accessCode') {
- var dets = o[t];
- var ep = dets.tokenRequestEndpoint.url;
- url = dets.tokenRequestEndpoint.url + '?response_type=code';
- window.swaggerUi.tokenName = dets.tokenName;
- }
- }
- }
- }
- }
- var scopes = []
- var o = $('.api-popup-scopes').find('input:checked');
-
- for(k =0; k < o.length; k++) {
- var scope = $(o[k]).attr('scope');
-
- if (scopes.indexOf(scope) === -1)
- scopes.push(scope);
- }
-
- window.enabledScopes=scopes;
-
- redirect_uri = redirectUrl;
-
- url += '&redirect_uri=' + encodeURIComponent(redirectUrl);
- url += '&realm=' + encodeURIComponent(realm);
- url += '&client_id=' + encodeURIComponent(clientId);
- url += '&scope=' + encodeURIComponent(scopes);
-
- window.open(url);
- });
-
- popupMask.show();
- popupDialog.show();
- return;
-}
-
-
-function handleLogout() {
- for(key in window.authorizations.authz){
- window.authorizations.remove(key)
- }
- window.enabledScopes = null;
- $('.api-ic.ic-on').addClass('ic-off');
- $('.api-ic.ic-on').removeClass('ic-on');
-
- // set the info box
- $('.api-ic.ic-warning').addClass('ic-error');
- $('.api-ic.ic-warning').removeClass('ic-warning');
-}
-
-function initOAuth(opts) {
- var o = (opts||{});
- var errors = [];
-
- appName = (o.appName||errors.push('missing appName'));
- popupMask = (o.popupMask||$('#api-common-mask'));
- popupDialog = (o.popupDialog||$('.api-popup-dialog'));
- clientId = (o.clientId||errors.push('missing client id'));
- realm = (o.realm||errors.push('missing realm'));
-
- if(errors.length > 0){
- log('auth unable initialize oauth: ' + errors);
- return;
- }
-
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- $('.api-ic').unbind();
- $('.api-ic').click(function(s) {
- if($(s.target).hasClass('ic-off'))
- handleLogin();
- else {
- handleLogout();
- }
- false;
- });
-}
-
-function processOAuthCode(data) {
- var params = {
- 'client_id': clientId,
- 'code': data.code,
- 'grant_type': 'authorization_code',
- 'redirect_uri': redirect_uri
- }
- $.ajax(
- {
- url : window.swaggerUi.tokenUrl,
- type: "POST",
- data: params,
- success:function(data, textStatus, jqXHR)
- {
- onOAuthComplete(data);
- },
- error: function(jqXHR, textStatus, errorThrown)
- {
- onOAuthComplete("");
- }
- });
-}
-
-function onOAuthComplete(token) {
- if(token) {
- if(token.error) {
- var checkbox = $('input[type=checkbox],.secured')
- checkbox.each(function(pos){
- checkbox[pos].checked = false;
- });
- alert(token.error);
- }
- else {
- var b = token[window.swaggerUi.tokenName];
- if(b){
- // if all roles are satisfied
- var o = null;
- $.each($('.auth #api_information_panel'), function(k, v) {
- var children = v;
- if(children && children.childNodes) {
- var requiredScopes = [];
- $.each((children.childNodes), function (k1, v1){
- var inner = v1.innerHTML;
- if(inner)
- requiredScopes.push(inner);
- });
- var diff = [];
- for(var i=0; i < requiredScopes.length; i++) {
- var s = requiredScopes[i];
- if(window.enabledScopes && window.enabledScopes.indexOf(s) == -1) {
- diff.push(s);
- }
- }
- if(diff.length > 0){
- o = v.parentNode;
- $(o.parentNode).find('.api-ic.ic-on').addClass('ic-off');
- $(o.parentNode).find('.api-ic.ic-on').removeClass('ic-on');
-
- // sorry, not all scopes are satisfied
- $(o).find('.api-ic').addClass('ic-warning');
- $(o).find('.api-ic').removeClass('ic-error');
- }
- else {
- o = v.parentNode;
- $(o.parentNode).find('.api-ic.ic-off').addClass('ic-on');
- $(o.parentNode).find('.api-ic.ic-off').removeClass('ic-off');
-
- // all scopes are satisfied
- $(o).find('.api-ic').addClass('ic-info');
- $(o).find('.api-ic').removeClass('ic-warning');
- $(o).find('.api-ic').removeClass('ic-error');
- }
- }
- });
- window.authorizations.add(oauth2KeyName, new ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header'));
- }
- }
- }
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var appName;
+var popupMask;
+var popupDialog;
+var clientId;
+var realm;
+var oauth2KeyName;
+var redirect_uri;
+
+function handleLogin() {
+ var scopes = [];
+
+ var auths = window.swaggerUi.api.authSchemes || window.swaggerUi.api.securityDefinitions;
+ if(auths) {
+ var key;
+ var defs = auths;
+ for(key in defs) {
+ var auth = defs[key];
+ if(auth.type === 'oauth2' && auth.scopes) {
+ oauth2KeyName = key;
+ var scope;
+ if(Array.isArray(auth.scopes)) {
+ // 1.2 support
+ var i;
+ for(i = 0; i < auth.scopes.length; i++) {
+ scopes.push(auth.scopes[i]);
+ }
+ }
+ else {
+ // 2.0 support
+ for(scope in auth.scopes) {
+ scopes.push({scope: scope, description: auth.scopes[scope]});
+ }
+ }
+ }
+ }
+ }
+
+ if(window.swaggerUi.api
+ && window.swaggerUi.api.info) {
+ appName = window.swaggerUi.api.info.title;
+ }
+
+ popupDialog = $(
+ [
+ '<div class="api-popup-dialog">',
+ '<div class="api-popup-title">Select OAuth2.0 Scopes</div>',
+ '<div class="api-popup-content">',
+ '<p>Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.',
+ '<a href="#">Learn how to use</a>',
+ '</p>',
+ '<p><strong>' + appName + '</strong> API requires the following scopes. Select which ones you want to grant to Swagger UI.</p>',
+ '<ul class="api-popup-scopes">',
+ '</ul>',
+ '<p class="error-msg"></p>',
+ '<div class="api-popup-actions"><button class="api-popup-authbtn api-button green" type="button">Authorize</button><button class="api-popup-cancel api-button gray" type="button">Cancel</button></div>',
+ '</div>',
+ '</div>'].join(''));
+ $(document.body).append(popupDialog);
+
+ popup = popupDialog.find('ul.api-popup-scopes').empty();
+ for (i = 0; i < scopes.length; i ++) {
+ scope = scopes[i];
+ str = '<li><input type="checkbox" id="scope_' + i + '" scope="' + scope.scope + '"/>' + '<label for="scope_' + i + '">' + scope.scope;
+ if (scope.description) {
+ str += '<br/><span class="api-scope-desc">' + scope.description + '</span>';
+ }
+ str += '</label></li>';
+ popup.append(str);
+ }
+
+ var $win = $(window),
+ dw = $win.width(),
+ dh = $win.height(),
+ st = $win.scrollTop(),
+ dlgWd = popupDialog.outerWidth(),
+ dlgHt = popupDialog.outerHeight(),
+ top = (dh -dlgHt)/2 + st,
+ left = (dw - dlgWd)/2;
+
+ popupDialog.css({
+ top: (top < 0? 0 : top) + 'px',
+ left: (left < 0? 0 : left) + 'px'
+ });
+
+ popupDialog.find('button.api-popup-cancel').click(function() {
+ popupMask.hide();
+ popupDialog.hide();
+ popupDialog.empty();
+ popupDialog = [];
+ });
+
+ $('button.api-popup-authbtn').unbind();
+ popupDialog.find('button.api-popup-authbtn').click(function() {
+ popupMask.hide();
+ popupDialog.hide();
+
+ var authSchemes = window.swaggerUi.api.authSchemes;
+ var host = window.location;
+ var pathname = location.pathname.substring(0, location.pathname.lastIndexOf("/"));
+ var redirectUrl = host.protocol + '//' + host.host + pathname + '/o2c.html';
+ var url = null;
+
+ for (var key in authSchemes) {
+ if (authSchemes.hasOwnProperty(key)) {
+ var flow = authSchemes[key].flow;
+
+ if(authSchemes[key].type === 'oauth2' && flow && (flow === 'implicit' || flow === 'accessCode')) {
+ var dets = authSchemes[key];
+ url = dets.authorizationUrl + '?response_type=' + (flow === 'implicit' ? 'token' : 'code');
+ window.swaggerUi.tokenName = dets.tokenName || 'access_token';
+ window.swaggerUi.tokenUrl = (flow === 'accessCode' ? dets.tokenUrl : null);
+ }
+ else if(authSchemes[key].grantTypes) {
+ // 1.2 support
+ var o = authSchemes[key].grantTypes;
+ for(var t in o) {
+ if(o.hasOwnProperty(t) && t === 'implicit') {
+ var dets = o[t];
+ var ep = dets.loginEndpoint.url;
+ url = dets.loginEndpoint.url + '?response_type=token';
+ window.swaggerUi.tokenName = dets.tokenName;
+ }
+ else if (o.hasOwnProperty(t) && t === 'accessCode') {
+ var dets = o[t];
+ var ep = dets.tokenRequestEndpoint.url;
+ url = dets.tokenRequestEndpoint.url + '?response_type=code';
+ window.swaggerUi.tokenName = dets.tokenName;
+ }
+ }
+ }
+ }
+ }
+ var scopes = []
+ var o = $('.api-popup-scopes').find('input:checked');
+
+ for(k =0; k < o.length; k++) {
+ var scope = $(o[k]).attr('scope');
+
+ if (scopes.indexOf(scope) === -1)
+ scopes.push(scope);
+ }
+
+ window.enabledScopes=scopes;
+
+ redirect_uri = redirectUrl;
+
+ url += '&redirect_uri=' + encodeURIComponent(redirectUrl);
+ url += '&realm=' + encodeURIComponent(realm);
+ url += '&client_id=' + encodeURIComponent(clientId);
+ url += '&scope=' + encodeURIComponent(scopes);
+
+ window.open(url);
+ });
+
+ popupMask.show();
+ popupDialog.show();
+ return;
+}
+
+
+function handleLogout() {
+ for(key in window.authorizations.authz){
+ window.authorizations.remove(key)
+ }
+ window.enabledScopes = null;
+ $('.api-ic.ic-on').addClass('ic-off');
+ $('.api-ic.ic-on').removeClass('ic-on');
+
+ // set the info box
+ $('.api-ic.ic-warning').addClass('ic-error');
+ $('.api-ic.ic-warning').removeClass('ic-warning');
+}
+
+function initOAuth(opts) {
+ var o = (opts||{});
+ var errors = [];
+
+ appName = (o.appName||errors.push('missing appName'));
+ popupMask = (o.popupMask||$('#api-common-mask'));
+ popupDialog = (o.popupDialog||$('.api-popup-dialog'));
+ clientId = (o.clientId||errors.push('missing client id'));
+ realm = (o.realm||errors.push('missing realm'));
+
+ if(errors.length > 0){
+ log('auth unable initialize oauth: ' + errors);
+ return;
+ }
+
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ $('.api-ic').unbind();
+ $('.api-ic').click(function(s) {
+ if($(s.target).hasClass('ic-off'))
+ handleLogin();
+ else {
+ handleLogout();
+ }
+ false;
+ });
+}
+
+function processOAuthCode(data) {
+ var params = {
+ 'client_id': clientId,
+ 'code': data.code,
+ 'grant_type': 'authorization_code',
+ 'redirect_uri': redirect_uri
+ }
+ $.ajax(
+ {
+ url : window.swaggerUi.tokenUrl,
+ type: "POST",
+ data: params,
+ success:function(data, textStatus, jqXHR)
+ {
+ onOAuthComplete(data);
+ },
+ error: function(jqXHR, textStatus, errorThrown)
+ {
+ onOAuthComplete("");
+ }
+ });
+}
+
+function onOAuthComplete(token) {
+ if(token) {
+ if(token.error) {
+ var checkbox = $('input[type=checkbox],.secured')
+ checkbox.each(function(pos){
+ checkbox[pos].checked = false;
+ });
+ alert(token.error);
+ }
+ else {
+ var b = token[window.swaggerUi.tokenName];
+ if(b){
+ // if all roles are satisfied
+ var o = null;
+ $.each($('.auth #api_information_panel'), function(k, v) {
+ var children = v;
+ if(children && children.childNodes) {
+ var requiredScopes = [];
+ $.each((children.childNodes), function (k1, v1){
+ var inner = v1.innerHTML;
+ if(inner)
+ requiredScopes.push(inner);
+ });
+ var diff = [];
+ for(var i=0; i < requiredScopes.length; i++) {
+ var s = requiredScopes[i];
+ if(window.enabledScopes && window.enabledScopes.indexOf(s) == -1) {
+ diff.push(s);
+ }
+ }
+ if(diff.length > 0){
+ o = v.parentNode;
+ $(o.parentNode).find('.api-ic.ic-on').addClass('ic-off');
+ $(o.parentNode).find('.api-ic.ic-on').removeClass('ic-on');
+
+ // sorry, not all scopes are satisfied
+ $(o).find('.api-ic').addClass('ic-warning');
+ $(o).find('.api-ic').removeClass('ic-error');
+ }
+ else {
+ o = v.parentNode;
+ $(o.parentNode).find('.api-ic.ic-off').addClass('ic-on');
+ $(o.parentNode).find('.api-ic.ic-off').removeClass('ic-off');
+
+ // all scopes are satisfied
+ $(o).find('.api-ic').addClass('ic-info');
+ $(o).find('.api-ic').removeClass('ic-warning');
+ $(o).find('.api-ic').removeClass('ic-error');
+ }
+ }
+ });
+ window.authorizations.add(oauth2KeyName, new ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header'));
+ }
+ }
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/underscore-min.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/underscore-min.js
index d39231c5..e183d64b 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/lib/underscore-min.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/lib/underscore-min.js
@@ -1,21 +1,21 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Underscore.js 1.7.0
-// http://underscorejs.org
-// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Underscore may be freely distributed under the MIT license.
-(function(){var n=this,t=n._,r=Array.prototype,e=Object.prototype,u=Function.prototype,i=r.push,a=r.slice,o=r.concat,l=e.toString,c=e.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=function(n){return n instanceof h?n:this instanceof h?void(this._wrapped=n):new h(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=h),exports._=h):n._=h,h.VERSION="1.7.0";var g=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}};h.iteratee=function(n,t,r){return null==n?h.identity:h.isFunction(n)?g(n,t,r):h.isObject(n)?h.matches(n):h.property(n)},h.each=h.forEach=function(n,t,r){if(null==n)return n;t=g(t,r);var e,u=n.length;if(u===+u)for(e=0;u>e;e++)t(n[e],e,n);else{var i=h.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},h.map=h.collect=function(n,t,r){if(null==n)return[];t=h.iteratee(t,r);for(var e,u=n.length!==+n.length&&h.keys(n),i=(u||n).length,a=Array(i),o=0;i>o;o++)e=u?u[o]:o,a[o]=t(n[e],e,n);return a};var v="Reduce of empty array with no initial value";h.reduce=h.foldl=h.inject=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length,o=0;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[o++]:o++]}for(;a>o;o++)u=i?i[o]:o,r=t(r,n[u],u,n);return r},h.reduceRight=h.foldr=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[--a]:--a]}for(;a--;)u=i?i[a]:a,r=t(r,n[u],u,n);return r},h.find=h.detect=function(n,t,r){var e;return t=h.iteratee(t,r),h.some(n,function(n,r,u){return t(n,r,u)?(e=n,!0):void 0}),e},h.filter=h.select=function(n,t,r){var e=[];return null==n?e:(t=h.iteratee(t,r),h.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e)},h.reject=function(n,t,r){return h.filter(n,h.negate(h.iteratee(t)),r)},h.every=h.all=function(n,t,r){if(null==n)return!0;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,!t(n[u],u,n))return!1;return!0},h.some=h.any=function(n,t,r){if(null==n)return!1;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,t(n[u],u,n))return!0;return!1},h.contains=h.include=function(n,t){return null==n?!1:(n.length!==+n.length&&(n=h.values(n)),h.indexOf(n,t)>=0)},h.invoke=function(n,t){var r=a.call(arguments,2),e=h.isFunction(t);return h.map(n,function(n){return(e?t:n[t]).apply(n,r)})},h.pluck=function(n,t){return h.map(n,h.property(t))},h.where=function(n,t){return h.filter(n,h.matches(t))},h.findWhere=function(n,t){return h.find(n,h.matches(t))},h.max=function(n,t,r){var e,u,i=-1/0,a=-1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],e>i&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(u>a||u===-1/0&&i===-1/0)&&(i=n,a=u)});return i},h.min=function(n,t,r){var e,u,i=1/0,a=1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],i>e&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(a>u||1/0===u&&1/0===i)&&(i=n,a=u)});return i},h.shuffle=function(n){for(var t,r=n&&n.length===+n.length?n:h.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=h.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},h.sample=function(n,t,r){return null==t||r?(n.length!==+n.length&&(n=h.values(n)),n[h.random(n.length-1)]):h.shuffle(n).slice(0,Math.max(0,t))},h.sortBy=function(n,t,r){return t=h.iteratee(t,r),h.pluck(h.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var m=function(n){return function(t,r,e){var u={};return r=h.iteratee(r,e),h.each(t,function(e,i){var a=r(e,i,t);n(u,e,a)}),u}};h.groupBy=m(function(n,t,r){h.has(n,r)?n[r].push(t):n[r]=[t]}),h.indexBy=m(function(n,t,r){n[r]=t}),h.countBy=m(function(n,t,r){h.has(n,r)?n[r]++:n[r]=1}),h.sortedIndex=function(n,t,r,e){r=h.iteratee(r,e,1);for(var u=r(t),i=0,a=n.length;a>i;){var o=i+a>>>1;r(n[o])<u?i=o+1:a=o}return i},h.toArray=function(n){return n?h.isArray(n)?a.call(n):n.length===+n.length?h.map(n,h.identity):h.values(n):[]},h.size=function(n){return null==n?0:n.length===+n.length?n.length:h.keys(n).length},h.partition=function(n,t,r){t=h.iteratee(t,r);var e=[],u=[];return h.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},h.first=h.head=h.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:0>t?[]:a.call(n,0,t)},h.initial=function(n,t,r){return a.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},h.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:a.call(n,Math.max(n.length-t,0))},h.rest=h.tail=h.drop=function(n,t,r){return a.call(n,null==t||r?1:t)},h.compact=function(n){return h.filter(n,h.identity)};var y=function(n,t,r,e){if(t&&h.every(n,h.isArray))return o.apply(e,n);for(var u=0,a=n.length;a>u;u++){var l=n[u];h.isArray(l)||h.isArguments(l)?t?i.apply(e,l):y(l,t,r,e):r||e.push(l)}return e};h.flatten=function(n,t){return y(n,t,!1,[])},h.without=function(n){return h.difference(n,a.call(arguments,1))},h.uniq=h.unique=function(n,t,r,e){if(null==n)return[];h.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=h.iteratee(r,e));for(var u=[],i=[],a=0,o=n.length;o>a;a++){var l=n[a];if(t)a&&i===l||u.push(l),i=l;else if(r){var c=r(l,a,n);h.indexOf(i,c)<0&&(i.push(c),u.push(l))}else h.indexOf(u,l)<0&&u.push(l)}return u},h.union=function(){return h.uniq(y(arguments,!0,!0,[]))},h.intersection=function(n){if(null==n)return[];for(var t=[],r=arguments.length,e=0,u=n.length;u>e;e++){var i=n[e];if(!h.contains(t,i)){for(var a=1;r>a&&h.contains(arguments[a],i);a++);a===r&&t.push(i)}}return t},h.difference=function(n){var t=y(a.call(arguments,1),!0,!0,[]);return h.filter(n,function(n){return!h.contains(t,n)})},h.zip=function(n){if(null==n)return[];for(var t=h.max(arguments,"length").length,r=Array(t),e=0;t>e;e++)r[e]=h.pluck(arguments,e);return r},h.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},h.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=h.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}for(;u>e;e++)if(n[e]===t)return e;return-1},h.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=n.length;for("number"==typeof r&&(e=0>r?e+r+1:Math.min(e,r+1));--e>=0;)if(n[e]===t)return e;return-1},h.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var d=function(){};h.bind=function(n,t){var r,e;if(p&&n.bind===p)return p.apply(n,a.call(arguments,1));if(!h.isFunction(n))throw new TypeError("Bind must be called on a function");return r=a.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(a.call(arguments)));d.prototype=n.prototype;var u=new d;d.prototype=null;var i=n.apply(u,r.concat(a.call(arguments)));return h.isObject(i)?i:u}},h.partial=function(n){var t=a.call(arguments,1);return function(){for(var r=0,e=t.slice(),u=0,i=e.length;i>u;u++)e[u]===h&&(e[u]=arguments[r++]);for(;r<arguments.length;)e.push(arguments[r++]);return n.apply(this,e)}},h.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=h.bind(n[r],n);return n},h.memoize=function(n,t){var r=function(e){var u=r.cache,i=t?t.apply(this,arguments):e;return h.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},h.delay=function(n,t){var r=a.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},h.defer=function(n){return h.delay.apply(h,[n,1].concat(a.call(arguments,1)))},h.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var l=function(){o=r.leading===!1?0:h.now(),a=null,i=n.apply(e,u),a||(e=u=null)};return function(){var c=h.now();o||r.leading!==!1||(o=c);var f=t-(c-o);return e=this,u=arguments,0>=f||f>t?(clearTimeout(a),a=null,o=c,i=n.apply(e,u),a||(e=u=null)):a||r.trailing===!1||(a=setTimeout(l,f)),i}},h.debounce=function(n,t,r){var e,u,i,a,o,l=function(){var c=h.now()-a;t>c&&c>0?e=setTimeout(l,t-c):(e=null,r||(o=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,a=h.now();var c=r&&!e;return e||(e=setTimeout(l,t)),c&&(o=n.apply(i,u),i=u=null),o}},h.wrap=function(n,t){return h.partial(t,n)},h.negate=function(n){return function(){return!n.apply(this,arguments)}},h.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},h.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},h.before=function(n,t){var r;return function(){return--n>0?r=t.apply(this,arguments):t=null,r}},h.once=h.partial(h.before,2),h.keys=function(n){if(!h.isObject(n))return[];if(s)return s(n);var t=[];for(var r in n)h.has(n,r)&&t.push(r);return t},h.values=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},h.pairs=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},h.invert=function(n){for(var t={},r=h.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},h.functions=h.methods=function(n){var t=[];for(var r in n)h.isFunction(n[r])&&t.push(r);return t.sort()},h.extend=function(n){if(!h.isObject(n))return n;for(var t,r,e=1,u=arguments.length;u>e;e++){t=arguments[e];for(r in t)c.call(t,r)&&(n[r]=t[r])}return n},h.pick=function(n,t,r){var e,u={};if(null==n)return u;if(h.isFunction(t)){t=g(t,r);for(e in n){var i=n[e];t(i,e,n)&&(u[e]=i)}}else{var l=o.apply([],a.call(arguments,1));n=new Object(n);for(var c=0,f=l.length;f>c;c++)e=l[c],e in n&&(u[e]=n[e])}return u},h.omit=function(n,t,r){if(h.isFunction(t))t=h.negate(t);else{var e=h.map(o.apply([],a.call(arguments,1)),String);t=function(n,t){return!h.contains(e,t)}}return h.pick(n,t,r)},h.defaults=function(n){if(!h.isObject(n))return n;for(var t=1,r=arguments.length;r>t;t++){var e=arguments[t];for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n},h.clone=function(n){return h.isObject(n)?h.isArray(n)?n.slice():h.extend({},n):n},h.tap=function(n,t){return t(n),n};var b=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof h&&(n=n._wrapped),t instanceof h&&(t=t._wrapped);var u=l.call(n);if(u!==l.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]===n)return e[i]===t;var a=n.constructor,o=t.constructor;if(a!==o&&"constructor"in n&&"constructor"in t&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(o)&&o instanceof o))return!1;r.push(n),e.push(t);var c,f;if("[object Array]"===u){if(c=n.length,f=c===t.length)for(;c--&&(f=b(n[c],t[c],r,e)););}else{var s,p=h.keys(n);if(c=p.length,f=h.keys(t).length===c)for(;c--&&(s=p[c],f=h.has(t,s)&&b(n[s],t[s],r,e)););}return r.pop(),e.pop(),f};h.isEqual=function(n,t){return b(n,t,[],[])},h.isEmpty=function(n){if(null==n)return!0;if(h.isArray(n)||h.isString(n)||h.isArguments(n))return 0===n.length;for(var t in n)if(h.has(n,t))return!1;return!0},h.isElement=function(n){return!(!n||1!==n.nodeType)},h.isArray=f||function(n){return"[object Array]"===l.call(n)},h.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},h.each(["Arguments","Function","String","Number","Date","RegExp"],function(n){h["is"+n]=function(t){return l.call(t)==="[object "+n+"]"}}),h.isArguments(arguments)||(h.isArguments=function(n){return h.has(n,"callee")}),"function"!=typeof/./&&(h.isFunction=function(n){return"function"==typeof n||!1}),h.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},h.isNaN=function(n){return h.isNumber(n)&&n!==+n},h.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===l.call(n)},h.isNull=function(n){return null===n},h.isUndefined=function(n){return n===void 0},h.has=function(n,t){return null!=n&&c.call(n,t)},h.noConflict=function(){return n._=t,this},h.identity=function(n){return n},h.constant=function(n){return function(){return n}},h.noop=function(){},h.property=function(n){return function(t){return t[n]}},h.matches=function(n){var t=h.pairs(n),r=t.length;return function(n){if(null==n)return!r;n=new Object(n);for(var e=0;r>e;e++){var u=t[e],i=u[0];if(u[1]!==n[i]||!(i in n))return!1}return!0}},h.times=function(n,t,r){var e=Array(Math.max(0,n));t=g(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},h.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},h.now=Date.now||function(){return(new Date).getTime()};var _={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},w=h.invert(_),j=function(n){var t=function(t){return n[t]},r="(?:"+h.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};h.escape=j(_),h.unescape=j(w),h.result=function(n,t){if(null==n)return void 0;var r=n[t];return h.isFunction(r)?n[t]():r};var x=0;h.uniqueId=function(n){var t=++x+"";return n?n+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var A=/(.)^/,k={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},O=/\\|'|\r|\n|\u2028|\u2029/g,F=function(n){return"\\"+k[n]};h.template=function(n,t,r){!t&&r&&(t=r),t=h.defaults({},t,h.templateSettings);var e=RegExp([(t.escape||A).source,(t.interpolate||A).source,(t.evaluate||A).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,a,o){return i+=n.slice(u,o).replace(O,F),u=o+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(o){throw o.source=i,o}var l=function(n){return a.call(this,n,h)},c=t.variable||"obj";return l.source="function("+c+"){\n"+i+"}",l},h.chain=function(n){var t=h(n);return t._chain=!0,t};var E=function(n){return this._chain?h(n).chain():n};h.mixin=function(n){h.each(h.functions(n),function(t){var r=h[t]=n[t];h.prototype[t]=function(){var n=[this._wrapped];return i.apply(n,arguments),E.call(this,r.apply(h,n))}})},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=r[n];h.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],E.call(this,r)}}),h.each(["concat","join","slice"],function(n){var t=r[n];h.prototype[n]=function(){return E.call(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}).call(this);
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Underscore.js 1.7.0
+// http://underscorejs.org
+// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+// Underscore may be freely distributed under the MIT license.
+(function(){var n=this,t=n._,r=Array.prototype,e=Object.prototype,u=Function.prototype,i=r.push,a=r.slice,o=r.concat,l=e.toString,c=e.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=function(n){return n instanceof h?n:this instanceof h?void(this._wrapped=n):new h(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=h),exports._=h):n._=h,h.VERSION="1.7.0";var g=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}};h.iteratee=function(n,t,r){return null==n?h.identity:h.isFunction(n)?g(n,t,r):h.isObject(n)?h.matches(n):h.property(n)},h.each=h.forEach=function(n,t,r){if(null==n)return n;t=g(t,r);var e,u=n.length;if(u===+u)for(e=0;u>e;e++)t(n[e],e,n);else{var i=h.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},h.map=h.collect=function(n,t,r){if(null==n)return[];t=h.iteratee(t,r);for(var e,u=n.length!==+n.length&&h.keys(n),i=(u||n).length,a=Array(i),o=0;i>o;o++)e=u?u[o]:o,a[o]=t(n[e],e,n);return a};var v="Reduce of empty array with no initial value";h.reduce=h.foldl=h.inject=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length,o=0;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[o++]:o++]}for(;a>o;o++)u=i?i[o]:o,r=t(r,n[u],u,n);return r},h.reduceRight=h.foldr=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[--a]:--a]}for(;a--;)u=i?i[a]:a,r=t(r,n[u],u,n);return r},h.find=h.detect=function(n,t,r){var e;return t=h.iteratee(t,r),h.some(n,function(n,r,u){return t(n,r,u)?(e=n,!0):void 0}),e},h.filter=h.select=function(n,t,r){var e=[];return null==n?e:(t=h.iteratee(t,r),h.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e)},h.reject=function(n,t,r){return h.filter(n,h.negate(h.iteratee(t)),r)},h.every=h.all=function(n,t,r){if(null==n)return!0;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,!t(n[u],u,n))return!1;return!0},h.some=h.any=function(n,t,r){if(null==n)return!1;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,t(n[u],u,n))return!0;return!1},h.contains=h.include=function(n,t){return null==n?!1:(n.length!==+n.length&&(n=h.values(n)),h.indexOf(n,t)>=0)},h.invoke=function(n,t){var r=a.call(arguments,2),e=h.isFunction(t);return h.map(n,function(n){return(e?t:n[t]).apply(n,r)})},h.pluck=function(n,t){return h.map(n,h.property(t))},h.where=function(n,t){return h.filter(n,h.matches(t))},h.findWhere=function(n,t){return h.find(n,h.matches(t))},h.max=function(n,t,r){var e,u,i=-1/0,a=-1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],e>i&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(u>a||u===-1/0&&i===-1/0)&&(i=n,a=u)});return i},h.min=function(n,t,r){var e,u,i=1/0,a=1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],i>e&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(a>u||1/0===u&&1/0===i)&&(i=n,a=u)});return i},h.shuffle=function(n){for(var t,r=n&&n.length===+n.length?n:h.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=h.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},h.sample=function(n,t,r){return null==t||r?(n.length!==+n.length&&(n=h.values(n)),n[h.random(n.length-1)]):h.shuffle(n).slice(0,Math.max(0,t))},h.sortBy=function(n,t,r){return t=h.iteratee(t,r),h.pluck(h.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var m=function(n){return function(t,r,e){var u={};return r=h.iteratee(r,e),h.each(t,function(e,i){var a=r(e,i,t);n(u,e,a)}),u}};h.groupBy=m(function(n,t,r){h.has(n,r)?n[r].push(t):n[r]=[t]}),h.indexBy=m(function(n,t,r){n[r]=t}),h.countBy=m(function(n,t,r){h.has(n,r)?n[r]++:n[r]=1}),h.sortedIndex=function(n,t,r,e){r=h.iteratee(r,e,1);for(var u=r(t),i=0,a=n.length;a>i;){var o=i+a>>>1;r(n[o])<u?i=o+1:a=o}return i},h.toArray=function(n){return n?h.isArray(n)?a.call(n):n.length===+n.length?h.map(n,h.identity):h.values(n):[]},h.size=function(n){return null==n?0:n.length===+n.length?n.length:h.keys(n).length},h.partition=function(n,t,r){t=h.iteratee(t,r);var e=[],u=[];return h.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},h.first=h.head=h.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:0>t?[]:a.call(n,0,t)},h.initial=function(n,t,r){return a.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},h.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:a.call(n,Math.max(n.length-t,0))},h.rest=h.tail=h.drop=function(n,t,r){return a.call(n,null==t||r?1:t)},h.compact=function(n){return h.filter(n,h.identity)};var y=function(n,t,r,e){if(t&&h.every(n,h.isArray))return o.apply(e,n);for(var u=0,a=n.length;a>u;u++){var l=n[u];h.isArray(l)||h.isArguments(l)?t?i.apply(e,l):y(l,t,r,e):r||e.push(l)}return e};h.flatten=function(n,t){return y(n,t,!1,[])},h.without=function(n){return h.difference(n,a.call(arguments,1))},h.uniq=h.unique=function(n,t,r,e){if(null==n)return[];h.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=h.iteratee(r,e));for(var u=[],i=[],a=0,o=n.length;o>a;a++){var l=n[a];if(t)a&&i===l||u.push(l),i=l;else if(r){var c=r(l,a,n);h.indexOf(i,c)<0&&(i.push(c),u.push(l))}else h.indexOf(u,l)<0&&u.push(l)}return u},h.union=function(){return h.uniq(y(arguments,!0,!0,[]))},h.intersection=function(n){if(null==n)return[];for(var t=[],r=arguments.length,e=0,u=n.length;u>e;e++){var i=n[e];if(!h.contains(t,i)){for(var a=1;r>a&&h.contains(arguments[a],i);a++);a===r&&t.push(i)}}return t},h.difference=function(n){var t=y(a.call(arguments,1),!0,!0,[]);return h.filter(n,function(n){return!h.contains(t,n)})},h.zip=function(n){if(null==n)return[];for(var t=h.max(arguments,"length").length,r=Array(t),e=0;t>e;e++)r[e]=h.pluck(arguments,e);return r},h.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},h.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=h.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}for(;u>e;e++)if(n[e]===t)return e;return-1},h.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=n.length;for("number"==typeof r&&(e=0>r?e+r+1:Math.min(e,r+1));--e>=0;)if(n[e]===t)return e;return-1},h.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var d=function(){};h.bind=function(n,t){var r,e;if(p&&n.bind===p)return p.apply(n,a.call(arguments,1));if(!h.isFunction(n))throw new TypeError("Bind must be called on a function");return r=a.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(a.call(arguments)));d.prototype=n.prototype;var u=new d;d.prototype=null;var i=n.apply(u,r.concat(a.call(arguments)));return h.isObject(i)?i:u}},h.partial=function(n){var t=a.call(arguments,1);return function(){for(var r=0,e=t.slice(),u=0,i=e.length;i>u;u++)e[u]===h&&(e[u]=arguments[r++]);for(;r<arguments.length;)e.push(arguments[r++]);return n.apply(this,e)}},h.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=h.bind(n[r],n);return n},h.memoize=function(n,t){var r=function(e){var u=r.cache,i=t?t.apply(this,arguments):e;return h.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},h.delay=function(n,t){var r=a.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},h.defer=function(n){return h.delay.apply(h,[n,1].concat(a.call(arguments,1)))},h.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var l=function(){o=r.leading===!1?0:h.now(),a=null,i=n.apply(e,u),a||(e=u=null)};return function(){var c=h.now();o||r.leading!==!1||(o=c);var f=t-(c-o);return e=this,u=arguments,0>=f||f>t?(clearTimeout(a),a=null,o=c,i=n.apply(e,u),a||(e=u=null)):a||r.trailing===!1||(a=setTimeout(l,f)),i}},h.debounce=function(n,t,r){var e,u,i,a,o,l=function(){var c=h.now()-a;t>c&&c>0?e=setTimeout(l,t-c):(e=null,r||(o=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,a=h.now();var c=r&&!e;return e||(e=setTimeout(l,t)),c&&(o=n.apply(i,u),i=u=null),o}},h.wrap=function(n,t){return h.partial(t,n)},h.negate=function(n){return function(){return!n.apply(this,arguments)}},h.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},h.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},h.before=function(n,t){var r;return function(){return--n>0?r=t.apply(this,arguments):t=null,r}},h.once=h.partial(h.before,2),h.keys=function(n){if(!h.isObject(n))return[];if(s)return s(n);var t=[];for(var r in n)h.has(n,r)&&t.push(r);return t},h.values=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},h.pairs=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},h.invert=function(n){for(var t={},r=h.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},h.functions=h.methods=function(n){var t=[];for(var r in n)h.isFunction(n[r])&&t.push(r);return t.sort()},h.extend=function(n){if(!h.isObject(n))return n;for(var t,r,e=1,u=arguments.length;u>e;e++){t=arguments[e];for(r in t)c.call(t,r)&&(n[r]=t[r])}return n},h.pick=function(n,t,r){var e,u={};if(null==n)return u;if(h.isFunction(t)){t=g(t,r);for(e in n){var i=n[e];t(i,e,n)&&(u[e]=i)}}else{var l=o.apply([],a.call(arguments,1));n=new Object(n);for(var c=0,f=l.length;f>c;c++)e=l[c],e in n&&(u[e]=n[e])}return u},h.omit=function(n,t,r){if(h.isFunction(t))t=h.negate(t);else{var e=h.map(o.apply([],a.call(arguments,1)),String);t=function(n,t){return!h.contains(e,t)}}return h.pick(n,t,r)},h.defaults=function(n){if(!h.isObject(n))return n;for(var t=1,r=arguments.length;r>t;t++){var e=arguments[t];for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n},h.clone=function(n){return h.isObject(n)?h.isArray(n)?n.slice():h.extend({},n):n},h.tap=function(n,t){return t(n),n};var b=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof h&&(n=n._wrapped),t instanceof h&&(t=t._wrapped);var u=l.call(n);if(u!==l.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]===n)return e[i]===t;var a=n.constructor,o=t.constructor;if(a!==o&&"constructor"in n&&"constructor"in t&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(o)&&o instanceof o))return!1;r.push(n),e.push(t);var c,f;if("[object Array]"===u){if(c=n.length,f=c===t.length)for(;c--&&(f=b(n[c],t[c],r,e)););}else{var s,p=h.keys(n);if(c=p.length,f=h.keys(t).length===c)for(;c--&&(s=p[c],f=h.has(t,s)&&b(n[s],t[s],r,e)););}return r.pop(),e.pop(),f};h.isEqual=function(n,t){return b(n,t,[],[])},h.isEmpty=function(n){if(null==n)return!0;if(h.isArray(n)||h.isString(n)||h.isArguments(n))return 0===n.length;for(var t in n)if(h.has(n,t))return!1;return!0},h.isElement=function(n){return!(!n||1!==n.nodeType)},h.isArray=f||function(n){return"[object Array]"===l.call(n)},h.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},h.each(["Arguments","Function","String","Number","Date","RegExp"],function(n){h["is"+n]=function(t){return l.call(t)==="[object "+n+"]"}}),h.isArguments(arguments)||(h.isArguments=function(n){return h.has(n,"callee")}),"function"!=typeof/./&&(h.isFunction=function(n){return"function"==typeof n||!1}),h.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},h.isNaN=function(n){return h.isNumber(n)&&n!==+n},h.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===l.call(n)},h.isNull=function(n){return null===n},h.isUndefined=function(n){return n===void 0},h.has=function(n,t){return null!=n&&c.call(n,t)},h.noConflict=function(){return n._=t,this},h.identity=function(n){return n},h.constant=function(n){return function(){return n}},h.noop=function(){},h.property=function(n){return function(t){return t[n]}},h.matches=function(n){var t=h.pairs(n),r=t.length;return function(n){if(null==n)return!r;n=new Object(n);for(var e=0;r>e;e++){var u=t[e],i=u[0];if(u[1]!==n[i]||!(i in n))return!1}return!0}},h.times=function(n,t,r){var e=Array(Math.max(0,n));t=g(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},h.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},h.now=Date.now||function(){return(new Date).getTime()};var _={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},w=h.invert(_),j=function(n){var t=function(t){return n[t]},r="(?:"+h.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};h.escape=j(_),h.unescape=j(w),h.result=function(n,t){if(null==n)return void 0;var r=n[t];return h.isFunction(r)?n[t]():r};var x=0;h.uniqueId=function(n){var t=++x+"";return n?n+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var A=/(.)^/,k={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},O=/\\|'|\r|\n|\u2028|\u2029/g,F=function(n){return"\\"+k[n]};h.template=function(n,t,r){!t&&r&&(t=r),t=h.defaults({},t,h.templateSettings);var e=RegExp([(t.escape||A).source,(t.interpolate||A).source,(t.evaluate||A).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,a,o){return i+=n.slice(u,o).replace(O,F),u=o+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(o){throw o.source=i,o}var l=function(n){return a.call(this,n,h)},c=t.variable||"obj";return l.source="function("+c+"){\n"+i+"}",l},h.chain=function(n){var t=h(n);return t._chain=!0,t};var E=function(n){return this._chain?h(n).chain():n};h.mixin=function(n){h.each(h.functions(n),function(t){var r=h[t]=n[t];h.prototype[t]=function(){var n=[this._wrapped];return i.apply(n,arguments),E.call(this,r.apply(h,n))}})},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=r[n];h.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],E.call(this,r)}}),h.each(["concat","join","slice"],function(n){var t=r[n];h.prototype[n]=function(){return E.call(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}).call(this);
//# sourceMappingURL=underscore-min.map \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/o2c.html b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/o2c.html
index a2336bdf..04c8c28a 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/o2c.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/o2c.html
@@ -1,37 +1,37 @@
-<!--
-
- Copyright 2016 ZTE Corporation.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<script>
-var qp = null;
-if(window.location.hash) {
- qp = location.hash.substring(1);
-}
-else {
- qp = location.search.substring(1);
-}
-qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
- function(key, value) {
- return key===""?value:decodeURIComponent(value) }
- ):{}
-
-if (window.opener.swaggerUi.tokenUrl)
- window.opener.processOAuthCode(qp);
-else
- window.opener.onOAuthComplete(qp);
-
-window.close();
+<!--
+
+ Copyright 2016 ZTE Corporation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<script>
+var qp = null;
+if(window.location.hash) {
+ qp = location.hash.substring(1);
+}
+else {
+ qp = location.search.substring(1);
+}
+qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
+ function(key, value) {
+ return key===""?value:decodeURIComponent(value) }
+ ):{}
+
+if (window.opener.swaggerUi.tokenUrl)
+ window.opener.processOAuthCode(qp);
+else
+ window.opener.onOAuthComplete(qp);
+
+window.close();
</script> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.js
index d650a030..bc23dde0 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.js
@@ -1,218 +1,218 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
/**
* swagger-ui - Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
* @version v2.1.8-M1
* @link http://swagger.io
* @license Apache 2.0
*/
-$(function() {
-
- // Helper function for vertically aligning DOM elements
- // http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/
- $.fn.vAlign = function() {
- return this.each(function(i){
- var ah = $(this).height();
- var ph = $(this).parent().height();
- var mh = (ph - ah) / 2;
- $(this).css('margin-top', mh);
- });
- };
-
- $.fn.stretchFormtasticInputWidthToParent = function() {
- return this.each(function(i){
- var p_width = $(this).closest("form").innerWidth();
- var p_padding = parseInt($(this).closest("form").css('padding-left') ,10) + parseInt($(this).closest("form").css('padding-right'), 10);
- var this_padding = parseInt($(this).css('padding-left'), 10) + parseInt($(this).css('padding-right'), 10);
- $(this).css('width', p_width - p_padding - this_padding);
- });
- };
-
- $('form.formtastic li.string input, form.formtastic textarea').stretchFormtasticInputWidthToParent();
-
- // Vertically center these paragraphs
- // Parent may need a min-height for this to work..
- $('ul.downplayed li div.content p').vAlign();
-
- // When a sandbox form is submitted..
- $("form.sandbox").submit(function(){
-
- var error_free = true;
-
- // Cycle through the forms required inputs
- $(this).find("input.required").each(function() {
-
- // Remove any existing error styles from the input
- $(this).removeClass('error');
-
- // Tack the error style on if the input is empty..
- if ($(this).val() == '') {
- $(this).addClass('error');
- $(this).wiggle();
- error_free = false;
- }
-
- });
-
- return error_free;
- });
-
-});
-
-function clippyCopiedCallback(a) {
- $('#api_key_copied').fadeIn().delay(1000).fadeOut();
-
- // var b = $("#clippy_tooltip_" + a);
- // b.length != 0 && (b.attr("title", "copied!").trigger("tipsy.reload"), setTimeout(function() {
- // b.attr("title", "copy to clipboard")
- // },
- // 500))
-}
-
-// Logging function that accounts for browsers that don't have window.console
-log = function(){
- log.history = log.history || [];
- log.history.push(arguments);
- if(this.console){
- console.log( Array.prototype.slice.call(arguments)[0] );
- }
-};
-
-// Handle browsers that do console incorrectly (IE9 and below, see http://stackoverflow.com/a/5539378/7913)
-if (Function.prototype.bind && console && typeof console.log == "object") {
- [
- "log","info","warn","error","assert","dir","clear","profile","profileEnd"
- ].forEach(function (method) {
- console[method] = this.bind(console[method], console);
- }, Function.prototype.call);
-}
-
-var Docs = {
-
- shebang: function() {
-
- // If shebang has an operation nickname in it..
- // e.g. /docs/#!/words/get_search
- var fragments = $.param.fragment().split('/');
- fragments.shift(); // get rid of the bang
-
- switch (fragments.length) {
- case 1:
- // Expand all operations for the resource and scroll to it
- var dom_id = 'resource_' + fragments[0];
-
- Docs.expandEndpointListForResource(fragments[0]);
- $("#"+dom_id).slideto({highlight: false});
- break;
- case 2:
- // Refer to the endpoint DOM element, e.g. #words_get_search
-
- // Expand Resource
- Docs.expandEndpointListForResource(fragments[0]);
- $("#"+dom_id).slideto({highlight: false});
-
- // Expand operation
- var li_dom_id = fragments.join('_');
- var li_content_dom_id = li_dom_id + "_content";
-
-
- Docs.expandOperation($('#'+li_content_dom_id));
- $('#'+li_dom_id).slideto({highlight: false});
- break;
- }
-
- },
-
- toggleEndpointListForResource: function(resource) {
- var elem = $('li#resource_' + Docs.escapeResourceName(resource) + ' ul.endpoints');
- if (elem.is(':visible')) {
- Docs.collapseEndpointListForResource(resource);
- } else {
- Docs.expandEndpointListForResource(resource);
- }
- },
-
- // Expand resource
- expandEndpointListForResource: function(resource) {
- var resource = Docs.escapeResourceName(resource);
- if (resource == '') {
- $('.resource ul.endpoints').slideDown();
- return;
- }
-
- $('li#resource_' + resource).addClass('active');
-
- var elem = $('li#resource_' + resource + ' ul.endpoints');
- elem.slideDown();
- },
-
- // Collapse resource and mark as explicitly closed
- collapseEndpointListForResource: function(resource) {
- var resource = Docs.escapeResourceName(resource);
- if (resource == '') {
- $('.resource ul.endpoints').slideUp();
- return;
- }
-
- $('li#resource_' + resource).removeClass('active');
-
- var elem = $('li#resource_' + resource + ' ul.endpoints');
- elem.slideUp();
- },
-
- expandOperationsForResource: function(resource) {
- // Make sure the resource container is open..
- Docs.expandEndpointListForResource(resource);
-
- if (resource == '') {
- $('.resource ul.endpoints li.operation div.content').slideDown();
- return;
- }
-
- $('li#resource_' + Docs.escapeResourceName(resource) + ' li.operation div.content').each(function() {
- Docs.expandOperation($(this));
- });
- },
-
- collapseOperationsForResource: function(resource) {
- // Make sure the resource container is open..
- Docs.expandEndpointListForResource(resource);
-
- if (resource == '') {
- $('.resource ul.endpoints li.operation div.content').slideUp();
- return;
- }
-
- $('li#resource_' + Docs.escapeResourceName(resource) + ' li.operation div.content').each(function() {
- Docs.collapseOperation($(this));
- });
- },
-
- escapeResourceName: function(resource) {
- return resource.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g, "\\$&");
- },
-
- expandOperation: function(elem) {
- elem.slideDown();
- },
-
- collapseOperation: function(elem) {
- elem.slideUp();
- }
-};
+$(function() {
+
+ // Helper function for vertically aligning DOM elements
+ // http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/
+ $.fn.vAlign = function() {
+ return this.each(function(i){
+ var ah = $(this).height();
+ var ph = $(this).parent().height();
+ var mh = (ph - ah) / 2;
+ $(this).css('margin-top', mh);
+ });
+ };
+
+ $.fn.stretchFormtasticInputWidthToParent = function() {
+ return this.each(function(i){
+ var p_width = $(this).closest("form").innerWidth();
+ var p_padding = parseInt($(this).closest("form").css('padding-left') ,10) + parseInt($(this).closest("form").css('padding-right'), 10);
+ var this_padding = parseInt($(this).css('padding-left'), 10) + parseInt($(this).css('padding-right'), 10);
+ $(this).css('width', p_width - p_padding - this_padding);
+ });
+ };
+
+ $('form.formtastic li.string input, form.formtastic textarea').stretchFormtasticInputWidthToParent();
+
+ // Vertically center these paragraphs
+ // Parent may need a min-height for this to work..
+ $('ul.downplayed li div.content p').vAlign();
+
+ // When a sandbox form is submitted..
+ $("form.sandbox").submit(function(){
+
+ var error_free = true;
+
+ // Cycle through the forms required inputs
+ $(this).find("input.required").each(function() {
+
+ // Remove any existing error styles from the input
+ $(this).removeClass('error');
+
+ // Tack the error style on if the input is empty..
+ if ($(this).val() == '') {
+ $(this).addClass('error');
+ $(this).wiggle();
+ error_free = false;
+ }
+
+ });
+
+ return error_free;
+ });
+
+});
+
+function clippyCopiedCallback(a) {
+ $('#api_key_copied').fadeIn().delay(1000).fadeOut();
+
+ // var b = $("#clippy_tooltip_" + a);
+ // b.length != 0 && (b.attr("title", "copied!").trigger("tipsy.reload"), setTimeout(function() {
+ // b.attr("title", "copy to clipboard")
+ // },
+ // 500))
+}
+
+// Logging function that accounts for browsers that don't have window.console
+log = function(){
+ log.history = log.history || [];
+ log.history.push(arguments);
+ if(this.console){
+ console.log( Array.prototype.slice.call(arguments)[0] );
+ }
+};
+
+// Handle browsers that do console incorrectly (IE9 and below, see http://stackoverflow.com/a/5539378/7913)
+if (Function.prototype.bind && console && typeof console.log == "object") {
+ [
+ "log","info","warn","error","assert","dir","clear","profile","profileEnd"
+ ].forEach(function (method) {
+ console[method] = this.bind(console[method], console);
+ }, Function.prototype.call);
+}
+
+var Docs = {
+
+ shebang: function() {
+
+ // If shebang has an operation nickname in it..
+ // e.g. /docs/#!/words/get_search
+ var fragments = $.param.fragment().split('/');
+ fragments.shift(); // get rid of the bang
+
+ switch (fragments.length) {
+ case 1:
+ // Expand all operations for the resource and scroll to it
+ var dom_id = 'resource_' + fragments[0];
+
+ Docs.expandEndpointListForResource(fragments[0]);
+ $("#"+dom_id).slideto({highlight: false});
+ break;
+ case 2:
+ // Refer to the endpoint DOM element, e.g. #words_get_search
+
+ // Expand Resource
+ Docs.expandEndpointListForResource(fragments[0]);
+ $("#"+dom_id).slideto({highlight: false});
+
+ // Expand operation
+ var li_dom_id = fragments.join('_');
+ var li_content_dom_id = li_dom_id + "_content";
+
+
+ Docs.expandOperation($('#'+li_content_dom_id));
+ $('#'+li_dom_id).slideto({highlight: false});
+ break;
+ }
+
+ },
+
+ toggleEndpointListForResource: function(resource) {
+ var elem = $('li#resource_' + Docs.escapeResourceName(resource) + ' ul.endpoints');
+ if (elem.is(':visible')) {
+ Docs.collapseEndpointListForResource(resource);
+ } else {
+ Docs.expandEndpointListForResource(resource);
+ }
+ },
+
+ // Expand resource
+ expandEndpointListForResource: function(resource) {
+ var resource = Docs.escapeResourceName(resource);
+ if (resource == '') {
+ $('.resource ul.endpoints').slideDown();
+ return;
+ }
+
+ $('li#resource_' + resource).addClass('active');
+
+ var elem = $('li#resource_' + resource + ' ul.endpoints');
+ elem.slideDown();
+ },
+
+ // Collapse resource and mark as explicitly closed
+ collapseEndpointListForResource: function(resource) {
+ var resource = Docs.escapeResourceName(resource);
+ if (resource == '') {
+ $('.resource ul.endpoints').slideUp();
+ return;
+ }
+
+ $('li#resource_' + resource).removeClass('active');
+
+ var elem = $('li#resource_' + resource + ' ul.endpoints');
+ elem.slideUp();
+ },
+
+ expandOperationsForResource: function(resource) {
+ // Make sure the resource container is open..
+ Docs.expandEndpointListForResource(resource);
+
+ if (resource == '') {
+ $('.resource ul.endpoints li.operation div.content').slideDown();
+ return;
+ }
+
+ $('li#resource_' + Docs.escapeResourceName(resource) + ' li.operation div.content').each(function() {
+ Docs.expandOperation($(this));
+ });
+ },
+
+ collapseOperationsForResource: function(resource) {
+ // Make sure the resource container is open..
+ Docs.expandEndpointListForResource(resource);
+
+ if (resource == '') {
+ $('.resource ul.endpoints li.operation div.content').slideUp();
+ return;
+ }
+
+ $('li#resource_' + Docs.escapeResourceName(resource) + ' li.operation div.content').each(function() {
+ Docs.collapseOperation($(this));
+ });
+ },
+
+ escapeResourceName: function(resource) {
+ return resource.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g, "\\$&");
+ },
+
+ expandOperation: function(elem) {
+ elem.slideDown();
+ },
+
+ collapseOperation: function(elem) {
+ elem.slideUp();
+ }
+};
this["Handlebars"] = this["Handlebars"] || {};
this["Handlebars"]["templates"] = this["Handlebars"]["templates"] || {};
diff --git a/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.min.js b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.min.js
index 3eabe583..edd853a0 100644
--- a/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.min.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/api-doc/swagger-ui.min.js
@@ -1,17 +1,17 @@
-/*
- * Copyright 2016 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-function clippyCopiedCallback(){$("#api_key_copied").fadeIn().delay(1e3).fadeOut()}$(function(){$.fn.vAlign=function(){return this.each(function(){var e=$(this).height(),t=$(this).parent().height(),n=(t-e)/2;$(this).css("margin-top",n)})},$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(){var e=$(this).closest("form").innerWidth(),t=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10),n=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",e-t-n)})},$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent(),$("ul.downplayed li div.content p").vAlign(),$("form.sandbox").submit(function(){var e=!0;return $(this).find("input.required").each(function(){$(this).removeClass("error"),""==$(this).val()&&($(this).addClass("error"),$(this).wiggle(),e=!1)}),e})}),log=function(){log.history=log.history||[],log.history.push(arguments),this.console&&console.log(Array.prototype.slice.call(arguments)[0])},Function.prototype.bind&&console&&"object"==typeof console.log&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(e){console[e]=this.bind(console[e],console)},Function.prototype.call);var Docs={shebang:function(){var e=$.param.fragment().split("/");switch(e.shift(),e.length){case 1:var t="resource_"+e[0];Docs.expandEndpointListForResource(e[0]),$("#"+t).slideto({highlight:!1});break;case 2:Docs.expandEndpointListForResource(e[0]),$("#"+t).slideto({highlight:!1});var n=e.join("_"),a=n+"_content";Docs.expandOperation($("#"+a)),$("#"+n).slideto({highlight:!1})}},toggleEndpointListForResource:function(e){var t=$("li#resource_"+Docs.escapeResourceName(e)+" ul.endpoints");t.is(":visible")?Docs.collapseEndpointListForResource(e):Docs.expandEndpointListForResource(e)},expandEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideDown();$("li#resource_"+e).addClass("active");var t=$("li#resource_"+e+" ul.endpoints");t.slideDown()},collapseEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideUp();$("li#resource_"+e).removeClass("active");var t=$("li#resource_"+e+" ul.endpoints");t.slideUp()},expandOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideDown():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideUp():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(e){return e.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},expandOperation:function(e){e.slideDown()},collapseOperation:function(e){e.slideUp()}};this.Handlebars=this.Handlebars||{},this.Handlebars.templates=this.Handlebars.templates||{},this.Handlebars.templates.apikey_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return"<!--div class='auth_button' id='apikey_button'><img class='auth_icon' alt='apply api key' src='images/apikey.jpeg'></div-->\n<div class='auth_container' id='apikey_container'>\n <div class='key_input_container'>\n <div class='auth_label'>"+l((s=null!=(s=t.keyName||(null!=e?e.keyName:e))?s:r,typeof s===i?s.call(e,{name:"keyName",hash:{},data:a}):s))+'</div>\n <input placeholder="api_key" class="auth_input" id="input_apiKey_entry" name="apiKey" type="text"/>\n <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_api_key" href="#">apply</a></div>\n </div>\n</div>\n\n'},useData:!0});var SwaggerUi,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;SwaggerUi=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.dom_id="swagger_ui",t.prototype.options=null,t.prototype.api=null,t.prototype.headerView=null,t.prototype.mainView=null,t.prototype.initialize=function(e){return null==e&&(e={}),null!=e.dom_id&&(this.dom_id=e.dom_id,delete e.dom_id),null==e.supportedSubmitMethods&&(e.supportedSubmitMethods=["get","put","post","delete","head","options","patch"]),null==$("#"+this.dom_id)&&$("body").append('<div id="'+this.dom_id+'"></div>'),this.options=e,this.options.success=function(e){return function(){return e.render()}}(this),this.options.progress=function(e){return function(t){return e.showMessage(t)}}(this),this.options.failure=function(e){return function(t){return e.onLoadFailure(t)}}(this),this.headerView=new HeaderView({el:$("#header")}),this.headerView.on("update-swagger-ui",function(e){return function(t){return e.updateSwaggerUi(t)}}(this))},t.prototype.setOption=function(e,t){return this.options[e]=t},t.prototype.getOption=function(e){return this.options[e]},t.prototype.updateSwaggerUi=function(e){return this.options.url=e.url,this.load()},t.prototype.load=function(){var e,t;return null!=(t=this.mainView)&&t.clear(),e=this.options.url,e&&0!==e.indexOf("http")&&(e=this.buildUrl(window.location.href.toString(),e)),this.options.url=e,this.headerView.update(e),this.api=new SwaggerClient(this.options)},t.prototype.collapseAll=function(){return Docs.collapseEndpointListForResource("")},t.prototype.listAll=function(){return Docs.collapseOperationsForResource("")},t.prototype.expandAll=function(){return Docs.expandOperationsForResource("")},t.prototype.render=function(){switch(this.showMessage("Finished Loading Resource Information. Rendering Swagger UI..."),this.mainView=new MainView({model:this.api,el:$("#"+this.dom_id),swaggerOptions:this.options}).render(),this.showMessage(),this.options.docExpansion){case"full":this.expandAll();break;case"list":this.listAll()}return this.renderGFM(),this.options.onComplete&&this.options.onComplete(this.api,this),setTimeout(function(){return function(){return Docs.shebang()}}(this),100)},t.prototype.buildUrl=function(e,t){var n,a;return 0===t.indexOf("/")?(a=e.split("/"),e=a[0]+"//"+a[2],e+t):(n=e.length,e.indexOf("?")>-1&&(n=Math.min(n,e.indexOf("?"))),e.indexOf("#")>-1&&(n=Math.min(n,e.indexOf("#"))),e=e.substring(0,n),-1!==e.indexOf("/",e.length-1)?e+t:e+"/"+t)},t.prototype.showMessage=function(e){return null==e&&(e=""),$("#message-bar").removeClass("message-fail"),$("#message-bar").addClass("message-success"),$("#message-bar").html(e)},t.prototype.onLoadFailure=function(e){var t;return null==e&&(e=""),$("#message-bar").removeClass("message-success"),$("#message-bar").addClass("message-fail"),t=$("#message-bar").html(e),null!=this.options.onFailure&&this.options.onFailure(e),t},t.prototype.renderGFM=function(e){return null==e&&(e=""),$(".markdown").each(function(){return $(this).html(marked($(this).html()))})},t}(Backbone.Router),window.SwaggerUi=SwaggerUi,this.Handlebars.templates.basic_auth_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(){return'<div class=\'auth_button\' id=\'basic_auth_button\'><img class=\'auth_icon\' src=\'images/password.jpeg\'></div>\n<div class=\'auth_container\' id=\'basic_auth_container\'>\n <div class=\'key_input_container\'>\n <div class="auth_label">Username</div>\n <input placeholder="username" class="auth_input" id="input_username" name="username" type="text"/>\n <div class="auth_label">Password</div>\n <input placeholder="password" class="auth_input" id="input_password" name="password" type="password"/>\n <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_basic_auth" href="#">apply</a></div>\n </div>\n</div>\n\n'},useData:!0}),Handlebars.registerHelper("sanitize",function(e){return e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""),new Handlebars.SafeString(e)}),this.Handlebars.templates.content_type=Handlebars.template({1:function(e,t,n,a){var s,i="";return s=t.each.call(e,null!=e?e.produces:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i},2:function(e){var t,n=this.lambda,a=' <option value="';return t=n(e,e),null!=t&&(a+=t),a+='">',t=n(e,e),null!=t&&(a+=t),a+"</option>\n"},4:function(){return' <option value="application/json">application/json</option>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i='<label for="contentType"></label>\n<select name="contentType">\n';return s=t["if"].call(e,null!=e?e.produces:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i+"</select>\n"},useData:!0});var ApiKeyButton,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ApiKeyButton=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this},t.prototype.events={"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"},t.prototype.applyApiKey=function(){var e;return window.authorizations.add(this.model.name,new ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"])),window.swaggerUi.load(),e=$("#apikey_container").show()},t.prototype.toggleApiKeyContainer=function(){var e;return $("#apikey_container").length>0?(e=$("#apikey_container").first(),e.is(":visible")?e.hide():($(".auth_container").hide(),e.show())):void 0},t.prototype.template=function(){return Handlebars.templates.apikey_button_view},t}(Backbone.View),this.Handlebars.templates.main=Handlebars.template({1:function(e,t,n,a){var s,i=this.lambda,r=this.escapeExpression,l=' <div class="info_title">'+r(i(null!=(s=null!=e?e.info:e)?s.title:s,e))+'</div>\n <div class="info_description markdown">';return s=i(null!=(s=null!=e?e.info:e)?s.description:s,e),null!=s&&(l+=s),l+="</div>\n ",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.termsOfServiceUrl:s,{name:"if",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.name:s,{name:"if",hash:{},fn:this.program(4,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.url:s,{name:"if",hash:{},fn:this.program(6,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.email:s,{name:"if",hash:{},fn:this.program(8,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.license:s,{name:"if",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+"\n"},2:function(e){var t,n=this.lambda,a=this.escapeExpression;return'<div class="info_tos"><a href="'+a(n(null!=(t=null!=e?e.info:e)?t.termsOfServiceUrl:t,e))+'">Terms of service</a></div>'},4:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_name'>Created by "+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.name:t,e))+"</div>"},6:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_url'>See more at <a href=\""+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.url:t,e))+'">'+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.url:t,e))+"</a></div>"},8:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_email'><a href=\"mailto:"+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.email:t,e))+"?subject="+a(n(null!=(t=null!=e?e.info:e)?t.title:t,e))+'">Contact the developer</a></div>'},10:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_license'><a href='"+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.license:t)?t.url:t,e))+"'>"+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.license:t)?t.name:t,e))+"</a></div>"},12:function(e){var t,n=this.lambda,a=this.escapeExpression;return' , <span style="font-variant: small-caps">api version</span>: '+a(n(null!=(t=null!=e?e.info:e)?t.version:t,e))+"\n "},14:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return' <span style="float:right"><a href="'+l((s=null!=(s=t.validatorUrl||(null!=e?e.validatorUrl:e))?s:r,typeof s===i?s.call(e,{name:"validatorUrl",hash:{},data:a}):s))+"/debug?url="+l((s=null!=(s=t.url||(null!=e?e.url:e))?s:r,typeof s===i?s.call(e,{name:"url",hash:{},data:a}):s))+'"><img id="validator" src="'+l((s=null!=(s=t.validatorUrl||(null!=e?e.validatorUrl:e))?s:r,typeof s===i?s.call(e,{name:"validatorUrl",hash:{},data:a}):s))+"?url="+l((s=null!=(s=t.url||(null!=e?e.url:e))?s:r,typeof s===i?s.call(e,{name:"url",hash:{},data:a}):s))+'"></a>\n </span>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<div class='info' id='api_info'>\n";return s=t["if"].call(e,null!=e?e.info:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+="</div>\n<div class='container' id='resources_container'>\n <ul id='resources'></ul>\n\n <div class=\"footer\">\n <br>\n <br>\n <h4 style=\"color: #999\">[ <span style=\"font-variant: small-caps\">base url</span>: "+o((i=null!=(i=t.basePath||(null!=e?e.basePath:e))?i:l,typeof i===r?i.call(e,{name:"basePath",hash:{},data:a}):i))+"\n",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.version:s,{name:"if",hash:{},fn:this.program(12,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+="]\n",s=t["if"].call(e,null!=e?e.validatorUrl:e,{name:"if",hash:{},fn:this.program(14,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+" </h4>\n </div>\n</div>\n"},useData:!0});var BasicAuthButton,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;BasicAuthButton=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this},t.prototype.events={"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"},t.prototype.applyPassword=function(){var e,t,n;return n=$(".input_username").val(),t=$(".input_password").val(),window.authorizations.add(this.model.type,new PasswordAuthorization("basic",n,t)),window.swaggerUi.load(),e=$("#basic_auth_container").hide()},t.prototype.togglePasswordContainer=function(){var e;return $("#basic_auth_container").length>0?(e=$("#basic_auth_container").show(),e.is(":visible")?e.slideUp():($(".auth_container").hide(),e.show())):void 0},t.prototype.template=function(){return Handlebars.templates.basic_auth_button_view},t}(Backbone.View),this.Handlebars.templates.operation=Handlebars.template({1:function(){return"deprecated"},3:function(){return" <h4>Warning: Deprecated</h4>\n"},5:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=' <h4>Implementation Notes</h4>\n <p class="markdown">';return i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(o+=s),o+"</p>\n"},7:function(){return' <div class="auth">\n <span class="api-ic ic-error"></span>'},9:function(e,t,n,a){var s,i=' <div id="api_information_panel" style="top: 526px; left: 776px; display: none;">\n';return s=t.each.call(e,e,{name:"each",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i+" </div>\n"},10:function(e){var t,n=this.lambda,a=this.escapeExpression,s=" <div title='";return t=n(null!=e?e.description:e,e),null!=t&&(s+=t),s+"'>"+a(n(null!=e?e.scope:e,e))+"</div>\n"},12:function(){return"</div>"},14:function(){return' <div class=\'access\'>\n <span class="api-ic ic-off" title="click to authenticate"></span>\n </div>\n'},16:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <h4>Response Class (Status "+l((s=null!=(s=t.successCode||(null!=e?e.successCode:e))?s:r,typeof s===i?s.call(e,{name:"successCode",hash:{},data:a}):s))+')</h4>\n <p><span class="model-signature" /></p>\n <br/>\n <div class="response-content-type" />\n'},18:function(){return' <h4>Parameters</h4>\n <table class=\'fullwidth\'>\n <thead>\n <tr>\n <th style="width: 100px; max-width: 100px">Parameter</th>\n <th style="width: 310px; max-width: 310px">Value</th>\n <th style="width: 200px; max-width: 200px">Description</th>\n <th style="width: 100px; max-width: 100px">Parameter Type</th>\n <th style="width: 220px; max-width: 230px">Data Type</th>\n </tr>\n </thead>\n <tbody class="operation-params">\n\n </tbody>\n </table>\n'},20:function(){return" <div style='margin:0;padding:0;display:inline'></div>\n <h4>Response Messages</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>HTTP Status Code</th>\n <th>Reason</th>\n <th>Response Model</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n"},22:function(){return""},24:function(){return" <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <span class='response_throbber' style='display:none'></span>\n </div>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r,l="function",o=t.helperMissing,p=this.escapeExpression,u=t.blockHelperMissing,h="\n <ul class='operations' >\n <li class='"+p((i=null!=(i=t.method||(null!=e?e.method:e))?i:o,typeof i===l?i.call(e,{name:"method",hash:{},data:a}):i))+" operation' id='"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"_"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+"'>\n <div class='heading'>\n <h3>\n <span class='http_method'>\n <a href='#!/"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"/"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+'\' class="toggleOperation">'+p((i=null!=(i=t.method||(null!=e?e.method:e))?i:o,typeof i===l?i.call(e,{name:"method",hash:{},data:a}):i))+"</a>\n </span>\n <span class='path'>\n <a href='#!/"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"/"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+"' class=\"toggleOperation ";return s=t["if"].call(e,null!=e?e.deprecated:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(h+=s),h+='">'+p((i=null!=(i=t.path||(null!=e?e.path:e))?i:o,typeof i===l?i.call(e,{name:"path",hash:{},data:a}):i))+"</a>\n </span>\n </h3>\n <ul class='options'>\n <li>\n <a href='#!/"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"/"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+'\' class="toggleOperation">',i=null!=(i=t.summary||(null!=e?e.summary:e))?i:o,s=typeof i===l?i.call(e,{name:"summary",hash:{},data:a}):i,null!=s&&(h+=s),h+="</a>\n </li>\n </ul>\n </div>\n <div class='content' id='"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"_"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+"_content' style='display:none'>\n",s=t["if"].call(e,null!=e?e.deprecated:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.noop,data:a}),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.description:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.noop,data:a}),null!=s&&(h+=s),i=null!=(i=t.oauth||(null!=e?e.oauth:e))?i:o,r={name:"oauth",hash:{},fn:this.program(7,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.oauth||(s=u.call(e,s,r)),null!=s&&(h+=s),h+="\n",s=t.each.call(e,null!=e?e.oauth:e,{name:"each",hash:{},fn:this.program(9,a),inverse:this.noop,data:a}),null!=s&&(h+=s),h+=" ",i=null!=(i=t.oauth||(null!=e?e.oauth:e))?i:o,r={name:"oauth",hash:{},fn:this.program(12,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.oauth||(s=u.call(e,s,r)),null!=s&&(h+=s),h+="\n",i=null!=(i=t.oauth||(null!=e?e.oauth:e))?i:o,r={name:"oauth",hash:{},fn:this.program(14,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.oauth||(s=u.call(e,s,r)),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.type:e,{name:"if",hash:{},fn:this.program(16,a),inverse:this.noop,data:a}),null!=s&&(h+=s),h+=" <form accept-charset='UTF-8' class='sandbox'>\n <div style='margin:0;padding:0;display:inline'></div>\n",s=t["if"].call(e,null!=e?e.parameters:e,{name:"if",hash:{},fn:this.program(18,a),inverse:this.noop,data:a}),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.responseMessages:e,{name:"if",hash:{},fn:this.program(20,a),inverse:this.noop,data:a}),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.isReadOnly:e,{name:"if",hash:{},fn:this.program(22,a),inverse:this.program(24,a),data:a}),null!=s&&(h+=s),h+" </form>\n <div class='response' style='display:none'>\n <h4>Request URL</h4>\n <div class='block request_url'></div>\n <h4>Response Body</h4>\n <div class='block response_body'></div>\n <h4>Response Code</h4>\n <div class='block response_code'></div>\n <h4>Response Headers</h4>\n <div class='block response_headers'></div>\n </div>\n </div>\n </li>\n </ul>\n"},useData:!0});var ContentTypeView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ContentTypeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),$("label[for=contentType]",$(this.el)).text("Response Content Type"),this},t.prototype.template=function(){return Handlebars.templates.content_type},t}(Backbone.View),this.Handlebars.templates.param=Handlebars.template({1:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i},2:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return' <input type="file" name=\''+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+'\'/>\n <div class="parameter-content-type" />\n'},4:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.program(7,a),data:a}),null!=s&&(i+=s),i},5:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+'</textarea>\n <br />\n <div class="parameter-content-type" />\n'},7:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+'\'></textarea>\n <br />\n <div class="parameter-content-type" />\n'},9:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(10,a),data:a}),null!=s&&(i+=s),i},10:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(11,a),inverse:this.program(13,a),data:a}),null!=s&&(i+=s),i},11:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <input class='parameter' minlength='0' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='' type='text' value='"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"'/>\n"},13:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <input class='parameter' minlength='0' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='' type='text' value=''/>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td class='code'>"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"</td>\n<td>\n\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(9,a),data:a}),null!=s&&(p+=s),p+='\n</td>\n<td class="markdown">',i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(p+=s),p+="</td>\n<td>",i=null!=(i=t.paramType||(null!=e?e.paramType:e))?i:l,s=typeof i===r?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(p+=s),p+'</td>\n<td>\n <span class="model-signature"></span>\n</td>\n'},useData:!0});var HeaderView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;HeaderView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.events={"click #show-pet-store-icon":"showPetStore","click #show-wordnik-dev-icon":"showWordnikDev","click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"},t.prototype.initialize=function(){},t.prototype.showPetStore=function(){return this.trigger("update-swagger-ui",{url:"http://petstore.swagger.wordnik.com/api/api-docs"})},t.prototype.showWordnikDev=function(){return this.trigger("update-swagger-ui",{url:"http://api.wordnik.com/v4/resources.json"})},t.prototype.showCustomOnKeyup=function(e){return 13===e.keyCode?this.showCustom():void 0},t.prototype.showCustom=function(e){return null!=e&&e.preventDefault(),this.trigger("update-swagger-ui",{url:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})},t.prototype.update=function(e,t,n){return null==n&&(n=!1),$("#input_baseUrl").val(e),n?this.trigger("update-swagger-ui",{url:e}):void 0},t}(Backbone.View),this.Handlebars.templates.param_list=Handlebars.template({1:function(){return" multiple='multiple'"},3:function(){return""},5:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.program(6,a),data:a}),null!=s&&(i+=s),i},6:function(e,t,n,a){var s,i=t.helperMissing,r="";return s=(t.isArray||e&&e.isArray||i).call(e,e,{name:"isArray",hash:{},fn:this.program(3,a),inverse:this.program(7,a),data:a}),null!=s&&(r+=s),r},7:function(){return" <option selected=\"\" value=''></option>\n"},9:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isDefault:e,{name:"if",hash:{},fn:this.program(10,a),inverse:this.program(12,a),data:a}),null!=s&&(i+=s),i},10:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return' <option selected="" value=\''+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+" (default)</option>\n"},12:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <option value='"+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+"</option>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td class='code'>"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"</td>\n<td>\n <select ";return s=(t.isArray||e&&e.isArray||l).call(e,e,{name:"isArray",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+=" class='parameter' name='"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"'>\n",s=t["if"].call(e,null!=e?e.required:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.program(5,a),data:a}),null!=s&&(p+=s),s=t.each.call(e,null!=(s=null!=e?e.allowableValues:e)?s.descriptiveValues:s,{name:"each",hash:{},fn:this.program(9,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+=' </select>\n</td>\n<td class="markdown">',i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(p+=s),p+="</td>\n<td>",i=null!=(i=t.paramType||(null!=e?e.paramType:e))?i:l,s=typeof i===r?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>'},useData:!0});var MainView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;MainView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}var n;return __extends(t,e),n={alpha:function(e,t){return e.path.localeCompare(t.path)},method:function(e,t){return e.method.localeCompare(t.method)}},t.prototype.initialize=function(e){var t,n,a,s;null==e&&(e={}),this.model.auths=[],s=this.model.securityDefinitions;for(n in s)a=s[n],t={name:n,type:a.type,value:a},this.model.auths.push(t);return"2.0"===this.model.swaggerVersion?this.model.validatorUrl="validatorUrl"in e.swaggerOptions?e.swaggerOptions.validatorUrl:this.model.url.indexOf("localhost")>0?null:"http://online.swagger.io/validator":void 0},t.prototype.render=function(){var e,t,n,a,s,i,r,l,o,p;if(this.model.securityDefinitions)for(s in this.model.securityDefinitions)e=this.model.securityDefinitions[s],"apiKey"===e.type&&0===$("#apikey_button").length&&(t=new ApiKeyButton({model:e}).render().el,$(".auth_main_container").append(t)),"basicAuth"===e.type&&0===$("#basic_auth_button").length&&(t=new BasicAuthButton({model:e}).render().el,$(".auth_main_container").append(t));for($(this.el).html(Handlebars.templates.main(this.model)),r={},n=0,p=this.model.apisArray,l=0,o=p.length;o>l;l++){for(i=p[l],a=i.name;"undefined"!=typeof r[a];)a=a+"_"+n,n+=1;
+/*
+ * Copyright 2016 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+function clippyCopiedCallback(){$("#api_key_copied").fadeIn().delay(1e3).fadeOut()}$(function(){$.fn.vAlign=function(){return this.each(function(){var e=$(this).height(),t=$(this).parent().height(),n=(t-e)/2;$(this).css("margin-top",n)})},$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(){var e=$(this).closest("form").innerWidth(),t=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10),n=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",e-t-n)})},$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent(),$("ul.downplayed li div.content p").vAlign(),$("form.sandbox").submit(function(){var e=!0;return $(this).find("input.required").each(function(){$(this).removeClass("error"),""==$(this).val()&&($(this).addClass("error"),$(this).wiggle(),e=!1)}),e})}),log=function(){log.history=log.history||[],log.history.push(arguments),this.console&&console.log(Array.prototype.slice.call(arguments)[0])},Function.prototype.bind&&console&&"object"==typeof console.log&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(e){console[e]=this.bind(console[e],console)},Function.prototype.call);var Docs={shebang:function(){var e=$.param.fragment().split("/");switch(e.shift(),e.length){case 1:var t="resource_"+e[0];Docs.expandEndpointListForResource(e[0]),$("#"+t).slideto({highlight:!1});break;case 2:Docs.expandEndpointListForResource(e[0]),$("#"+t).slideto({highlight:!1});var n=e.join("_"),a=n+"_content";Docs.expandOperation($("#"+a)),$("#"+n).slideto({highlight:!1})}},toggleEndpointListForResource:function(e){var t=$("li#resource_"+Docs.escapeResourceName(e)+" ul.endpoints");t.is(":visible")?Docs.collapseEndpointListForResource(e):Docs.expandEndpointListForResource(e)},expandEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideDown();$("li#resource_"+e).addClass("active");var t=$("li#resource_"+e+" ul.endpoints");t.slideDown()},collapseEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideUp();$("li#resource_"+e).removeClass("active");var t=$("li#resource_"+e+" ul.endpoints");t.slideUp()},expandOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideDown():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideUp():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(e){return e.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},expandOperation:function(e){e.slideDown()},collapseOperation:function(e){e.slideUp()}};this.Handlebars=this.Handlebars||{},this.Handlebars.templates=this.Handlebars.templates||{},this.Handlebars.templates.apikey_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return"<!--div class='auth_button' id='apikey_button'><img class='auth_icon' alt='apply api key' src='images/apikey.jpeg'></div-->\n<div class='auth_container' id='apikey_container'>\n <div class='key_input_container'>\n <div class='auth_label'>"+l((s=null!=(s=t.keyName||(null!=e?e.keyName:e))?s:r,typeof s===i?s.call(e,{name:"keyName",hash:{},data:a}):s))+'</div>\n <input placeholder="api_key" class="auth_input" id="input_apiKey_entry" name="apiKey" type="text"/>\n <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_api_key" href="#">apply</a></div>\n </div>\n</div>\n\n'},useData:!0});var SwaggerUi,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;SwaggerUi=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.dom_id="swagger_ui",t.prototype.options=null,t.prototype.api=null,t.prototype.headerView=null,t.prototype.mainView=null,t.prototype.initialize=function(e){return null==e&&(e={}),null!=e.dom_id&&(this.dom_id=e.dom_id,delete e.dom_id),null==e.supportedSubmitMethods&&(e.supportedSubmitMethods=["get","put","post","delete","head","options","patch"]),null==$("#"+this.dom_id)&&$("body").append('<div id="'+this.dom_id+'"></div>'),this.options=e,this.options.success=function(e){return function(){return e.render()}}(this),this.options.progress=function(e){return function(t){return e.showMessage(t)}}(this),this.options.failure=function(e){return function(t){return e.onLoadFailure(t)}}(this),this.headerView=new HeaderView({el:$("#header")}),this.headerView.on("update-swagger-ui",function(e){return function(t){return e.updateSwaggerUi(t)}}(this))},t.prototype.setOption=function(e,t){return this.options[e]=t},t.prototype.getOption=function(e){return this.options[e]},t.prototype.updateSwaggerUi=function(e){return this.options.url=e.url,this.load()},t.prototype.load=function(){var e,t;return null!=(t=this.mainView)&&t.clear(),e=this.options.url,e&&0!==e.indexOf("http")&&(e=this.buildUrl(window.location.href.toString(),e)),this.options.url=e,this.headerView.update(e),this.api=new SwaggerClient(this.options)},t.prototype.collapseAll=function(){return Docs.collapseEndpointListForResource("")},t.prototype.listAll=function(){return Docs.collapseOperationsForResource("")},t.prototype.expandAll=function(){return Docs.expandOperationsForResource("")},t.prototype.render=function(){switch(this.showMessage("Finished Loading Resource Information. Rendering Swagger UI..."),this.mainView=new MainView({model:this.api,el:$("#"+this.dom_id),swaggerOptions:this.options}).render(),this.showMessage(),this.options.docExpansion){case"full":this.expandAll();break;case"list":this.listAll()}return this.renderGFM(),this.options.onComplete&&this.options.onComplete(this.api,this),setTimeout(function(){return function(){return Docs.shebang()}}(this),100)},t.prototype.buildUrl=function(e,t){var n,a;return 0===t.indexOf("/")?(a=e.split("/"),e=a[0]+"//"+a[2],e+t):(n=e.length,e.indexOf("?")>-1&&(n=Math.min(n,e.indexOf("?"))),e.indexOf("#")>-1&&(n=Math.min(n,e.indexOf("#"))),e=e.substring(0,n),-1!==e.indexOf("/",e.length-1)?e+t:e+"/"+t)},t.prototype.showMessage=function(e){return null==e&&(e=""),$("#message-bar").removeClass("message-fail"),$("#message-bar").addClass("message-success"),$("#message-bar").html(e)},t.prototype.onLoadFailure=function(e){var t;return null==e&&(e=""),$("#message-bar").removeClass("message-success"),$("#message-bar").addClass("message-fail"),t=$("#message-bar").html(e),null!=this.options.onFailure&&this.options.onFailure(e),t},t.prototype.renderGFM=function(e){return null==e&&(e=""),$(".markdown").each(function(){return $(this).html(marked($(this).html()))})},t}(Backbone.Router),window.SwaggerUi=SwaggerUi,this.Handlebars.templates.basic_auth_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(){return'<div class=\'auth_button\' id=\'basic_auth_button\'><img class=\'auth_icon\' src=\'images/password.jpeg\'></div>\n<div class=\'auth_container\' id=\'basic_auth_container\'>\n <div class=\'key_input_container\'>\n <div class="auth_label">Username</div>\n <input placeholder="username" class="auth_input" id="input_username" name="username" type="text"/>\n <div class="auth_label">Password</div>\n <input placeholder="password" class="auth_input" id="input_password" name="password" type="password"/>\n <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_basic_auth" href="#">apply</a></div>\n </div>\n</div>\n\n'},useData:!0}),Handlebars.registerHelper("sanitize",function(e){return e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""),new Handlebars.SafeString(e)}),this.Handlebars.templates.content_type=Handlebars.template({1:function(e,t,n,a){var s,i="";return s=t.each.call(e,null!=e?e.produces:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i},2:function(e){var t,n=this.lambda,a=' <option value="';return t=n(e,e),null!=t&&(a+=t),a+='">',t=n(e,e),null!=t&&(a+=t),a+"</option>\n"},4:function(){return' <option value="application/json">application/json</option>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i='<label for="contentType"></label>\n<select name="contentType">\n';return s=t["if"].call(e,null!=e?e.produces:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i+"</select>\n"},useData:!0});var ApiKeyButton,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ApiKeyButton=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this},t.prototype.events={"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"},t.prototype.applyApiKey=function(){var e;return window.authorizations.add(this.model.name,new ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"])),window.swaggerUi.load(),e=$("#apikey_container").show()},t.prototype.toggleApiKeyContainer=function(){var e;return $("#apikey_container").length>0?(e=$("#apikey_container").first(),e.is(":visible")?e.hide():($(".auth_container").hide(),e.show())):void 0},t.prototype.template=function(){return Handlebars.templates.apikey_button_view},t}(Backbone.View),this.Handlebars.templates.main=Handlebars.template({1:function(e,t,n,a){var s,i=this.lambda,r=this.escapeExpression,l=' <div class="info_title">'+r(i(null!=(s=null!=e?e.info:e)?s.title:s,e))+'</div>\n <div class="info_description markdown">';return s=i(null!=(s=null!=e?e.info:e)?s.description:s,e),null!=s&&(l+=s),l+="</div>\n ",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.termsOfServiceUrl:s,{name:"if",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.name:s,{name:"if",hash:{},fn:this.program(4,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.url:s,{name:"if",hash:{},fn:this.program(6,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.email:s,{name:"if",hash:{},fn:this.program(8,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+="\n ",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.license:s,{name:"if",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(l+=s),l+"\n"},2:function(e){var t,n=this.lambda,a=this.escapeExpression;return'<div class="info_tos"><a href="'+a(n(null!=(t=null!=e?e.info:e)?t.termsOfServiceUrl:t,e))+'">Terms of service</a></div>'},4:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_name'>Created by "+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.name:t,e))+"</div>"},6:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_url'>See more at <a href=\""+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.url:t,e))+'">'+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.url:t,e))+"</a></div>"},8:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_email'><a href=\"mailto:"+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.contact:t)?t.email:t,e))+"?subject="+a(n(null!=(t=null!=e?e.info:e)?t.title:t,e))+'">Contact the developer</a></div>'},10:function(e){var t,n=this.lambda,a=this.escapeExpression;return"<div class='info_license'><a href='"+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.license:t)?t.url:t,e))+"'>"+a(n(null!=(t=null!=(t=null!=e?e.info:e)?t.license:t)?t.name:t,e))+"</a></div>"},12:function(e){var t,n=this.lambda,a=this.escapeExpression;return' , <span style="font-variant: small-caps">api version</span>: '+a(n(null!=(t=null!=e?e.info:e)?t.version:t,e))+"\n "},14:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return' <span style="float:right"><a href="'+l((s=null!=(s=t.validatorUrl||(null!=e?e.validatorUrl:e))?s:r,typeof s===i?s.call(e,{name:"validatorUrl",hash:{},data:a}):s))+"/debug?url="+l((s=null!=(s=t.url||(null!=e?e.url:e))?s:r,typeof s===i?s.call(e,{name:"url",hash:{},data:a}):s))+'"><img id="validator" src="'+l((s=null!=(s=t.validatorUrl||(null!=e?e.validatorUrl:e))?s:r,typeof s===i?s.call(e,{name:"validatorUrl",hash:{},data:a}):s))+"?url="+l((s=null!=(s=t.url||(null!=e?e.url:e))?s:r,typeof s===i?s.call(e,{name:"url",hash:{},data:a}):s))+'"></a>\n </span>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<div class='info' id='api_info'>\n";return s=t["if"].call(e,null!=e?e.info:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+="</div>\n<div class='container' id='resources_container'>\n <ul id='resources'></ul>\n\n <div class=\"footer\">\n <br>\n <br>\n <h4 style=\"color: #999\">[ <span style=\"font-variant: small-caps\">base url</span>: "+o((i=null!=(i=t.basePath||(null!=e?e.basePath:e))?i:l,typeof i===r?i.call(e,{name:"basePath",hash:{},data:a}):i))+"\n",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.version:s,{name:"if",hash:{},fn:this.program(12,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+="]\n",s=t["if"].call(e,null!=e?e.validatorUrl:e,{name:"if",hash:{},fn:this.program(14,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+" </h4>\n </div>\n</div>\n"},useData:!0});var BasicAuthButton,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;BasicAuthButton=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this},t.prototype.events={"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"},t.prototype.applyPassword=function(){var e,t,n;return n=$(".input_username").val(),t=$(".input_password").val(),window.authorizations.add(this.model.type,new PasswordAuthorization("basic",n,t)),window.swaggerUi.load(),e=$("#basic_auth_container").hide()},t.prototype.togglePasswordContainer=function(){var e;return $("#basic_auth_container").length>0?(e=$("#basic_auth_container").show(),e.is(":visible")?e.slideUp():($(".auth_container").hide(),e.show())):void 0},t.prototype.template=function(){return Handlebars.templates.basic_auth_button_view},t}(Backbone.View),this.Handlebars.templates.operation=Handlebars.template({1:function(){return"deprecated"},3:function(){return" <h4>Warning: Deprecated</h4>\n"},5:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=' <h4>Implementation Notes</h4>\n <p class="markdown">';return i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(o+=s),o+"</p>\n"},7:function(){return' <div class="auth">\n <span class="api-ic ic-error"></span>'},9:function(e,t,n,a){var s,i=' <div id="api_information_panel" style="top: 526px; left: 776px; display: none;">\n';return s=t.each.call(e,e,{name:"each",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i+" </div>\n"},10:function(e){var t,n=this.lambda,a=this.escapeExpression,s=" <div title='";return t=n(null!=e?e.description:e,e),null!=t&&(s+=t),s+"'>"+a(n(null!=e?e.scope:e,e))+"</div>\n"},12:function(){return"</div>"},14:function(){return' <div class=\'access\'>\n <span class="api-ic ic-off" title="click to authenticate"></span>\n </div>\n'},16:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <h4>Response Class (Status "+l((s=null!=(s=t.successCode||(null!=e?e.successCode:e))?s:r,typeof s===i?s.call(e,{name:"successCode",hash:{},data:a}):s))+')</h4>\n <p><span class="model-signature" /></p>\n <br/>\n <div class="response-content-type" />\n'},18:function(){return' <h4>Parameters</h4>\n <table class=\'fullwidth\'>\n <thead>\n <tr>\n <th style="width: 100px; max-width: 100px">Parameter</th>\n <th style="width: 310px; max-width: 310px">Value</th>\n <th style="width: 200px; max-width: 200px">Description</th>\n <th style="width: 100px; max-width: 100px">Parameter Type</th>\n <th style="width: 220px; max-width: 230px">Data Type</th>\n </tr>\n </thead>\n <tbody class="operation-params">\n\n </tbody>\n </table>\n'},20:function(){return" <div style='margin:0;padding:0;display:inline'></div>\n <h4>Response Messages</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>HTTP Status Code</th>\n <th>Reason</th>\n <th>Response Model</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n"},22:function(){return""},24:function(){return" <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <span class='response_throbber' style='display:none'></span>\n </div>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r,l="function",o=t.helperMissing,p=this.escapeExpression,u=t.blockHelperMissing,h="\n <ul class='operations' >\n <li class='"+p((i=null!=(i=t.method||(null!=e?e.method:e))?i:o,typeof i===l?i.call(e,{name:"method",hash:{},data:a}):i))+" operation' id='"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"_"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+"'>\n <div class='heading'>\n <h3>\n <span class='http_method'>\n <a href='#!/"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"/"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+'\' class="toggleOperation">'+p((i=null!=(i=t.method||(null!=e?e.method:e))?i:o,typeof i===l?i.call(e,{name:"method",hash:{},data:a}):i))+"</a>\n </span>\n <span class='path'>\n <a href='#!/"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"/"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+"' class=\"toggleOperation ";return s=t["if"].call(e,null!=e?e.deprecated:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(h+=s),h+='">'+p((i=null!=(i=t.path||(null!=e?e.path:e))?i:o,typeof i===l?i.call(e,{name:"path",hash:{},data:a}):i))+"</a>\n </span>\n </h3>\n <ul class='options'>\n <li>\n <a href='#!/"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"/"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+'\' class="toggleOperation">',i=null!=(i=t.summary||(null!=e?e.summary:e))?i:o,s=typeof i===l?i.call(e,{name:"summary",hash:{},data:a}):i,null!=s&&(h+=s),h+="</a>\n </li>\n </ul>\n </div>\n <div class='content' id='"+p((i=null!=(i=t.parentId||(null!=e?e.parentId:e))?i:o,typeof i===l?i.call(e,{name:"parentId",hash:{},data:a}):i))+"_"+p((i=null!=(i=t.nickname||(null!=e?e.nickname:e))?i:o,typeof i===l?i.call(e,{name:"nickname",hash:{},data:a}):i))+"_content' style='display:none'>\n",s=t["if"].call(e,null!=e?e.deprecated:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.noop,data:a}),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.description:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.noop,data:a}),null!=s&&(h+=s),i=null!=(i=t.oauth||(null!=e?e.oauth:e))?i:o,r={name:"oauth",hash:{},fn:this.program(7,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.oauth||(s=u.call(e,s,r)),null!=s&&(h+=s),h+="\n",s=t.each.call(e,null!=e?e.oauth:e,{name:"each",hash:{},fn:this.program(9,a),inverse:this.noop,data:a}),null!=s&&(h+=s),h+=" ",i=null!=(i=t.oauth||(null!=e?e.oauth:e))?i:o,r={name:"oauth",hash:{},fn:this.program(12,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.oauth||(s=u.call(e,s,r)),null!=s&&(h+=s),h+="\n",i=null!=(i=t.oauth||(null!=e?e.oauth:e))?i:o,r={name:"oauth",hash:{},fn:this.program(14,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.oauth||(s=u.call(e,s,r)),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.type:e,{name:"if",hash:{},fn:this.program(16,a),inverse:this.noop,data:a}),null!=s&&(h+=s),h+=" <form accept-charset='UTF-8' class='sandbox'>\n <div style='margin:0;padding:0;display:inline'></div>\n",s=t["if"].call(e,null!=e?e.parameters:e,{name:"if",hash:{},fn:this.program(18,a),inverse:this.noop,data:a}),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.responseMessages:e,{name:"if",hash:{},fn:this.program(20,a),inverse:this.noop,data:a}),null!=s&&(h+=s),s=t["if"].call(e,null!=e?e.isReadOnly:e,{name:"if",hash:{},fn:this.program(22,a),inverse:this.program(24,a),data:a}),null!=s&&(h+=s),h+" </form>\n <div class='response' style='display:none'>\n <h4>Request URL</h4>\n <div class='block request_url'></div>\n <h4>Response Body</h4>\n <div class='block response_body'></div>\n <h4>Response Code</h4>\n <div class='block response_code'></div>\n <h4>Response Headers</h4>\n <div class='block response_headers'></div>\n </div>\n </div>\n </li>\n </ul>\n"},useData:!0});var ContentTypeView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ContentTypeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),$("label[for=contentType]",$(this.el)).text("Response Content Type"),this},t.prototype.template=function(){return Handlebars.templates.content_type},t}(Backbone.View),this.Handlebars.templates.param=Handlebars.template({1:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i},2:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return' <input type="file" name=\''+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+'\'/>\n <div class="parameter-content-type" />\n'},4:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.program(7,a),data:a}),null!=s&&(i+=s),i},5:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+'</textarea>\n <br />\n <div class="parameter-content-type" />\n'},7:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+'\'></textarea>\n <br />\n <div class="parameter-content-type" />\n'},9:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(10,a),data:a}),null!=s&&(i+=s),i},10:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(11,a),inverse:this.program(13,a),data:a}),null!=s&&(i+=s),i},11:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <input class='parameter' minlength='0' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='' type='text' value='"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"'/>\n"},13:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <input class='parameter' minlength='0' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='' type='text' value=''/>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td class='code'>"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"</td>\n<td>\n\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(9,a),data:a}),null!=s&&(p+=s),p+='\n</td>\n<td class="markdown">',i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(p+=s),p+="</td>\n<td>",i=null!=(i=t.paramType||(null!=e?e.paramType:e))?i:l,s=typeof i===r?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(p+=s),p+'</td>\n<td>\n <span class="model-signature"></span>\n</td>\n'},useData:!0});var HeaderView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;HeaderView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.events={"click #show-pet-store-icon":"showPetStore","click #show-wordnik-dev-icon":"showWordnikDev","click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"},t.prototype.initialize=function(){},t.prototype.showPetStore=function(){return this.trigger("update-swagger-ui",{url:"http://petstore.swagger.wordnik.com/api/api-docs"})},t.prototype.showWordnikDev=function(){return this.trigger("update-swagger-ui",{url:"http://api.wordnik.com/v4/resources.json"})},t.prototype.showCustomOnKeyup=function(e){return 13===e.keyCode?this.showCustom():void 0},t.prototype.showCustom=function(e){return null!=e&&e.preventDefault(),this.trigger("update-swagger-ui",{url:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})},t.prototype.update=function(e,t,n){return null==n&&(n=!1),$("#input_baseUrl").val(e),n?this.trigger("update-swagger-ui",{url:e}):void 0},t}(Backbone.View),this.Handlebars.templates.param_list=Handlebars.template({1:function(){return" multiple='multiple'"},3:function(){return""},5:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.program(6,a),data:a}),null!=s&&(i+=s),i},6:function(e,t,n,a){var s,i=t.helperMissing,r="";return s=(t.isArray||e&&e.isArray||i).call(e,e,{name:"isArray",hash:{},fn:this.program(3,a),inverse:this.program(7,a),data:a}),null!=s&&(r+=s),r},7:function(){return" <option selected=\"\" value=''></option>\n"},9:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isDefault:e,{name:"if",hash:{},fn:this.program(10,a),inverse:this.program(12,a),data:a}),null!=s&&(i+=s),i},10:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return' <option selected="" value=\''+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+" (default)</option>\n"},12:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <option value='"+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t.value||(null!=e?e.value:e))?s:r,typeof s===i?s.call(e,{name:"value",hash:{},data:a}):s))+"</option>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td class='code'>"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"</td>\n<td>\n <select ";return s=(t.isArray||e&&e.isArray||l).call(e,e,{name:"isArray",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+=" class='parameter' name='"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"'>\n",s=t["if"].call(e,null!=e?e.required:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.program(5,a),data:a}),null!=s&&(p+=s),s=t.each.call(e,null!=(s=null!=e?e.allowableValues:e)?s.descriptiveValues:s,{name:"each",hash:{},fn:this.program(9,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+=' </select>\n</td>\n<td class="markdown">',i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(p+=s),p+="</td>\n<td>",i=null!=(i=t.paramType||(null!=e?e.paramType:e))?i:l,s=typeof i===r?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>'},useData:!0});var MainView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;MainView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}var n;return __extends(t,e),n={alpha:function(e,t){return e.path.localeCompare(t.path)},method:function(e,t){return e.method.localeCompare(t.method)}},t.prototype.initialize=function(e){var t,n,a,s;null==e&&(e={}),this.model.auths=[],s=this.model.securityDefinitions;for(n in s)a=s[n],t={name:n,type:a.type,value:a},this.model.auths.push(t);return"2.0"===this.model.swaggerVersion?this.model.validatorUrl="validatorUrl"in e.swaggerOptions?e.swaggerOptions.validatorUrl:this.model.url.indexOf("localhost")>0?null:"http://online.swagger.io/validator":void 0},t.prototype.render=function(){var e,t,n,a,s,i,r,l,o,p;if(this.model.securityDefinitions)for(s in this.model.securityDefinitions)e=this.model.securityDefinitions[s],"apiKey"===e.type&&0===$("#apikey_button").length&&(t=new ApiKeyButton({model:e}).render().el,$(".auth_main_container").append(t)),"basicAuth"===e.type&&0===$("#basic_auth_button").length&&(t=new BasicAuthButton({model:e}).render().el,$(".auth_main_container").append(t));for($(this.el).html(Handlebars.templates.main(this.model)),r={},n=0,p=this.model.apisArray,l=0,o=p.length;o>l;l++){for(i=p[l],a=i.name;"undefined"!=typeof r[a];)a=a+"_"+n,n+=1;
i.id=a,r[a]=i,this.addResource(i,this.model.auths)}return $(".propWrap").hover(function(){return $(".optionsWrapper",$(this)).show()},function(){return $(".optionsWrapper",$(this)).hide()}),this},t.prototype.addResource=function(e,t){var n;return e.id=e.id.replace(/\s/g,"_"),n=new ResourceView({model:e,tagName:"li",id:"resource_"+e.id,className:"resource",auths:t,swaggerOptions:this.options.swaggerOptions}),$("#resources").append(n.render().el)},t.prototype.clear=function(){return $(this.el).html("")},t}(Backbone.View),this.Handlebars.templates.param_readonly=Handlebars.template({1:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea' readonly='readonly' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"</textarea>\n"},3:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(4,a),inverse:this.program(6,a),data:a}),null!=s&&(i+=s),i},4:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" "+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"\n"},6:function(){return" (empty)\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td class='code'>"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"</td>\n<td>\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(3,a),data:a}),null!=s&&(p+=s),p+='</td>\n<td class="markdown">',i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(p+=s),p+="</td>\n<td>",i=null!=(i=t.paramType||(null!=e?e.paramType:e))?i:l,s=typeof i===r?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:!0}),this.Handlebars.templates.param_readonly_required=Handlebars.template({1:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea' readonly='readonly' placeholder='(required)' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"</textarea>\n"},3:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(4,a),inverse:this.program(6,a),data:a}),null!=s&&(i+=s),i},4:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" "+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"\n"},6:function(){return" (empty)\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td class='code required'>"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"</td>\n<td>\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(3,a),data:a}),null!=s&&(p+=s),p+='</td>\n<td class="markdown">',i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(p+=s),p+="</td>\n<td>",i=null!=(i=t.paramType||(null!=e?e.paramType:e))?i:l,s=typeof i===r?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:!0});var OperationView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;OperationView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.invocationUrl=null,t.prototype.events={"submit .sandbox":"submitOperation","click .submit":"submitOperation","click .response_hider":"hideResponse","click .toggleOperation":"toggleOperationContent","mouseenter .api-ic":"mouseEnter","mouseout .api-ic":"mouseExit"},t.prototype.initialize=function(e){return null==e&&(e={}),this.auths=e.auths,this.parentId=this.model.parentId,this.nickname=this.model.nickname,this},t.prototype.mouseEnter=function(e){var t,n,a,s,i,r,l,o,p,u;return t=$(this.el).find(".content"),p=e.pageX,u=e.pageY,r=$(window).scrollLeft(),l=$(window).scrollTop(),s=r+$(window).width(),i=l+$(window).height(),o=t.width(),n=t.height(),p+o>s&&(p=s-o),r>p&&(p=r),u+n>i&&(u=i-n),l>u&&(u=l),a={},a.top=u,a.left=p,t.css(a),$(e.currentTarget.parentNode).find("#api_information_panel").show()},t.prototype.mouseExit=function(e){return $(e.currentTarget.parentNode).find("#api_information_panel").hide()},t.prototype.render=function(){var e,t,n,a,s,i,r,l,o,p,u,h,c,d,m,f,y,g,v,_,w,b,x,k,O,C,S,P,T,D,H,M,E,R,V,N,U,A;if(i=jQuery.inArray(this.model.method,this.model.supportedSubmitMethods())>=0,i||(this.model.isReadOnly=!0),this.model.description=this.model.description||this.model.notes,this.model.description&&(this.model.description=this.model.description.replace(/(?:\r\n|\r|\n)/g,"<br />")),this.model.oauth=null,o=this.model.authorizations||this.model.security)if(Array.isArray(o))for(k=0,P=o.length;P>k;k++){n=o[k];for(l in n){t=n[l];for(e in this.auths)if(t=this.auths[e],"oauth2"===t.type){this.model.oauth={},this.model.oauth.scopes=[],R=t.value.scopes;for(r in R)b=R[r],y=n[l].indexOf(r),y>=0&&(p={scope:r,description:b},this.model.oauth.scopes.push(p))}}}else for(r in o)if(b=o[r],"oauth2"===r)for(null===this.model.oauth&&(this.model.oauth={}),void 0===this.model.oauth.scopes&&(this.model.oauth.scopes=[]),O=0,T=b.length;T>O;O++)p=b[O],this.model.oauth.scopes.push(p);if("undefined"!=typeof this.model.responses){this.model.responseMessages=[],V=this.model.responses;for(a in V)x=V[a],m=null,f=this.model.responses[a].schema,f&&f.$ref&&(m=f.$ref,0===m.indexOf("#/definitions/")&&(m=m.substring("#/definitions/".length))),this.model.responseMessages.push({code:a,message:x.description,responseModel:m})}if("undefined"==typeof this.model.responseMessages&&(this.model.responseMessages=[]),g=null,this.model.successResponse){_=this.model.successResponse;for(l in _)x=_[l],this.model.successCode=l,"object"==typeof x&&"function"==typeof x.createJSONSample&&(g={sampleJSON:JSON.stringify(x.createJSONSample(),void 0,2),isParam:!1,signature:x.getMockSignature()})}else this.model.responseClassSignature&&"string"!==this.model.responseClassSignature&&(g={sampleJSON:this.model.responseSampleJSON,isParam:!1,signature:this.model.responseClassSignature});for($(this.el).html(Handlebars.templates.operation(this.model)),g?(d=new SignatureView({model:g,tagName:"div"}),$(".model-signature",$(this.el)).append(d.render().el)):(this.model.responseClassSignature="string",$(".model-signature",$(this.el)).html(this.model.type)),s={isParam:!1},s.consumes=this.model.consumes,s.produces=this.model.produces,N=this.model.parameters,C=0,D=N.length;D>C;C++)u=N[C],w=u.type||u.dataType||"","undefined"==typeof w&&(m=u.schema,m&&m.$ref&&(h=m.$ref,w=0===h.indexOf("#/definitions/")?h.substring("#/definitions/".length):h)),w&&"file"===w.toLowerCase()&&(s.consumes||(s.consumes="multipart/form-data")),u.type=w;for(c=new ResponseContentTypeView({model:s}),$(".response-content-type",$(this.el)).append(c.render().el),U=this.model.parameters,S=0,H=U.length;H>S;S++)u=U[S],this.addParameter(u,s.consumes);for(A=this.model.responseMessages,E=0,M=A.length;M>E;E++)v=A[E],this.addStatusCode(v);return this},t.prototype.addParameter=function(e,t){var n;return e.consumes=t,n=new ParameterView({model:e,tagName:"tr",readOnly:this.model.isReadOnly}),$(".operation-params",$(this.el)).append(n.render().el)},t.prototype.addStatusCode=function(e){var t;return t=new StatusCodeView({model:e,tagName:"tr"}),$(".operation-status",$(this.el)).append(t.render().el)},t.prototype.submitOperation=function(e){var t,n,a,s,i,r,l,o,p,u,h,c,d,m,f,y;if(null!=e&&e.preventDefault(),n=$(".sandbox",$(this.el)),t=!0,n.find("input.required").each(function(){return $(this).removeClass("error"),""===jQuery.trim($(this).val())?($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){return $(e).focus()}}(this)}),t=!1):void 0}),n.find("textarea.required").each(function(){return $(this).removeClass("error"),""===jQuery.trim($(this).val())?($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){return $(e).focus()}}(this)}),t=!1):void 0}),t){for(s={},r={parent:this},a=!1,m=n.find("input"),o=0,h=m.length;h>o;o++)i=m[o],null!=i.value&&jQuery.trim(i.value).length>0&&(s[i.name]=i.value),"file"===i.type&&(s[i.name]=i.files[0],a=!0);for(f=n.find("textarea"),p=0,c=f.length;c>p;p++)i=f[p],null!=i.value&&jQuery.trim(i.value).length>0&&(s[i.name]=i.value);for(y=n.find("select"),u=0,d=y.length;d>u;u++)i=y[u],l=this.getSelectedValue(i),null!=l&&jQuery.trim(l).length>0&&(s[i.name]=l);return r.responseContentType=$("div select[name=responseContentType]",$(this.el)).val(),r.requestContentType=$("div select[name=parameterContentType]",$(this.el)).val(),$(".response_throbber",$(this.el)).show(),a?this.handleFileUpload(s,n):this.model["do"](s,r,this.showCompleteStatus,this.showErrorStatus,this)}},t.prototype.success=function(e,t){return t.showCompleteStatus(e)},t.prototype.handleFileUpload=function(e,t){var n,a,s,i,r,l,o,p,u,h,c,d,m,f,y,g,v,_,w;for(g=t.serializeArray(),p=0,d=g.length;d>p;p++)i=g[p],null!=i.value&&jQuery.trim(i.value).length>0&&(e[i.name]=i.value);for(n=new FormData,o=0,v=this.model.parameters,u=0,m=v.length;m>u;u++)l=v[u],("form"===l.paramType||"formData"===l["in"])&&"file"!==l.type.toLowerCase()&&void 0!==e[l.name]&&n.append(l.name,e[l.name]);for(s={},_=this.model.parameters,h=0,f=_.length;f>h;h++)l=_[h],"header"===l.paramType&&(s[l.name]=e[l.name]);for(w=t.find('input[type~="file"]'),c=0,y=w.length;y>c;c++)a=w[c],"undefined"!=typeof a.files[0]&&(n.append($(a).attr("name"),a.files[0]),o+=1);return this.invocationUrl=this.model.supportHeaderParams()?(s=this.model.getHeaderParams(e),delete s["Content-Type"],this.model.urlify(e,!1)):this.model.urlify(e,!0),$(".request_url",$(this.el)).html("<pre></pre>"),$(".request_url pre",$(this.el)).text(this.invocationUrl),r={type:this.model.method,url:this.invocationUrl,headers:s,data:n,dataType:"json",contentType:!1,processData:!1,error:function(e){return function(t){return e.showErrorStatus(e.wrap(t),e)}}(this),success:function(e){return function(t){return e.showResponse(t,e)}}(this),complete:function(e){return function(t){return e.showCompleteStatus(e.wrap(t),e)}}(this)},window.authorizations&&window.authorizations.apply(r),0===o&&r.data.append("fake","true"),jQuery.ajax(r),!1},t.prototype.wrap=function(e){var t,n,a,s,i,r,l;for(a={},n=e.getAllResponseHeaders().split("\r"),r=0,l=n.length;l>r;r++)s=n[r],t=s.match(/^([^:]*?):(.*)$/),t||(t=[]),t.shift(),void 0!==t[0]&&void 0!==t[1]&&(a[t[0].trim()]=t[1].trim());return i={},i.content={},i.content.data=e.responseText,i.headers=a,i.request={},i.request.url=this.invocationUrl,i.status=e.status,i},t.prototype.getSelectedValue=function(e){var t,n,a,s,i;if(e.multiple){for(n=[],i=e.options,a=0,s=i.length;s>a;a++)t=i[a],t.selected&&n.push(t.value);return n.length>0?n:null}return e.value},t.prototype.hideResponse=function(e){return null!=e&&e.preventDefault(),$(".response",$(this.el)).slideUp(),$(".response_hider",$(this.el)).fadeOut()},t.prototype.showResponse=function(e){var t;return t=JSON.stringify(e,null," ").replace(/\n/g,"<br>"),$(".response_body",$(this.el)).html(escape(t))},t.prototype.showErrorStatus=function(e,t){return t.showStatus(e)},t.prototype.showCompleteStatus=function(e,t){return t.showStatus(e)},t.prototype.formatXml=function(e){var t,n,a,s,i,r,l,o,p,u,h,c,d;for(o=/(>)(<)(\/*)/g,u=/[ ]*(.*)[ ]+\n/g,t=/(<.+>)(.+\n)/g,e=e.replace(o,"$1\n$2$3").replace(u,"$1\n").replace(t,"$1\n$2"),l=0,n="",i=e.split("\n"),a=0,s="other",p={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0},h=function(e){var t,i,r,l,o,u,h;return u={single:Boolean(e.match(/<.+\/>/)),closing:Boolean(e.match(/<\/.+>/)),opening:Boolean(e.match(/<[^!?].*>/))},o=function(){var e;e=[];for(r in u)h=u[r],h&&e.push(r);return e}()[0],o=void 0===o?"other":o,t=s+"->"+o,s=o,l="",a+=p[t],l=function(){var e,t,n;for(n=[],i=e=0,t=a;t>=0?t>e:e>t;i=t>=0?++e:--e)n.push(" ");return n}().join(""),"opening->closing"===t?n=n.substr(0,n.length-1)+e+"\n":n+=l+e+"\n"},c=0,d=i.length;d>c;c++)r=i[c],h(r);return n},t.prototype.showStatus=function(e){var t,n,a,s,i,r,l,o,p,u,h;if(void 0===e.content?(n=e.data,h=e.url):(n=e.content.data,h=e.request.url),i=e.headers,a=null,i&&(a=i["Content-Type"]||i["content-type"],a&&(a=a.split(";")[0].trim())),$(".response_body",$(this.el)).removeClass("json"),$(".response_body",$(this.el)).removeClass("xml"),n)if("application/json"===a||/\+json$/.test(a)){r=null;try{r=JSON.stringify(JSON.parse(n),null," ")}catch(c){s=c,r="can't parse JSON. Raw result:\n\n"+n}t=$("<code />").text(r),o=$('<pre class="json" />').append(t)}else"application/xml"===a||/\+xml$/.test(a)?(t=$("<code />").text(this.formatXml(n)),o=$('<pre class="xml" />').append(t)):"text/html"===a?(t=$("<code />").html(_.escape(n)),o=$('<pre class="xml" />').append(t)):/^image\//.test(a)?o=$("<img>").attr("src",h):(t=$("<code />").text(n),o=$('<pre class="json" />').append(t));else t=$("<code />").text("no content"),o=$('<pre class="json" />').append(t);return p=o,$(".request_url",$(this.el)).html("<pre></pre>"),$(".request_url pre",$(this.el)).text(h),$(".response_code",$(this.el)).html("<pre>"+e.status+"</pre>"),$(".response_body",$(this.el)).html(p),$(".response_headers",$(this.el)).html("<pre>"+_.escape(JSON.stringify(e.headers,null," ")).replace(/\n/g,"<br>")+"</pre>"),$(".response",$(this.el)).slideDown(),$(".response_hider",$(this.el)).show(),$(".response_throbber",$(this.el)).hide(),u=$(".response_body",$(this.el))[0],l=this.options.swaggerOptions,l.highlightSizeThreshold&&e.data.length>l.highlightSizeThreshold?u:hljs.highlightBlock(u)},t.prototype.toggleOperationContent=function(){var e;return e=$("#"+Docs.escapeResourceName(this.parentId+"_"+this.nickname+"_content")),e.is(":visible")?Docs.collapseOperation(e):Docs.expandOperation(e)},t}(Backbone.View);var ParameterContentTypeView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ParameterContentTypeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),$("label[for=parameterContentType]",$(this.el)).text("Parameter content type:"),this},t.prototype.template=function(){return Handlebars.templates.parameter_content_type},t}(Backbone.View),this.Handlebars.templates.param_required=Handlebars.template({1:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i},2:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return' <input type="file" name=\''+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"'/>\n"},4:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.program(7,a),data:a}),null!=s&&(i+=s),i},5:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea required' placeholder='(required)' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+'</textarea>\n <br />\n <div class="parameter-content-type" />\n'},7:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <textarea class='body-textarea required' placeholder='(required)' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+'\'></textarea>\n <br />\n <div class="parameter-content-type" />\n'},9:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(10,a),inverse:this.program(12,a),data:a}),null!=s&&(i+=s),i},10:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <input class='parameter' class='required' type='file' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"'/>\n"},12:function(e,t,n,a){var s,i="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(13,a),inverse:this.program(15,a),data:a}),null!=s&&(i+=s),i},13:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <input class='parameter required' minlength='1' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='(required)' type='text' value='"+l((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:r,typeof s===i?s.call(e,{name:"default",hash:{},data:a}):s))+"'/>\n"},15:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return" <input class='parameter required' minlength='1' name='"+l((s=null!=(s=t.name||(null!=e?e.name:e))?s:r,typeof s===i?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='(required)' type='text' value=''/>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td class='code required'>"+o((i=null!=(i=t.name||(null!=e?e.name:e))?i:l,typeof i===r?i.call(e,{name:"name",hash:{},data:a}):i))+"</td>\n<td>\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(9,a),data:a}),null!=s&&(p+=s),p+='</td>\n<td>\n <strong><span class="markdown">',i=null!=(i=t.description||(null!=e?e.description:e))?i:l,s=typeof i===r?i.call(e,{name:"description",hash:{},data:a}):i,null!=s&&(p+=s),p+="</span></strong>\n</td>\n<td>",i=null!=(i=t.paramType||(null!=e?e.paramType:e))?i:l,s=typeof i===r?i.call(e,{name:"paramType",hash:{},data:a}):i,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:!0}),this.Handlebars.templates.parameter_content_type=Handlebars.template({1:function(e,t,n,a){var s,i="";return s=t.each.call(e,null!=e?e.consumes:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i},2:function(e){var t,n=this.lambda,a=' <option value="';return t=n(e,e),null!=t&&(a+=t),a+='">',t=n(e,e),null!=t&&(a+=t),a+"</option>\n"},4:function(){return' <option value="application/json">application/json</option>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i='<label for="parameterContentType"></label>\n<select name="parameterContentType">\n';return s=t["if"].call(e,null!=e?e.consumes:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i+"</select>\n"},useData:!0});var ParameterView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ParameterView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){return Handlebars.registerHelper("isArray",function(e,t){return"array"===e.type.toLowerCase()||e.allowMultiple?t.fn(this):t.inverse(this)})},t.prototype.render=function(){var e,t,n,a,s,i,r,l,o,p;return p=this.model.type||this.model.dataType,"undefined"==typeof p&&(i=this.model.schema,i&&i.$ref&&(a=i.$ref,p=0===a.indexOf("#/definitions/")?a.substring("#/definitions/".length):a)),this.model.type=p,this.model.paramType=this.model["in"]||this.model.paramType,("body"===this.model.paramType||"body"===this.model["in"])&&(this.model.isBody=!0),p&&"file"===p.toLowerCase()&&(this.model.isFile=!0),this.model["default"]=this.model["default"]||this.model.defaultValue,this.model.allowableValues&&(this.model.isList=!0),o=this.template(),$(this.el).html(o(this.model)),r={sampleJSON:this.model.sampleJSON,isParam:!0,signature:this.model.signature},this.model.sampleJSON?(l=new SignatureView({model:r,tagName:"div"}),$(".model-signature",$(this.el)).append(l.render().el)):$(".model-signature",$(this.el)).html(this.model.signature),t=!1,this.model.isBody&&(t=!0),e={isParam:t},e.consumes=this.model.consumes,t?(n=new ParameterContentTypeView({model:e}),$(".parameter-content-type",$(this.el)).append(n.render().el)):(s=new ResponseContentTypeView({model:e}),$(".response-content-type",$(this.el)).append(s.render().el)),this},t.prototype.template=function(){return this.model.isList?Handlebars.templates.param_list:this.options.readOnly?this.model.required?Handlebars.templates.param_readonly_required:Handlebars.templates.param_readonly:this.model.required?Handlebars.templates.param_required:Handlebars.templates.param},t}(Backbone.View);var ResourceView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ResourceView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(e){return null==e&&(e={}),this.auths=e.auths,""===this.model.description&&(this.model.description=null),null!=this.model.description?this.model.summary=this.model.description:void 0},t.prototype.render=function(){var e,t,n,a,s,i,r;for(n={},$(this.el).html(Handlebars.templates.resource(this.model)),r=this.model.operationsArray,s=0,i=r.length;i>s;s++){for(a=r[s],e=0,t=a.nickname;"undefined"!=typeof n[t];)t=t+"_"+e,e+=1;n[t]=a,a.nickname=t,a.parentId=this.model.id,this.addOperation(a)}return $(".toggleEndpointList",this.el).click(this.callDocs.bind(this,"toggleEndpointListForResource")),$(".collapseResource",this.el).click(this.callDocs.bind(this,"collapseOperationsForResource")),$(".expandResource",this.el).click(this.callDocs.bind(this,"expandOperationsForResource")),this},t.prototype.addOperation=function(e){var t;return e.number=this.number,t=new OperationView({model:e,tagName:"li",className:"endpoint",swaggerOptions:this.options.swaggerOptions,auths:this.auths}),$(".endpoints",$(this.el)).append(t.render().el),this.number++},t.prototype.callDocs=function(e,t){return t.preventDefault(),Docs[e](t.currentTarget.getAttribute("data-id"))},t}(Backbone.View),this.Handlebars.templates.resource=Handlebars.template({1:function(){return" : "},3:function(e,t,n,a){var s,i="function",r=t.helperMissing,l=this.escapeExpression;return"<li>\n <a href='"+l((s=null!=(s=t.url||(null!=e?e.url:e))?s:r,typeof s===i?s.call(e,{name:"url",hash:{},data:a}):s))+"'>Raw</a>\n </li>"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r,l="function",o=t.helperMissing,p=this.escapeExpression,u=t.blockHelperMissing,h="<div class='heading'>\n <h2>\n <a href='#!/"+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+'\' class="toggleEndpointList" data-id="'+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+'">'+p((i=null!=(i=t.name||(null!=e?e.name:e))?i:o,typeof i===l?i.call(e,{name:"name",hash:{},data:a}):i))+"</a> ";return i=null!=(i=t.summary||(null!=e?e.summary:e))?i:o,r={name:"summary",hash:{},fn:this.program(1,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.summary||(s=u.call(e,s,r)),null!=s&&(h+=s),i=null!=(i=t.summary||(null!=e?e.summary:e))?i:o,s=typeof i===l?i.call(e,{name:"summary",hash:{},data:a}):i,null!=s&&(h+=s),h+="\n </h2>\n <ul class='options'>\n <li>\n <a href='#!/"+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+"' id='endpointListTogger_"+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+'\' class="toggleEndpointList" data-id="'+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+'">Show/Hide</a>\n </li>\n <li>\n <a href=\'#\' class="collapseResource" data-id="'+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+'">\n List Operations\n </a>\n </li>\n <li>\n <a href=\'#\' class="expandResource" data-id="'+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+'">\n Expand Operations\n </a>\n </li>\n ',i=null!=(i=t.url||(null!=e?e.url:e))?i:o,r={name:"url",hash:{},fn:this.program(3,a),inverse:this.noop,data:a},s=typeof i===l?i.call(e,r):i,t.url||(s=u.call(e,s,r)),null!=s&&(h+=s),h+"\n </ul>\n</div>\n<ul class='endpoints' id='"+p((i=null!=(i=t.id||(null!=e?e.id:e))?i:o,typeof i===l?i.call(e,{name:"id",hash:{},data:a}):i))+"_endpoint_list' style='display:none'>\n\n</ul>\n"},useData:!0});var ResponseContentTypeView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;ResponseContentTypeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),$("label[for=responseContentType]",$(this.el)).text("Response Content Type"),this},t.prototype.template=function(){return Handlebars.templates.response_content_type},t}(Backbone.View),this.Handlebars.templates.response_content_type=Handlebars.template({1:function(e,t,n,a){var s,i="";return s=t.each.call(e,null!=e?e.produces:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(i+=s),i},2:function(e){var t,n=this.lambda,a=' <option value="';return t=n(e,e),null!=t&&(a+=t),a+='">',t=n(e,e),null!=t&&(a+=t),a+"</option>\n"},4:function(){return' <option value="application/json">application/json</option>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i='<label for="responseContentType"></label>\n<select name="responseContentType">\n';return s=t["if"].call(e,null!=e?e.produces:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(4,a),data:a}),null!=s&&(i+=s),i+"</select>\n"},useData:!0});var SignatureView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;SignatureView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"},t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this.switchToSnippet(),this.isParam=this.model.isParam,this.isParam&&$(".notice",$(this.el)).text("Click to set as parameter value"),this},t.prototype.template=function(){return Handlebars.templates.signature},t.prototype.switchToDescription=function(e){return null!=e&&e.preventDefault(),$(".snippet",$(this.el)).hide(),$(".description",$(this.el)).show(),$(".description-link",$(this.el)).addClass("selected"),$(".snippet-link",$(this.el)).removeClass("selected")},t.prototype.switchToSnippet=function(e){return null!=e&&e.preventDefault(),$(".description",$(this.el)).hide(),$(".snippet",$(this.el)).show(),$(".snippet-link",$(this.el)).addClass("selected"),$(".description-link",$(this.el)).removeClass("selected")},t.prototype.snippetToTextArea=function(e){var t;return this.isParam&&(null!=e&&e.preventDefault(),t=$("textarea",$(this.el.parentNode.parentNode.parentNode)),""===$.trim(t.val()))?t.val(this.model.sampleJSON):void 0},t}(Backbone.View),this.Handlebars.templates.signature=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p='<div>\n<ul class="signature-nav">\n <li><a class="description-link" href="#">Model</a></li>\n <li><a class="snippet-link" href="#">Model Schema</a></li>\n</ul>\n<div>\n\n<div class="signature-container">\n <div class="description">\n ';return i=null!=(i=t.signature||(null!=e?e.signature:e))?i:l,s=typeof i===r?i.call(e,{name:"signature",hash:{},data:a}):i,null!=s&&(p+=s),p+'\n </div>\n\n <div class="snippet">\n <pre><code>'+o((i=null!=(i=t.sampleJSON||(null!=e?e.sampleJSON:e))?i:l,typeof i===r?i.call(e,{name:"sampleJSON",hash:{},data:a}):i))+'</code></pre>\n <small class="notice"></small>\n </div>\n</div>\n\n'},useData:!0});var StatusCodeView,__extends=function(e,t){function n(){this.constructor=e}for(var a in t)__hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},__hasProp={}.hasOwnProperty;StatusCodeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e,t,n;return n=this.template(),$(this.el).html(n(this.model)),swaggerUi.api.models.hasOwnProperty(this.model.responseModel)?(e={sampleJSON:JSON.stringify(swaggerUi.api.models[this.model.responseModel].createJSONSample(),null,2),isParam:!1,signature:swaggerUi.api.models[this.model.responseModel].getMockSignature()},t=new SignatureView({model:e,tagName:"div"}),$(".model-signature",this.$el).append(t.render().el)):$(".model-signature",this.$el).html(""),this},t.prototype.template=function(){return Handlebars.templates.status_code},t}(Backbone.View),this.Handlebars.templates.status_code=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,i,r="function",l=t.helperMissing,o=this.escapeExpression,p="<td width='15%' class='code'>"+o((i=null!=(i=t.code||(null!=e?e.code:e))?i:l,typeof i===r?i.call(e,{name:"code",hash:{},data:a}):i))+"</td>\n<td>";return i=null!=(i=t.message||(null!=e?e.message:e))?i:l,s=typeof i===r?i.call(e,{name:"message",hash:{},data:a}):i,null!=s&&(p+=s),p+"</td>\n<td width='50%'><span class=\"model-signature\" /></td>"},useData:!0}); \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml
index 255e77ef..ad9f9fe2 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml
@@ -1,5 +1,5 @@
- <dataObject id="${dataObject.id}" name="${dataObject.name}">
- <extensionElements>
- <activiti:value><![CDATA[${dataObject.value}]]></activiti:value>
- </extensionElements>
+ <dataObject id="${dataObject.id}" name="${dataObject.name}">
+ <extensionElements>
+ <activiti:value><![CDATA[${dataObject.value}]]></activiti:value>
+ </extensionElements>
</dataObject> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml
index 8eb62f6f..4ad64f12 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml
@@ -1,2 +1,2 @@
- <endEvent id="${element.id}" name="${element.name}">
+ <endEvent id="${element.id}" name="${element.name}">
</endEvent> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml
index aecfbdfd..aecfbdfd 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml
index d73ee333..d73ee333 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml
index 68fc388e..68fc388e 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml
index ee591857..5c4739f5 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml
@@ -1,13 +1,13 @@
- <intermediateCatchEvent id="${element.id}" name="${element.name}">
- <timerEventDefinition>
-#if (${element.timerEventDefinition.timeDuration})
- <timeDuration><![CDATA[${element.timerEventDefinition.timeDuration}]]></timeDuration>
-#end
-#if (${element.timerEventDefinition.timeDate})
- <timeDate><![CDATA[${element.timerEventDefinition.timeDate}]]></timeDate>
-#end
-#if (${element.timerEventDefinition.timeCycle})
- <timeCycle><![CDATA[${element.timerEventDefinition.timeCycle}]]></timeCycle>
-#end
- </timerEventDefinition>
+ <intermediateCatchEvent id="${element.id}" name="${element.name}">
+ <timerEventDefinition>
+#if (${element.timerEventDefinition.timeDuration})
+ <timeDuration><![CDATA[${element.timerEventDefinition.timeDuration}]]></timeDuration>
+#end
+#if (${element.timerEventDefinition.timeDate})
+ <timeDate><![CDATA[${element.timerEventDefinition.timeDate}]]></timeDate>
+#end
+#if (${element.timerEventDefinition.timeCycle})
+ <timeCycle><![CDATA[${element.timerEventDefinition.timeCycle}]]></timeCycle>
+#end
+ </timerEventDefinition>
</intermediateCatchEvent> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml
index b3e5164b..b3e5164b 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml
index 051c0edb..7d3ace10 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml
@@ -1,33 +1,33 @@
- <serviceTask id="${element.id}" name="${element.name}"
- activiti:class="${element.handler}">
- <extensionElements>
- <activiti:field name="url">
- <activiti:string><![CDATA[$!{element.baseUrl}]]></activiti:string>
- </activiti:field>
- <activiti:field name="name">
- <activiti:string><![CDATA[$!{element.serviceName}]]></activiti:string>
- </activiti:field>
- <activiti:field name="version">
- <activiti:string><![CDATA[$!{element.serviceVersion}]]></activiti:string>
- </activiti:field>
- <activiti:field name="path">
- <activiti:string><![CDATA[$!{element.path}]]></activiti:string>
- </activiti:field>
- <activiti:field name="method">
- <activiti:string><![CDATA[$!{element.method}]]></activiti:string>
- </activiti:field>
-#if (${element.produces})
- <activiti:field name="accept">
- <activiti:string><![CDATA[${element.produces}]]></activiti:string>
- </activiti:field>
-#end
-#if (${element.consumes})
- <activiti:field name="contentType">
- <activiti:string><![CDATA[${element.consumes}]]></activiti:string>
- </activiti:field>
-#end
- <activiti:field name="parameters">
- <activiti:string><![CDATA[${element.parameters}]]></activiti:string>
- </activiti:field>
- </extensionElements>
+ <serviceTask id="${element.id}" name="${element.name}"
+ activiti:class="${element.handler}">
+ <extensionElements>
+ <activiti:field name="url">
+ <activiti:string><![CDATA[$!{element.baseUrl}]]></activiti:string>
+ </activiti:field>
+ <activiti:field name="name">
+ <activiti:string><![CDATA[$!{element.serviceName}]]></activiti:string>
+ </activiti:field>
+ <activiti:field name="version">
+ <activiti:string><![CDATA[$!{element.serviceVersion}]]></activiti:string>
+ </activiti:field>
+ <activiti:field name="path">
+ <activiti:string><![CDATA[$!{element.path}]]></activiti:string>
+ </activiti:field>
+ <activiti:field name="method">
+ <activiti:string><![CDATA[$!{element.method}]]></activiti:string>
+ </activiti:field>
+#if (${element.produces})
+ <activiti:field name="accept">
+ <activiti:string><![CDATA[${element.produces}]]></activiti:string>
+ </activiti:field>
+#end
+#if (${element.consumes})
+ <activiti:field name="contentType">
+ <activiti:string><![CDATA[${element.consumes}]]></activiti:string>
+ </activiti:field>
+#end
+ <activiti:field name="parameters">
+ <activiti:string><![CDATA[${element.parameters}]]></activiti:string>
+ </activiti:field>
+ </extensionElements>
</serviceTask> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml
index 2d9f6915..cd29ecdf 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml
@@ -1,3 +1,3 @@
- <scriptTask id="${element.id}" name="${element.name}" scriptFormat="${element.scriptFormat}" activiti:autoStoreVariables="false">
- <script><![CDATA[${element.script}]]></script>
+ <scriptTask id="${element.id}" name="${element.name}" scriptFormat="${element.scriptFormat}" activiti:autoStoreVariables="false">
+ <script><![CDATA[${element.script}]]></script>
</scriptTask> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml
index 29933108..eb11df2e 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml
@@ -1,14 +1,14 @@
- <serviceTask id="${element.id}" name="${element.name}" activiti:class="${element.className}">
- <extensionElements>
-#foreach( $input in ${element.inputs} )
- <activiti:field name="${input.name}">
- <activiti:string><![CDATA[${input.value}]]></activiti:string>
- </activiti:field>
-#end
-#foreach( $output in ${element.outputs} )
- <activiti:field name="${output.name}">
- <activiti:string><![CDATA[${output.value}]]></activiti:string>
- </activiti:field>
-#end
- </extensionElements>
+ <serviceTask id="${element.id}" name="${element.name}" activiti:class="${element.className}">
+ <extensionElements>
+#foreach( $input in ${element.inputs} )
+ <activiti:field name="${input.name}">
+ <activiti:string><![CDATA[${input.value}]]></activiti:string>
+ </activiti:field>
+#end
+#foreach( $output in ${element.outputs} )
+ <activiti:field name="${output.name}">
+ <activiti:string><![CDATA[${output.value}]]></activiti:string>
+ </activiti:field>
+#end
+ </extensionElements>
</serviceTask> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml
index 150e26b3..15f13042 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml
@@ -1,7 +1,7 @@
- <startEvent id="${element.id}" name="${element.name}">
- <extensionElements>
-#foreach( $param in ${element.parameters} )
- <activiti:formProperty id="${param.name}" name="${param.name}" default="${param.value}" type="string"></activiti:formProperty>
-#end
- </extensionElements>
+ <startEvent id="${element.id}" name="${element.name}">
+ <extensionElements>
+#foreach( $param in ${element.parameters} )
+ <activiti:formProperty id="${param.name}" name="${param.name}" default="${param.value}" type="string"></activiti:formProperty>
+#end
+ </extensionElements>
</startEvent> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml
index d659eab0..d103997c 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml
@@ -1,5 +1,5 @@
- <sequenceFlow id="${sequenceFlow.id}" sourceRef="${sequenceFlow.sourceRef}" targetRef="${sequenceFlow.targetRef}">
-#if(${sequenceFlow.condition} && ${sequenceFlow.condition} != '')
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sequenceFlow.condition}]]></conditionExpression>
-#end
+ <sequenceFlow id="${sequenceFlow.id}" sourceRef="${sequenceFlow.sourceRef}" targetRef="${sequenceFlow.targetRef}">
+#if(${sequenceFlow.condition} && ${sequenceFlow.condition} != '')
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sequenceFlow.condition}]]></conditionExpression>
+#end
</sequenceFlow> \ No newline at end of file
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml
index d336740f..b2c7a310 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml
@@ -1,28 +1,28 @@
-#set( $bpelvar = "$bpelvar" )
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn"
- xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
- xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema"
- expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
- <process id="${process.id}" isExecutable="true">
- <!-- dataObjects -->
-#foreach( $dataObject in $process.dataObjectList)
-#parse("${templatePath}bpmn_dataObject_template.xml")
-
-#end
-
- <!-- Perform bpmn elements -->
-#foreach( $element in $process.elementList)
-#parse("${templatePath}bpmn_element_${element.type}_template.xml")
-
-#end
-
- <!-- Perform bpmn sequence flow -->
-#foreach( $sequenceFlow in $process.sequenceFlowList)
-#parse("${templatePath}bpmn_sequenceFlow_template.xml")
-
-#end
-
- </process>
-</definitions>
+#set( $bpelvar = "$bpelvar" )
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn"
+ xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
+ xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema"
+ expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
+ <process id="${process.id}" isExecutable="true">
+ <!-- dataObjects -->
+#foreach( $dataObject in $process.dataObjectList)
+#parse("${templatePath}bpmn_dataObject_template.xml")
+
+#end
+
+ <!-- Perform bpmn elements -->
+#foreach( $element in $process.elementList)
+#parse("${templatePath}bpmn_element_${element.type}_template.xml")
+
+#end
+
+ <!-- Perform bpmn sequence flow -->
+#foreach( $sequenceFlow in $process.sequenceFlowList)
+#parse("${templatePath}bpmn_sequenceFlow_template.xml")
+
+#end
+
+ </process>
+</definitions>
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn.config.properties b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn.config.properties
index 3b35cd66..ccb0bfd7 100644
--- a/sdc-workflow-designer-server/src/main/resources/bpmn.config.properties
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn.config.properties
@@ -1,2 +1,2 @@
-handlerClass=org.onap.workflow.activitiext.restservicetask.HttpUtil
-templatePath=bpmn-templates/
+handlerClass=org.onap.workflow.activitiext.restservicetask.HttpUtil
+templatePath=bpmn-templates/
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfoTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfoTest.java
index 0fb13ff6..dde607e9 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfoTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/SDCServiceProxyInfoTest.java
@@ -1,53 +1,53 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class SDCServiceProxyInfoTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String serviceAddr = "serviceAddr";
- String xEcompInstanceId = "xEcompInstanceId";
- String authorization = "authorization";
-
- SDCServiceProxyInfo spi = new SDCServiceProxyInfo();
- spi.setAuthorization(authorization);
- spi.setServiceAddr(serviceAddr);
- spi.setxEcompInstanceId(xEcompInstanceId);
-
- assertEquals(authorization, spi.getAuthorization());
- assertEquals(serviceAddr, spi.getServiceAddr());
- assertEquals(xEcompInstanceId, spi.getxEcompInstanceId());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class SDCServiceProxyInfoTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String serviceAddr = "serviceAddr";
+ String xEcompInstanceId = "xEcompInstanceId";
+ String authorization = "authorization";
+
+ SDCServiceProxyInfo spi = new SDCServiceProxyInfo();
+ spi.setAuthorization(authorization);
+ spi.setServiceAddr(serviceAddr);
+ spi.setxEcompInstanceId(xEcompInstanceId);
+
+ assertEquals(authorization, spi.getAuthorization());
+ assertEquals(serviceAddr, spi.getServiceAddr());
+ assertEquals(xEcompInstanceId, spi.getxEcompInstanceId());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfigurationTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfigurationTest.java
index 0a154ed1..a09afb15 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfigurationTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/WorkflowDesignerConfigurationTest.java
@@ -1,54 +1,54 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class WorkflowDesignerConfigurationTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String template = "template";
- String defaultName = "Workflow Designer";
- SDCServiceProxyInfo sdcServiceProxy = new SDCServiceProxyInfo();
-
-
- WorkflowDesignerConfiguration wdc = new WorkflowDesignerConfiguration();
- wdc.setDefaultName(defaultName);
- wdc.setSdcServiceProxy(sdcServiceProxy);
- wdc.setTemplate(template);
-
- assertEquals(defaultName, wdc.getDefaultName());
- assertEquals(sdcServiceProxy, wdc.getSdcServiceProxy());
- assertEquals(template, wdc.getTemplate());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class WorkflowDesignerConfigurationTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String template = "template";
+ String defaultName = "Workflow Designer";
+ SDCServiceProxyInfo sdcServiceProxy = new SDCServiceProxyInfo();
+
+
+ WorkflowDesignerConfiguration wdc = new WorkflowDesignerConfiguration();
+ wdc.setDefaultName(defaultName);
+ wdc.setSdcServiceProxy(sdcServiceProxy);
+ wdc.setTemplate(template);
+
+ assertEquals(defaultName, wdc.getDefaultName());
+ assertEquals(sdcServiceProxy, wdc.getSdcServiceProxy());
+ assertEquals(template, wdc.getTemplate());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java
index fa9de6ea..6d779cc2 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java
@@ -1,45 +1,45 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.config;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class AdapterTypeTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- AdapterType at = AdapterType.valueOf("SDC");
- assertEquals(AdapterType.SDC, at);
- AdapterType at1 = AdapterType.valueOf("DEFAULT");
- assertEquals(AdapterType.DEFAULT, at1);
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.config;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class AdapterTypeTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ AdapterType at = AdapterType.valueOf("SDC");
+ assertEquals(AdapterType.SDC, at);
+ AdapterType at1 = AdapterType.valueOf("DEFAULT");
+ assertEquals(AdapterType.DEFAULT, at1);
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java
index d03411d2..deb04c57 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java
@@ -1,26 +1,26 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.config;
-
-import static org.junit.Assert.assertEquals;
-
-import org.apache.velocity.exception.ParseErrorException;
-import org.apache.velocity.exception.ResourceNotFoundException;
-import org.junit.Test;
-
-public class ConfigTest {
- @Test
- public void testLoad() throws ResourceNotFoundException, ParseErrorException, Exception {
- assertEquals(Config.PROPERTIES.get(Config.HANDLER_ClASS),
- "org.onap.workflow.activitiext.restservicetask.HttpUtil");
- }
-}
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.config;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.velocity.exception.ParseErrorException;
+import org.apache.velocity.exception.ResourceNotFoundException;
+import org.junit.Test;
+
+public class ConfigTest {
+ @Test
+ public void testLoad() throws ResourceNotFoundException, ParseErrorException, Exception {
+ assertEquals(Config.PROPERTIES.get(Config.HANDLER_ClASS),
+ "org.onap.workflow.activitiext.restservicetask.HttpUtil");
+ }
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContentTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContentTest.java
index 4aa2dd0f..27a9872d 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContentTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivityContentTest.java
@@ -1,56 +1,56 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ActivityContentTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- /**
- * Test method for {@link java.lang.Object#toString()}.
- */
- @Test
- public void testToString() {
-// String clazz = "clazz";
- String script = "script";
- String scriptFormat = "scriptFormat";
-
- ActivityContent ac = new ActivityContent();
-// ac.setClass(clazz);
- ac.setScript(script);
- ac.setScriptFormat(scriptFormat );
-
-// assertEquals(clazz, ac.getClazz());
- assertEquals(script, ac.getScript());
- assertEquals(scriptFormat, ac.getScriptFormat());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ActivityContentTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ /**
+ * Test method for {@link java.lang.Object#toString()}.
+ */
+ @Test
+ public void testToString() {
+// String clazz = "clazz";
+ String script = "script";
+ String scriptFormat = "scriptFormat";
+
+ ActivityContent ac = new ActivityContent();
+// ac.setClass(clazz);
+ ac.setScript(script);
+ ac.setScriptFormat(scriptFormat );
+
+// assertEquals(clazz, ac.getClazz());
+ assertEquals(script, ac.getScript());
+ assertEquals(scriptFormat, ac.getScriptFormat());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpecTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpecTest.java
index 15aefe41..84ca9198 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpecTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ActivitySpecTest.java
@@ -1,74 +1,74 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ActivitySpecTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String id = "";
- String versionId = "";
- String name = "";
- String description = "";
- String type = "";
- String content = "";
- String[] categoryList = new String[]{"aaa"};
- Parameter[] inputs = new Parameter[0];
- Parameter[] outputs = new Parameter[0];
- String status = "status";
-
- ActivitySpec as = new ActivitySpec();
- as.setId(id);
- as.setVersionId(versionId);
- as.setName(name);
- as.setDescription(description);
- as.setType(type);
- as.setContent(content);
- as.setCategoryList(categoryList);
- as.setInputs(inputs);
- as.setOutputs(outputs);
- as.setStatus(status);
-
- assertEquals(id, as.getId());
- assertEquals(versionId, as.getVersionId());
- assertEquals(name, as.getName());
- assertEquals(description, as.getDescription());
- assertEquals(type, as.getType());
- assertEquals(content, as.getContent());
- assertEquals(categoryList, as.getCategoryList());
- assertEquals(inputs, as.getInputs());
- assertEquals(outputs, as.getOutputs());
- assertEquals(status, as.getStatus());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ActivitySpecTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String id = "";
+ String versionId = "";
+ String name = "";
+ String description = "";
+ String type = "";
+ String content = "";
+ String[] categoryList = new String[]{"aaa"};
+ Parameter[] inputs = new Parameter[0];
+ Parameter[] outputs = new Parameter[0];
+ String status = "status";
+
+ ActivitySpec as = new ActivitySpec();
+ as.setId(id);
+ as.setVersionId(versionId);
+ as.setName(name);
+ as.setDescription(description);
+ as.setType(type);
+ as.setContent(content);
+ as.setCategoryList(categoryList);
+ as.setInputs(inputs);
+ as.setOutputs(outputs);
+ as.setStatus(status);
+
+ assertEquals(id, as.getId());
+ assertEquals(versionId, as.getVersionId());
+ assertEquals(name, as.getName());
+ assertEquals(description, as.getDescription());
+ assertEquals(type, as.getType());
+ assertEquals(content, as.getContent());
+ assertEquals(categoryList, as.getCategoryList());
+ assertEquals(inputs, as.getInputs());
+ assertEquals(outputs, as.getOutputs());
+ assertEquals(status, as.getStatus());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ParameterTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ParameterTest.java
index ce034102..0a56b302 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ParameterTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/ParameterTest.java
@@ -1,59 +1,59 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- */
-public class ParameterTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String name = "name";
- String type = "type";
- String defaultValue = "defaultValue";
- String value = "value";
-
- Parameter p = new Parameter();
- p.setDefault(defaultValue);
- p.setName(name);
- p.setType(type);
- p.setValue(value);
-
- assertEquals(name, p.getName());
- assertEquals(type, p.getType());
- assertEquals(defaultValue, p.getDefault());
- assertEquals(value, p.getValue());
-
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import com.google.gson.annotations.SerializedName;
+
+/**
+ *
+ */
+public class ParameterTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String name = "name";
+ String type = "type";
+ String defaultValue = "defaultValue";
+ String value = "value";
+
+ Parameter p = new Parameter();
+ p.setDefault(defaultValue);
+ p.setName(name);
+ p.setType(type);
+ p.setValue(value);
+
+ assertEquals(name, p.getName());
+ assertEquals(type, p.getType());
+ assertEquals(defaultValue, p.getDefault());
+ assertEquals(value, p.getValue());
+
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfoTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfoTest.java
index a29c55e6..73412637 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfoTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/externalservice/sdc/entity/WorkflowArtifactInfoTest.java
@@ -1,57 +1,57 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class WorkflowArtifactInfoTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String artifactName = "artifactName";
- String description = "description";
- String artifactType = "WORKFLOW";
- String payloadData = "payloadData";
-
- WorkflowArtifactInfo wai = new WorkflowArtifactInfo(artifactName, description, payloadData);
- wai.setArtifactName(artifactName);
- wai.setArtifactType(artifactType);
- wai.setDescription(description);
- wai.setPayloadData(payloadData);
-
- assertEquals(artifactName, wai.getArtifactName());
- assertEquals(description, wai.getDescription());
- assertEquals(artifactType, wai.getArtifactType());
- assertEquals(payloadData, wai.getPayloadData());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class WorkflowArtifactInfoTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String artifactName = "artifactName";
+ String description = "description";
+ String artifactType = "WORKFLOW";
+ String payloadData = "payloadData";
+
+ WorkflowArtifactInfo wai = new WorkflowArtifactInfo(artifactName, description, payloadData);
+ wai.setArtifactName(artifactName);
+ wai.setArtifactType(artifactType);
+ wai.setDescription(description);
+ wai.setPayloadData(payloadData);
+
+ assertEquals(artifactName, wai.getArtifactName());
+ assertEquals(description, wai.getDescription());
+ assertEquals(artifactType, wai.getArtifactType());
+ assertEquals(payloadData, wai.getPayloadData());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/DataObjectTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/DataObjectTest.java
index 4f3dbd1d..da2806ce 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/DataObjectTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/DataObjectTest.java
@@ -1,53 +1,53 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class DataObjectTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String id = "id";
- String name = "name";
- String value = "value";
-
- DataObject d = new DataObject();
- d.setId(id);
- d.setName(name);
- d.setValue(value);
-
- assertEquals(id, d.getId());
- assertEquals(name, d.getName());
- assertEquals(value, d.getValue());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class DataObjectTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String id = "id";
+ String name = "name";
+ String value = "value";
+
+ DataObject d = new DataObject();
+ d.setId(id);
+ d.setName(name);
+ d.setValue(value);
+
+ assertEquals(id, d.getId());
+ assertEquals(name, d.getName());
+ assertEquals(value, d.getValue());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ElementTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ElementTest.java
index 520061ed..520061ed 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ElementTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ElementTest.java
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ErrorEndEventTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ErrorEndEventTest.java
index edd0ece6..98e19646 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ErrorEndEventTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ErrorEndEventTest.java
@@ -1,47 +1,47 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ErrorEndEventTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- Parameter parameter = new Parameter();
-
- ErrorEndEvent eee = new ErrorEndEvent();
- eee.setParameter(parameter);
-
- assertEquals(parameter, eee.getParameter());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ErrorEndEventTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ Parameter parameter = new Parameter();
+
+ ErrorEndEvent eee = new ErrorEndEvent();
+ eee.setParameter(parameter);
+
+ assertEquals(parameter, eee.getParameter());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ParameterTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ParameterTest.java
index aa428bc7..fea6a6f4 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ParameterTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ParameterTest.java
@@ -1,69 +1,69 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-
-/**
- *
- */
-public class ParameterTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String description = "description";
- String name = "name";
- String position = "position";
- boolean required = false;
- String type = "type";
- Object value = "value";
- String valueSource = "valueSource";
-
- Parameter p = new Parameter();
- p.setDescription(description);
- p.setName(name);
- p.setPosition(position);
- p.setRequired(required);
- p.setType(type);
- p.setValueSource(valueSource);
- p.setValue(value);
-
- assertEquals(description, p.getDescription());
- assertEquals(name, p.getName());
- assertEquals(position, p.getPosition());
- assertEquals(required, p.isRequired());
- assertEquals(type, p.getType());
- assertEquals(valueSource, p.getValueSource());
- assertEquals(value, p.getValue());
-
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+
+/**
+ *
+ */
+public class ParameterTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String description = "description";
+ String name = "name";
+ String position = "position";
+ boolean required = false;
+ String type = "type";
+ Object value = "value";
+ String valueSource = "valueSource";
+
+ Parameter p = new Parameter();
+ p.setDescription(description);
+ p.setName(name);
+ p.setPosition(position);
+ p.setRequired(required);
+ p.setType(type);
+ p.setValueSource(valueSource);
+ p.setValue(value);
+
+ assertEquals(description, p.getDescription());
+ assertEquals(name, p.getName());
+ assertEquals(position, p.getPosition());
+ assertEquals(required, p.isRequired());
+ assertEquals(type, p.getType());
+ assertEquals(valueSource, p.getValueSource());
+ assertEquals(value, p.getValue());
+
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/PositionTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/PositionTest.java
index 83e826d2..5ebb335c 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/PositionTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/PositionTest.java
@@ -1,50 +1,50 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class PositionTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- int left = 100;
- int top = 100;
-
- Position p = new Position();
- p.setLeft(left);
- p.setTop(top);
-
- assertEquals(left, p.getLeft());
- assertEquals(top, p.getTop());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class PositionTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ int left = 100;
+ int top = 100;
+
+ Position p = new Position();
+ p.setLeft(left);
+ p.setTop(top);
+
+ assertEquals(left, p.getLeft());
+ assertEquals(top, p.getTop());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ProcessTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ProcessTest.java
index 5073bbe5..34c3cc64 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ProcessTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ProcessTest.java
@@ -1,62 +1,62 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ProcessTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String id = "id";
- boolean isExecutable = false;
- List<Element> elementList = new ArrayList<Element>();
- List<SequenceFlow> sequenceFlowList = new ArrayList<SequenceFlow>();
- List<DataObject> dataObjectList = new ArrayList<DataObject>();
-
- Process p = new Process(id);
- p.setDataObjectList(dataObjectList);
- p.setElementList(elementList);
- p.setExecutable(isExecutable);
- p.setId(id);
- p.setSequenceFlowList(sequenceFlowList);
-
- assertEquals(dataObjectList, p.getDataObjectList());
- assertEquals(elementList, p.getElementList());
- assertEquals(isExecutable, p.isExecutable());
- assertEquals(id, p.getId());
- assertEquals(sequenceFlowList, p.getSequenceFlowList());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ProcessTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String id = "id";
+ boolean isExecutable = false;
+ List<Element> elementList = new ArrayList<Element>();
+ List<SequenceFlow> sequenceFlowList = new ArrayList<SequenceFlow>();
+ List<DataObject> dataObjectList = new ArrayList<DataObject>();
+
+ Process p = new Process(id);
+ p.setDataObjectList(dataObjectList);
+ p.setElementList(elementList);
+ p.setExecutable(isExecutable);
+ p.setId(id);
+ p.setSequenceFlowList(sequenceFlowList);
+
+ assertEquals(dataObjectList, p.getDataObjectList());
+ assertEquals(elementList, p.getElementList());
+ assertEquals(isExecutable, p.isExecutable());
+ assertEquals(id, p.getId());
+ assertEquals(sequenceFlowList, p.getSequenceFlowList());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/RestServiceTaskTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/RestServiceTaskTest.java
index 2d158e9b..1aa593c5 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/RestServiceTaskTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/RestServiceTaskTest.java
@@ -1,71 +1,71 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class RestServiceTaskTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- List<String> produces = new ArrayList<>();
- List<String> consumes = new ArrayList<>();
- List<Parameter> parameters = new ArrayList<>();
- String baseUrl = "";
- String serviceName = "";
- String serviceVersion = "";
- String path = "";
- String method = "";
-
- RestServiceTask rst = new RestServiceTask();
- rst.setProduces(produces);
- rst.setConsumes(consumes);
- rst.setParameters(parameters);
- rst.setBaseUrl(baseUrl);
- rst.setServiceName(serviceName);
- rst.setServiceVersion(serviceVersion);
- rst.setPath(path);
- rst.setMethod(method);
-
- assertEquals(produces, rst.getProduces());
- assertEquals(consumes, rst.getConsumes());
- assertEquals(parameters, rst.getParameters());
- assertEquals(baseUrl, rst.getBaseUrl());
- assertEquals(serviceName, rst.getServiceName());
- assertEquals(serviceVersion, rst.getServiceVersion());
- assertEquals(path, rst.getPath());
- assertEquals(method, rst.getMethod());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class RestServiceTaskTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ List<String> produces = new ArrayList<>();
+ List<String> consumes = new ArrayList<>();
+ List<Parameter> parameters = new ArrayList<>();
+ String baseUrl = "";
+ String serviceName = "";
+ String serviceVersion = "";
+ String path = "";
+ String method = "";
+
+ RestServiceTask rst = new RestServiceTask();
+ rst.setProduces(produces);
+ rst.setConsumes(consumes);
+ rst.setParameters(parameters);
+ rst.setBaseUrl(baseUrl);
+ rst.setServiceName(serviceName);
+ rst.setServiceVersion(serviceVersion);
+ rst.setPath(path);
+ rst.setMethod(method);
+
+ assertEquals(produces, rst.getProduces());
+ assertEquals(consumes, rst.getConsumes());
+ assertEquals(parameters, rst.getParameters());
+ assertEquals(baseUrl, rst.getBaseUrl());
+ assertEquals(serviceName, rst.getServiceName());
+ assertEquals(serviceVersion, rst.getServiceVersion());
+ assertEquals(path, rst.getPath());
+ assertEquals(method, rst.getMethod());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ScriptTaskTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ScriptTaskTest.java
index 2323ffc2..1eaba96d 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ScriptTaskTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ScriptTaskTest.java
@@ -1,50 +1,50 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ScriptTaskTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String scriptFormat = "scriptFormat";
- String script = "script";
-
- ScriptTask st = new ScriptTask();
- st.setScript(script);
- st.setScriptFormat(scriptFormat);
-
- assertEquals(scriptFormat, st.getScriptFormat());
- assertEquals(script, st.getScript());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ScriptTaskTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String scriptFormat = "scriptFormat";
+ String script = "script";
+
+ ScriptTask st = new ScriptTask();
+ st.setScript(script);
+ st.setScriptFormat(scriptFormat);
+
+ assertEquals(scriptFormat, st.getScriptFormat());
+ assertEquals(script, st.getScript());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java
index 7f613c1c..ae947b58 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java
@@ -1,62 +1,62 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class SequenceFlowTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String id = "id";
- String name = "name";
- String sourceRef = "sourceRef";
- String targetRef = "targetRef";
- String documentation = "documentation";
- String condition = "condition";
-
- SequenceFlow sf = new SequenceFlow();
- sf.setCondition(condition);
- sf.setDocumentation(documentation);
- sf.setId(id);
- sf.setName(name);
- sf.setSourceRef(sourceRef);
- sf.setTargetRef(targetRef);
-
- assertEquals(condition, sf.getCondition());
- assertEquals(documentation, sf.getDocumentation());
- assertEquals(id, sf.getId());
- assertEquals(name, sf.getName());
- assertEquals(sourceRef, sf.getSourceRef());
- assertEquals(targetRef, sf.getTargetRef());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class SequenceFlowTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String id = "id";
+ String name = "name";
+ String sourceRef = "sourceRef";
+ String targetRef = "targetRef";
+ String documentation = "documentation";
+ String condition = "condition";
+
+ SequenceFlow sf = new SequenceFlow();
+ sf.setCondition(condition);
+ sf.setDocumentation(documentation);
+ sf.setId(id);
+ sf.setName(name);
+ sf.setSourceRef(sourceRef);
+ sf.setTargetRef(targetRef);
+
+ assertEquals(condition, sf.getCondition());
+ assertEquals(documentation, sf.getDocumentation());
+ assertEquals(id, sf.getId());
+ assertEquals(name, sf.getName());
+ assertEquals(sourceRef, sf.getSourceRef());
+ assertEquals(targetRef, sf.getTargetRef());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ServiceTaskTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ServiceTaskTest.java
index a58fd586..e2718d19 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ServiceTaskTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/ServiceTaskTest.java
@@ -1,56 +1,56 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ServiceTaskTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String className = "className";
- List<Parameter> inputs = new ArrayList<>();
- List<Parameter> outputs = new ArrayList<>();
-
- ServiceTask st = new ServiceTask();
- st.setClassName(className);
- st.setInputs(inputs);
- st.setOutputs(outputs);
-
- assertEquals(className, st.getClassName());
- assertEquals(inputs, st.getInputs());
- assertEquals(outputs, st.getOutputs());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ServiceTaskTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String className = "className";
+ List<Parameter> inputs = new ArrayList<>();
+ List<Parameter> outputs = new ArrayList<>();
+
+ ServiceTask st = new ServiceTask();
+ st.setClassName(className);
+ st.setInputs(inputs);
+ st.setOutputs(outputs);
+
+ assertEquals(className, st.getClassName());
+ assertEquals(inputs, st.getInputs());
+ assertEquals(outputs, st.getOutputs());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinitionTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinitionTest.java
index b17a4820..8c82ddf0 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinitionTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/TimerEventDefinitionTest.java
@@ -1,56 +1,56 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.model;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class TimerEventDefinitionTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String type = "type";
- String timeDuration = "timeDuration";
- String timeDate = "timeDate";
- String timeCycle = "timeCycle";
-
- TimerEventDefinition ted = new TimerEventDefinition();
- ted.setType(type);
- ted.setTimeDate(timeDate);
- ted.setTimeDuration(timeDuration);
- ted.setTimeCycle(timeCycle);
-
- assertEquals(type, ted.getType());
- assertEquals(timeDate, ted.getTimeDate());
- assertEquals(timeDuration, ted.getTimeDuration());
- assertEquals(timeCycle, ted.getTimeCycle());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class TimerEventDefinitionTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String type = "type";
+ String timeDuration = "timeDuration";
+ String timeDate = "timeDate";
+ String timeCycle = "timeCycle";
+
+ TimerEventDefinition ted = new TimerEventDefinition();
+ ted.setType(type);
+ ted.setTimeDate(timeDate);
+ ted.setTimeDuration(timeDuration);
+ ted.setTimeCycle(timeCycle);
+
+ assertEquals(type, ted.getType());
+ assertEquals(timeDate, ted.getTimeDate());
+ assertEquals(timeDuration, ted.getTimeDuration());
+ assertEquals(timeCycle, ted.getTimeCycle());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParserTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParserTest.java
index 318301d2..abadd298 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParserTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/parser/Bpmn4ToscaJsonParserTest.java
@@ -1,130 +1,130 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.parser;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
-
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.nio.file.Paths;
-import java.util.Iterator;
-import java.util.List;
-
-import org.junit.Test;
-import org.onap.sdc.workflowdesigner.model.Element;
-import org.onap.sdc.workflowdesigner.model.Position;
-import org.onap.sdc.workflowdesigner.model.Process;
-import org.onap.sdc.workflowdesigner.model.ScriptTask;
-import org.onap.sdc.workflowdesigner.model.SequenceFlow;
-
-import com.fasterxml.jackson.core.JsonParseException;
-import com.fasterxml.jackson.databind.JsonMappingException;
-
-public class Bpmn4ToscaJsonParserTest {
-
- private static String RESOURCES_DIR = "src/test/resources/workflow";
- protected static String PROCESS_NAME = "test1";
-
- @Test
- public void parseTest() throws JsonParseException, JsonMappingException, MalformedURLException, IOException {
- Bpmn4ToscaJsonParser parser = new Bpmn4ToscaJsonParser();
- URI srcUri = Paths.get(RESOURCES_DIR, "workflow.json").toUri();
- Process actualProcess = parser.parse(PROCESS_NAME, srcUri);
- Process expectedProcess = createReferenceProcess();
-
- assertElements(expectedProcess.getElementList(), actualProcess.getElementList());
- assertSequenceFlows(expectedProcess.getSequenceFlowList(), actualProcess.getSequenceFlowList());
- }
-
- private static void assertElements(List<Element> expectedElementList, List<Element> actualElementList) {
- assertEquals(expectedElementList.size(), actualElementList.size());
-
- for (Iterator<Element> iterator = expectedElementList.iterator(); iterator.hasNext();) {
- Element expectedElement = (Element) iterator.next();
- Element actualElement = getElementById(expectedElement.getId(), actualElementList);
- if (actualElement != null) {
- assertElement(expectedElement, actualElement);
- } else {
- fail("Element with id " + expectedElement.getId() + " could not be found");
- }
- }
- }
-
- private static Element getElementById(String id, List<Element> actualElementList) {
- Iterator<Element> iter = actualElementList.iterator();
- while (iter.hasNext()) {
- Element element = (Element) iter.next();
- if (element.getId().equals(id)) {
- return element;
- }
- }
- return null;
- }
-
- public static void assertElement(Element expected, Element actual) {
- assertEquals("element: id ", expected.getId(), actual.getId());
- assertEquals("element: name ", expected.getName(), actual.getName());
- }
-
- public static void assertSequenceFlows(List<SequenceFlow> expectedSequenceList,
- List<SequenceFlow> actualSequenceFlowList) {
- assertEquals(expectedSequenceList.size(), actualSequenceFlowList.size());
-
- for (Iterator<SequenceFlow> iterator = expectedSequenceList.iterator(); iterator.hasNext();) {
- SequenceFlow expectedElement = (SequenceFlow) iterator.next();
- SequenceFlow actualElement = getSequenceById(expectedElement.getSourceRef(), expectedElement.getTargetRef(),
- actualSequenceFlowList);
- if (actualElement != null) {
- assertLink(expectedElement, actualElement);
- } else {
- fail("Element with id " + expectedElement.getId() + " could not be found");
- }
- }
- }
-
- private static SequenceFlow getSequenceById(String sourceRef, String targetRef,
- List<SequenceFlow> actualSequenceFlowList) {
- Iterator<SequenceFlow> iter = actualSequenceFlowList.iterator();
- while (iter.hasNext()) {
- SequenceFlow element = (SequenceFlow) iter.next();
- if (element.getSourceRef().equals(sourceRef) && element.getTargetRef().equals(targetRef)) {
- return element;
- }
- }
- return null;
- }
-
- public static void assertLink(SequenceFlow expectedLink, SequenceFlow actualLink) {
- assertEquals("Link source: id", expectedLink.getSourceRef(), actualLink.getSourceRef());
- assertEquals("Link target :id", expectedLink.getTargetRef(), actualLink.getTargetRef());
- }
-
- private static Process createReferenceProcess() {
- Process process = new Process(PROCESS_NAME);
-
- ScriptTask scriptTask = new ScriptTask();
- scriptTask.setId("scriptTask");
- scriptTask.setName("Script Task");
- Position position = new Position();
- position.setLeft(328);
- position.setTop(134);
- scriptTask.setPosition(position);
- scriptTask.setScript("");
- scriptTask.setScriptFormat("JavaScript");
- process.getElementList().add(scriptTask);
-
- return process;
- }
-
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.parser;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.nio.file.Paths;
+import java.util.Iterator;
+import java.util.List;
+
+import org.junit.Test;
+import org.onap.sdc.workflowdesigner.model.Element;
+import org.onap.sdc.workflowdesigner.model.Position;
+import org.onap.sdc.workflowdesigner.model.Process;
+import org.onap.sdc.workflowdesigner.model.ScriptTask;
+import org.onap.sdc.workflowdesigner.model.SequenceFlow;
+
+import com.fasterxml.jackson.core.JsonParseException;
+import com.fasterxml.jackson.databind.JsonMappingException;
+
+public class Bpmn4ToscaJsonParserTest {
+
+ private static String RESOURCES_DIR = "src/test/resources/workflow";
+ protected static String PROCESS_NAME = "test1";
+
+ @Test
+ public void parseTest() throws JsonParseException, JsonMappingException, MalformedURLException, IOException {
+ Bpmn4ToscaJsonParser parser = new Bpmn4ToscaJsonParser();
+ URI srcUri = Paths.get(RESOURCES_DIR, "workflow.json").toUri();
+ Process actualProcess = parser.parse(PROCESS_NAME, srcUri);
+ Process expectedProcess = createReferenceProcess();
+
+ assertElements(expectedProcess.getElementList(), actualProcess.getElementList());
+ assertSequenceFlows(expectedProcess.getSequenceFlowList(), actualProcess.getSequenceFlowList());
+ }
+
+ private static void assertElements(List<Element> expectedElementList, List<Element> actualElementList) {
+ assertEquals(expectedElementList.size(), actualElementList.size());
+
+ for (Iterator<Element> iterator = expectedElementList.iterator(); iterator.hasNext();) {
+ Element expectedElement = (Element) iterator.next();
+ Element actualElement = getElementById(expectedElement.getId(), actualElementList);
+ if (actualElement != null) {
+ assertElement(expectedElement, actualElement);
+ } else {
+ fail("Element with id " + expectedElement.getId() + " could not be found");
+ }
+ }
+ }
+
+ private static Element getElementById(String id, List<Element> actualElementList) {
+ Iterator<Element> iter = actualElementList.iterator();
+ while (iter.hasNext()) {
+ Element element = (Element) iter.next();
+ if (element.getId().equals(id)) {
+ return element;
+ }
+ }
+ return null;
+ }
+
+ public static void assertElement(Element expected, Element actual) {
+ assertEquals("element: id ", expected.getId(), actual.getId());
+ assertEquals("element: name ", expected.getName(), actual.getName());
+ }
+
+ public static void assertSequenceFlows(List<SequenceFlow> expectedSequenceList,
+ List<SequenceFlow> actualSequenceFlowList) {
+ assertEquals(expectedSequenceList.size(), actualSequenceFlowList.size());
+
+ for (Iterator<SequenceFlow> iterator = expectedSequenceList.iterator(); iterator.hasNext();) {
+ SequenceFlow expectedElement = (SequenceFlow) iterator.next();
+ SequenceFlow actualElement = getSequenceById(expectedElement.getSourceRef(), expectedElement.getTargetRef(),
+ actualSequenceFlowList);
+ if (actualElement != null) {
+ assertLink(expectedElement, actualElement);
+ } else {
+ fail("Element with id " + expectedElement.getId() + " could not be found");
+ }
+ }
+ }
+
+ private static SequenceFlow getSequenceById(String sourceRef, String targetRef,
+ List<SequenceFlow> actualSequenceFlowList) {
+ Iterator<SequenceFlow> iter = actualSequenceFlowList.iterator();
+ while (iter.hasNext()) {
+ SequenceFlow element = (SequenceFlow) iter.next();
+ if (element.getSourceRef().equals(sourceRef) && element.getTargetRef().equals(targetRef)) {
+ return element;
+ }
+ }
+ return null;
+ }
+
+ public static void assertLink(SequenceFlow expectedLink, SequenceFlow actualLink) {
+ assertEquals("Link source: id", expectedLink.getSourceRef(), actualLink.getSourceRef());
+ assertEquals("Link target :id", expectedLink.getTargetRef(), actualLink.getTargetRef());
+ }
+
+ private static Process createReferenceProcess() {
+ Process process = new Process(PROCESS_NAME);
+
+ ScriptTask scriptTask = new ScriptTask();
+ scriptTask.setId("scriptTask");
+ scriptTask.setName("Script Task");
+ Position position = new Position();
+ position.setLeft(328);
+ position.setTop(134);
+ scriptTask.setPosition(position);
+ scriptTask.setScript("");
+ scriptTask.setScriptFormat("JavaScript");
+ process.getElementList().add(scriptTask);
+
+ return process;
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/planwriter/BpmnPlanArtefactWriterTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/planwriter/BpmnPlanArtefactWriterTest.java
index 7236d6e6..a67a2070 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/planwriter/BpmnPlanArtefactWriterTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/planwriter/BpmnPlanArtefactWriterTest.java
@@ -1,58 +1,58 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.planwriter;
-
-import static org.junit.Assert.assertEquals;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-
-import org.junit.Test;
-import org.onap.sdc.workflowdesigner.model.Process;
-import org.onap.sdc.workflowdesigner.writer.BpmnPlanArtefactWriter;
-
-public class BpmnPlanArtefactWriterTest {
-
- @Test
- public void testWritePlan() throws Exception {
- BpmnPlanArtefactWriter writer = new BpmnPlanArtefactWriter(mockProcss());
- String result = writer.completePlanTemplate();
- assertEquals(result, getResult());
- }
-
- private Process mockProcss() {
- Process process = new Process("templateTest");
-
- return process;
- }
-
- public String getResult() throws IOException {
- StringBuffer buffer = new StringBuffer();
-
- String path = "src/test/resources/workflow/template-test.bpmn20.xml";
- BufferedReader reader = new BufferedReader(new FileReader(new File(path)));
-
- String line = null;
- while ((line = reader.readLine()) != null) {
- buffer.append(line).append("\r\n");
- }
-
- if (reader != null) {
- reader.close();
- }
-
- return buffer.toString();
- }
-
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.planwriter;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+
+import org.junit.Test;
+import org.onap.sdc.workflowdesigner.model.Process;
+import org.onap.sdc.workflowdesigner.writer.BpmnPlanArtefactWriter;
+
+public class BpmnPlanArtefactWriterTest {
+
+ @Test
+ public void testWritePlan() throws Exception {
+ BpmnPlanArtefactWriter writer = new BpmnPlanArtefactWriter(mockProcss());
+ String result = writer.completePlanTemplate();
+ assertEquals(result, getResult());
+ }
+
+ private Process mockProcss() {
+ Process process = new Process("templateTest");
+
+ return process;
+ }
+
+ public String getResult() throws IOException {
+ StringBuffer buffer = new StringBuffer();
+
+ String path = "src/test/resources/workflow/template-test.bpmn20.xml";
+ BufferedReader reader = new BufferedReader(new FileReader(new File(path)));
+
+ String line = null;
+ while ((line = reader.readLine()) != null) {
+ buffer.append(line).append("\r\n");
+ }
+
+ if (reader != null) {
+ reader.close();
+ }
+
+ return buffer.toString();
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResourceTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResourceTest.java
index fcb71360..be55aed0 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResourceTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResourceTest.java
@@ -1,66 +1,66 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import org.onap.sdc.workflowdesigner.resources.entity.ExtActivity;
-import org.onap.sdc.workflowdesigner.utils.FileCommonUtils;
-import org.onap.sdc.workflowdesigner.utils.JsonUtils;
-
-/**
- *
- */
-public class ExtendActivityResourceTest {
- private static final String EXT_ACTIVITIES_FILE_NAME = "src/main/assembly/ext-activities.json";
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- /**
- *
- */
- @Test
- public void testRetriveExtActivites() {
- try {
- String json = FileCommonUtils.readString(EXT_ACTIVITIES_FILE_NAME);
- ExtActivity[] extActivities = JsonUtils.fromJson(json, ExtActivity[].class);
-
- FileCommonUtils.write("test.json", JsonUtils.toJson(extActivities));
- assertEquals(extActivities.length == 0, false);
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.resources.ExtendActivityResource#getDisplayInfo(java.lang.String)}.
- */
- @Test
- public void testGetDisplayInfo() {
-
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.sdc.workflowdesigner.resources.entity.ExtActivity;
+import org.onap.sdc.workflowdesigner.utils.FileCommonUtils;
+import org.onap.sdc.workflowdesigner.utils.JsonUtils;
+
+/**
+ *
+ */
+public class ExtendActivityResourceTest {
+ private static final String EXT_ACTIVITIES_FILE_NAME = "src/main/assembly/ext-activities.json";
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ /**
+ *
+ */
+ @Test
+ public void testRetriveExtActivites() {
+ try {
+ String json = FileCommonUtils.readString(EXT_ACTIVITIES_FILE_NAME);
+ ExtActivity[] extActivities = JsonUtils.fromJson(json, ExtActivity[].class);
+
+ FileCommonUtils.write("test.json", JsonUtils.toJson(extActivities));
+ assertEquals(extActivities.length == 0, false);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.resources.ExtendActivityResource#getDisplayInfo(java.lang.String)}.
+ */
+ @Test
+ public void testGetDisplayInfo() {
+
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResourceTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResourceTest.java
index ba399644..47a46a8c 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResourceTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResourceTest.java
@@ -1,109 +1,109 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources;
-
-import static org.junit.Assert.assertEquals;
-
-import java.io.IOException;
-import java.net.URI;
-import java.nio.file.Paths;
-import java.util.UUID;
-
-import org.dom4j.DocumentException;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import org.onap.sdc.workflowdesigner.resources.entity.WorkflowInfo;
-import org.onap.sdc.workflowdesigner.utils.FileCommonUtils;
-import org.onap.sdc.workflowdesigner.utils.JsonUtils;
-
-/**
- *
- */
-public class WorkflowModelerResourceTest {
- private static final String WORKFLOW_JSON_TEMP_FILE_NAME = "temp_workflow.json";
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- /**
- * Test method for
- * {@link org.onap.sdc.workflowdesigner.resources.WorkflowModelerResource#buildBPMN(java.net.URI, java.lang.String)}.
- */
- @Test
- public void testBuildBPMN() {
- String bpmn = parseBpmnfromJsonFile();
- assertEquals(false, bpmn.isEmpty());
- }
-
- /**
- * @return
- */
- private String parseBpmnfromJsonFile() {
- try {
- URI srcUri = Paths.get("src/main/assembly", WORKFLOW_JSON_TEMP_FILE_NAME).toUri();
- WorkflowModelerResource resource = new WorkflowModelerResource();
- String processName = "plan_" + UUID.randomUUID().toString();
- return resource.buildBPMN(srcUri, processName);
- } catch (IOException e) {
- } catch (Exception e) {
- }
-
- return null;
- }
-
- /**
- * Test method for
- * {@link org.onap.sdc.workflowdesigner.resources.WorkflowModelerResource#insertJson2Bpmn(java.lang.String, java.lang.String)}.
- */
- @Test
- public void testInsertJson2Bpmn() {
- String bpmn = parseBpmnfromJsonFile();
-
- try {
- String json = FileCommonUtils.readString("src/main/assembly/" + WORKFLOW_JSON_TEMP_FILE_NAME);
- WorkflowModelerResource resource = new WorkflowModelerResource();
- String combineBpmn = resource.insertJson2Bpmn(json, bpmn);
-
- String json1 = resource.readJsonfromBPMN(combineBpmn);
-
- assertEqualsJson(json, json1);
- } catch (IOException e) {
- } catch (DocumentException e) {
- }
- }
-
- /**
- * @param json
- * @param json1
- */
- private void assertEqualsJson(String json, String json1) {
- WorkflowInfo wi = JsonUtils.fromJson(json, WorkflowInfo.class);
- WorkflowInfo wi1 = JsonUtils.fromJson(json1, WorkflowInfo.class);
-
- String newJson = JsonUtils.toJson(wi);
- String newJson1 = JsonUtils.toJson(wi1);
-
- assertEquals(newJson1, newJson);
-
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.IOException;
+import java.net.URI;
+import java.nio.file.Paths;
+import java.util.UUID;
+
+import org.dom4j.DocumentException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.sdc.workflowdesigner.resources.entity.WorkflowInfo;
+import org.onap.sdc.workflowdesigner.utils.FileCommonUtils;
+import org.onap.sdc.workflowdesigner.utils.JsonUtils;
+
+/**
+ *
+ */
+public class WorkflowModelerResourceTest {
+ private static final String WORKFLOW_JSON_TEMP_FILE_NAME = "temp_workflow.json";
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ /**
+ * Test method for
+ * {@link org.onap.sdc.workflowdesigner.resources.WorkflowModelerResource#buildBPMN(java.net.URI, java.lang.String)}.
+ */
+ @Test
+ public void testBuildBPMN() {
+ String bpmn = parseBpmnfromJsonFile();
+ assertEquals(false, bpmn.isEmpty());
+ }
+
+ /**
+ * @return
+ */
+ private String parseBpmnfromJsonFile() {
+ try {
+ URI srcUri = Paths.get("src/main/assembly", WORKFLOW_JSON_TEMP_FILE_NAME).toUri();
+ WorkflowModelerResource resource = new WorkflowModelerResource();
+ String processName = "plan_" + UUID.randomUUID().toString();
+ return resource.buildBPMN(srcUri, processName);
+ } catch (IOException e) {
+ } catch (Exception e) {
+ }
+
+ return null;
+ }
+
+ /**
+ * Test method for
+ * {@link org.onap.sdc.workflowdesigner.resources.WorkflowModelerResource#insertJson2Bpmn(java.lang.String, java.lang.String)}.
+ */
+ @Test
+ public void testInsertJson2Bpmn() {
+ String bpmn = parseBpmnfromJsonFile();
+
+ try {
+ String json = FileCommonUtils.readString("src/main/assembly/" + WORKFLOW_JSON_TEMP_FILE_NAME);
+ WorkflowModelerResource resource = new WorkflowModelerResource();
+ String combineBpmn = resource.insertJson2Bpmn(json, bpmn);
+
+ String json1 = resource.readJsonfromBPMN(combineBpmn);
+
+ assertEqualsJson(json, json1);
+ } catch (IOException e) {
+ } catch (DocumentException e) {
+ }
+ }
+
+ /**
+ * @param json
+ * @param json1
+ */
+ private void assertEqualsJson(String json, String json1) {
+ WorkflowInfo wi = JsonUtils.fromJson(json, WorkflowInfo.class);
+ WorkflowInfo wi1 = JsonUtils.fromJson(json1, WorkflowInfo.class);
+
+ String newJson = JsonUtils.toJson(wi);
+ String newJson1 = JsonUtils.toJson(wi1);
+
+ assertEquals(newJson1, newJson);
+
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryDataTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryDataTest.java
index c42f4d0c..590432fd 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryDataTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryDataTest.java
@@ -1,50 +1,50 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class CategoryDataTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- I18nString displayName = new I18nString();
- boolean collapse = false;
-
- CategoryData cd = new CategoryData();
- cd.setDisplayName(displayName);
- cd.setCollapse(collapse);
-
- assertEquals(false, cd.isCollapse());
- assertEquals(displayName, cd.getDisplayName());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class CategoryDataTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ I18nString displayName = new I18nString();
+ boolean collapse = false;
+
+ CategoryData cd = new CategoryData();
+ cd.setDisplayName(displayName);
+ cd.setCollapse(collapse);
+
+ assertEquals(false, cd.isCollapse());
+ assertEquals(displayName, cd.getDisplayName());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ContentTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ContentTest.java
index 1c6612ea..8458fc5e 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ContentTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ContentTest.java
@@ -1,73 +1,73 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import org.onap.sdc.workflowdesigner.utils.JsonUtils;
-
-/**
- *
- */
-public class ContentTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
-// String clazz = "clazz";
- String script = "script";
- String scriptFormat = "scriptFormat";
- Map<String, InputOutput> inputs = new HashMap<String, InputOutput>();
- Map<String, InputOutput> outputs = new HashMap<String, InputOutput>();
-
- Content c = new Content();
-// c.setClass(clazz);
- c.setInputs(inputs);
- c.setOutputs(outputs);
- c.setScript(script);
- c.setScriptFormat(scriptFormat);
-
-// assertEquals(clazz, c.getClazz());
- assertEquals(inputs, c.getInputs());
- assertEquals(outputs, c.getOutputs());
- assertEquals(script, c.getScript());
- assertEquals(scriptFormat, c.getScriptFormat());
- }
-
- @Test
- public void testGson() {
- String json = "{\r\n" +
- " \"class\": \"aaaa\",\r\n" +
- " \"inputs\": {}\r\n" +
- " }";
- Content content = JsonUtils.fromJson(json, Content.class);
- assertNotNull(content);
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.sdc.workflowdesigner.utils.JsonUtils;
+
+/**
+ *
+ */
+public class ContentTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+// String clazz = "clazz";
+ String script = "script";
+ String scriptFormat = "scriptFormat";
+ Map<String, InputOutput> inputs = new HashMap<String, InputOutput>();
+ Map<String, InputOutput> outputs = new HashMap<String, InputOutput>();
+
+ Content c = new Content();
+// c.setClass(clazz);
+ c.setInputs(inputs);
+ c.setOutputs(outputs);
+ c.setScript(script);
+ c.setScriptFormat(scriptFormat);
+
+// assertEquals(clazz, c.getClazz());
+ assertEquals(inputs, c.getInputs());
+ assertEquals(outputs, c.getOutputs());
+ assertEquals(script, c.getScript());
+ assertEquals(scriptFormat, c.getScriptFormat());
+ }
+
+ @Test
+ public void testGson() {
+ String json = "{\r\n" +
+ " \"class\": \"aaaa\",\r\n" +
+ " \"inputs\": {}\r\n" +
+ " }";
+ Content content = JsonUtils.fromJson(json, Content.class);
+ assertNotNull(content);
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfoTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfoTest.java
index f7112715..6c26ec75 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfoTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfoTest.java
@@ -1,53 +1,53 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ExtActivityDisplayInfoTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- Map<String, NodeCategory> nodes = new HashMap<>();
- Map<String, CategoryData> categoryData = new HashMap<>();
-
- ExtActivityDisplayInfo ed = new ExtActivityDisplayInfo();
- ed.setCategoryData(categoryData);
- ed.setNodes(nodes);
-
- assertEquals(categoryData, ed.getCategoryData());
- assertEquals(nodes, ed.getNodes());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ExtActivityDisplayInfoTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ Map<String, NodeCategory> nodes = new HashMap<>();
+ Map<String, CategoryData> categoryData = new HashMap<>();
+
+ ExtActivityDisplayInfo ed = new ExtActivityDisplayInfo();
+ ed.setCategoryData(categoryData);
+ ed.setNodes(nodes);
+
+ assertEquals(categoryData, ed.getCategoryData());
+ assertEquals(nodes, ed.getNodes());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtendActivityTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtendActivityTest.java
index 0c16807a..aca66b0f 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtendActivityTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/ExtendActivityTest.java
@@ -1,63 +1,63 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class ExtendActivityTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String id = "";
- I18nString displayName = new I18nString();
- I18nString description = new I18nString();
- String type = "";
- IconData icon = new IconData();
- Content content = new Content();
-
- ExtActivity ea = new ExtActivity();
- ea.setContent(content);
- ea.setDescription(description);
- ea.setDisplayName(displayName);
- ea.setIcon(icon);
- ea.setId(id);
- ea.setType(type);
-
- assertEquals(content, ea.getContent());
- assertEquals(description, ea.getDescription());
- assertEquals(displayName, ea.getDisplayName());
- assertEquals(icon, ea.getIcon());
- assertEquals(id, ea.getId());
- assertEquals(type, ea.getType());
-
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ExtendActivityTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String id = "";
+ I18nString displayName = new I18nString();
+ I18nString description = new I18nString();
+ String type = "";
+ IconData icon = new IconData();
+ Content content = new Content();
+
+ ExtActivity ea = new ExtActivity();
+ ea.setContent(content);
+ ea.setDescription(description);
+ ea.setDisplayName(displayName);
+ ea.setIcon(icon);
+ ea.setId(id);
+ ea.setType(type);
+
+ assertEquals(content, ea.getContent());
+ assertEquals(description, ea.getDescription());
+ assertEquals(displayName, ea.getDisplayName());
+ assertEquals(icon, ea.getIcon());
+ assertEquals(id, ea.getId());
+ assertEquals(type, ea.getType());
+
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/I18nStringTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/I18nStringTest.java
index b9ead1c3..f72a10b3 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/I18nStringTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/I18nStringTest.java
@@ -1,49 +1,49 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class I18nStringTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String en_US = "en_US";
- String zh_CN = "zh_CN";
- I18nString i18n = new I18nString(en_US, zh_CN);
- i18n.setEn_US(en_US);
- i18n.setZh_CN(zh_CN);
-
- assertEquals(en_US, i18n.getEn_US());
- assertEquals(zh_CN, i18n.getZh_CN());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class I18nStringTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String en_US = "en_US";
+ String zh_CN = "zh_CN";
+ I18nString i18n = new I18nString(en_US, zh_CN);
+ i18n.setEn_US(en_US);
+ i18n.setZh_CN(zh_CN);
+
+ assertEquals(en_US, i18n.getEn_US());
+ assertEquals(zh_CN, i18n.getZh_CN());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/IconDataTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/IconDataTest.java
index 148d3ad0..dae22c03 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/IconDataTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/IconDataTest.java
@@ -1,53 +1,53 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class IconDataTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String name = "name";
- int width = 100;
- int height= 10;
-
- IconData id = new IconData();
- id.setHeight(height);
- id.setName(name);
- id.setWidth(width);
-
- assertEquals(height, id.getHeight());
- assertEquals(name, id.getName());
- assertEquals(width, id.getWidth());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class IconDataTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String name = "name";
+ int width = 100;
+ int height= 10;
+
+ IconData id = new IconData();
+ id.setHeight(height);
+ id.setName(name);
+ id.setWidth(width);
+
+ assertEquals(height, id.getHeight());
+ assertEquals(name, id.getName());
+ assertEquals(width, id.getWidth());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutputTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutputTest.java
index 7220145d..f453088d 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutputTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/InputOutputTest.java
@@ -1,67 +1,67 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import com.google.gson.annotations.SerializedName;
-
-/**
- *
- */
-public class InputOutputTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String type = "";
- String defaultValue = "";
- boolean required = false;
- I18nString displayName = new I18nString();
- boolean show = true;
- boolean editable = true;
- String value = "";
-
- InputOutput io = new InputOutput();
- io.setDefault(defaultValue);
- io.setDisplayName(displayName);
- io.setEditable(editable);
- io.setRequired(required);
- io.setShow(show);
- io.setType(type);
- io.setValue(value);
-
- assertEquals(defaultValue, io.getDefault());
- assertEquals(displayName, io.getDisplayName());
- assertEquals(editable, io.isEditable());
- assertEquals(required, io.isRequired());
- assertEquals(show, io.isShow());
- assertEquals(type, io.getType());
- assertEquals(value, io.getValue());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import com.google.gson.annotations.SerializedName;
+
+/**
+ *
+ */
+public class InputOutputTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String type = "";
+ String defaultValue = "";
+ boolean required = false;
+ I18nString displayName = new I18nString();
+ boolean show = true;
+ boolean editable = true;
+ String value = "";
+
+ InputOutput io = new InputOutput();
+ io.setDefault(defaultValue);
+ io.setDisplayName(displayName);
+ io.setEditable(editable);
+ io.setRequired(required);
+ io.setShow(show);
+ io.setType(type);
+ io.setValue(value);
+
+ assertEquals(defaultValue, io.getDefault());
+ assertEquals(displayName, io.getDisplayName());
+ assertEquals(editable, io.isEditable());
+ assertEquals(required, io.isRequired());
+ assertEquals(show, io.isShow());
+ assertEquals(type, io.getType());
+ assertEquals(value, io.getValue());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategoryTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategoryTest.java
index 8bc678f6..2342d43d 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategoryTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/NodeCategoryTest.java
@@ -1,47 +1,47 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class NodeCategoryTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String category = "category";
-
- NodeCategory nc = new NodeCategory();
- nc.setCategory(category);
-
- assertEquals(category, nc.getCategory());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class NodeCategoryTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String category = "category";
+
+ NodeCategory nc = new NodeCategory();
+ nc.setCategory(category);
+
+ assertEquals(category, nc.getCategory());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfoTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfoTest.java
index 22b951e1..488a744c 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfoTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/resources/entity/WorkflowInfoTest.java
@@ -1,67 +1,67 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.resources.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import com.google.gson.JsonObject;
-
-/**
- *
- */
-public class WorkflowInfoTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- @Test
- public void test() {
- String uuid = "";
- String operationId = "";
- String id = "";
- String name = "";
- String description = "";
- String scene = "";
- JsonObject data =new JsonObject();
-
- WorkflowInfo wi = new WorkflowInfo();
- wi.setData(data);
- wi.setDescription(description);
- wi.setId(id);
- wi.setName(name);
- wi.setOperationId(operationId);
- wi.setScene(scene);
- wi.setUuid(uuid);
-
- assertEquals(data, wi.getData());
- assertEquals(description, wi.getDescription());
- assertEquals(id, wi.getId());
- assertEquals(name, wi.getName());
- assertEquals(operationId, wi.getOperationId());
- assertEquals(scene, wi.getScene());
- assertEquals(uuid, wi.getUuid());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.resources.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import com.google.gson.JsonObject;
+
+/**
+ *
+ */
+public class WorkflowInfoTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ String uuid = "";
+ String operationId = "";
+ String id = "";
+ String name = "";
+ String description = "";
+ String scene = "";
+ JsonObject data =new JsonObject();
+
+ WorkflowInfo wi = new WorkflowInfo();
+ wi.setData(data);
+ wi.setDescription(description);
+ wi.setId(id);
+ wi.setName(name);
+ wi.setOperationId(operationId);
+ wi.setScene(scene);
+ wi.setUuid(uuid);
+
+ assertEquals(data, wi.getData());
+ assertEquals(description, wi.getDescription());
+ assertEquals(id, wi.getId());
+ assertEquals(name, wi.getName());
+ assertEquals(operationId, wi.getOperationId());
+ assertEquals(scene, wi.getScene());
+ assertEquals(uuid, wi.getUuid());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtilsTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtilsTest.java
index aba1a319..0abddfff 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtilsTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/FileCommonUtilsTest.java
@@ -1,175 +1,175 @@
-/**
- * Copyright (c) 2017-2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.utils;
-
-import static org.junit.Assert.assertEquals;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.StringBufferInputStream;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class FileCommonUtilsTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#readLines(java.io.InputStream)}.
- */
- @Test
- public void testReadLines() {
- String fileName = "src/test/resources/workflow/template-test.bpmn20.xml";
- File file = new File(fileName);
- FileInputStream ins = null;
- try {
- ins = new FileInputStream(file);
- String[] ss = FileCommonUtils.readLines(ins);
- assertEquals(false, ss.length == 0);
-
- FileCommonUtils.write("template-test.bpmn20.xml", ss);
- } catch (FileNotFoundException e) {
- e.printStackTrace();
- } catch (IOException e) {
- e.printStackTrace();
- } finally {
- FileCommonUtils.closeInputStream(ins);
- }
-
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#readString(java.io.InputStream)}.
- */
- @Test
- public void testReadStringInputStream() {
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#readString(java.lang.String)}.
- */
- @Test
- public void testReadStringString() {
- String fileName = "src/test/resources/workflow/template-test.bpmn20.xml";
- File file = new File(fileName);
- if (file.exists()) {
- try {
- String s = FileCommonUtils.readString(fileName);
- FileCommonUtils.write("test.xml", s);
- assertEquals(s.isEmpty(), false);
- } catch (IOException e) {
- }
- }
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#saveFile(java.io.InputStream, java.lang.String, java.lang.String)}.
- */
- @Test
- public void testSaveFile() {
- String fileName = "test3.json";
- String content = "{\"aaa\": \"节点\"}";
- StringBufferInputStream ins = null;
- try {
- ins = new StringBufferInputStream(content);
- FileCommonUtils.saveFile(ins, ".", fileName);
- } catch (IOException e) {
- e.printStackTrace();
- FileCommonUtils.closeInputStream(ins);
- }
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#writetoAbsoluteFile(java.lang.String, java.lang.String, java.lang.String)}.
- */
- @Test
- public void testWritetoAbsoluteFileStringStringString() {
- String fileName = "test1.json";
- String content = "{\"aaa\": \"节点\"}";
-
- try {
- FileCommonUtils.writetoAbsoluteFile(".", fileName, content);
- String s = FileCommonUtils.readString(fileName);
- assertEquals(s, content);
- } catch (IOException e) {
- }
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#writetoAbsoluteFile(java.lang.String, java.lang.String, java.lang.String, java.lang.String)}.
- */
- @Test
- public void testWritetoAbsoluteFileStringStringStringString() {
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String)}.
- */
- @Test
- public void testWriteStringString() {
- String fileName = "test.json";
- String content = "{\"aaa\": \"节点\"}";
-
- try {
- FileCommonUtils.write(fileName, content);
- String s = FileCommonUtils.readString(fileName);
- assertEquals(s, content);
- } catch (IOException e) {
- }
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String, java.lang.String, java.lang.String)}.
- */
- @Test
- public void testWriteStringStringStringString() {
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String, java.lang.String)}.
- */
- @Test
- public void testWriteStringStringString() {
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String[])}.
- */
- @Test
- public void testWriteStringStringArray() {
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String[], java.lang.String)}.
- */
- @Test
- public void testWriteStringStringArrayString() {
- }
-
-}
+/**
+ * Copyright (c) 2017-2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.utils;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.StringBufferInputStream;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class FileCommonUtilsTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#readLines(java.io.InputStream)}.
+ */
+ @Test
+ public void testReadLines() {
+ String fileName = "src/test/resources/workflow/template-test.bpmn20.xml";
+ File file = new File(fileName);
+ FileInputStream ins = null;
+ try {
+ ins = new FileInputStream(file);
+ String[] ss = FileCommonUtils.readLines(ins);
+ assertEquals(false, ss.length == 0);
+
+ FileCommonUtils.write("template-test.bpmn20.xml", ss);
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } finally {
+ FileCommonUtils.closeInputStream(ins);
+ }
+
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#readString(java.io.InputStream)}.
+ */
+ @Test
+ public void testReadStringInputStream() {
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#readString(java.lang.String)}.
+ */
+ @Test
+ public void testReadStringString() {
+ String fileName = "src/test/resources/workflow/template-test.bpmn20.xml";
+ File file = new File(fileName);
+ if (file.exists()) {
+ try {
+ String s = FileCommonUtils.readString(fileName);
+ FileCommonUtils.write("test.xml", s);
+ assertEquals(s.isEmpty(), false);
+ } catch (IOException e) {
+ }
+ }
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#saveFile(java.io.InputStream, java.lang.String, java.lang.String)}.
+ */
+ @Test
+ public void testSaveFile() {
+ String fileName = "test3.json";
+ String content = "{\"aaa\": \"节点\"}";
+ StringBufferInputStream ins = null;
+ try {
+ ins = new StringBufferInputStream(content);
+ FileCommonUtils.saveFile(ins, ".", fileName);
+ } catch (IOException e) {
+ e.printStackTrace();
+ FileCommonUtils.closeInputStream(ins);
+ }
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#writetoAbsoluteFile(java.lang.String, java.lang.String, java.lang.String)}.
+ */
+ @Test
+ public void testWritetoAbsoluteFileStringStringString() {
+ String fileName = "test1.json";
+ String content = "{\"aaa\": \"节点\"}";
+
+ try {
+ FileCommonUtils.writetoAbsoluteFile(".", fileName, content);
+ String s = FileCommonUtils.readString(fileName);
+ assertEquals(s, content);
+ } catch (IOException e) {
+ }
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#writetoAbsoluteFile(java.lang.String, java.lang.String, java.lang.String, java.lang.String)}.
+ */
+ @Test
+ public void testWritetoAbsoluteFileStringStringStringString() {
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String)}.
+ */
+ @Test
+ public void testWriteStringString() {
+ String fileName = "test.json";
+ String content = "{\"aaa\": \"节点\"}";
+
+ try {
+ FileCommonUtils.write(fileName, content);
+ String s = FileCommonUtils.readString(fileName);
+ assertEquals(s, content);
+ } catch (IOException e) {
+ }
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String, java.lang.String, java.lang.String)}.
+ */
+ @Test
+ public void testWriteStringStringStringString() {
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String, java.lang.String)}.
+ */
+ @Test
+ public void testWriteStringStringString() {
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String[])}.
+ */
+ @Test
+ public void testWriteStringStringArray() {
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.FileCommonUtils#write(java.lang.String, java.lang.String[], java.lang.String)}.
+ */
+ @Test
+ public void testWriteStringStringArrayString() {
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/JsonUtilsTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/JsonUtilsTest.java
index 2672f6bd..c4b341fd 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/JsonUtilsTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/JsonUtilsTest.java
@@ -1,59 +1,59 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.utils;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import org.onap.sdc.workflowdesigner.resources.entity.I18nString;
-
-/**
- *
- */
-public class JsonUtilsTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.JsonUtils#fromJson(java.lang.String, java.lang.Class)}.
- */
- @Test
- public void testFromJson() {
- String i18n = "{\"en_US\":\"Service Task\",\"zh_CN\":\"Service Task\"}";
- I18nString i18nString = JsonUtils.fromJson(i18n, I18nString.class);
- assertNotNull(i18nString);
- }
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.JsonUtils#toJson(java.lang.Object)}.
- */
- @Test
- public void testToJson() {
- I18nString i18nString = new I18nString("Service Task", "Service Task");
- String i18n = JsonUtils.toJson(i18nString);
- String expect = "{\"en_US\":\"Service Task\",\"zh_CN\":\"Service Task\"}";
- assertEquals(expect, i18n);
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.utils;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.sdc.workflowdesigner.resources.entity.I18nString;
+
+/**
+ *
+ */
+public class JsonUtilsTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.JsonUtils#fromJson(java.lang.String, java.lang.Class)}.
+ */
+ @Test
+ public void testFromJson() {
+ String i18n = "{\"en_US\":\"Service Task\",\"zh_CN\":\"Service Task\"}";
+ I18nString i18nString = JsonUtils.fromJson(i18n, I18nString.class);
+ assertNotNull(i18nString);
+ }
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.JsonUtils#toJson(java.lang.Object)}.
+ */
+ @Test
+ public void testToJson() {
+ I18nString i18nString = new I18nString("Service Task", "Service Task");
+ String i18n = JsonUtils.toJson(i18nString);
+ String expect = "{\"en_US\":\"Service Task\",\"zh_CN\":\"Service Task\"}";
+ assertEquals(expect, i18n);
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponseTest.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponseTest.java
index 5292521b..f6014cfd 100644
--- a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponseTest.java
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponseTest.java
@@ -1,51 +1,51 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.utils.entity;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- *
- */
-public class CommonErrorResponseTest {
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {}
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {}
-
- /**
- * Test method for {@link org.onap.sdc.workflowdesigner.utils.entity.CommonErrorResponse#failure(java.lang.String)}.
- */
- @Test
- public void testFailure() {
- String code = "code";
- String message = "message";
- CommonErrorResponse errorResponse = new CommonErrorResponse(code);
- errorResponse.setCode(code);
- errorResponse.setMessage(message);
- assertEquals(code, errorResponse.getCode());
- assertEquals(message, errorResponse.getMessage());
- }
-
-}
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.utils.entity;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class CommonErrorResponseTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ /**
+ * Test method for {@link org.onap.sdc.workflowdesigner.utils.entity.CommonErrorResponse#failure(java.lang.String)}.
+ */
+ @Test
+ public void testFailure() {
+ String code = "code";
+ String message = "message";
+ CommonErrorResponse errorResponse = new CommonErrorResponse(code);
+ errorResponse.setCode(code);
+ errorResponse.setMessage(message);
+ assertEquals(code, errorResponse.getCode());
+ assertEquals(message, errorResponse.getMessage());
+ }
+
+}
diff --git a/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml
index 5c022a2e..de2dee8d 100644
--- a/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn"
- xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
- xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema"
- expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
- <process id="templateTest" isExecutable="true">
- <!-- dataObjects -->
-
- <!-- Perform bpmn elements -->
-
- <!-- Perform bpmn sequence flow -->
-
- </process>
-</definitions>
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn"
+ xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
+ xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema"
+ expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
+ <process id="templateTest" isExecutable="true">
+ <!-- dataObjects -->
+
+ <!-- Perform bpmn elements -->
+
+ <!-- Perform bpmn sequence flow -->
+
+ </process>
+</definitions>
diff --git a/sdc-workflow-designer-server/src/test/resources/workflow/workflow.json b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/resources/workflow/workflow.json
index 1fa3d10e..554e663f 100644
--- a/sdc-workflow-designer-server/src/test/resources/workflow/workflow.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/test/resources/workflow/workflow.json
@@ -1,28 +1,28 @@
-{
- "id":"id12345",
- "name":"test",
- "scene":"abcd",
- "data":{
- "nodes":[
- {
- "id":"scriptTask",
- "type":"scriptTask",
- "typeId":"apds_script",
- "icon":"apds_script",
- "name":"Script Task",
- "parentId":"root",
- "position":{
- "left":328,
- "top":134,
- "width":56,
- "height":56
- },
- "connection":[
-
- ],
- "scriptFormat":"JavaScript",
- "script":""
- }
- ]
- }
+{
+ "id":"id12345",
+ "name":"test",
+ "scene":"abcd",
+ "data":{
+ "nodes":[
+ {
+ "id":"scriptTask",
+ "type":"scriptTask",
+ "typeId":"apds_script",
+ "icon":"apds_script",
+ "name":"Script Task",
+ "parentId":"root",
+ "position":{
+ "left":328,
+ "top":134,
+ "width":56,
+ "height":56
+ },
+ "connection":[
+
+ ],
+ "scriptFormat":"JavaScript",
+ "script":""
+ }
+ ]
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/.angular-cli.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/.angular-cli.json
index a4cf34ee..a4cf34ee 100644
--- a/sdc-workflow-designer-ui/.angular-cli.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/.angular-cli.json
diff --git a/sdc-workflow-designer-ui/.editorconfig b/deprecated-workflow-designer/sdc-workflow-designer-ui/.editorconfig
index 6e87a003..6e87a003 100644
--- a/sdc-workflow-designer-ui/.editorconfig
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/.editorconfig
diff --git a/sdc-workflow-designer-ui/.gitignore b/deprecated-workflow-designer/sdc-workflow-designer-ui/.gitignore
index a563942c..a563942c 100644
--- a/sdc-workflow-designer-ui/.gitignore
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/.gitignore
diff --git a/sdc-workflow-designer-ui/README.md b/deprecated-workflow-designer/sdc-workflow-designer-ui/README.md
index 88859be5..88859be5 100644
--- a/sdc-workflow-designer-ui/README.md
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/README.md
diff --git a/sdc-workflow-designer-ui/e2e/app.e2e-spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/app.e2e-spec.ts
index 194ac2ae..194ac2ae 100644
--- a/sdc-workflow-designer-ui/e2e/app.e2e-spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/app.e2e-spec.ts
diff --git a/sdc-workflow-designer-ui/e2e/app.po.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/app.po.ts
index dd457864..dd457864 100644
--- a/sdc-workflow-designer-ui/e2e/app.po.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/app.po.ts
diff --git a/sdc-workflow-designer-ui/e2e/tsconfig.e2e.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/tsconfig.e2e.json
index 1d9e5edf..1d9e5edf 100644
--- a/sdc-workflow-designer-ui/e2e/tsconfig.e2e.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/e2e/tsconfig.e2e.json
diff --git a/sdc-workflow-designer-ui/karma.conf.js b/deprecated-workflow-designer/sdc-workflow-designer-ui/karma.conf.js
index da79c089..da79c089 100644
--- a/sdc-workflow-designer-ui/karma.conf.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/karma.conf.js
diff --git a/sdc-workflow-designer-ui/package-lock.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/package-lock.json
index 5c4a9cb0..5c4a9cb0 100644
--- a/sdc-workflow-designer-ui/package-lock.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/package-lock.json
diff --git a/sdc-workflow-designer-ui/package.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/package.json
index 67a28e1a..67a28e1a 100644
--- a/sdc-workflow-designer-ui/package.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/package.json
diff --git a/sdc-workflow-designer-ui/pom.xml b/deprecated-workflow-designer/sdc-workflow-designer-ui/pom.xml
index 2f758c5b..af18462e 100644
--- a/sdc-workflow-designer-ui/pom.xml
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/pom.xml
@@ -19,11 +19,10 @@
<parent>
<groupId>org.onap.sdc.sdc-workflow-designer</groupId>
<artifactId>sdc-workflow-designer</artifactId>
- <version>1.1.0-SNAPSHOT</version>
+ <version>1.2.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
<artifactId>sdc-workflow-designer-ui</artifactId>
<name>sdc-workflow-designer-ui</name>
<packaging>jar</packaging>
diff --git a/sdc-workflow-designer-ui/protractor.conf.js b/deprecated-workflow-designer/sdc-workflow-designer-ui/protractor.conf.js
index d61f2d6d..d61f2d6d 100644
--- a/sdc-workflow-designer-ui/protractor.conf.js
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/protractor.conf.js
diff --git a/sdc-workflow-designer-ui/src/app/app.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.css
index dd226ff1..dd226ff1 100644
--- a/sdc-workflow-designer-ui/src/app/app.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.css
diff --git a/sdc-workflow-designer-ui/src/app/app.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.html
index d629bbd9..d629bbd9 100644
--- a/sdc-workflow-designer-ui/src/app/app.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.html
diff --git a/sdc-workflow-designer-ui/src/app/app.component.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.spec.ts
index 126bda51..126bda51 100644
--- a/sdc-workflow-designer-ui/src/app/app.component.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/app.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.ts
index 15796977..15796977 100644
--- a/sdc-workflow-designer-ui/src/app/app.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/app.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.module.ts
index 66ea97cd..66ea97cd 100644
--- a/sdc-workflow-designer-ui/src/app/app.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/app.module.ts
diff --git a/sdc-workflow-designer-ui/src/app/assets/.gitkeep b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/.gitkeep
index e69de29b..e69de29b 100644
--- a/sdc-workflow-designer-ui/src/app/assets/.gitkeep
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/.gitkeep
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/css/bootstrap4.0.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/bootstrap4.0.css
index d52c5848..d52c5848 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/css/bootstrap4.0.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/bootstrap4.0.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/css/font-awesome.min.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/font-awesome.min.css
index 248ea7ab..248ea7ab 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/css/font-awesome.min.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/font-awesome.min.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/css/iconfont.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/iconfont.css
index 1b4dfb98..1b4dfb98 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/css/iconfont.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/iconfont.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/css/ngict-component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/ngict-component.css
index 98ad2e36..98ad2e36 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/css/ngict-component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/ngict-component.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/css/prism.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/prism.css
index 0100f8dd..0100f8dd 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/css/prism.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/prism.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/css/style.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/style.css
index 9cb8e913..9cb8e913 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/css/style.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/css/style.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/FontAwesome.otf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/FontAwesome.otf
index 401ec0f3..401ec0f3 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/FontAwesome.otf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/FontAwesome.otf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.eot
index 8ddba569..8ddba569 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.svg
index 94a04d7c..94a04d7c 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.ttf
index 5cc40aac..5cc40aac 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.woff
index 0564e188..0564e188 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteIctIcons.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.eot
index 2b6211f8..2b6211f8 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.svg
index 77eff7d7..77eff7d7 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.ttf
index f52ce211..f52ce211 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.woff
index f120a67e..f120a67e 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/ZteTableIcons.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.eot
index e9f60ca9..e9f60ca9 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.svg
index 855c845e..855c845e 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.ttf
index 35acda2f..35acda2f 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff
index 400014a4..400014a4 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff2 b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff2
index 4d13fc60..4d13fc60 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff2
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/fontawesome-webfont.woff2
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.eot
index e45edf09..e45edf09 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.svg
index f5e45b4d..f5e45b4d 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.ttf
index b8bc410e..b8bc410e 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.woff
index 7cbe02f9..7cbe02f9 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/iconfont.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.eot
index 5611721d..5611721d 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.svg
index 98d20729..98d20729 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.ttf
index 2d56c73c..2d56c73c 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.woff
index bf943465..bf943465 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/fonts/plx-icons.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop.svg
index 58bca254..58bca254 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop_hover.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop_hover.svg
index f35c0fb0..f35c0fb0 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop_hover.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/backtop/backtop_hover.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-checked-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-checked-disabled.svg
index 041c368b..041c368b 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-checked-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-checked-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-disabled.svg
index 03bfad63..03bfad63 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-hover.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-hover.svg
index 4cac1803..4cac1803 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-hover.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-hover.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-init.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-init.svg
index d518db1b..d518db1b 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-init.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/checkbox-init.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked-disabled.svg
index ff139644..ff139644 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked.svg
index 29dfaf84..29dfaf84 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-checked.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-disabled.svg
index 6e1a1b12..6e1a1b12 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-hover.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-hover.svg
index c050f69d..c050f69d 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-hover.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-hover.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-init.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-init.svg
index 7e2977c2..7e2977c2 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-init.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/radio-init.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/test/checkbox-checked.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/test/checkbox-checked.svg
index 22b9535c..22b9535c 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/test/checkbox-checked.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/images/checkbox-radio/test/checkbox-checked.svg
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/NIV-theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/NIV-theme.less
index 2490a0d9..2490a0d9 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/NIV-theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/NIV-theme.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.css
index 134187dd..134187dd 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.less
index a145f3fa..a145f3fa 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/NIV/theme.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common.less
index bf530f08..bf530f08 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/common.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/common.less
index e53ef3d5..e53ef3d5 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/common.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/common.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-button.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-button.less
index a1421c81..26ed4b15 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-button.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-button.less
@@ -1,272 +1,272 @@
-@import "../default/theme.less";
-
-@padding-normal: 0px 16px;
-@padding-sm: 0px 14px;
-@padding-xs: 0px 12px;
-@min-width-normal: 80px;
-@min-width-sm: 60px;
-@min-width-xs: 60px;
-@btn-margin-right: 10px;
-@btn-margin-right-sm: 5px;
-@btn-margin-right-xs: 5px;
-@btn-border-height: 1px;
-
-.border-min-width(@min-width, 14px) {
- min-width: @min-width + 8px;
-}
-
-.border-min-width(@min-width, 12px) {
- min-width: @min-width;
-}
-
-.background-color-white-color-disabled (@color) when (@color = #fff) {
- color: @disabled-text-color;
- background-color: @common-color;
- border-color: #e9e9e9;
-}
-
-.background-color-white-color-disabled (@color) when not (@color = #fff) {
- border-color: @color;
- background-color: @color;
- opacity: @opacity-disable;
-}
-
-.plx-btn {
- font-family: @font-family;
- color: @common-textcolor;
- .border-min-width(@min-width-normal, @font-size);
- letter-spacing: 1px;
- padding: @padding-normal;
- height: @btn-height;
- font-size: @font-size;
- cursor: pointer;
- text-align: center;
- white-space: nowrap;
- margin-right: @btn-margin-right;
- vertical-align: middle;
- border: @btn-border-height solid @border-color-base;
- background-color: @common-color;
- border-radius: @radius;
- line-height: @btn-height - @btn-border-height * 2;
- &:hover,
- &:disabled,
- &[disabled],
- &:focus,
- &:active {
- outline: none;
- background-image: none;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
- &:hover,
- &:focus {
- color: @btn-common-color-text-hover;
- border-color: @btn-common-color-border-hover;
- background-color: @common-color-hover;
- }
- &:active {
- color: @btn-common-color-text-click;
- border-color: @btn-common-color-border-click;
- background-color: @common-color-click;
- }
- &:disabled,
- &[disabled] {
- .background-color-white-color-disabled(@common-color);
- }
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- .background-color-white-color-disabled(@common-color);
- cursor: not-allowed;
- }
- & .plx-btn-icon {
- font-size: 16px;
- vertical-align: text-top;
- margin-right: 3px;
- }
-}
-
-.plx-btn-primary {
- background-color: @primary-color;
- color: @scene-textcolor;
- border-color: @primary-color;
- &:hover,
- &:focus {
- color: @scene-textcolor;
- background-color: @primary-color-hover;
- border-color: @primary-color-hover;
- }
- &:active {
- color: @scene-textcolor;
- background-color: @primary-color-click;
- border-color: @primary-color-click;
- }
- &:disabled,
- &[disabled],
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- color: @scene-textcolor;
- .background-color-white-color-disabled(@primary-color);
- }
-}
-
-.plx-btn-guide {
- background-color: @guide-color;
- color: @scene-textcolor;
- border-color: @guide-color;
- &:hover,
- &:focus {
- color: @scene-textcolor;
- background-color: @primary-color-guide-hover;
- border-color: @primary-color-guide-hover;
- }
- &:active {
- color: @scene-textcolor;
- background-color: @primary-color-guide-click;
- border-color: @primary-color-guide-click;
- }
- &:disabled,
- &[disabled],
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- color: @scene-textcolor;
- .background-color-white-color-disabled(@guide-color);
- }
-}
-
-.plx-btn-table {
- color: @text-color;
-}
-
-.plx-btn-error {
- background-color: @error-color;
- color: @scene-textcolor;
- border-color: @error-color;
- &:hover,
- &:focus {
- color: @scene-textcolor;
- background-color: @error-color-hover;
- border-color: @error-color-hover;
- }
- &:active {
- color: @scene-textcolor;
- background-color: @error-color-click;
- border-color: @error-color-click;
- }
- &:disabled,
- &[disabled],
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- color: @scene-textcolor;
- .background-color-white-color-disabled(@error-color);
- }
-}
-
-.plx-btn-sm {
- height: @btn-height-sm;
- padding: @padding-sm;
- .border-min-width(@min-width-sm, @font-size);
- margin-right: @btn-margin-right-sm;
- line-height: @btn-height-sm - @btn-border-height * 2;
-}
-
-.plx-btn-xs{
- height: @btn-height-xs;
- padding: @padding-xs;
- .border-min-width(@min-width-xs, @font-size);
- margin-right: @btn-margin-right-xs;
- line-height: @btn-height-xs - @btn-border-height * 2;
-}
-
-.plx-btn.dropdown-toggle {
- margin-right: 0;
- outline: none !important;
- background-image: none !important;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
-}
-
-.plx-btn.dropdown-toggle::after {
- margin-left: 16px;
- border-top: 4px solid;
- border-right: 4px solid transparent;
- border-left: 4px solid transparent;
- color: darken(@border-color-base, 10%);
- margin-bottom: 1px;
-}
-
-.plx-btn-sm.dropdown-toggle::after {
- margin-left: 14px;
-}
-
-.plx-btn-xs.dropdown-toggle::after {
- margin-left: 12px;
-}
-
-.plx-btn+.dropdown-menu {
- margin: 0;
- padding: 0;
- border: 0;
- min-width: 100%;
- font-size: @font-size;
- border-radius: @radius;
- .shadow;
- & .dropdown-item {
- background-color: @component-bg;
- color: @text-color;
- font-size: @font-size;
- padding: @padding-normal;
- height: 30px;
- cursor: pointer;
- &:hover,
- &:focus,
- &:active{
- outline: none;
- background-color: @hover-bg-color;
- }
- &:disabled,
- &[disabled] {
- color: @disabled-text-color;
- }
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- cursor: not-allowed;
- background-color: @component-bg;
- }
- }
-}
-
-.plx-btn-sm+.dropdown-menu .dropdown-item {
- padding: @padding-sm;
-}
-.plx-btn-xs+.dropdown-menu .dropdown-item {
- padding: @padding-xs;
-}
-
-.plx-btn-more {
- display: inline-block;
- margin-right: @btn-margin-right;
-}
-
-.plx-btn-more-sm {
- margin-right: @btn-margin-right-sm;
-}
-
-.plx-btn-more-xs {
- margin-right: @btn-margin-right-xs;
+@import "../default/theme.less";
+
+@padding-normal: 0px 16px;
+@padding-sm: 0px 14px;
+@padding-xs: 0px 12px;
+@min-width-normal: 80px;
+@min-width-sm: 60px;
+@min-width-xs: 60px;
+@btn-margin-right: 10px;
+@btn-margin-right-sm: 5px;
+@btn-margin-right-xs: 5px;
+@btn-border-height: 1px;
+
+.border-min-width(@min-width, 14px) {
+ min-width: @min-width + 8px;
+}
+
+.border-min-width(@min-width, 12px) {
+ min-width: @min-width;
+}
+
+.background-color-white-color-disabled (@color) when (@color = #fff) {
+ color: @disabled-text-color;
+ background-color: @common-color;
+ border-color: #e9e9e9;
+}
+
+.background-color-white-color-disabled (@color) when not (@color = #fff) {
+ border-color: @color;
+ background-color: @color;
+ opacity: @opacity-disable;
+}
+
+.plx-btn {
+ font-family: @font-family;
+ color: @common-textcolor;
+ .border-min-width(@min-width-normal, @font-size);
+ letter-spacing: 1px;
+ padding: @padding-normal;
+ height: @btn-height;
+ font-size: @font-size;
+ cursor: pointer;
+ text-align: center;
+ white-space: nowrap;
+ margin-right: @btn-margin-right;
+ vertical-align: middle;
+ border: @btn-border-height solid @border-color-base;
+ background-color: @common-color;
+ border-radius: @radius;
+ line-height: @btn-height - @btn-border-height * 2;
+ &:hover,
+ &:disabled,
+ &[disabled],
+ &:focus,
+ &:active {
+ outline: none;
+ background-image: none;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+ &:hover,
+ &:focus {
+ color: @btn-common-color-text-hover;
+ border-color: @btn-common-color-border-hover;
+ background-color: @common-color-hover;
+ }
+ &:active {
+ color: @btn-common-color-text-click;
+ border-color: @btn-common-color-border-click;
+ background-color: @common-color-click;
+ }
+ &:disabled,
+ &[disabled] {
+ .background-color-white-color-disabled(@common-color);
+ }
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ .background-color-white-color-disabled(@common-color);
+ cursor: not-allowed;
+ }
+ & .plx-btn-icon {
+ font-size: 16px;
+ vertical-align: text-top;
+ margin-right: 3px;
+ }
+}
+
+.plx-btn-primary {
+ background-color: @primary-color;
+ color: @scene-textcolor;
+ border-color: @primary-color;
+ &:hover,
+ &:focus {
+ color: @scene-textcolor;
+ background-color: @primary-color-hover;
+ border-color: @primary-color-hover;
+ }
+ &:active {
+ color: @scene-textcolor;
+ background-color: @primary-color-click;
+ border-color: @primary-color-click;
+ }
+ &:disabled,
+ &[disabled],
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ color: @scene-textcolor;
+ .background-color-white-color-disabled(@primary-color);
+ }
+}
+
+.plx-btn-guide {
+ background-color: @guide-color;
+ color: @scene-textcolor;
+ border-color: @guide-color;
+ &:hover,
+ &:focus {
+ color: @scene-textcolor;
+ background-color: @primary-color-guide-hover;
+ border-color: @primary-color-guide-hover;
+ }
+ &:active {
+ color: @scene-textcolor;
+ background-color: @primary-color-guide-click;
+ border-color: @primary-color-guide-click;
+ }
+ &:disabled,
+ &[disabled],
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ color: @scene-textcolor;
+ .background-color-white-color-disabled(@guide-color);
+ }
+}
+
+.plx-btn-table {
+ color: @text-color;
+}
+
+.plx-btn-error {
+ background-color: @error-color;
+ color: @scene-textcolor;
+ border-color: @error-color;
+ &:hover,
+ &:focus {
+ color: @scene-textcolor;
+ background-color: @error-color-hover;
+ border-color: @error-color-hover;
+ }
+ &:active {
+ color: @scene-textcolor;
+ background-color: @error-color-click;
+ border-color: @error-color-click;
+ }
+ &:disabled,
+ &[disabled],
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ color: @scene-textcolor;
+ .background-color-white-color-disabled(@error-color);
+ }
+}
+
+.plx-btn-sm {
+ height: @btn-height-sm;
+ padding: @padding-sm;
+ .border-min-width(@min-width-sm, @font-size);
+ margin-right: @btn-margin-right-sm;
+ line-height: @btn-height-sm - @btn-border-height * 2;
+}
+
+.plx-btn-xs{
+ height: @btn-height-xs;
+ padding: @padding-xs;
+ .border-min-width(@min-width-xs, @font-size);
+ margin-right: @btn-margin-right-xs;
+ line-height: @btn-height-xs - @btn-border-height * 2;
+}
+
+.plx-btn.dropdown-toggle {
+ margin-right: 0;
+ outline: none !important;
+ background-image: none !important;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+}
+
+.plx-btn.dropdown-toggle::after {
+ margin-left: 16px;
+ border-top: 4px solid;
+ border-right: 4px solid transparent;
+ border-left: 4px solid transparent;
+ color: darken(@border-color-base, 10%);
+ margin-bottom: 1px;
+}
+
+.plx-btn-sm.dropdown-toggle::after {
+ margin-left: 14px;
+}
+
+.plx-btn-xs.dropdown-toggle::after {
+ margin-left: 12px;
+}
+
+.plx-btn+.dropdown-menu {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ min-width: 100%;
+ font-size: @font-size;
+ border-radius: @radius;
+ .shadow;
+ & .dropdown-item {
+ background-color: @component-bg;
+ color: @text-color;
+ font-size: @font-size;
+ padding: @padding-normal;
+ height: 30px;
+ cursor: pointer;
+ &:hover,
+ &:focus,
+ &:active{
+ outline: none;
+ background-color: @hover-bg-color;
+ }
+ &:disabled,
+ &[disabled] {
+ color: @disabled-text-color;
+ }
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ cursor: not-allowed;
+ background-color: @component-bg;
+ }
+ }
+}
+
+.plx-btn-sm+.dropdown-menu .dropdown-item {
+ padding: @padding-sm;
+}
+.plx-btn-xs+.dropdown-menu .dropdown-item {
+ padding: @padding-xs;
+}
+
+.plx-btn-more {
+ display: inline-block;
+ margin-right: @btn-margin-right;
+}
+
+.plx-btn-more-sm {
+ margin-right: @btn-margin-right-sm;
+}
+
+.plx-btn-more-xs {
+ margin-right: @btn-margin-right-xs;
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-checkbox.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-checkbox.less
index e0742f61..8726ebae 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-checkbox.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-checkbox.less
@@ -1,105 +1,105 @@
-@import "../default/theme.less";
-
-@checkbox-border-size: 1px;
-
-.plx-checkbox-container {
- font-size: 0;
- position: relative;
-}
-
-.plx-checkbox {
- position: absolute;
- z-index: -1;
- opacity: 0;
- & + .checkbox-substitute {
- position: relative;
- display: inline-block;
- cursor: pointer;
- height: @checkbox-size;
- width: @checkbox-size;
- border: @checkbox-border-size solid @border-color-base;
- border-radius: @radius-sm;
- vertical-align: middle;
- }
- & + .checkbox-substitute + span {
- font-weight: normal;
- font-size: @font-size;
- cursor: pointer;
- vertical-align: middle;
- .font-padding(@font-size);
- }
- &:hover + .checkbox-substitute {
- border-color: @primary-color;
- outline: none;
- background-image: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
- &:checked + .checkbox-substitute {
- border-color: @primary-color;
- background-color: @primary-color;
- &::after {
- .checkbox-check(@component-bg);
- }
- }
- &.portion + .checkbox-substitute {
- background-color: @primary-color;
- border-color: @primary-color;
- opacity: 0.5;
- &::after {
- .checkbox-check(@component-bg);
- }
- }
- &:disabled + .checkbox-substitute,
- &[disabled] + .checkbox-substitute {
- border-color: @border-color-base;
- background-color: @input-bg-color-disabled;
- cursor: not-allowed;
- }
- &:disabled + .checkbox-substitute + span,
- &[disabled] + .checkbox-substitute + span {
- cursor: not-allowed;
- }
- &.portion[disabled] + .checkbox-substitute {
- background-color: @border-color-base;
- border-color: @border-color-base;
- &::after {
- .checkbox-check(@fonticon-color);
- }
- }
- &:checked[disabled] + .checkbox-substitute {
- border-color: @border-color-base;
- background-color: @border-color-base;
- }
-}
-
-.checkbox-check(@color) {
- content: '';
- position: absolute;
- display: block;
- width: 6px;
- height: 10px;
- border: solid @color;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- .checkbox-check-left(@font-size);
- top: 0;
-}
-
-.checkbox-check-left(12px) {
- left: 3px;
-}
-
-.checkbox-check-left(14px) {
- left: 4px;
-}
-
-.font-padding(12px) {
- padding-left: 6px;
-}
-
-.font-padding(14px) {
- padding-left: 10px;
-}
+@import "../default/theme.less";
+
+@checkbox-border-size: 1px;
+
+.plx-checkbox-container {
+ font-size: 0;
+ position: relative;
+}
+
+.plx-checkbox {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+ & + .checkbox-substitute {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ height: @checkbox-size;
+ width: @checkbox-size;
+ border: @checkbox-border-size solid @border-color-base;
+ border-radius: @radius-sm;
+ vertical-align: middle;
+ }
+ & + .checkbox-substitute + span {
+ font-weight: normal;
+ font-size: @font-size;
+ cursor: pointer;
+ vertical-align: middle;
+ .font-padding(@font-size);
+ }
+ &:hover + .checkbox-substitute {
+ border-color: @primary-color;
+ outline: none;
+ background-image: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+ &:checked + .checkbox-substitute {
+ border-color: @primary-color;
+ background-color: @primary-color;
+ &::after {
+ .checkbox-check(@component-bg);
+ }
+ }
+ &.portion + .checkbox-substitute {
+ background-color: @primary-color;
+ border-color: @primary-color;
+ opacity: 0.5;
+ &::after {
+ .checkbox-check(@component-bg);
+ }
+ }
+ &:disabled + .checkbox-substitute,
+ &[disabled] + .checkbox-substitute {
+ border-color: @border-color-base;
+ background-color: @input-bg-color-disabled;
+ cursor: not-allowed;
+ }
+ &:disabled + .checkbox-substitute + span,
+ &[disabled] + .checkbox-substitute + span {
+ cursor: not-allowed;
+ }
+ &.portion[disabled] + .checkbox-substitute {
+ background-color: @border-color-base;
+ border-color: @border-color-base;
+ &::after {
+ .checkbox-check(@fonticon-color);
+ }
+ }
+ &:checked[disabled] + .checkbox-substitute {
+ border-color: @border-color-base;
+ background-color: @border-color-base;
+ }
+}
+
+.checkbox-check(@color) {
+ content: '';
+ position: absolute;
+ display: block;
+ width: 6px;
+ height: 10px;
+ border: solid @color;
+ border-width: 0 2px 2px 0;
+ transform: rotate(45deg);
+ .checkbox-check-left(@font-size);
+ top: 0;
+}
+
+.checkbox-check-left(12px) {
+ left: 3px;
+}
+
+.checkbox-check-left(14px) {
+ left: 4px;
+}
+
+.font-padding(12px) {
+ padding-left: 6px;
+}
+
+.font-padding(14px) {
+ padding-left: 10px;
+}
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-form.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-form.less
index 600898a3..600898a3 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-form.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-form.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-input.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-input.less
index a83dd19c..12f68703 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-input.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-input.less
@@ -1,29 +1,29 @@
-@import "../default/theme.less";
-
-.plx-input {
- font-size: @font-size;
- height: @input-height;
- padding-left: 10px;
- padding-right: 10px;
- outline: 0;
- border: 1px solid @border-color-base;
- border-radius: @radius;
- vertical-align: middle;
- &:focus {
- border: 1px solid @primary-color;
- }
- &:disabled,
- &[disabled] {
- cursor: not-allowed;
- background-color: @input-bg-color-disabled;
- }
-}
-
-.plx-input-sm {
- height: @input-height-sm;
-}
-
-.plx-input-right-no-radius {
- border-bottom-right-radius: 0;
- border-top-right-radius: 0;
+@import "../default/theme.less";
+
+.plx-input {
+ font-size: @font-size;
+ height: @input-height;
+ padding-left: 10px;
+ padding-right: 10px;
+ outline: 0;
+ border: 1px solid @border-color-base;
+ border-radius: @radius;
+ vertical-align: middle;
+ &:focus {
+ border: 1px solid @primary-color;
+ }
+ &:disabled,
+ &[disabled] {
+ cursor: not-allowed;
+ background-color: @input-bg-color-disabled;
+ }
+}
+
+.plx-input-sm {
+ height: @input-height-sm;
+}
+
+.plx-input-right-no-radius {
+ border-bottom-right-radius: 0;
+ border-top-right-radius: 0;
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-radio.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-radio.less
index 23ddd177..c351af96 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-radio.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-radio.less
@@ -1,159 +1,159 @@
-@import "../default/theme.less";
-
-.plx-radio-container {
- font-size: 0;
- position: relative;
-}
-
-.plx-radio {
- position: absolute;
- z-index: -1;
- opacity: 0;
- & + .radio-substitute {
- position: relative;
- display: inline-block;
- cursor: pointer;
- height: @checkbox-size;
- width: @checkbox-size;
- border: 1px solid @border-color-base;
- border-radius: @checkbox-size;
- vertical-align: middle;
- }
- &:hover + .radio-substitute,
- &:focus + .radio-substitute {
- border-color: @primary-color;
- outline: none;
- background-image: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
- &:checked + .radio-substitute {
- .radio-boder-checked-width(@font-size);
- }
- &:disabled + .radio-substitute,
- &[disabled] + .radio-substitute {
- border-color: @border-color-base;
- background-color: @input-bg-color-disabled;
- cursor: not-allowed;
- }
- &:checked [disabled] + .radio-substitute {
- border-color: @border-color-split;
- background-color: @border-color-split;
- cursor: not-allowed;
- }
- & + .radio-substitute + span {
- font-weight: normal;
- font-size: @font-size;
- cursor: pointer;
- vertical-align: middle;
- .font-padding(@font-size);
- }
- &:disabled + .radio-substitute + span,
- &[disabled] + .radio-substitute + span {
- cursor: not-allowed;
- }
-}
-
-.radio-boder-checked-width(12px) {
- border: 4px solid @primary-color;
-}
-
-.radio-boder-checked-width(14px) {
- border: 5px solid @primary-color;
-}
-
-.font-padding(12px) {
- padding-left: 6px;
-}
-
-.font-padding(14px) {
- padding-left: 10px;
-}
-
-/*radio-group*/
-
-@radio-group-border-height: 1px;
-@padding-normal: 0px 16px;
-@padding-sm: 0px 14px;
-@min-width-normal: 80px;
-@min-width-sm: 60px;
-
-.border-min-width(@min-width, 14px) {
- min-width: @min-width + 8px;
-}
-
-.border-min-width(@min-width, 12px) {
- min-width: @min-width;
-}
-
-.btn.dropdown-toggle,
-.btn-group .btn.dropdown-toggle,
-.btn:hover,
-.btn:disabled,
-.btn[disabled],
-.btn:focus,
-.btn:active,
-.btn.active {
- outline: none !important;
- background-image: none !important;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
-}
-
-.plx-radio-group {
- cursor: pointer;
- font-size: @font-size;
- height: @btn-height;
- background-color: @common-color;
- border: @radio-group-border-height solid @border-color-base;
- color: @text-color;
- border-radius: @radius;
- padding: @padding-normal;
- .border-min-width(@min-width-normal, @font-size);
- transition: none;
- &:hover,
- &:focus,
- &:active {
- outline: none;
- background-image: none;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
-
- &:hover,
- &:focus {
- color: @btn-common-color-text-hover;
- border-color: @btn-common-color-border-hover;
- background-color: @common-color-hover;
- }
- &:active {
- color: @btn-common-color-text-click;
- border-color: @btn-common-color-border-click;
- background-color: @common-color-click;
- }
- &.active {
- background-color: @primary-color;
- color: @scene-textcolor;
- border-color: @primary-color;
- }
- & > span {
- line-height: @btn-height - @radio-group-border-height * 2;
- }
-}
-
-.plx-radio-group-sm {
- height: @btn-height-sm;
- padding: @padding-sm;
- .border-min-width(@min-width-sm, @font-size);
- & > span {
- line-height: @btn-height-sm - @radio-group-border-height * 2;
- }
-}
+@import "../default/theme.less";
+
+.plx-radio-container {
+ font-size: 0;
+ position: relative;
+}
+
+.plx-radio {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+ & + .radio-substitute {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ height: @checkbox-size;
+ width: @checkbox-size;
+ border: 1px solid @border-color-base;
+ border-radius: @checkbox-size;
+ vertical-align: middle;
+ }
+ &:hover + .radio-substitute,
+ &:focus + .radio-substitute {
+ border-color: @primary-color;
+ outline: none;
+ background-image: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+ &:checked + .radio-substitute {
+ .radio-boder-checked-width(@font-size);
+ }
+ &:disabled + .radio-substitute,
+ &[disabled] + .radio-substitute {
+ border-color: @border-color-base;
+ background-color: @input-bg-color-disabled;
+ cursor: not-allowed;
+ }
+ &:checked [disabled] + .radio-substitute {
+ border-color: @border-color-split;
+ background-color: @border-color-split;
+ cursor: not-allowed;
+ }
+ & + .radio-substitute + span {
+ font-weight: normal;
+ font-size: @font-size;
+ cursor: pointer;
+ vertical-align: middle;
+ .font-padding(@font-size);
+ }
+ &:disabled + .radio-substitute + span,
+ &[disabled] + .radio-substitute + span {
+ cursor: not-allowed;
+ }
+}
+
+.radio-boder-checked-width(12px) {
+ border: 4px solid @primary-color;
+}
+
+.radio-boder-checked-width(14px) {
+ border: 5px solid @primary-color;
+}
+
+.font-padding(12px) {
+ padding-left: 6px;
+}
+
+.font-padding(14px) {
+ padding-left: 10px;
+}
+
+/*radio-group*/
+
+@radio-group-border-height: 1px;
+@padding-normal: 0px 16px;
+@padding-sm: 0px 14px;
+@min-width-normal: 80px;
+@min-width-sm: 60px;
+
+.border-min-width(@min-width, 14px) {
+ min-width: @min-width + 8px;
+}
+
+.border-min-width(@min-width, 12px) {
+ min-width: @min-width;
+}
+
+.btn.dropdown-toggle,
+.btn-group .btn.dropdown-toggle,
+.btn:hover,
+.btn:disabled,
+.btn[disabled],
+.btn:focus,
+.btn:active,
+.btn.active {
+ outline: none !important;
+ background-image: none !important;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+}
+
+.plx-radio-group {
+ cursor: pointer;
+ font-size: @font-size;
+ height: @btn-height;
+ background-color: @common-color;
+ border: @radio-group-border-height solid @border-color-base;
+ color: @text-color;
+ border-radius: @radius;
+ padding: @padding-normal;
+ .border-min-width(@min-width-normal, @font-size);
+ transition: none;
+ &:hover,
+ &:focus,
+ &:active {
+ outline: none;
+ background-image: none;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+
+ &:hover,
+ &:focus {
+ color: @btn-common-color-text-hover;
+ border-color: @btn-common-color-border-hover;
+ background-color: @common-color-hover;
+ }
+ &:active {
+ color: @btn-common-color-text-click;
+ border-color: @btn-common-color-border-click;
+ background-color: @common-color-click;
+ }
+ &.active {
+ background-color: @primary-color;
+ color: @scene-textcolor;
+ border-color: @primary-color;
+ }
+ & > span {
+ line-height: @btn-height - @radio-group-border-height * 2;
+ }
+}
+
+.plx-radio-group-sm {
+ height: @btn-height-sm;
+ padding: @padding-sm;
+ .border-min-width(@min-width-sm, @font-size);
+ & > span {
+ line-height: @btn-height-sm - @radio-group-border-height * 2;
+ }
+}
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-step.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-step.less
index c9b047d0..c9b047d0 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-step.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-step.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-text-input.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-text-input.less
index fe1c7d57..fe1c7d57 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-text-input.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/common/plx-text-input.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/default/NIV-theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/NIV-theme.less
index 607c7174..607c7174 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/default/NIV-theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/NIV-theme.less
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.css
index 8c77bd96..8c77bd96 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.css
diff --git a/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.less
index b19e0907..b19e0907 100644
--- a/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/assets/components/themes/default/theme.less
diff --git a/sdc-workflow-designer-ui/src/app/components/container/container.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.css
index 5ba672cc..5ba672cc 100644
--- a/sdc-workflow-designer-ui/src/app/components/container/container.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/container/container.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.html
index 40cdf7fa..40cdf7fa 100644
--- a/sdc-workflow-designer-ui/src/app/components/container/container.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/container/container.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
index 5f317cb8..5f317cb8 100644
--- a/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.css
index 35d21fce..35d21fce 100644
--- a/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.html
index eb59b3c4..eb59b3c4 100644
--- a/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.ts
index 7f6ffbe2..7f6ffbe2 100644
--- a/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/editable-property/editable-property.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.css
index 06f3c090..06f3c090 100644
--- a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.html
index a23e25d4..a23e25d4 100644
--- a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.spec.ts
index b4644d4d..b4644d4d 100644
--- a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.ts
index 35520683..35520683 100644
--- a/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/global-notice/global-notice.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css
index ac50221e..ac50221e 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html
index 9537bfd7..9537bfd7 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts
index 6ac02fde..6ac02fde 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts
index 1c064f2c..1c064f2c 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html
index 9550ed33..9550ed33 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts
index e4d43d8c..e4d43d8c 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css
index f403890e..f403890e 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html
index f8d745c1..f8d745c1 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts
index 8a84c476..8a84c476 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html
index a858b0fe..a858b0fe 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts
index 46ac3f90..46ac3f90 100644
--- a/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/node/node.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.css
index f1fead94..f1fead94 100644
--- a/sdc-workflow-designer-ui/src/app/components/node/node.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/node/node.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.html
index f0ade497..f0ade497 100644
--- a/sdc-workflow-designer-ui/src/app/components/node/node.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/node/node.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.ts
index 5482758e..5482758e 100644
--- a/sdc-workflow-designer-ui/src/app/components/node/node.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/node/node.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.css
index 4002997c..4002997c 100644
--- a/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.html
index 1b91b426..1b91b426 100644
--- a/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.ts
index c208c1de..c208c1de 100644
--- a/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/parameter/parameter.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.html
index 2384192e..2384192e 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.ts
index ed11ba2d..ed11ba2d 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/error-event/error-event.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.html
index 1c1e766b..1c1e766b 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.ts
index d5f201f6..d5f201f6 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/intermediate-catch-event/intermediate-catch-event.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.html
index a7cef5a3..a7cef5a3 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.ts
index 7fa9675f..7fa9675f 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/node-template/node-template.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/properties.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.css
index 5189f551..5189f551 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/properties.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/property/properties.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.html
index a6d25e92..a6d25e92 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/properties.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
index 1b381c5d..1b381c5d 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.css
index e69de29b..e69de29b 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.html
index 9d17374b..9d17374b 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.ts
index 692661a7..692661a7 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/node-parameters.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.css
index e69de29b..e69de29b 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.html
index bc14295d..bc14295d 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.ts
index 93c3b72e..93c3b72e 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/node-parameters/parameter-tree/parameter-tree.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.css
index a2dc6ff6..a2dc6ff6 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.html
index 1d3f87a8..1d3f87a8 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.spec.ts
index f0154f2b..f0154f2b 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.ts
index d24486d1..d24486d1 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-parameters/rest-parameters.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.html
index d3f41921..d3f41921 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts
index 3def276f..3def276f 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.html
index 26183210..26183210 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.ts
index a0f5fd93..a0f5fd93 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/script-task/script-task.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.css
index 670c050a..670c050a 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.html
index d72914fd..d72914fd 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.spec.ts
index 498adf66..498adf66 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.ts
index 48a4074f..48a4074f 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/service-task/service-task.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.css
index ac88051d..ac88051d 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.html
index f48a725b..f48a725b 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts
index 0f721242..0f721242 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.css
index a2d481d4..a2d481d4 100644
--- a/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.html
index e9d4d22f..e9d4d22f 100644
--- a/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.ts
index 55d051f2..55d051f2 100644
--- a/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/sequence-flow/sequence-flow.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.html
index 790273d7..25ef2258 100644
--- a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.html
@@ -1,28 +1,28 @@
-<!--
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
- -->
-<accordion-group *ngFor="let category of nodeCategories" [isOpen]="category.collapse" #group>
- <div accordion-heading class="toolbar-head">
- <i class="fa fold-icon" [ngClass]="{'fa-chevron-down': group?.isOpen, 'fa-chevron-right': !group?.isOpen}"></i>
- <i class="fa fa-th-list"></i>
- <span>{{ getDisplayName(category) }}</span>
- </div>
- <div *ngFor="let nodeType of category.nodes">
- <div *ngIf="(nodeType.type === nodeTypeEnum[nodeTypeEnum.restTask] && supportRest) || (nodeType.type !== nodeTypeEnum[nodeTypeEnum.restTask])"
- [attr.name]="getDisplayName(nodeType)" [attr.nodeTypeId]="nodeType.id" [attr.nodeType]="nodeType.type"
- class="item ui-draggable">
- <img [src]="getImageUrl(nodeType)"/>
- <span>{{ getDisplayName(nodeType) }}</span>
- </div>
- </div>
+<!--
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+ -->
+<accordion-group *ngFor="let category of nodeCategories" [isOpen]="category.collapse" #group>
+ <div accordion-heading class="toolbar-head">
+ <i class="fa fold-icon" [ngClass]="{'fa-chevron-down': group?.isOpen, 'fa-chevron-right': !group?.isOpen}"></i>
+ <i class="fa fa-th-list"></i>
+ <span>{{ getDisplayName(category) }}</span>
+ </div>
+ <div *ngFor="let nodeType of category.nodes">
+ <div *ngIf="(nodeType.type === nodeTypeEnum[nodeTypeEnum.restTask] && supportRest) || (nodeType.type !== nodeTypeEnum[nodeTypeEnum.restTask])"
+ [attr.name]="getDisplayName(nodeType)" [attr.nodeTypeId]="nodeType.id" [attr.nodeType]="nodeType.type"
+ class="item ui-draggable">
+ <img [src]="getImageUrl(nodeType)"/>
+ <span>{{ getDisplayName(nodeType) }}</span>
+ </div>
+ </div>
</accordion-group> \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.ts
index 3e82687e..feb94579 100644
--- a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar-node/toolbar-node.component.ts
@@ -1,128 +1,128 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-import { Component, OnInit } from "@angular/core";
-import { TranslateService } from "@ngx-translate/core";
-import { NodeTypeService } from "../../../services/node-type.service";
-import { DisplayInfoService } from "../../../services/display-info.service";
-import { NodeDataType } from "../../../model/node-data-type/node-data-type";
-import { NodeType } from "../../../model/workflow/node-type.enum";
-import { JsPlumbService } from "../../../services/jsplumb.service";
-import { SettingService } from "../../../services/setting.service";
-import { WorkflowUtil } from "../../../util/workflow-util";
-
-@Component({
- selector: 'wfm-toolbar-node',
- templateUrl: 'toolbar-node.component.html',
- styleUrls: ['../toolbar.component.css']
-})
-export class ToolbarNodeComponent implements OnInit {
- public nodeCategories: any[] = [];
- public nodeTypeEnum = NodeType;
- public supportRest: boolean;
-
- private needInitButton = false;
-
- constructor(private nodeTypeService: NodeTypeService,
- private displayInfoService: DisplayInfoService,
- private jsPlumbService: JsPlumbService,
- private settingService: SettingService,
- public translate: TranslateService) {
-
- }
-
- public ngOnInit(): void {
- this.settingService.getSetting().subscribe(setting => {
- this.initSetting(setting);
- this.displayInfoService.getDisplayInfo().subscribe(resp => {
- this.initNodeCategories(resp);
- this.needInitButton = true;
- });
- });
- }
-
- public ngAfterViewChecked(): void {
- if (this.needInitButton) {
- console.log('initJsPlumb');
- this.initJsPlumb();
- this.needInitButton = false;
- }
- }
-
- private initSetting(setting: any): void {
- this.supportRest = setting.supportRestNode;
- }
-
- private initJsPlumb(): void {
- this.jsPlumbService.buttonDraggable();
- this.jsPlumbService.buttonDroppable();
- }
-
- private initNodeCategories(displayInfo: any): void {
- const defaultCategory = this.insertDefaultCategory();
-
- const categoryData = displayInfo['categoryData'] || {};
- for (let key in categoryData) {
- const group = {
- id: key,
- displayName: categoryData[key].displayName,
- collapse: categoryData[key].collapse || false,
- nodes: []
- };
- this.nodeCategories.push(group);
- }
-
- const defaultNodes = displayInfo['nodes'] || {};
- for (let nodeId in defaultNodes) {
- const nodeType = this.nodeTypeService.getNodeDataTypeById(nodeId);
- const node = defaultNodes[nodeId];
- if (node && node.category) {
- const nodeCategory = this.nodeCategories.find(category => category.id === node.category);
- if (nodeCategory) {
- nodeCategory.nodes.push(nodeType);
- } else {
- defaultCategory.nodes.push(nodeType);
- }
- } else {
- defaultCategory.nodes.push(nodeType);
- }
- }
- }
-
- private insertDefaultCategory(): any {
- this.nodeCategories = [];
- const defaultCategory = {
- id: 'default',
- displayName: {
- zh_CN: '任务',
- en_US: 'Task'
- },
- collapse: true,
- nodes: []
- };
- this.nodeCategories.push(defaultCategory);
-
- return defaultCategory;
- }
-
- public getDisplayName(data: any): string {
- let language = 'zh_CN';
- if (this.translate.currentLang.indexOf('en') > -1) {
- language = 'en_US';
- }
- return data.displayName ? data.displayName[language] : data.id;
- }
-
- public getImageUrl(nodeType: NodeDataType): string {
- const name = nodeType && nodeType.icon ? nodeType.icon.name : '';
- return WorkflowUtil.GetIconFullPath(name);
- }
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+import { Component, OnInit } from "@angular/core";
+import { TranslateService } from "@ngx-translate/core";
+import { NodeTypeService } from "../../../services/node-type.service";
+import { DisplayInfoService } from "../../../services/display-info.service";
+import { NodeDataType } from "../../../model/node-data-type/node-data-type";
+import { NodeType } from "../../../model/workflow/node-type.enum";
+import { JsPlumbService } from "../../../services/jsplumb.service";
+import { SettingService } from "../../../services/setting.service";
+import { WorkflowUtil } from "../../../util/workflow-util";
+
+@Component({
+ selector: 'wfm-toolbar-node',
+ templateUrl: 'toolbar-node.component.html',
+ styleUrls: ['../toolbar.component.css']
+})
+export class ToolbarNodeComponent implements OnInit {
+ public nodeCategories: any[] = [];
+ public nodeTypeEnum = NodeType;
+ public supportRest: boolean;
+
+ private needInitButton = false;
+
+ constructor(private nodeTypeService: NodeTypeService,
+ private displayInfoService: DisplayInfoService,
+ private jsPlumbService: JsPlumbService,
+ private settingService: SettingService,
+ public translate: TranslateService) {
+
+ }
+
+ public ngOnInit(): void {
+ this.settingService.getSetting().subscribe(setting => {
+ this.initSetting(setting);
+ this.displayInfoService.getDisplayInfo().subscribe(resp => {
+ this.initNodeCategories(resp);
+ this.needInitButton = true;
+ });
+ });
+ }
+
+ public ngAfterViewChecked(): void {
+ if (this.needInitButton) {
+ console.log('initJsPlumb');
+ this.initJsPlumb();
+ this.needInitButton = false;
+ }
+ }
+
+ private initSetting(setting: any): void {
+ this.supportRest = setting.supportRestNode;
+ }
+
+ private initJsPlumb(): void {
+ this.jsPlumbService.buttonDraggable();
+ this.jsPlumbService.buttonDroppable();
+ }
+
+ private initNodeCategories(displayInfo: any): void {
+ const defaultCategory = this.insertDefaultCategory();
+
+ const categoryData = displayInfo['categoryData'] || {};
+ for (let key in categoryData) {
+ const group = {
+ id: key,
+ displayName: categoryData[key].displayName,
+ collapse: categoryData[key].collapse || false,
+ nodes: []
+ };
+ this.nodeCategories.push(group);
+ }
+
+ const defaultNodes = displayInfo['nodes'] || {};
+ for (let nodeId in defaultNodes) {
+ const nodeType = this.nodeTypeService.getNodeDataTypeById(nodeId);
+ const node = defaultNodes[nodeId];
+ if (node && node.category) {
+ const nodeCategory = this.nodeCategories.find(category => category.id === node.category);
+ if (nodeCategory) {
+ nodeCategory.nodes.push(nodeType);
+ } else {
+ defaultCategory.nodes.push(nodeType);
+ }
+ } else {
+ defaultCategory.nodes.push(nodeType);
+ }
+ }
+ }
+
+ private insertDefaultCategory(): any {
+ this.nodeCategories = [];
+ const defaultCategory = {
+ id: 'default',
+ displayName: {
+ zh_CN: '任务',
+ en_US: 'Task'
+ },
+ collapse: true,
+ nodes: []
+ };
+ this.nodeCategories.push(defaultCategory);
+
+ return defaultCategory;
+ }
+
+ public getDisplayName(data: any): string {
+ let language = 'zh_CN';
+ if (this.translate.currentLang.indexOf('en') > -1) {
+ language = 'en_US';
+ }
+ return data.displayName ? data.displayName[language] : data.id;
+ }
+
+ public getImageUrl(nodeType: NodeDataType): string {
+ const name = nodeType && nodeType.icon ? nodeType.icon.name : '';
+ return WorkflowUtil.GetIconFullPath(name);
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.css
index 6b0d5436..6b0d5436 100644
--- a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.css
diff --git a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.html
index b8e0ae7a..b8e0ae7a 100644
--- a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.html
diff --git a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.ts
index bfc45094..bfc45094 100644
--- a/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/toolbar/toolbar.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/directive/resizable/resizable.directive.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/directive/resizable/resizable.directive.ts
index 9f291bc7..9f291bc7 100644
--- a/sdc-workflow-designer-ui/src/app/directive/resizable/resizable.directive.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/directive/resizable/resizable.directive.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/model.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/model.ts
index bd3c2c64..bd3c2c64 100644
--- a/sdc-workflow-designer-ui/src/app/model/model.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/model.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts
index df624ebc..2aee4ac2 100644
--- a/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts
@@ -1,16 +1,16 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-
-export class DisplayName {
- public zh_CN: string;
- public en_US: string;
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+
+export class DisplayName {
+ public zh_CN: string;
+ public en_US: string;
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts
index 1bb47298..cba2ca15 100644
--- a/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts
@@ -1,17 +1,17 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-
-export class Icon {
- public name: string;
- public width: number;
- public height: number;
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+
+export class Icon {
+ public name: string;
+ public width: number;
+ public height: number;
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts
index 64dc0e96..2e938022 100644
--- a/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts
@@ -1,24 +1,24 @@
-/**
- * Copyright (c) 2018 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-import { DisplayName } from "./display-name";
-import { Icon } from "./icon";
-import { SwaggerSchema } from "../workflow/swagger/swagger-schema";
-
-export interface NodeDataType {
- id: string;
- displayName?: DisplayName;
- description?: DisplayName;
- type: string;
- icon: Icon;
- content: any;
- definitions: any;
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+import { DisplayName } from "./display-name";
+import { Icon } from "./icon";
+import { SwaggerSchema } from "../workflow/swagger/swagger-schema";
+
+export interface NodeDataType {
+ id: string;
+ displayName?: DisplayName;
+ description?: DisplayName;
+ type: string;
+ icon: Icon;
+ content: any;
+ definitions: any;
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts
index 417f79cc..417f79cc 100644
--- a/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/notice.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice.ts
index 7f49aafb..7f49aafb 100644
--- a/sdc-workflow-designer-ui/src/app/model/notice.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/plan-model.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-model.ts
index afe05f72..afe05f72 100644
--- a/sdc-workflow-designer-ui/src/app/model/plan-model.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-model.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts
index aa3f81b5..aa3f81b5 100644
--- a/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/rest-config.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/rest-config.ts
index cace1c48..cace1c48 100644
--- a/sdc-workflow-designer-ui/src/app/model/rest-config.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/rest-config.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts
index 41e30fd1..41e30fd1 100644
--- a/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/swagger.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger.ts
index 18867086..18867086 100644
--- a/sdc-workflow-designer-ui/src/app/model/swagger.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts
index 07ebc42e..07ebc42e 100644
--- a/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/value-object.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-object.ts
index 0a079a8d..0a079a8d 100644
--- a/sdc-workflow-designer-ui/src/app/model/value-object.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-object.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts
index 720185a5..720185a5 100644
--- a/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts
index d3056968..d3056968 100644
--- a/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts
index e3fbcad3..e3fbcad3 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts
index 96ba0e7d..96ba0e7d 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts
index 6db7bcfd..6db7bcfd 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts
index 653e627f..653e627f 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts
index c02816e8..c02816e8 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts
index 7a904005..7a904005 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/position.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts
index 8ec4ed56..8ec4ed56 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/position.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts
index a7e4eeea..a7e4eeea 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
index 1235a479..1235a479 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts
index 75d86f5a..75d86f5a 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts
index 53c09a31..53c09a31 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts
index c0ce6412..c0ce6412 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts
index a8f6444c..a8f6444c 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts
index e000ed25..e000ed25 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts
index 82103458..82103458 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts
index f676b83d..f676b83d 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts
index f8df2536..f8df2536 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts
index d8eaaa76..d8eaaa76 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts
index 54634901..54634901 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts
index dc695da6..dc695da6 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts
index 0661d034..0661d034 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts
index 3c28803b..3c28803b 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts
index a87d4bf3..a87d4bf3 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts
index 5896905d..5896905d 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts
index c152830c..c152830c 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts
index 101ef46c..101ef46c 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts
index 7767b640..7767b640 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts
index e41fc93a..e41fc93a 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts
index f278d188..f278d188 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/css/bootstrap4.0.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/bootstrap4.0.css
index d52c5848..d52c5848 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/css/bootstrap4.0.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/bootstrap4.0.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/css/font-awesome.min.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/font-awesome.min.css
index 248ea7ab..248ea7ab 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/css/font-awesome.min.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/font-awesome.min.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/css/iconfont.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/iconfont.css
index 1b4dfb98..1b4dfb98 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/css/iconfont.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/iconfont.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/css/ngict-component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/ngict-component.css
index 98ad2e36..98ad2e36 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/css/ngict-component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/ngict-component.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/css/prism.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/prism.css
index 0100f8dd..0100f8dd 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/css/prism.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/prism.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/css/style.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/style.css
index 9cb8e913..9cb8e913 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/css/style.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/css/style.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/FontAwesome.otf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/FontAwesome.otf
index 401ec0f3..401ec0f3 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/FontAwesome.otf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/FontAwesome.otf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.eot
index 8ddba569..8ddba569 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.svg
index 94a04d7c..94a04d7c 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.ttf
index 5cc40aac..5cc40aac 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.woff
index 0564e188..0564e188 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteIctIcons.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.eot
index 2b6211f8..2b6211f8 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.svg
index 77eff7d7..77eff7d7 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.ttf
index f52ce211..f52ce211 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.woff
index f120a67e..f120a67e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/ZteTableIcons.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.eot
index e9f60ca9..e9f60ca9 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.svg
index 855c845e..855c845e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.ttf
index 35acda2f..35acda2f 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff
index 400014a4..400014a4 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff2 b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff2
index 4d13fc60..4d13fc60 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff2
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/fontawesome-webfont.woff2
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.eot
index e45edf09..e45edf09 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.svg
index f5e45b4d..f5e45b4d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.ttf
index b8bc410e..b8bc410e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.woff
index 7cbe02f9..7cbe02f9 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/iconfont.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.eot b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.eot
index 5611721d..5611721d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.eot
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.eot
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.svg
index 98d20729..98d20729 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.ttf b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.ttf
index 2d56c73c..2d56c73c 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.ttf
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.ttf
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.woff b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.woff
index bf943465..bf943465 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.woff
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/fonts/plx-icons.woff
Binary files differ
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop.svg
index 58bca254..58bca254 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop_hover.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop_hover.svg
index f35c0fb0..f35c0fb0 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop_hover.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/backtop/backtop_hover.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-checked-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-checked-disabled.svg
index 041c368b..041c368b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-checked-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-checked-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-disabled.svg
index 03bfad63..03bfad63 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-hover.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-hover.svg
index 4cac1803..4cac1803 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-hover.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-hover.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-init.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-init.svg
index d518db1b..d518db1b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-init.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/checkbox-init.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked-disabled.svg
index ff139644..ff139644 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked.svg
index 29dfaf84..29dfaf84 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-checked.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-disabled.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-disabled.svg
index 6e1a1b12..6e1a1b12 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-disabled.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-disabled.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-hover.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-hover.svg
index c050f69d..c050f69d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-hover.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-hover.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-init.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-init.svg
index 7e2977c2..7e2977c2 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-init.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/radio-init.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/test/checkbox-checked.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/test/checkbox-checked.svg
index 22b9535c..22b9535c 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/test/checkbox-checked.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/images/checkbox-radio/test/checkbox-checked.svg
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/NIV-theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/NIV-theme.less
index 2490a0d9..2490a0d9 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/NIV-theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/NIV-theme.less
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.css
index 4bbbcd55..4bbbcd55 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.less
index a145f3fa..a145f3fa 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/NIV/theme.less
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/common.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/common.less
index c57a0a13..693a8424 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/common.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/common.less
@@ -1,43 +1,43 @@
-///////
-
-.plx-breadcrumb {
- margin: 0;
- padding: 5px 10px;
- font-size: 12px;
- li {
- display: inline-block;
- }
- a {
- color: @light-text-color;
- text-decoration: none;
- &:hover {
- color: @primary-color;
- }
- }
- .plx-breadcrumb-separator {
- color: @unselected-text-color;
- padding: 0 5px;
- vertical-align: 1px;
- }
- .plx-breadcrumb-collapse {
- padding-left: 6px;
- padding-right: 6px;
- cursor: pointer;
- circle {
- fill: @fonticon-color;
- }
- &:hover circle {
- fill: @primary-color;
- }
- }
- .plx-breadcrumb-active {
- vertical-align: 1px;
- a {
- font-size: 20px;
- color: @title-text-color;
- cursor: text;
- }
- }
+///////
+
+.plx-breadcrumb {
+ margin: 0;
+ padding: 5px 10px;
+ font-size: 12px;
+ li {
+ display: inline-block;
+ }
+ a {
+ color: @light-text-color;
+ text-decoration: none;
+ &:hover {
+ color: @primary-color;
+ }
+ }
+ .plx-breadcrumb-separator {
+ color: @unselected-text-color;
+ padding: 0 5px;
+ vertical-align: 1px;
+ }
+ .plx-breadcrumb-collapse {
+ padding-left: 6px;
+ padding-right: 6px;
+ cursor: pointer;
+ circle {
+ fill: @fonticon-color;
+ }
+ &:hover circle {
+ fill: @primary-color;
+ }
+ }
+ .plx-breadcrumb-active {
+ vertical-align: 1px;
+ a {
+ font-size: 20px;
+ color: @title-text-color;
+ cursor: text;
+ }
+ }
}
///////
///////
@@ -638,57 +638,57 @@
-
-///////
-
-.icon {
- color: @fonticon-color;
- vertical-align: text-bottom;
- margin-left:5px;
- font-size: 20px;
-}
-
-///////
-
-
-.plx-input-password {
- display: inline-block;
- line-height: @input-height - 2px;
- width: 40px;
- text-align: center;
- vertical-align: middle;
- margin-top: -2px;
- background-color: @common-color;
- border-top: 1px solid @border-color-base;
- border-right: 1px solid @border-color-base;
- border-bottom: 1px solid @border-color-base;
- border-bottom-right-radius: @radius;
- border-top-right-radius: @radius;
- cursor: pointer;
- &:focus,
- &:hover {
- background-color: @common-color-hover;
- }
- &:active {
- background-color: @common-color-click;
- }
- &.ict-eye-closed, &.ict-eye {
- color: @fonticon-color;
- }
-}
-
-
-.plx-input-password-disabled {
- cursor: not-allowed;
- &:focus,
- &:hover,
- &:active{
- background-color: @common-color;
- }
-}
-
-.plx-input-password-sm {
- line-height: @input-height-sm - 2px;
+
+///////
+
+.icon {
+ color: @fonticon-color;
+ vertical-align: text-bottom;
+ margin-left:5px;
+ font-size: 20px;
+}
+
+///////
+
+
+.plx-input-password {
+ display: inline-block;
+ line-height: @input-height - 2px;
+ width: 40px;
+ text-align: center;
+ vertical-align: middle;
+ margin-top: -2px;
+ background-color: @common-color;
+ border-top: 1px solid @border-color-base;
+ border-right: 1px solid @border-color-base;
+ border-bottom: 1px solid @border-color-base;
+ border-bottom-right-radius: @radius;
+ border-top-right-radius: @radius;
+ cursor: pointer;
+ &:focus,
+ &:hover {
+ background-color: @common-color-hover;
+ }
+ &:active {
+ background-color: @common-color-click;
+ }
+ &.ict-eye-closed, &.ict-eye {
+ color: @fonticon-color;
+ }
+}
+
+
+.plx-input-password-disabled {
+ cursor: not-allowed;
+ &:focus,
+ &:hover,
+ &:active{
+ background-color: @common-color;
+ }
+}
+
+.plx-input-password-sm {
+ line-height: @input-height-sm - 2px;
}
///////
@@ -951,439 +951,439 @@
bottom:16px;
right:25px;
}
-///////
-
-plx-modal-window {
- .modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- display: none;
- outline: 0;
- z-index: 10000;
- }
- .modal-dialog {
- position: relative;
- max-width: 600px;
- margin: 30px auto;
- &.modal-sm {
- max-width: 600px;
- }
- &.modal-lg {
- max-width: 1000px;
- }
- }
- .modal-content {
- position: relative;
- display: flex;
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- -ms-flex-direction: column;
- flex-direction: column;
- background-color: @component-bg;
- background-clip: padding-box;
- border-radius: @radius;
- box-shadow: 0 5px 15px @shadow-color;
- outline: 0;
- .modal-header {
- border-bottom: 0;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- padding: 15px;
- }
- .modal-body {
- .form-group:last-child, form:last-child {
- margin-bottom: 0;
- }
- }
- .modal-footer {
- display: block;
- border-top: 0;
- margin-top: 0;
- padding: 0 15px 15px 15px;
- }
- .modal-title {
- font-size: @font-size-title-level1;
- margin-bottom: 0;
- line-height: 1.5;
- }
- .modal-btn {
- text-align: center;
- font-size: 0;
- }
- }
- .close {
- color: @fonticon-color;
- font-size: @font-size-title-level2;
- text-shadow: none;
- width: 24px;
- height: 24px;
- background: @scene-textcolor;
- border-radius: 20px;
- padding-bottom: 2px;
- outline: none;
- &:hover {
- color: @fonticon-color;
- background: @fonticon-bg-color-hover;
- }
- }
- .alert-modal {
- &.row {
- margin-left: 100px;
- margin-bottom: 30px;
- text-align: left;
- .tip-img {
- display: inline-block;
- width: 52px;
- height: 52px;
- border-radius: 50px;
- font-size: 45px;
- text-align: center;
- line-height: 1;
- margin-top: -5px;
- margin-right: 15px;
- &::before {
- content: "!";
- }
- }
- .tip-info {
- width: 300px;
- .alert-title {
- font-size: @font-size-title-level2;
- color: @title-text-color;
- }
- .alert-result {
- margin-top: 5px;
- font-size: @font-size;
- color: @unselected-text-color;
- }
- }
- .warning {
- border: 3px solid @warning-color;
- color: @warning-color;
- }
- .error {
- border: 3px solid @error-color;
- color: @error-color;
- }
- }
- }
-}
-///////
-
-
-@popover-arrow-border-width: 6px;
-@popover-arrow-border-width-before: 7px;
-@popover-arrow-border-height: @popover-arrow-border-width-before - @popover-arrow-border-width;
-@popover-arrow-away: 10px;
-@popover-arrow-background-color: #fff;
-@popover-arrow-border-color: #ccc;
-@popover-away-host: 3px;
-
-ngb-popover-window.plx-popover.show {
- color: #333;
- border: 1px solid @border-color-base;
-}
-
-.plx-popover {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 10001;
- display: block;
- padding: 1px;
- font-style: normal;
- font-weight: normal;
- letter-spacing: normal;
- line-break: auto;
- line-height: 1.5;
- text-align: left;
- text-decoration: none;
- text-shadow: none;
- text-transform: none;
- white-space: normal;
- word-break: normal;
- word-spacing: normal;
- word-wrap: break-word;
- -webkit-background-clip: padding-box;
- background-clip: padding-box;
- max-width: 400px;
- min-width: 200px;
- background-color: @component-bg;
- font-family: @font-family;
- font-size: @font-size;
- border: 1px solid @border-color-base;
- border-radius: @radius;
- .shadow;
- &::before,
- &::after {
- content: "";
- position: absolute;
- display: block;
- width: 0;
- height: 0;
- border: solid transparent;
- }
- &::before {
- border-width: @popover-arrow-border-width-before;
- }
- &::after {
- border-width: @popover-arrow-border-width;
- }
-}
-
-.plx-popover-top-common {
- margin-top: -(@popover-arrow-border-width + @popover-away-host);
- &::before {
- border-top-color: @popover-arrow-border-color;
- border-bottom-width: 0;
- bottom: -@popover-arrow-border-width-before;
- }
- &::after {
- border-top-color: @popover-arrow-background-color;
- border-bottom-width: 0;
- bottom: -@popover-arrow-border-width;
- }
-}
-.plx-popover-top {
- .plx-popover-top-common;
- &::before {
- left: 50%;
- margin-left: -@popover-arrow-border-width-before;
- }
- &::after {
- left: 50%;
- margin-left: -@popover-arrow-border-width;
- }
-}
-.plx-popover.plx-popover-top-left {
- .plx-popover-top-common;
- &::before {
- left: @popover-arrow-away;
- }
- &::after {
- left: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-.plx-popover.plx-popover-top-right {
- .plx-popover-top-common;
- &::before {
- right: @popover-arrow-away;
- }
- &::after {
- right: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-
-.plx-popover-right-common {
- margin-left: @popover-arrow-border-width + @popover-away-host;
- &::before {
- border-right-color: @popover-arrow-border-color;
- border-left-width: 0;
- left: -@popover-arrow-border-width-before;
- }
- &::after {
- border-right-color: @popover-arrow-background-color;
- border-left-width: 0;
- left: -@popover-arrow-border-width;
- }
-}
-.plx-popover.plx-popover-right {
- .plx-popover-right-common;
- &::before {
- top: 50%;
- margin-top: -@popover-arrow-border-width-before;
- }
- &::after {
- top: 50%;
- margin-top: -@popover-arrow-border-width;
- }
-}
-.plx-popover.plx-popover-right-top {
- .plx-popover-right-common;
- &::before {
- top: @popover-arrow-away;
- }
- &::after {
- top: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-.plx-popover.plx-popover-right-bottom {
- .plx-popover-right-common;
- &::before {
- bottom: @popover-arrow-away;
- }
- &::after {
- bottom: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-
-.plx-popover-bottom-common {
- margin-top: @popover-arrow-border-width + @popover-away-host;
- &::before {
- border-bottom-color: @popover-arrow-border-color;
- border-top-width: 0;
- top: -@popover-arrow-border-width-before;
- }
- &::after {
- border-bottom-color: @popover-arrow-background-color;
- border-top-width: 0;
- top: -@popover-arrow-border-width;
- }
-}
-.plx-popover.plx-popover-bottom {
- .plx-popover-bottom-common;
- &::before {
- left: 50%;
- margin-left: -@popover-arrow-border-width-before;
- }
- &::after {
- left: 50%;
- margin-left: -@popover-arrow-border-width;
- }
-}
-.plx-popover.plx-popover-bottom-left {
- .plx-popover-bottom-common;
- &::before {
- left: @popover-arrow-away;
- }
- &::after {
- left: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-.plx-popover.plx-popover-bottom-right {
- .plx-popover-bottom-common;
- &::before {
- right: @popover-arrow-away;
- }
- &::after {
- right: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-
-.plx-popover-left-common {
- margin-left: -(@popover-arrow-border-width + @popover-away-host);
- &::before {
- border-left-color: @popover-arrow-border-color;
- border-right-width: 0;
- right: -@popover-arrow-border-width-before;
- }
- &::after {
- border-left-color: @popover-arrow-background-color;
- border-right-width: 0;
- right: -@popover-arrow-border-width;
- }
-}
-
-.plx-popover.plx-popover-left {
- .plx-popover-left-common;
- &::before {
- top: 50%;
- margin-top: -@popover-arrow-border-width-before;
- }
- &::after {
- top: 50%;
- margin-top: -@popover-arrow-border-width;
- }
-}
-
-.plx-popover.plx-popover-left-top {
- .plx-popover-left-common;
- &::before {
- top: @popover-arrow-away;
- }
- &::after {
- top: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-.plx-popover.plx-popover-left-bottom {
- .plx-popover-left-common;
- &::before {
- bottom: @popover-arrow-away;
- }
- &::after {
- bottom: @popover-arrow-away + @popover-arrow-border-height;
- }
-}
-
-.plx-popover .plx-popover-title {
- padding: 8px 14px;
- margin-bottom: 0;
- font-size: @font-size-title-level2;
- background-color: @component-bg;
- border-bottom: 1px solid @border-color-base;
- &:empty {
- display: none;
- }
-}
-
-.plx-popover .plx-popover-content {
- padding: 9px 14px;
- background-color: @component-bg;
-}
-
-.plx-popover .ict-warning {
- color: @error-color;
- font-size: 24px;
- margin-right: 5px;
-}
-
-//.popover .popo {
-// text-align: center;
-//}
-//
-//.popover .pop-btn {
-// float: right;
-// margin-top: 10px;
-// margin-bottom: 10px;
-// font-size: 0;
-//}
-//
-//.popover .pop-btn .btn-s {
-// margin-left: 10px;
-//}
-//
-//.popover .tip-info span {
-// vertical-align: middle;
-//}
-//
-//.popover .tip-info .content {
-// font-size: 14px;
-//}
-
-.popover-template {
- padding: 10px 0px;
- min-width: 220px;
- .popover-template-content {
- padding: 10px 10px;
- }
- .popover-template-footer {
- padding: 10px 10px 5px 10px;
- text-align: center;
- }
- .popover-template-icon {
- display: inline-block;
- max-width: 30px;
- float: left;
- }
- .popover-template-icon-area {
- display: inline-block;
- height: 100%;
- vertical-align: middle;
- }
- .popover-template-msg {
- display: inline-block;
- max-width: 300px;
- margin-left: 10px;
- margin-top: 1px;
- }
+///////
+
+plx-modal-window {
+ .modal {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ display: none;
+ outline: 0;
+ z-index: 10000;
+ }
+ .modal-dialog {
+ position: relative;
+ max-width: 600px;
+ margin: 30px auto;
+ &.modal-sm {
+ max-width: 600px;
+ }
+ &.modal-lg {
+ max-width: 1000px;
+ }
+ }
+ .modal-content {
+ position: relative;
+ display: flex;
+ -webkit-box-orient: vertical;
+ -webkit-box-direction: normal;
+ -ms-flex-direction: column;
+ flex-direction: column;
+ background-color: @component-bg;
+ background-clip: padding-box;
+ border-radius: @radius;
+ box-shadow: 0 5px 15px @shadow-color;
+ outline: 0;
+ .modal-header {
+ border-bottom: 0;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: justify;
+ -ms-flex-pack: justify;
+ justify-content: space-between;
+ padding: 15px;
+ }
+ .modal-body {
+ .form-group:last-child, form:last-child {
+ margin-bottom: 0;
+ }
+ }
+ .modal-footer {
+ display: block;
+ border-top: 0;
+ margin-top: 0;
+ padding: 0 15px 15px 15px;
+ }
+ .modal-title {
+ font-size: @font-size-title-level1;
+ margin-bottom: 0;
+ line-height: 1.5;
+ }
+ .modal-btn {
+ text-align: center;
+ font-size: 0;
+ }
+ }
+ .close {
+ color: @fonticon-color;
+ font-size: @font-size-title-level2;
+ text-shadow: none;
+ width: 24px;
+ height: 24px;
+ background: @scene-textcolor;
+ border-radius: 20px;
+ padding-bottom: 2px;
+ outline: none;
+ &:hover {
+ color: @fonticon-color;
+ background: @fonticon-bg-color-hover;
+ }
+ }
+ .alert-modal {
+ &.row {
+ margin-left: 100px;
+ margin-bottom: 30px;
+ text-align: left;
+ .tip-img {
+ display: inline-block;
+ width: 52px;
+ height: 52px;
+ border-radius: 50px;
+ font-size: 45px;
+ text-align: center;
+ line-height: 1;
+ margin-top: -5px;
+ margin-right: 15px;
+ &::before {
+ content: "!";
+ }
+ }
+ .tip-info {
+ width: 300px;
+ .alert-title {
+ font-size: @font-size-title-level2;
+ color: @title-text-color;
+ }
+ .alert-result {
+ margin-top: 5px;
+ font-size: @font-size;
+ color: @unselected-text-color;
+ }
+ }
+ .warning {
+ border: 3px solid @warning-color;
+ color: @warning-color;
+ }
+ .error {
+ border: 3px solid @error-color;
+ color: @error-color;
+ }
+ }
+ }
+}
+///////
+
+
+@popover-arrow-border-width: 6px;
+@popover-arrow-border-width-before: 7px;
+@popover-arrow-border-height: @popover-arrow-border-width-before - @popover-arrow-border-width;
+@popover-arrow-away: 10px;
+@popover-arrow-background-color: #fff;
+@popover-arrow-border-color: #ccc;
+@popover-away-host: 3px;
+
+ngb-popover-window.plx-popover.show {
+ color: #333;
+ border: 1px solid @border-color-base;
+}
+
+.plx-popover {
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 10001;
+ display: block;
+ padding: 1px;
+ font-style: normal;
+ font-weight: normal;
+ letter-spacing: normal;
+ line-break: auto;
+ line-height: 1.5;
+ text-align: left;
+ text-decoration: none;
+ text-shadow: none;
+ text-transform: none;
+ white-space: normal;
+ word-break: normal;
+ word-spacing: normal;
+ word-wrap: break-word;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+ max-width: 400px;
+ min-width: 200px;
+ background-color: @component-bg;
+ font-family: @font-family;
+ font-size: @font-size;
+ border: 1px solid @border-color-base;
+ border-radius: @radius;
+ .shadow;
+ &::before,
+ &::after {
+ content: "";
+ position: absolute;
+ display: block;
+ width: 0;
+ height: 0;
+ border: solid transparent;
+ }
+ &::before {
+ border-width: @popover-arrow-border-width-before;
+ }
+ &::after {
+ border-width: @popover-arrow-border-width;
+ }
+}
+
+.plx-popover-top-common {
+ margin-top: -(@popover-arrow-border-width + @popover-away-host);
+ &::before {
+ border-top-color: @popover-arrow-border-color;
+ border-bottom-width: 0;
+ bottom: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ border-top-color: @popover-arrow-background-color;
+ border-bottom-width: 0;
+ bottom: -@popover-arrow-border-width;
+ }
+}
+.plx-popover-top {
+ .plx-popover-top-common;
+ &::before {
+ left: 50%;
+ margin-left: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ left: 50%;
+ margin-left: -@popover-arrow-border-width;
+ }
+}
+.plx-popover.plx-popover-top-left {
+ .plx-popover-top-common;
+ &::before {
+ left: @popover-arrow-away;
+ }
+ &::after {
+ left: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+.plx-popover.plx-popover-top-right {
+ .plx-popover-top-common;
+ &::before {
+ right: @popover-arrow-away;
+ }
+ &::after {
+ right: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+
+.plx-popover-right-common {
+ margin-left: @popover-arrow-border-width + @popover-away-host;
+ &::before {
+ border-right-color: @popover-arrow-border-color;
+ border-left-width: 0;
+ left: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ border-right-color: @popover-arrow-background-color;
+ border-left-width: 0;
+ left: -@popover-arrow-border-width;
+ }
+}
+.plx-popover.plx-popover-right {
+ .plx-popover-right-common;
+ &::before {
+ top: 50%;
+ margin-top: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ top: 50%;
+ margin-top: -@popover-arrow-border-width;
+ }
+}
+.plx-popover.plx-popover-right-top {
+ .plx-popover-right-common;
+ &::before {
+ top: @popover-arrow-away;
+ }
+ &::after {
+ top: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+.plx-popover.plx-popover-right-bottom {
+ .plx-popover-right-common;
+ &::before {
+ bottom: @popover-arrow-away;
+ }
+ &::after {
+ bottom: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+
+.plx-popover-bottom-common {
+ margin-top: @popover-arrow-border-width + @popover-away-host;
+ &::before {
+ border-bottom-color: @popover-arrow-border-color;
+ border-top-width: 0;
+ top: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ border-bottom-color: @popover-arrow-background-color;
+ border-top-width: 0;
+ top: -@popover-arrow-border-width;
+ }
+}
+.plx-popover.plx-popover-bottom {
+ .plx-popover-bottom-common;
+ &::before {
+ left: 50%;
+ margin-left: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ left: 50%;
+ margin-left: -@popover-arrow-border-width;
+ }
+}
+.plx-popover.plx-popover-bottom-left {
+ .plx-popover-bottom-common;
+ &::before {
+ left: @popover-arrow-away;
+ }
+ &::after {
+ left: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+.plx-popover.plx-popover-bottom-right {
+ .plx-popover-bottom-common;
+ &::before {
+ right: @popover-arrow-away;
+ }
+ &::after {
+ right: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+
+.plx-popover-left-common {
+ margin-left: -(@popover-arrow-border-width + @popover-away-host);
+ &::before {
+ border-left-color: @popover-arrow-border-color;
+ border-right-width: 0;
+ right: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ border-left-color: @popover-arrow-background-color;
+ border-right-width: 0;
+ right: -@popover-arrow-border-width;
+ }
+}
+
+.plx-popover.plx-popover-left {
+ .plx-popover-left-common;
+ &::before {
+ top: 50%;
+ margin-top: -@popover-arrow-border-width-before;
+ }
+ &::after {
+ top: 50%;
+ margin-top: -@popover-arrow-border-width;
+ }
+}
+
+.plx-popover.plx-popover-left-top {
+ .plx-popover-left-common;
+ &::before {
+ top: @popover-arrow-away;
+ }
+ &::after {
+ top: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+.plx-popover.plx-popover-left-bottom {
+ .plx-popover-left-common;
+ &::before {
+ bottom: @popover-arrow-away;
+ }
+ &::after {
+ bottom: @popover-arrow-away + @popover-arrow-border-height;
+ }
+}
+
+.plx-popover .plx-popover-title {
+ padding: 8px 14px;
+ margin-bottom: 0;
+ font-size: @font-size-title-level2;
+ background-color: @component-bg;
+ border-bottom: 1px solid @border-color-base;
+ &:empty {
+ display: none;
+ }
+}
+
+.plx-popover .plx-popover-content {
+ padding: 9px 14px;
+ background-color: @component-bg;
+}
+
+.plx-popover .ict-warning {
+ color: @error-color;
+ font-size: 24px;
+ margin-right: 5px;
+}
+
+//.popover .popo {
+// text-align: center;
+//}
+//
+//.popover .pop-btn {
+// float: right;
+// margin-top: 10px;
+// margin-bottom: 10px;
+// font-size: 0;
+//}
+//
+//.popover .pop-btn .btn-s {
+// margin-left: 10px;
+//}
+//
+//.popover .tip-info span {
+// vertical-align: middle;
+//}
+//
+//.popover .tip-info .content {
+// font-size: 14px;
+//}
+
+.popover-template {
+ padding: 10px 0px;
+ min-width: 220px;
+ .popover-template-content {
+ padding: 10px 10px;
+ }
+ .popover-template-footer {
+ padding: 10px 10px 5px 10px;
+ text-align: center;
+ }
+ .popover-template-icon {
+ display: inline-block;
+ max-width: 30px;
+ float: left;
+ }
+ .popover-template-icon-area {
+ display: inline-block;
+ height: 100%;
+ vertical-align: middle;
+ }
+ .popover-template-msg {
+ display: inline-block;
+ max-width: 300px;
+ margin-left: 10px;
+ margin-top: 1px;
+ }
}
///////
@@ -1519,261 +1519,261 @@ input:-ms-input-placeholder {
input::-webkit-input-placeholder {
color:@unselected-text-color !important;
}
-///////
-
-select-dropdown {
- box-sizing: border-box;
- font-family: @font-family;
- font-size: @font-size;
- outline: none;
- & > div {
- background-color: @component-bg;
- position: absolute;
- z-index: 9999;
- &.select-sm .filter {
- input {
- height: @input-height-sm + 2;
- }
- .toggle {
- top: 13px;
- }
- }
- .filter {
- width: 100%;
- input {
- border: 1px solid @primary-color;
- border-radius: @radius;
- padding: 0 10px;
- width: 100%;
- height: @input-height + 2;
- }
- .toggle {
- display: block;
- position: absolute;
- top: 15px;
- right: 10px;
- width: 0;
- height: 0;
- border-left: 4px solid transparent;
- border-right: 4px solid transparent;
- border-top: 4px solid lighten(@fonticon-color, 5%);
- }
- }
- .options {
- border: 1px solid @border-color-base;
- border-top: none;
- border-radius: @radius;
- max-height: 160px;
- overflow-y: auto;
- ul {
- list-style: none;
- margin: 0;
- padding: 0;
- li {
- color: @text-color;
- height: 30px;
- line-height: 18px;
- padding: 6px 20px 6px 8px;
- position: relative;
- cursor: pointer;
- user-select: none;
- &.single-selected {
- background-color: @selected-bg-color;
- }
- &.highlighted {
- background-color: @hover-bg-color;
- color: @text-color;
- }
- &.disabled {
- background-color: @component-bg;
- color: @disabled-text-color;
- cursor: default;
- pointer-events: none;
- }
- &.plx-select-message {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .option-label {
- display: inline-block;
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .option-tick {
- display: inline-block;
- position: absolute;
- right: 5px;
- top: 5px;
- }
- .tick {
- fill: none;
- stroke: @success-color;
- stroke-width: 2;
- stroke-linecap: round;
- stroke-linejoin: round;
- stroke-miterlimit: 10;
- }
- }
- }
- }
- }
-}
-
-///////
-
-@option-bg-color: #f8f8f8;
-@option-border-color: #e6e6e6;
-@deselect-option-color-hover: #555;
-
-plx-select {
- display: inline-block;
- margin: 0;
- position: relative;
- vertical-align: middle;
- width: 100%;
- &.ng-untouched:not(form).ng-untouched:not(fieldset) {
- border: 0;
- }
- & * {
- box-sizing: border-box;
- font-family: @font-family;
- font-size: @font-size;
- outline: none;
- }
- & > div {
- border: 1px solid @border-color-base;
- border-radius: @radius;
- cursor: pointer;
- user-select: none;
- width: 100%;
- &.disabled {
- background-color: @input-bg-color-disabled;
- color: @disabled-text-color;
- cursor: not-allowed;
- //pointer-events: none;
- }
- &.focus-border {
- border: 1px solid @primary-color !important;
- }
- &.select-sm {
- .value, .placeholder {
- height: @input-height-sm !important;
- line-height: @input-height-sm !important;
- }
- .toggle {
- top: 13px;
- }
- div.option {
- height: 20px !important;
- line-height: 14px !important;
- }
- input {
- height: @input-height-sm;
- line-height: @input-height-sm;
- }
- }
- input {
- background-color: transparent;
- border: none;
- border-radius: @radius;
- cursor: pointer;
- height: @input-height;
- line-height: @input-height;
- }
- .toggle {
- display: block;
- position: absolute;
- top: 15px;
- right: 10px;
- width: 0;
- height: 0;
- border-left: 4px solid transparent;
- border-right: 4px solid transparent;
- border-top: 4px solid lighten(@fonticon-color, 5%);
- }
- .single {
- display: flex;
- width: 100%;
- .value, .placeholder {
- color: @text-color;
- flex: 1;
- height: @input-height;
- line-height: @input-height;
- overflow: hidden;
- padding: 0 10px;
- white-space: nowrap;
- span {
- display: inline-block;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- }
- }
- .placeholder {
- color: @unselected-text-color;
- }
- input {
- flex: 1;
- padding: 1px 10px 0 10px;
- }
- }
- .multiple {
- display: flex;
- flex-flow: row wrap;
- //min-height: @input-height;
- padding: 0 10px;
- width: 100%;
- .placeholder {
- flex: 1;
- color: @unselected-text-color;
- height: @input-height;
- line-height: @input-height;
- overflow: hidden;
- white-space: nowrap;
- }
- input {
- padding: 0;
- margin-right: 10px;
- }
- div.option {
- background-color: @option-bg-color;
- border: 1px solid @option-border-color;
- border-radius: @radius-sm;
- color: @text-color;
- cursor: default;
- display: inline-block;
- flex-shrink: 0;
- height: 24px;
- line-height: 18px;
- margin: 4px 10px 4px 0;
- padding: 2px 30px 2px 10px;
- max-width: 100%;
- position: relative;
- span {
- display: inline-block;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- }
- .deselect-option {
- color: darken(@border-color-base, 10%);
- cursor: pointer;
- font-size: 8px;
- position: absolute;
- top: 2px;
- right: 8px;
- &:hover {
- color: @deselect-option-color-hover;
- }
- }
- }
- }
- }
+///////
+
+select-dropdown {
+ box-sizing: border-box;
+ font-family: @font-family;
+ font-size: @font-size;
+ outline: none;
+ & > div {
+ background-color: @component-bg;
+ position: absolute;
+ z-index: 9999;
+ &.select-sm .filter {
+ input {
+ height: @input-height-sm + 2;
+ }
+ .toggle {
+ top: 13px;
+ }
+ }
+ .filter {
+ width: 100%;
+ input {
+ border: 1px solid @primary-color;
+ border-radius: @radius;
+ padding: 0 10px;
+ width: 100%;
+ height: @input-height + 2;
+ }
+ .toggle {
+ display: block;
+ position: absolute;
+ top: 15px;
+ right: 10px;
+ width: 0;
+ height: 0;
+ border-left: 4px solid transparent;
+ border-right: 4px solid transparent;
+ border-top: 4px solid lighten(@fonticon-color, 5%);
+ }
+ }
+ .options {
+ border: 1px solid @border-color-base;
+ border-top: none;
+ border-radius: @radius;
+ max-height: 160px;
+ overflow-y: auto;
+ ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ li {
+ color: @text-color;
+ height: 30px;
+ line-height: 18px;
+ padding: 6px 20px 6px 8px;
+ position: relative;
+ cursor: pointer;
+ user-select: none;
+ &.single-selected {
+ background-color: @selected-bg-color;
+ }
+ &.highlighted {
+ background-color: @hover-bg-color;
+ color: @text-color;
+ }
+ &.disabled {
+ background-color: @component-bg;
+ color: @disabled-text-color;
+ cursor: default;
+ pointer-events: none;
+ }
+ &.plx-select-message {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ .option-label {
+ display: inline-block;
+ width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ .option-tick {
+ display: inline-block;
+ position: absolute;
+ right: 5px;
+ top: 5px;
+ }
+ .tick {
+ fill: none;
+ stroke: @success-color;
+ stroke-width: 2;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ stroke-miterlimit: 10;
+ }
+ }
+ }
+ }
+ }
+}
+
+///////
+
+@option-bg-color: #f8f8f8;
+@option-border-color: #e6e6e6;
+@deselect-option-color-hover: #555;
+
+plx-select {
+ display: inline-block;
+ margin: 0;
+ position: relative;
+ vertical-align: middle;
+ width: 100%;
+ &.ng-untouched:not(form).ng-untouched:not(fieldset) {
+ border: 0;
+ }
+ & * {
+ box-sizing: border-box;
+ font-family: @font-family;
+ font-size: @font-size;
+ outline: none;
+ }
+ & > div {
+ border: 1px solid @border-color-base;
+ border-radius: @radius;
+ cursor: pointer;
+ user-select: none;
+ width: 100%;
+ &.disabled {
+ background-color: @input-bg-color-disabled;
+ color: @disabled-text-color;
+ cursor: not-allowed;
+ //pointer-events: none;
+ }
+ &.focus-border {
+ border: 1px solid @primary-color !important;
+ }
+ &.select-sm {
+ .value, .placeholder {
+ height: @input-height-sm !important;
+ line-height: @input-height-sm !important;
+ }
+ .toggle {
+ top: 13px;
+ }
+ div.option {
+ height: 20px !important;
+ line-height: 14px !important;
+ }
+ input {
+ height: @input-height-sm;
+ line-height: @input-height-sm;
+ }
+ }
+ input {
+ background-color: transparent;
+ border: none;
+ border-radius: @radius;
+ cursor: pointer;
+ height: @input-height;
+ line-height: @input-height;
+ }
+ .toggle {
+ display: block;
+ position: absolute;
+ top: 15px;
+ right: 10px;
+ width: 0;
+ height: 0;
+ border-left: 4px solid transparent;
+ border-right: 4px solid transparent;
+ border-top: 4px solid lighten(@fonticon-color, 5%);
+ }
+ .single {
+ display: flex;
+ width: 100%;
+ .value, .placeholder {
+ color: @text-color;
+ flex: 1;
+ height: @input-height;
+ line-height: @input-height;
+ overflow: hidden;
+ padding: 0 10px;
+ white-space: nowrap;
+ span {
+ display: inline-block;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 100%;
+ }
+ }
+ .placeholder {
+ color: @unselected-text-color;
+ }
+ input {
+ flex: 1;
+ padding: 1px 10px 0 10px;
+ }
+ }
+ .multiple {
+ display: flex;
+ flex-flow: row wrap;
+ //min-height: @input-height;
+ padding: 0 10px;
+ width: 100%;
+ .placeholder {
+ flex: 1;
+ color: @unselected-text-color;
+ height: @input-height;
+ line-height: @input-height;
+ overflow: hidden;
+ white-space: nowrap;
+ }
+ input {
+ padding: 0;
+ margin-right: 10px;
+ }
+ div.option {
+ background-color: @option-bg-color;
+ border: 1px solid @option-border-color;
+ border-radius: @radius-sm;
+ color: @text-color;
+ cursor: default;
+ display: inline-block;
+ flex-shrink: 0;
+ height: 24px;
+ line-height: 18px;
+ margin: 4px 10px 4px 0;
+ padding: 2px 30px 2px 10px;
+ max-width: 100%;
+ position: relative;
+ span {
+ display: inline-block;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 100%;
+ }
+ .deselect-option {
+ color: darken(@border-color-base, 10%);
+ cursor: pointer;
+ font-size: 8px;
+ position: absolute;
+ top: 2px;
+ right: 8px;
+ &:hover {
+ color: @deselect-option-color-hover;
+ }
+ }
+ }
+ }
+ }
}
///////
@@ -2031,128 +2031,128 @@ plx-select {
line-height: @plx-steps-circle-width;
}
-///////
-
-.plx-tabset {
- display: flex;
- padding-left: 0;
- margin-bottom: 0;
- list-style: none;
-
- &.plx-nav-tabs {
- border-bottom: 1px solid @border-color-base;
- font-size: @font-size + 2px;
- .plx-nav-item {
- margin-bottom: -1px;
- }
- .plx-nav-link {
- display: block;
- border-radius: 0;
- border: 1px solid transparent;
- border-top: 2px solid transparent;
- color: @unselected-text-color;
- min-width: 100px;
- text-align: center;
- padding: 6px 16px;
- &:hover, &:focus {
- text-decoration: none;
- background-color: @hover-bg-color;
- border-bottom: 0;
- border-left: 0;
- border-right: 0;
- }
- &.active {
- color: @text-color;
- border-top: 2px solid @primary-color;
- border-left: 1px solid @border-color-base;
- border-right: 1px solid @border-color-base;
- background-color: @component-bg;
- &:hover, &:focus {
- border-left: 1px solid @border-color-base;
- border-right: 1px solid @border-color-base;
- border-bottom: 1px solid transparent;
- }
- }
- }
- &.bottom {
- .plx-nav-link {
- border: 0;
- border-bottom: 2px solid transparent;
- &:hover {
- border-bottom: 1px solid transparent;
- }
- &.active {
- border: 0;
- border-bottom: 2px solid @primary-color;
- }
- }
- }
- }
-
- &.plx-nav-pills {
- .plx-nav-link {
- border: 1px solid @border-color-base;
- border-radius: 0.25em;
- color: @unselected-text-color;
- display: block;
- padding: 6px 10px;
- min-width: 100px;
- text-align: center;
- &:hover, &:focus {
- text-decoration: none;
- color: @btn-common-color-text-hover;
- border-color: @btn-common-color-border-hover;
- background-color: @common-color-hover;
- }
- &:active {
- color: @btn-common-color-text-click;
- border-color: @btn-common-color-border-click;
- background-color: @common-color-click;
- }
- &.active {
- color: @scene-textcolor;
- cursor: default;
- background-color: @primary-color;
- border-color: @primary-color;
- }
- }
- .plx-nav-item {
- &:hover, &:focus, &:active {
- z-index: 2;
- }
- &:first-child:not(:last-child) {
- .plx-nav-link {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
- }
- &:not(:first-child):not(:last-child) {
- .plx-nav-link {
- border-radius: 0;
- }
- }
- &:last-child:not(:first-child) {
- .plx-nav-link {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- }
- & + .plx-nav-item {
- .plx-nav-link {
- margin-left: -1px;
- }
- }
- }
- }
-}
-
-.plx-tab-content {
- .plx-tab-pane {
- display: none;
- &.active {
- display: block;
- }
- }
+///////
+
+.plx-tabset {
+ display: flex;
+ padding-left: 0;
+ margin-bottom: 0;
+ list-style: none;
+
+ &.plx-nav-tabs {
+ border-bottom: 1px solid @border-color-base;
+ font-size: @font-size + 2px;
+ .plx-nav-item {
+ margin-bottom: -1px;
+ }
+ .plx-nav-link {
+ display: block;
+ border-radius: 0;
+ border: 1px solid transparent;
+ border-top: 2px solid transparent;
+ color: @unselected-text-color;
+ min-width: 100px;
+ text-align: center;
+ padding: 6px 16px;
+ &:hover, &:focus {
+ text-decoration: none;
+ background-color: @hover-bg-color;
+ border-bottom: 0;
+ border-left: 0;
+ border-right: 0;
+ }
+ &.active {
+ color: @text-color;
+ border-top: 2px solid @primary-color;
+ border-left: 1px solid @border-color-base;
+ border-right: 1px solid @border-color-base;
+ background-color: @component-bg;
+ &:hover, &:focus {
+ border-left: 1px solid @border-color-base;
+ border-right: 1px solid @border-color-base;
+ border-bottom: 1px solid transparent;
+ }
+ }
+ }
+ &.bottom {
+ .plx-nav-link {
+ border: 0;
+ border-bottom: 2px solid transparent;
+ &:hover {
+ border-bottom: 1px solid transparent;
+ }
+ &.active {
+ border: 0;
+ border-bottom: 2px solid @primary-color;
+ }
+ }
+ }
+ }
+
+ &.plx-nav-pills {
+ .plx-nav-link {
+ border: 1px solid @border-color-base;
+ border-radius: 0.25em;
+ color: @unselected-text-color;
+ display: block;
+ padding: 6px 10px;
+ min-width: 100px;
+ text-align: center;
+ &:hover, &:focus {
+ text-decoration: none;
+ color: @btn-common-color-text-hover;
+ border-color: @btn-common-color-border-hover;
+ background-color: @common-color-hover;
+ }
+ &:active {
+ color: @btn-common-color-text-click;
+ border-color: @btn-common-color-border-click;
+ background-color: @common-color-click;
+ }
+ &.active {
+ color: @scene-textcolor;
+ cursor: default;
+ background-color: @primary-color;
+ border-color: @primary-color;
+ }
+ }
+ .plx-nav-item {
+ &:hover, &:focus, &:active {
+ z-index: 2;
+ }
+ &:first-child:not(:last-child) {
+ .plx-nav-link {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ }
+ }
+ &:not(:first-child):not(:last-child) {
+ .plx-nav-link {
+ border-radius: 0;
+ }
+ }
+ &:last-child:not(:first-child) {
+ .plx-nav-link {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ }
+ }
+ & + .plx-nav-item {
+ .plx-nav-link {
+ margin-left: -1px;
+ }
+ }
+ }
+ }
+}
+
+.plx-tab-content {
+ .plx-tab-pane {
+ display: none;
+ &.active {
+ display: block;
+ }
+ }
}
///////
///////
@@ -2946,848 +2946,848 @@ plx-select {
}
}
-///////
-.toolbar {
-
- i.seperate-vertical {
- margin-right: 10px;
- margin-left: 0;
- border-right: 1px solid @border-color-split;
- }
-
- span {
- color: @text-color;
- cursor: pointer;
- margin-right: 10px;
- font-size: 16px;
- display: inline-block;
- width: 28px;
- height: 28px;
- border: 1px solid transparent;
- padding: 5px;
-
- &:hover {
- background-color: @hover-bg-color;
- border-radius: @radius-sm;
- }
-
- &:last-child {
- margin-right: 0px;
- }
- }
-}
-
-///////
-
-@tooltip-arrow-border-width: 4px;
-@tooltip-arrow-border-width-before: 5px;
-@tooltip-arrow-border-height: @tooltip-arrow-border-width-before - @tooltip-arrow-border-width;
-@tooltip-arrow-away: 5px;
-@tooltip-arrow-background-color: #595959;
-@tooltip-arrow-border-color: #595959;
-@tooltip-away-host: 3px;
-
-.plx-tooltip {
- font-family: @font-family;
- font-size: @font-size;
- opacity: 1;
- position: absolute;
- z-index: 10001;
- display: block;
- font-style: normal;
- font-weight: normal;
- letter-spacing: normal;
- line-break: auto;
- line-height: 1.5;
- text-align: left;
- text-decoration: none;
- text-shadow: none;
- text-transform: none;
- white-space: normal;
- word-break: normal;
- word-spacing: normal;
- word-wrap: break-word;
- &::before,
- &::after {
- content: "";
- position: absolute;
- display: block;
- width: 0;
- height: 0;
- border: solid transparent;
- }
- &::before {
- border-width: @tooltip-arrow-border-width-before;
- }
- &::after {
- border-width: @tooltip-arrow-border-width;
- }
-}
-
-.plx-tooltip-inner {
- min-width: 60px;
- max-width: 200px;
- padding: 3px 8px;
- color: #fff;
- text-align: center;
- background-color: #000;
-}
-
-.plx-tooltip.show {
- font-size: @font-size;
- opacity: 1;
-}
-.plx-tooltip.show .plx-tooltip-inner {
- background-color: #595959;
- border-radius: @radius;
- padding: 0px 12px;
- height: 30px;
- line-height: 30px;
-}
-
-.plx-tooltip-top-common {
- margin-top: -(@tooltip-arrow-border-width + @tooltip-away-host);
- &::before {
- border-top-color: @tooltip-arrow-border-color;
- border-bottom-width: 0;
- bottom: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-top-color: @tooltip-arrow-background-color;
- border-bottom-width: 0;
- bottom: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip-top {
- .plx-tooltip-top-common;
- &::before {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width-before;
- }
- &::after {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-top-left {
- .plx-tooltip-top-common;
- &::before {
- left: @tooltip-arrow-away;
- }
- &::after {
- left: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-top-right {
- .plx-tooltip-top-common;
- &::before {
- right: @tooltip-arrow-away;
- }
- &::after {
- right: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-
-.plx-tooltip-right-common {
- margin-left: @tooltip-arrow-border-width + @tooltip-away-host;
- &::before {
- border-right-color: @tooltip-arrow-border-color;
- border-left-width: 0;
- left: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-right-color: @tooltip-arrow-background-color;
- border-left-width: 0;
- left: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-right {
- .plx-tooltip-right-common;
- &::before {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width-before;
- }
- &::after {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-right-top {
- .plx-tooltip-right-common;
- &::before {
- top: @tooltip-arrow-away;
- }
- &::after {
- top: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-right-bottom {
- .plx-tooltip-right-common;
- &::before {
- bottom: @tooltip-arrow-away;
- }
- &::after {
- bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-
-.plx-tooltip-bottom-common {
- margin-top: @tooltip-arrow-border-width + @tooltip-away-host;
- &::before {
- border-bottom-color: @tooltip-arrow-border-color;
- border-top-width: 0;
- top: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-bottom-color: @tooltip-arrow-background-color;
- border-top-width: 0;
- top: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-bottom {
- .plx-tooltip-bottom-common;
- &::before {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width-before;
- }
- &::after {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-bottom-left {
- .plx-tooltip-bottom-common;
- &::before {
- left: @tooltip-arrow-away;
- }
- &::after {
- left: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-bottom-right {
- .plx-tooltip-bottom-common;
- &::before {
- right: @tooltip-arrow-away;
- }
- &::after {
- right: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-
-.plx-tooltip-left-common {
- margin-left: -(@tooltip-arrow-border-width + @tooltip-away-host);
- &::before {
- border-left-color: @tooltip-arrow-border-color;
- border-right-width: 0;
- right: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-left-color: @tooltip-arrow-background-color;
- border-right-width: 0;
- right: -@tooltip-arrow-border-width;
- }
-}
-
-.plx-tooltip.plx-tooltip-left {
- .plx-tooltip-left-common;
- &::before {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width-before;
- }
- &::after {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width;
- }
-}
-
-.plx-tooltip.plx-tooltip-left-top {
- .plx-tooltip-left-common;
- &::before {
- top: @tooltip-arrow-away;
- }
- &::after {
- top: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-left-bottom {
- .plx-tooltip-left-common;
- &::before {
- bottom: @tooltip-arrow-away;
- }
- &::after {
- bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-@checkbox-border-size: 1px;
-
-.plx-checkbox-container {
- font-size: 0;
- position: relative;
-}
-
-.plx-checkbox {
- position: absolute;
- z-index: -1;
- opacity: 0;
- & + .checkbox-substitute {
- position: relative;
- display: inline-block;
- cursor: pointer;
- height: @checkbox-size;
- width: @checkbox-size;
- border: @checkbox-border-size solid @border-color-base;
- border-radius: @radius-sm;
- vertical-align: middle;
- }
- & + .checkbox-substitute + span {
- font-weight: normal;
- font-size: @font-size;
- cursor: pointer;
- vertical-align: middle;
- .font-padding(@font-size);
- }
- &:hover + .checkbox-substitute {
- border-color: @primary-color;
- outline: none;
- background-image: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
- &:checked + .checkbox-substitute {
- border-color: @primary-color;
- background-color: @primary-color;
- &::after {
- .checkbox-check(@component-bg);
- }
- }
- &:checked.portion + .checkbox-substitute {
- background-color: @primary-color;
- border-color: @primary-color;
- opacity: 0.5;
- }
- &:disabled + .checkbox-substitute,
- &[disabled] + .checkbox-substitute {
- border-color: @border-color-base;
- background-color: @input-bg-color-disabled;
- cursor: not-allowed;
- }
- &:disabled + .checkbox-substitute + span,
- &[disabled] + .checkbox-substitute + span {
- cursor: not-allowed;
- }
- &:checked.portion[disabled] + .checkbox-substitute {
- background-color: @border-color-base;
- border-color: @border-color-base;
- &::after {
- .checkbox-check(@fonticon-color);
- }
- }
- &:checked[disabled] + .checkbox-substitute {
- border-color: @border-color-base;
- background-color: @border-color-base;
- }
-}
-
-.checkbox-check(@color) {
- content: '';
- position: absolute;
- display: block;
- width: 6px;
- height: 10px;
- border: solid @color;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- .checkbox-check-left(@font-size);
- top: 0;
-}
-
-.checkbox-check-left(12px) {
- left: 3px;
-}
-
-.checkbox-check-left(14px) {
- left: 4px;
-}
-
-.font-padding(12px) {
- padding-left: 6px;
-}
-
-.font-padding(14px) {
- padding-left: 10px;
-}
-
-///////
-///////
-
-@tree-node-ul-padding: 21px;
-@margin-right: 10px;
-
-.plx-treenode{
- cursor: pointer;
- background-attachment: scroll;
- background-color: transparent;
- background-image: none;
- background-position: 0 0;
- background-repeat: repeat-y;
- list-style: none outside none;
- margin: 0;
- padding:0;
- white-space: nowrap;
- font-size: @font-size;
-
- .plx-treenode-content{
- margin-top:10px;
-
- &.light{
- margin-top:15px;
- }
- }
-}
-
-.plx-treenode ul.plx-treenode-children {
- display: block;
- -webkit-padding-start: @tree-node-ul-padding;
-}
-
-.plx-treenode-toggler{
- font-size: 16px;
- color: @primary-color;
- display: inline-block;
- margin-right: 7px;
- margin-top:2px;
- vertical-align: bottom;
- float: left;
-}
-
-// .plx-treenode-toggler{
-// display: inline-block;
-// margin-right: @margin-right;
-// vertical-align: bottom;
-// }
-
-// .plx-treenode-toggler svg {
-// .plx-treenode-vertical-bottom(@font-size);
-// }
-
-// .plx-treenode-toggler svg .st0 {
-// fill: @primary-color;
-// }
-
-// .plx-treenode-toggler svg .st1 {
-// stroke: @primary-color;
-// }
-
-.plx-treenode-ckbox{
- float: left;
- margin-right: @margin-right;
- margin-top:2px;
- // .plx-treenode-vertical-bottom(@font-size);
-
-}
-
-.plx-treenode-vertical-bottom(@font-size) when (@font-size = 12px) {
- vertical-align: bottom;
- margin-bottom: 3px;
-}
-
-.plx-treenode-vertical-bottom(@font-size) when (@font-size = 14px) {
- vertical-align: bottom;
- margin-bottom: 4px;
-}
-
-.plx-treenode-icon{
- color:@fonticon-color;
- margin-right: @margin-right;
- float: left;
- font-size: 16px;
- vertical-align: bottom;
- // .plx-treenode-icon-margin-bottom(@font-size);
- margin-top: 2px;
-}
-
-.plx-treenode-icon-margin-bottom(@font-size) when (@font-size = 12px) {
- margin-bottom: 1px;
-}
-
-.plx-treenode-icon-margin-bottom(@font-size) when (@font-size = 14px) {
- margin-bottom: 2px;
-}
-
-.plx-treenode-label-container{
- overflow: visible;
-}
-
-.plx-treenode-label-container.plx-treenode-label-ellipsis{
- overflow:hidden;
-}
-
-.plx-treenode-label-container:hover {
- background-color: @hover-bg-color;
-}
-
-.plx-treenode-active>div .plx-treenode-label-container {
- background-color: darken(@hover-bg-color, 2%);
-}
-
-.plx-treenode-active>div .plx-treenode-label-container:hover {
- background-color: @hover-bg-color;
-}
-
-.plx-treenode-label-container span:last-child{
- margin-right:5px;
-}
-
-
-.plx-treenode-lable{
- display: inline-block;
- vertical-align:0;
- font-family: @font-family;
- color:@text-color;
-
- span {
- display: inline-block;
- overflow: hidden;
- max-width: 100%;
- text-overflow: ellipsis;
- white-space: nowrap;
- vertical-align: bottom;
- }
-}
-
-.plx-treenode-operations{
- margin-left: 20px;
- display: none;
- vertical-align: bottom;
- width: fit-content;
- line-height: 1;
- .plx-treenode-operations-margin-bottom(@font-size);
-}
-
-
-.plx-treenode-operations-margin-bottom(@font-size) when (@font-size = 12px) {
- margin-bottom: 1px;
-}
-
-.plx-treenode-operations-margin-bottom(@font-size) when (@font-size = 14px) {
- margin-bottom: 2px;
-}
-
-.plx-treenode-operation{
- display: inline-block;
- margin-right: 10px;
- color:@fonticon-color;
- font-size: 16px;
- vertical-align: text-bottom;
-
- &:hover{
- color: @primary-color;
- }
-}
-
-.plx-treenode-label-container:hover .plx-treenode-operations{
- display:inline-block;
-}
-
-*:focus{
- outline:none;
- box-shadow:none !important;
-}
-input[type="checkbox"]:focus{
- border:0 !important;
-}
-.plx-treenode-hide-tree-toggle{
- visibility: hidden;
-}
-
-.plx-treenode-droppoint{
- height: 4px;
- list-style-type: none;
-}
-.plx-treenode-droppoint-active{
- background-color: #186ba0;
- border: 0 none;
-}
-
-
-///////
-
-@item-padding-left: 12px;
-
-.upload-wrapper {
- font-size: @font-size;
- position: relative;
- display: inline-block;
-}
-
-.upload-wrapper .item-text {
- max-width: 280px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- display: inline-block;
- margin-bottom: 2px;
- font-size: @font-size;
- &.no-progressbar {
- vertical-align: middle;
- }
-}
-
-.upload-wrapper .plx-upload-progressbar {
- margin-top: -13px;
-}
-
-.upload-wrapper .list-group-item {
- border: 0;
- padding: 0;
- & .item {
- width: 335px;
- padding: 0 0 5px 0px;
- & .item-text-wrapper {
- position: relative;
- display: inline-block;
- width: 100%;
- box-sizing: border-box;
- height: 40px;
- padding: 2px 3px 2px 10px;
- border: 1px solid transparent;
- & .text-red {
- color: @error-color !important;
- }
- &:hover {
- background-color: @hover-bg-color;
- cursor: default;
- }
- &:hover .plx-ico-close-16{
- display: block;
- transform: scale(0.8);
- }
- &.no-progressbar {
- height: 28px;
- }
- }
- & .item-delete {
- height: 14px;
- width: 16px;
- text-align: center;
- line-height: 14px;
- position: absolute;
- right: 2%;
- color: #999999;
- display: none;
- top: 3px;
- &:hover {
- cursor: pointer;
- color: darken(#999999, 20%);
- }
- &.no-progressbar {
- top: 6px;
- }
- }
- }
-}
-
-.upload-wrapper .plx-ico-close-16 {
- font-size: 16px;
- float: right;
- cursor: pointer;
-}
-
-.upload-wrapper ul.list-group {
- margin-top: 15px;
-}
-
-.upload-wrapper .url-form-control {
- display: inline-block;
-}
-
-.upload-wrapper .item-detail {
- color: #aaa;
- position: relative;
- padding: 0 10px;
- font-size: 12px;
- & div {
- margin: 0px 0px 15px 0;
- }
- & .detail {
- margin: 5px 0 10px 0;
- }
-}
-
-.upload-wrapper .item-detail-des {
- display: inline-block;
- width: 170px;
- word-wrap: break-word;
- margin-left: 15px;
- vertical-align: top;
-}
-
-.upload-wrapper .item-detail-time {
- display: inline-block;
- width: 119px;
- word-break: break-all;
- vertical-align: top;
-}
-
-.upload-wrapper .selectFile {
- display: inline-block;
- min-width: 50px;
- margin-right: 10px;
- text-align: right;
-}
-
-.upload-wrapper label.raw-container{
- margin: 0 10px;
-}
-
-.upload-wrapper .item-lists{
- font-size: @font-size;
-}
-
-.upload-wrapper .list-container {
- padding-right: 15px;
-
- &.plx-upload-Manual-showdetail {
- margin-left: -10px - @item-padding-left;
- }
-
- &.plx-upload-auto-showdetail {
- margin-left: -10px;
- }
-}
-
-.upload-wrapper .list-footer .upload-btn {
- margin-top: 10px;
-}
-
-.upload-wrapper .upload-btn {
- display: inline-block;
-}
-
-.upload-wrapper .loader-container {
- position: absolute;
- display: inline-block;
- top: 8px;
- left: 12px;
-}
-
-.upload-wrapper .list-group-item-pdleft-s{
- padding: 0px 0px 0px @item-padding-left;
-}
-
-.upload-wrapper .list-group-item-pdleft {
- padding: 0px 0px 0px @item-padding-left !important;
-}
-
-.upload-wrapper .upload-btn-wrapper {
- display: inline-block;
-}
-.upload-wrapper .plx-red.left {
- margin-left: 75px;
-}
-
-.upload-wrapper .expand-wrapper {
- position: absolute;
- left: 20px;
- top: 4px;
- display: inline-block;
- font-size: @font-size;
- &.open .ict-go {
- display: none
- }
- &.open .ict-fold {
- display: block;
- }
- & i {
- height: 18px;
- width: 20px;
- text-align: left;
- line-height: 19px;
- cursor: pointer;
- }
-}
-
-.upload-wrapper .ict-fold {
- display: none;
- color: @primary-color;
- font-weight: bold;
- transform: scale(0.7);
-}
-
-.upload-wrapper .ict-go {
- display: block;
- color: @primary-color;
- font-weight: bold;
- transform: scale(0.7);
-}
-
-.upload-wrapper .no-customparm-extend-wrapper {
- left: -2px !important;
-}
-
-/* loding动画效果*/
-.upload-wrapper .loader {
- font-size: @font-size;
- width: @font-size;
- height: @font-size;
- display: inline-block;
- border-radius: 50%;
- background: @primary-color;
- background: -moz-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
- background: -webkit-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
- background: -o-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
- background: -ms-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
- background: linear-gradient(to right, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
- position: relative;
- -webkit-animation: load3 1.4s infinite linear;
- animation: load3 1.4s infinite linear;
- &:before {
- width: 50%;
- height: 50%;
- background: @primary-color;
- border-radius: 100% 0 0 0;
- position: absolute;
- top: 0;
- left: 0;
- content: '';
- }
- &:after {
- background: @component-bg;
- width: 75%;
- height: 75%;
- border-radius: 50%;
- content: '';
- margin: auto;
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- }
-}
-
-@-webkit-keyframes load3 {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
-@keyframes load3 {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
+///////
+.toolbar {
+
+ i.seperate-vertical {
+ margin-right: 10px;
+ margin-left: 0;
+ border-right: 1px solid @border-color-split;
+ }
+
+ span {
+ color: @text-color;
+ cursor: pointer;
+ margin-right: 10px;
+ font-size: 16px;
+ display: inline-block;
+ width: 28px;
+ height: 28px;
+ border: 1px solid transparent;
+ padding: 5px;
+
+ &:hover {
+ background-color: @hover-bg-color;
+ border-radius: @radius-sm;
+ }
+
+ &:last-child {
+ margin-right: 0px;
+ }
+ }
+}
+
+///////
+
+@tooltip-arrow-border-width: 4px;
+@tooltip-arrow-border-width-before: 5px;
+@tooltip-arrow-border-height: @tooltip-arrow-border-width-before - @tooltip-arrow-border-width;
+@tooltip-arrow-away: 5px;
+@tooltip-arrow-background-color: #595959;
+@tooltip-arrow-border-color: #595959;
+@tooltip-away-host: 3px;
+
+.plx-tooltip {
+ font-family: @font-family;
+ font-size: @font-size;
+ opacity: 1;
+ position: absolute;
+ z-index: 10001;
+ display: block;
+ font-style: normal;
+ font-weight: normal;
+ letter-spacing: normal;
+ line-break: auto;
+ line-height: 1.5;
+ text-align: left;
+ text-decoration: none;
+ text-shadow: none;
+ text-transform: none;
+ white-space: normal;
+ word-break: normal;
+ word-spacing: normal;
+ word-wrap: break-word;
+ &::before,
+ &::after {
+ content: "";
+ position: absolute;
+ display: block;
+ width: 0;
+ height: 0;
+ border: solid transparent;
+ }
+ &::before {
+ border-width: @tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-width: @tooltip-arrow-border-width;
+ }
+}
+
+.plx-tooltip-inner {
+ min-width: 60px;
+ max-width: 200px;
+ padding: 3px 8px;
+ color: #fff;
+ text-align: center;
+ background-color: #000;
+}
+
+.plx-tooltip.show {
+ font-size: @font-size;
+ opacity: 1;
+}
+.plx-tooltip.show .plx-tooltip-inner {
+ background-color: #595959;
+ border-radius: @radius;
+ padding: 0px 12px;
+ height: 30px;
+ line-height: 30px;
+}
+
+.plx-tooltip-top-common {
+ margin-top: -(@tooltip-arrow-border-width + @tooltip-away-host);
+ &::before {
+ border-top-color: @tooltip-arrow-border-color;
+ border-bottom-width: 0;
+ bottom: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-top-color: @tooltip-arrow-background-color;
+ border-bottom-width: 0;
+ bottom: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip-top {
+ .plx-tooltip-top-common;
+ &::before {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-top-left {
+ .plx-tooltip-top-common;
+ &::before {
+ left: @tooltip-arrow-away;
+ }
+ &::after {
+ left: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-top-right {
+ .plx-tooltip-top-common;
+ &::before {
+ right: @tooltip-arrow-away;
+ }
+ &::after {
+ right: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+
+.plx-tooltip-right-common {
+ margin-left: @tooltip-arrow-border-width + @tooltip-away-host;
+ &::before {
+ border-right-color: @tooltip-arrow-border-color;
+ border-left-width: 0;
+ left: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-right-color: @tooltip-arrow-background-color;
+ border-left-width: 0;
+ left: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-right {
+ .plx-tooltip-right-common;
+ &::before {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-right-top {
+ .plx-tooltip-right-common;
+ &::before {
+ top: @tooltip-arrow-away;
+ }
+ &::after {
+ top: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-right-bottom {
+ .plx-tooltip-right-common;
+ &::before {
+ bottom: @tooltip-arrow-away;
+ }
+ &::after {
+ bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+
+.plx-tooltip-bottom-common {
+ margin-top: @tooltip-arrow-border-width + @tooltip-away-host;
+ &::before {
+ border-bottom-color: @tooltip-arrow-border-color;
+ border-top-width: 0;
+ top: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-bottom-color: @tooltip-arrow-background-color;
+ border-top-width: 0;
+ top: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-bottom {
+ .plx-tooltip-bottom-common;
+ &::before {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-bottom-left {
+ .plx-tooltip-bottom-common;
+ &::before {
+ left: @tooltip-arrow-away;
+ }
+ &::after {
+ left: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-bottom-right {
+ .plx-tooltip-bottom-common;
+ &::before {
+ right: @tooltip-arrow-away;
+ }
+ &::after {
+ right: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+
+.plx-tooltip-left-common {
+ margin-left: -(@tooltip-arrow-border-width + @tooltip-away-host);
+ &::before {
+ border-left-color: @tooltip-arrow-border-color;
+ border-right-width: 0;
+ right: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-left-color: @tooltip-arrow-background-color;
+ border-right-width: 0;
+ right: -@tooltip-arrow-border-width;
+ }
+}
+
+.plx-tooltip.plx-tooltip-left {
+ .plx-tooltip-left-common;
+ &::before {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width;
+ }
+}
+
+.plx-tooltip.plx-tooltip-left-top {
+ .plx-tooltip-left-common;
+ &::before {
+ top: @tooltip-arrow-away;
+ }
+ &::after {
+ top: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-left-bottom {
+ .plx-tooltip-left-common;
+ &::before {
+ bottom: @tooltip-arrow-away;
+ }
+ &::after {
+ bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+@checkbox-border-size: 1px;
+
+.plx-checkbox-container {
+ font-size: 0;
+ position: relative;
+}
+
+.plx-checkbox {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+ & + .checkbox-substitute {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ height: @checkbox-size;
+ width: @checkbox-size;
+ border: @checkbox-border-size solid @border-color-base;
+ border-radius: @radius-sm;
+ vertical-align: middle;
+ }
+ & + .checkbox-substitute + span {
+ font-weight: normal;
+ font-size: @font-size;
+ cursor: pointer;
+ vertical-align: middle;
+ .font-padding(@font-size);
+ }
+ &:hover + .checkbox-substitute {
+ border-color: @primary-color;
+ outline: none;
+ background-image: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+ &:checked + .checkbox-substitute {
+ border-color: @primary-color;
+ background-color: @primary-color;
+ &::after {
+ .checkbox-check(@component-bg);
+ }
+ }
+ &:checked.portion + .checkbox-substitute {
+ background-color: @primary-color;
+ border-color: @primary-color;
+ opacity: 0.5;
+ }
+ &:disabled + .checkbox-substitute,
+ &[disabled] + .checkbox-substitute {
+ border-color: @border-color-base;
+ background-color: @input-bg-color-disabled;
+ cursor: not-allowed;
+ }
+ &:disabled + .checkbox-substitute + span,
+ &[disabled] + .checkbox-substitute + span {
+ cursor: not-allowed;
+ }
+ &:checked.portion[disabled] + .checkbox-substitute {
+ background-color: @border-color-base;
+ border-color: @border-color-base;
+ &::after {
+ .checkbox-check(@fonticon-color);
+ }
+ }
+ &:checked[disabled] + .checkbox-substitute {
+ border-color: @border-color-base;
+ background-color: @border-color-base;
+ }
+}
+
+.checkbox-check(@color) {
+ content: '';
+ position: absolute;
+ display: block;
+ width: 6px;
+ height: 10px;
+ border: solid @color;
+ border-width: 0 2px 2px 0;
+ transform: rotate(45deg);
+ .checkbox-check-left(@font-size);
+ top: 0;
+}
+
+.checkbox-check-left(12px) {
+ left: 3px;
+}
+
+.checkbox-check-left(14px) {
+ left: 4px;
+}
+
+.font-padding(12px) {
+ padding-left: 6px;
+}
+
+.font-padding(14px) {
+ padding-left: 10px;
+}
+
+///////
+///////
+
+@tree-node-ul-padding: 21px;
+@margin-right: 10px;
+
+.plx-treenode{
+ cursor: pointer;
+ background-attachment: scroll;
+ background-color: transparent;
+ background-image: none;
+ background-position: 0 0;
+ background-repeat: repeat-y;
+ list-style: none outside none;
+ margin: 0;
+ padding:0;
+ white-space: nowrap;
+ font-size: @font-size;
+
+ .plx-treenode-content{
+ margin-top:10px;
+
+ &.light{
+ margin-top:15px;
+ }
+ }
+}
+
+.plx-treenode ul.plx-treenode-children {
+ display: block;
+ -webkit-padding-start: @tree-node-ul-padding;
+}
+
+.plx-treenode-toggler{
+ font-size: 16px;
+ color: @primary-color;
+ display: inline-block;
+ margin-right: 7px;
+ margin-top:2px;
+ vertical-align: bottom;
+ float: left;
+}
+
+// .plx-treenode-toggler{
+// display: inline-block;
+// margin-right: @margin-right;
+// vertical-align: bottom;
+// }
+
+// .plx-treenode-toggler svg {
+// .plx-treenode-vertical-bottom(@font-size);
+// }
+
+// .plx-treenode-toggler svg .st0 {
+// fill: @primary-color;
+// }
+
+// .plx-treenode-toggler svg .st1 {
+// stroke: @primary-color;
+// }
+
+.plx-treenode-ckbox{
+ float: left;
+ margin-right: @margin-right;
+ margin-top:2px;
+ // .plx-treenode-vertical-bottom(@font-size);
+
+}
+
+.plx-treenode-vertical-bottom(@font-size) when (@font-size = 12px) {
+ vertical-align: bottom;
+ margin-bottom: 3px;
+}
+
+.plx-treenode-vertical-bottom(@font-size) when (@font-size = 14px) {
+ vertical-align: bottom;
+ margin-bottom: 4px;
+}
+
+.plx-treenode-icon{
+ color:@fonticon-color;
+ margin-right: @margin-right;
+ float: left;
+ font-size: 16px;
+ vertical-align: bottom;
+ // .plx-treenode-icon-margin-bottom(@font-size);
+ margin-top: 2px;
+}
+
+.plx-treenode-icon-margin-bottom(@font-size) when (@font-size = 12px) {
+ margin-bottom: 1px;
+}
+
+.plx-treenode-icon-margin-bottom(@font-size) when (@font-size = 14px) {
+ margin-bottom: 2px;
+}
+
+.plx-treenode-label-container{
+ overflow: visible;
+}
+
+.plx-treenode-label-container.plx-treenode-label-ellipsis{
+ overflow:hidden;
+}
+
+.plx-treenode-label-container:hover {
+ background-color: @hover-bg-color;
+}
+
+.plx-treenode-active>div .plx-treenode-label-container {
+ background-color: darken(@hover-bg-color, 2%);
+}
+
+.plx-treenode-active>div .plx-treenode-label-container:hover {
+ background-color: @hover-bg-color;
+}
+
+.plx-treenode-label-container span:last-child{
+ margin-right:5px;
+}
+
+
+.plx-treenode-lable{
+ display: inline-block;
+ vertical-align:0;
+ font-family: @font-family;
+ color:@text-color;
+
+ span {
+ display: inline-block;
+ overflow: hidden;
+ max-width: 100%;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ vertical-align: bottom;
+ }
+}
+
+.plx-treenode-operations{
+ margin-left: 20px;
+ display: none;
+ vertical-align: bottom;
+ width: fit-content;
+ line-height: 1;
+ .plx-treenode-operations-margin-bottom(@font-size);
+}
+
+
+.plx-treenode-operations-margin-bottom(@font-size) when (@font-size = 12px) {
+ margin-bottom: 1px;
+}
+
+.plx-treenode-operations-margin-bottom(@font-size) when (@font-size = 14px) {
+ margin-bottom: 2px;
+}
+
+.plx-treenode-operation{
+ display: inline-block;
+ margin-right: 10px;
+ color:@fonticon-color;
+ font-size: 16px;
+ vertical-align: text-bottom;
+
+ &:hover{
+ color: @primary-color;
+ }
+}
+
+.plx-treenode-label-container:hover .plx-treenode-operations{
+ display:inline-block;
+}
+
+*:focus{
+ outline:none;
+ box-shadow:none !important;
+}
+input[type="checkbox"]:focus{
+ border:0 !important;
+}
+.plx-treenode-hide-tree-toggle{
+ visibility: hidden;
+}
+
+.plx-treenode-droppoint{
+ height: 4px;
+ list-style-type: none;
+}
+.plx-treenode-droppoint-active{
+ background-color: #186ba0;
+ border: 0 none;
+}
+
+
+///////
+
+@item-padding-left: 12px;
+
+.upload-wrapper {
+ font-size: @font-size;
+ position: relative;
+ display: inline-block;
+}
+
+.upload-wrapper .item-text {
+ max-width: 280px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ display: inline-block;
+ margin-bottom: 2px;
+ font-size: @font-size;
+ &.no-progressbar {
+ vertical-align: middle;
+ }
+}
+
+.upload-wrapper .plx-upload-progressbar {
+ margin-top: -13px;
+}
+
+.upload-wrapper .list-group-item {
+ border: 0;
+ padding: 0;
+ & .item {
+ width: 335px;
+ padding: 0 0 5px 0px;
+ & .item-text-wrapper {
+ position: relative;
+ display: inline-block;
+ width: 100%;
+ box-sizing: border-box;
+ height: 40px;
+ padding: 2px 3px 2px 10px;
+ border: 1px solid transparent;
+ & .text-red {
+ color: @error-color !important;
+ }
+ &:hover {
+ background-color: @hover-bg-color;
+ cursor: default;
+ }
+ &:hover .plx-ico-close-16{
+ display: block;
+ transform: scale(0.8);
+ }
+ &.no-progressbar {
+ height: 28px;
+ }
+ }
+ & .item-delete {
+ height: 14px;
+ width: 16px;
+ text-align: center;
+ line-height: 14px;
+ position: absolute;
+ right: 2%;
+ color: #999999;
+ display: none;
+ top: 3px;
+ &:hover {
+ cursor: pointer;
+ color: darken(#999999, 20%);
+ }
+ &.no-progressbar {
+ top: 6px;
+ }
+ }
+ }
+}
+
+.upload-wrapper .plx-ico-close-16 {
+ font-size: 16px;
+ float: right;
+ cursor: pointer;
+}
+
+.upload-wrapper ul.list-group {
+ margin-top: 15px;
+}
+
+.upload-wrapper .url-form-control {
+ display: inline-block;
+}
+
+.upload-wrapper .item-detail {
+ color: #aaa;
+ position: relative;
+ padding: 0 10px;
+ font-size: 12px;
+ & div {
+ margin: 0px 0px 15px 0;
+ }
+ & .detail {
+ margin: 5px 0 10px 0;
+ }
+}
+
+.upload-wrapper .item-detail-des {
+ display: inline-block;
+ width: 170px;
+ word-wrap: break-word;
+ margin-left: 15px;
+ vertical-align: top;
+}
+
+.upload-wrapper .item-detail-time {
+ display: inline-block;
+ width: 119px;
+ word-break: break-all;
+ vertical-align: top;
+}
+
+.upload-wrapper .selectFile {
+ display: inline-block;
+ min-width: 50px;
+ margin-right: 10px;
+ text-align: right;
+}
+
+.upload-wrapper label.raw-container{
+ margin: 0 10px;
+}
+
+.upload-wrapper .item-lists{
+ font-size: @font-size;
+}
+
+.upload-wrapper .list-container {
+ padding-right: 15px;
+
+ &.plx-upload-Manual-showdetail {
+ margin-left: -10px - @item-padding-left;
+ }
+
+ &.plx-upload-auto-showdetail {
+ margin-left: -10px;
+ }
+}
+
+.upload-wrapper .list-footer .upload-btn {
+ margin-top: 10px;
+}
+
+.upload-wrapper .upload-btn {
+ display: inline-block;
+}
+
+.upload-wrapper .loader-container {
+ position: absolute;
+ display: inline-block;
+ top: 8px;
+ left: 12px;
+}
+
+.upload-wrapper .list-group-item-pdleft-s{
+ padding: 0px 0px 0px @item-padding-left;
+}
+
+.upload-wrapper .list-group-item-pdleft {
+ padding: 0px 0px 0px @item-padding-left !important;
+}
+
+.upload-wrapper .upload-btn-wrapper {
+ display: inline-block;
+}
+.upload-wrapper .plx-red.left {
+ margin-left: 75px;
+}
+
+.upload-wrapper .expand-wrapper {
+ position: absolute;
+ left: 20px;
+ top: 4px;
+ display: inline-block;
+ font-size: @font-size;
+ &.open .ict-go {
+ display: none
+ }
+ &.open .ict-fold {
+ display: block;
+ }
+ & i {
+ height: 18px;
+ width: 20px;
+ text-align: left;
+ line-height: 19px;
+ cursor: pointer;
+ }
+}
+
+.upload-wrapper .ict-fold {
+ display: none;
+ color: @primary-color;
+ font-weight: bold;
+ transform: scale(0.7);
+}
+
+.upload-wrapper .ict-go {
+ display: block;
+ color: @primary-color;
+ font-weight: bold;
+ transform: scale(0.7);
+}
+
+.upload-wrapper .no-customparm-extend-wrapper {
+ left: -2px !important;
+}
+
+/* loding动画效果*/
+.upload-wrapper .loader {
+ font-size: @font-size;
+ width: @font-size;
+ height: @font-size;
+ display: inline-block;
+ border-radius: 50%;
+ background: @primary-color;
+ background: -moz-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
+ background: -webkit-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
+ background: -o-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
+ background: -ms-linear-gradient(left, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
+ background: linear-gradient(to right, @primary-color 10%, rgba(255, 255, 255, 0) 85%);
+ position: relative;
+ -webkit-animation: load3 1.4s infinite linear;
+ animation: load3 1.4s infinite linear;
+ &:before {
+ width: 50%;
+ height: 50%;
+ background: @primary-color;
+ border-radius: 100% 0 0 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ content: '';
+ }
+ &:after {
+ background: @component-bg;
+ width: 75%;
+ height: 75%;
+ border-radius: 50%;
+ content: '';
+ margin: auto;
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ }
+}
+
+@-webkit-keyframes load3 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+@keyframes load3 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
///////
.plx-table-customCols{
@@ -4644,383 +4644,383 @@ input::-webkit-input-placeholder{
color: @disabled-text-color;
}
-///////
-
-@padding-normal: 0px 16px;
-@padding-sm: 0px 14px;
-@padding-xs: 0px 12px;
-@min-width-normal: 80px;
-@min-width-sm: 60px;
-@min-width-xs: 60px;
-@btn-margin-right: 10px;
-@btn-margin-right-sm: 5px;
-@btn-margin-right-xs: 5px;
-@btn-border-height: 1px;
-
-.border-min-width(@min-width, 14px) {
- min-width: @min-width + 8px;
-}
-
-.border-min-width(@min-width, 12px) {
- min-width: @min-width;
-}
-
-.background-color-white-color-disabled (@color) when (@color = #fff) {
- color: @disabled-text-color;
- background-color: @common-color;
- border-color: #e9e9e9;
-}
-
-.background-color-white-color-disabled (@color) when not (@color = #fff) {
- border-color: @color;
- background-color: @color;
- opacity: @opacity-disable;
-}
-
-.plx-btn {
- font-family: @font-family;
- color: @common-textcolor;
- .border-min-width(@min-width-normal, @font-size);
- letter-spacing: 1px;
- padding: @padding-normal;
- height: @btn-height;
- font-size: @font-size;
- cursor: pointer;
- text-align: center;
- white-space: nowrap;
- margin-right: @btn-margin-right;
- vertical-align: middle;
- border: @btn-border-height solid @border-color-base;
- background-color: @common-color;
- border-radius: @radius;
- line-height: @btn-height - @btn-border-height * 2;
- &:hover,
- &:disabled,
- &[disabled],
- &:focus,
- &:active {
- outline: none;
- background-image: none;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
- &:hover,
- &:focus {
- color: @btn-common-color-text-hover;
- border-color: @btn-common-color-border-hover;
- background-color: @common-color-hover;
- }
- &:active {
- color: @btn-common-color-text-click;
- border-color: @btn-common-color-border-click;
- background-color: @common-color-click;
- }
- &:disabled,
- &[disabled] {
- .background-color-white-color-disabled(@common-color);
- }
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- .background-color-white-color-disabled(@common-color);
- cursor: not-allowed;
- }
- & .plx-btn-icon {
- font-size: 16px;
- vertical-align: text-top;
- margin-right: 3px;
- }
-}
-
-.plx-btn-primary {
- background-color: @primary-color;
- color: @scene-textcolor;
- border-color: @primary-color;
- &:hover,
- &:focus {
- color: @scene-textcolor;
- background-color: @primary-color-hover;
- border-color: @primary-color-hover;
- }
- &:active {
- color: @scene-textcolor;
- background-color: @primary-color-click;
- border-color: @primary-color-click;
- }
- &:disabled,
- &[disabled],
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- color: @scene-textcolor;
- .background-color-white-color-disabled(@primary-color);
- }
-}
-
-.plx-btn-guide {
- background-color: @guide-color;
- color: @scene-textcolor;
- border-color: @guide-color;
- &:hover,
- &:focus {
- color: @scene-textcolor;
- background-color: @primary-color-guide-hover;
- border-color: @primary-color-guide-hover;
- }
- &:active {
- color: @scene-textcolor;
- background-color: @primary-color-guide-click;
- border-color: @primary-color-guide-click;
- }
- &:disabled,
- &[disabled],
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- color: @scene-textcolor;
- .background-color-white-color-disabled(@guide-color);
- }
-}
-
-.plx-btn-table {
- color: @text-color;
-}
-
-.plx-btn-error {
- background-color: @error-color;
- color: @scene-textcolor;
- border-color: @error-color;
- &:hover,
- &:focus {
- color: @scene-textcolor;
- background-color: @error-color-hover;
- border-color: @error-color-hover;
- }
- &:active {
- color: @scene-textcolor;
- background-color: @error-color-click;
- border-color: @error-color-click;
- }
- &:disabled,
- &[disabled],
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- color: @scene-textcolor;
- .background-color-white-color-disabled(@error-color);
- }
-}
-
-.plx-btn-sm {
- height: @btn-height-sm;
- padding: @padding-sm;
- .border-min-width(@min-width-sm, @font-size);
- margin-right: @btn-margin-right-sm;
- line-height: @btn-height-sm - @btn-border-height * 2;
-}
-
-.plx-btn-xs{
- height: @btn-height-xs;
- padding: @padding-xs;
- .border-min-width(@min-width-xs, @font-size);
- margin-right: @btn-margin-right-xs;
- line-height: @btn-height-xs - @btn-border-height * 2;
-}
-
-.plx-btn.dropdown-toggle {
- margin-right: 0;
- outline: none !important;
- background-image: none !important;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
-}
-
-.plx-btn.dropdown-toggle::after {
- margin-left: 16px;
- border-top: 4px solid;
- border-right: 4px solid transparent;
- border-left: 4px solid transparent;
- color: darken(@border-color-base, 10%);
- margin-bottom: 1px;
-}
-
-.plx-btn-sm.dropdown-toggle::after {
- margin-left: 14px;
-}
-
-.plx-btn-xs.dropdown-toggle::after {
- margin-left: 12px;
-}
-
-.plx-btn+.dropdown-menu {
- margin: 0;
- padding: 0;
- border: 0;
- min-width: 100%;
- font-size: @font-size;
- border-radius: @radius;
- .shadow;
- & .dropdown-item {
- background-color: @component-bg;
- color: @text-color;
- font-size: @font-size;
- padding: @padding-normal;
- height: 30px;
- cursor: pointer;
- &:hover,
- &:focus,
- &:active{
- outline: none;
- background-color: @hover-bg-color;
- }
- &:disabled,
- &[disabled] {
- color: @disabled-text-color;
- }
- &:disabled:hover,
- &[disabled]:hover,
- &:disabled:focus,
- &[disabled]:focus {
- cursor: not-allowed;
- background-color: @component-bg;
- }
- }
-}
-
-.plx-btn-sm+.dropdown-menu .dropdown-item {
- padding: @padding-sm;
-}
-.plx-btn-xs+.dropdown-menu .dropdown-item {
- padding: @padding-xs;
-}
-
-.plx-btn-more {
- display: inline-block;
- margin-right: @btn-margin-right;
-}
-
-.plx-btn-more-sm {
- margin-right: @btn-margin-right-sm;
-}
-
-.plx-btn-more-xs {
- margin-right: @btn-margin-right-xs;
-}
-///////
-
-@checkbox-border-size: 1px;
-
-.plx-checkbox-container {
- font-size: 0;
- position: relative;
-}
-
-.plx-checkbox {
- position: absolute;
- z-index: -1;
- opacity: 0;
- & + .checkbox-substitute {
- position: relative;
- display: inline-block;
- cursor: pointer;
- height: @checkbox-size;
- width: @checkbox-size;
- border: @checkbox-border-size solid @border-color-base;
- border-radius: @radius-sm;
- vertical-align: middle;
- }
- & + .checkbox-substitute + span {
- font-weight: normal;
- font-size: @font-size;
- cursor: pointer;
- vertical-align: middle;
- .font-padding(@font-size);
- }
- &:hover + .checkbox-substitute {
- border-color: @primary-color;
- outline: none;
- background-image: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
- &:checked + .checkbox-substitute {
- border-color: @primary-color;
- background-color: @primary-color;
- &::after {
- .checkbox-check(@component-bg);
- }
- }
- &.portion + .checkbox-substitute {
- background-color: @primary-color;
- border-color: @primary-color;
- opacity: 0.5;
- &::after {
- .checkbox-check(@component-bg);
- }
- }
- &:disabled + .checkbox-substitute,
- &[disabled] + .checkbox-substitute {
- border-color: @border-color-base;
- background-color: @input-bg-color-disabled;
- cursor: not-allowed;
- }
- &:disabled + .checkbox-substitute + span,
- &[disabled] + .checkbox-substitute + span {
- cursor: not-allowed;
- }
- &.portion[disabled] + .checkbox-substitute {
- background-color: @border-color-base;
- border-color: @border-color-base;
- &::after {
- .checkbox-check(@fonticon-color);
- }
- }
- &:checked[disabled] + .checkbox-substitute {
- border-color: @border-color-base;
- background-color: @border-color-base;
- }
-}
-
-.checkbox-check(@color) {
- content: '';
- position: absolute;
- display: block;
- width: 6px;
- height: 10px;
- border: solid @color;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- .checkbox-check-left(@font-size);
- top: 0;
-}
-
-.checkbox-check-left(12px) {
- left: 3px;
-}
-
-.checkbox-check-left(14px) {
- left: 4px;
-}
-
-.font-padding(12px) {
- padding-left: 6px;
-}
-
-.font-padding(14px) {
- padding-left: 10px;
-}
+///////
+
+@padding-normal: 0px 16px;
+@padding-sm: 0px 14px;
+@padding-xs: 0px 12px;
+@min-width-normal: 80px;
+@min-width-sm: 60px;
+@min-width-xs: 60px;
+@btn-margin-right: 10px;
+@btn-margin-right-sm: 5px;
+@btn-margin-right-xs: 5px;
+@btn-border-height: 1px;
+
+.border-min-width(@min-width, 14px) {
+ min-width: @min-width + 8px;
+}
+
+.border-min-width(@min-width, 12px) {
+ min-width: @min-width;
+}
+
+.background-color-white-color-disabled (@color) when (@color = #fff) {
+ color: @disabled-text-color;
+ background-color: @common-color;
+ border-color: #e9e9e9;
+}
+
+.background-color-white-color-disabled (@color) when not (@color = #fff) {
+ border-color: @color;
+ background-color: @color;
+ opacity: @opacity-disable;
+}
+
+.plx-btn {
+ font-family: @font-family;
+ color: @common-textcolor;
+ .border-min-width(@min-width-normal, @font-size);
+ letter-spacing: 1px;
+ padding: @padding-normal;
+ height: @btn-height;
+ font-size: @font-size;
+ cursor: pointer;
+ text-align: center;
+ white-space: nowrap;
+ margin-right: @btn-margin-right;
+ vertical-align: middle;
+ border: @btn-border-height solid @border-color-base;
+ background-color: @common-color;
+ border-radius: @radius;
+ line-height: @btn-height - @btn-border-height * 2;
+ &:hover,
+ &:disabled,
+ &[disabled],
+ &:focus,
+ &:active {
+ outline: none;
+ background-image: none;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+ &:hover,
+ &:focus {
+ color: @btn-common-color-text-hover;
+ border-color: @btn-common-color-border-hover;
+ background-color: @common-color-hover;
+ }
+ &:active {
+ color: @btn-common-color-text-click;
+ border-color: @btn-common-color-border-click;
+ background-color: @common-color-click;
+ }
+ &:disabled,
+ &[disabled] {
+ .background-color-white-color-disabled(@common-color);
+ }
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ .background-color-white-color-disabled(@common-color);
+ cursor: not-allowed;
+ }
+ & .plx-btn-icon {
+ font-size: 16px;
+ vertical-align: text-top;
+ margin-right: 3px;
+ }
+}
+
+.plx-btn-primary {
+ background-color: @primary-color;
+ color: @scene-textcolor;
+ border-color: @primary-color;
+ &:hover,
+ &:focus {
+ color: @scene-textcolor;
+ background-color: @primary-color-hover;
+ border-color: @primary-color-hover;
+ }
+ &:active {
+ color: @scene-textcolor;
+ background-color: @primary-color-click;
+ border-color: @primary-color-click;
+ }
+ &:disabled,
+ &[disabled],
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ color: @scene-textcolor;
+ .background-color-white-color-disabled(@primary-color);
+ }
+}
+
+.plx-btn-guide {
+ background-color: @guide-color;
+ color: @scene-textcolor;
+ border-color: @guide-color;
+ &:hover,
+ &:focus {
+ color: @scene-textcolor;
+ background-color: @primary-color-guide-hover;
+ border-color: @primary-color-guide-hover;
+ }
+ &:active {
+ color: @scene-textcolor;
+ background-color: @primary-color-guide-click;
+ border-color: @primary-color-guide-click;
+ }
+ &:disabled,
+ &[disabled],
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ color: @scene-textcolor;
+ .background-color-white-color-disabled(@guide-color);
+ }
+}
+
+.plx-btn-table {
+ color: @text-color;
+}
+
+.plx-btn-error {
+ background-color: @error-color;
+ color: @scene-textcolor;
+ border-color: @error-color;
+ &:hover,
+ &:focus {
+ color: @scene-textcolor;
+ background-color: @error-color-hover;
+ border-color: @error-color-hover;
+ }
+ &:active {
+ color: @scene-textcolor;
+ background-color: @error-color-click;
+ border-color: @error-color-click;
+ }
+ &:disabled,
+ &[disabled],
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ color: @scene-textcolor;
+ .background-color-white-color-disabled(@error-color);
+ }
+}
+
+.plx-btn-sm {
+ height: @btn-height-sm;
+ padding: @padding-sm;
+ .border-min-width(@min-width-sm, @font-size);
+ margin-right: @btn-margin-right-sm;
+ line-height: @btn-height-sm - @btn-border-height * 2;
+}
+
+.plx-btn-xs{
+ height: @btn-height-xs;
+ padding: @padding-xs;
+ .border-min-width(@min-width-xs, @font-size);
+ margin-right: @btn-margin-right-xs;
+ line-height: @btn-height-xs - @btn-border-height * 2;
+}
+
+.plx-btn.dropdown-toggle {
+ margin-right: 0;
+ outline: none !important;
+ background-image: none !important;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+}
+
+.plx-btn.dropdown-toggle::after {
+ margin-left: 16px;
+ border-top: 4px solid;
+ border-right: 4px solid transparent;
+ border-left: 4px solid transparent;
+ color: darken(@border-color-base, 10%);
+ margin-bottom: 1px;
+}
+
+.plx-btn-sm.dropdown-toggle::after {
+ margin-left: 14px;
+}
+
+.plx-btn-xs.dropdown-toggle::after {
+ margin-left: 12px;
+}
+
+.plx-btn+.dropdown-menu {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ min-width: 100%;
+ font-size: @font-size;
+ border-radius: @radius;
+ .shadow;
+ & .dropdown-item {
+ background-color: @component-bg;
+ color: @text-color;
+ font-size: @font-size;
+ padding: @padding-normal;
+ height: 30px;
+ cursor: pointer;
+ &:hover,
+ &:focus,
+ &:active{
+ outline: none;
+ background-color: @hover-bg-color;
+ }
+ &:disabled,
+ &[disabled] {
+ color: @disabled-text-color;
+ }
+ &:disabled:hover,
+ &[disabled]:hover,
+ &:disabled:focus,
+ &[disabled]:focus {
+ cursor: not-allowed;
+ background-color: @component-bg;
+ }
+ }
+}
+
+.plx-btn-sm+.dropdown-menu .dropdown-item {
+ padding: @padding-sm;
+}
+.plx-btn-xs+.dropdown-menu .dropdown-item {
+ padding: @padding-xs;
+}
+
+.plx-btn-more {
+ display: inline-block;
+ margin-right: @btn-margin-right;
+}
+
+.plx-btn-more-sm {
+ margin-right: @btn-margin-right-sm;
+}
+
+.plx-btn-more-xs {
+ margin-right: @btn-margin-right-xs;
+}
+///////
+
+@checkbox-border-size: 1px;
+
+.plx-checkbox-container {
+ font-size: 0;
+ position: relative;
+}
+
+.plx-checkbox {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+ & + .checkbox-substitute {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ height: @checkbox-size;
+ width: @checkbox-size;
+ border: @checkbox-border-size solid @border-color-base;
+ border-radius: @radius-sm;
+ vertical-align: middle;
+ }
+ & + .checkbox-substitute + span {
+ font-weight: normal;
+ font-size: @font-size;
+ cursor: pointer;
+ vertical-align: middle;
+ .font-padding(@font-size);
+ }
+ &:hover + .checkbox-substitute {
+ border-color: @primary-color;
+ outline: none;
+ background-image: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+ &:checked + .checkbox-substitute {
+ border-color: @primary-color;
+ background-color: @primary-color;
+ &::after {
+ .checkbox-check(@component-bg);
+ }
+ }
+ &.portion + .checkbox-substitute {
+ background-color: @primary-color;
+ border-color: @primary-color;
+ opacity: 0.5;
+ &::after {
+ .checkbox-check(@component-bg);
+ }
+ }
+ &:disabled + .checkbox-substitute,
+ &[disabled] + .checkbox-substitute {
+ border-color: @border-color-base;
+ background-color: @input-bg-color-disabled;
+ cursor: not-allowed;
+ }
+ &:disabled + .checkbox-substitute + span,
+ &[disabled] + .checkbox-substitute + span {
+ cursor: not-allowed;
+ }
+ &.portion[disabled] + .checkbox-substitute {
+ background-color: @border-color-base;
+ border-color: @border-color-base;
+ &::after {
+ .checkbox-check(@fonticon-color);
+ }
+ }
+ &:checked[disabled] + .checkbox-substitute {
+ border-color: @border-color-base;
+ background-color: @border-color-base;
+ }
+}
+
+.checkbox-check(@color) {
+ content: '';
+ position: absolute;
+ display: block;
+ width: 6px;
+ height: 10px;
+ border: solid @color;
+ border-width: 0 2px 2px 0;
+ transform: rotate(45deg);
+ .checkbox-check-left(@font-size);
+ top: 0;
+}
+
+.checkbox-check-left(12px) {
+ left: 3px;
+}
+
+.checkbox-check-left(14px) {
+ left: 4px;
+}
+
+.font-padding(12px) {
+ padding-left: 6px;
+}
+
+.font-padding(14px) {
+ padding-left: 10px;
+}
///////
///////
@@ -5256,194 +5256,194 @@ input::-webkit-input-placeholder{
}
-///////
-
-.plx-input {
- font-size: @font-size;
- height: @input-height;
- padding-left: 10px;
- padding-right: 10px;
- outline: 0;
- border: 1px solid @border-color-base;
- border-radius: @radius;
- vertical-align: middle;
- &:focus {
- border: 1px solid @primary-color;
- }
- &:disabled,
- &[disabled] {
- cursor: not-allowed;
- background-color: @input-bg-color-disabled;
- }
-}
-
-.plx-input-sm {
- height: @input-height-sm;
-}
-
-.plx-input-right-no-radius {
- border-bottom-right-radius: 0;
- border-top-right-radius: 0;
-}
-///////
-
-.plx-radio-container {
- font-size: 0;
- position: relative;
-}
-
-.plx-radio {
- position: absolute;
- z-index: -1;
- opacity: 0;
- & + .radio-substitute {
- position: relative;
- display: inline-block;
- cursor: pointer;
- height: @checkbox-size;
- width: @checkbox-size;
- border: 1px solid @border-color-base;
- border-radius: @checkbox-size;
- vertical-align: middle;
- }
- &:hover + .radio-substitute,
- &:focus + .radio-substitute {
- border-color: @primary-color;
- outline: none;
- background-image: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
- &:checked + .radio-substitute {
- .radio-boder-checked-width(@font-size);
- }
- &:disabled + .radio-substitute,
- &[disabled] + .radio-substitute {
- border-color: @border-color-base;
- background-color: @input-bg-color-disabled;
- cursor: not-allowed;
- }
- &:checked [disabled] + .radio-substitute {
- border-color: @border-color-split;
- background-color: @border-color-split;
- cursor: not-allowed;
- }
- & + .radio-substitute + span {
- font-weight: normal;
- font-size: @font-size;
- cursor: pointer;
- vertical-align: middle;
- .font-padding(@font-size);
- }
- &:disabled + .radio-substitute + span,
- &[disabled] + .radio-substitute + span {
- cursor: not-allowed;
- }
-}
-
-.radio-boder-checked-width(12px) {
- border: 4px solid @primary-color;
-}
-
-.radio-boder-checked-width(14px) {
- border: 5px solid @primary-color;
-}
-
-.font-padding(12px) {
- padding-left: 6px;
-}
-
-.font-padding(14px) {
- padding-left: 10px;
-}
-
-/*radio-group*/
-
-@radio-group-border-height: 1px;
-@padding-normal: 0px 16px;
-@padding-sm: 0px 14px;
-@min-width-normal: 80px;
-@min-width-sm: 60px;
-
-.border-min-width(@min-width, 14px) {
- min-width: @min-width + 8px;
-}
-
-.border-min-width(@min-width, 12px) {
- min-width: @min-width;
-}
-
-.btn.dropdown-toggle,
-.btn-group .btn.dropdown-toggle,
-.btn:hover,
-.btn:disabled,
-.btn[disabled],
-.btn:focus,
-.btn:active,
-.btn.active {
- outline: none !important;
- background-image: none !important;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
-}
-
-.plx-radio-group {
- cursor: pointer;
- font-size: @font-size;
- height: @btn-height;
- background-color: @common-color;
- border: @radio-group-border-height solid @border-color-base;
- color: @text-color;
- border-radius: @radius;
- padding: @padding-normal;
- .border-min-width(@min-width-normal, @font-size);
- transition: none;
- &:hover,
- &:focus,
- &:active {
- outline: none;
- background-image: none;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
- }
-
- &:hover,
- &:focus {
- color: @btn-common-color-text-hover;
- border-color: @btn-common-color-border-hover;
- background-color: @common-color-hover;
- }
- &:active {
- color: @btn-common-color-text-click;
- border-color: @btn-common-color-border-click;
- background-color: @common-color-click;
- }
- &.active {
- background-color: @primary-color;
- color: @scene-textcolor;
- border-color: @primary-color;
- }
- & > span {
- line-height: @btn-height - @radio-group-border-height * 2;
- }
-}
-
-.plx-radio-group-sm {
- height: @btn-height-sm;
- padding: @padding-sm;
- .border-min-width(@min-width-sm, @font-size);
- & > span {
- line-height: @btn-height-sm - @radio-group-border-height * 2;
- }
-}
+///////
+
+.plx-input {
+ font-size: @font-size;
+ height: @input-height;
+ padding-left: 10px;
+ padding-right: 10px;
+ outline: 0;
+ border: 1px solid @border-color-base;
+ border-radius: @radius;
+ vertical-align: middle;
+ &:focus {
+ border: 1px solid @primary-color;
+ }
+ &:disabled,
+ &[disabled] {
+ cursor: not-allowed;
+ background-color: @input-bg-color-disabled;
+ }
+}
+
+.plx-input-sm {
+ height: @input-height-sm;
+}
+
+.plx-input-right-no-radius {
+ border-bottom-right-radius: 0;
+ border-top-right-radius: 0;
+}
+///////
+
+.plx-radio-container {
+ font-size: 0;
+ position: relative;
+}
+
+.plx-radio {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+ & + .radio-substitute {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ height: @checkbox-size;
+ width: @checkbox-size;
+ border: 1px solid @border-color-base;
+ border-radius: @checkbox-size;
+ vertical-align: middle;
+ }
+ &:hover + .radio-substitute,
+ &:focus + .radio-substitute {
+ border-color: @primary-color;
+ outline: none;
+ background-image: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+ &:checked + .radio-substitute {
+ .radio-boder-checked-width(@font-size);
+ }
+ &:disabled + .radio-substitute,
+ &[disabled] + .radio-substitute {
+ border-color: @border-color-base;
+ background-color: @input-bg-color-disabled;
+ cursor: not-allowed;
+ }
+ &:checked [disabled] + .radio-substitute {
+ border-color: @border-color-split;
+ background-color: @border-color-split;
+ cursor: not-allowed;
+ }
+ & + .radio-substitute + span {
+ font-weight: normal;
+ font-size: @font-size;
+ cursor: pointer;
+ vertical-align: middle;
+ .font-padding(@font-size);
+ }
+ &:disabled + .radio-substitute + span,
+ &[disabled] + .radio-substitute + span {
+ cursor: not-allowed;
+ }
+}
+
+.radio-boder-checked-width(12px) {
+ border: 4px solid @primary-color;
+}
+
+.radio-boder-checked-width(14px) {
+ border: 5px solid @primary-color;
+}
+
+.font-padding(12px) {
+ padding-left: 6px;
+}
+
+.font-padding(14px) {
+ padding-left: 10px;
+}
+
+/*radio-group*/
+
+@radio-group-border-height: 1px;
+@padding-normal: 0px 16px;
+@padding-sm: 0px 14px;
+@min-width-normal: 80px;
+@min-width-sm: 60px;
+
+.border-min-width(@min-width, 14px) {
+ min-width: @min-width + 8px;
+}
+
+.border-min-width(@min-width, 12px) {
+ min-width: @min-width;
+}
+
+.btn.dropdown-toggle,
+.btn-group .btn.dropdown-toggle,
+.btn:hover,
+.btn:disabled,
+.btn[disabled],
+.btn:focus,
+.btn:active,
+.btn.active {
+ outline: none !important;
+ background-image: none !important;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+}
+
+.plx-radio-group {
+ cursor: pointer;
+ font-size: @font-size;
+ height: @btn-height;
+ background-color: @common-color;
+ border: @radio-group-border-height solid @border-color-base;
+ color: @text-color;
+ border-radius: @radius;
+ padding: @padding-normal;
+ .border-min-width(@min-width-normal, @font-size);
+ transition: none;
+ &:hover,
+ &:focus,
+ &:active {
+ outline: none;
+ background-image: none;
+ filter: none;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ text-shadow: none;
+ }
+
+ &:hover,
+ &:focus {
+ color: @btn-common-color-text-hover;
+ border-color: @btn-common-color-border-hover;
+ background-color: @common-color-hover;
+ }
+ &:active {
+ color: @btn-common-color-text-click;
+ border-color: @btn-common-color-border-click;
+ background-color: @common-color-click;
+ }
+ &.active {
+ background-color: @primary-color;
+ color: @scene-textcolor;
+ border-color: @primary-color;
+ }
+ & > span {
+ line-height: @btn-height - @radio-group-border-height * 2;
+ }
+}
+
+.plx-radio-group-sm {
+ height: @btn-height-sm;
+ padding: @padding-sm;
+ .border-min-width(@min-width-sm, @font-size);
+ & > span {
+ line-height: @btn-height-sm - @radio-group-border-height * 2;
+ }
+}
///////
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/NIV-theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/NIV-theme.less
index 607c7174..607c7174 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/NIV-theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/NIV-theme.less
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.css
index 6347a525..6347a525 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.less
index b19e0907..b19e0907 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/assets/themes/default/theme.less
diff --git a/sdc-workflow-designer-ui/src/app/paletx/common/shared.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/common/shared.ts
index e0d9bdb5..e0d9bdb5 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/common/shared.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/common/shared.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/boolean-field-value.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/boolean-field-value.ts
index dc1f86e2..dc1f86e2 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/boolean-field-value.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/boolean-field-value.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/domhandler.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/domhandler.ts
index fd700a9b..fd700a9b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/domhandler.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/domhandler.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/number-wrapper-parse.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/number-wrapper-parse.ts
index ceccd92e..ceccd92e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/number-wrapper-parse.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/number-wrapper-parse.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/fullscreen-overlay-container.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/fullscreen-overlay-container.ts
index 0eca202d..0eca202d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/fullscreen-overlay-container.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/fullscreen-overlay-container.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/generic-component-type.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/generic-component-type.ts
index 523bd428..523bd428 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/generic-component-type.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/generic-component-type.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/index.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/index.ts
index e02bc3cc..e02bc3cc 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/index.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/index.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-container.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-container.ts
index fbb37c7e..fbb37c7e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-container.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-container.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-directives.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-directives.ts
index 5b8c1623..5b8c1623 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-directives.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-directives.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-position-map.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-position-map.ts
index 8ce53850..8ce53850 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-position-map.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-position-map.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-ref.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-ref.ts
index 03c8c2b5..03c8c2b5 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-ref.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-ref.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-state.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-state.ts
index 73d6b54d..73d6b54d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-state.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay-state.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay.ts
index 5995201b..5995201b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/overlay.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position-strategy.ts
index d144c81f..d144c81f 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts
index dad3f04e..dad3f04e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/connected-position.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/fake-viewport-ruler.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/fake-viewport-ruler.ts
index 698aed1d..698aed1d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/fake-viewport-ruler.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/fake-viewport-ruler.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/free-position-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/free-position-strategy.ts
index bd33e404..bd33e404 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/free-position-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/free-position-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/global-position-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/global-position-strategy.ts
index 8e3204a9..8e3204a9 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/global-position-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/global-position-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/overlay-position-builder.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/overlay-position-builder.ts
index 0f6735eb..0f6735eb 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/overlay-position-builder.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/overlay-position-builder.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/position-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/position-strategy.ts
index 21bd0fa0..21bd0fa0 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/position-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/position-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/viewport-ruler.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/viewport-ruler.ts
index 298cd642..298cd642 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/viewport-ruler.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/viewport-ruler.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/block-scroll-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/block-scroll-strategy.ts
index d1c1d401..d1c1d401 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/block-scroll-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/block-scroll-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/close-scroll-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/close-scroll-strategy.ts
index 51189dc1..51189dc1 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/close-scroll-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/close-scroll-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/index.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/index.ts
index e386770b..e386770b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/index.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/index.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/noop-scroll-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/noop-scroll-strategy.ts
index 9b92ab49..9b92ab49 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/noop-scroll-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/noop-scroll-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/reposition-scroll-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/reposition-scroll-strategy.ts
index b15d5dea..b15d5dea 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/reposition-scroll-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/reposition-scroll-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-dispatcher.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-dispatcher.ts
index 2c145af5..2c145af5 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-dispatcher.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-dispatcher.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy-options.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy-options.ts
index f6270388..f6270388 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy-options.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy-options.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy.ts
index d59651a7..d59651a7 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scroll-strategy.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scrollable.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scrollable.ts
index fe7b041c..fe7b041c 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scrollable.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlay/scroll/scrollable.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/index.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/index.ts
index 4ad2b4a3..4ad2b4a3 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/index.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/index.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/overlaypanel.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/overlaypanel.ts
index ee529c5f..ee529c5f 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/overlaypanel.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/overlaypanel/overlaypanel.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button-state.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button-state.ts
index 2f1f73b2..2f1f73b2 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button-state.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button-state.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.directive.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.directive.ts
index 842b9fb4..842b9fb4 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.directive.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.directive.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.module.ts
index 01973295..01973295 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/button.module.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/index.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/index.ts
index f435b247..f435b247 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/index.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/pxbutton/index.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/select.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/select.service.ts
index ba6f579e..ba6f579e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/select.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/select.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/core/uuid.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/uuid.ts
index 58756b63..58756b63 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/core/uuid.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/core/uuid.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/numberedFixLen.pipe.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/numberedFixLen.pipe.ts
index 9d26b16f..9d26b16f 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/numberedFixLen.pipe.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/numberedFixLen.pipe.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.css
index 02983835..02983835 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.html
index 8e4102c2..8e4102c2 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.html
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.less
index 8e50660b..8e50660b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.less
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.ts
index 493e0cb2..493e0cb2 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.module.ts
index 0511ad71..0511ad71 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/picker.module.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.css
index 2fb5b2b4..2fb5b2b4 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.css
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.html
index 2b1986fe..2b1986fe 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.html
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.ts
index a84e0987..a84e0987 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/pickerrange.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover-config.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover-config.ts
index 5ac773c5..5ac773c5 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover-config.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover-config.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover.ts
index 3d054120..3d054120 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/popover.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/time.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/time.ts
index ab31a498..ab31a498 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/time.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/time.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker-config.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker-config.ts
index 8b752866..8b752866 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker-config.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker-config.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.less
index 60acfa6b..60acfa6b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.less
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.ts
index 45dd7a4a..45dd7a4a 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/timepicker.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/popup.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/popup.ts
index 56c26d62..56c26d62 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/popup.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/popup.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/positioning.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/positioning.ts
index ed9005c1..ed9005c1 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/positioning.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/positioning.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/triggers.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/triggers.ts
index 8197de5b..8197de5b 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/triggers.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/triggers.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts
index fcabe960..fcabe960 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.spec.ts
index 887b66e4..887b66e4 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.ts
index 07e2ff84..07e2ff84 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-backdrop.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-dismiss-reasons.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-dismiss-reasons.ts
index 08395852..08395852 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-dismiss-reasons.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-dismiss-reasons.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-ref.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-ref.ts
index 061dc70e..061dc70e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-ref.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-ref.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-stack.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-stack.ts
index 37f5b171..37f5b171 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-stack.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-stack.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.spec.ts
index 5767bfee..5767bfee 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.ts
index eda5b39f..eda5b39f 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal-window.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.less
index c17a7fd1..5868749c 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.less
@@ -1,125 +1,125 @@
-@import "../../assets/components/themes/default/theme.less";
-
-plx-modal-window {
- .modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- display: none;
- outline: 0;
- z-index: 10000;
- }
- .modal-dialog {
- position: relative;
- max-width: 600px;
- margin: 30px auto;
- &.modal-sm {
- max-width: 600px;
- }
- &.modal-lg {
- max-width: 1000px;
- }
- }
- .modal-content {
- position: relative;
- display: flex;
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- -ms-flex-direction: column;
- flex-direction: column;
- background-color: @component-bg;
- background-clip: padding-box;
- border-radius: @radius;
- box-shadow: 0 5px 15px @shadow-color;
- outline: 0;
- .modal-header {
- border-bottom: 0;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- padding: 15px;
- }
- .modal-body {
- .form-group:last-child, form:last-child {
- margin-bottom: 0;
- }
- }
- .modal-footer {
- display: block;
- border-top: 0;
- margin-top: 0;
- padding: 0 15px 15px 15px;
- }
- .modal-title {
- font-size: @font-size-title-level1;
- margin-bottom: 0;
- line-height: 1.5;
- }
- .modal-btn {
- text-align: center;
- font-size: 0;
- }
- }
- .close {
- color: @fonticon-color;
- font-size: @font-size-title-level2;
- text-shadow: none;
- width: 24px;
- height: 24px;
- background: @scene-textcolor;
- border-radius: 20px;
- padding-bottom: 2px;
- outline: none;
- &:hover {
- color: @fonticon-color;
- background: @fonticon-bg-color-hover;
- }
- }
- .alert-modal {
- &.row {
- margin-left: 100px;
- margin-bottom: 30px;
- text-align: left;
- .tip-img {
- display: inline-block;
- width: 52px;
- height: 52px;
- border-radius: 50px;
- font-size: 45px;
- text-align: center;
- line-height: 1;
- margin-top: -5px;
- margin-right: 15px;
- &::before {
- content: "!";
- }
- }
- .tip-info {
- width: 300px;
- .alert-title {
- font-size: @font-size-title-level2;
- color: @title-text-color;
- }
- .alert-result {
- margin-top: 5px;
- font-size: @font-size;
- color: @unselected-text-color;
- }
- }
- .warning {
- border: 3px solid @warning-color;
- color: @warning-color;
- }
- .error {
- border: 3px solid @error-color;
- color: @error-color;
- }
- }
- }
+@import "../../assets/components/themes/default/theme.less";
+
+plx-modal-window {
+ .modal {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ display: none;
+ outline: 0;
+ z-index: 10000;
+ }
+ .modal-dialog {
+ position: relative;
+ max-width: 600px;
+ margin: 30px auto;
+ &.modal-sm {
+ max-width: 600px;
+ }
+ &.modal-lg {
+ max-width: 1000px;
+ }
+ }
+ .modal-content {
+ position: relative;
+ display: flex;
+ -webkit-box-orient: vertical;
+ -webkit-box-direction: normal;
+ -ms-flex-direction: column;
+ flex-direction: column;
+ background-color: @component-bg;
+ background-clip: padding-box;
+ border-radius: @radius;
+ box-shadow: 0 5px 15px @shadow-color;
+ outline: 0;
+ .modal-header {
+ border-bottom: 0;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: justify;
+ -ms-flex-pack: justify;
+ justify-content: space-between;
+ padding: 15px;
+ }
+ .modal-body {
+ .form-group:last-child, form:last-child {
+ margin-bottom: 0;
+ }
+ }
+ .modal-footer {
+ display: block;
+ border-top: 0;
+ margin-top: 0;
+ padding: 0 15px 15px 15px;
+ }
+ .modal-title {
+ font-size: @font-size-title-level1;
+ margin-bottom: 0;
+ line-height: 1.5;
+ }
+ .modal-btn {
+ text-align: center;
+ font-size: 0;
+ }
+ }
+ .close {
+ color: @fonticon-color;
+ font-size: @font-size-title-level2;
+ text-shadow: none;
+ width: 24px;
+ height: 24px;
+ background: @scene-textcolor;
+ border-radius: 20px;
+ padding-bottom: 2px;
+ outline: none;
+ &:hover {
+ color: @fonticon-color;
+ background: @fonticon-bg-color-hover;
+ }
+ }
+ .alert-modal {
+ &.row {
+ margin-left: 100px;
+ margin-bottom: 30px;
+ text-align: left;
+ .tip-img {
+ display: inline-block;
+ width: 52px;
+ height: 52px;
+ border-radius: 50px;
+ font-size: 45px;
+ text-align: center;
+ line-height: 1;
+ margin-top: -5px;
+ margin-right: 15px;
+ &::before {
+ content: "!";
+ }
+ }
+ .tip-info {
+ width: 300px;
+ .alert-title {
+ font-size: @font-size-title-level2;
+ color: @title-text-color;
+ }
+ .alert-result {
+ margin-top: 5px;
+ font-size: @font-size;
+ color: @unselected-text-color;
+ }
+ }
+ .warning {
+ border: 3px solid @warning-color;
+ color: @warning-color;
+ }
+ .error {
+ border: 3px solid @error-color;
+ color: @error-color;
+ }
+ }
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.module.ts
index 67fdb478..67fdb478 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.module.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.spec.ts
index a99c86b1..a99c86b1 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts
index 5935eee6..5935eee6 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/index.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/index.ts
index c677a944..c677a944 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/index.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/index.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv4-validator.directive.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv4-validator.directive.ts
index 312ea5f3..312ea5f3 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv4-validator.directive.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv4-validator.directive.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv6-validator.directive.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv6-validator.directive.ts
index 45182036..3195eb82 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv6-validator.directive.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/ipv6-validator.directive.ts
@@ -1,24 +1,24 @@
-import {Directive, forwardRef} from '@angular/core';
-import {AbstractControl, NG_VALIDATORS, Validators} from '@angular/forms';
-
-@Directive({
- selector: '[ipv6][ngModel],[ipv6][formControl],[ipv6][formControlName]',
- providers: [{
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => Ipv6ValidatorDirective),
- multi: true
- }],
-})
-
-export class Ipv6ValidatorDirective {
- validate(c: AbstractControl) {
- if (Validators.required(c) !== undefined &&
- Validators.required(c) !== null) {
- return null;
- }
- const ipv6Reg =
- /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
- let regex = new RegExp(ipv6Reg);
- return regex.test(c.value) ? null : {'ipv6': true};
- }4
-}
+import {Directive, forwardRef} from '@angular/core';
+import {AbstractControl, NG_VALIDATORS, Validators} from '@angular/forms';
+
+@Directive({
+ selector: '[ipv6][ngModel],[ipv6][formControl],[ipv6][formControlName]',
+ providers: [{
+ provide: NG_VALIDATORS,
+ useExisting: forwardRef(() => Ipv6ValidatorDirective),
+ multi: true
+ }],
+})
+
+export class Ipv6ValidatorDirective {
+ validate(c: AbstractControl) {
+ if (Validators.required(c) !== undefined &&
+ Validators.required(c) !== null) {
+ return null;
+ }
+ const ipv6Reg =
+ /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
+ let regex = new RegExp(ipv6Reg);
+ return regex.test(c.value) ? null : {'ipv6': true};
+ }4
+}
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/max-validator.directive.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/max-validator.directive.ts
index 143dccc6..143dccc6 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/max-validator.directive.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/max-validator.directive.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/min-validator.directive.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/min-validator.directive.ts
index 260a93ed..260a93ed 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/min-validator.directive.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/min-validator.directive.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip-address.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip-address.component.ts
index 501d2326..4936a28e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip-address.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip-address.component.ts
@@ -1,170 +1,170 @@
-import {Component, EventEmitter, forwardRef, Input, OnInit, Output} from '@angular/core';
-import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
-import {BooleanFieldValue} from '../core/boolean-field-value';
-
-const noop = () => {};
-
-export const PX_TEXT_INPUT_IP_ADDRESS_CONTROL_VALUE_ACCESSOR: any = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => PlxTextInputIpAddressComponent),
- multi: true
-};
-@Component({
- selector: 'plx-text-input-ip-address',
- template: `
- <div>
- <plx-text-input #textInputIpAddress type="text" [(ngModel)]="ipValue"
- [width]="'280px'" [numberShowSpinner]="false" minlength="1"
- (keyup)="keyUp($event)" (paste)="paste($event)" class="{{sizeClass}}"></plx-text-input>
- <div class="plx-text-input-error">{{errMsg}}</div>
- </div>
- `,
- styleUrls: ['text-input.less'],
- host: {'style': 'display: inline-block;'},
- providers: [PX_TEXT_INPUT_IP_ADDRESS_CONTROL_VALUE_ACCESSOR]
-})
-
-export class PlxTextInputIpAddressComponent implements OnInit, ControlValueAccessor {
- @Input() lang: string = 'zh'; //zh|en
- @Input() size: string; //空代表普通尺寸,sm代表小尺寸
- @Input() ipAddressCheckTip: string = ''; //
-
- @Input() @BooleanFieldValue() required: boolean = false;
-
- @Input() public ipValue: string;
- @Output() public ipValueChange: EventEmitter<any> = new EventEmitter<any>();
-
- @Input() public ipValueFlg : boolean;
- @Output() public ipValueFlgChange: EventEmitter<any> = new EventEmitter<any>();
-
- private isNull : boolean = true;
-
- /** Callback registered via registerOnTouched (ControlValueAccessor) */
- private _onTouchedCallback: () => void = noop;
- /** Callback registered via registerOnChange (ControlValueAccessor) */
- private _onChangeCallback: (_: any) => void = noop;
-
- public errMsgs = {
- 'zh': {
- 'empty': '此项不能为空',
- 'invalidate': 'IP格式不对',
- 'range': '请输入正确的IPV4地址或IPV6地址',
- 'range-IPV4': '请输入正确的IPV4',
- 'range-IPV6': '请输入正确的IPV6'
- },
- 'en': {
- 'empty': 'IP can not be empty',
- 'invalidate': 'IP format is incorrect',
- 'range': 'IP range is IPV4 or IPV6',
- 'range-IPV4': 'IP range is IPV4',
- 'range-IPV6': 'IP range is IPV6'
- }
- };
- public errMsg: string;
- public sizeClass: string;
-
- constructor() {
- }
-
- ngOnInit(): void {
- if (this.size === 'sm') {
- this.sizeClass = 'plx-input-sm';
- }
- this.isNull = this.ipValueFlg;
- if(this.repIPStr(this.ipValue) === ''&& !this.ipValueFlg){
- this.ipValueFlg = false;
- this.emitValue();
- }
- }
-
- public keyUp(event: any): void {
- this.setValueToOutside(this.validate());
- this.emitValue();
- }
-
- public paste(event: any): void{
- setTimeout(() => {
- this.ipValue = event.target.value;
- this.setValueToOutside(this.validate());
- this.emitValue();
- }, 0);
- }
-
- private emitValue(){
- this.ipValueChange.emit(this.ipValue);
- this.ipValueFlgChange.emit(this.ipValueFlg);
- }
-
- private setValueToOutside(validateFlg: boolean): void {
- this.ipValueFlg = validateFlg;
- let value;
- if (validateFlg) {
- if (this.ipValue) {
- value = this.ipValue;
- }
- if(this.ipValue === "" && !this.isNull){
- this.ipValueFlg = false;
- }
- } else {
- value = false;
- }
- this._onChangeCallback(value);
- }
-
- writeValue(value: any): void {
- //
- this.errMsg = '';
- this.ipValue = value;
- if (value) {
- this.validate();
- }
- }
-
- registerOnChange(fn: any) {
- this._onChangeCallback = fn;
- }
-
- registerOnTouched(fn: any) {
- this._onTouchedCallback = fn;
- }
-
- public validate(): boolean {
- this.errMsg = '';
- if (this.required) {
- if (!this.ipValue) {
- this.errMsg = this.errMsgs[this.lang]['empty'];
- return false;
- }
- }
- if ((this.ipValue) && (!this.ipValue)) {
- this.errMsg = this.errMsgs[this.lang]['invalidate'];
- return false;
- }
- let blackStr = this.repIPStr(this.ipValue);
- if(this.ipAddressCheckTip === ''){
- if(this.ipValue !== '' && blackStr === ''){
- this.errMsg = this.errMsgs[this.lang]['range'];
- return false;
- }
- }else{
- if(this.ipValue !== '' && this.ipAddressCheckTip !== blackStr) {
- this.errMsg = this.errMsgs[this.lang]['range-'+ this.ipAddressCheckTip];
- return false;
- }
- }
- return true;
- }
-
- private repIPStr(value: any): string {
- let blackStr = '';
- var regip4 = /^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/;
- if (regip4.test(value)) {
- return "IPV4";
- }
- var regip6 = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
- if (regip6.test(value)) {
- return "IPV6";
- }
- return blackStr;
- }
-}
+import {Component, EventEmitter, forwardRef, Input, OnInit, Output} from '@angular/core';
+import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
+import {BooleanFieldValue} from '../core/boolean-field-value';
+
+const noop = () => {};
+
+export const PX_TEXT_INPUT_IP_ADDRESS_CONTROL_VALUE_ACCESSOR: any = {
+ provide: NG_VALUE_ACCESSOR,
+ useExisting: forwardRef(() => PlxTextInputIpAddressComponent),
+ multi: true
+};
+@Component({
+ selector: 'plx-text-input-ip-address',
+ template: `
+ <div>
+ <plx-text-input #textInputIpAddress type="text" [(ngModel)]="ipValue"
+ [width]="'280px'" [numberShowSpinner]="false" minlength="1"
+ (keyup)="keyUp($event)" (paste)="paste($event)" class="{{sizeClass}}"></plx-text-input>
+ <div class="plx-text-input-error">{{errMsg}}</div>
+ </div>
+ `,
+ styleUrls: ['text-input.less'],
+ host: {'style': 'display: inline-block;'},
+ providers: [PX_TEXT_INPUT_IP_ADDRESS_CONTROL_VALUE_ACCESSOR]
+})
+
+export class PlxTextInputIpAddressComponent implements OnInit, ControlValueAccessor {
+ @Input() lang: string = 'zh'; //zh|en
+ @Input() size: string; //空代表普通尺寸,sm代表小尺寸
+ @Input() ipAddressCheckTip: string = ''; //
+
+ @Input() @BooleanFieldValue() required: boolean = false;
+
+ @Input() public ipValue: string;
+ @Output() public ipValueChange: EventEmitter<any> = new EventEmitter<any>();
+
+ @Input() public ipValueFlg : boolean;
+ @Output() public ipValueFlgChange: EventEmitter<any> = new EventEmitter<any>();
+
+ private isNull : boolean = true;
+
+ /** Callback registered via registerOnTouched (ControlValueAccessor) */
+ private _onTouchedCallback: () => void = noop;
+ /** Callback registered via registerOnChange (ControlValueAccessor) */
+ private _onChangeCallback: (_: any) => void = noop;
+
+ public errMsgs = {
+ 'zh': {
+ 'empty': '此项不能为空',
+ 'invalidate': 'IP格式不对',
+ 'range': '请输入正确的IPV4地址或IPV6地址',
+ 'range-IPV4': '请输入正确的IPV4',
+ 'range-IPV6': '请输入正确的IPV6'
+ },
+ 'en': {
+ 'empty': 'IP can not be empty',
+ 'invalidate': 'IP format is incorrect',
+ 'range': 'IP range is IPV4 or IPV6',
+ 'range-IPV4': 'IP range is IPV4',
+ 'range-IPV6': 'IP range is IPV6'
+ }
+ };
+ public errMsg: string;
+ public sizeClass: string;
+
+ constructor() {
+ }
+
+ ngOnInit(): void {
+ if (this.size === 'sm') {
+ this.sizeClass = 'plx-input-sm';
+ }
+ this.isNull = this.ipValueFlg;
+ if(this.repIPStr(this.ipValue) === ''&& !this.ipValueFlg){
+ this.ipValueFlg = false;
+ this.emitValue();
+ }
+ }
+
+ public keyUp(event: any): void {
+ this.setValueToOutside(this.validate());
+ this.emitValue();
+ }
+
+ public paste(event: any): void{
+ setTimeout(() => {
+ this.ipValue = event.target.value;
+ this.setValueToOutside(this.validate());
+ this.emitValue();
+ }, 0);
+ }
+
+ private emitValue(){
+ this.ipValueChange.emit(this.ipValue);
+ this.ipValueFlgChange.emit(this.ipValueFlg);
+ }
+
+ private setValueToOutside(validateFlg: boolean): void {
+ this.ipValueFlg = validateFlg;
+ let value;
+ if (validateFlg) {
+ if (this.ipValue) {
+ value = this.ipValue;
+ }
+ if(this.ipValue === "" && !this.isNull){
+ this.ipValueFlg = false;
+ }
+ } else {
+ value = false;
+ }
+ this._onChangeCallback(value);
+ }
+
+ writeValue(value: any): void {
+ //
+ this.errMsg = '';
+ this.ipValue = value;
+ if (value) {
+ this.validate();
+ }
+ }
+
+ registerOnChange(fn: any) {
+ this._onChangeCallback = fn;
+ }
+
+ registerOnTouched(fn: any) {
+ this._onTouchedCallback = fn;
+ }
+
+ public validate(): boolean {
+ this.errMsg = '';
+ if (this.required) {
+ if (!this.ipValue) {
+ this.errMsg = this.errMsgs[this.lang]['empty'];
+ return false;
+ }
+ }
+ if ((this.ipValue) && (!this.ipValue)) {
+ this.errMsg = this.errMsgs[this.lang]['invalidate'];
+ return false;
+ }
+ let blackStr = this.repIPStr(this.ipValue);
+ if(this.ipAddressCheckTip === ''){
+ if(this.ipValue !== '' && blackStr === ''){
+ this.errMsg = this.errMsgs[this.lang]['range'];
+ return false;
+ }
+ }else{
+ if(this.ipValue !== '' && this.ipAddressCheckTip !== blackStr) {
+ this.errMsg = this.errMsgs[this.lang]['range-'+ this.ipAddressCheckTip];
+ return false;
+ }
+ }
+ return true;
+ }
+
+ private repIPStr(value: any): string {
+ let blackStr = '';
+ var regip4 = /^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/;
+ if (regip4.test(value)) {
+ return "IPV4";
+ }
+ var regip6 = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
+ if (regip6.test(value)) {
+ return "IPV6";
+ }
+ return blackStr;
+ }
+}
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip.component.ts
index 7c9d616d..7c9d616d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input-ip.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.component.ts
index 9b5a01e9..9b5a01e9 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.component.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.html
index 9065badd..9065badd 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.html
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.less
index 6a93c1c1..6a93c1c1 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.less
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.module.ts
index 4374770a..4374770a 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/text-input.module.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/validate-on-blur.directive.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/validate-on-blur.directive.ts
index b4a940c8..b4a940c8 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/validate-on-blur.directive.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-text-input/validate-on-blur.directive.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.spec.ts
index 4a19dd17..4a19dd17 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.ts
index dd1cc254..dd1cc254 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip-config.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.less b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.less
index d7ce015f..4be58f9a 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.less
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.less
@@ -1,241 +1,241 @@
-@import "../../assets/components/themes/common/plx-input.less";
-
-@tooltip-arrow-border-width: 4px;
-@tooltip-arrow-border-width-before: 5px;
-@tooltip-arrow-border-height: @tooltip-arrow-border-width-before - @tooltip-arrow-border-width;
-@tooltip-arrow-away: 5px;
-@tooltip-arrow-background-color: #595959;
-@tooltip-arrow-border-color: #595959;
-@tooltip-away-host: 3px;
-
-.plx-tooltip {
- font-family: @font-family;
- font-size: @font-size;
- opacity: 1;
- position: absolute;
- z-index: 10001;
- display: block;
- font-style: normal;
- font-weight: normal;
- letter-spacing: normal;
- line-break: auto;
- line-height: 1.5;
- text-align: left;
- text-decoration: none;
- text-shadow: none;
- text-transform: none;
- white-space: normal;
- word-break: normal;
- word-spacing: normal;
- word-wrap: break-word;
- &::before,
- &::after {
- content: "";
- position: absolute;
- display: block;
- width: 0;
- height: 0;
- border: solid transparent;
- }
- &::before {
- border-width: @tooltip-arrow-border-width-before;
- }
- &::after {
- border-width: @tooltip-arrow-border-width;
- }
-}
-
-.plx-tooltip-inner {
- min-width: 60px;
- max-width: 200px;
- padding: 3px 8px;
- color: #fff;
- text-align: center;
- background-color: #000;
-}
-
-.plx-tooltip.show {
- font-size: @font-size;
- opacity: 1;
-}
-.plx-tooltip.show .plx-tooltip-inner {
- background-color: #595959;
- border-radius: @radius;
- padding: 0px 12px;
- height: 30px;
- line-height: 30px;
-}
-
-.plx-tooltip-top-common {
- margin-top: -(@tooltip-arrow-border-width + @tooltip-away-host);
- &::before {
- border-top-color: @tooltip-arrow-border-color;
- border-bottom-width: 0;
- bottom: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-top-color: @tooltip-arrow-background-color;
- border-bottom-width: 0;
- bottom: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip-top {
- .plx-tooltip-top-common;
- &::before {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width-before;
- }
- &::after {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-top-left {
- .plx-tooltip-top-common;
- &::before {
- left: @tooltip-arrow-away;
- }
- &::after {
- left: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-top-right {
- .plx-tooltip-top-common;
- &::before {
- right: @tooltip-arrow-away;
- }
- &::after {
- right: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-
-.plx-tooltip-right-common {
- margin-left: @tooltip-arrow-border-width + @tooltip-away-host;
- &::before {
- border-right-color: @tooltip-arrow-border-color;
- border-left-width: 0;
- left: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-right-color: @tooltip-arrow-background-color;
- border-left-width: 0;
- left: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-right {
- .plx-tooltip-right-common;
- &::before {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width-before;
- }
- &::after {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-right-top {
- .plx-tooltip-right-common;
- &::before {
- top: @tooltip-arrow-away;
- }
- &::after {
- top: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-right-bottom {
- .plx-tooltip-right-common;
- &::before {
- bottom: @tooltip-arrow-away;
- }
- &::after {
- bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-
-.plx-tooltip-bottom-common {
- margin-top: @tooltip-arrow-border-width + @tooltip-away-host;
- &::before {
- border-bottom-color: @tooltip-arrow-border-color;
- border-top-width: 0;
- top: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-bottom-color: @tooltip-arrow-background-color;
- border-top-width: 0;
- top: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-bottom {
- .plx-tooltip-bottom-common;
- &::before {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width-before;
- }
- &::after {
- left: 50%;
- margin-left: -@tooltip-arrow-border-width;
- }
-}
-.plx-tooltip.plx-tooltip-bottom-left {
- .plx-tooltip-bottom-common;
- &::before {
- left: @tooltip-arrow-away;
- }
- &::after {
- left: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-bottom-right {
- .plx-tooltip-bottom-common;
- &::before {
- right: @tooltip-arrow-away;
- }
- &::after {
- right: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-
-.plx-tooltip-left-common {
- margin-left: -(@tooltip-arrow-border-width + @tooltip-away-host);
- &::before {
- border-left-color: @tooltip-arrow-border-color;
- border-right-width: 0;
- right: -@tooltip-arrow-border-width-before;
- }
- &::after {
- border-left-color: @tooltip-arrow-background-color;
- border-right-width: 0;
- right: -@tooltip-arrow-border-width;
- }
-}
-
-.plx-tooltip.plx-tooltip-left {
- .plx-tooltip-left-common;
- &::before {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width-before;
- }
- &::after {
- top: 50%;
- margin-top: -@tooltip-arrow-border-width;
- }
-}
-
-.plx-tooltip.plx-tooltip-left-top {
- .plx-tooltip-left-common;
- &::before {
- top: @tooltip-arrow-away;
- }
- &::after {
- top: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
-}
-.plx-tooltip.plx-tooltip-left-bottom {
- .plx-tooltip-left-common;
- &::before {
- bottom: @tooltip-arrow-away;
- }
- &::after {
- bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
- }
+@import "../../assets/components/themes/common/plx-input.less";
+
+@tooltip-arrow-border-width: 4px;
+@tooltip-arrow-border-width-before: 5px;
+@tooltip-arrow-border-height: @tooltip-arrow-border-width-before - @tooltip-arrow-border-width;
+@tooltip-arrow-away: 5px;
+@tooltip-arrow-background-color: #595959;
+@tooltip-arrow-border-color: #595959;
+@tooltip-away-host: 3px;
+
+.plx-tooltip {
+ font-family: @font-family;
+ font-size: @font-size;
+ opacity: 1;
+ position: absolute;
+ z-index: 10001;
+ display: block;
+ font-style: normal;
+ font-weight: normal;
+ letter-spacing: normal;
+ line-break: auto;
+ line-height: 1.5;
+ text-align: left;
+ text-decoration: none;
+ text-shadow: none;
+ text-transform: none;
+ white-space: normal;
+ word-break: normal;
+ word-spacing: normal;
+ word-wrap: break-word;
+ &::before,
+ &::after {
+ content: "";
+ position: absolute;
+ display: block;
+ width: 0;
+ height: 0;
+ border: solid transparent;
+ }
+ &::before {
+ border-width: @tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-width: @tooltip-arrow-border-width;
+ }
+}
+
+.plx-tooltip-inner {
+ min-width: 60px;
+ max-width: 200px;
+ padding: 3px 8px;
+ color: #fff;
+ text-align: center;
+ background-color: #000;
+}
+
+.plx-tooltip.show {
+ font-size: @font-size;
+ opacity: 1;
+}
+.plx-tooltip.show .plx-tooltip-inner {
+ background-color: #595959;
+ border-radius: @radius;
+ padding: 0px 12px;
+ height: 30px;
+ line-height: 30px;
+}
+
+.plx-tooltip-top-common {
+ margin-top: -(@tooltip-arrow-border-width + @tooltip-away-host);
+ &::before {
+ border-top-color: @tooltip-arrow-border-color;
+ border-bottom-width: 0;
+ bottom: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-top-color: @tooltip-arrow-background-color;
+ border-bottom-width: 0;
+ bottom: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip-top {
+ .plx-tooltip-top-common;
+ &::before {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-top-left {
+ .plx-tooltip-top-common;
+ &::before {
+ left: @tooltip-arrow-away;
+ }
+ &::after {
+ left: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-top-right {
+ .plx-tooltip-top-common;
+ &::before {
+ right: @tooltip-arrow-away;
+ }
+ &::after {
+ right: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+
+.plx-tooltip-right-common {
+ margin-left: @tooltip-arrow-border-width + @tooltip-away-host;
+ &::before {
+ border-right-color: @tooltip-arrow-border-color;
+ border-left-width: 0;
+ left: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-right-color: @tooltip-arrow-background-color;
+ border-left-width: 0;
+ left: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-right {
+ .plx-tooltip-right-common;
+ &::before {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-right-top {
+ .plx-tooltip-right-common;
+ &::before {
+ top: @tooltip-arrow-away;
+ }
+ &::after {
+ top: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-right-bottom {
+ .plx-tooltip-right-common;
+ &::before {
+ bottom: @tooltip-arrow-away;
+ }
+ &::after {
+ bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+
+.plx-tooltip-bottom-common {
+ margin-top: @tooltip-arrow-border-width + @tooltip-away-host;
+ &::before {
+ border-bottom-color: @tooltip-arrow-border-color;
+ border-top-width: 0;
+ top: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-bottom-color: @tooltip-arrow-background-color;
+ border-top-width: 0;
+ top: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-bottom {
+ .plx-tooltip-bottom-common;
+ &::before {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ left: 50%;
+ margin-left: -@tooltip-arrow-border-width;
+ }
+}
+.plx-tooltip.plx-tooltip-bottom-left {
+ .plx-tooltip-bottom-common;
+ &::before {
+ left: @tooltip-arrow-away;
+ }
+ &::after {
+ left: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-bottom-right {
+ .plx-tooltip-bottom-common;
+ &::before {
+ right: @tooltip-arrow-away;
+ }
+ &::after {
+ right: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+
+.plx-tooltip-left-common {
+ margin-left: -(@tooltip-arrow-border-width + @tooltip-away-host);
+ &::before {
+ border-left-color: @tooltip-arrow-border-color;
+ border-right-width: 0;
+ right: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ border-left-color: @tooltip-arrow-background-color;
+ border-right-width: 0;
+ right: -@tooltip-arrow-border-width;
+ }
+}
+
+.plx-tooltip.plx-tooltip-left {
+ .plx-tooltip-left-common;
+ &::before {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width-before;
+ }
+ &::after {
+ top: 50%;
+ margin-top: -@tooltip-arrow-border-width;
+ }
+}
+
+.plx-tooltip.plx-tooltip-left-top {
+ .plx-tooltip-left-common;
+ &::before {
+ top: @tooltip-arrow-away;
+ }
+ &::after {
+ top: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
+}
+.plx-tooltip.plx-tooltip-left-bottom {
+ .plx-tooltip-left-common;
+ &::before {
+ bottom: @tooltip-arrow-away;
+ }
+ &::after {
+ bottom: @tooltip-arrow-away + @tooltip-arrow-border-height;
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.module.ts
index 062ded1c..062ded1c 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.module.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.spec.ts
index cd2d8a6a..cd2d8a6a 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.ts
index f52cc11d..f52cc11d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/plx-tooltip/plx-tooltip.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/util/popup.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/popup.ts
index dacbc0b9..dacbc0b9 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/util/popup.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/popup.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/util/positioning.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/positioning.ts
index 79399d6d..79399d6d 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/util/positioning.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/positioning.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/util/triggers.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/triggers.ts
index 708790a4..708790a4 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/util/triggers.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/triggers.ts
diff --git a/sdc-workflow-designer-ui/src/app/paletx/util/util.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/util.ts
index 5df0381e..5df0381e 100644
--- a/sdc-workflow-designer-ui/src/app/paletx/util/util.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/paletx/util/util.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/auth.service.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/auth.service.spec.ts
index 9bd500ef..9bd500ef 100644
--- a/sdc-workflow-designer-ui/src/app/services/auth.service.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/auth.service.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/auth.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/auth.service.ts
index a8e60753..a8e60753 100644
--- a/sdc-workflow-designer-ui/src/app/services/auth.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/auth.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts
index 410ae9b0..410ae9b0 100644
--- a/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/display-info.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/display-info.service.ts
index a3a57686..f7c55e0e 100644
--- a/sdc-workflow-designer-ui/src/app/services/display-info.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/display-info.service.ts
@@ -1,27 +1,27 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-import { Injectable } from "@angular/core";
-import { HttpService } from "../util/http.service";
-import { Observable } from "rxjs";
-import { ModelService } from "./model.service";
-
-@Injectable()
-export class DisplayInfoService {
- private displayInfoUrl = '/api/workflow-modeler/v1/ext-activities/displayInfo?scene=';
-
- constructor(private modelService: ModelService, private httpService: HttpService) {
- }
-
- public getDisplayInfo(): Observable<any> {
- return this.httpService.get(this.displayInfoUrl + this.modelService.getPlanModel().scene);
- }
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+import { Injectable } from "@angular/core";
+import { HttpService } from "../util/http.service";
+import { Observable } from "rxjs";
+import { ModelService } from "./model.service";
+
+@Injectable()
+export class DisplayInfoService {
+ private displayInfoUrl = '/api/workflow-modeler/v1/ext-activities/displayInfo?scene=';
+
+ constructor(private modelService: ModelService, private httpService: HttpService) {
+ }
+
+ public getDisplayInfo(): Observable<any> {
+ return this.httpService.get(this.displayInfoUrl + this.modelService.getPlanModel().scene);
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/services/interface.service.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/interface.service.spec.ts
index 0aeb3f52..0aeb3f52 100644
--- a/sdc-workflow-designer-ui/src/app/services/interface.service.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/interface.service.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/interface.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/interface.service.ts
index 9dcafe96..9dcafe96 100644
--- a/sdc-workflow-designer-ui/src/app/services/interface.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/interface.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
index 0cf93efe..0cf93efe 100644
--- a/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/model.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/model.service.ts
index 8cb7b86a..8cb7b86a 100644
--- a/sdc-workflow-designer-ui/src/app/services/model.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/model.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/node-type.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/node-type.service.ts
index a40ad50f..4c66db18 100644
--- a/sdc-workflow-designer-ui/src/app/services/node-type.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/node-type.service.ts
@@ -1,68 +1,68 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-import { Injectable } from "@angular/core";
-import { HttpService } from "../util/http.service";
-import { BroadcastService } from "./broadcast.service";
-import { NodeDataType } from "../model/node-data-type/node-data-type";
-import { Parameter } from "../model/workflow/parameter";
-import { TranslateService } from "@ngx-translate/core";
-
-@Injectable()
-export class NodeTypeService {
- private nodeDataTypes: NodeDataType[] = [];
- private nodeDataTypeUrl = '/api/workflow-modeler/v1/ext-activities?sence=test';
-
- constructor(private httpService: HttpService, private translateService: TranslateService,
- private broadcastService: BroadcastService) {
- this.initNodeDataTypes();
- }
-
- private initNodeDataTypes(): void {
- this.httpService.get(this.nodeDataTypeUrl)
- .toPromise()
- .then(resp => {
- if (resp && 0 < resp.length) {
- this.nodeDataTypes = resp;
- }
- this.broadcastService.broadcast(this.broadcastService.updateNodeTypeConfig, null);
- });
- }
-
- public getAllNodeDataTypes(): NodeDataType[] {
- return this.nodeDataTypes;
- }
-
- public getNodeDataTypeById(id: string): NodeDataType | null {
- return this.nodeDataTypes.find(nodeDataType => nodeDataType.id === id);
- }
-
- public GetI18nName(key: string, displayName: any): string {
- //todo: add logic
- let name = key;
- if (displayName) {
- let language = 'zh_CN';
- if (this.translateService.currentLang.indexOf('en') > -1) {
- language = 'en_US';
- }
- if (displayName.language && '' != displayName.language) {
- name = displayName.language;
- }
- }
- return name;
- }
-
- public static GetParameterByDataType(nodeDataType: any): Parameter {
- //todo: add logic
- let param = new Parameter('', '', '');
- return param;
- }
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+import { Injectable } from "@angular/core";
+import { HttpService } from "../util/http.service";
+import { BroadcastService } from "./broadcast.service";
+import { NodeDataType } from "../model/node-data-type/node-data-type";
+import { Parameter } from "../model/workflow/parameter";
+import { TranslateService } from "@ngx-translate/core";
+
+@Injectable()
+export class NodeTypeService {
+ private nodeDataTypes: NodeDataType[] = [];
+ private nodeDataTypeUrl = '/api/workflow-modeler/v1/ext-activities?sence=test';
+
+ constructor(private httpService: HttpService, private translateService: TranslateService,
+ private broadcastService: BroadcastService) {
+ this.initNodeDataTypes();
+ }
+
+ private initNodeDataTypes(): void {
+ this.httpService.get(this.nodeDataTypeUrl)
+ .toPromise()
+ .then(resp => {
+ if (resp && 0 < resp.length) {
+ this.nodeDataTypes = resp;
+ }
+ this.broadcastService.broadcast(this.broadcastService.updateNodeTypeConfig, null);
+ });
+ }
+
+ public getAllNodeDataTypes(): NodeDataType[] {
+ return this.nodeDataTypes;
+ }
+
+ public getNodeDataTypeById(id: string): NodeDataType | null {
+ return this.nodeDataTypes.find(nodeDataType => nodeDataType.id === id);
+ }
+
+ public GetI18nName(key: string, displayName: any): string {
+ //todo: add logic
+ let name = key;
+ if (displayName) {
+ let language = 'zh_CN';
+ if (this.translateService.currentLang.indexOf('en') > -1) {
+ language = 'en_US';
+ }
+ if (displayName.language && '' != displayName.language) {
+ name = displayName.language;
+ }
+ }
+ return name;
+ }
+
+ public static GetParameterByDataType(nodeDataType: any): Parameter {
+ //todo: add logic
+ let param = new Parameter('', '', '');
+ return param;
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/services/notice.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/notice.service.ts
index ea081e96..ea081e96 100644
--- a/sdc-workflow-designer-ui/src/app/services/notice.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/notice.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/rest.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/rest.service.ts
index e3bde51b..e3bde51b 100644
--- a/sdc-workflow-designer-ui/src/app/services/rest.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/rest.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/setting.service.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/setting.service.spec.ts
index a85d2c27..a85d2c27 100644
--- a/sdc-workflow-designer-ui/src/app/services/setting.service.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/setting.service.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/setting.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/setting.service.ts
index 266c5533..266c5533 100644
--- a/sdc-workflow-designer-ui/src/app/services/setting.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/setting.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts
index 8128b44c..8128b44c 100644
--- a/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/tosca.service.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/tosca.service.spec.ts
index a54fba63..a54fba63 100644
--- a/sdc-workflow-designer-ui/src/app/services/tosca.service.spec.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/tosca.service.spec.ts
diff --git a/sdc-workflow-designer-ui/src/app/services/tosca.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/tosca.service.ts
index dd62a717..dd62a717 100644
--- a/sdc-workflow-designer-ui/src/app/services/tosca.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/services/tosca.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/shared/input/validators.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/validators.ts
index 6a4e799d..137d5444 100644
--- a/sdc-workflow-designer-ui/src/app/shared/input/validators.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/validators.ts
@@ -1,147 +1,147 @@
-import {AbstractControl, ValidationErrors} from '@angular/forms';
-
-export function inRangeValidator(in_range: number[]): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- const value = parseFloat(control.value);
- if (isNaN(value) || value > in_range[1] || value < in_range[0]) {
- control.setErrors({
- in_range: true
- });
- return {
- in_range: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function greaterOrEqualValidator(max: string): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- const value = parseFloat(control.value);
- const maxValue: any = parseFloat(max);
- if (!isNaN(maxValue) && (isNaN(value) || value < maxValue)) {
- control.setErrors({
- greater_or_equal: true
- });
- return {
- greater_or_equal: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function lessOrEqualValidator(min: string): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- const value = parseFloat(control.value);
- const minValue: any = parseFloat(min);
- if (!isNaN(minValue) && (isNaN(value) || value > minValue)) {
- control.setErrors({
- less_or_equal: true
- });
- return {
- less_or_equal: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function greaterThanValidator(max: string): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- const value = parseFloat(control.value);
- const maxValue: any = parseFloat(max);
- if (!isNaN(maxValue) && (isNaN(value) || value <= maxValue)) {
- control.setErrors({
- greater_than: true
- });
- return {
- greater_than: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function lessThanValidator(min: string): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- const value = parseFloat(control.value);
- const minValue: any = parseFloat(min);
- if (!isNaN(minValue) && (isNaN(value) || value >= minValue)) {
- control.setErrors({
- less_than: true
- });
- return {
- less_than: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function equalValidator(value: any): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- if (control.value != value) {
- control.setErrors({
- equal: true
- });
- return {
- equal: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function lengthValidator(length: number): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- if (control.value && control.value.length !== length) {
- control.setErrors({
- length: true
- });
- return {
- length: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function floatValidator(): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- let floatPattern = /^(-?\d+)(\.\d+)?$/;
- if (control.value && !floatPattern.test(control.value)) {
- control.setErrors({
- float: true
- });
- return {
- float: true
- }
- } else {
- return null;
- }
- }
-}
-
-export function integerValidator(): ValidationErrors|null {
- return (control: AbstractControl): ValidationErrors => {
- let integerPattern = /^-?\d+$/;
- if (control.value && !integerPattern.test(control.value)) {
- control.setErrors({
- integer: true
- });
- return {
- integer: true
- }
- } else {
- return null;
- }
- }
+import {AbstractControl, ValidationErrors} from '@angular/forms';
+
+export function inRangeValidator(in_range: number[]): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ const value = parseFloat(control.value);
+ if (isNaN(value) || value > in_range[1] || value < in_range[0]) {
+ control.setErrors({
+ in_range: true
+ });
+ return {
+ in_range: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function greaterOrEqualValidator(max: string): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ const value = parseFloat(control.value);
+ const maxValue: any = parseFloat(max);
+ if (!isNaN(maxValue) && (isNaN(value) || value < maxValue)) {
+ control.setErrors({
+ greater_or_equal: true
+ });
+ return {
+ greater_or_equal: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function lessOrEqualValidator(min: string): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ const value = parseFloat(control.value);
+ const minValue: any = parseFloat(min);
+ if (!isNaN(minValue) && (isNaN(value) || value > minValue)) {
+ control.setErrors({
+ less_or_equal: true
+ });
+ return {
+ less_or_equal: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function greaterThanValidator(max: string): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ const value = parseFloat(control.value);
+ const maxValue: any = parseFloat(max);
+ if (!isNaN(maxValue) && (isNaN(value) || value <= maxValue)) {
+ control.setErrors({
+ greater_than: true
+ });
+ return {
+ greater_than: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function lessThanValidator(min: string): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ const value = parseFloat(control.value);
+ const minValue: any = parseFloat(min);
+ if (!isNaN(minValue) && (isNaN(value) || value >= minValue)) {
+ control.setErrors({
+ less_than: true
+ });
+ return {
+ less_than: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function equalValidator(value: any): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ if (control.value != value) {
+ control.setErrors({
+ equal: true
+ });
+ return {
+ equal: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function lengthValidator(length: number): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ if (control.value && control.value.length !== length) {
+ control.setErrors({
+ length: true
+ });
+ return {
+ length: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function floatValidator(): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ let floatPattern = /^(-?\d+)(\.\d+)?$/;
+ if (control.value && !floatPattern.test(control.value)) {
+ control.setErrors({
+ float: true
+ });
+ return {
+ float: true
+ }
+ } else {
+ return null;
+ }
+ }
+}
+
+export function integerValidator(): ValidationErrors|null {
+ return (control: AbstractControl): ValidationErrors => {
+ let integerPattern = /^-?\d+$/;
+ if (control.value && !integerPattern.test(control.value)) {
+ control.setErrors({
+ integer: true
+ });
+ return {
+ integer: true
+ }
+ } else {
+ return null;
+ }
+ }
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.component.ts
index 3b3798c7..f70a2b9b 100644
--- a/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.component.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.component.ts
@@ -1,258 +1,258 @@
-import {
- Component, Input, forwardRef, SimpleChanges, ViewChild, OnChanges, Output, EventEmitter,
- ElementRef
-} from '@angular/core';
-import {TranslateService} from '@ngx-translate/core';
-import {
- ControlValueAccessor, NG_VALUE_ACCESSOR, NG_VALIDATORS, Validator,
- AbstractControl, ValidationErrors
-} from '@angular/forms';
-import {
- inRangeValidator, greaterOrEqualValidator, lessOrEqualValidator,
- greaterThanValidator, lessThanValidator, equalValidator, lengthValidator, floatValidator, integerValidator
-} from './validators';
-import {isNullOrUndefined} from "util";
-
-const noop = () => {
-};
-
-export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => WfmTextInputComponent),
- multi: true
-};
-
-export const CUSTOM_INPUT_VALIDATOR: any = {
- provide: NG_VALIDATORS,
- useExisting: forwardRef(() => WfmTextInputComponent),
- multi: true
-};
-
-@Component({
- selector: 'wfm-text-input',
- template: `
- <input type="text"
- [disabled]="disabled"
- [class]="inputClass"
- [placeholder]="placeholder"
- [required]="required"
- [maxlength]="maxlength"
- [minlength]="minlength"
- [pattern]="pattern"
- (focus)="onFocus()"
- (blur)="onBlur()"
- [(ngModel)]="value"
- [ngModelOptions]="{standalone: true}"
- #wfInput="ngModel"
- />
-
- <small [hidden]="!wfInput.valid || !hintLabel || !isHintLabelShow" class="hint-label">{{hintLabel}}</small>
- <small [hidden]="!wfInput.errors?.required" class="text-danger">
- {{ 'VALIDATE.REQUIRED' | translate }}
- </small>
- <small [hidden]="!wfInput.errors?.maxlength" class="text-danger">
- {{ 'VALIDATE.MAX_LENGTH' | translate: {value: maxlength} }}
- </small>
- <small [hidden]="!wfInput.errors?.minlength" class="text-danger">
- {{ 'VALIDATE.MIN_LENGTH' | translate: {value: minlength} }}
- </small>
- <small [hidden]="!wfInput.errors?.length" class="text-danger">
- {{ 'VALIDATE.LENGTH' | translate: {value: length} }}
- </small>
- <small *ngIf="patternError" [hidden]="!wfInput.errors?.pattern" class="text-danger">
- {{ patternError }}
- </small>
- <small *ngIf="!patternError && pattern === generalRules" [hidden]="!wfInput.errors?.pattern" class="text-danger">
- {{ getCommonRuleMessage(minlength + '-' + maxlength) }}
- </small>
- <small [hidden]="!wfInput.errors?.greater_or_equal" class="text-danger">
- {{ 'VALIDATE.GREATER_OR_EQUAL' | translate: {value: greater_or_equal} }}
- </small>
- <small [hidden]="!wfInput.errors?.less_or_equal" class="text-danger">
- {{ 'VALIDATE.LESS_OR_EQUAL' | translate: {value: less_or_equal} }}
- </small>
- <small [hidden]="!wfInput.errors?.greater_than" class="text-danger">
- {{ 'VALIDATE.GREATER_THAN' | translate: {value: greater_than} }}
- </small>
- <small [hidden]="!wfInput.errors?.less_than" class="text-danger">
- {{ 'VALIDATE.LESS_THAN' | translate: {value: less_than} }}
- </small>
- <small [hidden]="!wfInput.errors?.in_range" class="text-danger">
- {{ 'VALIDATE.IN_RANGE' | translate: {value: in_range} }}
- </small>
- <small [hidden]="!wfInput.errors?.equal" class="text-danger">
- {{ 'VALIDATE.EQUAL' | translate: {value: equal} }}
- </small>
- <small [hidden]="!wfInput.errors?.float" class="text-danger">
- {{ 'VALIDATE.FLOAT' | translate }}
- </small>
- <small [hidden]="!wfInput.errors?.integer" class="text-danger">
- {{ 'VALIDATE.INTEGER' | translate }}
- </small>
- `,
- styles: [`
- .hint-label {
- color:#7c868d;
- }
- input.ng-invalid {
- border-color: #d9534f;
- }
- `],
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, CUSTOM_INPUT_VALIDATOR]
-})
-export class WfmTextInputComponent implements ControlValueAccessor, Validator, OnChanges {
- @Input() public disabled: boolean;
- @Input() public inputType = 'string';
- @Input() public inputClass = 'form-control';
- @Input() public placeholder = '';
- @Input() public hintLabel: string;
- @Input() public patternError: string;
- @Input() public required = false;
- @Input() public maxlength: number;
- @Input() public minlength: number;
- @Input() public pattern = '';
- @Input() public greater_or_equal: string; // >=
- @Input() public less_or_equal: string; // <=
- @Input() public greater_than: string; // >
- @Input() public less_than: string; // <
- @Input() public length: number;
- @Input() public equal: any;
- @Input() public in_range: string;
- @Input() public isFocus: boolean;
- @Output() public blur: any = new EventEmitter();
- @Output() public click: any = new EventEmitter();
- @ViewChild('wfInput') public wfInput: any;
-
- public isHintLabelShow = false;
- private innerValue: any = '';
- private onTouchedCallback: () => void = noop;
- private onChangeCallback: (_: any) => void = noop;
- private _validators: any = {};
- public generalRules = '^(?![-_.])(?!\\d*$)[\\da-zA-Z-_.]*$';
-
- constructor(public translate: TranslateService,
- private elementRef: ElementRef) {
-
- }
-
- public ngOnChanges(changes: SimpleChanges): void {
- this._createValidator(changes);
- if (this.isFocus) {
- this.elementRef.nativeElement.querySelector('input').focus();
- }
- }
-
- // 动态创建Validator
- private _createValidator(changes: SimpleChanges): void {
- for (let change in changes) {
- switch (change) {
- case 'in_range':
- if (!isNullOrUndefined(this.in_range)) {
- this._validators.in_range = inRangeValidator(JSON.parse(this.in_range));
- }
- break;
- case 'greater_or_equal':
- if (!isNullOrUndefined(this.greater_or_equal)) {
- this._validators.greater_or_equal = greaterOrEqualValidator(this.greater_or_equal);
- }
- break;
- case 'less_or_equal':
- if (!isNullOrUndefined(this.less_or_equal)) {
- this._validators.less_or_equal = lessOrEqualValidator(this.less_or_equal);
- }
- break;
- case 'greater_than':
- if (!isNullOrUndefined(this.greater_than)) {
- this._validators.greater_than = greaterThanValidator(this.greater_than);
- }
- break;
- case 'less_than':
- if (!isNullOrUndefined(this.less_than)) {
- this._validators.less_than = lessThanValidator(this.less_than);
- }
- break;
- case 'equal':
- if (!isNullOrUndefined(this.equal)) {
- this._validators.equal = equalValidator(this.equal);
- }
- break;
- case 'length':
- if (!isNullOrUndefined(this.length)) {
- this._validators.length = lengthValidator(this.length);
- }
- break;
- case 'inputType':
- delete this._validators.float;
- delete this._validators.integer;
- if (this.inputType === 'float') {
- this._validators.float = floatValidator();
- } else if (this.inputType === 'integer') {
- this._validators.integer = integerValidator();
- }
- break;
- }
- }
- }
-
- // 执行控件验证
- public validate(c: AbstractControl): ValidationErrors | null {
- let errors: any;
- for (let validatorName in this._validators) {
- let validator = this._validators[validatorName];
- if (validator) {
- let errors = validator(c);
- if (errors) {
- return errors;
- }
- }
- }
- return null;
- }
-
- public onFocus(): void {
- if (this.isFocus) {
- this.click.emit();
- }
- this.isHintLabelShow = true;
- }
-
- public onBlur(): void {
- this.blur.emit();
- this.isHintLabelShow = false;
- this.onTouchedCallback();
- }
-
- get value(): any {
- this.validate(this.wfInput.control);
- return this.innerValue;
- };
-
- set value(value: any) {
- if (value !== this.innerValue) {
- this.innerValue = value;
- this.onChangeCallback(value);
- }
- }
-
- writeValue(value: any) {
- if (value !== this.innerValue) {
- this.innerValue = value;
- }
- }
-
- registerOnChange(fn: any) {
- this.onChangeCallback = fn;
- }
-
- registerOnTouched(fn: any) {
- this.onTouchedCallback = fn;
- }
-
- public getCommonRuleMessage(length: any): string {
- let message = this.translate.get('VALIDATE.FIRST_CHARACTER')['value'] + ', ' +
- this.translate.get('VALIDATE.NOT_ALL_NUMBER')['value'] + ', ' +
- this.translate.get('VALIDATE.CHARACTER_LIMIT', {value: '[0-9],[a-z],[A-Z],[_],[-],[.]'})['value'] + ', ' +
- this.translate.get('VALIDATE.CHARACTER_LENGTH', {value: length})['value'];
- return message;
- }
-}
+import {
+ Component, Input, forwardRef, SimpleChanges, ViewChild, OnChanges, Output, EventEmitter,
+ ElementRef
+} from '@angular/core';
+import {TranslateService} from '@ngx-translate/core';
+import {
+ ControlValueAccessor, NG_VALUE_ACCESSOR, NG_VALIDATORS, Validator,
+ AbstractControl, ValidationErrors
+} from '@angular/forms';
+import {
+ inRangeValidator, greaterOrEqualValidator, lessOrEqualValidator,
+ greaterThanValidator, lessThanValidator, equalValidator, lengthValidator, floatValidator, integerValidator
+} from './validators';
+import {isNullOrUndefined} from "util";
+
+const noop = () => {
+};
+
+export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = {
+ provide: NG_VALUE_ACCESSOR,
+ useExisting: forwardRef(() => WfmTextInputComponent),
+ multi: true
+};
+
+export const CUSTOM_INPUT_VALIDATOR: any = {
+ provide: NG_VALIDATORS,
+ useExisting: forwardRef(() => WfmTextInputComponent),
+ multi: true
+};
+
+@Component({
+ selector: 'wfm-text-input',
+ template: `
+ <input type="text"
+ [disabled]="disabled"
+ [class]="inputClass"
+ [placeholder]="placeholder"
+ [required]="required"
+ [maxlength]="maxlength"
+ [minlength]="minlength"
+ [pattern]="pattern"
+ (focus)="onFocus()"
+ (blur)="onBlur()"
+ [(ngModel)]="value"
+ [ngModelOptions]="{standalone: true}"
+ #wfInput="ngModel"
+ />
+
+ <small [hidden]="!wfInput.valid || !hintLabel || !isHintLabelShow" class="hint-label">{{hintLabel}}</small>
+ <small [hidden]="!wfInput.errors?.required" class="text-danger">
+ {{ 'VALIDATE.REQUIRED' | translate }}
+ </small>
+ <small [hidden]="!wfInput.errors?.maxlength" class="text-danger">
+ {{ 'VALIDATE.MAX_LENGTH' | translate: {value: maxlength} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.minlength" class="text-danger">
+ {{ 'VALIDATE.MIN_LENGTH' | translate: {value: minlength} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.length" class="text-danger">
+ {{ 'VALIDATE.LENGTH' | translate: {value: length} }}
+ </small>
+ <small *ngIf="patternError" [hidden]="!wfInput.errors?.pattern" class="text-danger">
+ {{ patternError }}
+ </small>
+ <small *ngIf="!patternError && pattern === generalRules" [hidden]="!wfInput.errors?.pattern" class="text-danger">
+ {{ getCommonRuleMessage(minlength + '-' + maxlength) }}
+ </small>
+ <small [hidden]="!wfInput.errors?.greater_or_equal" class="text-danger">
+ {{ 'VALIDATE.GREATER_OR_EQUAL' | translate: {value: greater_or_equal} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.less_or_equal" class="text-danger">
+ {{ 'VALIDATE.LESS_OR_EQUAL' | translate: {value: less_or_equal} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.greater_than" class="text-danger">
+ {{ 'VALIDATE.GREATER_THAN' | translate: {value: greater_than} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.less_than" class="text-danger">
+ {{ 'VALIDATE.LESS_THAN' | translate: {value: less_than} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.in_range" class="text-danger">
+ {{ 'VALIDATE.IN_RANGE' | translate: {value: in_range} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.equal" class="text-danger">
+ {{ 'VALIDATE.EQUAL' | translate: {value: equal} }}
+ </small>
+ <small [hidden]="!wfInput.errors?.float" class="text-danger">
+ {{ 'VALIDATE.FLOAT' | translate }}
+ </small>
+ <small [hidden]="!wfInput.errors?.integer" class="text-danger">
+ {{ 'VALIDATE.INTEGER' | translate }}
+ </small>
+ `,
+ styles: [`
+ .hint-label {
+ color:#7c868d;
+ }
+ input.ng-invalid {
+ border-color: #d9534f;
+ }
+ `],
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, CUSTOM_INPUT_VALIDATOR]
+})
+export class WfmTextInputComponent implements ControlValueAccessor, Validator, OnChanges {
+ @Input() public disabled: boolean;
+ @Input() public inputType = 'string';
+ @Input() public inputClass = 'form-control';
+ @Input() public placeholder = '';
+ @Input() public hintLabel: string;
+ @Input() public patternError: string;
+ @Input() public required = false;
+ @Input() public maxlength: number;
+ @Input() public minlength: number;
+ @Input() public pattern = '';
+ @Input() public greater_or_equal: string; // >=
+ @Input() public less_or_equal: string; // <=
+ @Input() public greater_than: string; // >
+ @Input() public less_than: string; // <
+ @Input() public length: number;
+ @Input() public equal: any;
+ @Input() public in_range: string;
+ @Input() public isFocus: boolean;
+ @Output() public blur: any = new EventEmitter();
+ @Output() public click: any = new EventEmitter();
+ @ViewChild('wfInput') public wfInput: any;
+
+ public isHintLabelShow = false;
+ private innerValue: any = '';
+ private onTouchedCallback: () => void = noop;
+ private onChangeCallback: (_: any) => void = noop;
+ private _validators: any = {};
+ public generalRules = '^(?![-_.])(?!\\d*$)[\\da-zA-Z-_.]*$';
+
+ constructor(public translate: TranslateService,
+ private elementRef: ElementRef) {
+
+ }
+
+ public ngOnChanges(changes: SimpleChanges): void {
+ this._createValidator(changes);
+ if (this.isFocus) {
+ this.elementRef.nativeElement.querySelector('input').focus();
+ }
+ }
+
+ // 动态创建Validator
+ private _createValidator(changes: SimpleChanges): void {
+ for (let change in changes) {
+ switch (change) {
+ case 'in_range':
+ if (!isNullOrUndefined(this.in_range)) {
+ this._validators.in_range = inRangeValidator(JSON.parse(this.in_range));
+ }
+ break;
+ case 'greater_or_equal':
+ if (!isNullOrUndefined(this.greater_or_equal)) {
+ this._validators.greater_or_equal = greaterOrEqualValidator(this.greater_or_equal);
+ }
+ break;
+ case 'less_or_equal':
+ if (!isNullOrUndefined(this.less_or_equal)) {
+ this._validators.less_or_equal = lessOrEqualValidator(this.less_or_equal);
+ }
+ break;
+ case 'greater_than':
+ if (!isNullOrUndefined(this.greater_than)) {
+ this._validators.greater_than = greaterThanValidator(this.greater_than);
+ }
+ break;
+ case 'less_than':
+ if (!isNullOrUndefined(this.less_than)) {
+ this._validators.less_than = lessThanValidator(this.less_than);
+ }
+ break;
+ case 'equal':
+ if (!isNullOrUndefined(this.equal)) {
+ this._validators.equal = equalValidator(this.equal);
+ }
+ break;
+ case 'length':
+ if (!isNullOrUndefined(this.length)) {
+ this._validators.length = lengthValidator(this.length);
+ }
+ break;
+ case 'inputType':
+ delete this._validators.float;
+ delete this._validators.integer;
+ if (this.inputType === 'float') {
+ this._validators.float = floatValidator();
+ } else if (this.inputType === 'integer') {
+ this._validators.integer = integerValidator();
+ }
+ break;
+ }
+ }
+ }
+
+ // 执行控件验证
+ public validate(c: AbstractControl): ValidationErrors | null {
+ let errors: any;
+ for (let validatorName in this._validators) {
+ let validator = this._validators[validatorName];
+ if (validator) {
+ let errors = validator(c);
+ if (errors) {
+ return errors;
+ }
+ }
+ }
+ return null;
+ }
+
+ public onFocus(): void {
+ if (this.isFocus) {
+ this.click.emit();
+ }
+ this.isHintLabelShow = true;
+ }
+
+ public onBlur(): void {
+ this.blur.emit();
+ this.isHintLabelShow = false;
+ this.onTouchedCallback();
+ }
+
+ get value(): any {
+ this.validate(this.wfInput.control);
+ return this.innerValue;
+ };
+
+ set value(value: any) {
+ if (value !== this.innerValue) {
+ this.innerValue = value;
+ this.onChangeCallback(value);
+ }
+ }
+
+ writeValue(value: any) {
+ if (value !== this.innerValue) {
+ this.innerValue = value;
+ }
+ }
+
+ registerOnChange(fn: any) {
+ this.onChangeCallback = fn;
+ }
+
+ registerOnTouched(fn: any) {
+ this.onTouchedCallback = fn;
+ }
+
+ public getCommonRuleMessage(length: any): string {
+ let message = this.translate.get('VALIDATE.FIRST_CHARACTER')['value'] + ', ' +
+ this.translate.get('VALIDATE.NOT_ALL_NUMBER')['value'] + ', ' +
+ this.translate.get('VALIDATE.CHARACTER_LIMIT', {value: '[0-9],[a-z],[A-Z],[_],[-],[.]'})['value'] + ', ' +
+ this.translate.get('VALIDATE.CHARACTER_LENGTH', {value: length})['value'];
+ return message;
+ }
+}
diff --git a/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.module.ts
index 8dbfd47f..d0e83ddb 100644
--- a/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/input/wfm-text-input.module.ts
@@ -1,15 +1,15 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { TranslateModule } from '@ngx-translate/core';
-import { FormsModule } from '@angular/forms';
-import { WfmTextInputComponent } from './wfm-text-input.component';
-
-@NgModule({
- imports: [TranslateModule, CommonModule, FormsModule],
- declarations: [WfmTextInputComponent],
- exports: [WfmTextInputComponent]
-})
-
-export class WfmInputModule {
-
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
+import { FormsModule } from '@angular/forms';
+import { WfmTextInputComponent } from './wfm-text-input.component';
+
+@NgModule({
+ imports: [TranslateModule, CommonModule, FormsModule],
+ declarations: [WfmTextInputComponent],
+ exports: [WfmTextInputComponent]
+})
+
+export class WfmInputModule {
+
} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/shared/shared.module.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/shared.module.ts
index dbebe463..dbebe463 100644
--- a/sdc-workflow-designer-ui/src/app/shared/shared.module.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/shared/shared.module.ts
diff --git a/sdc-workflow-designer-ui/src/app/util/http.service.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/http.service.ts
index f754d38e..f754d38e 100644
--- a/sdc-workflow-designer-ui/src/app/util/http.service.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/http.service.ts
diff --git a/sdc-workflow-designer-ui/src/app/util/rxjs-operators.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/rxjs-operators.ts
index 1a8f11c0..1a8f11c0 100644
--- a/sdc-workflow-designer-ui/src/app/util/rxjs-operators.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/rxjs-operators.ts
diff --git a/sdc-workflow-designer-ui/src/app/util/workflow-util.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/workflow-util.ts
index 802cba9f..802cba9f 100644
--- a/sdc-workflow-designer-ui/src/app/util/workflow-util.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/util/workflow-util.ts
diff --git a/sdc-workflow-designer-ui/src/assets/.gitkeep b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/.gitkeep
index e69de29b..e69de29b 100644
--- a/sdc-workflow-designer-ui/src/assets/.gitkeep
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/.gitkeep
diff --git a/sdc-workflow-designer-ui/src/assets/global-setting.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/global-setting.json
index 6ff2b7ba..6ff2b7ba 100644
--- a/sdc-workflow-designer-ui/src/assets/global-setting.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/global-setting.json
diff --git a/sdc-workflow-designer-ui/src/assets/i18n/en.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/i18n/en.json
index 45034e5e..45034e5e 100644
--- a/sdc-workflow-designer-ui/src/assets/i18n/en.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/i18n/en.json
diff --git a/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json
index b93d05d3..b93d05d3 100644
--- a/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json
diff --git a/sdc-workflow-designer-ui/src/assets/images/apds_rest.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_rest.svg
index 195dda32..adcb21dc 100644
--- a/sdc-workflow-designer-ui/src/assets/images/apds_rest.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_rest.svg
@@ -1,16 +1,16 @@
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
- <style type="text/css">
- .st0{fill:#00ABFF;}
- </style>
- <g>
- <path class="st0" d="M24,29H6c-2.8,0-5-2.2-5-5V6c0-2.8,2.2-5,5-5h18c2.8,0,5,2.2,5,5v18C29,26.8,26.8,29,24,29z M6,3
- C4.3,3,3,4.3,3,6v18c0,1.7,1.3,3,3,3h18c1.7,0,3-1.3,3-3V6c0-1.7-1.3-3-3-3H6z" />
- <path class="st0" d="M7.6,14.5h7.5c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,14.5,7.6,14.5z" />
- <path class="st0" d="M7.6,18.7h3.7c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,18.7,7.6,18.7z" />
- <path class="st0" d="M7.6,10.4H19c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,10.4,7.6,10.4z" />
- <path class="st0" d="M24.1,22.6l-1.6-2.7c0.9-0.4,1.5-1.2,1.5-2.2c0-1.4-1.2-2.5-2.8-2.5h-1.9c-0.2,0-0.4,0.1-0.6,0.2
- c-0.2,0.1-0.3,0.3-0.3,0.6v7c0,0.4,0.3,0.8,0.8,0.8c0.4,0,0.8-0.3,0.8-0.8v-2.8h0.8l1.9,3.2c0.1,0.2,0.4,0.4,0.7,0.4
- c0.1,0,0.3,0,0.4-0.1C24.2,23.5,24.4,23,24.1,22.6z M20.1,16.8h1.2c0.6,0,1.2,0.4,1.2,0.9s-0.5,0.9-1.2,0.9h-1.2V16.8z"
- />
- </g>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
+ <style type="text/css">
+ .st0{fill:#00ABFF;}
+ </style>
+ <g>
+ <path class="st0" d="M24,29H6c-2.8,0-5-2.2-5-5V6c0-2.8,2.2-5,5-5h18c2.8,0,5,2.2,5,5v18C29,26.8,26.8,29,24,29z M6,3
+ C4.3,3,3,4.3,3,6v18c0,1.7,1.3,3,3,3h18c1.7,0,3-1.3,3-3V6c0-1.7-1.3-3-3-3H6z" />
+ <path class="st0" d="M7.6,14.5h7.5c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,14.5,7.6,14.5z" />
+ <path class="st0" d="M7.6,18.7h3.7c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,18.7,7.6,18.7z" />
+ <path class="st0" d="M7.6,10.4H19c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,10.4,7.6,10.4z" />
+ <path class="st0" d="M24.1,22.6l-1.6-2.7c0.9-0.4,1.5-1.2,1.5-2.2c0-1.4-1.2-2.5-2.8-2.5h-1.9c-0.2,0-0.4,0.1-0.6,0.2
+ c-0.2,0.1-0.3,0.3-0.3,0.6v7c0,0.4,0.3,0.8,0.8,0.8c0.4,0,0.8-0.3,0.8-0.8v-2.8h0.8l1.9,3.2c0.1,0.2,0.4,0.4,0.7,0.4
+ c0.1,0,0.3,0,0.4-0.1C24.2,23.5,24.4,23,24.1,22.6z M20.1,16.8h1.2c0.6,0,1.2,0.4,1.2,0.9s-0.5,0.9-1.2,0.9h-1.2V16.8z"
+ />
+ </g>
</svg> \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/assets/images/apds_script.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_script.svg
index fadbef90..06682e52 100644
--- a/sdc-workflow-designer-ui/src/assets/images/apds_script.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_script.svg
@@ -1,24 +1,24 @@
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
- <style type="text/css">
- .st0{fill:#00ABFF;}
- </style>
-
- <g>
- <path class="st0" d="M24,1H6C3.2,1,1,3.2,1,6v18c0,2.8,2.2,5,5,5h18c2.8,0,5-2.2,5-5V6C29,3.2,26.8,1,24,1z M16.9,3.4
- c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3L17.7,7l-5.3,5.3c-0.2-0.6-0.5-1.2-0.9-1.6
- c-0.4-0.4-1-0.8-1.6-0.9l5.8-5.8C16,3.6,16.4,3.4,16.9,3.4z M10.3,27H6c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h8.2l-7.4,7.4
- c-0.1,0.1-0.2,0.2-0.3,0.3c-0.7,0.7-1,1.6-1,2.5c0,0.9,0.4,1.8,1,2.5l5.2,5.2l-1.3,1.3c-0.7,0.7-1,1.6-1,2.5
- C9.3,25.5,9.7,26.4,10.3,27z M14.1,25.9c-0.4,0.4-0.8,0.5-1.3,0.5c-0.5,0-0.9-0.2-1.3-0.5c-0.4-0.4-0.5-0.8-0.5-1.3
- c0-0.5,0.2-0.9,0.5-1.3l1.3-1.3l0.5,0.5l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3C14.6,25.1,14.5,25.5,14.1,25.9z M14.5,21.3l-6.8-6.8
- c-0.4-0.4-0.5-0.8-0.5-1.3c0-0.5,0.2-0.9,0.5-1.3c0.4-0.4,0.8-0.5,1.3-0.5c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3
- c0,0.5-0.2,0.9-0.5,1.3l0.9,0.9c0.2,0.2,0.4,0.2,0.6,0l5.2-5.2l4.4,4.4l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3v0
- l-5.8,5.8c-0.1-0.6-0.5-1.2-0.9-1.6L14.5,21.3z M27,24c0,1.7-1.3,3-3,3h-8.6l7.9-7.9c0.7-0.7,1-1.6,1-2.5c0-0.9-0.4-1.8-1-2.5
- l-0.8-0.8L18.1,9l1.3-1.3c0.7-0.7,1-1.6,1-2.5c0-0.8-0.3-1.6-0.8-2.2H24c1.7,0,3,1.3,3,3V24z" />
- <path class="st0" d="M17.2,12.4c-0.3-0.3-0.8-0.3-1.1,0L12.6,16c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2
- l3.6-3.6C17.5,13.1,17.5,12.7,17.2,12.4z" />
- <path class="st0" d="M18.9,14.2c-0.3-0.3-0.8-0.3-1.1,0l-3.6,3.6c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2
- c0.2,0,0.4-0.1,0.5-0.2l3.6-3.6C19.2,14.9,19.2,14.4,18.9,14.2z" />
- <path class="st0" d="M17.1,20.6l3.6-3.6c0.3-0.3,0.3-0.8,0-1.1s-0.8-0.3-1.1,0L16,19.5c-0.3,0.3-0.3,0.8,0,1.1
- c0.1,0.1,0.3,0.2,0.5,0.2S17,20.7,17.1,20.6z" />
- </g>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
+ <style type="text/css">
+ .st0{fill:#00ABFF;}
+ </style>
+
+ <g>
+ <path class="st0" d="M24,1H6C3.2,1,1,3.2,1,6v18c0,2.8,2.2,5,5,5h18c2.8,0,5-2.2,5-5V6C29,3.2,26.8,1,24,1z M16.9,3.4
+ c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3L17.7,7l-5.3,5.3c-0.2-0.6-0.5-1.2-0.9-1.6
+ c-0.4-0.4-1-0.8-1.6-0.9l5.8-5.8C16,3.6,16.4,3.4,16.9,3.4z M10.3,27H6c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h8.2l-7.4,7.4
+ c-0.1,0.1-0.2,0.2-0.3,0.3c-0.7,0.7-1,1.6-1,2.5c0,0.9,0.4,1.8,1,2.5l5.2,5.2l-1.3,1.3c-0.7,0.7-1,1.6-1,2.5
+ C9.3,25.5,9.7,26.4,10.3,27z M14.1,25.9c-0.4,0.4-0.8,0.5-1.3,0.5c-0.5,0-0.9-0.2-1.3-0.5c-0.4-0.4-0.5-0.8-0.5-1.3
+ c0-0.5,0.2-0.9,0.5-1.3l1.3-1.3l0.5,0.5l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3C14.6,25.1,14.5,25.5,14.1,25.9z M14.5,21.3l-6.8-6.8
+ c-0.4-0.4-0.5-0.8-0.5-1.3c0-0.5,0.2-0.9,0.5-1.3c0.4-0.4,0.8-0.5,1.3-0.5c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3
+ c0,0.5-0.2,0.9-0.5,1.3l0.9,0.9c0.2,0.2,0.4,0.2,0.6,0l5.2-5.2l4.4,4.4l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3v0
+ l-5.8,5.8c-0.1-0.6-0.5-1.2-0.9-1.6L14.5,21.3z M27,24c0,1.7-1.3,3-3,3h-8.6l7.9-7.9c0.7-0.7,1-1.6,1-2.5c0-0.9-0.4-1.8-1-2.5
+ l-0.8-0.8L18.1,9l1.3-1.3c0.7-0.7,1-1.6,1-2.5c0-0.8-0.3-1.6-0.8-2.2H24c1.7,0,3,1.3,3,3V24z" />
+ <path class="st0" d="M17.2,12.4c-0.3-0.3-0.8-0.3-1.1,0L12.6,16c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2
+ l3.6-3.6C17.5,13.1,17.5,12.7,17.2,12.4z" />
+ <path class="st0" d="M18.9,14.2c-0.3-0.3-0.8-0.3-1.1,0l-3.6,3.6c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2
+ c0.2,0,0.4-0.1,0.5-0.2l3.6-3.6C19.2,14.9,19.2,14.4,18.9,14.2z" />
+ <path class="st0" d="M17.1,20.6l3.6-3.6c0.3-0.3,0.3-0.8,0-1.1s-0.8-0.3-1.1,0L16,19.5c-0.3,0.3-0.3,0.8,0,1.1
+ c0.1,0.1,0.3,0.2,0.5,0.2S17,20.7,17.1,20.6z" />
+ </g>
</svg> \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/assets/images/apds_service.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_service.svg
index dbf8261a..b27cfad0 100644
--- a/sdc-workflow-designer-ui/src/assets/images/apds_service.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/apds_service.svg
@@ -1,18 +1,18 @@
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
- <style type="text/css">
- .st0{fill:#00ABFF;}
- </style>
- <g>
- <path class="st0" d="M24,29H6c-2.8,0-5-2.2-5-5V6c0-2.8,2.2-5,5-5h18c2.8,0,5,2.2,5,5v18C29,26.8,26.8,29,24,29z M6,3
- C4.3,3,3,4.3,3,6v18c0,1.7,1.3,3,3,3h18c1.7,0,3-1.3,3-3V6c0-1.7-1.3-3-3-3H6z"/>
- <path class="st0" d="M7.6,14.5h7.5c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,14.5,7.6,14.5z"/>
- <path class="st0" d="M7.6,18.7h3.7c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,18.7,7.6,18.7z"/>
- <path class="st0" d="M7.6,10.4H19c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,10.4,7.6,10.4z"/>
- <path class="st0" d="M18.7,21.6C18.7,21.6,18.7,21.6,18.7,21.6c0.4-0.1,1.4,0.6,1.5,0.7c0.3,0.2,0.7,0.3,1.2,0.3
- c0.6,0,1-0.1,1.3-0.3c0.2-0.2,0.3-0.4,0.3-0.6c0-0.2-0.1-0.3-0.2-0.4c-0.1-0.1-0.4-0.2-0.8-0.3c-1.8-0.4-3-0.8-3.5-1.1
- c-0.7-0.5-1-1.1-1-1.9c0-0.7,0.3-1.4,0.9-1.9c0.6-0.5,1.5-0.8,2.7-0.8c1.2,0,2,0.3,2.6,0.6c0.4,0.3,0.7,0.5,0.9,0.9
- c0.2,0.3,0.1,0.7-0.3,0.9c-0.2,0.1-0.7,0.4-1,0.2c-0.3-0.2-0.8-0.5-1.1-0.7c-0.3-0.2-0.6-0.3-1.1-0.3c-0.6,0-1,0.1-1.3,0.3
- c-0.2,0.1-0.3,0.3-0.3,0.5c0,0.2,0.1,0.3,0.2,0.4c0.2,0.2,0.9,0.4,2.1,0.6c1.2,0.3,2,0.6,2.5,1c0.5,0.4,0.7,1,0.7,1.7
- c0,0.8-0.3,1.5-1,2c-0.7,0.6-1.6,0.8-2.9,0.8c-1.2,0-2.1-0.2-2.8-0.7c-0.2-0.1-0.4-0.3-0.5-0.4C17.6,22.5,17.9,21.7,18.7,21.6z"/>
- </g>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
+ <style type="text/css">
+ .st0{fill:#00ABFF;}
+ </style>
+ <g>
+ <path class="st0" d="M24,29H6c-2.8,0-5-2.2-5-5V6c0-2.8,2.2-5,5-5h18c2.8,0,5,2.2,5,5v18C29,26.8,26.8,29,24,29z M6,3
+ C4.3,3,3,4.3,3,6v18c0,1.7,1.3,3,3,3h18c1.7,0,3-1.3,3-3V6c0-1.7-1.3-3-3-3H6z"/>
+ <path class="st0" d="M7.6,14.5h7.5c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,14.5,7.6,14.5z"/>
+ <path class="st0" d="M7.6,18.7h3.7c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,18.7,7.6,18.7z"/>
+ <path class="st0" d="M7.6,10.4H19c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,10.4,7.6,10.4z"/>
+ <path class="st0" d="M18.7,21.6C18.7,21.6,18.7,21.6,18.7,21.6c0.4-0.1,1.4,0.6,1.5,0.7c0.3,0.2,0.7,0.3,1.2,0.3
+ c0.6,0,1-0.1,1.3-0.3c0.2-0.2,0.3-0.4,0.3-0.6c0-0.2-0.1-0.3-0.2-0.4c-0.1-0.1-0.4-0.2-0.8-0.3c-1.8-0.4-3-0.8-3.5-1.1
+ c-0.7-0.5-1-1.1-1-1.9c0-0.7,0.3-1.4,0.9-1.9c0.6-0.5,1.5-0.8,2.7-0.8c1.2,0,2,0.3,2.6,0.6c0.4,0.3,0.7,0.5,0.9,0.9
+ c0.2,0.3,0.1,0.7-0.3,0.9c-0.2,0.1-0.7,0.4-1,0.2c-0.3-0.2-0.8-0.5-1.1-0.7c-0.3-0.2-0.6-0.3-1.1-0.3c-0.6,0-1,0.1-1.3,0.3
+ c-0.2,0.1-0.3,0.3-0.3,0.5c0,0.2,0.1,0.3,0.2,0.4c0.2,0.2,0.9,0.4,2.1,0.6c1.2,0.3,2,0.6,2.5,1c0.5,0.4,0.7,1,0.7,1.7
+ c0,0.8-0.3,1.5-1,2c-0.7,0.6-1.6,0.8-2.9,0.8c-1.2,0-2.1-0.2-2.8-0.7c-0.2-0.1-0.4-0.3-0.5-0.4C17.6,22.5,17.9,21.7,18.7,21.6z"/>
+ </g>
</svg> \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/assets/images/default.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/default.svg
index cb8aa465..0bdc3e80 100644
--- a/sdc-workflow-designer-ui/src/assets/images/default.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/default.svg
@@ -1,23 +1,23 @@
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
- <style type="text/css">
- .st0{fill:#00ABFF;}
- </style>
- <g>
- <path class="st0" d="M24,1H6C3.2,1,1,3.2,1,6v18c0,2.8,2.2,5,5,5h18c2.8,0,5-2.2,5-5V6C29,3.2,26.8,1,24,1z M16.9,3.4
- c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3L17.7,7l-5.3,5.3c-0.2-0.6-0.5-1.2-0.9-1.6
- c-0.4-0.4-1-0.8-1.6-0.9l5.8-5.8C16,3.6,16.4,3.4,16.9,3.4z M10.3,27H6c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h8.2l-7.4,7.4
- c-0.1,0.1-0.2,0.2-0.3,0.3c-0.7,0.7-1,1.6-1,2.5c0,0.9,0.4,1.8,1,2.5l5.2,5.2l-1.3,1.3c-0.7,0.7-1,1.6-1,2.5
- C9.3,25.5,9.7,26.4,10.3,27z M14.1,25.9c-0.4,0.4-0.8,0.5-1.3,0.5c-0.5,0-0.9-0.2-1.3-0.5c-0.4-0.4-0.5-0.8-0.5-1.3
- c0-0.5,0.2-0.9,0.5-1.3l1.3-1.3l0.5,0.5l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3C14.6,25.1,14.5,25.5,14.1,25.9z M14.5,21.3l-6.8-6.8
- c-0.4-0.4-0.5-0.8-0.5-1.3c0-0.5,0.2-0.9,0.5-1.3c0.4-0.4,0.8-0.5,1.3-0.5c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3
- c0,0.5-0.2,0.9-0.5,1.3l0.9,0.9c0.2,0.2,0.4,0.2,0.6,0l5.2-5.2l4.4,4.4l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3v0
- l-5.8,5.8c-0.1-0.6-0.5-1.2-0.9-1.6L14.5,21.3z M27,24c0,1.7-1.3,3-3,3h-8.6l7.9-7.9c0.7-0.7,1-1.6,1-2.5c0-0.9-0.4-1.8-1-2.5
- l-0.8-0.8L18.1,9l1.3-1.3c0.7-0.7,1-1.6,1-2.5c0-0.8-0.3-1.6-0.8-2.2H24c1.7,0,3,1.3,3,3V24z" />
- <path class="st0" d="M17.2,12.4c-0.3-0.3-0.8-0.3-1.1,0L12.6,16c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2
- l3.6-3.6C17.5,13.1,17.5,12.7,17.2,12.4z" />
- <path class="st0" d="M18.9,14.2c-0.3-0.3-0.8-0.3-1.1,0l-3.6,3.6c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2
- c0.2,0,0.4-0.1,0.5-0.2l3.6-3.6C19.2,14.9,19.2,14.4,18.9,14.2z" />
- <path class="st0" d="M17.1,20.6l3.6-3.6c0.3-0.3,0.3-0.8,0-1.1s-0.8-0.3-1.1,0L16,19.5c-0.3,0.3-0.3,0.8,0,1.1
- c0.1,0.1,0.3,0.2,0.5,0.2S17,20.7,17.1,20.6z" />
- </g>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
+ <style type="text/css">
+ .st0{fill:#00ABFF;}
+ </style>
+ <g>
+ <path class="st0" d="M24,1H6C3.2,1,1,3.2,1,6v18c0,2.8,2.2,5,5,5h18c2.8,0,5-2.2,5-5V6C29,3.2,26.8,1,24,1z M16.9,3.4
+ c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3L17.7,7l-5.3,5.3c-0.2-0.6-0.5-1.2-0.9-1.6
+ c-0.4-0.4-1-0.8-1.6-0.9l5.8-5.8C16,3.6,16.4,3.4,16.9,3.4z M10.3,27H6c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h8.2l-7.4,7.4
+ c-0.1,0.1-0.2,0.2-0.3,0.3c-0.7,0.7-1,1.6-1,2.5c0,0.9,0.4,1.8,1,2.5l5.2,5.2l-1.3,1.3c-0.7,0.7-1,1.6-1,2.5
+ C9.3,25.5,9.7,26.4,10.3,27z M14.1,25.9c-0.4,0.4-0.8,0.5-1.3,0.5c-0.5,0-0.9-0.2-1.3-0.5c-0.4-0.4-0.5-0.8-0.5-1.3
+ c0-0.5,0.2-0.9,0.5-1.3l1.3-1.3l0.5,0.5l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3C14.6,25.1,14.5,25.5,14.1,25.9z M14.5,21.3l-6.8-6.8
+ c-0.4-0.4-0.5-0.8-0.5-1.3c0-0.5,0.2-0.9,0.5-1.3c0.4-0.4,0.8-0.5,1.3-0.5c0.5,0,0.9,0.2,1.3,0.5c0.4,0.4,0.5,0.8,0.5,1.3
+ c0,0.5-0.2,0.9-0.5,1.3l0.9,0.9c0.2,0.2,0.4,0.2,0.6,0l5.2-5.2l4.4,4.4l0.8,0.8c0.4,0.4,0.5,0.8,0.5,1.3c0,0.5-0.2,0.9-0.5,1.3v0
+ l-5.8,5.8c-0.1-0.6-0.5-1.2-0.9-1.6L14.5,21.3z M27,24c0,1.7-1.3,3-3,3h-8.6l7.9-7.9c0.7-0.7,1-1.6,1-2.5c0-0.9-0.4-1.8-1-2.5
+ l-0.8-0.8L18.1,9l1.3-1.3c0.7-0.7,1-1.6,1-2.5c0-0.8-0.3-1.6-0.8-2.2H24c1.7,0,3,1.3,3,3V24z" />
+ <path class="st0" d="M17.2,12.4c-0.3-0.3-0.8-0.3-1.1,0L12.6,16c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2
+ l3.6-3.6C17.5,13.1,17.5,12.7,17.2,12.4z" />
+ <path class="st0" d="M18.9,14.2c-0.3-0.3-0.8-0.3-1.1,0l-3.6,3.6c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2
+ c0.2,0,0.4-0.1,0.5-0.2l3.6-3.6C19.2,14.9,19.2,14.4,18.9,14.2z" />
+ <path class="st0" d="M17.1,20.6l3.6-3.6c0.3-0.3,0.3-0.8,0-1.1s-0.8-0.3-1.1,0L16,19.5c-0.3,0.3-0.3,0.8,0,1.1
+ c0.1,0.1,0.3,0.2,0.5,0.2S17,20.7,17.1,20.6z" />
+ </g>
</svg> \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/assets/images/toscaNodeManagementTask.svg b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/toscaNodeManagementTask.svg
index 9c173576..e47eade6 100644
--- a/sdc-workflow-designer-ui/src/assets/images/toscaNodeManagementTask.svg
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/assets/images/toscaNodeManagementTask.svg
@@ -1,11 +1,11 @@
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
- <g>
- <path class="st0" d="M24,29H6c-2.8,0-5-2.2-5-5V6c0-2.8,2.2-5,5-5h18c2.8,0,5,2.2,5,5v18C29,26.8,26.8,29,24,29z M6,3
- C4.3,3,3,4.3,3,6v18c0,1.7,1.3,3,3,3h18c1.7,0,3-1.3,3-3V6c0-1.7-1.3-3-3-3H6z" />
- <path class="st0" d="M7.6,14.5h7.5c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,14.5,7.6,14.5z" />
- <path class="st0" d="M7.6,18.7h3.7c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,18.7,7.6,18.7z" />
- <path class="st0" d="M7.6,10.4H19c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,10.4,7.6,10.4z" />
- <path class="st0" d="M24.7,15.1h-5c-0.6,0-1,0.4-1,1c0,0.6,0.4,1,1,1h1.5v5.7c0,0.6,0.4,1,1,1s1-0.4,1-1v-5.7h1.5c0.6,0,1-0.4,1-1
- C25.7,15.5,25.2,15.1,24.7,15.1z" />
- </g>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
+ <g>
+ <path class="st0" d="M24,29H6c-2.8,0-5-2.2-5-5V6c0-2.8,2.2-5,5-5h18c2.8,0,5,2.2,5,5v18C29,26.8,26.8,29,24,29z M6,3
+ C4.3,3,3,4.3,3,6v18c0,1.7,1.3,3,3,3h18c1.7,0,3-1.3,3-3V6c0-1.7-1.3-3-3-3H6z" />
+ <path class="st0" d="M7.6,14.5h7.5c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,14.5,7.6,14.5z" />
+ <path class="st0" d="M7.6,18.7h3.7c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,18.7,7.6,18.7z" />
+ <path class="st0" d="M7.6,10.4H19c0.5,0,0.8-0.4,0.8-1s-0.3-1-0.8-1H7.6c-0.5,0-0.8,0.4-0.8,1S7.1,10.4,7.6,10.4z" />
+ <path class="st0" d="M24.7,15.1h-5c-0.6,0-1,0.4-1,1c0,0.6,0.4,1,1,1h1.5v5.7c0,0.6,0.4,1,1,1s1-0.4,1-1v-5.7h1.5c0.6,0,1-0.4,1-1
+ C25.7,15.5,25.2,15.1,24.7,15.1z" />
+ </g>
</svg> \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/environments/environment.prod.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/environments/environment.prod.ts
index 09c90008..09c90008 100644
--- a/sdc-workflow-designer-ui/src/environments/environment.prod.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/environments/environment.prod.ts
diff --git a/sdc-workflow-designer-ui/src/environments/environment.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/environments/environment.ts
index 981f0422..981f0422 100644
--- a/sdc-workflow-designer-ui/src/environments/environment.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/environments/environment.ts
diff --git a/sdc-workflow-designer-ui/src/index.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/index.html
index 650ed999..650ed999 100644
--- a/sdc-workflow-designer-ui/src/index.html
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/index.html
diff --git a/sdc-workflow-designer-ui/src/main.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/main.ts
index 8613ade7..8613ade7 100644
--- a/sdc-workflow-designer-ui/src/main.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/main.ts
diff --git a/sdc-workflow-designer-ui/src/polyfills.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/polyfills.ts
index 510d3058..510d3058 100644
--- a/sdc-workflow-designer-ui/src/polyfills.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/polyfills.ts
diff --git a/sdc-workflow-designer-ui/src/styles.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/styles.css
index 5d52b5c5..5d52b5c5 100644
--- a/sdc-workflow-designer-ui/src/styles.css
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/styles.css
diff --git a/sdc-workflow-designer-ui/src/test.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/test.ts
index 1b777507..1b777507 100644
--- a/sdc-workflow-designer-ui/src/test.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/test.ts
diff --git a/sdc-workflow-designer-ui/src/tsconfig.app.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/tsconfig.app.json
index 39ba8dba..39ba8dba 100644
--- a/sdc-workflow-designer-ui/src/tsconfig.app.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/tsconfig.app.json
diff --git a/sdc-workflow-designer-ui/src/tsconfig.spec.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/tsconfig.spec.json
index 63d89ff2..63d89ff2 100644
--- a/sdc-workflow-designer-ui/src/tsconfig.spec.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/tsconfig.spec.json
diff --git a/sdc-workflow-designer-ui/src/typings.d.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/typings.d.ts
index d67305af..d67305af 100644
--- a/sdc-workflow-designer-ui/src/typings.d.ts
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/typings.d.ts
diff --git a/sdc-workflow-designer-ui/tsconfig.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/tsconfig.json
index a6c016bf..a6c016bf 100644
--- a/sdc-workflow-designer-ui/tsconfig.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/tsconfig.json
diff --git a/sdc-workflow-designer-ui/tslint.json b/deprecated-workflow-designer/sdc-workflow-designer-ui/tslint.json
index 0db5751c..0db5751c 100644
--- a/sdc-workflow-designer-ui/tslint.json
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/tslint.json
diff --git a/pom.xml b/pom.xml
index 3846d544..2ad0a828 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,62 +1,121 @@
-<?xml version="1.0" encoding="UTF-8"?>
<!--
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <groupId>org.onap.oparent</groupId>
- <artifactId>oparent</artifactId>
- <version>1.1.0</version>
- </parent>
+ ~ Copyright © 2016-2018 European Support Limited
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
- <artifactId>sdc-workflow-designer</artifactId>
- <name>sdc-sdc-workflow-designer</name>
- <version>1.2.0-SNAPSHOT</version>
+ <groupId>org.onap.sdc.workflow_designer</groupId>
+ <artifactId>workflow-designer-parent</artifactId>
+ <version>1.3.0-SNAPSHOT</version>
<packaging>pom</packaging>
- <modules>
- <module>sdc-workflow-designer-ui</module>
- <module>sdc-workflow-designer-server</module>
- <module>distribution</module>
- </modules>
-
<properties>
- <onap.nexus.javadocs-url>dav:https://nexus.onap.org/content/sites/site/org/onap/sdc/sdc-workflow-designer/${project.version}</onap.nexus.javadocs-url>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <onap.version>1.3.0-SNAPSHOT</onap.version>
+ <mvn.docker.version>0.23.0</mvn.docker.version>
+ <docker.optimize>true</docker.optimize>
+ <docker.username>docker</docker.username>
+ <docker.password>docker</docker.password>
+ <nexus.registry>nexus3.onap.org:10001</nexus.registry>
+ <nexus.proxy>https://nexus.onap.org</nexus.proxy>
+ <sitePath>/content/sites/site/org/onap/sdc/workflow/${project.version}</sitePath>
</properties>
-
- <distributionManagement>
- <site>
- <id>ecomp-site</id>
- <url>${onap.nexus.javadocs-url}</url>
- </site>
- </distributionManagement>
-
+
+ <modules>
+ <module>workflow-designer-init</module>
+ <module>workflow-designer-be</module>
+ <module>workflow-designer-ui</module>
+ </modules>
+
<build>
<pluginManagement>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.10</version>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.8</version>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${mvn.docker.version}</version>
+ <configuration>
+ <verbose>false</verbose>
+ <registry>${nexus.registry}</registry>
+ <authConfig>
+ <pull>
+ <username>${docker.username}</username>
+ <password>${docker.password}</password>
+ </pull>
+ </authConfig>
+ </configuration>
+ <executions>
+ <execution>
+ <id>docker-build</id>
+ <phase>install</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>push-images</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>push</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</pluginManagement>
</build>
-</project>
+
+ <repositories>
+ <repository>
+ <id>ecomp-releases</id>
+ <name>Release Repository</name>
+ <url>${nexus.proxy}/content/repositories/releases/</url>
+ </repository>
+ <repository>
+ <id>ecomp-snapshots</id>
+ <name>Snapshots Repository</name>
+ <url>${nexus.proxy}/content/repositories/snapshots/</url>
+ </repository>
+ <repository>
+ <id>ecomp-public</id>
+ <name>Public Repository</name>
+ <url>${nexus.proxy}/content/repositories/public/</url>
+ </repository>
+ </repositories>
+ <distributionManagement>
+ <repository>
+ <id>ecomp-releases</id>
+ <name>Release Repository</name>
+ <url>${nexus.proxy}/content/repositories/releases/</url>
+ </repository>
+ <snapshotRepository>
+ <id>ecomp-snapshots</id>
+ <name>Snapshot Repository</name>
+ <url>${nexus.proxy}/content/repositories/snapshots/</url>
+ </snapshotRepository>
+ <site>
+ <id>ecomp-site</id>
+ <url>dav:${nexus.proxy}${sitePath}</url>
+ </site>
+ </distributionManagement>
+
+</project> \ No newline at end of file
diff --git a/version.properties b/version.properties
index 08f1f93f..70bc126c 100644
--- a/version.properties
+++ b/version.properties
@@ -3,7 +3,7 @@
# because they are used in Jenkins, whose plug-in doesn't support
major=1
-minor=2
+minor=3
patch=0
base_version=${major}.${minor}.${patch}
diff --git a/workflow/workflow-bdd/.gitignore b/workflow-bdd/.gitignore
index 316e3984..316e3984 100644
--- a/workflow/workflow-bdd/.gitignore
+++ b/workflow-bdd/.gitignore
diff --git a/workflow/workflow-bdd/README.txt b/workflow-bdd/README.txt
index 35250ed3..35250ed3 100644
--- a/workflow/workflow-bdd/README.txt
+++ b/workflow-bdd/README.txt
diff --git a/workflow/workflow-bdd/config.json b/workflow-bdd/config.json
index 260f2859..260f2859 100644
--- a/workflow/workflow-bdd/config.json
+++ b/workflow-bdd/config.json
diff --git a/workflow/workflow-bdd/cucumber.js b/workflow-bdd/cucumber.js
index 4ade9b1c..4ade9b1c 100644
--- a/workflow/workflow-bdd/cucumber.js
+++ b/workflow-bdd/cucumber.js
diff --git a/workflow/workflow-bdd/features/Version.feature b/workflow-bdd/features/Version.feature
index e43971cb..e43971cb 100644
--- a/workflow/workflow-bdd/features/Version.feature
+++ b/workflow-bdd/features/Version.feature
diff --git a/workflow/workflow-bdd/features/VersionState.feature b/workflow-bdd/features/VersionState.feature
index 1bb72ab8..1bb72ab8 100644
--- a/workflow/workflow-bdd/features/VersionState.feature
+++ b/workflow-bdd/features/VersionState.feature
diff --git a/workflow/workflow-bdd/features/Workflow.feature b/workflow-bdd/features/Workflow.feature
index dffcc55d..dffcc55d 100644
--- a/workflow/workflow-bdd/features/Workflow.feature
+++ b/workflow-bdd/features/Workflow.feature
diff --git a/workflow/workflow-bdd/features/WorkflowList.feature b/workflow-bdd/features/WorkflowList.feature
index 5b6941ec..5b6941ec 100644
--- a/workflow/workflow-bdd/features/WorkflowList.feature
+++ b/workflow-bdd/features/WorkflowList.feature
diff --git a/workflow/workflow-bdd/package.json b/workflow-bdd/package.json
index e8841bc3..e8841bc3 100644
--- a/workflow/workflow-bdd/package.json
+++ b/workflow-bdd/package.json
diff --git a/workflow/workflow-bdd/plugins/README.md b/workflow-bdd/plugins/README.md
index 956fe772..956fe772 100644
--- a/workflow/workflow-bdd/plugins/README.md
+++ b/workflow-bdd/plugins/README.md
diff --git a/workflow/workflow-bdd/plugins/jsdoc_config.json b/workflow-bdd/plugins/jsdoc_config.json
index a5a608e8..a5a608e8 100644
--- a/workflow/workflow-bdd/plugins/jsdoc_config.json
+++ b/workflow-bdd/plugins/jsdoc_config.json
diff --git a/workflow/workflow-bdd/plugins/reporter.js b/workflow-bdd/plugins/reporter.js
index 8913789c..8913789c 100644
--- a/workflow/workflow-bdd/plugins/reporter.js
+++ b/workflow-bdd/plugins/reporter.js
diff --git a/workflow/workflow-bdd/plugins/steps.js b/workflow-bdd/plugins/steps.js
index 2faa7efb..2faa7efb 100644
--- a/workflow/workflow-bdd/plugins/steps.js
+++ b/workflow-bdd/plugins/steps.js
diff --git a/workflow/workflow-bdd/pom.xml b/workflow-bdd/pom.xml
index 8ad0584d..8ad0584d 100644
--- a/workflow/workflow-bdd/pom.xml
+++ b/workflow-bdd/pom.xml
diff --git a/workflow/workflow-bdd/resources/json/createVersionWithInputsOutputs.json b/workflow-bdd/resources/json/createVersionWithInputsOutputs.json
index a9b6c3de..a9b6c3de 100644
--- a/workflow/workflow-bdd/resources/json/createVersionWithInputsOutputs.json
+++ b/workflow-bdd/resources/json/createVersionWithInputsOutputs.json
diff --git a/workflow/workflow-bdd/resources/json/createWorkflow.json b/workflow-bdd/resources/json/createWorkflow.json
index cc200efb..cc200efb 100644
--- a/workflow/workflow-bdd/resources/json/createWorkflow.json
+++ b/workflow-bdd/resources/json/createWorkflow.json
diff --git a/workflow/workflow-bdd/stepDefinitions/Collaboration_Steps.js b/workflow-bdd/stepDefinitions/Collaboration_Steps.js
index c4de7583..c4de7583 100644
--- a/workflow/workflow-bdd/stepDefinitions/Collaboration_Steps.js
+++ b/workflow-bdd/stepDefinitions/Collaboration_Steps.js
diff --git a/workflow/workflow-bdd/stepDefinitions/General_Steps.js b/workflow-bdd/stepDefinitions/General_Steps.js
index 2e74c6ee..2e74c6ee 100644
--- a/workflow/workflow-bdd/stepDefinitions/General_Steps.js
+++ b/workflow-bdd/stepDefinitions/General_Steps.js
diff --git a/workflow/workflow-bdd/stepDefinitions/InputData_steps.js b/workflow-bdd/stepDefinitions/InputData_steps.js
index 6263bb73..6263bb73 100644
--- a/workflow/workflow-bdd/stepDefinitions/InputData_steps.js
+++ b/workflow-bdd/stepDefinitions/InputData_steps.js
diff --git a/workflow/workflow-bdd/stepDefinitions/InterfaceOperationSteps.js b/workflow-bdd/stepDefinitions/InterfaceOperationSteps.js
index 4c00debc..4c00debc 100644
--- a/workflow/workflow-bdd/stepDefinitions/InterfaceOperationSteps.js
+++ b/workflow-bdd/stepDefinitions/InterfaceOperationSteps.js
diff --git a/workflow/workflow-bdd/stepDefinitions/Item_steps.js b/workflow-bdd/stepDefinitions/Item_steps.js
index 3ff7f20f..3ff7f20f 100644
--- a/workflow/workflow-bdd/stepDefinitions/Item_steps.js
+++ b/workflow-bdd/stepDefinitions/Item_steps.js
diff --git a/workflow/workflow-bdd/stepDefinitions/REST_Steps.js b/workflow-bdd/stepDefinitions/REST_Steps.js
index c3844124..c3844124 100644
--- a/workflow/workflow-bdd/stepDefinitions/REST_Steps.js
+++ b/workflow-bdd/stepDefinitions/REST_Steps.js
diff --git a/workflow/workflow-bdd/stepDefinitions/Utils.js b/workflow-bdd/stepDefinitions/Utils.js
index 6f8a7a5c..6f8a7a5c 100644
--- a/workflow/workflow-bdd/stepDefinitions/Utils.js
+++ b/workflow-bdd/stepDefinitions/Utils.js
diff --git a/workflow/workflow-bdd/stepDefinitions/Workflow_Steps.js b/workflow-bdd/stepDefinitions/Workflow_Steps.js
index abeacab2..abeacab2 100644
--- a/workflow/workflow-bdd/stepDefinitions/Workflow_Steps.js
+++ b/workflow-bdd/stepDefinitions/Workflow_Steps.js
diff --git a/workflow/workflow-bdd/stepDefinitions/world.js b/workflow-bdd/stepDefinitions/world.js
index cf749e66..cf749e66 100644
--- a/workflow/workflow-bdd/stepDefinitions/world.js
+++ b/workflow-bdd/stepDefinitions/world.js
diff --git a/workflow/workflow-designer-be/pom.xml b/workflow-designer-be/pom.xml
index ac77e5f7..ac77e5f7 100644
--- a/workflow/workflow-designer-be/pom.xml
+++ b/workflow-designer-be/pom.xml
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/RestUtils.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/RestUtils.java
index b6259ccc..b6259ccc 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/RestUtils.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/RestUtils.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java
index 0feafd2a..0feafd2a 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/RestConstants.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/RestConstants.java
index 817bebe1..817bebe1 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/RestConstants.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/RestConstants.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowController.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowController.java
index 7027985f..7027985f 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowController.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowController.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java
index 91995bd0..91995bd0 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/WorkflowVersionController.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/exceptionshandlers/CustomizedResponseEntityExceptionHandler.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/exceptionshandlers/CustomizedResponseEntityExceptionHandler.java
index ca6111df..ca6111df 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/exceptionshandlers/CustomizedResponseEntityExceptionHandler.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/exceptionshandlers/CustomizedResponseEntityExceptionHandler.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/CollectionWrapper.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/CollectionWrapper.java
index 1e11bc90..1e11bc90 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/CollectionWrapper.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/CollectionWrapper.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStateDto.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStateDto.java
index a7f43cdd..a7f43cdd 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStateDto.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStateDto.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/validator/WorkflowVersionValidator.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/validator/WorkflowVersionValidator.java
index 03101042..03101042 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/validator/WorkflowVersionValidator.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/validator/WorkflowVersionValidator.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ArtifactRepository.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ArtifactRepository.java
index ed9371e6..ed9371e6 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ArtifactRepository.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ArtifactRepository.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ParameterRepository.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ParameterRepository.java
index 9f7fb1ad..9f7fb1ad 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ParameterRepository.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/ParameterRepository.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/UniqueValueRepository.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/UniqueValueRepository.java
index cf7b0633..cf7b0633 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/UniqueValueRepository.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/UniqueValueRepository.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryImpl.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryImpl.java
index 3c528db1..3c528db1 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryImpl.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryImpl.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryImpl.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryImpl.java
index 468e93fe..468e93fe 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryImpl.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryImpl.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ArtifactEntity.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ArtifactEntity.java
index 287acb45..287acb45 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ArtifactEntity.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ArtifactEntity.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java
index 7c957d85..7c957d85 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterEntity.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterPropertyName.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterPropertyName.java
index fa17bf69..fa17bf69 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterPropertyName.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterPropertyName.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterRole.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterRole.java
index 9f5aacfe..9f5aacfe 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterRole.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterRole.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterType.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterType.java
index 04d09c01..04d09c01 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterType.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/ParameterType.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/UniqueValueEntity.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/UniqueValueEntity.java
index ee7172b6..ee7172b6 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/UniqueValueEntity.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/UniqueValueEntity.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java
index 72e62778..72e62778 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/Workflow.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowElementType.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowElementType.java
index 10de37e0..10de37e0 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowElementType.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowElementType.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowProperty.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowProperty.java
index 90fb3085..90fb3085 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowProperty.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowProperty.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersion.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersion.java
index 1c828d43..1c828d43 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersion.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersion.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersionState.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersionState.java
index 2be1d4da..2be1d4da 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersionState.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/persistence/types/WorkflowVersionState.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/SwaggerConfig.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/SwaggerConfig.java
index 5105114f..5105114f 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/SwaggerConfig.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/SwaggerConfig.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ZusammenConfig.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ZusammenConfig.java
index 092c3464..092c3464 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ZusammenConfig.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ZusammenConfig.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/filters/SessionContextFilter.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/filters/SessionContextFilter.java
index 07d8eee7..07d8eee7 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/filters/SessionContextFilter.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/filters/SessionContextFilter.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/UniqueValueService.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/UniqueValueService.java
index 0a8b640a..0a8b640a 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/UniqueValueService.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/UniqueValueService.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowManager.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowManager.java
index ca079d42..ca079d42 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowManager.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowManager.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowNameComparator.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowNameComparator.java
index 1cb6cb1d..1cb6cb1d 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowNameComparator.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowNameComparator.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowVersionManager.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowVersionManager.java
index 8effb647..8effb647 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowVersionManager.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/WorkflowVersionManager.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/EntityNotFoundException.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/EntityNotFoundException.java
index 7fc3e81c..7fc3e81c 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/EntityNotFoundException.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/EntityNotFoundException.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidArtifactException.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidArtifactException.java
index c4584179..c4584179 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidArtifactException.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidArtifactException.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidPaginationParameterException.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidPaginationParameterException.java
index a4d4a5d6..a4d4a5d6 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidPaginationParameterException.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/InvalidPaginationParameterException.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/UniqueValueViolationException.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/UniqueValueViolationException.java
index a3046a77..a3046a77 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/UniqueValueViolationException.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/UniqueValueViolationException.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionCreationException.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionCreationException.java
index 31c88923..31c88923 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionCreationException.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionCreationException.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionModificationException.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionModificationException.java
index 752d6bce..752d6bce 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionModificationException.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionModificationException.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionStateModificationException.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionStateModificationException.java
index 87027a58..87027a58 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionStateModificationException.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/exceptions/VersionStateModificationException.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/CollaborationConfiguration.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/CollaborationConfiguration.java
index 80b969cf..80b969cf 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/CollaborationConfiguration.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/CollaborationConfiguration.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
index 52dd8f17..52dd8f17 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImpl.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImpl.java
index 484c598a..484c598a 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImpl.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImpl.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapper.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapper.java
index a3a1cdcc..a3a1cdcc 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapper.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapper.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapper.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapper.java
index 45012b57..45012b57 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapper.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapper.java
diff --git a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapper.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapper.java
index 5cfcd7ed..5cfcd7ed 100644
--- a/workflow/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapper.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapper.java
diff --git a/workflow/workflow-designer-be/src/main/resources/application.properties b/workflow-designer-be/src/main/resources/application.properties
index ab4930b5..ab4930b5 100644
--- a/workflow/workflow-designer-be/src/main/resources/application.properties
+++ b/workflow-designer-be/src/main/resources/application.properties
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java
index 7a7e715e..7a7e715e 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/RestPath.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/TestUtil.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/TestUtil.java
index e2a566aa..e2a566aa 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/TestUtil.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/TestUtil.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowControllerTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowControllerTest.java
index 5e7df483..5e7df483 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowControllerTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowControllerTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowVersionControllerTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowVersionControllerTest.java
index ee9a56c8..ee9a56c8 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowVersionControllerTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/WorkflowVersionControllerTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryTest.java
index b86b14b9..b86b14b9 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ArtifactRepositoryTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryTest.java
index 07a42658..07a42658 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/persistence/impl/ParameterRepositoryTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/UniqueValueServiceTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/UniqueValueServiceTest.java
index 4911060a..4911060a 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/UniqueValueServiceTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/UniqueValueServiceTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImplTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImplTest.java
index 0105fe83..0105fe83 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImplTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImplTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImplTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImplTest.java
index 7dee5245..7dee5245 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImplTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/WorkflowVersionManagerImplTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapperTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapperTest.java
index d9790355..d9790355 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapperTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionMapperTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapperTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapperTest.java
index 070c433e..070c433e 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapperTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/VersionStateMapperTest.java
diff --git a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapperTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapperTest.java
index 55802cc0..55802cc0 100644
--- a/workflow/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapperTest.java
+++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/services/impl/mappers/WorkflowMapperTest.java
diff --git a/workflow/workflow-designer-init/pom.xml b/workflow-designer-init/pom.xml
index 7f926e86..7f926e86 100644
--- a/workflow/workflow-designer-init/pom.xml
+++ b/workflow-designer-init/pom.xml
diff --git a/workflow/workflow-designer-init/src/main/docker/Dockerfile b/workflow-designer-init/src/main/docker/Dockerfile
index 75e7efdc..75e7efdc 100644
--- a/workflow/workflow-designer-init/src/main/docker/Dockerfile
+++ b/workflow-designer-init/src/main/docker/Dockerfile
diff --git a/workflow/workflow-designer-init/src/main/docker/create_workflow_db.cql b/workflow-designer-init/src/main/docker/create_workflow_db.cql
index c6c1f15e..c6c1f15e 100644
--- a/workflow/workflow-designer-init/src/main/docker/create_workflow_db.cql
+++ b/workflow-designer-init/src/main/docker/create_workflow_db.cql
diff --git a/workflow/workflow-designer-init/src/main/docker/start.sh b/workflow-designer-init/src/main/docker/start.sh
index 919277fd..919277fd 100644
--- a/workflow/workflow-designer-init/src/main/docker/start.sh
+++ b/workflow-designer-init/src/main/docker/start.sh
diff --git a/workflow/workflow-designer-ui/pom.xml b/workflow-designer-ui/pom.xml
index a841a5aa..a841a5aa 100755..100644
--- a/workflow/workflow-designer-ui/pom.xml
+++ b/workflow-designer-ui/pom.xml
diff --git a/workflow/workflow-designer-ui/src/main/frontend/.babelrc b/workflow-designer-ui/src/main/frontend/.babelrc
index 97edcc9f..97edcc9f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/.babelrc
+++ b/workflow-designer-ui/src/main/frontend/.babelrc
diff --git a/workflow/workflow-designer-ui/src/main/frontend/.eslintignore b/workflow-designer-ui/src/main/frontend/.eslintignore
index 2410c0ec..2410c0ec 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/.eslintignore
+++ b/workflow-designer-ui/src/main/frontend/.eslintignore
diff --git a/workflow/workflow-designer-ui/src/main/frontend/.eslintrc b/workflow-designer-ui/src/main/frontend/.eslintrc
index 0ce8aa4c..0ce8aa4c 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/.eslintrc
+++ b/workflow-designer-ui/src/main/frontend/.eslintrc
diff --git a/workflow/workflow-designer-ui/src/main/frontend/.gitignore b/workflow-designer-ui/src/main/frontend/.gitignore
index d2d69816..d2d69816 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/.gitignore
+++ b/workflow-designer-ui/src/main/frontend/.gitignore
diff --git a/workflow/workflow-designer-ui/src/main/frontend/__mocks__/fileMock.js b/workflow-designer-ui/src/main/frontend/__mocks__/fileMock.js
index 2297d426..2297d426 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/__mocks__/fileMock.js
+++ b/workflow-designer-ui/src/main/frontend/__mocks__/fileMock.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/__mocks__/sdc-ui/lib/react/SVGIcon.js b/workflow-designer-ui/src/main/frontend/__mocks__/sdc-ui/lib/react/SVGIcon.js
index 2136c492..2136c492 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/__mocks__/sdc-ui/lib/react/SVGIcon.js
+++ b/workflow-designer-ui/src/main/frontend/__mocks__/sdc-ui/lib/react/SVGIcon.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/external-resources/ping/ping b/workflow-designer-ui/src/main/frontend/external-resources/ping/ping
index 9a02d73d..9a02d73d 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/external-resources/ping/ping
+++ b/workflow-designer-ui/src/main/frontend/external-resources/ping/ping
diff --git a/workflow/workflow-designer-ui/src/main/frontend/index.html b/workflow-designer-ui/src/main/frontend/index.html
index c3a6f3b6..c3a6f3b6 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/index.html
+++ b/workflow-designer-ui/src/main/frontend/index.html
diff --git a/workflow/workflow-designer-ui/src/main/frontend/jest.config.js b/workflow-designer-ui/src/main/frontend/jest.config.js
index 43c12ef2..43c12ef2 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/jest.config.js
+++ b/workflow-designer-ui/src/main/frontend/jest.config.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/jsconfig.json b/workflow-designer-ui/src/main/frontend/jsconfig.json
index cb990650..cb990650 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/jsconfig.json
+++ b/workflow-designer-ui/src/main/frontend/jsconfig.json
diff --git a/workflow/workflow-designer-ui/src/main/frontend/package.json b/workflow-designer-ui/src/main/frontend/package.json
index 911eb629..911eb629 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/package.json
+++ b/workflow-designer-ui/src/main/frontend/package.json
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss b/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss
index 6f4e6e91..6f4e6e91 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/_common.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/_components.scss b/workflow-designer-ui/src/main/frontend/resources/scss/_components.scss
index 974317e8..974317e8 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/_components.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/_components.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/_features.scss b/workflow-designer-ui/src/main/frontend/resources/scss/_features.scss
index c83b6e75..c83b6e75 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/_features.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/_features.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss b/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss
index 997e0a21..997e0a21 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_fonts.scss b/workflow-designer-ui/src/main/frontend/resources/scss/common/_fonts.scss
index 9d71cf7e..9d71cf7e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_fonts.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/common/_fonts.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_utils.scss b/workflow-designer-ui/src/main/frontend/resources/scss/common/_utils.scss
index 99b1ff5d..99b1ff5d 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/common/_utils.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/common/_utils.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_customModal.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_customModal.scss
index 48cd4cff..48cd4cff 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_customModal.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_customModal.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_expandableInput.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_expandableInput.scss
index 2484a73e..2484a73e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_expandableInput.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_expandableInput.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_inputOptions.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_inputOptions.scss
index 4f7e309a..4f7e309a 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_inputOptions.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_inputOptions.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_layout.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_layout.scss
index bcd07ebe..bcd07ebe 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_layout.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_layout.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_loader.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_loader.scss
index eb91d7c7..eb91d7c7 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_loader.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_loader.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_navigationSideBar.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_navigationSideBar.scss
index 695dc6a5..695dc6a5 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_navigationSideBar.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_navigationSideBar.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_notifications.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_notifications.scss
index cc44cfbc..cc44cfbc 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_notifications.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_notifications.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_searchInput.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_searchInput.scss
index efd68496..efd68496 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_searchInput.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_searchInput.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_tree.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_tree.scss
index 1847ff30..1847ff30 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_tree.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_tree.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_validationForm.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_validationForm.scss
index 176e5469..176e5469 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_validationForm.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_validationForm.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_versionController.scss b/workflow-designer-ui/src/main/frontend/resources/scss/components/_versionController.scss
index fe397d31..fe397d31 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/components/_versionController.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/components/_versionController.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_catalog.scss b/workflow-designer-ui/src/main/frontend/resources/scss/features/_catalog.scss
index debb8b81..debb8b81 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_catalog.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/features/_catalog.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_composition.scss b/workflow-designer-ui/src/main/frontend/resources/scss/features/_composition.scss
index 7ab294a2..7ab294a2 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_composition.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/features/_composition.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_general.scss b/workflow-designer-ui/src/main/frontend/resources/scss/features/_general.scss
index f99b8aad..f99b8aad 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_general.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/features/_general.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_inputOutput.scss b/workflow-designer-ui/src/main/frontend/resources/scss/features/_inputOutput.scss
index 45338039..45338039 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_inputOutput.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/features/_inputOutput.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_overview.scss b/workflow-designer-ui/src/main/frontend/resources/scss/features/_overview.scss
index b713b93f..b713b93f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_overview.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/features/_overview.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_workflow.scss b/workflow-designer-ui/src/main/frontend/resources/scss/features/_workflow.scss
index 58d1df98..58d1df98 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/features/_workflow.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/features/_workflow.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/style.scss b/workflow-designer-ui/src/main/frontend/resources/scss/style.scss
index 95828ae2..95828ae2 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/resources/scss/style.scss
+++ b/workflow-designer-ui/src/main/frontend/resources/scss/style.scss
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/App.js b/workflow-designer-ui/src/main/frontend/src/App.js
index f780c8ed..f780c8ed 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/App.js
+++ b/workflow-designer-ui/src/main/frontend/src/App.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/appConstants.js b/workflow-designer-ui/src/main/frontend/src/appConstants.js
index b1497a95..b1497a95 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/appConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/appConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/appSelectors.js b/workflow-designer-ui/src/main/frontend/src/appSelectors.js
index 657429e4..657429e4 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/appSelectors.js
+++ b/workflow-designer-ui/src/main/frontend/src/appSelectors.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/config/Configuration.js b/workflow-designer-ui/src/main/frontend/src/config/Configuration.js
index 3e558dad..3e558dad 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/config/Configuration.js
+++ b/workflow-designer-ui/src/main/frontend/src/config/Configuration.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/config/config.json b/workflow-designer-ui/src/main/frontend/src/config/config.json
index f1121444..f1121444 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/config/config.json
+++ b/workflow-designer-ui/src/main/frontend/src/config/config.json
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js
index 5eeaaa23..5eeaaa23 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
index 99cee755..99cee755 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogActions-test.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogActions-test.js
index f49c2fdc..f49c2fdc 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogActions-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogActions-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogReducer-test.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogReducer-test.js
index c4f34e7f..c4f34e7f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogReducer-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogReducer-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogSagas-test.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogSagas-test.js
index cdea344c..cdea344c 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogSagas-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/__tests__/catalogSagas-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogActions.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogActions.js
index 89f53e4c..89f53e4c 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogActions.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogActions.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogApi.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogApi.js
index 79b271ce..79b271ce 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogApi.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogApi.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogConstants.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogConstants.js
index 3120ad73..3120ad73 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogReducer.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogReducer.js
index cbd7ab70..cbd7ab70 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogSagas.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogSagas.js
index 8dcfc610..8dcfc610 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogSagas.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/catalogSagas.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx
index 1e39c174..1e39c174 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Header.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Header.jsx
index 93dfffe8..93dfffe8 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Header.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Header.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx
index 5f60ebda..5f60ebda 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx
index b120929a..b120929a 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/Version.js b/workflow-designer-ui/src/main/frontend/src/features/version/Version.js
index 3a52058e..3a52058e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/Version.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/Version.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/VersionView.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/VersionView.jsx
index a7c0f88e..a7c0f88e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/VersionView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/VersionView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/composition/CompositionView.js b/workflow-designer-ui/src/main/frontend/src/features/version/composition/CompositionView.js
index ba0351b6..ba0351b6 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/composition/CompositionView.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/composition/CompositionView.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/composition/newDiagram.bpmn b/workflow-designer-ui/src/main/frontend/src/features/version/composition/newDiagram.bpmn
index 7ed9b6e1..7ed9b6e1 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/composition/newDiagram.bpmn
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/composition/newDiagram.bpmn
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersion.js b/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersion.js
index e659bb6b..e659bb6b 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersion.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersion.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersionView.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersionView.jsx
index 555dbf9e..555dbf9e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersionView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersionView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/createVersionConstants.js b/workflow-designer-ui/src/main/frontend/src/features/version/create/createVersionConstants.js
index 5f72ff7a..5f72ff7a 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/createVersionConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/create/createVersionConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/views/NewVersionContainer.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/create/views/NewVersionContainer.jsx
index 2ea70a77..2ea70a77 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/create/views/NewVersionContainer.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/create/views/NewVersionContainer.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/General.js b/workflow-designer-ui/src/main/frontend/src/features/version/general/General.js
index d6eb9a38..d6eb9a38 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/General.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/general/General.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/GeneralView.js b/workflow-designer-ui/src/main/frontend/src/features/version/general/GeneralView.js
index b5a6410c..b5a6410c 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/GeneralView.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/general/GeneralView.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/generalApi.js b/workflow-designer-ui/src/main/frontend/src/features/version/general/generalApi.js
index 3c726d1b..3c726d1b 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/generalApi.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/general/generalApi.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/generalSelectors.js b/workflow-designer-ui/src/main/frontend/src/features/version/general/generalSelectors.js
index 83377c0c..83377c0c 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/general/generalSelectors.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/general/generalSelectors.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutput.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutput.js
index 9040eb66..9040eb66 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutput.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutput.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutputView.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutputView.jsx
index a2a06188..a2a06188 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutputView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutputView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputActions-test.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputActions-test.js
index 465602fc..465602fc 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputActions-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputActions-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputReducer-test.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputReducer-test.js
index b923f4a4..b923f4a4 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputReducer-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputReducer-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputSelectors-test.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputSelectors-test.js
index 8e9bdbd4..8e9bdbd4 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputSelectors-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/__tests__/inputOutputSelectors-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputActions.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputActions.js
index a9548592..a9548592 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputActions.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputActions.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputConstants.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputConstants.js
index a660da5a..a660da5a 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputReducer.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputReducer.js
index f63c1254..f63c1254 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputSelectors.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputSelectors.js
index c37c9dbc..c37c9dbc 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputSelectors.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputSelectors.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputValidations.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputValidations.js
index 88a0a77c..88a0a77c 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputValidations.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/inputOutputValidations.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/DataRow.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/DataRow.jsx
index 2e84b2f7..2e84b2f7 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/DataRow.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/DataRow.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/NoDataRow.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/NoDataRow.jsx
index 1a4d7534..1a4d7534 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/NoDataRow.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/NoDataRow.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/Tab.js b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/Tab.js
index 4b983731..4b983731 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/Tab.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/Tab.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableBody.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableBody.jsx
index 052846b3..052846b3 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableBody.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableBody.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableHead.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableHead.jsx
index 206f54a8..206f54a8 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableHead.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/TableHead.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionApi.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionApi.js
index 8f6895eb..8f6895eb 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionApi.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionApi.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionConstants.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionConstants.js
index ea9f0cbb..ea9f0cbb 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionController.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionController.js
index c14f4fc1..c14f4fc1 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionController.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionController.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionControllerView.jsx b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionControllerView.jsx
index 27260e60..27260e60 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionControllerView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/VersionControllerView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/VersionControllerView_snapshot-test.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/VersionControllerView_snapshot-test.js
index b3adc721..b3adc721 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/VersionControllerView_snapshot-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/VersionControllerView_snapshot-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/__snapshots__/VersionControllerView_snapshot-test.js.snap b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/__snapshots__/VersionControllerView_snapshot-test.js.snap
index 1ad910c6..1ad910c6 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/__snapshots__/VersionControllerView_snapshot-test.js.snap
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/__tests__/__snapshots__/VersionControllerView_snapshot-test.js.snap
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerConstants.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerConstants.js
index f7a412c2..f7a412c2 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerSelectors.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerSelectors.js
index aa2ea8d0..aa2ea8d0 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerSelectors.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/versionControllerSelectors.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/ActionButtons.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/ActionButtons.js
index e8cbb4da..e8cbb4da 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/ActionButtons.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/ActionButtons.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/SvgButton.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/SvgButton.js
index d08ff434..d08ff434 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/SvgButton.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/SvgButton.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionButton.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionButton.js
index 723e176d..723e176d 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionButton.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionButton.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionSelect.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionSelect.js
index 9ffc46c1..9ffc46c1 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionSelect.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionSelect.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionsContainer.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionsContainer.js
index 47f08073..47f08073 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionsContainer.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionsContainer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/WorkflowTitle.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/WorkflowTitle.js
index 230ecf08..230ecf08 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/WorkflowTitle.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/WorkflowTitle.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js
index c7fccd22..c7fccd22 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js
index 49d4d32f..49d4d32f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionSaga.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflow.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflow.js
index ece4e5e1..ece4e5e1 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflow.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflow.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflowView.jsx b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflowView.jsx
index 5f6f1805..5f6f1805 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflowView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflowView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/CreateWorkflowView_snapshot-test.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/CreateWorkflowView_snapshot-test.js
index a0d81c71..a0d81c71 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/CreateWorkflowView_snapshot-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/CreateWorkflowView_snapshot-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap
index 8a2790a9..8a2790a9 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSaga-test.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSaga-test.js
index a3d7c7cf..a3d7c7cf 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSaga-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSaga-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSelector-test.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSelector-test.js
index 909c876a..909c876a 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSelector-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/createWorkflowSelector-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowApi.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowApi.js
index b97226a3..b97226a3 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowApi.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowApi.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowConstants.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowConstants.js
index f308b75e..f308b75e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSaga.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSaga.js
index 0f057f12..0f057f12 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSaga.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSaga.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSelector.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSelector.js
index ee947f8d..ee947f8d 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSelector.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/create/createWorkflowSelector.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/Overview.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/Overview.js
index aebdead1..aebdead1 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/Overview.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/Overview.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/OverviewView.jsx b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/OverviewView.jsx
index 14e3cce5..14e3cce5 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/OverviewView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/OverviewView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewApi.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewApi.js
index b7910bc1..b7910bc1 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewApi.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewApi.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewConstansts.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewConstansts.js
index 53e90613..53e90613 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewConstansts.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewConstansts.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewReducer.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewReducer.js
index 720d410c..720d410c 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js
index 28549c87..28549c87 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSelectors.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSelectors.js
index 45007fea..45007fea 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSelectors.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSelectors.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/VersionListItem.jsx b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/VersionListItem.jsx
index aa852922..aa852922 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/VersionListItem.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/VersionListItem.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/index.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/index.js
index 801c6693..801c6693 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/index.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionList/index.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionTree.jsx b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionTree.jsx
index cd3be771..cd3be771 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionTree.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/VersionTree.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowDetails.jsx b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowDetails.jsx
index 493ad650..493ad650 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowDetails.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowDetails.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx
index 06c67bc0..06c67bc0 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowVersions.jsx b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowVersions.jsx
index b207bc8a..b207bc8a 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowVersions.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowVersions.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowConstants.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowConstants.js
index 06b471ea..06b471ea 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js
index 09e0b499..09e0b499 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowSelectors.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowSelectors.js
index 5ea8ff24..5ea8ff24 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowSelectors.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowSelectors.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/I18n.js b/workflow-designer-ui/src/main/frontend/src/i18n/I18n.js
index f07ae173..f07ae173 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/I18n.js
+++ b/workflow-designer-ui/src/main/frontend/src/i18n/I18n.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/i18next-scanner.config.js b/workflow-designer-ui/src/main/frontend/src/i18n/i18next-scanner.config.js
index a626211a..a626211a 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/i18next-scanner.config.js
+++ b/workflow-designer-ui/src/main/frontend/src/i18n/i18next-scanner.config.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/languages.json b/workflow-designer-ui/src/main/frontend/src/i18n/languages.json
index 986cf128..986cf128 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/languages.json
+++ b/workflow-designer-ui/src/main/frontend/src/i18n/languages.json
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/translationSaga.js b/workflow-designer-ui/src/main/frontend/src/i18n/translationSaga.js
index 9c972ea7..9c972ea7 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/i18n/translationSaga.js
+++ b/workflow-designer-ui/src/main/frontend/src/i18n/translationSaga.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/index.js b/workflow-designer-ui/src/main/frontend/src/index.js
index 9dfe6378..9dfe6378 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/index.js
+++ b/workflow-designer-ui/src/main/frontend/src/index.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/rootReducers.js b/workflow-designer-ui/src/main/frontend/src/rootReducers.js
index 9dbef266..9dbef266 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/rootReducers.js
+++ b/workflow-designer-ui/src/main/frontend/src/rootReducers.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/rootSaga.js b/workflow-designer-ui/src/main/frontend/src/rootSaga.js
index c280010f..c280010f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/rootSaga.js
+++ b/workflow-designer-ui/src/main/frontend/src/rootSaga.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/routes.js b/workflow-designer-ui/src/main/frontend/src/routes.js
index 79abe303..79abe303 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/routes.js
+++ b/workflow-designer-ui/src/main/frontend/src/routes.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/services/restAPIUtil.js b/workflow-designer-ui/src/main/frontend/src/services/restAPIUtil.js
index c0d72c0e..c0d72c0e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/services/restAPIUtil.js
+++ b/workflow-designer-ui/src/main/frontend/src/services/restAPIUtil.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js b/workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js
index 39400fd9..39400fd9 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/components/Select/index.js b/workflow-designer-ui/src/main/frontend/src/shared/components/Select/index.js
index dcf11f2f..dcf11f2f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/components/Select/index.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/components/Select/index.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/components/VersionInfo/index.js b/workflow-designer-ui/src/main/frontend/src/shared/components/VersionInfo/index.js
index e89d9aa1..e89d9aa1 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/components/VersionInfo/index.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/components/VersionInfo/index.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/errorResponseHandler/errorResponseHandler.js b/workflow-designer-ui/src/main/frontend/src/shared/errorResponseHandler/errorResponseHandler.js
index 960e255d..960e255d 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/errorResponseHandler/errorResponseHandler.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/errorResponseHandler/errorResponseHandler.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/Loader.jsx b/workflow-designer-ui/src/main/frontend/src/shared/loader/Loader.jsx
index 0b4c9f42..0b4c9f42 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/Loader.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/loader/Loader.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderConstants.js b/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderConstants.js
index 02ce84ca..02ce84ca 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderReducer.js b/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderReducer.js
index d883492e..d883492e 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/loader/LoaderReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/__tests__/loaderReducer-test.js b/workflow-designer-ui/src/main/frontend/src/shared/loader/__tests__/loaderReducer-test.js
index 3ae40361..3ae40361 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/loader/__tests__/loaderReducer-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/loader/__tests__/loaderReducer-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapper.js b/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapper.js
index 71bda2be..71bda2be 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapper.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapper.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapperView.jsx b/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapperView.jsx
index 95be8cda..95be8cda 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapperView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapperView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperActions-test.js b/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperActions-test.js
index 0be53de4..0be53de4 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperActions-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperActions-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperReducer-test.js b/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperReducer-test.js
index c33190c5..c33190c5 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperReducer-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/modal/__tests__/modalWrapperReducer-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperActions.js b/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperActions.js
index fe0ca0a5..fe0ca0a5 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperActions.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperActions.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperComponents.js b/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperComponents.js
index 1e051b2f..1e051b2f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperComponents.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperComponents.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperReducer.js b/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperReducer.js
index 600998b6..600998b6 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/modal/modalWrapperReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationLink.jsx b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationLink.jsx
index 6688cb55..6688cb55 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationLink.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationLink.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenu.jsx b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenu.jsx
index f8a7d46f..f8a7d46f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenu.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenu.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItem.jsx b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItem.jsx
index 540e09c7..540e09c7 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItem.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItem.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItems.jsx b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItems.jsx
index 56bad084..56bad084 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItems.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/NavigationMenuItems.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/index.js b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/index.js
index b3af6f47..b3af6f47 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/index.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/navigationSideBar/index.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/Notifications.js b/workflow-designer-ui/src/main/frontend/src/shared/notifications/Notifications.js
index 6d9f7242..6d9f7242 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/Notifications.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/Notifications.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/NotificationsView.jsx b/workflow-designer-ui/src/main/frontend/src/shared/notifications/NotificationsView.jsx
index 710ffce7..710ffce7 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/NotificationsView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/NotificationsView.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/NotificationView_snapshot-test.js b/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/NotificationView_snapshot-test.js
index 616f10ff..616f10ff 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/NotificationView_snapshot-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/NotificationView_snapshot-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/__snapshots__/NotificationView_snapshot-test.js.snap b/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/__snapshots__/NotificationView_snapshot-test.js.snap
index eb4a573f..eb4a573f 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/__snapshots__/NotificationView_snapshot-test.js.snap
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/__snapshots__/NotificationView_snapshot-test.js.snap
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/notificationsReducer-test.js b/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/notificationsReducer-test.js
index d308d22d..d308d22d 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/notificationsReducer-test.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/__tests__/notificationsReducer-test.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsActions.js b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsActions.js
index 84f9da83..84f9da83 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsActions.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsActions.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsConstants.js b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsConstants.js
index 3e166424..3e166424 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsConstants.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsConstants.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsReducer.js b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsReducer.js
index f0989cf5..f0989cf5 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsReducer.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsSagas.js b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsSagas.js
index c30930a2..c30930a2 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsSagas.js
+++ b/workflow-designer-ui/src/main/frontend/src/shared/notifications/notificationsSagas.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/searchInput/SearchInput.jsx b/workflow-designer-ui/src/main/frontend/src/shared/searchInput/SearchInput.jsx
index e0046926..e0046926 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/searchInput/SearchInput.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/searchInput/SearchInput.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/shared/tree/Tree.jsx b/workflow-designer-ui/src/main/frontend/src/shared/tree/Tree.jsx
index 7b25ab89..7b25ab89 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/shared/tree/Tree.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/shared/tree/Tree.jsx
diff --git a/workflow/workflow-designer-ui/src/main/frontend/src/store.js b/workflow-designer-ui/src/main/frontend/src/store.js
index 90b55bbd..90b55bbd 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/src/store.js
+++ b/workflow-designer-ui/src/main/frontend/src/store.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/testSetup/fileTransform.js b/workflow-designer-ui/src/main/frontend/testSetup/fileTransform.js
index 16a5a5f8..16a5a5f8 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/testSetup/fileTransform.js
+++ b/workflow-designer-ui/src/main/frontend/testSetup/fileTransform.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/tools/ModuleRedirectPlugin.js b/workflow-designer-ui/src/main/frontend/tools/ModuleRedirectPlugin.js
index 37eb5c3b..37eb5c3b 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/tools/ModuleRedirectPlugin.js
+++ b/workflow-designer-ui/src/main/frontend/tools/ModuleRedirectPlugin.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/tools/devConfig.defaults.json b/workflow-designer-ui/src/main/frontend/tools/devConfig.defaults.json
index 9fa77d49..9fa77d49 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/tools/devConfig.defaults.json
+++ b/workflow-designer-ui/src/main/frontend/tools/devConfig.defaults.json
diff --git a/workflow/workflow-designer-ui/src/main/frontend/tools/getDevConfig.js b/workflow-designer-ui/src/main/frontend/tools/getDevConfig.js
index 49aa9158..49aa9158 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/tools/getDevConfig.js
+++ b/workflow-designer-ui/src/main/frontend/tools/getDevConfig.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/tools/mocks/mock.js b/workflow-designer-ui/src/main/frontend/tools/mocks/mock.js
index 8366f400..8366f400 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/tools/mocks/mock.js
+++ b/workflow-designer-ui/src/main/frontend/tools/mocks/mock.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/tools/proxy-server.js b/workflow-designer-ui/src/main/frontend/tools/proxy-server.js
index 3193fb16..3193fb16 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/tools/proxy-server.js
+++ b/workflow-designer-ui/src/main/frontend/tools/proxy-server.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/webpack.config.js b/workflow-designer-ui/src/main/frontend/webpack.config.js
index c281bbab..c281bbab 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/webpack.config.js
+++ b/workflow-designer-ui/src/main/frontend/webpack.config.js
diff --git a/workflow/workflow-designer-ui/src/main/frontend/yarn.lock b/workflow-designer-ui/src/main/frontend/yarn.lock
index 2d73ab95..2d73ab95 100644
--- a/workflow/workflow-designer-ui/src/main/frontend/yarn.lock
+++ b/workflow-designer-ui/src/main/frontend/yarn.lock
diff --git a/workflow/workflow-designer-ui/src/main/java/org/onap/workflow/web/TransparentProxy.java b/workflow-designer-ui/src/main/java/org/onap/workflow/web/TransparentProxy.java
index d7f54306..d7f54306 100755..100644
--- a/workflow/workflow-designer-ui/src/main/java/org/onap/workflow/web/TransparentProxy.java
+++ b/workflow-designer-ui/src/main/java/org/onap/workflow/web/TransparentProxy.java
diff --git a/workflow/workflow-designer-ui/src/main/webapp/WEB-INF/jetty-web.xml b/workflow-designer-ui/src/main/webapp/WEB-INF/jetty-web.xml
index 1867004f..1867004f 100755..100644
--- a/workflow/workflow-designer-ui/src/main/webapp/WEB-INF/jetty-web.xml
+++ b/workflow-designer-ui/src/main/webapp/WEB-INF/jetty-web.xml
diff --git a/workflow/workflow-designer-ui/src/main/webapp/WEB-INF/web.xml b/workflow-designer-ui/src/main/webapp/WEB-INF/web.xml
index 8cbfd89b..8cbfd89b 100755..100644
--- a/workflow/workflow-designer-ui/src/main/webapp/WEB-INF/web.xml
+++ b/workflow-designer-ui/src/main/webapp/WEB-INF/web.xml
diff --git a/workflow/pom.xml b/workflow/pom.xml
deleted file mode 100644
index e51acccc..00000000
--- a/workflow/pom.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<project
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.onap.sdc.workflow_designer</groupId>
- <artifactId>workflow-designer-parent</artifactId>
- <version>1.3.0-SNAPSHOT</version>
- <packaging>pom</packaging>
-
- <properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <onap.version>1.3.0-SNAPSHOT</onap.version>
- <mvn.docker.version>0.23.0</mvn.docker.version>
- <docker.optimize>true</docker.optimize>
- <docker.username>docker</docker.username>
- <docker.password>docker</docker.password>
- <nexus.registry>nexus3.onap.org:10001</nexus.registry>
- <nexus.proxy>https://nexus.onap.org</nexus.proxy>
- <sitePath>/content/sites/site/org/onap/sdc/workflow/${project.version}</sitePath>
- </properties>
-
- <modules>
- <module>workflow-designer-init</module>
- <module>workflow-designer-be</module>
- <module>workflow-designer-ui</module>
- </modules>
-
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${mvn.docker.version}</version>
- <configuration>
- <verbose>false</verbose>
- <registry>${nexus.registry}</registry>
- <authConfig>
- <pull>
- <username>${docker.username}</username>
- <password>${docker.password}</password>
- </pull>
- </authConfig>
- </configuration>
- <executions>
- <execution>
- <id>docker-build</id>
- <phase>install</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- <execution>
- <id>push-images</id>
- <phase>deploy</phase>
- <goals>
- <goal>push</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <repositories>
- <repository>
- <id>ecomp-releases</id>
- <name>Release Repository</name>
- <url>${nexus.proxy}/content/repositories/releases/</url>
- </repository>
- <repository>
- <id>ecomp-snapshots</id>
- <name>Snapshots Repository</name>
- <url>${nexus.proxy}/content/repositories/snapshots/</url>
- </repository>
- <repository>
- <id>ecomp-public</id>
- <name>Public Repository</name>
- <url>${nexus.proxy}/content/repositories/public/</url>
- </repository>
- </repositories>
- <distributionManagement>
- <repository>
- <id>ecomp-releases</id>
- <name>Release Repository</name>
- <url>${nexus.proxy}/content/repositories/releases/</url>
- </repository>
- <snapshotRepository>
- <id>ecomp-snapshots</id>
- <name>Snapshot Repository</name>
- <url>${nexus.proxy}/content/repositories/snapshots/</url>
- </snapshotRepository>
- <site>
- <id>ecomp-site</id>
- <url>dav:${nexus.proxy}${sitePath}</url>
- </site>
- </distributionManagement>
-
-</project> \ No newline at end of file