Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
webui
Commits
cd602ec6
Unverified
Commit
cd602ec6
authored
3 years ago
by
Evgeny Stepanovych
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
NAS-114840: Renaming single letter variables (#6409)
parent
09c3c0ac
base
DOCS
DOCS-3538
NAS-010101
NAS-110777
NAS-110800
NAS-111962-master
NAS-112995-22.12
NAS-113464
NAS-113464-alt
NAS-113511
NAS-113904-2
NAS-114179
NAS-114179-2
NAS-114659
NAS-114751
NAS-114769
NAS-114806
NAS-114846
NAS-114881
NAS-114915
NAS-114950
NAS-115146
NAS-115162
NAS-115254
NAS-115271
NAS-115339
NAS-115340
NAS-115357
NAS-115488
NAS-115546
NAS-115547
NAS-115593
NAS-115593-2
NAS-115593-3
NAS-115593-4
NAS-115593-5
NAS-115593-6
NAS-115593-7
NAS-115713-22-12
NAS-115759
NAS-115759-22.12
NAS-116151
NAS-116162
NAS-116334-1
NAS-116334-2
NAS-116393
NAS-116395
NAS-116397
NAS-116397-2
NAS-116397-3
NAS-116398
NAS-116405
NAS-116406
NAS-116410
NAS-116469
NAS-116715
NAS-116715-mobile
NAS-116715-v2
NAS-116724
NAS-116915
NAS-116916
NAS-117017
NAS-117019
NAS-117028-22.12-BETA.2
NAS-117060
NAS-117098
NAS-117149-22.12
NAS-117216
NAS-117233
NAS-117239
NAS-117253
NAS-117278
NAS-117317
NAS-117323
NAS-117333
NAS-117401
NAS-117439
NAS-117475
NAS-117476
NAS-117481-test
NAS-117520
NAS-117573-v2
NAS-117594
NAS-117628
NAS-117688-bluefin
NAS-117700
NAS-117714
NAS-117718
NAS-117734
NAS-117768
NAS-117813
NAS-117823
NAS-117841-2
NAS-117846
NAS-117959
NAS-118036
NAS-118044
NAS-118113
NAS-118165
NAS-118303
NAS-118454-22.12
NAS-118505-22.12
NAS-118545
NAS-118548
NAS-119131
NAS-119140
NAS-119180-22.12.1
NAS-119431
NAS-119556-23.10
NAS-119615-22.12.1
NAS-119668
NAS-119695
NAS-119749-bluefin
NAS-119750-22.12.1
NAS-119806
NAS-119812
NAS-119886-22.12.1
NAS-119996
NAS-119996-bluefin
NAS-120045
NAS-120047
NAS-120057
NAS-120173-22.12.1
NAS-120181-22.12.1
NAS-120264-22.12.1
NAS-120274
NAS-120296-22.12.1
NAS-120326-22.12.1
NAS-120490_
NAS-120503
NAS-121006-22.12.2
NAS-121124
NAS-121128-22.12.2
NAS-121128-release-22.12.2
NAS-121136
NAS-121177
NAS-121218-22.12.3
NAS-121300
NAS-121316
NAS-121541
NAS-121542
NAS-121686
NAS-121721-22.12.3
NAS-121778
NAS-121827
NAS-121884-22.12.3
NAS-122267-22.12.4
NAS-122372
NAS-122601
NAS-122686
NAS-122706
NAS-122721
NAS-122751-23.10-BETA.1
NAS-122759
NAS-122781
NAS-122794-23.10
NAS-122855
NAS-122870-bluefin
NAS-122969
NAS-122993-22.12.4
NAS-123055-22.12.4
NAS-123278
NAS-123295
NAS-123437
NAS-123478-22.12.4
NAS-123484
NAS-123492
NAS-123526-22.12.4
NAS-123651
NAS-123651-23.10-BETA.1
NAS-123666
NAS-123723
NAS-123723-cobia
NAS-123762
NAS-123762-23.10
NAS-123778-23.10
NAS-123778-23.10-RC.1
NAS-123778-RC.1
NAS-123801
NAS-123810-23.10
NAS-123813-22.12.4
NAS-123836
NAS-123836-23.10-BETA.1
NAS-123836-24.04
NAS-123861
NAS-123911-23.10-BETA.1
NAS-123928-23.10
NAS-123931-22.12.4
NAS-123945
NAS-124044
NAS-124077
NAS-124131-23.10
NAS-124137
NAS-124183
NAS-124231
NAS-124232
NAS-124237-23.10
NAS-124325-23.10.0
NAS-124335
NAS-124354
NAS-124430
NAS-124454
NAS-124481-23.10.0
NAS-124481-23.10.1
NAS-124555-23.10.0
NAS-124555-23.10.1
NAS-124666
NAS-124707-23.10.0
NAS-124707-23.10.1
NAS-124716
NAS-124846-23.10.0
NAS-124846-23.10.1
NAS-124892
NAS-124895-23.10.1
NAS-124908
NAS-124951
NAS-124964
NAS-124999
NAS-125092
NAS-125213-23.10.1
NAS-125307
NAS-125532
NAS-125568
NAS-125607-validator
NAS-125616-23.10.2
NAS-125654
NAS-125703-23.10.2
NAS-125728
NAS-125931
NAS-126699
NAS-126774-24.04-RC.1
NAS-126774-dragonfish
NAS-126795
NAS-126795-test
NAS-126795-test2
NAS-127001
NAS-127002-24.04-RC.1
NAS-127022
NAS-127041-24.04-BETA.1
NAS-127049-24.04-RC.1
NAS-127297-24.04-RC.1
NAS-127297-24.10
NAS-127369
NAS-127551
NAS-127551-alt
NAS-127589-24.04.0
NAS-127593
NAS-127615-24.04.0
NAS-127660
NAS-127794
NAS-127829-24.10
NAS-127854-24.04.0
NAS-128030
NAS-128045
NAS-128071
NAS-128173
NAS-128209
NAS-128287
NAS-128289
TE-1553-dragonfish
TE-1628
auto-129
back
bugfix/NAS-117859-sidebar-menu-fix
bugfix/NAS-117941-error-when-removing-pools-and-visit-datasets
bugfix/NAS-118171-rsynk-task-local-path
bugfix/NAS-118260-boot-env-keep-table-row
bugfix/NAS-118282-search-input-fixes
bugfix/NAS-118404-dataset-icon-role-double-toooltip
bugfix/NAS-118414-warning-modal-icon
bugfix/NAS-118415-tree-select-undefined
bugfix/NAS-118454-acl-manager-after-dataset-creation-fix
bugfix/NAS-118470-multiselext-styles-are-broken
bugfix/NAS-118503-datasets-glitch-fix
bugfix/NAS-118504-redirect-to-correct-dataset-after-permissions-submit
bugfix/NAS-118510-redirect-url-fix-after-manual-change
bugfix/NAS-118530-advanced-settings-box-duplicates
bugfix/NAS-118541-progress-bar-oberflows
bugfix/NAS-118557-replication-task-forbid-custom-retention-policy-cases
bugfix/NAS-118600-smb-share-redirect
bugfix/NAS-118601-remove-mixed-for-zfs-datasets
cpu-pinning
dataset-tree-tooltips
developer/lyy
feature/NAS-117754-font-rendering
feature/NAS-117968-tooltips-to-status-icons-on-pools
feature/NAS-118058-improve-dashboard-icons-sync-pool-and-storage
feature/NAS-118147-html-refactoring
feature/NAS-118269-improve-ui
feature/NAS-118303
feature/NAS-118333-storage-dashboard-icons-update
feature/NAS-118334-screentype-enum
feature/NAS-118335-improve-spinners-look
feature/NAS-118349-datasets-long-names
feature/NAS-118360-handle-clipboard-api-not-available
feature/NAS-118412-pool-processing-modal
feature/NAS-118466-root-path-mnt
feature/NAS-118543-user-password-field
feauture/NAS-117474-datasets-table-header-sticky
l10n_master
llll
master
master-old
metrics-enable
patch-1
patch-235
rel-v0.0.1
release/22.12
release/22.12-BETA.1
release/22.12-BETA.2
release/22.12-RC.1
release/22.12.1
release/22.12.2
release/22.12.3
release/22.12.4
release/23.10-BETA.1
release/23.10-RC.1
release/23.10.0
release/23.10.1
release/23.10.1.1
release/23.10.1.2
release/23.10.1.3
release/23.10.2
release/24.04-BETA.1
release/24.04-RC.1
release/24.04.0
renediepenbroek/master
revert-6783-NAS-116405
revert-7745-NAS-120274
stable/bluefin
stable/cobia
stable/dragonfish
test-xxxyyy
testing-refine-branchout-process
testing-refine-branchout-process2
v0.0.2
TS-24.04-RC.1
TS-24.04-BETA.1
TS-23.10.2
TS-23.10.1.3
TS-23.10.1.2
TS-23.10.1.1
TS-23.10.1
TS-23.10.0.1
TS-23.10.0
TS-23.10-RC.1
TS-23.10-BETA.1
TS-22.12.4.2
TS-22.12.4.1
TS-22.12.4
TS-22.12.3.3
TS-22.12.3.2
TS-22.12.3.1
TS-22.12.3
TS-22.12.2
TS-22.12.1
TS-22.12.0
TS-22.12-RC.1
TS-22.12-BETA.2
TS-22.12-BETA.1
TS-22.12-ALPHA.1
TS-12.12.3
DN110M-CS-v2.0
No related merge requests found
Changes
57
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
src/app/app.component.ts
+6
-6
src/app/app.component.ts
src/app/components/common/dialog/download-key/download-key-dialog.component.ts
+2
-2
...mmon/dialog/download-key/download-key-dialog.component.ts
src/app/components/common/dual-list/dual-list.component.ts
+1
-1
src/app/components/common/dual-list/dual-list.component.ts
src/app/components/common/dual-list/models.ts
+5
-5
src/app/components/common/dual-list/models.ts
src/app/components/common/layouts/admin-layout/admin-layout.component.ts
+3
-3
...nts/common/layouts/admin-layout/admin-layout.component.ts
src/app/components/common/modal/modal.component.ts
+2
-2
src/app/components/common/modal/modal.component.ts
src/app/modules/charts/components/view-chart-gauge/view-chart-gauge.component.ts
+7
-7
...components/view-chart-gauge/view-chart-gauge.component.ts
src/app/modules/entity/entity-dialog/entity-dialog.component.ts
+2
-2
...p/modules/entity/entity-dialog/entity-dialog.component.ts
src/app/modules/entity/entity-form/classes/field-sets.ts
+2
-2
src/app/modules/entity/entity-form/classes/field-sets.ts
src/app/modules/entity/entity-form/components/form-chip/form-chip.component.ts
+1
-1
...y/entity-form/components/form-chip/form-chip.component.ts
src/app/modules/entity/entity-form/components/form-scheduler/form-scheduler.component.ts
+24
-24
...orm/components/form-scheduler/form-scheduler.component.ts
src/app/modules/entity/entity-form/services/entity-form.service.ts
+3
-3
...odules/entity/entity-form/services/entity-form.service.ts
src/app/modules/entity/entity-table/entity-table-actions/entity-table-actions.component.html
+2
-2
.../entity-table-actions/entity-table-actions.component.html
src/app/modules/entity/entity-table/entity-table-actions/entity-table-actions.component.ts
+2
-2
...le/entity-table-actions/entity-table-actions.component.ts
src/app/modules/entity/entity-table/entity-table.component.ts
+7
-7
...app/modules/entity/entity-table/entity-table.component.ts
src/app/modules/entity/utils.ts
+2
-2
src/app/modules/entity/utils.ts
src/app/modules/ix-forms/components/ix-input/ix-input.component.ts
+2
-2
...odules/ix-forms/components/ix-input/ix-input.component.ts
src/app/modules/ix-forms/components/ix-slide-in/ix-slide-in.component.ts
+2
-2
.../ix-forms/components/ix-slide-in/ix-slide-in.component.ts
src/app/modules/terminal/components/terminal/terminal.component.ts
+2
-2
...odules/terminal/components/terminal/terminal.component.ts
src/app/modules/terminal/xterm-attach-addon.ts
+2
-2
src/app/modules/terminal/xterm-attach-addon.ts
with
79 additions
and
79 deletions
+79
-79
src/app/app.component.ts
View file @
cd602ec6
...
...
@@ -68,16 +68,16 @@ export class AppComponent {
document
.
body
.
className
+=
'
safari-platform
'
;
}
router
.
events
.
pipe
(
untilDestroyed
(
this
)).
subscribe
((
s
)
=>
{
router
.
events
.
pipe
(
untilDestroyed
(
this
)).
subscribe
((
event
)
=>
{
// save currenturl
if
(
s
instanceof
NavigationEnd
)
{
if
(
this
.
ws
.
loggedIn
&&
s
.
url
!==
'
/sessions/signin
'
)
{
sessionStorage
.
currentUrl
=
s
.
url
;
if
(
event
instanceof
NavigationEnd
)
{
if
(
this
.
ws
.
loggedIn
&&
event
.
url
!==
'
/sessions/signin
'
)
{
sessionStorage
.
currentUrl
=
event
.
url
;
}
}
if
(
s
instanceof
NavigationCancel
)
{
const
params
=
new
URLSearchParams
(
s
.
url
.
split
(
'
#
'
)[
1
]);
if
(
event
instanceof
NavigationCancel
)
{
const
params
=
new
URLSearchParams
(
event
.
url
.
split
(
'
#
'
)[
1
]);
const
isEmbedded
=
params
.
get
(
'
embedded
'
);
if
(
isEmbedded
)
{
...
...
This diff is collapsed.
Click to expand it.
src/app/components/common/dialog/download-key/download-key-dialog.component.ts
View file @
cd602ec6
...
...
@@ -55,9 +55,9 @@ export class DownloadKeyDialogComponent {
this
.
isDownloaded
=
true
;
}
});
},
(
e
)
=>
{
},
(
e
rror
)
=>
{
this
.
loader
.
close
();
new
EntityUtils
().
handleWsError
(
this
,
e
,
this
.
dialog
);
new
EntityUtils
().
handleWsError
(
this
,
e
rror
,
this
.
dialog
);
});
}
else
{
mimetype
=
'
application/octet-stream
'
;
...
...
This diff is collapsed.
Click to expand it.
src/app/components/common/dual-list/dual-list.component.ts
View file @
cd602ec6
...
...
@@ -8,7 +8,7 @@ const transfer = <T>(from: ListSelection<T>, to: ListSelection<T>): {
from
:
ListSelection
<
T
>
;
to
:
ListSelection
<
T
>
;
}
=>
({
from
:
new
ListSelectionImpl
(
from
.
totalItems
.
filter
((
x
)
=>
!
from
.
isSelected
(
x
)),
from
.
totalItems
.
filter
((
item
)
=>
!
from
.
isSelected
(
item
)),
),
to
:
new
ListSelectionImpl
([...
from
.
selectedItems
,
...
to
.
totalItems
]),
});
...
...
This diff is collapsed.
Click to expand it.
src/app/components/common/dual-list/models.ts
View file @
cd602ec6
...
...
@@ -52,16 +52,16 @@ export class ListSelectionImpl<T> implements ListSelection<T> {
this
.
_selectedItems
=
this
.
totalItems
;
}
unselect
(
item
:
T
):
void
{
if
(
!
this
.
isSelected
(
item
))
{
unselect
(
item
ToUnselect
:
T
):
void
{
if
(
!
this
.
isSelected
(
item
ToUnselect
))
{
throw
new
Error
(
'
Cannot unselect an item that is not selected
'
);
}
this
.
_selectedItems
=
this
.
_selectedItems
.
filter
((
e
)
=>
e
!==
item
);
this
.
_selectedItems
=
this
.
_selectedItems
.
filter
((
item
)
=>
item
!==
item
ToUnselect
);
}
isSelected
(
item
:
T
):
boolean
{
return
!!
this
.
_selectedItems
.
find
((
e
)
=>
e
===
item
);
isSelected
(
item
ToCheck
:
T
):
boolean
{
return
!!
this
.
_selectedItems
.
find
((
item
)
=>
item
===
item
ToCheck
);
}
get
selectedItems
():
T
[]
{
...
...
This diff is collapsed.
Click to expand it.
src/app/components/common/layouts/admin-layout/admin-layout.component.ts
View file @
cd602ec6
...
...
@@ -126,10 +126,10 @@ export class AdminLayoutComponent implements OnInit, AfterViewChecked {
// Allows for one-page-at-a-time scrolling in sidenav on Windows
if
(
window
.
navigator
.
platform
.
toLowerCase
()
===
'
win32
'
)
{
navigationHold
.
addEventListener
(
'
wheel
'
,
(
e
)
=>
{
navigationHold
.
addEventListener
(
'
wheel
'
,
(
e
vent
)
=>
{
// deltaY is 1 for page scrolling and 33.3 per line for regular scrolling; default is 100, or 3 lines at a time
if
(
e
.
deltaY
===
1
||
e
.
deltaY
===
-
1
)
{
navigationHold
.
scrollBy
(
0
,
e
.
deltaY
*
window
.
innerHeight
);
if
(
e
vent
.
deltaY
===
1
||
e
vent
.
deltaY
===
-
1
)
{
navigationHold
.
scrollBy
(
0
,
e
vent
.
deltaY
*
window
.
innerHeight
);
}
});
}
...
...
This diff is collapsed.
Click to expand it.
src/app/components/common/modal/modal.component.ts
View file @
cd602ec6
...
...
@@ -43,8 +43,8 @@ export class ModalComponent implements OnInit, OnDestroy {
document
.
body
.
appendChild
(
this
.
element
);
// close modal on background click
this
.
element
.
addEventListener
(
'
click
'
,
(
e
)
=>
{
if
((
e
.
target
as
HTMLElement
).
className
===
'
jw-modal
'
)
{
this
.
element
.
addEventListener
(
'
click
'
,
(
e
vent
)
=>
{
if
((
e
vent
.
target
as
HTMLElement
).
className
===
'
jw-modal
'
)
{
this
.
close
();
}
});
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/charts/components/view-chart-gauge/view-chart-gauge.component.ts
View file @
cd602ec6
...
...
@@ -76,13 +76,13 @@ export class ViewChartGaugeComponent /* extends DisplayObject */ implements Afte
.
attr
(
'
height
'
,
height
);
// Arc Group
const
g
=
svg
.
append
(
'
g
'
).
attr
(
'
transform
'
,
'
translate(
'
+
width
/
2
+
'
,
'
+
height
/
2
+
'
)
'
);
const
arcGroup
=
svg
.
append
(
'
g
'
).
attr
(
'
transform
'
,
'
translate(
'
+
width
/
2
+
'
,
'
+
height
/
2
+
'
)
'
);
// Text Group
const
g
t
=
svg
.
append
(
'
g
'
).
attr
(
'
class
'
,
'
text-group
'
);
const
t
extGroup
=
svg
.
append
(
'
g
'
).
attr
(
'
class
'
,
'
text-group
'
);
// Setup value text element
const
text
=
g
t
.
append
(
'
text
'
).
attr
(
'
id
'
,
'
text-value
'
);
const
text
=
t
extGroup
.
append
(
'
text
'
).
attr
(
'
id
'
,
'
text-value
'
);
if
(
!
text
.
node
())
{
// Avoid console errors if text.node isn't available yet.
return
;
...
...
@@ -96,7 +96,7 @@ export class ViewChartGaugeComponent /* extends DisplayObject */ implements Afte
.
attr
(
'
alignment-baseline
'
,
'
central
'
);
// Setup subtitle text element
const
subtext
=
g
t
.
append
(
'
text
'
).
attr
(
'
id
'
,
'
text-subtitle
'
);
const
subtext
=
t
extGroup
.
append
(
'
text
'
).
attr
(
'
id
'
,
'
text-subtitle
'
);
if
(
!
subtext
.
node
())
{
// Avoid console errors if text.node isn't available yet.
return
;
...
...
@@ -115,7 +115,7 @@ export class ViewChartGaugeComponent /* extends DisplayObject */ implements Afte
// Adjust group to compensate
const
isFirefox
:
boolean
=
navigator
.
userAgent
.
toLowerCase
().
includes
(
'
firefox
'
);
const
offsetY
=
isFirefox
?
10
:
0
;
const
bbox
=
g
t
.
node
().
getBBox
();
const
bbox
=
t
extGroup
.
node
().
getBBox
();
const
top
=
(
height
/
2
)
-
(
bbox
.
height
/
2
);
text
.
attr
(
'
x
'
,
width
/
2
)
.
attr
(
'
y
'
,
top
+
offsetY
);
...
...
@@ -124,13 +124,13 @@ export class ViewChartGaugeComponent /* extends DisplayObject */ implements Afte
.
attr
(
'
y
'
,
top
+
24
+
offsetY
);
// Arc background
g
.
append
(
'
path
'
)
arcGroup
.
append
(
'
path
'
)
.
datum
({
endAngle
:
this
.
doublePi
})
.
style
(
'
fill
'
,
'
var(--bg1)
'
)
.
attr
(
'
d
'
,
this
.
arc
);
// Arc foreground
g
.
append
(
'
path
'
)
arcGroup
.
append
(
'
path
'
)
.
datum
({
endAngle
:
0.127
*
this
.
doublePi
})
.
style
(
'
fill
'
,
'
var(--primary)
'
)
.
attr
(
'
class
'
,
'
value
'
)
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-dialog/entity-dialog.component.ts
View file @
cd602ec6
...
...
@@ -91,10 +91,10 @@ export class EntityDialogComponent implements OnInit {
this
.
loader
.
open
();
this
.
ws
.
call
(
this
.
conf
.
method_ws
,
[
this
.
formValue
]).
pipe
(
untilDestroyed
(
this
)).
subscribe
(
()
=>
{},
(
e
)
=>
{
(
e
rror
)
=>
{
this
.
loader
.
close
();
this
.
dialogRef
.
close
(
false
);
new
EntityUtils
().
handleWsError
(
this
,
e
);
new
EntityUtils
().
handleWsError
(
this
,
e
rror
);
},
()
=>
{
this
.
loader
.
close
();
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-form/classes/field-sets.ts
View file @
cd602ec6
...
...
@@ -37,7 +37,7 @@ export class FieldSets {
configs
():
FieldConfig
[]
{
return
this
.
list
()
.
reduce
((
configList
,
set
)
=>
configList
.
concat
(
set
.
config
),
[])
.
filter
((
c
)
=>
!!
c
);
.
filter
((
c
onfig
)
=>
!!
c
onfig
);
}
list
():
FieldSet
[]
{
...
...
@@ -51,7 +51,7 @@ export class FieldSets {
toggleSets
(
setClasses
:
string
[]
=
this
.
advancedSets
):
this
{
this
.
_fieldSets
.
filter
((
set
)
=>
setClasses
.
some
((
c
)
=>
c
===
set
.
class
))
.
filter
((
set
)
=>
setClasses
.
some
((
c
lassName
)
=>
className
===
set
.
class
))
.
forEach
((
set
)
=>
(
set
.
label
=
!
set
.
label
));
return
this
;
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-form/components/form-chip/form-chip.component.ts
View file @
cd602ec6
...
...
@@ -71,7 +71,7 @@ export class FormChipComponent implements Field, OnInit {
selected
(
event
:
MatAutocompleteSelectedEvent
):
void
{
if
(
this
.
config
.
selectOnly
)
{
if
(
this
.
chipLists
.
includes
(
event
.
option
.
viewValue
))
{
this
.
chipLists
=
this
.
chipLists
.
filter
((
e
)
=>
e
!==
event
.
option
.
viewValue
);
this
.
chipLists
=
this
.
chipLists
.
filter
((
chip
)
=>
chip
!==
event
.
option
.
viewValue
);
}
else
{
this
.
chipLists
=
[...
new
Set
([...
this
.
chipLists
,
event
.
option
.
viewValue
])];
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-form/components/form-scheduler/form-scheduler.component.ts
View file @
cd602ec6
...
...
@@ -250,15 +250,15 @@ export class FormSchedulerComponent implements Field, OnInit, AfterViewInit, Aft
return
this
.
_preset
;
}
set
preset
(
p
:
CronPreset
)
{
if
(
!
p
.
value
)
{
set
preset
(
p
reset
:
CronPreset
)
{
if
(
!
p
reset
.
value
)
{
this
.
crontab
=
'
0 0 * * *
'
;
this
.
convertPreset
(
'
0 0 * * *
'
);
this
.
_preset
=
this
.
customOption
;
}
else
{
this
.
crontab
=
p
.
value
;
this
.
convertPreset
(
p
.
value
);
this
.
_preset
=
p
;
this
.
crontab
=
p
reset
.
value
;
this
.
convertPreset
(
p
reset
.
value
);
this
.
_preset
=
p
reset
;
}
if
(
this
.
minDate
&&
this
.
maxDate
)
{
...
...
@@ -405,8 +405,8 @@ export class FormSchedulerComponent implements Field, OnInit, AfterViewInit, Aft
this
.
generateSchedule
();
}
private
getMinDate
(
d
:
Date
):
Date
{
const
dt
=
dateFns
.
addSeconds
(
d
,
1
);
private
getMinDate
(
d
ate
:
Date
):
Date
{
const
dt
=
dateFns
.
addSeconds
(
d
ate
,
1
);
const
now
=
this
.
zonedTime
;
const
thisMonth
=
dateFns
.
getMonth
(
now
);
const
thisYear
=
dateFns
.
getYear
(
now
);
...
...
@@ -517,8 +517,8 @@ export class FormSchedulerComponent implements Field, OnInit, AfterViewInit, Aft
parseCounter
++
;
}
}
}
catch
(
e
:
unknown
)
{
console
.
warn
(
e
);
}
catch
(
e
rror
:
unknown
)
{
console
.
warn
(
e
rror
);
break
;
}
}
...
...
@@ -541,8 +541,8 @@ export class FormSchedulerComponent implements Field, OnInit, AfterViewInit, Aft
try
{
const
obj
=
intervalDays
.
next
();
daySchedule
.
push
(
obj
.
value
);
}
catch
(
e
:
unknown
)
{
console
.
error
(
e
);
}
catch
(
e
rror
:
unknown
)
{
console
.
error
(
e
rror
);
break
;
}
}
...
...
@@ -588,23 +588,23 @@ export class FormSchedulerComponent implements Field, OnInit, AfterViewInit, Aft
return
cells
;
}
getAttribute
(
attr
:
string
,
node
:
HTMLElement
):
string
{
const
a
=
node
.
attributes
.
getNamedItem
(
attr
);
if
(
a
)
{
return
a
.
value
;
getAttribute
(
name
:
string
,
node
:
HTMLElement
):
string
{
const
a
ttribute
=
node
.
attributes
.
getNamedItem
(
name
);
if
(
a
ttribute
)
{
return
a
ttribute
.
value
;
}
}
setAttribute
(
attr
:
string
,
node
:
HTMLElement
,
value
:
string
):
void
{
const
a
=
document
.
createAttribute
(
attr
);
a
.
value
=
value
;
node
.
attributes
.
removeNamedItem
(
attr
);
node
.
attributes
.
setNamedItem
(
a
);
setAttribute
(
name
:
string
,
node
:
HTMLElement
,
value
:
string
):
void
{
const
a
ttribute
=
document
.
createAttribute
(
name
);
a
ttribute
.
value
=
value
;
node
.
attributes
.
removeNamedItem
(
name
);
node
.
attributes
.
setNamedItem
(
a
ttribute
);
}
private
checkSchedule
(
aria
?:
string
,
sched
?:
CronDate
[]):
boolean
{
private
checkSchedule
(
aria
?:
string
,
sched
ule
?:
CronDate
[]):
boolean
{
if
(
!
aria
)
{
return
;
}
if
(
!
sched
)
{
sched
=
this
.
generatedSchedule
;
}
if
(
!
sched
ule
)
{
sched
ule
=
this
.
generatedSchedule
;
}
const
cal
=
aria
.
split
(
'
'
);
// eg. May 06, 2018
const
cd
=
cal
[
1
].
split
(
'
,
'
);
...
...
@@ -616,8 +616,8 @@ export class FormSchedulerComponent implements Field, OnInit, AfterViewInit, Aft
}
else
{
calDay
=
cd
[
0
];
}
for
(
const
s
of
sched
)
{
const
schedule
=
s
.
toString
().
split
(
'
'
);
for
(
const
date
of
sched
ule
)
{
const
schedule
=
date
.
toString
().
split
(
'
'
);
if
(
schedule
[
1
]
===
calMonth
&&
schedule
[
2
]
===
calDay
&&
schedule
[
3
]
===
calYear
)
{
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-form/services/entity-form.service.ts
View file @
cd602ec6
...
...
@@ -129,11 +129,11 @@ export class EntityFormService {
}
return
this
.
ws
.
call
(
'
filesystem.listdir
'
,
[
node
.
data
.
name
,
typeFilter
,
{
order_by
:
[
'
name
'
],
limit
:
1000
}]).
toPromise
().
then
((
r
es
)
=>
{
r
es
=
_
.
sortBy
(
r
es
,
(
o
)
=>
o
.
name
.
toLowerCase
());
{
order_by
:
[
'
name
'
],
limit
:
1000
}]).
toPromise
().
then
((
fil
es
)
=>
{
fil
es
=
_
.
sortBy
(
fil
es
,
(
file
)
=>
file
.
name
.
toLowerCase
());
const
children
:
ListdirChild
[]
=
[];
r
es
.
forEach
((
file
)
=>
{
fil
es
.
forEach
((
file
)
=>
{
if
(
file
.
type
===
FileType
.
Symlink
||
!
file
.
hasOwnProperty
(
'
name
'
))
{
return
;
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-table/entity-table-actions/entity-table-actions.component.html
View file @
cd602ec6
...
...
@@ -27,7 +27,7 @@
[matMenuTriggerFor]=
"appMenu"
[style.cursor]=
"'pointer'"
[style.font-size]=
"'24px'"
(click)=
"noProp
o
gate($event)"
>
(click)=
"noProp
a
gate($event)"
>
</mat-icon>
<!-- Standard Material Icon Set -->
...
...
@@ -39,7 +39,7 @@
id=
"{{row[entity?.conf?.rowIdentifier || 'name']}}_{{action}}_button"
[matMenuTriggerFor]=
"appMenu"
[style.cursor]=
"'pointer'"
(click)=
"noProp
o
gate($event)"
>
(click)=
"noProp
a
gate($event)"
>
{{icon_name}}
</mat-icon>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-table/entity-table-actions/entity-table-actions.component.ts
View file @
cd602ec6
...
...
@@ -54,8 +54,8 @@ export class EntityTableActionsComponent implements OnInit, OnChanges {
this
.
actions
=
this
.
entity
.
getActions
(
this
.
row
);
}
noProp
o
gate
(
e
:
MouseEvent
):
void
{
e
.
stopPropagation
();
noProp
a
gate
(
e
vent
:
MouseEvent
):
void
{
e
vent
.
stopPropagation
();
}
get
singleAction
():
EntityTableAction
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/entity-table/entity-table.component.ts
View file @
cd602ec6
...
...
@@ -802,7 +802,7 @@ export class EntityTableComponent<Row = any> implements OnInit, AfterViewInit, A
if
(
this
.
conf
.
rowValue
)
{
try
{
return
this
.
conf
.
rowValue
(
row
,
attr
);
}
catch
(
e
:
unknown
)
{
}
catch
(
e
rror
:
unknown
)
{
return
row
[
attr
];
}
}
...
...
@@ -1046,14 +1046,14 @@ export class EntityTableComponent<Row = any> implements OnInit, AfterViewInit, A
}
// Next section operates the checkboxes to show/hide columns
toggle
(
col
:
EntityTableColumn
):
void
{
const
isChecked
=
this
.
isChecked
(
col
);
toggle
(
col
umnToToggle
:
EntityTableColumn
):
void
{
const
isChecked
=
this
.
isChecked
(
col
umnToToggle
);
this
.
anythingClicked
=
true
;
if
(
isChecked
)
{
this
.
conf
.
columns
=
this
.
conf
.
columns
.
filter
((
c
)
=>
c
.
name
!==
col
.
name
);
this
.
conf
.
columns
=
this
.
conf
.
columns
.
filter
((
c
olumn
)
=>
c
olumn
.
name
!==
col
umnToToggle
.
name
);
}
else
{
this
.
conf
.
columns
=
[...
this
.
conf
.
columns
,
col
];
this
.
conf
.
columns
=
[...
this
.
conf
.
columns
,
col
umnToToggle
];
}
this
.
selectColumnsToShowOrHide
();
this
.
changeDetectorRef
.
detectChanges
();
...
...
@@ -1095,8 +1095,8 @@ export class EntityTableComponent<Row = any> implements OnInit, AfterViewInit, A
}
}
isChecked
(
col
:
EntityTableColumn
):
boolean
{
return
this
.
conf
.
columns
.
find
((
c
)
=>
c
.
name
===
col
.
name
)
!==
undefined
;
isChecked
(
col
umnToTest
:
EntityTableColumn
):
boolean
{
return
this
.
conf
.
columns
.
find
((
c
olumn
)
=>
c
olumn
.
name
===
col
umnToTest
.
name
)
!==
undefined
;
}
// Toggle between all/none cols selected
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/entity/utils.ts
View file @
cd602ec6
...
...
@@ -170,8 +170,8 @@ export class EntityUtils {
}
}
isObject
=
(
a
:
unknown
):
a
is
Record
<
string
,
unknown
>
=>
{
return
(
!!
a
)
&&
(
a
.
constructor
===
Object
);
isObject
=
(
something
:
unknown
):
something
is
Record
<
string
,
unknown
>
=>
{
return
(
!!
something
)
&&
(
something
.
constructor
===
Object
);
};
flattenData
(
data
:
DataBeforeFlattening
,
level
=
0
,
parent
?:
{
id
:
string
|
number
}):
FlattenedData
[]
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/ix-forms/components/ix-input/ix-input.component.ts
View file @
cd602ec6
...
...
@@ -99,8 +99,8 @@ export class IxInputComponent implements ControlValueAccessor {
return
this
.
invalid
||
(
this
.
value
&&
this
.
value
.
toString
().
length
>
0
);
}
resetInput
(
e
:
HTMLInputElement
):
void
{
e
.
value
=
''
;
resetInput
(
input
:
HTMLInputElement
):
void
{
input
.
value
=
''
;
this
.
invalid
=
false
;
this
.
value
=
''
;
this
.
formatted
=
''
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/ix-forms/components/ix-slide-in/ix-slide-in.component.ts
View file @
cd602ec6
...
...
@@ -53,8 +53,8 @@ export class IxSlideInComponent implements OnInit, OnDestroy {
document
.
body
.
appendChild
(
this
.
element
);
// close modal on background click
this
.
element
.
addEventListener
(
'
click
'
,
(
e
)
=>
{
if
((
e
.
target
as
HTMLElement
).
className
===
'
ix-slide-in
'
)
{
this
.
element
.
addEventListener
(
'
click
'
,
(
e
vent
)
=>
{
if
((
e
vent
.
target
as
HTMLElement
).
className
===
'
ix-slide-in
'
)
{
this
.
close
();
}
});
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/terminal/components/terminal/terminal.component.ts
View file @
cd602ec6
...
...
@@ -182,8 +182,8 @@ export class TerminalComponent implements OnInit, OnDestroy {
font
.
load
().
then
(()
=>
{
this
.
xterm
.
open
(
this
.
container
.
nativeElement
);
this
.
fitAddon
.
fit
();
},
(
e
)
=>
{
console
.
error
(
'
Font is not available
'
,
e
);
},
(
e
rror
)
=>
{
console
.
error
(
'
Font is not available
'
,
e
rror
);
});
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/terminal/xterm-attach-addon.ts
View file @
cd602ec6
...
...
@@ -32,8 +32,8 @@ export class XtermAttachAddon implements ITerminalAddon {
}
dispose
():
void
{
for
(
const
d
of
this
.
disposables
)
{
d
.
dispose
();
for
(
const
d
isposable
of
this
.
disposables
)
{
d
isposable
.
dispose
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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
Menu
Projects
Groups
Snippets
Help