graphdb-workbench 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/10.f63a9f9189528238aa8f.bundle.js +2 -0
- package/dist/10.f63a9f9189528238aa8f.bundle.js.map +1 -0
- package/dist/11.3957302d7a301df30dd1.bundle.js +1 -1
- package/dist/11.3957302d7a301df30dd1.bundle.js.map +1 -1
- package/dist/120.80843604737b7c260788.bundle.js +1 -1
- package/dist/120.80843604737b7c260788.bundle.js.map +1 -1
- package/dist/18.44723ea06155c72f46ae.bundle.js +1 -1
- package/dist/18.44723ea06155c72f46ae.bundle.js.map +1 -1
- package/dist/25.9e0925889b3a3f79c7fe.bundle.js +1 -1
- package/dist/25.9e0925889b3a3f79c7fe.bundle.js.map +1 -1
- package/dist/29.9bdb27c21d6eacac1341.bundle.js +1 -1
- package/dist/29.9bdb27c21d6eacac1341.bundle.js.map +1 -1
- package/dist/30.34b74ada583b1b0af913.bundle.js +1 -1
- package/dist/30.34b74ada583b1b0af913.bundle.js.map +1 -1
- package/dist/68.e25480b7770a679a9654.bundle.js +1 -1
- package/dist/68.e25480b7770a679a9654.bundle.js.map +1 -1
- package/dist/{bundle.a8677c75aad1ad7b3b6a.bundle.js → bundle.7d5dd8e4d7cb8ed01086.bundle.js} +3 -3
- package/dist/bundle.7d5dd8e4d7cb8ed01086.bundle.js.map +1 -0
- package/dist/index.html +3 -3
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +4 -4
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +11 -11
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/import.html +1 -1
- package/dist/pages/jdbc-create.html +5 -5
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +2 -2
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +2 -2
- package/dist/pages/repository.html +2 -2
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-template-create.html +5 -5
- package/dist/pages/sparql.html +3 -3
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger/index.html +27 -27
- package/package.json +1 -1
- package/dist/10.eab0a417fa2f2831905e.bundle.js +0 -2
- package/dist/10.eab0a417fa2f2831905e.bundle.js.map +0 -1
- package/dist/bundle.a8677c75aad1ad7b3b6a.bundle.js.map +0 -1
package/dist/index.html
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
<link rel="apple-touch-icon-precomposed" href="icon.png">
|
|
15
15
|
|
|
16
|
-
<script src="plugin-registry.js?v=2.0.
|
|
17
|
-
<script src="plugins.js?v=2.0.
|
|
16
|
+
<script src="plugin-registry.js?v=2.0.2"></script>
|
|
17
|
+
<script src="plugins.js?v=2.0.2"></script>
|
|
18
18
|
<link rel="shortcut icon" href="icon.png"><link href="vendor.4ba46e62f4d43dab5e82.css" rel="stylesheet"><link href="main.12e572893a7926387b80.css" rel="stylesheet"></head>
|
|
19
19
|
|
|
20
20
|
<body>
|
|
@@ -160,6 +160,6 @@
|
|
|
160
160
|
<object data="img/graphdb-splash.1ef2940889acddc03c7defb3f9f41f8d.svg"></object>
|
|
161
161
|
<div>GraphDB Workbench is loading...</div>
|
|
162
162
|
</div>
|
|
163
|
-
<script type="text/javascript" src="vendor.c229c148b836170cd04b.bundle.js"></script><script type="text/javascript" src="main.e009809b98a004bcb184.bundle.js"></script><script type="text/javascript" src="bundle.
|
|
163
|
+
<script type="text/javascript" src="vendor.c229c148b836170cd04b.bundle.js"></script><script type="text/javascript" src="main.e009809b98a004bcb184.bundle.js"></script><script type="text/javascript" src="bundle.7d5dd8e4d7cb8ed01086.bundle.js"></script></body>
|
|
164
164
|
|
|
165
165
|
</html>
|
package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<link href="css/rdf-resource-search.css?v=2.0.
|
|
1
|
+
<link href="css/rdf-resource-search.css?v=2.0.2" rel="stylesheet"/>
|
|
2
2
|
|
|
3
3
|
<div ng-if="getActiveRepository() && hasActiveLocation() && isNotLoading()" ng-cloak>
|
|
4
4
|
<div id="search-box" class="card search-rdf-input" ng-keydown="onKeyDown($event)" ng-if="!isHomePage()">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<link href="css/clustermanagement.css?v=2.0.
|
|
2
|
-
<link href="css/rdf-details-side-panel.css?v=2.0.
|
|
3
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=2.0.
|
|
1
|
+
<link href="css/clustermanagement.css?v=2.0.2" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-details-side-panel.css?v=2.0.2" rel="stylesheet"/>
|
|
3
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=2.0.2" rel="stylesheet"/>
|
|
4
4
|
|
|
5
5
|
<title>{{'view.clusterManagement.title' | translate}}</title>
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.2" rel="stylesheet">
|
|
2
2
|
|
|
3
|
-
<link href="css/lib/yasqe.min.css?v=2.0.
|
|
3
|
+
<link href="css/lib/yasqe.min.css?v=2.0.2" rel="stylesheet"/>
|
|
4
4
|
|
|
5
|
-
<link href="css/new-sparql.css?v=2.0.
|
|
5
|
+
<link href="css/new-sparql.css?v=2.0.2" rel="stylesheet"/>
|
|
6
6
|
|
|
7
|
-
<link href="css/graphs-config.css?v=2.0.
|
|
7
|
+
<link href="css/graphs-config.css?v=2.0.2" rel="stylesheet"/>
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
<div class="container-fluid">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/domain-range-graph.css?v=2.0.
|
|
2
|
-
<link href="css/rdf-details-side-panel.css?v=2.0.
|
|
1
|
+
<link href="css/domain-range-graph.css?v=2.0.2" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-details-side-panel.css?v=2.0.2" rel="stylesheet"/>
|
|
3
3
|
|
|
4
4
|
<title>Explore Data Graph</title>
|
|
5
5
|
|
package/dist/pages/edit.html
CHANGED
package/dist/pages/explore.html
CHANGED
package/dist/pages/export.html
CHANGED
package/dist/pages/find.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.2" rel="stylesheet">
|
|
2
2
|
|
|
3
|
-
<link href="css/lib/yasqe.min.css?v=2.0.
|
|
3
|
+
<link href="css/lib/yasqe.min.css?v=2.0.2" rel="stylesheet"/>
|
|
4
4
|
|
|
5
|
-
<link href="css/new-sparql.css?v=2.0.
|
|
5
|
+
<link href="css/new-sparql.css?v=2.0.2" rel="stylesheet"/>
|
|
6
6
|
|
|
7
|
-
<link href="css/graphs-config.css?v=2.0.
|
|
7
|
+
<link href="css/graphs-config.css?v=2.0.2" rel="stylesheet"/>
|
|
8
8
|
|
|
9
9
|
<h1>
|
|
10
10
|
{{title}}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<div class="image-label-container mb-3" ng-show="page == 1">
|
|
83
83
|
<label class="image-label d-flex" ng-class="{'active': newConfig.startMode == 'search'}">
|
|
84
84
|
<input type="radio" class="form-check-input" id="checkboxSuccess" ng-model="newConfig.startMode" value="search">
|
|
85
|
-
<img class="image-label-image" src="css/images/search.png?v=2.0.
|
|
85
|
+
<img class="image-label-image" src="css/images/search.png?v=2.0.2" alt="search image" width="100%">
|
|
86
86
|
<div class="image-label-content">
|
|
87
87
|
<h5>{{'start.with.search.box' | translate}}</h5>
|
|
88
88
|
<div>{{'choose.starting.point' | translate}}</div>
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
<label class="image-label d-flex" ng-class="{'active': newConfig.startMode == 'node'}">
|
|
93
93
|
<input type="radio" class="form-check-input" id="checkboxSuccess" ng-model="newConfig.startMode" value="node">
|
|
94
|
-
<img class="image-label-image" src="css/images/node.png?v=2.0.
|
|
94
|
+
<img class="image-label-image" src="css/images/node.png?v=2.0.2" alt="node image" width="100%">
|
|
95
95
|
<div class="image-label-content">
|
|
96
96
|
<h5>{{'start.with.fixed.node' | translate}}</h5>
|
|
97
97
|
<div>{{'visual.graph.start' | translate}}</div>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
<label class="image-label d-flex" ng-class="{'active': newConfig.startMode == 'query'}">
|
|
102
102
|
<input type="radio" class="form-check-input" id="checkboxSuccess" ng-model="newConfig.startMode" value="query">
|
|
103
|
-
<img class="image-label-image" src="css/images/query.png?v=2.0.
|
|
103
|
+
<img class="image-label-image" src="css/images/query.png?v=2.0.2" alt="query image" width="100%">
|
|
104
104
|
<div class="image-label-content">
|
|
105
105
|
<h5>{{'query.results.start' | translate}}</h5>
|
|
106
106
|
<div>{{'results.start' | translate}}</div>
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
<p>{{'optional.query' | translate}} <em>{{getSampleName(samples[0], 'expandQuery')}}</em> {{'sample.query.used' | translate}}</p>
|
|
142
142
|
</div>
|
|
143
143
|
<div>
|
|
144
|
-
<img src="css/images/expand.png?v=2.0.
|
|
144
|
+
<img src="css/images/expand.png?v=2.0.2" class="info-box-img" height="220" alt="expand image">
|
|
145
145
|
</div>
|
|
146
146
|
</div>
|
|
147
147
|
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
<p>{{'optional.query' | translate}} <em>{{getSampleName(samples[0], 'resourceQuery')}}</em> {{'sample.query.used' | translate}}</p>
|
|
168
168
|
</div>
|
|
169
169
|
<div>
|
|
170
|
-
<img src="css/images/labels-size.png?v=2.0.
|
|
170
|
+
<img src="css/images/labels-size.png?v=2.0.2" class="info-box-img" height="220" alt="labels size image">
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
173
173
|
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
<p>{{'query.is.optional.local.name' | translate}}</p>
|
|
187
187
|
</div>
|
|
188
188
|
<div>
|
|
189
|
-
<img src="css/images/predicates.png?v=2.0.
|
|
189
|
+
<img src="css/images/predicates.png?v=2.0.2" class="info-box-img" height="220" alt="predicates image">
|
|
190
190
|
</div>
|
|
191
191
|
</div>
|
|
192
192
|
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
<p>{{'optional.query' | translate}} <em>{{getSampleName(samples[0], 'resourcePropertiesQuery')}}</em> {{'sample.query.used' | translate}}</p>
|
|
212
212
|
</div>
|
|
213
213
|
<div>
|
|
214
|
-
<img src="css/images/side-panel.png?v=2.0.
|
|
214
|
+
<img src="css/images/side-panel.png?v=2.0.2" class="info-box-img" height="220" alt="side panel image">
|
|
215
215
|
</div>
|
|
216
216
|
</div>
|
|
217
217
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<link href="css/graphs-vizualizations.css?v=2.0.
|
|
2
|
-
<link href="css/rdf-details-side-panel.css?v=2.0.
|
|
3
|
-
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.0.
|
|
4
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=2.0.
|
|
1
|
+
<link href="css/graphs-vizualizations.css?v=2.0.2" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-details-side-panel.css?v=2.0.2" rel="stylesheet"/>
|
|
3
|
+
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.0.2" rel="stylesheet"/>
|
|
4
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=2.0.2" rel="stylesheet"/>
|
|
5
5
|
|
|
6
6
|
<div class="container-fluid">
|
|
7
7
|
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
<tr ng-repeat="config in graphConfigs">
|
|
138
138
|
<td width="20">
|
|
139
139
|
<a href ng-click="goToGraphConfig(config)">
|
|
140
|
-
<img ng-if="config.startMode == 'search'" src="css/images/search.png?v=2.0.
|
|
141
|
-
<img ng-if="config.startMode == 'node'" src="css/images/node.png?v=2.0.
|
|
142
|
-
<img ng-if="config.startMode == 'query'" src="css/images/query.png?v=2.0.
|
|
140
|
+
<img ng-if="config.startMode == 'search'" src="css/images/search.png?v=2.0.2" alt="" width="64" popover="{{'visual.config.search.box.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
141
|
+
<img ng-if="config.startMode == 'node'" src="css/images/node.png?v=2.0.2" alt="" width="64" popover="{{'visual.config.fixed.resource.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
142
|
+
<img ng-if="config.startMode == 'query'" src="css/images/query.png?v=2.0.2" alt="" width="64" popover="{{'visual.config.query.results.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
143
143
|
</a>
|
|
144
144
|
</td>
|
|
145
145
|
<td>
|
package/dist/pages/import.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.2" rel="stylesheet">
|
|
2
2
|
|
|
3
|
-
<link href="css/lib/yasqe.min.css?v=2.0.
|
|
3
|
+
<link href="css/lib/yasqe.min.css?v=2.0.2" rel="stylesheet"/>
|
|
4
4
|
|
|
5
|
-
<link href="css/new-sparql.css?v=2.0.
|
|
5
|
+
<link href="css/new-sparql.css?v=2.0.2" rel="stylesheet"/>
|
|
6
6
|
|
|
7
|
-
<link href="css/graphs-config.css?v=2.0.
|
|
7
|
+
<link href="css/graphs-config.css?v=2.0.2" rel="stylesheet"/>
|
|
8
8
|
|
|
9
|
-
<link href="css/jdbc.css?v=2.0.
|
|
9
|
+
<link href="css/jdbc.css?v=2.0.2" rel="stylesheet"/>
|
|
10
10
|
|
|
11
11
|
<div class="container-fluid">
|
|
12
12
|
<h1>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
<link href="css/jmx.css?v=2.0.
|
|
2
|
+
<link href="css/jmx.css?v=2.0.2" rel="stylesheet" />
|
|
3
3
|
|
|
4
4
|
<!-- nvd3 css and js starts-->
|
|
5
|
-
<link href="js/lib/nvd3/nv.d3.css?v=2.0.
|
|
5
|
+
<link href="js/lib/nvd3/nv.d3.css?v=2.0.2" rel="stylesheet" />
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
<div class="hiddenVariables" style="display: none;">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.
|
|
2
|
-
<link href="css/export.css?v=2.0.
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.2" rel="stylesheet">
|
|
2
|
+
<link href="css/export.css?v=2.0.2" rel="stylesheet">
|
|
3
3
|
|
|
4
4
|
<title>Namespaces</title>
|
|
5
5
|
|
package/dist/pages/plugins.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<link href="css/rdf-class-hierarchy.css?v=2.0.
|
|
2
|
-
<link href="css/rdf-class-hierarchy-labels.css?v=2.0.
|
|
3
|
-
<link href="css/rdf-details-side-panel.css?v=2.0.
|
|
4
|
-
<link href="js/lib/rzslider/rzslider.min.css?v=2.0.
|
|
5
|
-
<link href="js/lib/angucomplete-alt/angucomplete-alt.css?v=2.0.
|
|
6
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=2.0.
|
|
7
|
-
<link href="css/lib/animate/3.2.0/animate.min.css?v=2.0.
|
|
1
|
+
<link href="css/rdf-class-hierarchy.css?v=2.0.2" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-class-hierarchy-labels.css?v=2.0.2" rel="stylesheet"/>
|
|
3
|
+
<link href="css/rdf-details-side-panel.css?v=2.0.2" rel="stylesheet"/>
|
|
4
|
+
<link href="js/lib/rzslider/rzslider.min.css?v=2.0.2" rel="stylesheet"/>
|
|
5
|
+
<link href="js/lib/angucomplete-alt/angucomplete-alt.css?v=2.0.2" rel="stylesheet"/>
|
|
6
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=2.0.2" rel="stylesheet"/>
|
|
7
|
+
<link href="css/lib/animate/3.2.0/animate.min.css?v=2.0.2" rel="stylesheet"/>
|
|
8
8
|
|
|
9
9
|
<title>Explore Data Graph</title>
|
|
10
10
|
|
package/dist/pages/rdfrank.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/rdfrank.css?v=2.0.
|
|
2
|
-
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.0.
|
|
1
|
+
<link href="css/rdfrank.css?v=2.0.2" rel="stylesheet">
|
|
2
|
+
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.0.2" rel="stylesheet"/>
|
|
3
3
|
|
|
4
4
|
<div id="rdfRank" class="page">
|
|
5
5
|
<h1>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<link href="css/repositories.css?v=2.0.
|
|
1
|
+
<link href="css/repositories.css?v=2.0.2" rel="stylesheet">
|
|
2
2
|
|
|
3
|
-
<link href="css/lib/bootstrap-switch/bootstrap-switch.min.css?v=2.0.
|
|
3
|
+
<link href="css/lib/bootstrap-switch/bootstrap-switch.min.css?v=2.0.2" rel="stylesheet">
|
|
4
4
|
|
|
5
5
|
<h1>
|
|
6
6
|
{{title}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<link href="css/repositories.css?v=2.0.
|
|
1
|
+
<link href="css/repositories.css?v=2.0.2" rel="stylesheet">
|
|
2
2
|
|
|
3
|
-
<link href="css/lib/bootstrap-switch/bootstrap-switch.min.css?v=2.0.
|
|
3
|
+
<link href="css/lib/bootstrap-switch/bootstrap-switch.min.css?v=2.0.2" rel="stylesheet">
|
|
4
4
|
|
|
5
5
|
<div id="wb-repository">
|
|
6
6
|
<h1>{{pageTitle}}</h1>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.2" rel="stylesheet">
|
|
2
2
|
|
|
3
|
-
<link href="css/lib/yasqe.min.css?v=2.0.
|
|
3
|
+
<link href="css/lib/yasqe.min.css?v=2.0.2" rel="stylesheet"/>
|
|
4
4
|
|
|
5
|
-
<link href="css/new-sparql.css?v=2.0.
|
|
5
|
+
<link href="css/new-sparql.css?v=2.0.2" rel="stylesheet"/>
|
|
6
6
|
|
|
7
|
-
<link href="css/graphs-config.css?v=2.0.
|
|
7
|
+
<link href="css/graphs-config.css?v=2.0.2" rel="stylesheet"/>
|
|
8
8
|
|
|
9
|
-
<link href="css/jdbc.css?v=2.0.
|
|
9
|
+
<link href="css/jdbc.css?v=2.0.2" rel="stylesheet"/>
|
|
10
10
|
|
|
11
11
|
<div class="container-fluid">
|
|
12
12
|
<h1>
|
package/dist/pages/sparql.html
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.0.2" rel="stylesheet">
|
|
2
2
|
|
|
3
|
-
<link href="css/lib/yasqe.min.css?v=2.0.
|
|
3
|
+
<link href="css/lib/yasqe.min.css?v=2.0.2" rel="stylesheet"/>
|
|
4
4
|
|
|
5
|
-
<link href="css/new-sparql.css?v=2.0.
|
|
5
|
+
<link href="css/new-sparql.css?v=2.0.2" rel="stylesheet"/>
|
|
6
6
|
<div id="wb-sparql">
|
|
7
7
|
|
|
8
8
|
<div ng-show="getActiveRepositoryNoError()" class="pull-right mt-1">
|
package/dist/pages/webapi.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
<link href='css/lib/swagger-ui.min.css?v=2.0.
|
|
3
|
-
<link href='css/swagger.custom.css?v=2.0.
|
|
2
|
+
<link href='css/lib/swagger-ui.min.css?v=2.0.2' rel='stylesheet' type='text/css'/>
|
|
3
|
+
<link href='css/swagger.custom.css?v=2.0.2' rel='stylesheet' type='text/css'/>
|
|
4
4
|
|
|
5
5
|
<h1>
|
|
6
6
|
{{title}}
|
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<title>Swagger UI</title>
|
|
6
|
-
<link rel="icon" type="image/png" href="images/favicon-32x32.png?v=2.0.
|
|
7
|
-
<link rel="icon" type="image/png" href="images/favicon-16x16.png?v=2.0.
|
|
8
|
-
<link href='../../css/common.css?v=2.0.
|
|
9
|
-
<link href='css/reset.css?v=2.0.
|
|
10
|
-
<link href='css/screen.css?v=2.0.
|
|
11
|
-
<link href='css/onto-theme.css?v=2.0.
|
|
12
|
-
<link href='css/reset.css?v=2.0.
|
|
13
|
-
<link href='css/print.css?v=2.0.
|
|
14
|
-
<link href='css/onto-theme.css?v=2.0.
|
|
6
|
+
<link rel="icon" type="image/png" href="images/favicon-32x32.png?v=2.0.2" sizes="32x32"/>
|
|
7
|
+
<link rel="icon" type="image/png" href="images/favicon-16x16.png?v=2.0.2" sizes="16x16"/>
|
|
8
|
+
<link href='../../css/common.css?v=2.0.2' media='screen' rel='stylesheet' type='text/css'/>
|
|
9
|
+
<link href='css/reset.css?v=2.0.2' media='screen' rel='stylesheet' type='text/css'/>
|
|
10
|
+
<link href='css/screen.css?v=2.0.2' media='screen' rel='stylesheet' type='text/css'/>
|
|
11
|
+
<link href='css/onto-theme.css?v=2.0.2' media='screen' rel='stylesheet' type='text/css'/>
|
|
12
|
+
<link href='css/reset.css?v=2.0.2' media='print' rel='stylesheet' type='text/css'/>
|
|
13
|
+
<link href='css/print.css?v=2.0.2' media='print' rel='stylesheet' type='text/css'/>
|
|
14
|
+
<link href='css/onto-theme.css?v=2.0.2' media='print' rel='stylesheet' type='text/css'/>
|
|
15
15
|
|
|
16
|
-
<script src='lib/object-assign-pollyfill.js?v=2.0.
|
|
17
|
-
<script src='lib/jquery-3.4.1.min.js?v=2.0.
|
|
18
|
-
<script src='lib/jquery.slideto.min.js?v=2.0.
|
|
19
|
-
<script src='lib/jquery.wiggle.min.js?v=2.0.
|
|
16
|
+
<script src='lib/object-assign-pollyfill.js?v=2.0.2' type='text/javascript'></script>
|
|
17
|
+
<script src='lib/jquery-3.4.1.min.js?v=2.0.2' type='text/javascript'></script>
|
|
18
|
+
<script src='lib/jquery.slideto.min.js?v=2.0.2' type='text/javascript'></script>
|
|
19
|
+
<script src='lib/jquery.wiggle.min.js?v=2.0.2' type='text/javascript'></script>
|
|
20
20
|
|
|
21
|
-
<script src="lib/jquery-migrate-1.4.1.min.js?v=2.0.
|
|
22
|
-
<script src='lib/jquery.ba-bbq.min.js?v=2.0.
|
|
23
|
-
<script src='lib/handlebars.min-v4.7.3.js?v=2.0.
|
|
24
|
-
<script src='lib/lodash.min.js?v=2.0.
|
|
25
|
-
<script src='lib/backbone-min.js?v=2.0.
|
|
26
|
-
<script src='swagger-ui.js?v=2.0.
|
|
27
|
-
<script src='lib/highlight.9.1.0.pack.js?v=2.0.
|
|
28
|
-
<script src='lib/highlight.9.1.0.pack_extended.js?v=2.0.
|
|
29
|
-
<script src='lib/jsoneditor.min.js?v=2.0.
|
|
30
|
-
<script src='lib/marked.js?v=2.0.
|
|
31
|
-
<script src='lib/swagger-oauth.js?v=2.0.
|
|
21
|
+
<script src="lib/jquery-migrate-1.4.1.min.js?v=2.0.2"></script>
|
|
22
|
+
<script src='lib/jquery.ba-bbq.min.js?v=2.0.2' type='text/javascript'></script>
|
|
23
|
+
<script src='lib/handlebars.min-v4.7.3.js?v=2.0.2' type='text/javascript'></script>
|
|
24
|
+
<script src='lib/lodash.min.js?v=2.0.2' type='text/javascript'></script>
|
|
25
|
+
<script src='lib/backbone-min.js?v=2.0.2' type='text/javascript'></script>
|
|
26
|
+
<script src='swagger-ui.js?v=2.0.2' type='text/javascript'></script>
|
|
27
|
+
<script src='lib/highlight.9.1.0.pack.js?v=2.0.2' type='text/javascript'></script>
|
|
28
|
+
<script src='lib/highlight.9.1.0.pack_extended.js?v=2.0.2' type='text/javascript'></script>
|
|
29
|
+
<script src='lib/jsoneditor.min.js?v=2.0.2' type='text/javascript'></script>
|
|
30
|
+
<script src='lib/marked.js?v=2.0.2' type='text/javascript'></script>
|
|
31
|
+
<script src='lib/swagger-oauth.js?v=2.0.2' type='text/javascript'></script>
|
|
32
32
|
|
|
33
33
|
<!-- Some basic translations -->
|
|
34
|
-
<!-- <script src='lang/translator.js?v=2.0.
|
|
35
|
-
<!-- <script src='lang/ru.js?v=2.0.
|
|
36
|
-
<!-- <script src='lang/en.js?v=2.0.
|
|
34
|
+
<!-- <script src='lang/translator.js?v=2.0.2' type='text/javascript'></script> -->
|
|
35
|
+
<!-- <script src='lang/ru.js?v=2.0.2' type='text/javascript'></script> -->
|
|
36
|
+
<!-- <script src='lang/en.js?v=2.0.2' type='text/javascript'></script> -->
|
|
37
37
|
|
|
38
38
|
<script type="text/javascript">
|
|
39
39
|
$(function () {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{91:function(e,r,t){"use strict";t.r(r);t(3),t(10),t(20),t(21);var s=t(1);const n=function(e){return e.location?`${e.id}@${e.location}`:e.id},o=angular.module("graphdb.framework.security.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.jwtauth","graphdb.framework.core.services.openIDService","graphdb.framework.rest.security.service","graphdb.framework.utils.localstorageadapter","toastr"]),i=function(e){let r=s.UserType.USER;const t={READ_REPO:{},WRITE_REPO:{}},n={};for(let o=0;o<e.length;o++){const i=e[o];if(i===s.UserRole.ROLE_ADMIN)r=s.UserType.ADMIN;else if(i===s.UserRole.ROLE_REPO_MANAGER)r!==s.UserType.ADMIN&&(r=s.UserType.REPO_MANAGER);else if(i===s.UserRole.ROLE_USER)r=s.UserType.USER;else if(0!==i.indexOf("ROLE_")){const e=i.indexOf("_",i.indexOf("_")+1),r=i.substr(0,e),s=i.substr(e+1);t[r][s]=!0,n[s]=n[s]||{},"READ_REPO"===r?n[s].read=!0:"WRITE_REPO"===r&&(n[s].write=!0)}}return{userType:r,userTypeDescription:s.UserUtils.getUserRoleName(r),grantedAuthorities:t,repositories:n}};o.controller("LoginCtrl",["$scope","$http","toastr","$jwtAuth","$openIDAuth","$location","$rootScope","$translate",function(e,r,t,s,n,o,i,a){e.username="",e.password="",e.loginWithOpenID=function(){s.loginOpenID()},o.search().noaccess?t.error(a.instant("security.no.rights.config.error"),a.instant("security.login.error")):o.search().expired&&t.error(a.instant("security.auth.token.expired"),a.instant("security.login.error")),e.isGDBLoginEnabled=function(){return s.passwordLoginEnabled},e.isOpenIDEnabled=function(){return s.openIDEnabled},e.login=function(){return r({method:"POST",url:"rest/login/"+encodeURIComponent(e.username),headers:{"X-GraphDB-Password":e.password}}).success((function(e,r,t){s.authenticate(e,t("Authorization")).then(()=>{i.returnToUrl?o.url(i.returnToUrl):o.path("/")})})).error((function(r,s){if(401===s)t.error(a.instant("security.wrong.credentials"),a.instant("common.error")),e.wrongCredentials=!0,e.username="",e.password="";else{const e=getError(r);t.error(e,s)}}))}}]),o.controller("UsersCtrl",["$scope","$modal","toastr","$window","$jwtAuth","$timeout","ModalService","SecurityRestService","$translate",function(e,r,t,s,o,a,u,c,d){e.loader=!0,e.securityEnabled=function(){return o.isSecurityEnabled()},e.hasExternalAuth=function(){return o.hasExternalAuth()},e.getAuthImplementation=function(){return o.getAuthImplementation()},e.freeAccessEnabled=function(){return o.isFreeAccessEnabled()},e.getUsers=function(){c.getUsers().success((function(r){e.users=r;for(let r=0;r<e.users.length;r++){const t=i(e.users[r].grantedAuthorities);e.users[r].userType=t.userType,e.users[r].userTypeDescription=t.userTypeDescription,e.users[r].repositories=t.repositories}e.loader=!1})).error((function(r){const s=getError(r);t.error(s,d.instant("common.error")),e.loader=!1}))},e.getUsers(),e.$on("repositoryIsSet",(function(){e.getUsers()})),e.toggleSecurity=function(){if(o.toggleSecurity(!o.isSecurityEnabled()),o.isSecurityEnabled()){const r=a((function(){s.location.reload()}),500);e.$on("$destroy",(function(){a.cancel(r)}))}},e.toggleFreeAccess=function(t){!o.isFreeAccessEnabled()||o.isFreeAccessEnabled()&&t?c.getFreeAccess().then((function(s){let i=s.data.authorities,a=s.data.appSettings||{DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0};r.open({templateUrl:"js/angular/security/templates/modal/default-authorities.html",controller:"DefaultAuthoritiesCtrl",resolve:{data:function(){return{defaultAuthorities:function(){const r={READ_REPO:{},WRITE_REPO:{}},t=_.mapKeys(e.getRepositories(),(function(e){return n(e)}));return _.each(i,(function(e){0===e.indexOf("WRITE_REPO_")?t.hasOwnProperty(e.substr(11))&&(r.WRITE_REPO[e.substr(11)]=!0):0===e.indexOf("READ_REPO_")&&t.hasOwnProperty(e.substr(10))&&(r.READ_REPO[e.substr(10)]=!0)})),r},appSettings:a}}}}).result.then((function(e){i=e.authorities,a=e.appSettings,o.toggleFreeAccess(t||!o.isFreeAccessEnabled(),i,a,t)}))})):o.toggleFreeAccess(!o.isFreeAccessEnabled(),[])},e.editFreeAccess=function(){e.toggleFreeAccess(!0)},e.removeUser=function(r){u.openSimpleModal({title:d.instant("common.confirm.delete"),message:d.instant("security.confirm.delete.user",{name:r}),warning:!0}).result.then((function(){e.loader=!0,c.deleteUser(r).success((function(){e.getUsers()})).error((function(r){const s=getError(r);t.error(s,d.instant("common.error")),e.loader=!1}))}))},e.encodeURIComponent=function(e){return encodeURIComponent(e)}}]),o.controller("DefaultAuthoritiesCtrl",["$scope","$http","$modalInstance","data","$rootScope",function(e,r,t,s,o){e.grantedAuthorities=s.defaultAuthorities(),e.appSettings=s.appSettings,e.hasActiveLocation=function(){return!_.isEmpty(o.globalLocation)},e.getRepositories=function(){return o.globalRepositories},e.ok=function(){const r=[];e.repositoryCheckError=!0;for(const t in e.grantedAuthorities.WRITE_REPO)e.grantedAuthorities.WRITE_REPO[t]&&(r.push("WRITE_REPO_"+t),r.push("READ_REPO_"+t),e.repositoryCheckError=!1);for(const t in e.grantedAuthorities.READ_REPO)e.grantedAuthorities.READ_REPO[t]&&-1===r.indexOf("READ_REPO_"+t)&&(r.push("READ_REPO_"+t),e.repositoryCheckError=!1);e.repositoryCheckError||t.close({authorities:r,appSettings:e.appSettings})},e.cancel=function(){t.dismiss("cancel")},e.createUniqueKey=function(e){return n(e)}}]),o.controller("CommonUserCtrl",["$rootScope","$scope","$http","toastr","$window","$timeout","$location","$jwtAuth","$translate","passwordPlaceholder",function(e,r,t,o,i,a,u,c,d,p){e.$on("$translateChangeSuccess",(function(){r.passwordPlaceholder=d.instant(p)})),r.isAdmin=function(){return c.hasRole(s.UserRole.ROLE_ADMIN)},r.hasExternalAuth=function(){return c.hasExternalAuth()},r.hasEditRestrictions=function(){return r.user&&r.user.username===s.UserType.ADMIN},r.isOverrideAuth=function(){return c.isDefaultAuthEnabled()},r.setGrantedAuthorities=function(){!function(e){function r(){for(let r=0;r<arguments.length;r++){const t=arguments[r];_.indexOf(e.user.grantedAuthorities,t)<0&&e.user.grantedAuthorities.push(t)}}if(e.user.grantedAuthorities=[],e.repositoryCheckError=!0,e.userType===s.UserType.ADMIN)e.repositoryCheckError=!1,r(s.UserRole.ROLE_ADMIN);else if(e.userType===s.UserType.REPO_MANAGER)e.repositoryCheckError=!1,r(s.UserRole.ROLE_REPO_MANAGER);else{r(s.UserRole.ROLE_USER);for(const t in e.grantedAuthorities.WRITE_REPO)e.grantedAuthorities.WRITE_REPO[t]&&(e.repositoryCheckError=!1,r("WRITE_REPO_"+t,"READ_REPO_"+t));for(const t in e.grantedAuthorities.READ_REPO)e.grantedAuthorities.READ_REPO[t]&&(e.repositoryCheckError=!1,r("READ_REPO_"+t))}}(r)},r.hasReadPermission=function(e){const t=n(e);return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&(r.grantedAuthorities.READ_REPO["*"]||r.grantedAuthorities.WRITE_REPO["*"])||r.grantedAuthorities.READ_REPO[t]||r.grantedAuthorities.WRITE_REPO[t]},r.hasWritePermission=function(e){const t=n(e);return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&r.grantedAuthorities.WRITE_REPO["*"]||r.grantedAuthorities.WRITE_REPO[t]},r.readCheckDisabled=function(e){return r.hasWritePermission(e)||"SYSTEM"!==e.id&&"*"!==e&&r.grantedAuthorities.READ_REPO["*"]||r.hasEditRestrictions()},r.writeCheckDisabled=function(e){return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&"*"!==e&&r.grantedAuthorities.WRITE_REPO["*"]||r.hasEditRestrictions()},r.createUniqueKey=function(e){return n(e)},r.userType=s.UserType.USER,r.grantedAuthorities={READ_REPO:{},WRITE_REPO:{}},r.validatePassword=function(){return r.noPassword?(r.passwordError="",r.confirmPasswordError="",!0):r.user.password!==r.user.confirmpassword?(r.user.password?(r.passwordError="",r.confirmPasswordError=d.instant("security.confirm.password")):(r.passwordError=d.instant("security.enter.password"),r.confirmPasswordError=""),!1):(r.passwordError="",r.confirmPasswordError="",!0)},r.isLocalAuthentication=function(){return"Local"===c.getAuthImplementation()},r.updateUser=function(){if(!r.validateForm())return!1;r.isLocalAuthentication()&&r.setGrantedAuthorities(),r.repositoryCheckError||r.updateUserHttp()},r.setNoPassword=function(){r.noPassword&&(r.user.password="",r.user.confirmpassword="",r.passwordError="",r.confirmPasswordError="")}}]),o.controller("AddUserCtrl",["$scope","$http","toastr","$window","$timeout","$location","$jwtAuth","$controller","SecurityRestService","ModalService","$translate",function(e,r,t,n,o,i,a,u,c,d,p){angular.extend(this,u("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.password.placeholder"})),e.mode="add",e.saveButtonText=p.instant("common.create.btn"),e.goBack=function(){const r=o((function(){n.history.back()}),100);e.$on("$destroy",(function(){o.cancel(r)}))},e.pageTitle=p.instant("view.create.user.title"),e.passwordPlaceholder=p.instant("security.password.placeholder"),e.user={username:"",password:"",confirmpassword:"",grantedAuthorities:[],appSettings:{DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0}},e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?d.openSimpleModal({title:p.instant("security.create.admin"),message:p.instant("security.admin.login.warning"),warning:!0}).result.then((function(){e.createUser()})):e.createUser()},e.createUserHttp=function(){e.loader=!0,c.createUser({username:e.user.username,pass:e.user.password,appSettings:e.user.appSettings,grantedAuthorities:e.user.grantedAuthorities}).success((function(){t.success(p.instant("security.user.created",{name:e.user.username}));const r=o((function(){e.loader=!1,n.history.back()}),2e3);e.$on("$destroy",(function(){o.cancel(r)}))})).error((function(r){const s=getError(r);e.loader=!1,t.error(s,p.instant("common.error"))}))},e.createUser=function(){e.validateForm()&&(e.setGrantedAuthorities(),e.repositoryCheckError||e.createUserHttp())},e.validateForm=function(){let r=!0;return e.user.username?e.usernameError="":(e.usernameError=p.instant("security.enter.username"),r=!1),e.noPassword?(e.passwordError="",e.confirmPasswordError=""):(e.user.password?e.passwordError="":(e.passwordError=p.instant("security.enter.password"),r=!1),e.user.confirmpassword&&e.user.password===e.user.confirmpassword?e.confirmPasswordError="":(e.confirmPasswordError=p.instant("security.confirm.password"),r=!1)),r}}]),o.controller("EditUserCtrl",["$scope","$http","toastr","$window","$routeParams","$timeout","$location","$jwtAuth","$controller","SecurityRestService","ModalService","$translate",function(e,r,t,n,o,a,u,c,d,p,l,E){angular.extend(this,d("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.new.password"})),e.mode="edit",e.saveButtonText=E.instant("common.save.btn"),e.goBack=function(){const r=a((function(){n.history.back()}),100);e.$on("$destroy",(function(){a.cancel(r)}))},e.params=o,e.pageTitle=E.instant("view.edit.user.title",{userId:e.params.userId}),e.passwordPlaceholder=E.instant("security.new.password"),e.userType=s.UserType.USER;const g={DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0};c.hasRole(s.UserRole.ROLE_ADMIN)||u.url("settings"),e.getUserData=function(){p.getUser(e.params.userId).success((function(r){e.userData=r,e.user={username:e.userData.username},e.user.password="",e.user.confirmpassword="",e.user.external=e.userData.external,e.user.appSettings=r.appSettings||g,e.userType=s.UserType.USER;const t=i(r.grantedAuthorities);e.userType=t.userType,e.grantedAuthorities=t.grantedAuthorities})).error((function(e){const r=getError(e);t.error(r,E.instant("common.error"))}))},e.getUserData(),e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?l.openSimpleModal({title:E.instant("security.save.admin.settings"),message:E.instant("security.admin.pass.unset"),warning:!0}).result.then((function(){e.updateUser()})):e.updateUser()},e.updateUserHttp=function(){e.loader=!0,p.updateUser({username:e.user.username,pass:e.noPassword?"":e.user.password||void 0,appSettings:e.user.appSettings,grantedAuthorities:e.user.grantedAuthorities}).success((function(){t.success(E.instant("security.user.updated",{name:e.user.username}));const r=a((function(){e.loader=!1,n.history.back()}),2e3);e.$on("$destroy",(function(){a.cancel(r)})),c.getPrincipal().then(r=>{e.user.username===r.username&&(r.appSettings=e.user.appSettings)})})).error((function(r){const s=getError(r);e.loader=!1,t.error(s,E.instant("common.error"))}))},e.validateForm=function(){return e.validatePassword()}}]),o.controller("RolesMappingController",["$scope","toastr","SecurityRestService","$translate",function(e,r,t,s){e.debugMapping=function(e,r){const s=r.split(":");t.getRolesMapping({role:e,method:s[1],mapping:s[0]})};e.$on("repositoryIsSet",(function(){t.getRoles().success((function(r){e.roleMappings=r,e.roles=_.keys(e.roleMappings),e.mappings=_.keys(e.roleMappings[e.roles[0]]);const t=_.map(e.roles,(function(r){return[r,_.filter(e.roleMappings[r]).length]}));e.roles=_.reverse(_.map(_.orderBy(t,(function(e){return e[1]})),(function(e){return e[0]})))})).error((function(t){const n=getError(t);e.loader=!1,r.error(n,s.instant("common.error"))}))}))}]),o.controller("ChangeUserPasswordSettingsCtrl",["$scope","toastr","$window","$timeout","$jwtAuth","$rootScope","$controller","SecurityRestService","ModalService","$translate","LocalStorageAdapter","LSKeys","$q",function(e,r,t,n,o,a,u,c,d,p,l,E,g){angular.extend(this,u("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.new.password"})),e.mode="settings",e.hasEditRestrictions=function(){return!0},e.saveButtonText=p.instant("common.save.btn"),e.goBack=function(){const r=n((function(){t.history.back()}),100);e.$on("$destroy",(function(){n.cancel(r)}))},e.getPrincipal=function(){return o.getPrincipal().then(r=>{e.currentUserData=angular.copy(r)})},e.getPrincipal().then(()=>{e.redirectAdmin(),f(e)}),e.showWorkbenchSettings=!0,e.updateCurrentUserData=function(){g.when(o.getPrincipal()).then(r=>_.assign(r,e.userData))},e.redirectAdmin=function(){e.currentUserData||a.redirectToLogin()},e.pageTitle=p.instant("view.settings.title"),e.passwordPlaceholder=p.instant("security.new.password"),e.grantedAuthorities={READ_REPO:{},WRITE_REPO:{}};const f=function(r){r.userData=angular.copy(r.currentUserData),r.user={username:r.userData.username},r.user.password="",r.user.confirmpassword="",r.user.external=r.userData.external,r.user.appSettings=r.userData.appSettings,void 0===r.user.appSettings.DEFAULT_VIS_GRAPH_SCHEMA&&(r.user.appSettings.DEFAULT_VIS_GRAPH_SCHEMA=!0);const t=i(r.userData.authorities);e.userType=t.userType,e.grantedAuthorities=t.grantedAuthorities};e.loader=!1,e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?d.openSimpleModal({title:p.instant("security.save.admin.settings"),message:p.instant("security.admin.pass.unset"),warning:!0}).result.then((function(){e.updateUser()})):e.updateUser()},e.updateUserHttp=function(){e.loader=!0,c.updateUserData({username:e.user.username,pass:e.noPassword?"":e.user.password||void 0,appSettings:e.user.appSettings}).success((function(){e.updateCurrentUserData(),r.success(p.instant("security.user.updated",{name:e.user.username}));const s=n((function(){e.loader=!1,t.history.back()}),2e3);l.set(E.WORKBENCH_SETTINGS,e.workbenchSettings),e.$on("$destroy",(function(){n.cancel(s)}))})).error((function(t){const s=getError(t);e.loader=!1,r.error(s,p.instant("common.error"))}))},e.updateUser=function(){if(!e.validateForm())return!1;e.updateUserHttp()},e.validateForm=function(){return e.validatePassword()},e.setWorkbenchTheme=function(){const r=document.querySelector(":root");"dark"===e.workbenchSettings.theme?r.classList.add("dark"):r.classList.remove("dark")},e.workbenchSettings=l.get(E.WORKBENCH_SETTINGS),e.workbenchSettings||(e.workbenchSettings={theme:"light"}),e.setWorkbenchTheme(),e.$on("$destroy",(function(){const e=l.get(E.WORKBENCH_SETTINGS),r=document.querySelector(":root");e&&"dark"===e.theme?r.classList.add("dark"):r.classList.remove("dark")}))}]),o.controller("DeleteUserCtrl",["$scope","$modalInstance","username",function(e,r,t){e.username=t,e.ok=function(){r.close()},e.cancel=function(){r.dismiss("cancel")}}])}}]);
|
|
2
|
-
//# sourceMappingURL=10.eab0a417fa2f2831905e.bundle.js.map
|