Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Utilities
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNICADO
Utilities
Commits
ca66db7e
Commit
ca66db7e
authored
5 months ago
by
Duc Bui Tien
Browse files
Options
Downloads
Patches
Plain Diff
update selector with rules
parent
7c652ab6
Branches
UnicadoGUI
UnicadoGuiFrontend
Branches containing commit
No related tags found
1 merge request
!3
UnicadoGuiFrontend
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UnicadoGUI/Frontend/src/routes/model/+page.svelte
+7
-6
7 additions, 6 deletions
UnicadoGUI/Frontend/src/routes/model/+page.svelte
with
7 additions
and
6 deletions
UnicadoGUI/Frontend/src/routes/model/+page.svelte
+
7
−
6
View file @
ca66db7e
...
...
@@ -248,12 +248,13 @@
if
(
value
[
"
@description
"
]
&&
value
[
"
@description
"
].
toLowerCase
().
includes
(
"
switch
"
))
{
value
.
value
=
(
value
.
value
===
'
true
'
||
value
.
value
===
"
1
"
)
//transform string input to boolean for easier binding
modalModule
.
html
.
push
(
new
SettingsSwitch
(
key
,
value
[
"
@description
"
],
value
))
}
else
if
(
value
[
"
@description
"
]
&&
value
[
"
@description
"
].
toLowerCase
().
includes
(
"
selector
"
))
{
let
options
=
[];
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{
if
(
value
[
"
@description
"
].
includes
(
"
mode_
"
+
i
))
{
options
.
push
(
"
mode_
"
+
i
)
}
}
else
if
(
value
[
"
@description
"
]
&&
(
value
[
"
@description
"
].
toLowerCase
().
includes
(
"
selector:
"
)
||
value
[
"
@description
"
].
toLowerCase
().
startsWith
(
"
selector
"
))){
let
options
=
[]
if
(
value
[
"
@description
"
].
includes
(
"
mode_
"
)){
options
=
value
[
"
@description
"
].
match
(
/mode_
\d
+/g
)
}
else
{
let
selectorString
=
value
[
"
@description
"
].
split
(
"
Selector:
"
)[
1
]
options
=
selectorString
.
split
(
"
/
"
)
}
modalModule
.
html
.
push
(
new
SettingsSelector
(
key
,
value
[
"
@description
"
],
value
,
options
))
}
else
if
(
isNumber
(
value
.
value
)){
...
...
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