rename méthodes handlebars
This commit is contained in:
parent
1ff0de1348
commit
a896fdb166
@ -265,12 +265,12 @@ export class RdDUtility {
|
|||||||
Handlebars.registerHelper('either', (a, b) => a ?? b);
|
Handlebars.registerHelper('either', (a, b) => a ?? b);
|
||||||
Handlebars.registerHelper('upperFirst', str => Misc.upperFirst(str ?? 'Null'));
|
Handlebars.registerHelper('upperFirst', str => Misc.upperFirst(str ?? 'Null'));
|
||||||
Handlebars.registerHelper('lowerFirst', str => Misc.lowerFirst(str ?? 'Null'));
|
Handlebars.registerHelper('lowerFirst', str => Misc.lowerFirst(str ?? 'Null'));
|
||||||
Handlebars.registerHelper('upper', str => str?.toUpperCase() ?? '');
|
Handlebars.registerHelper('uppercase', str => str?.toUpperCase() ?? '');
|
||||||
Handlebars.registerHelper('lowercase', str => str?.toLowerCase() ?? '');
|
Handlebars.registerHelper('lowercase', str => str?.toLowerCase() ?? '');
|
||||||
Handlebars.registerHelper('le', str => Grammar.articleDetermine(str));
|
Handlebars.registerHelper('grammar-le', str => Grammar.articleDetermine(str));
|
||||||
Handlebars.registerHelper('apostrophe', (article, str) => Grammar.apostrophe(article, str));
|
Handlebars.registerHelper('grammar-apostrophe', (article, str) => Grammar.apostrophe(article, str));
|
||||||
Handlebars.registerHelper('un', str => Grammar.articleIndetermine(str));
|
Handlebars.registerHelper('grammar-un', str => Grammar.articleIndetermine(str));
|
||||||
Handlebars.registerHelper('accord', (genre, ...args) => Grammar.accord(genre, args));
|
Handlebars.registerHelper('grammar-accord', (genre, ...args) => Grammar.accord(genre, args));
|
||||||
|
|
||||||
Handlebars.registerHelper('RDD_CONFIG', path => RDD_CONFIG[path])
|
Handlebars.registerHelper('RDD_CONFIG', path => RDD_CONFIG[path])
|
||||||
Handlebars.registerHelper('computeResolutionScore', (row, col) => RdDResolutionTable.computePercentage(row, col));
|
Handlebars.registerHelper('computeResolutionScore', (row, col) => RdDResolutionTable.computePercentage(row, col));
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<div>
|
<div>
|
||||||
{{#if carac.rollClass}}
|
{{#if carac.rollClass}}
|
||||||
<a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">
|
<a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">
|
||||||
{{upper carac.colName}}
|
{{uppercase carac.colName}}
|
||||||
</a>
|
</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{upper carac.colName}}
|
{{uppercase carac.colName}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<a class="{{button-name}}-moins"><i class="fa-regular fa-square-minus"></i></a>
|
<a class="{{button-name}}-moins"><i class="fa-regular fa-square-minus"></i></a>
|
||||||
<a class="{{button-name}}-plus"><i class="fa-regular fa-square-plus"></i></a>
|
<a class="{{button-name}}-plus"><i class="fa-regular fa-square-plus"></i></a>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div>
|
<div>
|
||||||
{{#if carac.rollClass}}
|
{{#if carac.rollClass}}
|
||||||
<a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">{{upper carac.colName}}</a>
|
<a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">{{uppercase carac.colName}}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{upper carac.colName}}
|
{{uppercase carac.colName}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-right">{{carac.value}}</div>
|
<div class="flex-group-right">{{carac.value}}</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<img class="chat-icon" src="{{competence.img}}" data-tooltip="{{competence.name}}"/>
|
<img class="chat-icon" src="{{competence.img}}" data-tooltip="{{competence.name}}"/>
|
||||||
<h4 data-categorie="tmr" data-actor-id="{{actor._id}}">
|
<h4 data-categorie="tmr" data-actor-id="{{actor._id}}">
|
||||||
{{alias}} tente de {{maitrise.verbe}} {{le tmr.genre}}
|
{{alias}} tente de {{maitrise.verbe}} {{grammar-le tmr.genre}}
|
||||||
{{#if isTMRCache}}
|
{{#if isTMRCache}}
|
||||||
{{caseTmr-type tmr.coord}}
|
{{caseTmr-type tmr.coord}}
|
||||||
{{else}}
|
{{else}}
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<span>
|
<span>
|
||||||
{{alias}}
|
{{alias}}
|
||||||
{{#if rolled.isSuccess}}parvient à{{else}}échoue à{{/if}}
|
{{#if rolled.isSuccess}}parvient à{{else}}échoue à{{/if}}
|
||||||
{{maitrise.verbe}} {{le tmr.genre}}
|
{{maitrise.verbe}} {{grammar-le tmr.genre}}
|
||||||
{{#if isTMRCache}}
|
{{#if isTMRCache}}
|
||||||
{{caseTmr-type tmr.coord}}
|
{{caseTmr-type tmr.coord}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<img class="chat-icon" src="icons/svg/lightning.svg" data-tooltip="Météo" />
|
<img class="chat-icon" src="icons/svg/lightning.svg" data-tooltip="Météo" />
|
||||||
<h4>Météo aléatoire</h4>
|
<h4>Météo aléatoire</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Vent: {{lowerFirst vent.description}} {{apostrophe 'de' vent.direction}}, force {{vent.force}}</li>
|
<li>Vent: {{lowerFirst vent.description}} {{grammar-apostrophe 'de' vent.direction}}, force {{vent.force}}</li>
|
||||||
<li>Mer {{lowerFirst mer.description}}, {{apostrophe 'de' mer.direction}}, force {{mer.force}}</li>
|
<li>Mer {{lowerFirst mer.description}}, {{grammar-apostrophe 'de' mer.direction}}, force {{mer.force}}</li>
|
||||||
<li>Température {{lowerFirst temperature.description}} ({{plusMoins temperature.force}})</li>
|
<li>Température {{lowerFirst temperature.description}} ({{plusMoins temperature.force}})</li>
|
||||||
<li>Couverture nuageuse: {{lowerFirst nuage.description}}</li>
|
<li>Couverture nuageuse: {{lowerFirst nuage.description}}</li>
|
||||||
<li>Pluie: {{lowerFirst pluie.description}}</li>
|
<li>Pluie: {{lowerFirst pluie.description}}</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user