Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
executionware_ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PaaSage
executionware_ui
Commits
551172fd
Commit
551172fd
authored
Nov 19, 2015
by
Ahmed Zarioh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fix for login
parent
6852e8ef
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
79 additions
and
41 deletions
+79
-41
app/Controller/KairosController.php
app/Controller/KairosController.php
+0
-2
app/Dispatcher.php
app/Dispatcher.php
+1
-1
app/RestController.php
app/RestController.php
+3
-2
app/RestService.php
app/RestService.php
+1
-0
app/main.php
app/main.php
+1
-0
executionware-ui-apis.json
executionware-ui-apis.json
+2
-2
index.php
index.php
+1
-1
public/js/controller/Charts/ChartsController.js
public/js/controller/Charts/ChartsController.js
+35
-23
public/js/service/ajaxFactory.js
public/js/service/ajaxFactory.js
+3
-0
public/js/service/resolverFactory.js
public/js/service/resolverFactory.js
+1
-0
public/partials/application-detail.html
public/partials/application-detail.html
+31
-10
No files found.
app/Controller/KairosController.php
View file @
551172fd
...
...
@@ -22,10 +22,8 @@
class
KairosController
extends
RestController
{
public
static
$SERVICE
=
'KairosService'
;
public
static
function
getChart
()
{
$service
=
static
::
getService
(
"charts"
);
...
...
app/Dispatcher.php
View file @
551172fd
...
...
@@ -56,7 +56,7 @@ class Dispatcher
switch
(
$controller_route
)
{
case
""
:
$GLOBALS
[
"return"
]
=
""
;
$GLOBALS
[
"return"
]
=
null
;
//client side
$GLOBALS
[
'client'
][
'apisObjects'
]
=
json_decode
(
file_get_contents
(
"config/apisObjects.json"
),
true
);
...
...
app/RestController.php
View file @
551172fd
...
...
@@ -72,8 +72,9 @@ class RestController
{
$service
=
static
::
getService
(
"login"
);
$putData
=
static
::
getRequestContent
();
$service
::
login
(
$putData
->
email
,
$putData
->
password
);
return
""
;
//if()
//$service::login($putData->email,$putData->password);
return
true
;
}
public
static
function
logout
()
...
...
app/RestService.php
View file @
551172fd
...
...
@@ -294,6 +294,7 @@ class RestService
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
TRUE
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
TRUE
);
curl_setopt
(
$ch
,
CURLOPT_TIMEOUT
,
8
);
//timeout in seconds
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$api_response
=
curl_exec
(
$ch
);
$api_response_info
=
curl_getinfo
(
$ch
);
...
...
app/main.php
View file @
551172fd
...
...
@@ -124,6 +124,7 @@ function include_all_javascript($folder)
</span>
</div>
<div
class=
"container-fluid"
ng-view
class=
"view-frame"
></div>
</div>
</div>
</body>
...
...
executionware-ui-apis.json
View file @
551172fd
{
"colosseumapi"
:
{
"name"
:
"colosseumapi"
,
"url"
:
"http://52.21.93.224:9000/api"
,
"url"
:
"http://52.21
0
.93.224:9000/api"
,
"controller"
:
"ColosseumController"
},
"kairosapi"
:
{
"name"
:
"kairosapi"
,
"url"
:
"http://52.21.93.224:8080/api/v1/datapoints/query"
,
"url"
:
"http://52.21
0
.93.224:8080/api/v1/datapoints/query"
,
"controller"
:
"KairosController"
,
"router"
:
"KairosRouter"
}
...
...
index.php
View file @
551172fd
...
...
@@ -98,5 +98,5 @@ if(isset($GLOBALS["return"]))
}
else
{
echo
"error return"
;
//
echo "error return";
}
\ No newline at end of file
public/js/controller/Charts/ChartsController.js
View file @
551172fd
...
...
@@ -34,9 +34,10 @@ crudControllers.controller('ChartsCtrl', function($scope,$interval,$http,ajaxFac
$scope
.
init
(
monitorInstance
);
}
$scope
.
init
=
function
(
monitorInstance
)
{
$scope
.
wait
=
false
;
$scope
.
graphDetails
=
{};
$scope
.
graphDetails
.
monitorInstance
=
monitorInstance
.
id
;
...
...
@@ -79,30 +80,41 @@ crudControllers.controller('ChartsCtrl', function($scope,$interval,$http,ajaxFac
$scope
.
change
=
function
()
{
//TODO add a protection like a synchronized thread (a variable that is false durring the ajax and would hide/enabled the inputs)
$scope
.
wait
=
true
;
$scope
.
error
=
false
;
//to change to "pure" angularjs code
var
graph
=
$
(
"
#graph-num-
"
+
$scope
.
k
);
$scope
.
canvW
=
graph
.
find
(
"
canvas
"
).
width
();
$scope
.
canvH
=
graph
.
find
(
"
canvas
"
).
height
();
//$scope.azara = $scope.graphDetails;
console
.
log
(
$scope
.
graphDetails
);
ajaxFactory
.
post
(
"
charts
"
,
$scope
.
graphDetails
).
then
(
function
(
data
,
status
,
headers
,
config
)
{
//$scope.azara = data;
$scope
.
data
=
getInfoChart
(
data
.
queries
);
$scope
.
wait
=
false
;
},
function
(
data
,
status
,
headers
,
config
)
if
(
$scope
.
wait
==
false
)
{
$scope
.
wait
=
false
;
$scope
.
error
=
true
;
});
};
$scope
.
wait
=
true
;
$scope
.
error
=
false
;
//to change to "pure" angularjs code
var
graph
=
$
(
"
#graph-num-
"
+
$scope
.
k
);
$scope
.
canvW
=
graph
.
find
(
"
canvas
"
).
width
();
$scope
.
canvH
=
graph
.
find
(
"
canvas
"
).
height
();
//$scope.azara = $scope.graphDetails;
console
.
log
(
$scope
.
graphDetails
);
ajaxFactory
.
post
(
"
charts
"
,
$scope
.
graphDetails
).
then
(
function
(
data
,
status
,
headers
,
config
)
{
//$scope.azara = data;
if
(
data
&&
data
.
queries
)
{
$scope
.
data
=
getInfoChart
(
data
.
queries
);
}
else
{
}
$scope
.
wait
=
false
;
},
function
(
data
,
status
,
headers
,
config
)
{
$scope
.
wait
=
false
;
$scope
.
error
=
true
;
});
}
};
$scope
.
interval
=
$interval
(
$scope
.
change
,
10000
);
$scope
.
$on
(
"
$destroy
"
,
function
(){
$interval
.
cancel
(
$scope
.
interval
);
});
...
...
public/js/service/ajaxFactory.js
View file @
551172fd
...
...
@@ -46,6 +46,9 @@ crudFactories.factory('ajaxFactory', function ($http,$q,$rootScope,$location,res
$http
(
req
)
.
success
(
function
(
data
,
status
)
{
console
.
log
(
url
);
console
.
log
(
data
);
console
.
log
(
status
);
deferred
.
resolve
(
data
);
resolverFactory
.
resolveSuccess
(
data
,
status
);
})
...
...
public/js/service/resolverFactory.js
View file @
551172fd
...
...
@@ -35,6 +35,7 @@ crudFactories.factory('resolverFactory', function ($rootScope,$location)
resolveError
:
function
(
data
,
status
)
{
$rootScope
.
loading
=
false
;
$rootScope
.
logged
=
false
;
if
(
status
==
401
)
{
$rootScope
.
logged
=
false
;
...
...
public/partials/application-detail.html
View file @
551172fd
...
...
@@ -68,7 +68,7 @@
<div
class=
"row"
>
<!-- ng class to col-12 -->
<div
class=
"col-lg-9 col-xs-10"
style=
"padding-top : 10px;padding-bottom : 10px;"
>
<h3
class=
"no-margin-v"
>
applicationComponent
List
</h3>
<h3
class=
"no-margin-v"
>
applicationComponent
s
</h3>
</div>
<div
ng-if=
"apiObjectHave('put')"
class=
"col-lg-3 col-xs-2 text-center no-padding td-button td-button-edit"
...
...
@@ -81,8 +81,19 @@
</div>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"col-md-3"
ng-repeat=
"thing in item.applicationComponents"
>
<div
ng-controller=
"emptyCtrl"
ng-init=
"
thing.isCollapsed = true;
vmt_removable=false;
comp_removable=false;"
ng-include=
" 'md-vmt.htm' "
>
</div>
<!--
<div class="panel panel-primary">
<div class="panel-heading">
{{thing.id}} ( VMT : {{thing.virtualMachineTemplate}} )
...
...
@@ -93,8 +104,13 @@
</div>
</div>
</div>
-->
</div>
</div>
</div>
</div>
...
...
@@ -103,7 +119,7 @@
<div
class=
"panel-heading"
style=
"padding-top:0; padding-bottom:0;"
>
<div
class=
"row"
>
<div
class=
"col-lg-9 col-xs-10"
style=
"padding-top : 10px;padding-bottom : 10px;"
>
<h3
class=
"no-margin-v"
>
Communications
List
</h3>
<h3
class=
"no-margin-v"
>
Communications
</h3>
</div>
<div
ng-if=
"apiObjectHave('put')"
class=
"col-lg-3 col-xs-2 text-center no-padding td-button td-button-edit"
...
...
@@ -118,9 +134,9 @@
</div>
<div
class=
"panel-body"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
ng-repeat=
"communication in item.communications"
>
<div
class=
"col-md-12
col-lg-6
"
ng-repeat=
"communication in item.communications"
>
<div
class=
"panel panel-info"
>
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
Communication number {{communication.id}}
</div>
<div
class=
"panel-body"
style=
"min-height:40px;"
>
...
...
@@ -133,7 +149,7 @@
<div
ng-controller=
"emptyCtrl"
ng-init=
"
thing = item.applicationComponentsById[item.portProvs[communication.providedPort].applicationComponent];
thing.isCollapsed = true;
vmt_removable=false;
comp_removable=false;"
ng-include=
" 'md-vmt.htm' "
>
...
...
@@ -199,13 +215,14 @@
<script
type=
"text/ng-template"
id=
"md-vmt.htm"
>
<
div
class
=
"
panel panel-primary panel-xs
"
>
<
div
class
=
"
panel-heading
"
style
=
"
padding-top:0; padding-bottom:0;
"
>
<
div
class
=
"
panel-heading
"
style
=
"
padding-top:0; padding-bottom:0;
"
ng
-
click
=
"
thing.isCollapsed = !thing.isCollapsed
"
>
<
div
class
=
"
row
"
>
<!--
ng
class
to
col
-
12
-->
<
div
class
=
"
col-md-
9
"
style
=
"
padding-top : 10px;padding-bottom : 10
px;
"
>
<
div
class
=
"
col-md-
12
"
style
=
"
padding-top : 8px;padding-bottom : 8
px;
"
>
<
span
ng
-
if
=
"
title!==undefined
"
>
{{
title
}}
<
/span
>
<
span
ng
-
if
=
"
title===undefined
"
>
VMT
:
{{
thing
.
id
}}
<
/span>
<
span
ng
-
if
=
"
title===undefined
"
>
ApplicationComponent
{{
thing
.
id
}}
<
/span>
<
/div
>
<
div
ng
-
if
=
"
vmt_removable
"
class
=
"
col-md-3 text-center no-padding td-button td-button-delete
"
ng
-
click
=
"
currentList.splice($index, 1)
"
>
<
div
data
-
original
-
title
=
"
delete
"
data
-
toggle
=
"
tooltip
"
data
-
placement
=
"
top
"
title
=
""
tooltip
=
""
>
...
...
@@ -213,10 +230,14 @@
<
span
class
=
"
glyphicon glyphicon-remove
"
aria
-
hidden
=
"
true
"
><
/span
>
<
/span
>
<
/div>
<
/div>
<
/div>
<
div
ng
-
show
=
"
thing.isCollapsed
"
class
=
"
col-md-12
"
style
=
"
background:#49d;padding-top : 8px;padding-bottom : 8px;
"
>
<
span
ng
-
if
=
"
title!==undefined
"
>
{{
title
}}
<
/span
>
<
span
ng
-
if
=
"
title===undefined
"
>
VMT
-
{{
thing
.
virtualMachineTemplate
}}
<
/span>
<
/div>
<
/div
>
<
/div
>
<
div
class
=
"
panel-body
"
<
div
ng
-
show
=
"
thing.isCollapsed
"
class
=
"
panel-body
"
ng
-
class
=
"
{ 'dotted-border' : thing.components.length == 0 }
"
style
=
"
min-height:40px;
"
dnd
-
list
=
"
thing.components
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment