Skip to content

Commit

Permalink
Merge pull request #111 from thefirstspine/next
Browse files Browse the repository at this point in the history
Release 3.2.0
  • Loading branch information
thefirstspine authored Jan 11, 2024
2 parents 6a71db9 + cb442eb commit bb2f5e9
Show file tree
Hide file tree
Showing 21 changed files with 304 additions and 434 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,6 @@

module.exports = {

async give(req, res) {

const id = parseInt(req.param('id'));
let amount = 0;

switch (id) {
case 1:
amount = 100;
break;
case 2:
amount = 200;
break;
case 3:
amount = 500;
break;;
case 4:
amount = 1000;
break;
default:
return res.notFound();
}

const payment = await sails.helpers.createPayment(
amount,
"Pourboire pour Drifter's Tales de la part de " + req.query['name'],
"Un pouboire pour encourager le développement de Drifter's Tales. Merci à vous =)",
process.env.WEBSITE_URL + "/drifters-tales/?give=cancel#give",
process.env.WEBSITE_URL + "/drifters-tales/?give=success#give",
);

return res.send(payment.checkoutCode);
},

async mailingList(req, res) {
const email = req.body.email;

Expand All @@ -63,21 +30,23 @@ module.exports = {

await sails.models.mailinglist.create({
email,
campaign: 'drifters-tales',
campaign: 'drifters-tales-relaunch',
});
req.flash('mailingListMessage', "Vous avez été inscrit ! Merci !");
return res.redirect('/drifters-tales');
},

async index(req, res) {
return res.view(
'pages/drifter-s-tales.ejs',
'pages/drifters-tales.ejs',
{
devlogs: await sails.models.devlog.find({product: 'drifters-tales'}),
devlogs: [
{ youtubeId: 'AYdYcBRrje8' },
{ youtubeId: 'kTd0D3NbRrM' },
{ youtubeId: 'eRmVNS0-t0Q' },
],
mailingListError: req.flash('mailingListError'),
mailingListMessage: req.flash('mailingListMessage'),
giveCancel: req.param('give') === 'cancel',
giveSuccess: req.param('give') === 'success',
...await sails.helpers.layoutConfig(req.user_id),
tags: [
{
Expand Down
Binary file added assets/images/drifters-tales-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/drifters-tales-screenshot-20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/top-drifter-s-tales.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/styles/drifter-tales.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#drifter-s-tales {
.drifter-s-tales-heading {
padding: 420px 0 100px 0;
padding: 90px 0 520px 0;
background-image: url(../images/top-drifter-s-tales.jpg);
background-position: top;
background-repeat: no-repeat;
Expand Down
17 changes: 9 additions & 8 deletions config/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@
"physic": "IRL"
},
"driftersTales": {
"intro1": "Drifter's Tales offers you to live bond stories within The First Spine's lore.",
"intro2": "You are a traveller, maybe a merchant, maybe a mercenary. Now, you are a Drifter. Because by exiting that Maze, you've lost all your memories.",
"intro1": "Discover the story of The First Spine with the 100% single-player digital version.",
"intro2": "You are a healer. Or maybe a blacksmith. Unless you are a priest or an architect.",
"intro3": "Either way, your destiny will matter more than your origin.",
"screenshots": "These screenshots are not representing final state of the game.",
"release": "Launch date: 2022, september.",
"stayInformed": "Stay tuned",
Expand All @@ -366,9 +367,9 @@
"giveSuccess": "Thanks for your tip! We will make good use of it, we plan to buy coffee to continue working on this game =)",
"giveCancel": "You abandoned the payment",
"tipTitle": "Give a tip",
"give": "Give",
"yourName": "Your name",
"tipText": "This early access is free and will remain so throughout the development period. If you want to encourage its development, you can tip the developers so that they can continue their work in peace. The name you will give us will appear in the final release!"
},
"driftersTails.giveSuccess": "driftersTails.giveSuccess"
}
"give": "Give",
"yourName": "Your name",
"tipText": "This early access is free and will remain so throughout the development period. If you want to encourage its development, you can tip the developers so that they can continue their work in peace. The name you will give us will appear in the final release!",
"videos": "Videos"
}
}
12 changes: 7 additions & 5 deletions config/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"yourAccount": "Votre compte",
"logout": "Se déconnecter",
"referAFriend": "Parrainer un ami",
"driftersTales": "Les Contes du Vagabond",
"driftersTales": "Drifter's Tales",
"arena": "arena"
},
"footer": {
Expand Down Expand Up @@ -363,15 +363,17 @@
}
},
"driftersTales": {
"intro1": "Les Contes du Vagabond vous propose de petites histoires liées entre-elles dans l'univers de The First Spine.",
"intro2": "Vous êtes un voyageur, peut-être un marchand, peut-être un mercenaire. Ce qui est sûr, c'est que vous êtes devenu un Vagabond. Car en sortant de ce Labyrinthe vous avez perdu tout souvenir de votre vie passée.",
"intro1": "Découvrez l'histoire de The First Spine avec la version numérique 100% solo.",
"intro2": "Vous êtes un guérisseur. Ou peut-être un forgeron. A moins que vous ne soyez un prêtre ou un architecte.",
"intro3": "Quoi qu'il en soit, votre destinée importera plus que votre origine.",
"screenshots": "Ces captures d'écran représentent un jeu en cours de développement.",
"release": "Date de lancement : septembre 2022.",
"stayInformed": "Restez informé",
"newsletter": "Restez informé sur le développement des Contes du Vagabond.",
"newsletter": "Restez informé sur le jeu",
"email": "Votre adresse e-mail",
"send": "Envoyer",
"devlog": "Journal de développement",
"videos": "Vidéos",
"getItOnSteam": "Jouez sur Steam",
"getItOnItch": "Jouez sur Itch",
"giveSuccess": "Merci pour votre pouboire ! Nous en ferons bon usage, nous comptons acheter du café pour continuer à travailler sur ce jeu =)",
Expand All @@ -382,4 +384,4 @@
"tipText": "Cet accès anticipé est gratuit et le restera pendant toute la période de développement. Si vous voulez encourager son développement, vous pouvez donner un pourboire aux développeurs pour qu'ils puissent continuer leur travail en tout sérénité. Le nom que vous nous donnerez sera présent dans le jeu final !"
},
"Vos codes sont arrivés !": "Vos codes sont arrivés !"
}
}
8 changes: 0 additions & 8 deletions config/policies.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,7 @@ module.exports.policies = {
'event/*':['load-user', 'is-logged-in', 'is-admin'],
'event/find':[],
'event/findOne':[],
'tournament/*':['load-user', 'is-logged-in', 'is-admin'],
'tournament/find':[],
'tournament/findOne':[],
'code/*':['load-user', 'is-logged-in', 'is-admin'],
'refer/*':['load-user', 'is-logged-in', 'is-admin'],
'tournamentregistration/*':['load-user', 'is-logged-in', 'is-admin'],
'tournamentmatch/*':['load-user', 'is-logged-in', 'is-admin'],
'tournamentmatch/find':[],
'tournamentmatch/findOne':[],
'mailinglist/*':['load-user', 'is-logged-in', 'is-admin'],

};
7 changes: 3 additions & 4 deletions config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ module.exports.routes = {
// Events
'GET /events': 'EventsController.index',

// Adventures
'GET /drifters-tales': 'AdventuresController.index',
'GET /drifters-tales/give/:id': 'AdventuresController.give',
'POST /drifters-tales/mailing-list': 'AdventuresController.mailingList',
// Drifter's Tales
'GET /drifters-tales': 'DriftersTalesController.index',
'POST /drifters-tales/mailing-list': 'DriftersTalesController.mailingList',

// User & auth
'GET /login': 'UserController.viewLoginForm',
Expand Down
Loading

0 comments on commit bb2f5e9

Please sign in to comment.