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
854d5e62
Commit
854d5e62
authored
Oct 05, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add download use manual
parent
e2f99fc4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
1 deletion
+27
-1
app.component.html
src/app/app.component.html
+5
-0
app.component.scss
src/app/app.component.scss
+5
-0
app.component.ts
src/app/app.component.ts
+15
-1
app.module.ts
src/app/app.module.ts
+2
-0
GuideMakerWeb_v2.0.pdf
src/assets/GuideMakerWeb_v2.0.pdf
+0
-0
No files found.
src/app/app.component.html
View file @
854d5e62
...
@@ -151,6 +151,11 @@
...
@@ -151,6 +151,11 @@
matTooltipPosition=
"above"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
><mat-icon
fontIcon=
"upload-file"
></mat-icon></button>
matTooltipPosition=
"above"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
><mat-icon
fontIcon=
"upload-file"
></mat-icon></button>
<input
type=
"file"
#
fileInput
style=
"display: none"
(
change
)="
onFileSelected
($
event
)"
>
<input
type=
"file"
#
fileInput
style=
"display: none"
(
change
)="
onFileSelected
($
event
)"
>
</div>
</div>
<div
class=
"container-settings container-settings-secondline"
>
<button
mat-mini-fab
color=
"white"
(
click
)="
downloadManual
()"
matTooltip=
"Télécharger le manuel d'utilisation."
matTooltipPosition=
"above"
[
matTooltipDisabled
]="!
tooltipService
.
activatedTooltips
"
><mat-icon
fontIcon=
"menu_book"
></mat-icon></button>
</div>
<div
class=
"container-zoom"
>
<div
class=
"container-zoom"
>
<button
mat-mini-fab
color=
"white"
(
click
)="
zoomIn
()"
<button
mat-mini-fab
color=
"white"
(
click
)="
zoomIn
()"
matTooltip=
"Zoomer le scénario."
matTooltip=
"Zoomer le scénario."
...
...
src/app/app.component.scss
View file @
854d5e62
...
@@ -195,6 +195,11 @@
...
@@ -195,6 +195,11 @@
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
}
}
&
-secondline
{
width
:
50px
;
top
:
75px
;
}
}
}
&
-zoom
{
&
-zoom
{
...
...
src/app/app.component.ts
View file @
854d5e62
import
{
ChangeDetectorRef
,
Component
,
ElementRef
,
HostListener
,
ViewChild
}
from
'@angular/core'
;
import
{
ChangeDetectorRef
,
Component
,
ElementRef
,
HostListener
,
ViewChild
}
from
'@angular/core'
;
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
Mission
}
from
'./class/mission/mission'
;
import
{
Mission
}
from
'./class/mission/mission'
;
import
{
Scenario
}
from
'./class/scenario/scenario'
;
import
{
Scenario
}
from
'./class/scenario/scenario'
;
import
{
Step
}
from
'./class/step/step'
;
import
{
Step
}
from
'./class/step/step'
;
...
@@ -44,7 +45,7 @@ export class AppComponent {
...
@@ -44,7 +45,7 @@ export class AppComponent {
scenario
:
Scenario
=
new
Scenario
();
scenario
:
Scenario
=
new
Scenario
();
@
ViewChild
(
'fileInput'
)
fileInput
:
any
;
@
ViewChild
(
'fileInput'
)
fileInput
:
any
;
constructor
(
private
cdr
:
ChangeDetectorRef
,
protected
pieceDetailsService
:
PieceDetailsService
,
protected
tooltipService
:
TooltipService
,
constructor
(
private
cdr
:
ChangeDetectorRef
,
pr
ivate
http
:
HttpClient
,
pr
otected
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
,
private
_snackBar
:
MatSnackBar
)
{
private
_snackBar
:
MatSnackBar
)
{
pieceDetailsService
.
piece
=
this
.
scenario
;
pieceDetailsService
.
piece
=
this
.
scenario
;
...
@@ -61,6 +62,19 @@ export class AppComponent {
...
@@ -61,6 +62,19 @@ export class AppComponent {
return
message
;
return
message
;
}
}
downloadManual
():
void
{
const
manualUrl
=
'/assets/GuideMakerWeb_v2.0.pdf'
;
this
.
http
.
get
(
manualUrl
,
{
responseType
:
'blob'
}).
subscribe
((
blob
:
Blob
)
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
blob
);
const
a
=
document
.
createElement
(
'a'
);
a
.
href
=
url
;
a
.
download
=
'GuideMakerWeb_v2.0.pdf'
;
document
.
body
.
appendChild
(
a
);
a
.
click
();
window
.
URL
.
revokeObjectURL
(
url
);
});
}
downloadFile
():
void
{
downloadFile
():
void
{
let
fileName
:
string
=
this
.
scenario
.
projectName
;
let
fileName
:
string
=
this
.
scenario
.
projectName
;
const
dialogRef
=
this
.
dialog
.
open
(
SaveDialogComponent
,
{
const
dialogRef
=
this
.
dialog
.
open
(
SaveDialogComponent
,
{
...
...
src/app/app.module.ts
View file @
854d5e62
...
@@ -42,6 +42,7 @@ import { SaveDialogComponent } from './components/dialogs/save-dialog/save-dialo
...
@@ -42,6 +42,7 @@ import { SaveDialogComponent } from './components/dialogs/save-dialog/save-dialo
import
{
IdentifierSnackbarComponent
}
from
'./components/snackbars/identifier-snackbar/identifier-snackbar.component'
;
import
{
IdentifierSnackbarComponent
}
from
'./components/snackbars/identifier-snackbar/identifier-snackbar.component'
;
import
{
LoadingsucessSnackbarComponent
}
from
'./components/snackbars/loadingsucess-snackbar/loadingsucess-snackbar.component'
;
import
{
LoadingsucessSnackbarComponent
}
from
'./components/snackbars/loadingsucess-snackbar/loadingsucess-snackbar.component'
;
import
{
LoadingfailSnackbarComponent
}
from
'./components/snackbars/loadingfail-snackbar/loadingfail-snackbar.component'
;
import
{
LoadingfailSnackbarComponent
}
from
'./components/snackbars/loadingfail-snackbar/loadingfail-snackbar.component'
;
import
{
HttpClientModule
}
from
'@angular/common/http'
;
@
NgModule
({
@
NgModule
({
declarations
:
[
declarations
:
[
...
@@ -80,6 +81,7 @@ import { LoadingfailSnackbarComponent } from './components/snackbars/loadingfail
...
@@ -80,6 +81,7 @@ import { LoadingfailSnackbarComponent } from './components/snackbars/loadingfail
imports
:
[
imports
:
[
BrowserModule
,
BrowserModule
,
AppRoutingModule
,
AppRoutingModule
,
HttpClientModule
,
FormsModule
,
FormsModule
,
BrowserAnimationsModule
,
BrowserAnimationsModule
,
MatIconModule
,
MatIconModule
,
...
...
src/assets/GuideMakerWeb_v2.0.pdf
0 → 100644
View file @
854d5e62
File added
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