Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
melodic-frontend
Commits
18b8a78e
Commit
18b8a78e
authored
Jan 23, 2020
by
Alicja Reniewicz
Browse files
button for redirection to Kibana
parent
13d42aa0
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/app/app-config/model/app-config.ts
View file @
18b8a78e
...
...
@@ -3,4 +3,5 @@ export interface AppConfig {
camundaUrl
:
string
;
grafanaUrl
:
string
;
webSshUrl
:
string
;
kibanaUrl
:
string
;
}
src/app/app-config/service/app-config.service.ts
View file @
18b8a78e
...
...
@@ -36,6 +36,7 @@ export class AppConfigService {
camundaUrl
=
environment
.
camundaUrl
;
grafanaUrl
=
environment
.
grafanaUrl
;
webSshUrl
=
environment
.
webSshUrl
;
kibanaUrl
=
environment
.
kibanaUrl
;
}();
resolve
();
}
...
...
src/app/process/process-view/process-view.component.css
View file @
18b8a78e
...
...
@@ -68,3 +68,7 @@ mat-grid-list {
.full-height
{
height
:
100%
;
}
.monitoring-button
{
margin-right
:
var
(
--triple-margin
);
}
src/app/process/process-view/process-view.component.html
View file @
18b8a78e
<mat-card
id=
"main-process-mat-card"
>
<button
button
mat-raised-button
color=
"primary"
(click)=
"onAdvancedViewClick()"
>
<button
button
mat-raised-button
color=
"primary"
(click)=
"onAdvancedViewClick()"
class=
"monitoring-button"
>
<mat-icon
class=
"mat-18"
>
developer_board
</mat-icon>
Advanced view
</button>
<button
button
mat-raised-button
color=
"primary"
(click)=
"onComponentsLogsClick()"
>
<mat-icon
class=
"mat-18"
>
data_usage
</mat-icon>
Components logs
</button>
<button
button
mat-raised-button
color=
"primary"
class=
"button-on-right-side"
(click)=
"onProcessesHistoryClick()"
>
<mat-icon
class=
"mat-18"
>
history
</mat-icon>
...
...
src/app/process/process-view/process-view.component.ts
View file @
18b8a78e
...
...
@@ -10,6 +10,7 @@ import {ActiveProcessListComponent} from '../active-process-list/active-process-
import
{
CpSolutionViewComponent
}
from
'
../cp-solution-view/cp-solution-view.component
'
;
import
{
CpVariablesViewComponent
}
from
'
../cp-variables-view/cp-variables-view.component
'
;
import
{
DeploymentDifferenceComponent
}
from
'
../deployment-difference/deployment-difference.component
'
;
import
{
AppConfigService
}
from
'
../../app-config/service/app-config.service
'
;
@
Component
({
selector
:
'
app-process-view
'
,
...
...
@@ -103,6 +104,11 @@ export class ProcessViewComponent implements OnInit, AfterViewInit, OnDestroy {
this
.
router
.
navigate
([
'
/process/camunda
'
]);
}
onComponentsLogsClick
()
{
console
.
log
(
`Click for Kibana redirection`
);
window
.
open
(
AppConfigService
.
settings
.
kibanaUrl
);
}
onProcessesHistoryClick
()
{
console
.
log
(
'
History of processes click
'
);
this
.
router
.
navigate
([
'
/process/list
'
]);
...
...
src/environments/environment.prod.ts
View file @
18b8a78e
...
...
@@ -2,8 +2,9 @@ export const environment = {
production
:
true
,
useRuntimeConfig
:
true
,
href
:
'
/
'
,
apiUrl
:
'
http://gui-backend:8078
'
,
apiUrl
:
'
http
s
://gui-backend:8078
'
,
camundaUrl
:
'
http://gui-backend:8095
'
,
grafanaUrl
:
'
http://gui-backend:3000
'
,
webSshUrl
:
'
http://gui-backend:2121
'
webSshUrl
:
'
https://gui-backend:4433
'
,
kibanaUrl
:
'
http://gui-backend:5601
'
};
src/environments/environment.ts
View file @
18b8a78e
...
...
@@ -6,10 +6,11 @@ export const environment = {
production
:
false
,
useRuntimeConfig
:
false
,
href
:
'
/
'
,
apiUrl
:
'
http://localhost:8078
'
,
apiUrl
:
'
http
s
://localhost:8078
'
,
camundaUrl
:
'
http://localhost:8095
'
,
grafanaUrl
:
'
http://localhost:3000
'
,
webSshUrl
:
'
http://localhost:2121
'
webSshUrl
:
'
https://localhost:4433
'
,
kibanaUrl
:
'
http://localhost:5601
'
};
/*
...
...
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