Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
35b63f2b
Commit
35b63f2b
authored
Jan 30, 2024
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fold/deploy sidebar
parent
6b235830
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
11 deletions
+71
-11
app.component.html
src/app/app.component.html
+10
-5
app.component.scss
src/app/app.component.scss
+56
-6
app.component.ts
src/app/app.component.ts
+1
-0
en.json
src/assets/lang/en.json
+2
-0
fr.json
src/assets/lang/fr.json
+2
-0
No files found.
src/app/app.component.html
View file @
35b63f2b
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"container-appDragScroll"
appDragScroll
appMouseWheelZoom
[
scenario
]="
scenario
"
>
<div
class=
"container-appDragScroll"
[
ngClass
]="
siderFolded
?
'
siderFolded
'
:
''"
appDragScroll
appMouseWheelZoom
[
scenario
]="
scenario
"
>
<div
class=
"container-appMouseWheelZoom"
>
<div
class=
"container-appMouseWheelZoom"
>
<div
class=
"container-scenario-main"
>
<div
class=
"container-scenario-main"
>
...
@@ -116,7 +116,12 @@
...
@@ -116,7 +116,12 @@
</div>
</div>
</div>
</div>
<div
class=
"container-sider"
>
<div
class=
"container-sider"
[
ngClass
]="
siderFolded
?
'
siderFolded
'
:
''"
>
<div
class=
"container-sider-deploy"
(
click
)="
siderFolded =
!siderFolded;
minimapService
.
reset
()"
[
matTooltip
]="
siderFolded
?
translate
.
instant
('
siderDeploy_tooltip
')
:
translate
.
instant
('
siderFold_tooltip
')"
matTooltipPosition=
"left"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
>
<mat-icon
fontIcon=
"arrow_forward"
[
ngClass
]="
siderFolded
?
'
siderFolded
'
:
''"
></mat-icon>
</div>
<div
class=
"container-sider-title"
>
{{getSiderTitle()}}
</div>
<div
class=
"container-sider-title"
>
{{getSiderTitle()}}
</div>
<div
class=
"container-sider-elements"
>
<div
class=
"container-sider-elements"
>
<app-rewards
class=
"container-sider-elements-element"
[
task
]="
pieceDetailsService
.
pieceAsTask
()"
[
role
]="
pieceDetailsService
.
parentAsRole
()"
*
ngIf=
"pieceDetailsService.pieceIsTask()"
[
scenario
]="
scenario
"
></app-rewards>
<app-rewards
class=
"container-sider-elements-element"
[
task
]="
pieceDetailsService
.
pieceAsTask
()"
[
role
]="
pieceDetailsService
.
parentAsRole
()"
*
ngIf=
"pieceDetailsService.pieceIsTask()"
[
scenario
]="
scenario
"
></app-rewards>
...
@@ -130,7 +135,7 @@
...
@@ -130,7 +135,7 @@
</div>
</div>
<div
class=
"container-settings-button"
>
<div
class=
"container-settings-button"
[
ngClass
]="
siderFolded
?
'
siderFolded
'
:
''"
>
<button
mat-mini-fab
color=
"white"
[
matMenuTriggerFor
]="
settingsMenu
"
<button
mat-mini-fab
color=
"white"
[
matMenuTriggerFor
]="
settingsMenu
"
[
matTooltip
]="
translate
.
instant
('
settingsMenu_tooltip
')"
[
matTooltip
]="
translate
.
instant
('
settingsMenu_tooltip
')"
matTooltipPosition=
"left"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
>
matTooltipPosition=
"left"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
>
...
@@ -199,8 +204,8 @@
...
@@ -199,8 +204,8 @@
</mat-menu>
</mat-menu>
</div>
</div>
<div
class=
"container-minimap"
></div>
<div
class=
"container-minimap"
[
ngClass
]="
siderFolded
?
'
siderFolded
'
:
''"
></div>
<div
class=
"container-zoom"
>
<div
class=
"container-zoom"
[
ngClass
]="
siderFolded
?
'
siderFolded
'
:
''"
>
<button
mat-mini-fab
color=
"white"
(
click
)="
zoomIn
()"
<button
mat-mini-fab
color=
"white"
(
click
)="
zoomIn
()"
[
matTooltip
]="
translate
.
instant
('
zoomIn_tooltip
')"
[
matTooltip
]="
translate
.
instant
('
zoomIn_tooltip
')"
matTooltipPosition=
"before"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
><mat-icon
fontIcon=
"zoom_in"
></mat-icon></button>
matTooltipPosition=
"before"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
><mat-icon
fontIcon=
"zoom_in"
></mat-icon></button>
...
...
src/app/app.component.scss
View file @
35b63f2b
...
@@ -17,6 +17,11 @@
...
@@ -17,6 +17,11 @@
-ms-overflow-style
:
none
;
-ms-overflow-style
:
none
;
scrollbar-width
:
none
;
scrollbar-width
:
none
;
user-select
:
none
;
user-select
:
none
;
transition
:
width
0
.5s
ease
;
}
&
-appDragScroll
.siderFolded
{
width
:
100%
;
}
}
&
-appDragScroll
:
:-
webkit-scrollbar
{
&
-appDragScroll
:
:-
webkit-scrollbar
{
...
@@ -136,6 +141,10 @@
...
@@ -136,6 +141,10 @@
}
}
}
}
&
-sider
.siderFolded
{
right
:
-321px
;
}
&
-sider
{
&
-sider
{
height
:
100%
;
height
:
100%
;
width
:
340px
;
width
:
340px
;
...
@@ -145,9 +154,33 @@
...
@@ -145,9 +154,33 @@
top
:
0
;
top
:
0
;
z-index
:
5
;
z-index
:
5
;
box-shadow
:
-6px
0px
16px
rgba
(
0
,
0
,
0
,
0
.3
);
box-shadow
:
-6px
0px
16px
rgba
(
0
,
0
,
0
,
0
.3
);
transition
:
right
0
.5s
ease
;
&
-deploy
{
position
:
absolute
;
z-index
:
10
;
width
:
45px
;
height
:
45px
;
left
:
-20px
;
display
:
flex
;
justify-content
:
center
;
border-radius
:
50%
;
background-color
:
#e3e3e3
;
box-shadow
:
-13px
4px
15px
rgba
(
0
,
0
,
0
,
0
.3
);
cursor
:
pointer
;
mat-icon
{
margin-top
:
10px
;
transition
:
transform
0
.5s
ease
;
}
mat-icon
.siderFolded
{
transform
:
rotateZ
(
180deg
);
}
}
&
-title
{
&
-title
{
height
:
5%
;
height
:
45px
;
border-bottom
:
solid
#8f8f8f
0
.5px
;
border-bottom
:
solid
#8f8f8f
0
.5px
;
font-size
:
20px
;
font-size
:
20px
;
width
:
340px
;
width
:
340px
;
...
@@ -177,16 +210,23 @@
...
@@ -177,16 +210,23 @@
}
}
&
-settings
{
&
-settings
{
&
-button
{
&
-button
{
position
:
fixed
;
position
:
fixed
;
right
:
360px
;
right
:
375px
;
top
:
0
;
z-index
:
5
;
z-index
:
5
;
transition
:
right
0
.5s
ease
;
button
{
button
{
width
:
50
px
;
width
:
45
px
;
height
:
50
px
;
height
:
45
px
;
}
}
}
}
&
-button
.siderFolded
{
right
:
55px
;
}
}
}
&
-zoom
{
&
-zoom
{
...
@@ -198,10 +238,11 @@
...
@@ -198,10 +238,11 @@
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
justify-content
:
space-between
;
z-index
:
5
;
z-index
:
5
;
transition
:
right
0
.5s
ease
;
button
{
button
{
width
:
50
px
;
width
:
45
px
;
height
:
50
px
;
height
:
45
px
;
mat-icon
{
mat-icon
{
transform
:
scale
(
1
.2
);
transform
:
scale
(
1
.2
);
...
@@ -209,6 +250,10 @@
...
@@ -209,6 +250,10 @@
}
}
}
}
&
-zoom
.siderFolded
{
right
:
260px
;
}
&
-minimap
{
&
-minimap
{
position
:
fixed
;
position
:
fixed
;
height
:
200px
;
height
:
200px
;
...
@@ -221,6 +266,11 @@
...
@@ -221,6 +266,11 @@
bottom
:
25px
;
bottom
:
25px
;
right
:
360px
;
right
:
360px
;
overflow
:
scroll
;
overflow
:
scroll
;
transition
:
right
0
.5s
ease
;
}
&
-minimap
.siderFolded
{
right
:
40px
;
}
}
&
-tutorial
{
&
-tutorial
{
...
...
src/app/app.component.ts
View file @
35b63f2b
...
@@ -53,6 +53,7 @@ export class AppComponent {
...
@@ -53,6 +53,7 @@ export class AppComponent {
scenario
:
Scenario
=
new
Scenario
();
scenario
:
Scenario
=
new
Scenario
();
@
ViewChild
(
'fileInput'
)
fileInput
:
any
;
@
ViewChild
(
'fileInput'
)
fileInput
:
any
;
selectedLang
:
string
=
'en'
;
selectedLang
:
string
=
'en'
;
siderFolded
:
boolean
=
false
;
constructor
(
private
cdr
:
ChangeDetectorRef
,
private
http
:
HttpClient
,
protected
pieceDetailsService
:
PieceDetailsService
,
protected
tooltipService
:
TooltipService
,
constructor
(
private
cdr
:
ChangeDetectorRef
,
private
http
:
HttpClient
,
protected
pieceDetailsService
:
PieceDetailsService
,
protected
tooltipService
:
TooltipService
,
private
elementRef
:
ElementRef
,
private
zoomService
:
ZoomService
,
private
dialog
:
MatDialog
,
private
titleService
:
Title
,
private
elementRef
:
ElementRef
,
private
zoomService
:
ZoomService
,
private
dialog
:
MatDialog
,
private
titleService
:
Title
,
...
...
src/assets/lang/en.json
View file @
35b63f2b
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
"lang_tooltip"
:
"Change the language."
,
"lang_tooltip"
:
"Change the language."
,
"legal_label"
:
"Credits & Legal notices"
,
"legal_label"
:
"Credits & Legal notices"
,
"legal_tooltip"
:
"Consult credits and legal notices"
,
"legal_tooltip"
:
"Consult credits and legal notices"
,
"siderFold_tooltip"
:
"Fold sidebar"
,
"siderDeploy_tooltip"
:
"Deploy sidebar"
,
"snackbar_identifier"
:
"Attention, this identifier is already used in this Role."
,
"snackbar_identifier"
:
"Attention, this identifier is already used in this Role."
,
"snackbar_loading_fail"
:
"File upload failed."
,
"snackbar_loading_fail"
:
"File upload failed."
,
...
...
src/assets/lang/fr.json
View file @
35b63f2b
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
"lang_tooltip"
:
"Changer la langue."
,
"lang_tooltip"
:
"Changer la langue."
,
"legal_label"
:
"Crédits & Mentions légales"
,
"legal_label"
:
"Crédits & Mentions légales"
,
"legal_tooltip"
:
"Consulter les crédits et mentions légales"
,
"legal_tooltip"
:
"Consulter les crédits et mentions légales"
,
"siderFold_tooltip"
:
"Replier la barre latérale"
,
"siderDeploy_tooltip"
:
"Déplier la barre latérale"
,
"snackbar_identifier"
:
"Attention, cet identifiant est déjà utilisé dans ce Rôle"
,
"snackbar_identifier"
:
"Attention, cet identifiant est déjà utilisé dans ce Rôle"
,
"snackbar_loading_fail"
:
"Chargement du fichier échoué"
,
"snackbar_loading_fail"
:
"Chargement du fichier échoué"
,
...
...
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