Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
b575a951
Commit
b575a951
authored
Mar 17, 2022
by
frtabu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'websrv' of
https://gitlab.eurecom.fr/oai/openairinterface5g
into websrv
parents
c239d99f
fc3319c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
20 deletions
+36
-20
common/utils/websrv/frontend/.eslintrc.json
common/utils/websrv/frontend/.eslintrc.json
+1
-1
common/utils/websrv/frontend/src/app/components/commands/commands.component.html
...ntend/src/app/components/commands/commands.component.html
+12
-11
common/utils/websrv/frontend/src/app/components/commands/commands.component.ts
...rontend/src/app/components/commands/commands.component.ts
+23
-8
No files found.
common/utils/websrv/frontend/.eslintrc.json
View file @
b575a951
...
...
@@ -10,7 +10,7 @@
],
"parserOptions"
:
{
"project"
:
[
"
openairinterface5g/common/utils/websrv/frontend
/tsconfig.json"
"
.
/tsconfig.json"
],
"createDefaultProgram"
:
true
},
...
...
common/utils/websrv/frontend/src/app/components/commands/commands.component.html
View file @
b575a951
<
h1
mat-dialog-title
>
Status
</h1
>
<
!-- <div *ngIf="infos$ | async as infos"> --
>
<
div
*ngIf=
"infos$ | async as infos"
>
<p>
config_file: {{ infos.display_status.config_file }}
</p>
<p>
executable_function: {{ infos.display_status.executable_function }}
</p>
<
h1
mat-dialog-title
>
Status
</h1
>
<p>
config_file: {{ infos.display_status.config_file }}
</p>
<p>
executable_function: {{ infos.display_status.executable_function }}
</p>
<mat-form-field>
<mat-label>
Command
</mat-label>
<mat-select
[formControl]=
"selectedCmd!.value"
[value]=
"selectedCmd!.value"
>
<mat-option
*ngFor=
"let control of infos.cmdsFA.controls"
[value]=
"control.value"
>
{{ control.value }}
</mat-option>
</mat-select>
</mat-form-field>
</div>
\ No newline at end of file
<h1
mat-dialog-title
>
Commands
</h1>
<mat-form-field>
<mat-label>
Command
</mat-label>
<mat-select
[formControl]=
"selectedCmd?.value"
[value]=
"selectedCmd?.value"
>
<mat-option
*ngFor=
"let control of infos.cmdsFA.controls"
[value]=
"control.value"
>
{{ control.value }}
</mat-option>
</mat-select>
</mat-form-field>
\ No newline at end of file
common/utils/websrv/frontend/src/app/components/commands/commands.component.ts
View file @
b575a951
...
...
@@ -2,10 +2,8 @@
/* eslint-disable no-shadow */
/* eslint-disable eqeqeq */
/* eslint-disable @typescript-eslint/naming-convention */
import
{
Component
}
from
'
@angular/core
'
;
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
FormControl
}
from
'
@angular/forms
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
map
,
tap
}
from
'
rxjs/operators
'
;
import
{
CommandsApi
}
from
'
src/app/api/commands.api
'
;
import
{
InfosCtrl
}
from
'
src/app/controls/infos.control
'
;
import
{
LoadingService
}
from
'
src/app/services/loading.service
'
;
...
...
@@ -18,16 +16,33 @@ import { LoadingService } from 'src/app/services/loading.service';
})
export
class
CommandsComponent
{
infos$
:
Observable
<
InfosCtrl
>
// infos$: Observable<InfosCtrl>
infos
:
InfosCtrl
selectedCmd
?:
FormControl
constructor
(
public
commandsApi
:
CommandsApi
,
public
loadingService
:
LoadingService
,
)
{
this
.
infos$
=
this
.
commandsApi
.
readInfos$
().
pipe
(
map
((
doc
)
=>
new
InfosCtrl
(
doc
)),
);
}
// this.infos$ = this.commandsApi.readInfos$().pipe(
// map((doc) => new InfosCtrl(doc)),
// );
this
.
infos
=
new
InfosCtrl
({
display_status
:
{
config_file
:
'
../../../ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.usrpn310.conf
'
,
executable_function
:
"
gnb
"
},
menu_cmds
:
[
"
telnet
"
,
"
softmodem
"
,
"
loader
"
,
"
measur
"
,
"
rfsimu
"
]
})
// console.log(JSON.stringify(this.infos, null, 2))
}
}
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