Beispiel #1
0
 def trace_group():
     return dbc.FormGroup([
         daq.PowerButton(id='trace-button',
                         on=False,
                         color='#00FF00',
                         style=element_style()),
         html.Div(id='trace-error-notification',
                  children=None,
                  style=element_style())
     ])
Beispiel #2
0
 def _manage_funtions_group(self):
     return dbc.FormGroup([
         dbc.Label('Manage functions'),
         dcc.Dropdown(id='functions-traced-select',
                      placeholder='Select function to manage',
                      optionHeight=40),
         dbc.Button('Manage parameters',
                    id='manage-params-button',
                    color='success',
                    className='mr-1',
                    style=element_style()),
         dbc.Button('Remove function',
                    id='remove-func-button',
                    color='danger',
                    className='mr-1',
                    style=element_style())
     ])
Beispiel #3
0
 def slider_group():
     return dbc.FormGroup(children=[
         dbc.Label('Update coloring'),
         html.Div(id='slider-div',
                  children=Dashboard.slider(),
                  style={'padding': '40px 0px 20px 0px'})
     ],
                          style=element_style())
Beispiel #4
0
 def add_app_group():
     return dbc.FormGroup([
         dbc.Label('Add application to trace', style=element_style()),
         dbc.Row([
             dbc.Col(
                 dbc.Input(id='application-path',
                           type='text',
                           placeholder='/path/to/binary')),
             dbc.Col(dbc.Button('Add',
                                id='add-app-button',
                                color='primary',
                                className='mr-1'),
                     width=2)
         ]),
         html.Div(id='add-app-notification',
                  children=None,
                  style=element_style())
     ])
Beispiel #5
0
 def _manage_parameters_group(self):
     return dbc.FormGroup([
         dbc.Label('Manage parameters'),
         dbc.Select(id='params-select', options=[]),
         dbc.Button('Remove parameter',
                    id='remove-param-button',
                    color='danger',
                    className='mr-1',
                    style=element_style())
     ])
Beispiel #6
0
 def spacing_group():
     return dbc.FormGroup(children=[
         dbc.Label('Spacing between nodes: ', width=7),
         dbc.Col(
             dbc.Input(id='node-spacing-input',
                       type='number',
                       min=1,
                       value=2))
     ],
                          row=True,
                          style=element_style())
Beispiel #7
0
 def manage_apps_group():
     return dbc.FormGroup([
         dbc.Label('Manage applications'),
         dcc.Dropdown(id='applications-select',
                      placeholder='Select application to manage'),
         dbc.Button('Manage functions',
                    id='manage-functions-button',
                    color='success',
                    disabled=True,
                    className='mr-1',
                    style=element_style()),
         dbc.Button('Remove application',
                    id='remove-app-button',
                    color='danger',
                    disabled=True,
                    className='mr-1',
                    style=element_style()),
         html.Div(id='manage-apps-notification',
                  children=None,
                  style=element_style())
     ])
Beispiel #8
0
 def load_output_group():
     return dbc.FormGroup([
         dbc.Label('Load output of BCC trace run'),
         dbc.Row([
             dbc.Col(
                 dbc.Input(id='output-path',
                           type='text',
                           placeholder='/path/to/file')),
             dbc.Col(dbc.Button('Load',
                                id='load-output-button',
                                color='primary',
                                className='mr-1'),
                     width=2)
         ]),
         html.Div(id='load-output-notification',
                  children=None,
                  style=element_style()),
         dcc.Interval(
             id='timer',
             interval=1 * 500,  # in milliseconds
             n_intervals=0,
             disabled=True)
     ])