Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
netvs-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scc-net
netvs
netvs-core
Commits
ea24d60a
Commit
ea24d60a
authored
1 year ago
by
Alexander Kaschta
Committed by
Janis Streib
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
UPD: Revert to address loading bug
parent
afc23427
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/views/ObjectExplorer.vue
+91
-89
91 additions, 89 deletions
frontend/src/views/ObjectExplorer.vue
frontend/src/views/dnsvs/BCDRecords.vue
+252
-251
252 additions, 251 deletions
frontend/src/views/dnsvs/BCDRecords.vue
with
343 additions
and
340 deletions
frontend/src/views/ObjectExplorer.vue
+
91
−
89
View file @
ea24d60a
<
template
>
<
template
>
<div
id=
"obj_viewer"
>
<div
id=
"obj_viewer"
>
<Loading
:data=
"obj"
>
<Loading
:data=
"obj"
>
<b-row>
<template
v-if=
"obj"
>
<b-col>
<b-row>
<h1>
{{
$t
(
'
views.object_explorer.object_explorer
'
)
}}
<small
v-if=
"obj_type"
class=
"text-muted"
>
{{
<b-col>
obj_type
.
object_type_fq_name
<h1>
{{
$t
(
'
views.object_explorer.object_explorer
'
)
}}
<small
v-if=
"obj_type"
class=
"text-muted"
>
{{
}}
</small></h1>
obj_type
.
object_type_fq_name
</b-col>
}}
</small></h1>
<b-col
lg=
"2"
>
</b-col>
<b-button-group
class=
"d-flex"
>
<b-col
lg=
"2"
>
<b-button
id=
"editobj"
variant=
"outline-primary"
<b-button-group
class=
"d-flex"
>
v-b-modal:object_editor
class=
"mt-3 shadow"
>
<b-button
id=
"editobj"
variant=
"outline-primary"
<netvs-icon
icon=
"edit"
></netvs-icon>
v-b-modal:object_editor
class=
"mt-3 shadow"
>
</b-button>
<netvs-icon
icon=
"edit"
></netvs-icon>
<b-tooltip
target=
"editobj"
triggers=
"hover"
</b-button>
variant=
"primary"
placement=
"bottom"
>
<b-tooltip
target=
"editobj"
triggers=
"hover"
{{
$t
(
'
system.edit
'
)
}}
variant=
"primary"
placement=
"bottom"
>
</b-tooltip>
{{
$t
(
'
system.edit
'
)
}}
<b-button
variant=
"outline-secondary"
id=
"objview_evlog"
</b-tooltip>
v-b-modal:object_viewer_evlog
class=
"mt-3 shadow"
>
<b-button
variant=
"outline-secondary"
id=
"objview_evlog"
<netvs-icon
icon=
"evlog"
></netvs-icon>
v-b-modal:object_viewer_evlog
class=
"mt-3 shadow"
>
</b-button>
<netvs-icon
icon=
"evlog"
></netvs-icon>
<b-tooltip
target=
"obview_evlog"
triggers=
"hover"
</b-button>
variant=
"secondary"
placement=
"bottom"
>
<b-tooltip
target=
"obview_evlog"
triggers=
"hover"
{{
$t
(
'
system.event_log
'
)
}}
variant=
"secondary"
placement=
"bottom"
>
</b-tooltip>
{{
$t
(
'
system.event_log
'
)
}}
</b-button-group>
</b-tooltip>
</b-col>
</b-button-group>
</b-row>
</b-col>
<b-table-simple
responsive
>
</b-row>
<b-tr
v-for=
"(v,k) in obj"
:key=
"v+':'+k"
>
<b-table-simple
responsive
>
<b-th>
{{
k
}}
<br><span
class=
"text-muted"
>
{{
obj_definition
.
attributes
[
k
].
description_detail
}}
</span>
<b-tr
v-for=
"(v,k) in obj"
:key=
"v+':'+k"
>
</b-th>
<b-th>
{{
k
}}
<br><span
class=
"text-muted"
>
{{
obj_definition
.
attributes
[
k
].
description_detail
}}
</span>
<b-td>
{{
v
}}
</b-td>
</b-th>
<b-td>
<b-td>
{{
v
}}
</b-td>
<b-button
v-if=
"k in obj_definition_ref"
<b-td>
@
click=
"join(obj_definition_ref[k].system+'.'+obj_definition_ref[k].object_type, 'default')"
>
<b-button
v-if=
"k in obj_definition_ref"
{{
$t
(
'
views.object_explorer.join_to
'
)
}}
@
click=
"join(obj_definition_ref[k].system+'.'+obj_definition_ref[k].object_type, 'default')"
>
{{
obj_definition_ref
[
k
].
system
}}
.
{{
obj_definition_ref
[
k
].
object_type
}}
{{
$t
(
'
views.object_explorer.join_to
'
)
}}
</b-button>
{{
obj_definition_ref
[
k
].
system
}}
.
{{
obj_definition_ref
[
k
].
object_type
}}
</b-td>
</b-button>
</b-tr>
</b-td>
</b-table-simple>
</b-tr>
<h2>
{{
$t
(
'
views.object_explorer.object_attributes
'
)
}}
</h2>
</b-table-simple>
<b-table-simple
responsive
>
<h2>
{{
$t
(
'
views.object_explorer.object_attributes
'
)
}}
</h2>
<b-tr
v-for=
"a in attr_defs"
:key=
"a.key_word"
>
<b-table-simple
responsive
>
<b-th>
{{
a
.
name
}}
<code>
{{
a
.
key_word
}}
</code><br/><span
class=
"text-muted"
>
{{
a
.
description
}}
</span>
<b-tr
v-for=
"a in attr_defs"
:key=
"a.key_word"
>
</b-th>
<b-th>
{{
a
.
name
}}
<code>
{{
a
.
key_word
}}
</code><br/><span
class=
"text-muted"
>
{{
a
.
description
}}
</span>
<b-td>
</b-th>
<ul>
<b-td>
<li
v-for=
"v in attr_kv[a.key_word]"
:key=
"v.object_gfk + '_' + v.ot_attr_def_key_word + '_' + v.value"
>
<ul>
<code>
{{
v
.
value
}}
</code>
(
<li
v-for=
"v in attr_kv[a.key_word]"
:key=
"v.object_gfk + '_' + v.ot_attr_def_key_word + '_' + v.value"
>
<b-link
:to=
"'/object/'+v.ref_object_gfk"
>
Ref
</b-link>
<code>
{{
v
.
value
}}
</code>
(
)
<b-link
:to=
"'/object/'+v.ref_object_gfk"
>
Ref
</b-link>
</li>
)
</ul>
</li>
</b-td>
</ul>
</b-tr>
</b-td>
</b-table-simple>
</b-tr>
<h2>
{{
$t
(
'
views.object_explorer.constraints
'
)
}}
</h2>
</b-table-simple>
<b-table-simple
responsive
>
<h2>
{{
$t
(
'
views.object_explorer.constraints
'
)
}}
</h2>
<b-tr>
<b-table-simple
responsive
>
<b-th>
{{
$t
(
'
system.name
'
)
}}
</b-th>
<b-tr>
<b-th>
{{
$t
(
'
views.object_explorer.attributes
'
)
}}
</b-th>
<b-th>
{{
$t
(
'
system.name
'
)
}}
</b-th>
</b-tr>
<b-th>
{{
$t
(
'
views.object_explorer.attributes
'
)
}}
</b-th>
<b-tr
v-for=
"(v,k) in obj_definition.constraints"
:key=
"v+':'+k"
>
</b-tr>
<b-td>
{{
k
}}
<br><span
class=
"text-muted"
>
{{
v
.
description
}}
</span></b-td>
<b-tr
v-for=
"(v,k) in obj_definition.constraints"
:key=
"v+':'+k"
>
<b-td>
<b-td>
{{
k
}}
<br><span
class=
"text-muted"
>
{{
v
.
description
}}
</span></b-td>
<ul>
<b-td>
<li
v-for=
"a in v.attributes"
:key=
"k+':'+a"
>
{{
a
}}
</li>
<ul>
</ul>
<li
v-for=
"a in v.attributes"
:key=
"k+':'+a"
>
{{
a
}}
</li>
</b-td>
</ul>
</b-tr>
</b-td>
</b-table-simple>
</b-tr>
<h2>
{{
$t
(
'
views.object_explorer.dump
'
)
}}
</h2>
</b-table-simple>
<CopyField
multiline
:text=
"obj_dump"
></CopyField>
<h2>
{{
$t
(
'
views.object_explorer.dump
'
)
}}
</h2>
<DBEditor
:object_fq_name=
"obj_type.object_type_fq_name"
object_function=
"update"
<CopyField
multiline
:text=
"obj_dump"
></CopyField>
modal_id=
"object_editor"
:old_data=
"obj"
:presets=
"obj"
:non_optionals=
"Object.keys(obj)"
<DBEditor
:object_fq_name=
"obj_type.object_type_fq_name"
object_function=
"update"
:object_title=
"obj.gpk"
></DBEditor>
modal_id=
"object_editor"
:old_data=
"obj"
:presets=
"obj"
:non_optionals=
"Object.keys(obj)"
<EVLogViewer
modal_id=
"object_viewer_evlog"
:ref_obj_fq=
"obj_type.object_type_fq_name"
:object_title=
"obj.gpk"
></DBEditor>
:refobj_id_value=
"obj.gpk"
:title=
"obj.gpk"
></EVLogViewer>
<EVLogViewer
modal_id=
"object_viewer_evlog"
:ref_obj_fq=
"obj_type.object_type_fq_name"
<b-modal
id=
"joiner"
ok-only
:refobj_id_value=
"obj.gpk"
:title=
"obj.gpk"
></EVLogViewer>
:title=
"$t('views.object_explorer.join_a_to_b',
{a: obj_type.object_type_fq_name, b: join_target})">
<b-modal
id=
"joiner"
ok-only
{{
$t
(
'
views.object_explorer.results
'
,
{
constraint
:
join_constraint
}
)
}}
:title=
"$t('views.object_explorer.join_a_to_b',
{a: obj_type.object_type_fq_name, b: join_target})">
<
ul
>
{{
$t
(
'
views.object_explorer.results
'
,
{
constraint
:
join_constraint
}
)
}}
<
li
v
-
for
=
"
r in join_res
"
:
key
=
"
r.gpk
"
>
<
ul
>
<
b
-
link
:
to
=
"
'/object/'+r.gpk
"
><
code
>
{{
join_res
}}
<
/code></
b
-
link
>
<
li
v
-
for
=
"
r in join_res
"
:
key
=
"
r.gpk
"
>
<
/li
>
<
b
-
link
:
to
=
"
'/object/'+r.gpk
"
><
code
>
{{
join_res
}}
<
/code></
b
-
link
>
<
/ul
>
<
/li
>
<
b
-
table
><
/b-table
>
<
/ul
>
<
/b-modal
>
<
b
-
table
><
/b-table
>
<
/b-modal
>
<
/template
>
<
/Loading
>
<
/Loading
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/views/dnsvs/BCDRecords.vue
+
252
−
251
View file @
ea24d60a
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment