forked from vergnet/application-amicale
Added update notes
This commit is contained in:
parent
41abbfb03f
commit
4228a5555d
4 changed files with 65 additions and 20 deletions
|
@ -85,15 +85,19 @@ export default class CustomIntroSlider extends React.Component<Props> {
|
||||||
colors: ['#37c13e', '#1a5a1d'],
|
colors: ['#37c13e', '#1a5a1d'],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
this.updateSlides = [
|
this.updateSlides = [];
|
||||||
{
|
for (let i = 0; i < Update.slidesNumber; i++) {
|
||||||
key: '1',
|
this.updateSlides.push(
|
||||||
title: Update.getInstance().title,
|
{
|
||||||
text: Update.getInstance().description,
|
key: i.toString(),
|
||||||
icon: Update.icon,
|
title: Update.getInstance().titleList[i],
|
||||||
colors: ['#e01928', '#be1522'],
|
text: Update.getInstance().descriptionList[i],
|
||||||
},
|
icon: Update.iconList[i],
|
||||||
];
|
colors: Update.colorsList[i],
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
this.aprilFoolsSlides = [
|
this.aprilFoolsSlides = [
|
||||||
{
|
{
|
||||||
key: '1',
|
key: '1',
|
||||||
|
|
|
@ -14,21 +14,38 @@ import i18n from "i18n-js";
|
||||||
export default class Update {
|
export default class Update {
|
||||||
|
|
||||||
// Increment the number to show the update slide
|
// Increment the number to show the update slide
|
||||||
static number = 5;
|
static number = 6;
|
||||||
// Change the icon to be displayed on the update slide
|
// Change the number of slides to display
|
||||||
static icon = 'surround-sound-2-0';
|
static slidesNumber = 4;
|
||||||
|
// Change the icons to be displayed on the update slide
|
||||||
|
static iconList = [
|
||||||
|
'star',
|
||||||
|
'clock',
|
||||||
|
'qrcode-scan',
|
||||||
|
'account',
|
||||||
|
];
|
||||||
|
static colorsList = [
|
||||||
|
['#e01928', '#be1522'],
|
||||||
|
['#7c33ec', '#5e11d1'],
|
||||||
|
['#337aec', '#114ed1'],
|
||||||
|
['#e01928', '#be1522'],
|
||||||
|
]
|
||||||
|
|
||||||
static instance: Update | null = null;
|
static instance: Update | null = null;
|
||||||
|
|
||||||
title: string;
|
titleList: Array<string>;
|
||||||
description: string;
|
descriptionList: Array<string>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init translations
|
* Init translations
|
||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
this.title = i18n.t('intro.updateSlide.title');
|
this.titleList = [];
|
||||||
this.description = i18n.t('intro.updateSlide.text');
|
this.descriptionList = [];
|
||||||
|
for (let i = 0; i < Update.slidesNumber; i++) {
|
||||||
|
this.titleList.push(i18n.t('intro.updateSlide'+ i + '.title'))
|
||||||
|
this.descriptionList.push(i18n.t('intro.updateSlide'+ i + '.text'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,9 +56,21 @@
|
||||||
"title": "More to come...",
|
"title": "More to come...",
|
||||||
"text": "New features are coming soon, do not hesitate to give us feedback to improve the app"
|
"text": "New features are coming soon, do not hesitate to give us feedback to improve the app"
|
||||||
},
|
},
|
||||||
"updateSlide": {
|
"updateSlide0": {
|
||||||
"title": "New in this update!",
|
"title": "New in this update!",
|
||||||
"text": "The app got a new UI ! Faster, prettier and more modern, we hope you'll love it!"
|
"text": "Faster than ever and easier to use!\nThis update includes lots of changes to improve your experience.\nUse the brand new feedback button on the home screen to talk to the developer!"
|
||||||
|
},
|
||||||
|
"updateSlide1": {
|
||||||
|
"title": "Improved Planex!",
|
||||||
|
"text": "You now have access to new controls, improved display, and you can also mark groups as favorites."
|
||||||
|
},
|
||||||
|
"updateSlide2": {
|
||||||
|
"title": "Scanotron 3000!",
|
||||||
|
"text": "Say hello to Scanotron 3000!\nAvailable from the Qr-Code button on the home screen, it will help you get information about clubs and events around the campus.\n(Useless right now but we have hope for next year)"
|
||||||
|
},
|
||||||
|
"updateSlide3": {
|
||||||
|
"title": "Amicale Account!",
|
||||||
|
"text": "You can now connect to your Amicale INSAT account from within the app! See all available clubs and more to come!\nClick on the login button from the home screen."
|
||||||
},
|
},
|
||||||
"aprilFoolsSlide": {
|
"aprilFoolsSlide": {
|
||||||
"title": "New in this update!",
|
"title": "New in this update!",
|
||||||
|
|
|
@ -56,9 +56,21 @@
|
||||||
"title": "Plus à venir...",
|
"title": "Plus à venir...",
|
||||||
"text": "D'autres fonctionnalités arrivent bientôt, n'hésitez pas à nous donner votre avis pour améliorer l'appli"
|
"text": "D'autres fonctionnalités arrivent bientôt, n'hésitez pas à nous donner votre avis pour améliorer l'appli"
|
||||||
},
|
},
|
||||||
"updateSlide": {
|
"updateSlide0": {
|
||||||
"title": "Nouveau dans cette mise à jour !",
|
"title": "Nouveau dans cette mise à jour !",
|
||||||
"text": "L'appli fait peau neuve ! Avec une interface plus rapide, plus jolie et moderne, nous espérons que vous allez l'apprécier !"
|
"text": "Plus rapide que jamais et plus simple à utiliser !\nCette mise à jour contient de nombreux changements pour améliorer votre expérience.\nUtilisez le tout nouveau bouton de Feedback pour parler directement au développeur!"
|
||||||
|
},
|
||||||
|
"updateSlide1": {
|
||||||
|
"title": "Planex tout beau !",
|
||||||
|
"text": "Vous avez maintenant accès à de nouveaux contrôles, un affichage amélioré, et vous pouvez marquer des groupes en favoris."
|
||||||
|
},
|
||||||
|
"updateSlide2": {
|
||||||
|
"title": "Scanotron 3000 !",
|
||||||
|
"text": "Dites bonjour à Scanotron 3000 !\nDisponible depuis le bouton Qr-Code sur le menu principal, il vous aidera à avoir des informations sur les clubs et les événements du campus.\n(Inutile tout de suite mais on verra l'année pro)"
|
||||||
|
},
|
||||||
|
"updateSlide3": {
|
||||||
|
"title": "Compte Amicale !",
|
||||||
|
"text": "Vous pouvez maintenant vous connecter à votre compte Amicale depuis l'appli ! Accédez à la liste des clubs et plus à venir !\nCliquez sur le bouton Se Connecter dans le menu principal."
|
||||||
},
|
},
|
||||||
"aprilFoolsSlide": {
|
"aprilFoolsSlide": {
|
||||||
"title": "Nouveau dans cette mise à jour !",
|
"title": "Nouveau dans cette mise à jour !",
|
||||||
|
|
Loading…
Reference in a new issue