You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/09/13 09:53:14 UTC
[22/69] [abbrv] ignite git commit: Web Console beta-3.
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/batch-confirm.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/batch-confirm.jade b/modules/web-console/frontend/views/templates/batch-confirm.jade
new file mode 100644
index 0000000..7451314
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/batch-confirm.jade
@@ -0,0 +1,32 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+.modal(tabindex='-1' role='dialog')
+ .modal-dialog
+ .modal-content
+ .modal-header
+ button.close(ng-click='cancel()' aria-hidden='true') ×
+ h4.modal-title Confirmation
+ .modal-body(ng-show='content')
+ p(ng-bind-html='content' style='text-align: center')
+ .modal-footer
+ .checkbox.labelField
+ label
+ input(type='checkbox' ng-model='applyToAll')
+ | Apply to all
+ button.btn.btn-default(id='batch-confirm-btn-cancel' ng-click='cancel()') Cancel
+ button.btn.btn-default(id='batch-confirm-btn-skip' ng-click='skip(applyToAll)') Skip
+ button.btn.btn-primary(id='batch-confirm-btn-overwrite' ng-click='overwrite(applyToAll)') Overwrite
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/clone.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/clone.jade b/modules/web-console/frontend/views/templates/clone.jade
new file mode 100644
index 0000000..d68bf45
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/clone.jade
@@ -0,0 +1,37 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+include ../../app/helpers/jade/mixins.jade
+
+.modal(tabindex='-1' role='dialog')
+ .modal-dialog
+ .modal-content
+ .modal-header
+ button.close(ng-click='$hide()') ×
+ h4.modal-title Clone
+ form.form-horizontal.modal-body.row(name='ui.inputForm' novalidate)
+ div
+ .col-sm-2
+ label.required.labelFormField New name:
+ .col-sm-10
+ .input-tip
+ +ignite-form-field-input('"copy-new-name"','newName', false, 'true', 'Enter new name')(
+ data-ignite-form-field-input-autofocus='true'
+ ignite-on-enter='form.$valid && ok(newName)'
+ )
+ .modal-footer
+ button.btn.btn-default(id='copy-btn-cancel' ng-click='$hide()') Cancel
+ button.btn.btn-primary(id='copy-btn-confirm' ng-disabled='ui.inputForm.$invalid' ng-click='ok(newName)') Confirm
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/confirm.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/confirm.jade b/modules/web-console/frontend/views/templates/confirm.jade
new file mode 100644
index 0000000..26af061
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/confirm.jade
@@ -0,0 +1,31 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+.modal(tabindex='-1' role='dialog')
+ .modal-dialog
+ .modal-content
+ .modal-header
+ button.close(ng-click='confirmCancel()' aria-hidden='true') ×
+ h4.modal-title Confirmation
+ .modal-body(ng-show='content')
+ p(ng-bind-html='content' style='text-align: center;')
+ .modal-footer
+ button#confirm-btn-cancel.btn.btn-default(ng-click='confirmCancel()') Cancel
+
+ button#confirm-btn-no.btn.btn-default(ng-if='yesNo' ng-click='confirmNo()') No
+ button#confirm-btn-yes.btn.btn-primary(ng-if='yesNo' ng-click='confirmYes()') Yes
+
+ button#confirm-btn-ok.btn.btn-primary(ng-if='!yesNo' ng-click='confirmYes()') Confirm
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/demo-info.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/demo-info.jade b/modules/web-console/frontend/views/templates/demo-info.jade
new file mode 100644
index 0000000..100e806
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/demo-info.jade
@@ -0,0 +1,45 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+.modal.center(role='dialog')
+ .modal-dialog
+ .modal-content
+ #errors-container.modal-header.header
+ button.close(ng-click='close()' aria-hidden='true') ×
+ h4.modal-title {{title}}
+ .modal-body
+ div(ng-bind-html='message')
+ div(ng-hide='hasAgents')
+ p
+ div
+ h4
+ i.fa.fa-download.fa-cursor-default
+ | How To Start Demo
+ ul
+ li
+ a(ng-click='downloadAgent()') #[b Download]
+ | and unzip ignite-web-agent archive
+ li #[b Run] shell file ignite-web-agent.{sh|bat}
+ div(ng-show='hasAgents')
+ h4
+ i.fa.fa-star-o.fa-cursor-default
+ | Start Demo
+ ul
+ li Web Agent is already started
+ li Close dialog and try Web Console
+ .modal-footer
+ button.btn.btn-default(ng-class='hasAgents ? "btn-primary" : "btn-default"' ng-click='close()') Close
+ button.btn.btn-primary(ng-hide='hasAgents' ng-click='downloadAgent()') Download agent
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/dropdown.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/dropdown.jade b/modules/web-console/frontend/views/templates/dropdown.jade
new file mode 100644
index 0000000..2ee8616
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/dropdown.jade
@@ -0,0 +1,24 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+ul.dropdown-menu(tabindex='-1' role='menu' ng-show='content && content.length')
+ li(role='presentation' ui-sref-active='active' ng-class='{divider: item.divider, active: item.active}' ng-repeat='item in content')
+ a(role='menuitem' tabindex='-1' ui-sref='{{item.sref}}' ng-if='!item.action && !item.divider && item.sref' ng-bind='item.text')
+ a(role='menuitem' tabindex='-1' ng-href='{{item.href}}' ng-if='!item.action && !item.divider && item.href' target='{{item.target || ""}}' ng-bind='item.text')
+ a(role='menuitem' tabindex='-1' href='javascript:void(0)' ng-if='!item.action && !item.divider && item.click' ng-click='$eval(item.click);$hide()' ng-bind='item.text')
+ div(role='menuitem' ng-if='item.action')
+ i.fa.pull-right(class='{{ item.action.icon }}' ng-click='item.action.click(item.data)' bs-tooltip data-title='{{ item.action.tooltip }}' data-trigger='hover' data-placement='bottom')
+ div: a(ui-sref='{{ item.sref }}' ng-bind='item.text')
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/getting-started.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/getting-started.jade b/modules/web-console/frontend/views/templates/getting-started.jade
new file mode 100644
index 0000000..98bc265
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/getting-started.jade
@@ -0,0 +1,32 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+.modal.center(role='dialog')
+ .modal-dialog
+ .modal-content
+ #errors-container.modal-header.header
+ button.close(ng-click='close()' aria-hidden='true') ×
+ h4.modal-title {{title}}
+ .getting-started
+ .col-xs-12(ng-bind-html='message')
+ .modal-footer
+ .checkbox
+ label
+ input(type='checkbox' ng-model='ui.showGettingStarted')
+ | Show getting started on next login
+ a.btn.btn-primary(ng-disabled='isFirst()' ng-click='!isFirst() && prev()') Prev
+ a.btn.btn-primary(ng-disabled='isLast()' ng-click='!isLast() && next()') Next
+ a.btn.btn-primary(ng-click='close()') Close
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/message.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/message.jade b/modules/web-console/frontend/views/templates/message.jade
new file mode 100644
index 0000000..6dcf445
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/message.jade
@@ -0,0 +1,26 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+.modal(tabindex='-1' role='dialog')
+ .modal-dialog
+ .modal-content
+ .modal-header
+ button.close(ng-click='$hide()' aria-hidden='true') ×
+ h4.modal-title {{title}}
+ .modal-body(ng-show='content')
+ p(ng-bind-html='content.join("<br/>")' style='text-align: left;')
+ .modal-footer
+ button.btn.btn-primary(id='confirm-btn-confirm' ng-click='$hide()') Ok
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/pagination.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/pagination.jade b/modules/web-console/frontend/views/templates/pagination.jade
new file mode 100644
index 0000000..08ced60
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/pagination.jade
@@ -0,0 +1,32 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+nav(ng-if='numPages && pages.length >= 2')
+ ul.pagination
+ li(ng-if='currentPage > 1')
+ a(href='javascript:void(0);' ng-click='selectPage(1)' bs-tooltip='' data-title='First page' data-placement='bottom')
+ i.fa.fa-angle-double-left
+ li(ng-if='currentPage > 1')
+ a(href='javascript:void(0);' ng-click='selectPage(currentPage-1)' bs-tooltip='' data-title='Previous page' data-placement='bottom')
+ i.fa.fa-angle-left
+ li(ng-repeat='page in pages' ng-class='{active: page==currentPage}')
+ a(href='javascript:void(0);' ng-click='selectPage(page)') {{page}}
+ li(ng-if='currentPage < numPages')
+ a(href='javascript:void(0);' ng-click='selectPage(currentPage+1)' bs-tooltip='' data-title='Next page' data-placement='bottom')
+ i.fa.fa-angle-right
+ li(ng-if='currentPage < numPages')
+ a(href='javascript:void(0);' ng-click='selectPage(numPages)' bs-tooltip='' data-title='Last page' data-placement='bottom')
+ i.fa.fa-angle-double-right
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/select.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/select.jade b/modules/web-console/frontend/views/templates/select.jade
new file mode 100644
index 0000000..3feee61
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/select.jade
@@ -0,0 +1,26 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+ul.select.dropdown-menu(tabindex='-1' ng-show='$isVisible()' role='select')
+ li(ng-if='$showAllNoneButtons || ($isMultiple && $matches.length > 2)')
+ a(id='li-dropdown-select-all' ng-click='$selectAll()') {{$allText}} ({{$matches.length}})
+ a(id='li-dropdown-select-none' ng-click='$selectNone()') {{$noneText}}
+ hr(style='margin: 5px 0')
+ li(role='presentation' ng-repeat='match in $matches')
+ hr(ng-if='match.value == undefined' style='margin: 5px 0')
+ a(id='li-dropdown-item-{{$index}}' role='menuitem' tabindex='-1' ng-class='{active: $isActive($index)}' ng-click='$select($index, $event)' bs-tooltip='widthIsSufficient && !widthIsSufficient("li-dropdown-item-{{$index}}", $index, match.label) ? match.label : ""' data-placement='bottom')
+ i(class='{{$iconCheckmark}}' ng-if='$isActive($index)' ng-class='{active: $isActive($index)}')
+ span(ng-bind='match.label')
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/frontend/views/templates/validation-error.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/views/templates/validation-error.jade b/modules/web-console/frontend/views/templates/validation-error.jade
new file mode 100644
index 0000000..13deb9b
--- /dev/null
+++ b/modules/web-console/frontend/views/templates/validation-error.jade
@@ -0,0 +1,25 @@
+//-
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+
+.popover.validation-error
+ .arrow
+ .popover-content
+ table
+ tr
+ td
+ label {{content}}  
+ td
+ button.close(id='popover-btn-close' ng-click='$hide()') ×
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/pom.xml
----------------------------------------------------------------------
diff --git a/modules/web-console/pom.xml b/modules/web-console/pom.xml
index 5c5cac0..e66252c 100644
--- a/modules/web-console/pom.xml
+++ b/modules/web-console/pom.xml
@@ -32,16 +32,17 @@
<artifactId>ignite-web-console</artifactId>
<version>1.7.0-SNAPSHOT</version>
+ <url>http://ignite.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
- <version>0.0.23</version>
+ <version>1.0</version>
<configuration>
- <workingDirectory>src/main/js</workingDirectory>
+ <workingDirectory>frontend</workingDirectory>
</configuration>
<executions>
@@ -51,8 +52,9 @@
<goal>install-node-and-npm</goal>
</goals>
<configuration>
- <nodeVersion>v4.4.4</nodeVersion>
- <npmVersion>2.14.20</npmVersion>
+ <nodeVersion>v4.4.7</nodeVersion>
+ <npmVersion>3.8.6</npmVersion>
+ <workingDirectory>frontend</workingDirectory>
</configuration>
</execution>
@@ -61,9 +63,32 @@
<goals>
<goal>npm</goal>
</goals>
+
+ <configuration>
+ <arguments>install --no-optional</arguments>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>gulp build</id>
+ <goals>
+ <goal>gulp</goal>
+ </goals>
+
+ <configuration>
+ <arguments>build</arguments>
+ </configuration>
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/.babelrc
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/.babelrc b/modules/web-console/src/main/js/.babelrc
deleted file mode 100644
index af0f0c3..0000000
--- a/modules/web-console/src/main/js/.babelrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "presets": ["es2015"]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/.eslintrc
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/.eslintrc b/modules/web-console/src/main/js/.eslintrc
deleted file mode 100644
index 1882b44..0000000
--- a/modules/web-console/src/main/js/.eslintrc
+++ /dev/null
@@ -1,202 +0,0 @@
-parser: "babel-eslint"
-
-env:
- es6: true
- browser: true
-
-ecmaFeatures:
- arrowFunctions: true
- blockBindings: true
- classes: true
- defaultParams: true
- destructuring: true
- module: true
- objectLiteralComputedProperties: true
- objectLiteralShorthandMethods: true
- objectLiteralShorthandProperties: true
- spread: true
- templateStrings: true
- experimentalObjectRestSpread: true
-
-globals:
- _: true
- $: true
- d3: true
- io: true
- window: true
- global: true
- angular: true
- $generatorCommon: true
- $generatorProperties: true
- $generatorXml: true
- $generatorJava: true
- $generatorPom: true
- $generatorReadme: true
- $generatorDocker: true
- $generatorOptional: true
- saveAs: true
- process: true
-
-rules:
- arrow-parens: [1, "always"]
- arrow-spacing: [1, { "before": true, "after": true }]
- accessor-pairs: 2
- block-scoped-var: 2
- brace-style: [0, "1tbs"]
- comma-dangle: [2, "never"]
- comma-spacing: [2, {"before": false, "after": true}]
- comma-style: [2, "last"]
- complexity: [1, 11]
- computed-property-spacing: [2, "never"]
- consistent-return: 0
- consistent-this: [0, "that"]
- constructor-super: 2
- curly: [2, "multi-or-nest"]
- default-case: 2
- dot-location: 0
- dot-notation: [2, { "allowKeywords": true }]
- eol-last: 2
- eqeqeq: 2
- func-names: 0
- func-style: [0, "declaration"]
- generator-star-spacing: 0
- guard-for-in: 1
- handle-callback-err: 0
- id-length: [2, {"min": 1, "max": 60}]
- indent: [2, 4, {"SwitchCase": 1}]
- key-spacing: [2, { "beforeColon": false, "afterColon": true }]
- lines-around-comment: 0
- linebreak-style: [0, "unix"]
- max-depth: [0, 4]
- max-len: [0, 120, 4]
- max-nested-callbacks: [1, 4]
- max-params: [0, 3]
- max-statements: [0, 10]
- new-cap: 2
- new-parens: 2
- no-alert: 2
- no-array-constructor: 2
- no-bitwise: 0
- no-caller: 2
- no-catch-shadow: 2
- no-cond-assign: 2
- no-console: 0
- no-constant-condition: 2
- no-continue: 0
- no-class-assign: 2
- no-const-assign: 2
- no-control-regex: 2
- no-debugger: 2
- no-delete-var: 2
- no-div-regex: 0
- no-dupe-keys: 2
- no-dupe-args: 2
- no-duplicate-case: 2
- no-else-return: 2
- no-empty: 2
- no-empty-character-class: 2
- no-eq-null: 2
- no-eval: 2
- no-ex-assign: 2
- no-extend-native: 2
- no-extra-bind: 2
- no-extra-boolean-cast: 2
- no-extra-parens: 0
- no-extra-semi: 2
- no-fallthrough: 2
- no-floating-decimal: 1
- no-func-assign: 2
- no-implied-eval: 2
- no-inline-comments: 0
- no-inner-declarations: [2, "functions"]
- no-invalid-regexp: 2
- no-irregular-whitespace: 2
- no-iterator: 2
- no-label-var: 2
- no-labels: 2
- no-lone-blocks: 2
- no-lonely-if: 2
- no-implicit-coercion: [2, {"boolean": false, "number": true, "string": true}]
- no-loop-func: 2
- no-mixed-requires: [0, false]
- no-mixed-spaces-and-tabs: [2, true]
- no-multi-spaces: 2
- no-multi-str: 2
- no-multiple-empty-lines: [0, {"max": 2}]
- no-native-reassign: 2
- no-negated-in-lhs: 2
- no-nested-ternary: 0
- no-new: 2
- no-new-func: 2
- no-new-object: 2
- no-new-require: 0
- no-new-wrappers: 2
- no-obj-calls: 2
- no-octal: 2
- no-octal-escape: 2
- no-param-reassign: 0
- no-path-concat: 0
- no-plusplus: 0
- no-process-env: 0
- no-process-exit: 2
- no-proto: 2
- no-redeclare: 2
- no-regex-spaces: 1
- no-restricted-modules: 0
- no-script-url: 0
- no-self-compare: 2
- no-sequences: 2
- no-shadow: 2
- no-shadow-restricted-names: 2
- no-spaced-func: 2
- no-sparse-arrays: 1
- no-sync: 0
- no-ternary: 0
- no-trailing-spaces: 2
- no-throw-literal: 0
- no-this-before-super: 2
- no-unexpected-multiline: 2
- no-undef: 2
- no-undef-init: 2
- no-undefined: 2
- no-unneeded-ternary: 2
- no-unreachable: 2
- no-unused-expressions: [2, { allowShortCircuit: true }]
- no-unused-vars: [2, {"vars": "all", "args": "after-used"}]
- no-use-before-define: 2
- no-useless-call: 2
- no-void: 0
- no-var: 2
- no-warning-comments: 0
- no-with: 2
- newline-after-var: 0
- object-shorthand: [2, "always"]
- one-var: [2, "never"]
- operator-assignment: [2, "always"]
- operator-linebreak: 0
- padded-blocks: 0
- prefer-const: 1
- prefer-spread: 2
- quote-props: [2, "as-needed"]
- quotes: [2, "single"]
- radix: 1
- semi: [2, "always"]
- semi-spacing: [2, {"before": false, "after": true}]
- sort-vars: 0
- keyword-spacing: 2
- space-before-blocks: [2, "always"]
- space-before-function-paren: [2, "never"]
- space-in-parens: 0
- space-infix-ops: 2
- space-unary-ops: [2, { "words": true, "nonwords": false }]
- spaced-comment: [1, "always"]
- use-isnan: 2
- valid-jsdoc: 0
- valid-typeof: 2
- vars-on-top: 2
- wrap-iife: 0
- wrap-regex: 0
- yoda: [2, "never"]
-
-parserOptions:
- sourceType: module
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/.gitignore
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/.gitignore b/modules/web-console/src/main/js/.gitignore
deleted file mode 100644
index a6af5e1..0000000
--- a/modules/web-console/src/main/js/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-*.idea
-*.log
-.npmrc
-build/*
-node_modules
-ignite_modules_temp/*
-public/stylesheets/*.css
-serve/config/*.json
-serve/agent_dists/*.zip
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/app.config.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/app.config.js b/modules/web-console/src/main/js/app/app.config.js
deleted file mode 100644
index 25c24b0..0000000
--- a/modules/web-console/src/main/js/app/app.config.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-import alertTemplateUrl from '../views/templates/alert.jade';
-
-const igniteConsoleCfg = angular.module('ignite-console.config', ['ngAnimate', 'mgcrea.ngStrap']);
-
-// Configure AngularJS animation: do not animate fa-spin.
-igniteConsoleCfg.config(['$animateProvider', ($animateProvider) => {
- $animateProvider.classNameFilter(/^((?!(fa-spin)).)*$/);
-}]);
-
-// AngularStrap modal popup configuration.
-igniteConsoleCfg.config(['$modalProvider', ($modalProvider) => {
- angular.extend($modalProvider.defaults, {
- animation: 'am-fade-and-scale',
- html: true
- });
-}]);
-
-// AngularStrap popover configuration.
-igniteConsoleCfg.config(['$popoverProvider', ($popoverProvider) => {
- angular.extend($popoverProvider.defaults, {
- trigger: 'manual',
- placement: 'right',
- container: 'body',
- templateUrl: '/templates/validation-error.html'
- });
-}]);
-
-// AngularStrap tooltips configuration.
-igniteConsoleCfg.config(['$tooltipProvider', ($tooltipProvider) => {
- angular.extend($tooltipProvider.defaults, {
- container: 'body',
- delay: 150,
- placement: 'right',
- html: 'true',
- trigger: 'click hover'
- });
-}]);
-
-// AngularStrap select (combobox) configuration.
-igniteConsoleCfg.config(['$selectProvider', ($selectProvider) => {
- angular.extend($selectProvider.defaults, {
- container: 'body',
- maxLength: '5',
- allText: 'Select All',
- noneText: 'Clear All',
- templateUrl: '/templates/select.html',
- iconCheckmark: 'fa fa-check',
- caretHtml: ''
- });
-}]);
-
-// AngularStrap alerts configuration.
-igniteConsoleCfg.config(['$alertProvider', ($alertProvider) => {
- angular.extend($alertProvider.defaults, {
- container: 'body',
- placement: 'top-right',
- duration: '5',
- templateUrl: alertTemplateUrl,
- type: 'danger'
- });
-}]);
-
-
-// AngularStrap dropdowns () configuration.
-igniteConsoleCfg.config(['$dropdownProvider', ($dropdownProvider) => {
- angular.extend($dropdownProvider.defaults, {
- templateUrl: 'templates/dropdown.html'
- });
-}]);
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/app.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/app.js b/modules/web-console/src/main/js/app/app.js
deleted file mode 100644
index 00ae3eb..0000000
--- a/modules/web-console/src/main/js/app/app.js
+++ /dev/null
@@ -1,274 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-import '../public/stylesheets/style.scss';
-
-import './app.config';
-
-import './decorator/select';
-import './decorator/tooltip';
-
-import './modules/form/form.module';
-import './modules/agent/agent.module.js';
-import './modules/query-notebooks/query-notebooks.module';
-import './modules/Demo/Demo.module.js';
-
-import './modules/states/signin.state';
-import './modules/states/logout.state';
-import './modules/states/password.state';
-import './modules/states/configuration.state';
-import './modules/states/sql.state';
-import './modules/states/profile.state';
-import './modules/states/admin.state';
-
-// ignite:modules
-import './modules/user/user.module';
-import './modules/branding/branding.module';
-import './modules/navbar/navbar.module';
-import './modules/configuration/configuration.module';
-import './modules/getting-started/GettingStarted.provider';
-import './modules/dialog/dialog.module';
-import './modules/Version/Version.provider';
-import './modules/ace.module';
-import './modules/socket.module';
-import './modules/loading/loading.module';
-// endignite
-
-// Directives.
-import igniteAutoFocus from './directives/auto-focus.directive.js';
-import igniteBsAffixUpdate from './directives/bs-affix-update.directive';
-import igniteCentered from './directives/centered/centered.directive.js';
-import igniteCopyToClipboard from './directives/copy-to-clipboard.directive.js';
-import igniteHideOnStateChange from './directives/hide-on-state-change/hide-on-state-change.directive';
-import igniteInformation from './directives/information/information.directive';
-import igniteMatch from './directives/match.directive.js';
-import igniteOnClickFocus from './directives/on-click-focus.directive.js';
-import igniteOnEnter from './directives/on-enter.directive.js';
-import igniteOnEnterFocusMove from './directives/on-enter-focus-move.directive.js';
-import igniteOnEscape from './directives/on-escape.directive.js';
-import igniteUiAceDocker from './directives/ui-ace-docker/ui-ace-docker.directive';
-import igniteUiAceJava from './directives/ui-ace-java/ui-ace-java.directive';
-import igniteUiAcePojos from './directives/ui-ace-pojos/ui-ace-pojos.directive';
-import igniteUiAcePom from './directives/ui-ace-pom/ui-ace-pom.directive';
-import igniteUiAceTabs from './directives/ui-ace-tabs.directive';
-import igniteUiAceXml from './directives/ui-ace-xml/ui-ace-xml.directive';
-
-// Services.
-import ChartColors from './services/ChartColors.service';
-import Clone from './services/Clone.service.js';
-import Confirm from './services/Confirm.service.js';
-import ConfirmBatch from './services/ConfirmBatch.service.js';
-import CopyToClipboard from './services/CopyToClipboard.service';
-import Countries from './services/Countries.service';
-import Focus from './services/Focus.service';
-import InetAddress from './services/InetAddress.service';
-import JavaTypes from './services/JavaTypes.service';
-import Messages from './services/Messages.service';
-import ModelNormalizer from './services/ModelNormalizer.service.js';
-import LegacyTable from './services/LegacyTable.service';
-import LegacyUtils from './services/LegacyUtils.service';
-import UnsavedChangesGuard from './services/UnsavedChangesGuard.service';
-
-// Providers.
-
-// Filters.
-import byName from './filters/byName.filter';
-import domainsValidation from './filters/domainsValidation.filter';
-import hasPojo from './filters/hasPojo.filter';
-
-// Generators
-import $generatorCommon from 'generator/generator-common';
-import $generatorJava from 'generator/generator-java';
-import $generatorOptional from 'generator/generator-optional';
-import $generatorProperties from 'generator/generator-properties';
-import $generatorReadme from 'generator/generator-readme';
-import $generatorXml from 'generator/generator-xml';
-
-window.$generatorCommon = $generatorCommon;
-window.$generatorJava = $generatorJava;
-window.$generatorOptional = $generatorOptional;
-window.$generatorProperties = $generatorProperties;
-window.$generatorReadme = $generatorReadme;
-window.$generatorXml = $generatorXml;
-
-// Controllers
-import admin from 'controllers/admin-controller';
-import caches from 'controllers/caches-controller';
-import clusters from 'controllers/clusters-controller';
-import domains from 'controllers/domains-controller';
-import igfs from 'controllers/igfs-controller';
-import profile from 'controllers/profile-controller';
-import sql from 'controllers/sql-controller';
-import auth from './controllers/auth.controller';
-import notebooks from './controllers/notebooks.controller';
-import resetPassword from './controllers/reset-password.controller';
-
-// Inject external modules.
-import 'ignite_modules_temp/index';
-
-import baseTemplate from '../views/base.jade';
-
-angular
-.module('ignite-console', [
- // Optional AngularJS modules.
- 'ngAnimate',
- 'ngSanitize',
- // Third party libs.
- 'ngRetina',
- 'btford.socket-io',
- 'mgcrea.ngStrap',
- 'ui.router',
- 'gridster',
- 'dndLists',
- 'nvd3',
- 'smart-table',
- 'treeControl',
- 'ui.grid',
- 'ui.grid.saveState',
- 'ui.grid.selection',
- 'ui.grid.resizeColumns',
- 'ui.grid.autoResize',
- 'ui.grid.exporter',
- // Base modules.
- 'ignite-console.ace',
- 'ignite-console.Form',
- 'ignite-console.user',
- 'ignite-console.branding',
- 'ignite-console.socket',
- 'ignite-console.agent',
- 'ignite-console.query-notebooks',
- 'ignite-console.demo',
- // States.
- 'ignite-console.states.login',
- 'ignite-console.states.logout',
- 'ignite-console.states.password',
- 'ignite-console.states.configuration',
- 'ignite-console.states.sql',
- 'ignite-console.states.profile',
- 'ignite-console.states.admin',
- // Common modules.
- 'ignite-console.dialog',
- 'ignite-console.navbar',
- 'ignite-console.configuration',
- 'ignite-console.getting-started',
- 'ignite-console.version',
- 'ignite-console.loading',
- // Ignite configuration module.
- 'ignite-console.config',
- // Ignite modules.
- 'ignite-console.modules'
-])
-// Directives.
-.directive(...igniteAutoFocus)
-.directive(...igniteBsAffixUpdate)
-.directive(...igniteCentered)
-.directive(...igniteCopyToClipboard)
-.directive(...igniteHideOnStateChange)
-.directive(...igniteInformation)
-.directive(...igniteMatch)
-.directive(...igniteOnClickFocus)
-.directive(...igniteOnEnter)
-.directive(...igniteOnEnterFocusMove)
-.directive(...igniteOnEscape)
-.directive(...igniteUiAceDocker)
-.directive(...igniteUiAceJava)
-.directive(...igniteUiAcePojos)
-.directive(...igniteUiAcePom)
-.directive(...igniteUiAceTabs)
-.directive(...igniteUiAceXml)
-// Services.
-.service(...ChartColors)
-.service(...Clone)
-.service(...Confirm)
-.service(...ConfirmBatch)
-.service(...CopyToClipboard)
-.service(...Countries)
-.service(...Focus)
-.service(...InetAddress)
-.service(...JavaTypes)
-.service(...Messages)
-.service(...ModelNormalizer)
-.service(...LegacyTable)
-.service(...LegacyUtils)
-.service(...UnsavedChangesGuard)
-// Controllers.
-.controller(...admin)
-.controller(...auth)
-.controller(...notebooks)
-.controller(...resetPassword)
-.controller(...caches)
-.controller(...clusters)
-.controller(...domains)
-.controller(...igfs)
-.controller(...profile)
-.controller(...sql)
-// Filters.
-.filter(...hasPojo)
-.filter(...domainsValidation)
-.filter(...byName)
-.config(['$stateProvider', '$locationProvider', '$urlRouterProvider', ($stateProvider, $locationProvider, $urlRouterProvider) => {
- // Set up the states.
- $stateProvider
- .state('base', {
- url: '',
- abstract: true,
- templateUrl: baseTemplate
- })
- .state('settings', {
- url: '/settings',
- abstract: true,
- templateUrl: baseTemplate
- });
-
- $urlRouterProvider.otherwise('/');
-
- $locationProvider.html5Mode(true);
-}])
-.run(['$rootScope', '$state', 'MetaTags', 'gettingStarted', ($root, $state, $meta, gettingStarted) => {
- $root._ = _;
- $root.$state = $state;
- $root.$meta = $meta;
- $root.gettingStarted = gettingStarted;
-}])
-.run(['$rootScope', 'Auth', 'User', 'IgniteAgentMonitor', ($root, Auth, User, agentMonitor) => {
- if (Auth.authorized) {
- User.read()
- .then((user) => $root.$broadcast('user', user))
- .then(() => Auth.authorized && agentMonitor.init());
- }
-}])
-.run(['$rootScope', ($root) => {
- $root.$on('$stateChangeStart', () => {
- _.forEach(angular.element('.modal'), (m) => angular.element(m).scope().$hide());
- });
-}])
-.run(['$rootScope', '$http', '$state', 'IgniteMessages', 'User',
- ($root, $http, $state, Messages, User) => { // eslint-disable-line no-shadow
- $root.revertIdentity = () => {
- $http
- .get('/api/v1/admin/revert/identity')
- .then(User.read)
- .then((user) => {
- $root.$broadcast('user', user);
-
- $state.go('settings.admin');
- })
- .catch(Messages.showError);
- };
- }
-]);
-
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/controllers/auth.controller.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/controllers/auth.controller.js b/modules/web-console/src/main/js/app/controllers/auth.controller.js
deleted file mode 100644
index 21ffeb8..0000000
--- a/modules/web-console/src/main/js/app/controllers/auth.controller.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-// Sign in controller.
-// TODO IGNITE-1936 Refactor this controller.
-export default ['auth', [
- '$scope', 'IgniteFocus', 'IgniteCountries', 'Auth',
- ($scope, Focus, Countries, Auth) => {
- $scope.auth = Auth.auth;
- $scope.forgotPassword = Auth.forgotPassword;
- $scope.action = 'signin';
- $scope.countries = Countries.getAll();
-
- Focus.move('user_email');
- }
-]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/controllers/notebooks.controller.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/controllers/notebooks.controller.js b/modules/web-console/src/main/js/app/controllers/notebooks.controller.js
deleted file mode 100644
index 0440c46..0000000
--- a/modules/web-console/src/main/js/app/controllers/notebooks.controller.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-// Controller that load notebooks in navigation bar .
-export default ['notebooks', [
- '$rootScope', '$scope', '$modal', '$state', '$http', 'IgniteMessages',
- ($root, $scope, $modal, $state, $http, Messages) => {
- $root.notebooks = [];
-
- // Pre-fetch modal dialogs.
- const _notebookNewModal = $modal({scope: $scope, templateUrl: '/sql/notebook-new.html', show: false});
-
- $root.rebuildDropdown = function() {
- $scope.notebookDropdown = [
- {text: 'Create new notebook', click: 'inputNotebookName()'},
- {divider: true}
- ];
-
- _.forEach($root.notebooks, (notebook) => $scope.notebookDropdown.push({
- text: notebook.name,
- sref: 'base.sql.notebook({noteId:"' + notebook._id + '"})'
- }));
- };
-
- $root.reloadNotebooks = function() {
- // When landing on the page, get clusters and show them.
- $http.post('/api/v1/notebooks/list')
- .success((data) => {
- $root.notebooks = data;
-
- $root.rebuildDropdown();
- })
- .error(Messages.showError);
- };
-
- $root.inputNotebookName = () => {
- _notebookNewModal.$promise.then(_notebookNewModal.show);
- };
-
- $root.createNewNotebook = (name) => {
- $http.post('/api/v1/notebooks/new', {name})
- .success((noteId) => {
- _notebookNewModal.hide();
-
- $root.reloadNotebooks();
-
- $state.go('base.sql.notebook', {noteId});
- })
- .error(Messages.showError);
- };
-
- $root.reloadNotebooks();
-
- }
-]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/controllers/reset-password.controller.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/controllers/reset-password.controller.js b/modules/web-console/src/main/js/app/controllers/reset-password.controller.js
deleted file mode 100644
index f3cee81..0000000
--- a/modules/web-console/src/main/js/app/controllers/reset-password.controller.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-// Controller for password reset.
-export default ['resetPassword', [
- '$scope', '$modal', '$http', '$state', 'IgniteMessages', 'IgniteFocus',
- ($scope, $modal, $http, $state, Messages, Focus) => {
- if ($state.params.token) {
- $http.post('/api/v1/password/validate/token', {token: $state.params.token})
- .success((res) => {
- $scope.email = res.email;
- $scope.token = res.token;
- $scope.error = res.error;
-
- if ($scope.token && !$scope.error)
- Focus.move('user_password');
- });
- }
-
- // Try to reset user password for provided token.
- $scope.resetPassword = (reset_info) => {
- $http.post('/api/v1/password/reset', reset_info)
- .success(() => {
- Messages.showInfo('Password successfully changed');
-
- $state.go('base.configuration.clusters');
- })
- .error((err, state) => {
- Messages.showError(err);
-
- if (state === 503)
- $state.go('base.configuration.clusters');
- });
- };
-
- }
-]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/colors.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/colors.json b/modules/web-console/src/main/js/app/data/colors.json
deleted file mode 100644
index 188e485..0000000
--- a/modules/web-console/src/main/js/app/data/colors.json
+++ /dev/null
@@ -1,22 +0,0 @@
-[
- "#1f77b4",
- "#ff7f0e",
- "#2ca02c",
- "#d62728",
- "#9467bd",
- "#8c564b",
- "#e377c2",
- "#7f7f7f",
- "#bcbd22",
- "#17becf",
- "#ffbb78",
- "#98df8a",
- "#ff9896",
- "#c5b0d5",
- "#aec7e8",
- "#c49c94",
- "#f7b6d2",
- "#c7c7c7",
- "#dbdb8d",
- "#9edae5"
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/countries.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/countries.json b/modules/web-console/src/main/js/app/data/countries.json
deleted file mode 100644
index f420f48..0000000
--- a/modules/web-console/src/main/js/app/data/countries.json
+++ /dev/null
@@ -1,94 +0,0 @@
-[
- {
- "name": "United States",
- "code": "USA"
- },
- {
- "name": "Canada",
- "code": "CAN"
- },
- {
- "name": "United Kingdom",
- "code": "GBR"
- },
- {
- "name": "Germany",
- "code": "DEU"
- },
- {
- "name": "France",
- "code": "FRA"
- },
- {
- "name": "Switzerland",
- "code": "CHE"
- },
- {
- "name": "Netherlands",
- "code": "NLD"
- },
- {
- "name": "Israel",
- "code": "ISR"
- },
- {
- "name": "Sweden",
- "code": "SWE"
- },
- {
- "name": "Russia",
- "code": "RUS"
- },
- {
- "name": "Other Europe",
- "code": "Other Europe"
- },
- {
- "name": "China",
- "code": "CHN"
- },
- {
- "name": "India",
- "code": "IND"
- },
- {
- "name": "Japan",
- "code": "JPN"
- },
- {
- "name": "Other Asia",
- "code": "Other Asia"
- },
- {
- "name": "Australia",
- "code": "AUS"
- },
- {
- "name": "Brazil",
- "code": "BRA"
- },
- {
- "name": "Argentina",
- "code": "ARG"
- },
- {
- "name": "Other South America",
- "code": "Other South America"
- },
- {
- "name": "South Africa",
- "code": "ZAF"
- },
- {
- "name": "Nigeria",
- "code": "NGA"
- },
- {
- "name": "Other Africa",
- "code": "Other Africa"
- },
- {
- "name": "Rest of the World",
- "code": "Rest of the World"
- }
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/demo-info.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/demo-info.json b/modules/web-console/src/main/js/app/data/demo-info.json
deleted file mode 100644
index 0d2ad22..0000000
--- a/modules/web-console/src/main/js/app/data/demo-info.json
+++ /dev/null
@@ -1,14 +0,0 @@
-[
- {
- "title": "Apache Ignite Web Console Demo",
- "message": [
- "<div>",
- " <h4><i class='fa fa-cogs fa-cursor-default'></i> What Can You Do</h4>",
- " <ul>",
- " <li><b>Configuration</b> to checkout predefined clusters, caches, domain models and IGFS</li>",
- " <li><b>SQL</b> to run various SQL queries on the demo database</li>",
- " </ul>",
- "</div>"
- ]
- }
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/event-types.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/event-types.json b/modules/web-console/src/main/js/app/data/event-types.json
deleted file mode 100644
index 8d0c878..0000000
--- a/modules/web-console/src/main/js/app/data/event-types.json
+++ /dev/null
@@ -1,169 +0,0 @@
-[
- {
- "label": "EVTS_CHECKPOINT",
- "value": "EVTS_CHECKPOINT",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_CHECKPOINT_SAVED",
- "EVT_CHECKPOINT_LOADED",
- "EVT_CHECKPOINT_REMOVED"
- ]
- },
- {
- "label": "EVTS_DEPLOYMENT",
- "value": "EVTS_DEPLOYMENT",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_CLASS_DEPLOYED",
- "EVT_CLASS_UNDEPLOYED",
- "EVT_CLASS_DEPLOY_FAILED",
- "EVT_TASK_DEPLOYED",
- "EVT_TASK_UNDEPLOYED",
- "EVT_TASK_DEPLOY_FAILED"
- ]
- },
- {
- "label": "EVTS_ERROR",
- "value": "EVTS_ERROR",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_JOB_TIMEDOUT",
- "EVT_JOB_FAILED",
- "EVT_JOB_FAILED_OVER",
- "EVT_JOB_REJECTED",
- "EVT_JOB_CANCELLED",
- "EVT_TASK_TIMEDOUT",
- "EVT_TASK_FAILED",
- "EVT_CLASS_DEPLOY_FAILED",
- "EVT_TASK_DEPLOY_FAILED",
- "EVT_TASK_DEPLOYED",
- "EVT_TASK_UNDEPLOYED",
- "EVT_CACHE_REBALANCE_STARTED",
- "EVT_CACHE_REBALANCE_STOPPED"
- ]
- },
- {
- "label": "EVTS_DISCOVERY",
- "value": "EVTS_DISCOVERY",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_NODE_JOINED",
- "EVT_NODE_LEFT",
- "EVT_NODE_FAILED",
- "EVT_NODE_SEGMENTED",
- "EVT_CLIENT_NODE_DISCONNECTED",
- "EVT_CLIENT_NODE_RECONNECTED"
- ]
- },
- {
- "label": "EVTS_JOB_EXECUTION",
- "value": "EVTS_JOB_EXECUTION",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_JOB_MAPPED",
- "EVT_JOB_RESULTED",
- "EVT_JOB_FAILED_OVER",
- "EVT_JOB_STARTED",
- "EVT_JOB_FINISHED",
- "EVT_JOB_TIMEDOUT",
- "EVT_JOB_REJECTED",
- "EVT_JOB_FAILED",
- "EVT_JOB_QUEUED",
- "EVT_JOB_CANCELLED"
- ]
- },
- {
- "label": "EVTS_TASK_EXECUTION",
- "value": "EVTS_TASK_EXECUTION",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_TASK_STARTED",
- "EVT_TASK_FINISHED",
- "EVT_TASK_FAILED",
- "EVT_TASK_TIMEDOUT",
- "EVT_TASK_SESSION_ATTR_SET",
- "EVT_TASK_REDUCED"
- ]
- },
- {
- "label": "EVTS_CACHE",
- "value": "EVTS_CACHE",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_CACHE_ENTRY_CREATED",
- "EVT_CACHE_ENTRY_DESTROYED",
- "EVT_CACHE_OBJECT_PUT",
- "EVT_CACHE_OBJECT_READ",
- "EVT_CACHE_OBJECT_REMOVED",
- "EVT_CACHE_OBJECT_LOCKED",
- "EVT_CACHE_OBJECT_UNLOCKED",
- "EVT_CACHE_OBJECT_SWAPPED",
- "EVT_CACHE_OBJECT_UNSWAPPED",
- "EVT_CACHE_OBJECT_EXPIRED"
- ]
- },
- {
- "label": "EVTS_CACHE_REBALANCE",
- "value": "EVTS_CACHE_REBALANCE",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_CACHE_REBALANCE_STARTED",
- "EVT_CACHE_REBALANCE_STOPPED",
- "EVT_CACHE_REBALANCE_PART_LOADED",
- "EVT_CACHE_REBALANCE_PART_UNLOADED",
- "EVT_CACHE_REBALANCE_OBJECT_LOADED",
- "EVT_CACHE_REBALANCE_OBJECT_UNLOADED",
- "EVT_CACHE_REBALANCE_PART_DATA_LOST"
- ]
- },
- {
- "label": "EVTS_CACHE_LIFECYCLE",
- "value": "EVTS_CACHE_LIFECYCLE",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_CACHE_STARTED",
- "EVT_CACHE_STOPPED",
- "EVT_CACHE_NODES_LEFT"
- ]
- },
- {
- "label": "EVTS_CACHE_QUERY",
- "value": "EVTS_CACHE_QUERY",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_CACHE_QUERY_EXECUTED",
- "EVT_CACHE_QUERY_OBJECT_READ"
- ]
- },
- {
- "label": "EVTS_SWAPSPACE",
- "value": "EVTS_SWAPSPACE",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_SWAP_SPACE_CLEARED",
- "EVT_SWAP_SPACE_DATA_REMOVED",
- "EVT_SWAP_SPACE_DATA_READ",
- "EVT_SWAP_SPACE_DATA_STORED",
- "EVT_SWAP_SPACE_DATA_EVICTED"
- ]
- },
- {
- "label": "EVTS_IGFS",
- "value": "EVTS_IGFS",
- "class": "org.apache.ignite.events.EventType",
- "events": [
- "EVT_IGFS_FILE_CREATED",
- "EVT_IGFS_FILE_RENAMED",
- "EVT_IGFS_FILE_DELETED",
- "EVT_IGFS_FILE_OPENED_READ",
- "EVT_IGFS_FILE_OPENED_WRITE",
- "EVT_IGFS_FILE_CLOSED_WRITE",
- "EVT_IGFS_FILE_CLOSED_READ",
- "EVT_IGFS_FILE_PURGED",
- "EVT_IGFS_META_UPDATED",
- "EVT_IGFS_DIR_CREATED",
- "EVT_IGFS_DIR_RENAMED",
- "EVT_IGFS_DIR_DELETED"
- ]
- }
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/getting-started.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/getting-started.json b/modules/web-console/src/main/js/app/data/getting-started.json
deleted file mode 100644
index 1b435ab..0000000
--- a/modules/web-console/src/main/js/app/data/getting-started.json
+++ /dev/null
@@ -1,109 +0,0 @@
-[
- {
- "title": "With Apache Ignite Web Console You Can",
- "message": [
- "<div class='col-xs-4'>",
- " <img src='/images/ignite-puzzle.png' width='80%' class='getting-started-puzzle' />",
- "</div>",
- "<div class='col-xs-8'>",
- " <ul>",
- " <li>Generate cluster configuration</li>",
- " <li>Import domain model from database</li>",
- " <li>Configure all needed caches</li>",
- " <li>Preview generated XML and Java code in browser</li>",
- " <li>Download ready-to-use Maven project</li>",
- " <li>Execute SQL queries on real clusters</li>",
- " </ul>",
- "</div>"
- ]
- },
- {
- "title": "Clusters",
- "message": [
- "<div class='col-xs-7'>",
- " <img src='/images/cluster.png' width='100%' />",
- "</div>",
- "<div class='col-xs-5'>",
- " <ul>",
- " <li>Configure cluster properties</li>",
- " <li>Associate cluster with caches</li>",
- " </ul>",
- "</div>"
- ]
- },
- {
- "title": "Domain Model",
- "message": [
- "<div class='col-xs-7'>",
- " <img src='/images/domains.png' width='100%' />",
- "</div>",
- "<div class='col-xs-5'>",
- " <ul>",
- " <li>Import database schemas</li>",
- " <li>Try in <span class='getting-started-demo'>Demo</span> mode</li>",
- " </ul>",
- "</div>"
- ]
- },
- {
- "title": "Caches",
- "message": [
- "<div class='col-xs-7'>",
- " <img src='/images/cache.png' width='100%' />",
- "</div>",
- "<div class='col-xs-5'>",
- " <ul>",
- " <li>Configure memory settings</li>",
- " <li>Configure persistence</li>",
- " </ul>",
- "</div>"
- ]
- },
- {
- "title": "In-memory File System",
- "message": [
- "<div class='col-xs-7'>",
- " <img src='/images/igfs.png' width='100%' />",
- "</div>",
- "<div class='col-xs-5'>",
- " <ul>",
- " <li>Configure IGFS properties</li>",
- " <li>Associate IGFS with clusters</li>",
- " </ul>",
- "</div>"
- ]
- },
- {
- "title": "Summary",
- "message": [
- "<div class='col-xs-7'>",
- " <img src='/images/summary.png' width='100%' />",
- "</div>",
- "<div class='col-xs-5'>",
- " <ul>",
- " <li>Preview XML configuration</li>",
- " <li>Preview code configuration</li>",
- " <li>Preview Docker file</li>",
- " <li>Preview POM dependencies</li>",
- " <li>Download ready-to-use project</li>",
- " </ul>",
- "</div>"
- ]
- },
- {
- "title": "SQL Queries",
- "message": [
- "<div class='col-xs-7'>",
- " <img src='/images/query-table.png' width='100%' />",
- "</div>",
- "<div class='col-xs-5'>",
- " <ul>",
- " <li>Execute SQL Queries</li>",
- " <li>View Execution Paln</li>",
- " <li>View In-Memory Schema</li>",
- " <li>View Streaming Charts</li>",
- " </ul>",
- "</div>"
- ]
- }
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/java-classes.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/java-classes.json b/modules/web-console/src/main/js/app/data/java-classes.json
deleted file mode 100644
index e2cdff9..0000000
--- a/modules/web-console/src/main/js/app/data/java-classes.json
+++ /dev/null
@@ -1,18 +0,0 @@
-[
- {"short": "BigDecimal", "full": "java.math.BigDecimal"},
- {"short": "Boolean", "full": "java.lang.Boolean"},
- {"short": "Byte", "full": "java.lang.Byte"},
- {"short": "Character", "full": "java.lang.Character"},
- {"short": "Date", "full": "java.sql.Date"},
- {"short": "Double", "full": "java.lang.Double"},
- {"short": "Float", "full": "java.lang.Float"},
- {"short": "Integer", "full": "java.lang.Integer"},
- {"short": "Long", "full": "java.lang.Long"},
- {"short": "Number", "full": "java.lang.Number"},
- {"short": "Object", "full": "java.lang.Object"},
- {"short": "Short", "full": "java.lang.Short"},
- {"short": "String", "full": "java.lang.String"},
- {"short": "Time", "full": "java.sql.Time"},
- {"short": "Timestamp", "full": "java.sql.Timestamp"},
- {"short": "UUID", "full": "java.util.UUID"}
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/java-keywords.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/java-keywords.json b/modules/web-console/src/main/js/app/data/java-keywords.json
deleted file mode 100644
index a2d5ec2..0000000
--- a/modules/web-console/src/main/js/app/data/java-keywords.json
+++ /dev/null
@@ -1,55 +0,0 @@
-[
- "abstract",
- "assert",
- "boolean",
- "break",
- "byte",
- "case",
- "catch",
- "char",
- "class",
- "const",
- "continue",
- "default",
- "do",
- "double",
- "else",
- "enum",
- "extends",
- "false",
- "final",
- "finally",
- "float",
- "for",
- "goto",
- "if",
- "implements",
- "import",
- "instanceof",
- "int",
- "interface",
- "long",
- "native",
- "new",
- "null",
- "package",
- "private",
- "protected",
- "public",
- "return",
- "short",
- "static",
- "strictfp",
- "super",
- "switch",
- "synchronized",
- "this",
- "throw",
- "throws",
- "transient",
- "true",
- "try",
- "void",
- "volatile",
- "while"
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/java-primitives.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/java-primitives.json b/modules/web-console/src/main/js/app/data/java-primitives.json
deleted file mode 100644
index eab6b69..0000000
--- a/modules/web-console/src/main/js/app/data/java-primitives.json
+++ /dev/null
@@ -1,9 +0,0 @@
-[
- "boolean",
- "byte",
- "double",
- "float",
- "int",
- "long",
- "short"
-]
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/data/pom-dependencies.json
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/data/pom-dependencies.json b/modules/web-console/src/main/js/app/data/pom-dependencies.json
deleted file mode 100644
index 7ab6c1b..0000000
--- a/modules/web-console/src/main/js/app/data/pom-dependencies.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "Cloud": {"artifactId": "ignite-cloud"},
- "S3": {"artifactId": "ignite-aws"},
- "GoogleStorage": {"artifactId": "ignite-gce"},
- "ZooKeeper": {"artifactId": "ignite-zookeeper"},
-
- "Log4j": {"artifactId": "ignite-log4j"},
- "Log4j2": {"artifactId": "ignite-log4j2"},
- "JCL": {"artifactId": "ignite-jcl"},
- "HadoopIgfsJcl": {"artifactId": "ignite-hadoop"},
- "SLF4J": {"artifactId": "ignite-slf4j"},
-
- "Generic": {"groupId": "com.mchange", "artifactId": "c3p0", "version": "0.9.5.1"},
- "MySQL": {"groupId": "mysql", "artifactId": "mysql-connector-java", "version": "5.1.37"},
- "PostgreSQL": {"groupId": "org.postgresql", "artifactId": "postgresql", "version": "9.4-1204-jdbc42"},
- "H2": {"groupId": "com.h2database", "artifactId": "h2", "version": "1.3.175"},
- "Oracle": {"groupId": "oracle", "artifactId": "jdbc", "version": "11.2", "jar": "ojdbc6.jar"},
- "DB2": {"groupId": "ibm", "artifactId": "jdbc", "version": "4.19.26", "jar": "db2jcc4.jar"},
- "SQLServer": {"groupId": "microsoft", "artifactId": "jdbc", "version": "4.1", "jar": "sqljdbc41.jar"}
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/decorator/select.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/decorator/select.js b/modules/web-console/src/main/js/app/decorator/select.js
deleted file mode 100644
index 2d22707..0000000
--- a/modules/web-console/src/main/js/app/decorator/select.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-import angular from 'angular';
-
-/**
- * Special decorator that fix problem in AngularStrap selectAll / deselectAll methods.
- * If this problem will be fixed in AngularStrap we can remove this delegate.
- */
-angular.module('mgcrea.ngStrap.select')
- .decorator('$select', ['$delegate', ($delegate) => {
- function SelectFactoryDecorated(element, controller, config) {
- const delegate = $delegate(element, controller, config);
-
- // Common vars.
- const options = angular.extend({}, $delegate.defaults, config);
-
- const scope = delegate.$scope;
-
- const valueByIndex = (index) => {
- if (angular.isUndefined(scope.$matches[index]))
- return null;
-
- return scope.$matches[index].value;
- };
-
- const selectAll = (active) => {
- const selected = [];
-
- scope.$apply(() => {
- for (let i = 0; i < scope.$matches.length; i++) {
- if (scope.$isActive(i) === active) {
- selected[i] = scope.$matches[i].value;
-
- delegate.activate(i);
-
- controller.$setViewValue(scope.$activeIndex.map(valueByIndex));
- }
- }
- });
-
- // Emit events.
- for (let i = 0; i < selected.length; i++) {
- if (selected[i])
- scope.$emit(options.prefixEvent + '.select', selected[i], i, delegate);
- }
- };
-
- scope.$selectAll = () => {
- scope.$$postDigest(selectAll.bind(this, false));
- };
-
- scope.$selectNone = () => {
- scope.$$postDigest(selectAll.bind(this, true));
- };
-
- return delegate;
- }
-
- SelectFactoryDecorated.defaults = $delegate.defaults;
-
- return SelectFactoryDecorated;
- }]);
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/decorator/tooltip.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/decorator/tooltip.js b/modules/web-console/src/main/js/app/decorator/tooltip.js
deleted file mode 100644
index a47337a..0000000
--- a/modules/web-console/src/main/js/app/decorator/tooltip.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-import angular from 'angular';
-
-/**
- * Special decorator that fix problem in AngularStrap $tooltip in special case.
- * Case: when tooltip is shown on table row remove button and user click this button.
- * If this problem will be fixed in AngularStrap we can remove this delegate.
- */
-angular.module('mgcrea.ngStrap.tooltip')
- .decorator('$tooltip', ['$delegate', ($delegate) => {
- function TooltipFactoryDecorated(element, config) {
- const delegate = $delegate(element, config);
-
- const scope = delegate.$scope;
-
- const options = delegate.$options;
-
- const hideWraped = delegate.hide;
-
- delegate.hide = (blur) => {
- if (!delegate.$isShown)
- return;
-
- if (delegate.$element !== null)
- return hideWraped(blur);
-
- scope.$emit(options.prefixEvent + '.hide.before', delegate);
-
- if (angular.isDefined(options.onBeforeHide) && angular.isFunction(options.onBeforeHide))
- options.onBeforeHide(delegate);
-
- delegate.$isShown = scope.$isShown = false;
- scope.$$phase || (scope.$root && scope.$root.$$phase) || scope.$digest();
- };
-
- return delegate;
- }
-
- return TooltipFactoryDecorated;
- }]);
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/auto-focus.directive.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/auto-focus.directive.js b/modules/web-console/src/main/js/app/directives/auto-focus.directive.js
deleted file mode 100644
index 326fe1f..0000000
--- a/modules/web-console/src/main/js/app/directives/auto-focus.directive.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-// Directive to auto-focus specified element.
-export default ['igniteAutoFocus', ['$timeout', ($timeout) => {
- return {
- restrict: 'AC',
- link(scope, element) {
- $timeout(() => element[0].focus());
- }
- };
-}]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/bs-affix-update.directive.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/bs-affix-update.directive.js b/modules/web-console/src/main/js/app/directives/bs-affix-update.directive.js
deleted file mode 100644
index 925722c..0000000
--- a/modules/web-console/src/main/js/app/directives/bs-affix-update.directive.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-import angular from 'angular';
-
-export default ['igniteBsAffixUpdate', ['$window', '$timeout', ($window, $timeout) => {
- let update = null;
-
- const link = ({$last}) => {
- if ($last) {
- update && $timeout.cancel(update);
- update = $timeout(() => angular.element($window).triggerHandler('resize'), 1000);
- }
- };
-
- return {
- restrict: 'A',
- link
- };
-}]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/centered/centered.css
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/centered/centered.css b/modules/web-console/src/main/js/app/directives/centered/centered.css
deleted file mode 100644
index 694c1d2..0000000
--- a/modules/web-console/src/main/js/app/directives/centered/centered.css
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-.center-container {
- position: fixed;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- display: table;
- pointer-events: none;
- z-index: 9999;
-}
-
-.centered {
- display: table-cell;
- vertical-align: middle;
- text-align: center;
-}
-
-.centered > * {
- pointer-events: auto;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/centered/centered.directive.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/centered/centered.directive.js b/modules/web-console/src/main/js/app/directives/centered/centered.directive.js
deleted file mode 100644
index 4abd086..0000000
--- a/modules/web-console/src/main/js/app/directives/centered/centered.directive.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-import './centered.css';
-
-export default ['centered', [() => {
- return {
- restrict: 'E',
- transclude: true,
- template: '<div class="center-container"><div class="centered"><div ng-transclude></div></div></div>'
- };
-}]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/copy-to-clipboard.directive.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/copy-to-clipboard.directive.js b/modules/web-console/src/main/js/app/directives/copy-to-clipboard.directive.js
deleted file mode 100644
index ee2110e..0000000
--- a/modules/web-console/src/main/js/app/directives/copy-to-clipboard.directive.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-// Directive for copy to clipboard.
-export default ['igniteCopyToClipboard', ['IgniteCopyToClipboard', (CopyToClipboard) => {
- return {
- restrict: 'A',
- link(scope, element, attrs) {
- element.bind('click', () => CopyToClipboard.copy(attrs.igniteCopyToClipboard));
-
- if (!document.queryCommandSupported('copy'))
- element.hide();
- }
- };
-}]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/hide-on-state-change/hide-on-state-change.directive.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/hide-on-state-change/hide-on-state-change.directive.js b/modules/web-console/src/main/js/app/directives/hide-on-state-change/hide-on-state-change.directive.js
deleted file mode 100644
index 98f1c57..0000000
--- a/modules/web-console/src/main/js/app/directives/hide-on-state-change/hide-on-state-change.directive.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-export default ['hideOnStateChange', ['$timeout', ($timeout) => {
- const link = (scope, element) => {
- scope.$on('$stateChangeSuccess', () => {
- $timeout(() => {
- element.fadeOut('slow');
- });
- });
- };
-
- return {
- restrict: 'AE',
- link
- };
-}]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/information/information.directive.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/information/information.directive.js b/modules/web-console/src/main/js/app/directives/information/information.directive.js
deleted file mode 100644
index a9a2f8c..0000000
--- a/modules/web-console/src/main/js/app/directives/information/information.directive.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-import templateUrl from './information.jade';
-
-export default ['igniteInformation', [() => {
- return {
- scope: {
- title: '@'
- },
- restrict: 'E',
- templateUrl,
- replace: true,
- transclude: true
- };
-}]];
http://git-wip-us.apache.org/repos/asf/ignite/blob/6af6560a/modules/web-console/src/main/js/app/directives/information/information.jade
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/directives/information/information.jade b/modules/web-console/src/main/js/app/directives/information/information.jade
deleted file mode 100644
index b805d4a..0000000
--- a/modules/web-console/src/main/js/app/directives/information/information.jade
+++ /dev/null
@@ -1,20 +0,0 @@
-//-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You 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.
-
-.block-information
- span.icon.fa.fa-info-circle(ng-if='title')
- h3(ng-if='title') {{::title}}
- div(ng-transclude='')