Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
macaronideath
fc-pregmod
Commits
6d91b39c
Commit
6d91b39c
authored
4 years ago
by
lowercasedonkey
Browse files
Options
Downloads
Patches
Plain Diff
move fcdev options into the new system
parent
cf5ff0e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gui/options/summaryOptions.js
+20
-24
20 additions, 24 deletions
src/gui/options/summaryOptions.js
with
20 additions
and
24 deletions
src/gui/options/summaryOptions.js
+
20
−
24
View file @
6d91b39c
App
.
UI
.
summaryOptions
=
function
()
{
App
.
UI
.
summaryOptions
=
function
()
{
const
el
=
new
DocumentFragment
();
const
el
=
new
DocumentFragment
();
let
_
options
;
let
options
;
App
.
UI
.
DOM
.
appendNewElement
(
"
h1
"
,
el
,
"
Summary Options
"
);
App
.
UI
.
DOM
.
appendNewElement
(
"
h1
"
,
el
,
"
Summary Options
"
);
...
@@ -8,22 +8,22 @@ App.UI.summaryOptions = function() {
...
@@ -8,22 +8,22 @@ App.UI.summaryOptions = function() {
App
.
UI
.
DOM
.
appendNewElement
(
"
h2
"
,
el
,
"
Main menu features
"
);
App
.
UI
.
DOM
.
appendNewElement
(
"
h2
"
,
el
,
"
Main menu features
"
);
_
options
=
new
App
.
UI
.
OptionsGroup
();
options
=
new
App
.
UI
.
OptionsGroup
();
_
options
.
addOption
(
"
Rules Assistant visibility
"
,
"
rulesAssistantMain
"
)
options
.
addOption
(
"
Rules Assistant visibility
"
,
"
rulesAssistantMain
"
)
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
_
options
.
addOption
(
"
Facilities in the sidebar are
"
,
"
abbreviateSidebar
"
)
options
.
addOption
(
"
Facilities in the sidebar are
"
,
"
abbreviateSidebar
"
)
.
addValueList
([[
"
Summarized
"
,
2
],
[
"
Abbreviated
"
,
1
]]);
.
addValueList
([[
"
Summarized
"
,
2
],
[
"
Abbreviated
"
,
1
]]);
_
options
.
addOption
(
"
Sorting main menu options are
"
,
"
sortSlavesMain
"
)
options
.
addOption
(
"
Sorting main menu options are
"
,
"
sortSlavesMain
"
)
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
if
(
V
.
sortSlavesMain
>
0
)
{
if
(
V
.
sortSlavesMain
>
0
)
{
_
options
.
addOption
(
"
Sorting direction
"
,
"
sortSlavesOrder
"
)
options
.
addOption
(
"
Sorting direction
"
,
"
sortSlavesOrder
"
)
.
addValueList
([[
"
Ascending
"
,
"
ascending
"
],
[
"
Descending
"
,
"
descending
"
]]);
.
addValueList
([[
"
Ascending
"
,
"
ascending
"
],
[
"
Descending
"
,
"
descending
"
]]);
_
options
.
addOption
(
"
Slaves are sorted by
"
,
"
sortSlavesBy
"
)
options
.
addOption
(
"
Slaves are sorted by
"
,
"
sortSlavesBy
"
)
.
addValueList
([
.
addValueList
([
[
"
Devotion
"
,
"
devotion
"
],
[
"
Devotion
"
,
"
devotion
"
],
[
"
Name
"
,
"
name
"
],
[
"
Name
"
,
"
name
"
],
...
@@ -36,41 +36,37 @@ App.UI.summaryOptions = function() {
...
@@ -36,41 +36,37 @@ App.UI.summaryOptions = function() {
]);
]);
}
}
el
.
append
(
_
options
.
render
());
el
.
append
(
options
.
render
());
App
.
UI
.
DOM
.
appendNewElement
(
"
h2
"
,
el
,
"
Individual panels
"
);
App
.
UI
.
DOM
.
appendNewElement
(
"
h2
"
,
el
,
"
Individual panels
"
);
App
.
UI
.
DOM
.
appendNewElement
(
"
div
"
,
el
,
"
Sample summary:
"
);
App
.
UI
.
DOM
.
appendNewElement
(
"
div
"
,
el
,
"
Sample summary:
"
);
el
.
append
(
App
.
UI
.
SlaveList
.
render
([
V
.
slaves
.
random
().
ID
],
new
Array
(),
App
.
UI
.
SlaveList
.
SlaveInteract
.
stdInteract
));
el
.
append
(
App
.
UI
.
SlaveList
.
render
([
V
.
slaves
.
random
().
ID
],
new
Array
(),
App
.
UI
.
SlaveList
.
SlaveInteract
.
stdInteract
));
_
options
=
(
new
App
.
UI
.
OptionsGroup
()).
enableDoubleColumn
();
options
=
(
new
App
.
UI
.
OptionsGroup
()).
enableDoubleColumn
();
_
options
.
addOption
(
"
Panel style is
"
,
"
slavePanelStyle
"
)
options
.
addOption
(
"
Panel style is
"
,
"
slavePanelStyle
"
)
.
addValueList
([
.
addValueList
([
[
"
None
"
,
0
],
[
"
None
"
,
0
],
[
"
Line Separator
"
,
1
],
[
"
Line Separator
"
,
1
],
[
"
Card
"
,
2
]
[
"
Card
"
,
2
]
]);
]);
App
.
UI
.
SlaveSummary
.
addOptions
(
_
options
);
App
.
UI
.
SlaveSummary
.
addOptions
(
options
);
_
options
.
addOption
(
"
Granular slave stat numbers are
"
,
"
summaryStats
"
)
options
.
addOption
(
"
Granular slave stat numbers are
"
,
"
summaryStats
"
)
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
_
options
.
addOption
(
"
Main menu assignment shortcuts are
"
,
"
displayAssignments
"
)
options
.
addOption
(
"
Main menu assignment shortcuts are
"
,
"
displayAssignments
"
)
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
.
addValue
(
"
Shown
"
,
1
).
on
().
addValue
(
"
Hidden
"
,
0
).
off
();
if
(
V
.
showMissingSlaves
)
{
if
(
V
.
showMissingSlaves
)
{
_
options
.
addOption
(
"
Missing slave parents are
"
,
"
showMissingSlavesSD
"
)
options
.
addOption
(
"
Missing slave parents are
"
,
"
showMissingSlavesSD
"
)
.
addValue
(
"
Shown
"
,
true
).
on
().
addValue
(
"
Hidden
"
,
false
).
off
();
.
addValue
(
"
Shown
"
,
true
).
on
().
addValue
(
"
Hidden
"
,
false
).
off
();
}
}
el
.
append
(
_options
.
render
());
options
.
addOption
(
"
FC Dev's preferred options
"
)
.
customButton
(
App
.
UI
.
DOM
.
appendNewElement
(
"
Apply
"
,
"
p
"
,
el
,
App
.
UI
.
DOM
.
link
(
"
FC Dev's preferred options
"
,
()
=>
{
()
=>
{
V
.
seeDesk
=
0
;
V
.
seeDesk
=
0
;
V
.
seeFCNN
=
0
;
V
.
seeFCNN
=
0
;
...
@@ -98,10 +94,10 @@ App.UI.summaryOptions = function() {
...
@@ -98,10 +94,10 @@ App.UI.summaryOptions = function() {
};
};
V
.
abbreviateSidebar
=
1
;
V
.
abbreviateSidebar
=
1
;
},
},
[],
"
Summary Options
"
"
Summary Options
"
)
);
);
el
.
append
(
options
.
render
());
return
el
;
return
el
;
};
};
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