Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
3398081a
Commit
3398081a
authored
4 years ago
by
Alex ORLUC
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #13671 TIME 0:50 add welcome installer
parent
3c93d8d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/frontend/app/installer/welcome/welcome.component.html
+25
-37
25 additions, 37 deletions
src/frontend/app/installer/welcome/welcome.component.html
src/frontend/app/installer/welcome/welcome.component.ts
+80
-10
80 additions, 10 deletions
src/frontend/app/installer/welcome/welcome.component.ts
with
105 additions
and
47 deletions
src/frontend/app/installer/welcome/welcome.component.html
+
25
−
37
View file @
3398081a
<div
class=
"stepContent"
>
<div
class=
"stepContent"
>
<h2
class=
"stepContentTitle"
>
Bienvenue sur Maarch Courrier 20.10
!
</h2>
<h2
class=
"stepContentTitle"
>
{{lang.welcomeApp | scan : [appVersion]}}
!
</h2>
<div
style=
"text-align: center;"
>
<div
style=
"text-align: center;"
>
<mat-icon
class=
"maarchLogoFull"
svgIcon=
"maarchLogoFull"
></mat-icon>
<mat-icon
class=
"maarchLogoFull"
svgIcon=
"maarchLogoFull"
></mat-icon>
</div>
</div>
<mat-form-field
appearance=
"outline"
floatLabel=
"never"
>
<form
[formGroup]=
"stepFormGroup"
style=
"width: 850px;margin: auto;"
>
<mat-label>
Choisissez la langue de l'application :
</mat-label>
<mat-form-field
appearance=
"outline"
floatLabel=
"never"
>
<mat-select>
<mat-label>
{{lang.chooseAppLanguage}} :
</mat-label>
<mat-option
*ngFor=
"let lang of langs"
[value]=
"lang"
>
<mat-select
formControlName=
"lang"
required
>
{{lang}}
<mat-option
*ngFor=
"let language of langs"
[value]=
"language"
>
</mat-option>
{{lang[language + 'Full']}}
</mat-select>
</mat-option>
</mat-form-field>
</mat-select>
</mat-form-field>
</form>
<mat-divider></mat-divider>
<mat-divider></mat-divider>
<p>
<mat-list>
Cet assistant va vous guider pas à pas dans l'installation de Maarch Courrier notamment :
<div
mat-subheader
>
{{lang.installDescription}} :
</p>
</div>
<ul>
<mat-list-item
*ngFor=
"let step of steps"
>
<li>
<mat-icon
mat-list-icon
color=
"primary"
[class]=
"step.icon"
></mat-icon>
Contrôle des pré-requis
<div
mat-line
>
{{step.desc}}
</div>
</li>
</mat-list-item>
<li>
</mat-list>
Création de la base de données
</li>
<li>
Import d'un jeu de données
</li>
<li>
Création des docservers
</li>
<li>
Paramétrage des batchs
</li>
</ul>
<mat-divider></mat-divider>
<mat-divider></mat-divider>
<p>
<p>
Pour tout renseignements, rendez vous sur
:
{{lang.externalInfoSite}}
:
</p>
</p>
<a
mat-raised-button
href=
"https://community.maarch.org/"
target=
"_blank"
>
<a
mat-raised-button
color=
"primary"
href=
"https://community.maarch.org/"
target=
"_blank"
>
community.maarch.org
community.maarch.org
</a>
</a>
ou
{{lang.or}}
<a
mat-raised-button
href=
"http://www.maarch.com"
target=
"_blank"
>
<a
mat-raised-button
color=
"primary"
href=
"http://www.maarch.com"
target=
"_blank"
>
www.maarch.com
www.maarch.com
</a>
</a>
<p
style=
"font-style: italic;padding-top: 30px;text-align: right;"
>
<p
style=
"font-style: italic;padding-top: 30px;text-align: right;"
[innerHTML]=
"lang.maarchLicenceInstall"
></p>
<b>
Maarch Courrier
</b>
est sous
<a
href=
"https://www.gnu.org/licenses/gpl-3.0.html"
target=
"_blank"
class=
"link"
>
Licence publique générale GNU
</a>
</div>
</p>
\ No newline at end of file
</div>
This diff is collapsed.
Click to expand it.
src/frontend/app/installer/welcome/welcome.component.ts
+
80
−
10
View file @
3398081a
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
HttpClient
}
from
'
@angular/common/http
'
;
import
{
NotificationService
}
from
'
../../../service/notification/notification.service
'
;
import
{
LANG
}
from
'
../../translate.component
'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'
@angular/forms
'
;
import
{
tap
}
from
'
rxjs/internal/operators/tap
'
;
import
{
of
}
from
'
rxjs/internal/observable/of
'
;
import
{
catchError
}
from
'
rxjs/internal/operators/catchError
'
;
import
{
environment
}
from
'
../../../environments/environment
'
;
@
Component
({
@
Component
({
selector
:
'
app-welcome
'
,
selector
:
'
app-welcome
'
,
...
@@ -7,14 +16,69 @@ import { Component, OnInit } from '@angular/core';
...
@@ -7,14 +16,69 @@ import { Component, OnInit } from '@angular/core';
})
})
export
class
WelcomeComponent
implements
OnInit
{
export
class
WelcomeComponent
implements
OnInit
{
langs
:
string
[]
=
[
lang
:
any
=
LANG
;
'
fr
'
,
'
en
'
stepFormGroup
:
FormGroup
;
langs
:
string
[]
=
[];
appVersion
:
string
=
environment
.
VERSION
.
split
(
'
.
'
)[
0
]
+
'
.
'
+
environment
.
VERSION
.
split
(
'
.
'
)[
1
];
steps
:
any
[]
=
[
{
icon
:
'
fas fa-check-square
'
,
desc
:
this
.
lang
.
prerequisiteCheck
},
{
icon
:
'
fa fa-database
'
,
desc
:
this
.
lang
.
databaseCreation
},
{
icon
:
'
fa fa-database
'
,
desc
:
this
.
lang
.
dataSampleCreation
},
{
icon
:
'
fa fa-hdd
'
,
desc
:
this
.
lang
.
docserverCreation
},
{
icon
:
'
fas fa-tools
'
,
desc
:
this
.
lang
.
stepCustomizationActionDesc
},
{
icon
:
'
fa fa-user
'
,
desc
:
this
.
lang
.
adminUserCreation
},
];
];
constructor
()
{
}
constructor
(
public
http
:
HttpClient
,
private
notify
:
NotificationService
,
private
_formBuilder
:
FormBuilder
)
{
}
ngOnInit
():
void
{
}
ngOnInit
():
void
{
this
.
stepFormGroup
=
this
.
_formBuilder
.
group
({
lang
:
[
'
fr
'
,
Validators
.
required
]
});
this
.
getLang
();
}
getLang
()
{
this
.
langs
=
[
'
fr
'
,
'
en
'
,
];
/*this.http.get('../rest/dev/lang').pipe(
tap((data: any) => {
}),
catchError((err: any) => {
this.notify.handleSoftErrors(err);
return of(false);
})
).subscribe();*/
}
initStep
()
{
initStep
()
{
return
false
;
return
false
;
...
@@ -22,12 +86,18 @@ export class WelcomeComponent implements OnInit {
...
@@ -22,12 +86,18 @@ export class WelcomeComponent implements OnInit {
getInfoToInstall
():
any
[]
{
getInfoToInstall
():
any
[]
{
return
[];
return
[];
/*return {
/*return [{
body : {
idStep : 'lang',
lang: this.selectedLang,
body: {
lang: this.stepFormGroup.controls['lang'].value,
},
route : {
method : 'POST',
url : '../rest/installer/lang'
},
},
route : '/installer/lang'
description: this.lang.langSetting,
};*/
installPriority: 3
}];*/
}
}
}
}
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