84 Commits
Author SHA1 Message Date
didier amyot 6efd4b8afd added y2k22 2022-05-28 13:52:03 -04:00
didier amyot 1e18870715 added basic nix flake file. 2022-05-28 13:18:13 -04:00
didier amyot a65de2a03a Update resultats2021.yaml 2021-07-30 13:35:05 +00:00
didier amyot fb83d95e7e Update resultats2021.yaml 2021-07-23 12:32:32 +00:00
didier amyot b5e1bf6cb0 Update resultats2021.yaml 2021-07-16 01:43:08 +00:00
didier amyot 375c2551fc changed files 2021-06-20 13:06:09 -04:00
didier amyot 0751d3e447 Update resultats2021.yaml 2021-06-16 00:17:41 +00:00
didier amyot 8897e9ac53 Update resultats2021.yaml 2021-06-16 00:14:45 +00:00
didier amyot 1f569b6f3d fixed contacts 2021-06-15 20:04:49 -04:00
didier amyot e18a393c9e fixed facebook link 2021-06-15 18:43:37 -04:00
didier amyot 7d21d5316b more love 2021-06-15 17:25:43 -04:00
didier amyot 548d4c1def added some support for practices 2021-06-15 16:55:21 -04:00
didier amyot 2f7dcdc5d0 added saison 2021 data 2021-06-15 16:18:03 -04:00
didier amyot 80ddf2b010 more love 2021-06-15 12:50:49 -04:00
didier amyot 9cabb7c2cd Given some love to the website 2021-06-15 12:45:21 -04:00
didier amyot 2916077329 Update rulesPage.js 2019-10-28 19:42:22 +00:00
didier amyot 7cfb302634 nkjnfdsk 2019-08-22 08:09:54 -04:00
didier amyot fb4b893e39 jdsk 2019-08-22 08:02:47 -04:00
didier amyot 19b7afa7c5 changed calendar 2019-08-06 15:21:15 -04:00
didier amyot 71e1491683 added more results 2019-08-01 17:14:06 -04:00
didier amyot 093370d199 blah 2019-07-13 09:49:50 -04:00
didier amyot d293b8be06 more points 2019-06-28 16:35:31 -04:00
didier amyot 161e828fe4 balh 2019-06-24 18:28:01 -04:00
didier amyot f84d375785 ajouter les reprises 2019-06-12 17:08:38 -04:00
didier amyot 8074b3679e added new score 2019-06-09 09:41:48 -04:00
didier amyot 75ecc7c346 added new scores 2019-06-03 15:36:00 -04:00
didier amyot 6c81a9aeb1 add rain for todays games 2019-05-16 14:20:21 -04:00
didier amyot 39cde030dd fixed away/home 2019-05-16 09:34:57 -04:00
didier amyot 6da40dfb6e added new game dates 2019-05-13 09:13:08 -04:00
didier amyot e93e54df8e nouvelle nouvelle 2019-04-01 08:09:36 -04:00
didier amyot 63cbf51af8 fixed pdf 2019-03-09 07:30:31 -05:00
didier amyot b634723762 removed unused download button 2019-03-09 07:00:21 -05:00
didier amyot cee0e920c3 Added previous seasons to the web site 2019-03-08 12:15:51 -05:00
didier amyot da7951b1cb fixed inscrition 2019 files 2019-03-05 21:40:54 +00:00
didier amyot 516a9856c1 changed main message 2019-02-20 09:20:32 -05:00
didier amyot 441b617eb1 changed some rules 2019-02-19 12:46:59 -05:00
didier amyot e343cee701 changed rules order 2019-02-17 20:20:14 -05:00
didier amyot fe69c01c10 fixed typo 2019-02-17 20:16:01 -05:00
didier amyot e421930f8b added documents for new commity 2019-02-17 20:10:40 -05:00
didier amyot 17f3103144 typo 2018-08-28 18:56:43 -04:00
didier amyot 3c81297272 added last game 2018-08-28 18:52:57 -04:00
didier amyot 25d2fdb781 Update resultats.yaml 2018-08-24 23:32:46 +00:00
didier amyot 42341dec3e Update resultats.yaml 2018-08-16 00:10:06 +00:00
didier amyot fdfef069cb added new score 2018-08-07 20:50:13 -04:00
didier amyot 8066c990cc new article 2018-07-09 20:19:38 -04:00
didier amyot 6118ae35ee Update resultats.yaml 2018-06-10 13:00:20 +00:00
didier amyot 223932df0a let's encrypt 2018-06-09 09:09:46 -04:00
didier amyot a10d01c8d7 added let's encrypt challenge 2018-06-09 09:02:50 -04:00
didier amyot f04c039e8c Update resultats.yaml 2018-06-05 23:33:44 +00:00
didier amyot 48377dbe9d Update resultats.yaml 2018-06-05 22:56:53 +00:00
didier amyot 8e4eb803d7 more resilient team structure 2018-05-20 17:12:57 -04:00
didier amyot 01bdcbe3b7 je suis saoul 2018-05-19 19:53:04 -04:00
didier amyot 6b2a781378 changed hour of the very first game 2018-05-16 20:41:58 -04:00
didier amyot e5bd620c88 created a 'remplaçants' team 2018-05-13 18:14:19 -04:00
didier amyot 3182c82dba changed team colour 2018-05-13 17:46:12 -04:00
didier amyot 26b09a0941 added evaluation 2018 2018-05-07 20:34:20 -04:00
didier amyot 926c35466d replace team strings 2018-05-04 14:18:34 -04:00
didier amyot 9cec9e101a added 2018 schedule 2018-05-04 14:15:42 -04:00
didier amyot 3d344de012 added enrollement for 2018 2018-03-19 17:40:12 -04:00
didier amyot bb6638ae79 added let's encrypt challenge 2018-03-11 15:39:50 -04:00
didier amyot 2f6b62afef added new article 2017-09-17 11:29:34 -04:00
didier amyot 6015d479fb Update resultats.yaml 2017-08-25 02:50:48 +00:00
didier amyot 9220f4d4a6 new message 2017-08-23 19:13:01 -04:00
didier amyot d8a655bd9b Update resultats.yaml 2017-08-23 01:05:19 +00:00
didier amyot c577d12fc1 oups 2017-08-19 18:48:51 -04:00
didier amyot 42a37856d2 applied richard's comments 2017-08-19 18:42:06 -04:00
didier amyot d085eeb91b Update resultats.yaml 2017-08-19 17:11:23 +00:00
didier amyot f3dcddcbc0 Update resultats.yaml 2017-08-19 17:00:14 +00:00
didier amyot 3dab44623a Update resultats.yaml 2017-08-18 13:43:52 +00:00
didier amyot 44eb09100c added new result 2017-08-09 21:24:48 -04:00
didier amyot deaf5f0fbc boom 2017-08-09 20:59:19 -04:00
didier amyot 9bf4830f7a added basic playoff integration 2017-08-08 22:22:51 -04:00
didier amyot 7be88a2167 Update resultats.yaml 2017-08-01 01:02:14 +00:00
didier amyot 4ef7661371 Update resultats.yaml 2017-07-23 15:25:43 +00:00
didier amyot 8ad11a2a78 trying to fix a prod issue 2017-07-17 22:00:38 -04:00
didier amyot 3d4995e228 Update resultats.yaml 2017-07-18 01:35:27 +00:00
didier amyot a46e4a463e added new scores 2017-07-09 18:00:18 -04:00
didier amyot b9c6612fb1 new results 2017-07-01 08:29:52 -04:00
didier amyot 4af9f56707 walter-stewart!!! 2017-06-20 20:57:25 -04:00
didier amyot 314a816fbd implemented comments and suggestions by marc beaudoin 2017-06-15 20:15:36 -04:00
didier amyot 3caa916d47 Update resultats.yaml 2017-06-05 23:31:10 +00:00
Valerie Andre fff837b103 correction inversion équipe home et away 2017-05-29 20:58:06 -04:00
Valerie Andre f9893f3130 updates dates et ordre des matchs 2017-05-29 20:39:55 -04:00
didier amyot 334c40dead hide unfinished improvments 2017-05-23 22:39:33 -04:00
67 changed files with 7612 additions and 803 deletions

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
{
"directory": "lib"
}
+1
View File
@@ -5,3 +5,4 @@ css/*
/index.html
/main-built.js
/api
result
+2 -1
View File
@@ -1,4 +1,4 @@
image: "node:4.4.3"
image: "node:12.22.1"
before_script:
# install ssh-agent
@@ -20,6 +20,7 @@ pages:
- rm -rf node_modules .public public
- mkdir .public
- cp -r * .public
- cp -r .well-known .public # for let's encrypt
- mv .public public
artifacts:
paths:
+1
View File
@@ -0,0 +1 @@
4.4.3
@@ -0,0 +1 @@
4VCd-x0J9qsZgGuJ-c3Wu_KpOphzhjXfVhEyFGBCQ-c.x_X1OQlfsQAsCyXJHKuPmU8SV-1VK_3KvYbbl7KY81A
@@ -0,0 +1 @@
o16F72Bt8czXRTmH9wMZn_OiOinya_kW16yTtSj0bEk.x_X1OQlfsQAsCyXJHKuPmU8SV-1VK_3KvYbbl7KY81A
@@ -0,0 +1 @@
umfDF6CvoJs42QhTKeBgEe12M-iVjbMHwxdEoweV6G8.x_X1OQlfsQAsCyXJHKuPmU8SV-1VK_3KvYbbl7KY81A
+2
View File
@@ -0,0 +1,2 @@
dev:
node_modules/.bin/gulp dev
-20
View File
@@ -1,20 +0,0 @@
{
"name": "phenix-website",
"description": "Main web site of Balle Phénix.",
"main": "index.html",
"authors": [
"didier amyot <didier.amyot@gmail.com>"
],
"license": "MIT",
"moduleType": [],
"homepage": "",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"lib",
"test",
"tests"
]
}
+2 -1
View File
@@ -8,5 +8,6 @@
},
include: 'main',
name: "../node_modules/almond/almond",
out: "main-built.js"
out: "main-built.js",
optimize: 'none'
})
+44
View File
@@ -0,0 +1,44 @@
[title]
innerMarkdown = """
## Assemblée Générale 2017!
"""
[meta]
innerMarkdown = """
Dimanche 17 Septembre 2017
"""
[body]
innerMarkdown = """
Bonjour à tous,
Voilà déjà le temps de penser à l'AGA 2017, vous êtes donc invités le 23
septembre 2017 à 13:00 au [2120, boul. Pie-IX](https://goo.gl/maps/ApFhYX4Gz6A2).
Cette année il y a deux postes à pourvoir soit:
* **Président(e)**: mandat de deux ans
* **Trésorier(ère)**: mandat de deux ans.
Si un des deux postes vous intéresse, veuillez faire parvenir un courriel à
nathalie7033@gmail.com avant le 22 septembre 2017. Si nous recevons plusieurs
noms pour le même poste, il y aura élection par les membres le 23 septembre.
Si vous ne pouvez pas être présent et aimeriez qu'on discute d'un sujet qui
vous tient à coeur, vous pouvez nous contacter et et nous les metterons
à l'ordre du jour.
bien à vous,
votre commite.
"""
[smallBody]
innerMarkdown = """
Bonjour à tous,
Voilà déjà le temps de penser à l'AGA 2017, vous êtes donc invités le 23
septembre 2017 à 13:00 au [2120, boul. Pie-IX](https://goo.gl/maps/ApFhYX4Gz6A2).
**[lire la suite ...](#/nouvelles)**
"""
+33
View File
@@ -0,0 +1,33 @@
[title]
innerMarkdown = """
## Virée au Bar L’Astral 2000
"""
[meta]
innerMarkdown = """
Samedi 13 Juillet 2019
"""
[body]
innerMarkdown = """
La ligue de balle lente Les Phénix remercie son commanditaire Le Bar L’Astral 2000 pour sa contribution à notre saison 2019. Sa commandite a permis, en partie, à fournir 5 nouveaux uniformes d’équipes aux Phénix.
Maintenant que le beau temps se montre il sera de coutume d’aller faire un tour au Bar L’Astral 2000 le jeudi soir après nos matchs, question de socialiser entre nous et chanter, car c’est aussi un bar karaoké! Rendez-vous au [1845 Rue Ontario Est](https://goo.gl/maps/L3gdVVhKvrrgYDcc7).
[![astral 2000](images/Astral_logo.png)](https://www.facebook.com/Astral-2000-494597793884464/)
<p style="text-align: center; width: 100%;">
<a href="https://www.facebook.com/Astral-2000-494597793884464/">
<i class="fa fa-facebook-square" style="font-size: 3em;"></i>
</a>
</p>
"""
[smallBody]
innerMarkdown = """
Vous êtes tannés de l’hiver et vous avez hâte de sortir gant et bâton, de jouer dans le sable et sur l’herbe du terrain, retrouver une ambiance amicale et se faire de nouveaux ami(e)s ?
**[lire la suite ...](#/nouvelles)**
"""
+38
View File
@@ -0,0 +1,38 @@
[title]
innerMarkdown = """
## Evaluation et pratique 2018!
"""
[meta]
innerMarkdown = """
Lundi 07 mai 2018
"""
[body]
innerMarkdown = """
Bonsoir à tous les membres des Phénix - nouveaux et anciens,
La saison va bientôt commencer et nous souhaitons évaluer les nouveaux membres des Phénix dans un contexte de jeu. Ce qui veut dire que nous voulons voir les joueurs en action. Nous vous invitons donc à participer à cet événement le 12 mai prochain à compter de 13h30 au parc Walter-Stewart. Apportez votre gant !
Pour les anciens, venez faire connaissance avec les nouveaux, et par le fait même, vous mettre en forme pour la prochaine saison. Tous les anciens sont bienvenus.
Les capitaines seront rapidement appelés à faire leurs équipes après la journée d'évaluation. Nous prévoyons commencer à jouer dès le jeudi 17 mai prochain. L'heure vous sera confirmée par vos capitaines.
Pour votre information, cette saison nous allons avoir 4 équipes de 10 joueurs et pour ceux qui connaissent des joueurs ou joueuses qui voudraient à l'occasion agir comme remplaçants, nous sommes à constituer une liste qui servira aux capitaines pour faciliter les remplacements. N'hésitez pas à nous donner les noms et adresses courriel de vos amis qui seraient intéressés.
À bientôt
"""
[smallBody]
innerMarkdown = """
Bonsoir à tous les membres des Phénix - nouveaux et anciens,
La saison va bientôt commencer et nous souhaitons évaluer les nouveaux membres des Phénix dans un contexte de jeu. Ce qui veut dire que nous voulons voir les joueurs en action. Nous vous invitons donc à participer à cet événement le 12 mai prochain à compter de 13h30 au parc Walter-Stewart. Apportez votre gant !
**[Tous les details ...](#/nouvelles)**
"""
+85
View File
@@ -0,0 +1,85 @@
[title]
innerMarkdown = """
## Inscription 2018!
"""
[meta]
innerMarkdown = """
Samedi 17 mars 2018
"""
[body]
innerMarkdown = """
Bonjour à tous les membres de la Ligue de balle des Phénix et les autres qui
se joindront à nous,
L'hiver tire à sa fin. C'est donc un signe que la saison de la balle-molle
arrive à grand pas.
Mais d'abord, nous voudrions remercier Nathalie Ste-Marie et Sylvain Grenier
pour tout le travail effectué, la grande collaboration et la transmission des
effets de la Ligue ainsi que de tout le matériel. Nous savons que votre
implication immense a permis à la Ligue de continuer à se développer.
Merci encore.
Comme par le passé, il y aura une soirée d'inscription. Elle aura lieu le
vendredi 6 avril 2018 de 18h à 21h au [Bar l'Astral 2000](http://bit.ly/2FHSjMC)
situé au 1845 Rue Ontario E, Montréal, QC H2K 1T7. Comme vous le constatez,
c'est un nouveau lieu de rassemblement pour les Phénix. Le Bar est situé
beaucoup plus près de notre terrain de balle habituel ([parc Walter-Stuart](http://bit.ly/2G2fhxn)) que la Taverne Normandie
où nous allions auparavant et que nous avons délaissée l'an passé. Le Bar
l'[Astral 2000](http://bit.ly/2FHSjMC) est aussi notre commanditaire. Il faudra l'encourager, ce
que je ne doute même pas. Nous en profiterons pour vous parler des nouvelles
règles qui s'appliqueront cet été.
Le prix de l'inscription reste le même que l'année dernière soit de 110$
incluant la location du chandail au coût de 10$. La valeur de la location
du chandail vous sera rendue lorsque vous le remettrez à la fin de la saison.
De plus, nous offrirons un rabais sur l'inscription de 25 $ pour les personnes
qui seront choisies comme capitaine. Cette somme leur sera remise à la fin de
la saison. Nous jouerons les jeudis comme les années passées. La saison va
débuter au début du mois de mai quand les terrains seront officiellement
disponibles et se terminer à la fin août.
Une nouveauté cette année, il n'y aura que deux matchs par soir, ce qui
devrait nous permettre de socialiser un peu plus après les parties. Ça nous
permettra d'utiliser l'Astral comme lieu de rassemblement pour rire un peu
et nous rappeler nos bons et mauvais coups.
Pour ceux et celles qui ne pourront être présents à l'inscription, vous
pouvez vous inscrire par courrier. Imprimez, remplissez et envoyez le
formulaire d'inscription et le code de conduite avec votre chèque. Faites-vite,
puisque les places sont limitées. Maximum 50 joueurs.
Nous avons très hâte de vous voir !!!
Votre comité exécutif de La Ligue de balle les Phénix.
Marie-Ève, Didier, Richard et Gilles
[<i class="fa fa-paperclip"></i> Formulaire d'inscription](/files/inscription2018.pdf)
[<i class="fa fa-paperclip"></i> Code de conduite](/files/code_de_conduite.pdf)
"""
[smallBody]
innerMarkdown = """
Bonjour a tous!
**L'inscription pour la saison 2018 aura lieu le vendredi 6 avril 2018 de 18h à
21h au [Bar l'Astral 2000](http://bit.ly/2FHSjMC)**. Le prix reste le meme a
110$ (incluant un 10$ qui de depot pour le chandail).
Cette annee, il vous faudra remplir le
[formulaire d'inscription](/files/inscription2018.pdf) et un signer un
[code de conduite](/files/code_de_conduite.pdf). Si vous ne pouvez pas
vous presenter a l'inscription, vous pouvez toujours envoyer les formulaires
ainsi que votre cheque par la poste.
[<i class="fa fa-paperclip"></i> Formulaire d'inscription](/files/inscription2018.pdf)
[<i class="fa fa-paperclip"></i> Code de conduite](/files/code_de_conduite.pdf)
**[Tous les details ...](#/nouvelles)**
"""
+55
View File
@@ -0,0 +1,55 @@
[title]
innerMarkdown = """
## Inscription 2019!
"""
[meta]
innerMarkdown = """
Dimanche 17 Février 2019
"""
[body]
innerMarkdown = """
Vous êtes tannés de l’hiver et vous avez hâte de sortir gant et bâton, de jouer
dans le sable et sur l’herbe du terrain, retrouver une ambiance amicale et se
faire de nouveaux ami(e)s ?
Venez rencontrer des membres de la ligue de balle-lente Les Phénix - et tous
ceux et celles qui veulent se joindre à nous - à une soirée d’inscription, le
vendredi 5 avril 2019, de 18h30 à 20h30, au Bar L’Astral 2000, situé au 1845
rue Ontario Est, à Montréal. Ce bar qui nous commandite permet de nous réunir
après nos parties pour parler, boire et chanter au karaoké!
Combien ça coûte pour jouer? Les frais d’inscription 2019 sont de 100$. Aucun
dépôt pour le chandail d’équipe. Payable en argent comptant ou chèque. Saison
et party compris.
Chaque semaine, il y aura deux parties à l’horaire le jeudi soir au parc
Walter-Stewart, près du métro Frontenac, de mai à fin août (environ 16
semaines de jeu). Une pratique optionnelle sera organisée le dimanche.
Les nouveaux joueurs seront conviés fin avril pour une évaluation sur le
terrain afin de permettre la formation d’équipes équilibrées.
Au plaisir de vous voir en grand nombre le 5 avril!
Les personnes qui préfèrent s’inscrire par courrier peuvent remplir et signer
le [formulaire et le code de conduite](/files/inscription_et_code_2019.pdf).
Pour information sur les inscriptions : Richard Dicaire, trésorier, au 514-714-2246
Votre comité des Phénix
[<i class="fa fa-paperclip"></i> Formulaire d'inscription](/files/inscription_et_code_2019.pdf)
"""
[smallBody]
innerMarkdown = """
Vous êtes tannés de l’hiver et vous avez hâte de sortir gant et bâton, de jouer dans le sable et sur l’herbe du terrain, retrouver une ambiance amicale et se faire de nouveaux ami(e)s ?
**[lire la suite ...](#/nouvelles)**
"""
@@ -0,0 +1,25 @@
[title]
innerMarkdown = """
## Viens t’inscrire le 5 avril
"""
[meta]
innerMarkdown = """
Lundi 1er Avril 2019
"""
[body]
innerMarkdown = """
Profitez de l’arrivée du printemps pour vous présenter à la soirée d’inscription
la ligue de balle-lente Les Phénix le vendredi 5 avril 2019, de 18h30 à 20h30,
au [Bar L’Astral 2000, situé au 1845 rue Ontario Est, à Montréal](https://goo.gl/maps/3SND4ZqGZKP2). Coût de 100$
comptant ou chèque pour jouer le jeudi soir au parc Walter-Stewart, de la
mi-mai à la fin août. Évaluation des nouveaux vers la fin avril. Le comité
2019 se fera un plaisir de vous accueillir, répondre vos questions et
socialiser avec les futurs joueurs.
[<i class="fa fa-paperclip"></i> Formulaire d'inscription](/files/inscription_et_code_2019.pdf)
"""
+30
View File
@@ -0,0 +1,30 @@
[title]
innerMarkdown = """
## Nouveau Comité 2019!
"""
[meta]
innerMarkdown = """
Dimanche 17 Février 2019
"""
[body]
innerMarkdown = """
La dernière année des Phénix s’est terminée avec l’élection d’un nouveau comité
exécutif.
Les membres présents à l’assemblée générale annuelle du 2 novembre 2018 ont élu
Marc-André Bonin au poste de vice-président et Alexandre Gauthier au poste de
secrétaire. Les postes de Gilles Dicaire, président, et Richard Dicaire,
trésorier, n’étaient pas en élection. Le nouvel exécutif des Phénix tient à
remercier Marie-Ève Clavel et Didier Amyot pour leur engagement des dernières années.
"""
[smallBody]
innerMarkdown = """
La dernière année des Phénix s’est terminée avec l’élection d’un nouveau comité
exécutif.
**[lire la suite ...](#/nouvelles)**
"""
+27
View File
@@ -0,0 +1,27 @@
[title]
innerMarkdown = """
## Party fin de saison 2017!
"""
[meta]
innerMarkdown = """
Mercredi 23 Aout 2017
"""
[body]
innerMarkdown = """
Bonjour à tous les phénixiens phénixiennes.
Les séries commencent et nous devons déjà penser a fêter la fin de
la saison. Comme à l'habitude, nous allons festoyer à la [taverne
normandie](http://www.taverne-normandie.ca/), [1295 Amherst](https://goo.gl/maps/neafXHhkW292).
Le party aura lieu le **vendredi 8 septembre 2017**, nous devrions
commencer à arriver vers 19h00. Il y aura pizza, biere et animation.
# <i class="fa fa-beer" aria-hidden="true"></i>
bien à vous,
votre commite.
"""
+22
View File
@@ -0,0 +1,22 @@
[title]
innerMarkdown = """
## Reprise saison 2018
"""
[meta]
innerMarkdown = """
Lundi 9 juillet 2018
"""
[body]
innerMarkdown = """
Bonjour a toutes et a tous!
Finalement, les travaux au parc walter-stewart sont finis et nous pouvons
reprendre nos activites. Nous devrions finir la saison plus tard pour
reprendre nos parties.
On se voit jeudi!
"""
@@ -0,0 +1,50 @@
[title]
innerMarkdown = """
## Retour à Walter-Stewart
"""
[meta]
innerMarkdown = """
Samedi 20 juin 2017
"""
[body]
innerMarkdown = """
Bonjour a tous,
nous sommes heureux de vous aviser que nous retrouverons notre nid dès jeudi!
En effet, a partir de ce jeudi (22 juin 2017) nous allons jouer nos parties
au parc Walter-Stewart, juste à cote du metro Frontenac.
Pour ceux qui sont interessés, le parc Walter-Stewart est le lieux où Rodger
Brulotte est tombé en amour avec le baseball. Walter Stewart fut un journaliste
important au canada englais, mais comme le parc fut batisé avant le déces de
M. Stewart, il serait surprenant que le parc aille été nomme en son honneur.
Il y a un tres bon restaurant tout près du parc, le Resto De La Rivière; c'est
assez cher. Il y a, aussi, une nombre incalculable de gens qui ont perdu leurs
virginité dans notre cher parc; probablement sans penser à notre cher Rodger,
au journaliste homonyme ou d'avoir salivé à l'idee une creme-brulee.
Veuillez rependre la bonne nouvelle; dites le a vos amis, chums/blondes, beaux parents...
Merci beaucoup,
Comité ballephenix!
"""
[smallBody]
innerMarkdown = """
Bonjour a tous,
nous sommes heureux de vous aviser que nous retrouverons notre nid dès jeudi!
En effet, a partir de ce jeudi (22 juin 2017) nous allons jouer nos parties
au parc Walter-Stewart, juste à cote du metro Frontenac.
Veuillez rependre la bonne nouvelle; dites le a vos amis, chums/blondes, beaux parents...
Merci beaucoup,
**[lire la suite ...](#/nouvelles)**
"""
+29
View File
@@ -0,0 +1,29 @@
[title]
innerMarkdown = """
## Début Saison 2021
"""
[meta]
innerMarkdown = """
Mardi 15 Juin 2021
"""
[body]
innerMarkdown = """
Nous avons eu le permis de la ville de Montréal pour débuter notre saison le 24 Juin !!!
Notez que la ville n'a émis aucun permis avant le 20 juin, le Jeudi 24 Juin est le plus tôt que nous pouvons débuter notre saison avec notre permis.
Comme la ville ne prépare pas de terrain et ne fournit pas d'officiel, les 24 juin et 1 juillet, ce sera des matchs hors concours avec les membres présents.
Voici donc sans plus tarder notre calendrier pour la saison 2021 !!!
Votre Comité 2021
"""
[smallBody]
innerMarkdown = """
Nous avons eu le permis de la ville de Montréal pour débuter notre saison le 24 Juin !!!
Notez que la ville n'a émis aucun permis avant le 20 juin, le Jeudi 24 Juin est le plus tôt que nous pouvons débuter notre saison avec notre permis.
**[lire la suite ...](#/nouvelles)**
"""
-281
View File
@@ -1,281 +0,0 @@
---
-
date: 2017/5/04 # year/month/day
time: "18:45"
away: jaune
home: rouge
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/04 # year/month/day
time: "20:20"
away: gris
home: bleu
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/11 # year/month/day
time: "18:45"
away: rouge
home: gris
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/11 # year/month/day
time: "20:20"
away: bleu
home: jaune
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/18 # year/month/day
time: "18:45"
away: gris
home: jaune
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/18 # year/month/day
time: "20:20"
away: rouge
home: bleu
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/25 # year/month/day
time: "18:45"
away: bleu
home: gris
home_points: ~
away_points: ~
-
date: 2017/5/25 # year/month/day
time: "20:20"
away: rouge
home: jaune
home_points: ~
away_points: ~
-
date: 2017/6/1 # year/month/day
time: "18:45"
away: jaune
home: bleu
home_points: ~
away_points: ~
-
date: 2017/6/1 # year/month/day
time: "20:20"
away: gris
home: rouge
home_points: ~
away_points: ~
-
date: 2017/6/8 # year/month/day
time: "18:45"
away: bleu
home: rouge
home_points: ~
away_points: ~
rain: false
-
date: 2017/6/8 # year/month/day
time: "20:20"
away: jaune
home: gris
home_points: ~
away_points: ~
rain: false
-
date: 2017/6/15 # year/month/day
time: "18:45"
away: jaune
home: rouge
home_points: ~
away_points: ~
-
date: 2017/6/15 # year/month/day
time: "20:20"
away: gris
home: bleu
home_points: ~
away_points: ~
-
date: 2017/6/22 # year/month/day
time: "18:45"
away: rouge
home: gris
home_points: ~
away_points: ~
-
date: 2017/6/22 # year/month/day
time: "20:20"
away: bleu
home: jaune
home_points: ~
away_points: ~
-
date: 2017/6/29 # year/month/day
time: "18:45"
away: gris
home: jaune
home_points: ~
away_points: ~
-
date: 2017/6/29 # year/month/day
time: "20:20"
away: rouge
home: bleu
home_points: ~
away_points: ~
-
date: 2017/7/6 # year/month/day
time: "18:45"
away: bleu
home: gris
home_points: ~
away_points: ~
-
date: 2017/7/6 # year/month/day
time: "20:20"
away: rouge
home: jaune
home_points: ~
away_points: ~
-
date: 2017/7/13 # year/month/day
time: "18:45"
away: jaune
home: bleu
home_points: ~
away_points: ~
-
date: 2017/7/13 # year/month/day
time: "20:20"
away: gris
home: rouge
home_points: ~
away_points: ~
-
date: 2017/7/20 # year/month/day
time: "18:45"
away: bleu
home: rouge
home_points: ~
away_points: ~
-
date: 2017/7/20 # year/month/day
time: "20:20"
away: jaune
home: gris
home_points: ~
away_points: ~
-
date: 2017/7/27 # year/month/day
time: "18:45"
away: jaune
home: rouge
home_points: ~
away_points: ~
-
date: 2017/7/27 # year/month/day
time: "20:20"
away: gris
home: bleu
home_points: ~
away_points: ~
-
date: 2017/8/3 # year/month/day
time: "18:45"
away: rouge
home: gris
home_points: ~
away_points: ~
-
date: 2017/8/3 # year/month/day
time: "20:20"
away: bleu
home: jaune
home_points: ~
away_points: ~
-
date: 2017/8/10 # year/month/day
time: "18:45"
away: jaune
home: rouge
home_points: ~
away_points: ~
-
date: 2017/8/10 # year/month/day
time: "20:20"
away: gris
home: bleu
home_points: ~
away_points: ~
-
date: 2017/8/17 # year/month/day
time: "18:45"
away: gris
home: jaune
home_points: ~
away_points: ~
-
date: 2017/8/17 # year/month/day
time: "20:20"
away: rouge
home: bleu
home_points: ~
away_points: ~
-
date: 2017/8/25 # year/month/day
time: "18:45"
away: bleu
home: rouge
home_points: ~
away_points: ~
temporary: false
-
date: 2017/8/25 # year/month/day
time: "20:20"
away: jaune
home: gris
home_points: ~
away_points: ~
temporary: false
+246 -248
View File
@@ -1,421 +1,419 @@
---
# generated by https://scheduler.leaguelobster.com/edit/236693/new-league/new-season/#
-
date: 2017/5/18 # year/month/day
time: "18:30"
home: jaune # t6
away: bleu # t5
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/18 # year/month/day
time: "20:00"
home: orange # t3
away: gris # t1
home_points: ~
away_points: ~
rain: false
# WEEK 1
# -
# date: 2017/5/25 # year/month/day
# time: "18:30"
# home: gris # t1
# away: bleu # t5
# home_points: 11
# away_points: 6
# rain: true
# -
# date: 2017/5/25 # year/month/day
# time: "20:00"
# home: rouge # t4
# away: jaune # t6
# home_points: ~
# away_points: ~
# rain: true
# -
# date: 2017/5/25 # year/month/day
# time: "21:30"
# home: vert # t2
# away: orange # t3
# home_points: ~
# away_points: ~
# rain: true
-
date: 2017/5/18 # year/month/day
time: "21:30"
home: vert # t2
away: rouge # t4
home_points: ~
away_points: ~
rain: false
# WEEK 2
-
date: 2017/5/25 # year/month/day
date: 2017/6/1 # year/month/day
time: "18:30"
home: gris # t1
away: bleu # t5
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/25 # year/month/day
time: "20:00"
home: rouge # t4
away: jaune # t6
home_points: ~
away_points: ~
rain: false
-
date: 2017/5/25 # year/month/day
time: "21:30"
home: vert # t2
away: orange # t3
home_points: ~
away_points: ~
rain: false
# WEEK 3
-
date: 2017/6/1 # year/month/day
time: "18:30"
home: jaune # t6
away: gris # t1
home_points: ~
away_points: ~
home_points: 11
away_points: 6
rain: false
-
date: 2017/6/1 # year/month/day
time: "20:00"
home: bleu # t5
away: vert # t2
home_points: ~
away_points: ~
rain: false
-
date: 2017/6/1 # year/month/day
time: "21:30"
home: orange # t3
away: rouge # t4
home_points: ~
away_points: ~
home_points: 8
away_points: 21
rain: false
-
date: 2017/6/1 # year/month/day
time: "21:30"
home: bleu # t5
away: vert # t2
home_points: 6
away_points: 9
rain: false
# WEEK 3
-
date: 2017/6/8 # year/month/day
time: "18:30"
home: rouge # t4
away: bleu # t5
home_points: 10
away_points: 8
rain: false
-
date: 2017/6/8 # year/month/day
time: "20:00"
home: vert # t2
away: jaune # t6
home_points: 8
away_points: 5
rain: false
-
date: 2017/6/8 # year/month/day
time: "21:30"
home: orange # t3
away: gris # t1
home_points: 9
away_points: 11
rain: false
# WEEK 4
-
date: 2017/6/8 # year/month/day
date: 2017/6/15 # year/month/day
time: "18:30"
home: vert # t2
away: gris # t1
home_points: ~
away_points: ~
rain: false
-
date: 2017/6/8 # year/month/day
time: "20:00"
home: rouge # t4
away: bleu # t5
home_points: ~
away_points: ~
rain: false
-
date: 2017/6/8 # year/month/day
time: "21:30"
home: orange # t3
home: bleu # t5
away: jaune # t6
home_points: ~
away_points: ~
home_points: 6
away_points: 18
rain: false
-
date: 2017/6/15 # year/month/day
time: "20:00"
home: orange # t3
away: vert # t2
home_points: 7
away_points: 15
rain: false
-
date: 2017/6/15 # year/month/day
time: "21:30"
home: rouge # t4
away: gris # t1
home_points: 6
away_points: 17
rain: false
# WEEK 5
-
date: 2017/6/15 # year/month/day
date: 2017/6/22 # year/month/day
time: "18:30"
home: jaune # t6
home: orange # t3
away: vert # t2
home_points: ~
away_points: ~
home_points: 10
away_points: 13
rain: false
-
date: 2017/6/15 # year/month/day
date: 2017/6/22 # year/month/day
time: "20:00"
home: gris # t1
away: rouge # t4
home_points: ~
away_points: ~
home: bleu # t5
away: gris # t1
home_points: 17
away_points: 15
rain: false
-
date: 2017/6/15 # year/month/day
date: 2017/6/22 # year/month/day
time: "21:30"
home: bleu # t5
away: orange # t3
home_points: ~
away_points: ~
home: jaune # t6
away: rouge # t4
home_points: 9
away_points: 8 # didier a fait un grand chelem!
rain: false
# WEEK 6
-
date: 2017/6/22 # year/month/day
date: 2017/6/29 # year/month/day
time: "18:30"
home: bleu # t5
away: jaune # t6
home_points: ~
away_points: ~
home: vert # t2
away: rouge # t4
home_points: 15
away_points: 6
rain: false
-
date: 2017/6/22 # year/month/day
date: 2017/6/29 # year/month/day
time: "20:00"
home: orange # t3
home: jaune # t6
away: gris # t1
home_points: ~
away_points: ~
home_points: 20
away_points: 14
rain: false
-
date: 2017/6/22 # year/month/day
date: 2017/6/29 # year/month/day
time: "21:30"
home: rouge # t4
away: vert # t2
home_points: ~
away_points: ~
home: bleu # t5
away: orange # t3
home_points: 12
away_points: 18
rain: false
# WEEK 7
-
date: 2017/6/29 # year/month/day
date: 2017/7/6 # year/month/day
time: "18:30"
home: jaune # t6
away: rouge # t4
home_points: ~
away_points: ~
rain: false
-
date: 2017/6/29 # year/month/day
time: "20:00"
home: gris # t1
away: bleu # t5
home_points: ~
away_points: ~
away: vert # t2
home_points: 20
away_points: 14
rain: false
-
date: 2017/6/29 # year/month/day
time: "21:30"
home: vert # t2
date: 2017/7/6 # year/month/day
time: "20:00"
home: rouge # t4
away: orange # t3
home_points: ~
away_points: ~
home_points: 12
away_points: 10
rain: false
-
date: 2017/7/6 # year/month/day
time: "21:30"
home: jaune # t6
away: bleu # t5
home_points: 18
away_points: 9
rain: false
# WEEK 8
-
date: 2017/7/6 # year/month/day
date: 2017/7/13 # year/month/day
time: "18:30"
home: bleu # t5
away: vert # t2
home_points: ~
away_points: ~
home: rouge # t4
away: bleu # t5
home_points: 14
away_points: 6
rain: false
-
date: 2017/7/6 # year/month/day
date: 2017/7/13 # year/month/day
time: "20:00"
home: gris # t1
away: jaune # t6
home_points: ~
away_points: ~
away: vert # t2
home_points: 14
away_points: 4
rain: false
-
date: 2017/7/6 # year/month/day
date: 2017/7/13 # year/month/day
time: "21:30"
home: orange # t3
away: rouge # t4
home_points: ~
away_points: ~
away: jaune # t6
home_points: 14
away_points: 9
rain: false
# WEEK 9
-
date: 2017/7/13 # year/month/day
date: 2017/7/20 # year/month/day
time: "18:30"
home: jaune # t6
home: bleu # t5
away: orange # t3
home_points: ~
away_points: ~
home_points: 11
away_points: 25
rain: false
-
date: 2017/7/13 # year/month/day
time: "20:00"
date: 2017/7/20 # year/month/day
time: "18:30"
home: rouge # t4
away: bleu # t5
home_points: ~
away_points: ~
away: gris # t1
home_points: 11
away_points: 18
rain: false
-
date: 2017/7/13 # year/month/day
date: 2017/7/20 # year/month/day
time: "21:30"
home: vert # t2
away: gris # t1
home_points: ~
away_points: ~
home: jaune # t6
away: vert # t2
home_points: 13
away_points: 15
rain: false
# WEEK 10
-
date: 2017/7/20 # year/month/day
date: 2017/7/27 # year/month/day
time: "18:30"
home: gris # t1
away: rouge # t4
home_points: ~
away_points: ~
rain: false
-
date: 2017/7/20 # year/month/day
time: "20:00"
home: bleu # t5
home: jaune # t6
away: orange # t3
home_points: ~
away_points: ~
home_points: 14
away_points: 11
rain: false
-
date: 2017/7/20 # year/month/day
time: "21:30"
date: 2017/7/27 # year/month/day
time: "20:00"
home: vert # t2
away: jaune # t6
home_points: ~
away_points: ~
away: bleu # t5
home_points: 18
away_points: 9
rain: false
-
date: 2017/7/27 # year/month/day
time: "21:30"
home: rouge # t4
away: gris # t1
home_points: 13
away_points: 13
rain: false
# WEEK 11
-
date: 2017/7/27 # year/month/day
date: 2017/8/3 # year/month/day
time: "18:30"
home: rouge # t4
away: vert # t2
home_points: ~
away_points: ~
home: vert # t2
away: rouge # t4
home_points: 12
away_points: 12
rain: false
-
date: 2017/7/27 # year/month/day
date: 2017/8/3 # year/month/day
time: "20:00"
home: jaune # t6
away: bleu # t5
home_points: ~
away_points: ~
home: bleu # t5
away: orange # t3
home_points: 4
away_points: 16
rain: false
-
date: 2017/7/27 # year/month/day
date: 2017/8/3 # year/month/day
time: "21:30"
home: orange # t3
home: jaune # t6
away: gris # t1
home_points: ~
away_points: ~
home_points: 5
away_points: 22
rain: false
# WEEK 12
-
date: 2017/8/3 # year/month/day
date: 2017/8/10 # year/month/day
time: "18:30"
home: gris # t1
away: bleu # t5
home_points: ~
away_points: ~
home: orange # t3
away: rouge # t4
home_points: 4
away_points: 10
rain: false
-
date: 2017/8/3 # year/month/day
date: 2017/8/10 # year/month/day
time: "20:00"
home: rouge # t4
away: jaune # t6
home_points: ~
away_points: ~
home: jaune # t6
away: bleu # t5
home_points: 12
away_points: 13
rain: false
-
date: 2017/8/3 # year/month/day
date: 2017/8/10 # year/month/day
time: "21:30"
home: vert # t2
away: orange # t3
home_points: ~
away_points: ~
home: gris # t1
away: vert # t2
home_points: 23
away_points: 14
rain: false
# WEEK 13
-
date: 2017/8/10 # year/month/day
date: 2017/8/17 # year/month/day
time: "18:30"
home: jaune # t6
away: gris # t1
home_points: ~
away_points: ~
home: vert # t2
away: jaune # t6
home_points: 15
away_points: 16
rain: false
-
date: 2017/8/10 # year/month/day
date: 2017/8/17 # year/month/day
time: "20:00"
home: bleu # t5
away: vert # t2
home_points: ~
away_points: ~
home: gris # t1
away: orange # t3
home_points: 17
away_points: 11
rain: false
-
date: 2017/8/10 # year/month/day
date: 2017/8/17 # year/month/day
time: "21:30"
home: orange # t3
home: bleu # t5
away: rouge # t4
home_points: ~
away_points: ~
home_points: 12
away_points: 17
rain: false
# WEEK 14
-
date: 2017/8/17 # year/month/day
time: "18:30"
home: rouge # t4
away: bleu # t5
date: 2017/8/24 # year/month/day e 6vs5 et 4vs3,
time: "19:00"
home: rouge # t1
away: bleu
home_points: ~
away_points: ~
rain: false
-
date: 2017/8/17 # year/month/day
time: "20:00"
home: vert # t2
away: gris # t1
home_points: ~
away_points: ~
rain: false
-
date: 2017/8/17 # year/month/day
time: "21:30"
home: orange # t3
away: jaune # t6
date: 2017/8/24 # year/month/day
time: "20:30"
home: jaune # t2
away: orange # t5
home_points: ~
away_points: ~
rain: false
# WEEK 15
-
date: 2017/8/24 # year/month/day
date: 2017/8/31 # year/month/day e 6vs5 et 4vs3,
time: "18:30"
home: gris # t1
away: rouge # t4
home: bleu
away: gris # t3
home_points: ~
away_points: ~
rain: false
-
date: 2017/8/24 # year/month/day
date: 2017/8/31 # year/month/day
time: "20:00"
home: bleu # t5
away: orange # t3
home: orange
away: vert # t5
home_points: ~
away_points: ~
rain: false
-
date: 2017/8/24 # year/month/day
date: 2017/8/31 # year/month/day
time: "21:30"
home: jaune # t6
away: vert # t2
home: "gagnant bleu-gris" # t2
away: "gagnant orange-vert" # t5
home_points: ~
away_points: ~
rain: false
+294
View File
@@ -0,0 +1,294 @@
---
## Semaine 1
-
date: 2018/5/17 # year/month/day
time: "18:45"
away: jaune
home: gris
home_points: 14
away_points: 16
rain: false
-
date: 2018/5/17 # year/month/day
time: "20:15"
away: vert
home: rouge
home_points: 20
away_points: 9
rain: false
## Semaine 2
-
date: 2018/5/24 # year/month/day
time: "18:45"
away: vert
home: gris
home_points: 15
away_points: 7
rain: false
-
date: 2018/5/24 # year/month/day
time: "20:15"
away: rouge
home: jaune
home_points: 25
away_points: 4
rain: false
## Semaine 3
-
date: 2018/5/31 # year/month/day
time: "18:45"
away: vert
home: jaune
home_points: 9
away_points: 15
rain: false
-
date: 2018/5/31 # year/month/day
time: "20:15"
away: rouge
home: gris
home_points: 13
away_points: 12
rain: false
## Semaine 4
-
date: 2018/6/7 # year/month/day
time: "18:45"
away: rouge
home: vert
home_points: 9
away_points: 16
rain: false
-
date: 2018/6/7 # year/month/day
time: "20:15"
away: gris
home: jaune
home_points: 19
away_points: 8
rain: false
## Semaine 5
-
date: 2018/6/14 # year/month/day
time: "18:45"
away: jaune
home: rouge
home_points: ~
away_points: ~
rain: yes
-
date: 2018/6/14 # year/month/day
time: "20:15"
away: vert
home: gris
home_points: ~
away_points: ~
rain: yes
## Semaine 6
-
date: 2018/6/21 # year/month/day
time: "18:45"
away: gris
home: rouge
home_points: ~
away_points: ~
rain: yes
-
date: 2018/6/21 # year/month/day
time: "20:15"
away: jaune
home: vert
home_points: ~
away_points: ~
rain: yes
## Semaine 7
-
date: 2018/6/28 # year/month/day
time: "18:45"
away: vert
home: rouge
home_points: ~
away_points: ~
rain: true
-
date: 2018/6/28 # year/month/day
time: "20:15"
away: gris
home: jaune
home_points: ~
away_points: ~
rain: true
## Semaine 8
-
date: 2018/7/5 # year/month/day
time: "18:45"
away: jaune
home: rouge
home_points: ~
away_points: ~
rain: true
-
date: 2018/7/5 # year/month/day
time: "20:15"
away: gris
home: vert
home_points: ~
away_points: ~
rain: true
## Semaine 9
-
date: 2018/7/12 # year/month/day
time: "18:45"
away: vert
home: jaune
home_points: 8
away_points: 12
rain: false
-
date: 2018/7/12 # year/month/day
time: "20:15"
away: rouge
home: gris
home_points: 15
away_points: 9
rain: false
## Semaine 10
-
date: 2018/7/19 # year/month/day
time: "18:45"
away: jaune
home: gris
home_points: 6
away_points: 15
rain: false
-
date: 2018/7/19 # year/month/day
time: "20:15"
away: rouge
home: vert
home_points: 12
away_points: 12
rain: false
## Semaine 11
-
date: 2018/7/26 # year/month/day
time: "18:45"
away: vert
home: gris
home_points: 3
away_points: 22
rain: false
-
date: 2018/7/26 # year/month/day
time: "20:15"
away: rouge
home: jaune
home_points: 13
away_points: 11
rain: false
## Semaine 12
-
date: 2018/8/2 # year/month/day
time: "18:45"
away: gris
home: rouge
home_points: 10
away_points: 10
rain: false
-
date: 2018/8/2 # year/month/day
time: "20:15"
away: jaune
home: vert
home_points: 20
away_points: 4
rain: false
## Semaine 13
-
date: 2018/8/9 # year/month/day
time: "18:45"
away: vert
home: rouge
home_points: 2
away_points: 15
rain: false
-
date: 2018/8/9 # year/month/day
time: "20:15"
away: gris
home: jaune
home_points: 19
away_points: 10
rain: false
## Semaine 14
-
date: 2018/8/16 # year/month/day
time: "18:45"
away: jaune
home: rouge
home_points: 5
away_points: 14
rain: false
-
date: 2018/8/16 # year/month/day
time: "20:15"
away: gris
home: vert
home_points: 19
away_points: 5
rain: false
## Semaine 15
-
date: 2018/8/23 # year/month/day
time: "18:45"
away: rouge
home: gris
home_points: 14
away_points: 13
rain: false
-
date: 2018/8/23 # year/month/day
time: "20:15"
away: vert
home: jaune
home_points: 12
away_points: 13
rain: false
## Semaine 16 | Finale
-
date: 2018/8/30 # year/month/day
time: "18:45"
away: rouge
home: gris
home_points: ~
away_points: ~
rain: false
-
date: 2018/8/30 # year/month/day
time: "20:15"
away: vert
home: jaune
home_points: ~
away_points: ~
rain: false
+346
View File
@@ -0,0 +1,346 @@
---
-
date: 2019/05/16
time: "18:45"
away: orange
home: noir
noir : ~
orange : ~
rain: true
-
date: 2019/05/16
time: "20:15"
away: bleu
home: rouge
rouge : ~
bleu : ~
rain: true
-
date: 2019/05/23
time: "18:45"
away: rouge
home: orange
orange : ~
rouge : ~
rain: true
-
date: 2019/05/23
time: "20:15"
away: noir
home: bleu
bleu : ~
noir : ~
rain: true
-
date: 2019/05/30
time: "18:45"
away: orange
home: bleu
bleu : 16
orange : 19
rain: false
-
date: 2019/05/30
time: "20:15"
away: noir
home: rouge
rouge : 13
noir : 9
rain: false
-
date: 2019/06/06
time: "18:45"
away: rouge
home: bleu
bleu : 9
rouge : 11
rain: false
-
date: 2019/06/06
time: "20:15"
away: noir
home: orange
orange : 15
noir : 14
rain: false
-
date: 2019/06/13
time: "18:45"
away: orange
home: rouge
rouge : 14
orange : 6
rain: false
-
date: 2019/06/13
time: "20:15"
away: bleu
home: noir
noir : 1
bleu : 16
rain: false
-
date: 2019/06/15
time: "14:00"
away: orange
home: noir
noir : 14
orange : 2
rain: false
-
date: 2019/06/15
time: "15:30"
away: bleu
home: rouge
rouge : 8
bleu : 9
rain: false
-
date: 2019/06/20
time: "18:45"
away: bleu
home: orange
orange : ~
bleu : ~
rain: true
-
date: 2019/06/20
time: "20:15"
away: rouge
home: noir
noir : ~
rouge : ~
rain: true
-
date: 2019/06/27
time: "18:45"
away: bleu
home: rouge
rouge : 12
bleu : 12
rain: false
-
date: 2019/06/27
time: "20:15"
away: orange
home: noir
noir : 17
orange : 8
rain: false
-
date: 2019/07/04
time: "18:45"
away: noir
home: bleu
bleu : 15
noir : 14
rain: false
-
date: 2019/07/04
time: "20:15"
away: rouge
home: orange
orange : 7
rouge : 17
rain: false
-
date: 2019/07/11
time: "18:45"
away: noir
home: rouge
rouge : ~
noir : ~
rain: yes
-
date: 2019/07/11
time: "20:15"
away: orange
home: bleu
bleu : ~
orange : ~
rain: yes
-
date: 2019/07/18
time: "18:45"
away: rouge
home: bleu
bleu : 12
rouge : 8
rain: false
-
date: 2019/07/18
time: "20:15"
away: noir
home: orange
orange : 6
noir : 6
rain: false
-
date: 2019/07/25
time: "18:45"
away: bleu
home: noir
noir : 11
bleu : 14
rain: false
-
date: 2019/07/25
time: "20:15"
away: orange
home: rouge
rouge : 17
orange : 16
rain: false
-
date: 2019/08/01
time: "18:45"
away: rouge
home: noir
noir : 16
rouge : 9
rain: false
-
date: 2019/08/01
time: "20:15"
away: bleu
home: orange
orange : 16
bleu : 24
rain: false
-
date: 2019/08/08
time: "18:45"
away: rouge
home: noir
noir : 6
rouge : 14
rain: false
-
date: 2019/08/08
time: "20:15"
away: bleu
home: orange
orange : 9
bleu : 18
rain: false
#######################
-
date: 2019/08/10
time: "10:30"
away: orange
home: rouge
orange : 8
rouge : 14
rain: false
-
date: 2019/08/10
time: "12:00"
away: noir
home: bleu
noir : 13
bleu : 14
rain: false
-
date: 2019/08/10
time: "13:30"
away: bleu
home: orange
bleu : 14
orange : 7
rain: false
-
date: 2019/08/10
time: "15:00"
away: rouge
home: noir
rouge : 11
noir : 8
rain: false
#########################
-
date: 2019/08/15
time: "18:45"
away: noir
home: bleu
bleu : ~
noir : ~
rain: false
-
date: 2019/08/15
time: "20:15"
away: rouge
home: orange
orange : ~
rouge : ~
rain: false
-
date: 2019/08/22
time: "18:45"
away: orange
home: bleu
1 : ~
4 : ~
rain: false
-
date: 2019/08/22
time: "20:15"
away: noir
home: rouge
2 : ~
3 : ~
rain: false
-
date: 2019/08/29
time: "18:45"
away: petite
home: finale
finale : ~
petite : ~
rain: false
-
date: 2019/08/29
time: "20:15"
away: grande
home: finale
finale : ~
grande : ~
rain: false
+218
View File
@@ -0,0 +1,218 @@
---
-
date: 2020/07/09
time: '18:30'
away: rouge
home: bleu
bleu : 12
rouge : 13
rain: false
-
date: 2020/07/09
time: '20:00'
away: jaune
home: noir
noir : 14
jaune : 30
rain: false
-
date: 2020/07/16
time: '18:30'
away: bleu
home: noir
noir : 12
bleu : 10
rain: false
-
date: 2020/07/16
time: '20:00'
away: rouge
home: jaune
jaune : 15
rouge : 14
rain: false
-
date: 2020/07/23
time: '18:30'
away: noir
home: rouge
rouge : 6
noir : 11
rain: false
-
date: 2020/07/23
time: '20:00'
away: bleu
home: jaune
jaune : 7
bleu : 10
rain: false
-
date: 2020/08/06
time: '18:30'
away: jaune
home: rouge
rouge : 16
jaune : 10
rain: false
-
date: 2020/08/06
time: '20:00'
away: noir
home: jaune
jaune : 15
noir : 14
rain: false
-
date: 2020/08/06
time: '21:30'
away: noir
home: bleu
bleu : 14
noir : 17
rain: false
-
date: 2020/08/13
time: '18:30'
away: bleu
home: rouge
rouge : 9
bleu : 17
rain: false
-
date: 2020/08/20
time: '18:30'
away: jaune
home: noir
noir : 14
jaune : 18
rain: false
-
date: 2020/08/20
time: '20:00'
away: jaune
home: bleu
bleu : 13
jaune : 6
rain: false
-
date: 2020/08/27
time: '20:00'
away: noir
home: rouge
rouge : 11
noir : 20
rain: false
-
date: 2020/08/27
time: '18:30'
away: bleu
home: noir
noir : 14
bleu : 13
rain: false
-
date: 2020/08/27
time: '21:30'
away: rouge
home: jaune
jaune : 17
rouge : 22
rain: false
-
date: 2020/09/03
time: '18:30'
away: noir
home: rouge
rouge : 19
noir : 12
rain: false
-
date: 2020/09/03
time: '20:00'
away: rouge
home: bleu
bleu : 12
rouge : 23
rain: false
-
date: 2020/09/03
time: '21:30'
away: bleu
home: jaune
jaune : 21
bleu : 19
rain: false
-
date: 2020/09/10
time: '18:30'
away: jaune
home: noir
noir : 15
jaune : 5
rain: false
-
date: 2020/09/10
time: '20:00'
away: bleu
home: rouge
rouge : 8
bleu : 9
rain: false
-
date: 2020/09/17
time: '18:30'
away: jaune
home: rouge
rouge : 19
jaune : 15
rain: false
-
date: 2020/09/17
time: '20:00'
away: bleu
home: noir
noir : 14
bleu : 20
rain: false
-
date: 2020/09/24
time: '18:30'
away: jaune
home: noir
noir : 14
jaune : 16
rain: false
-
date: 2020/09/24
time: '20:00'
away: bleu
home: rouge
rouge : 24
bleu : 23
rain: false
+276
View File
@@ -0,0 +1,276 @@
---
-
date: 2021/06/24 # year/month/day
time: "18:30"
home: gris
away: jaune
gris: ~
jaune: ~
practice: true
rain: false
##################################################################
-
date: 2021/07/01 # year/month/day
time: "18:30"
home: gris
away: jaune
gris: ~
jaune: ~
practice: true
rain: false
##############################################################
-
date: 2021/07/08 # year/month/day
time: "18:30"
away: bleu
home: rouge
bleu: ~
rouge: ~
rain: true
-
date: 2021/07/08 # year/month/day
time: "20:00"
away: jaune
home: orange
jaune: ~
orange: ~
rain: true
##############################################################
-
date: 2021/07/15 # year/month/day
time: "18:30"
away: rouge
home: jaune
rouge: 13
jaune: 12
rain: false
-
date: 2021/07/15 # year/month/day
time: "20:00"
away: bleu
home: orange
bleu: 11
orange: 12
rain: false
##############################################################
-
date: 2021/07/22 # year/month/day
time: "18:30"
away: jaune
home: bleu
jaune: 9
bleu: 19
rain: false
-
date: 2021/07/22 # year/month/day
time: "20:00"
away: orange
home: rouge
orange: 16 # mais rich a peté ça coche, ca devrait donc enlever des points.
rouge: 10
rain: false
##############################################################
-
date: 2021/07/29 # year/month/day
time: "18:30"
away: orange
home: jaune
orange: 10
jaune: 8
rain: false
-
date: 2021/07/29 # year/month/day
time: "20:00"
away: rouge
home: bleu
rouge: 10
bleu: 10
rain: false
##############################################################
-
date: 2021/08/05 # year/month/day
time: "18:30"
away: rouge
home: orange
rouge: ~
orange: ~
rain: false
-
date: 2021/08/05 # year/month/day
time: "20:00"
away: bleu
home: jaune
bleu: ~
jaune: ~
rain: false
##############################################################
-
date: 2021/08/12 # year/month/day
time: "18:30"
away: orange
home: bleu
orange: ~
bleu: ~
rain: false
-
date: 2021/08/12 # year/month/day
time: "20:00"
away: jaune
home: rouge
jaune: ~
rouge: ~
rain: false
##############################################################
-
date: 2021/08/19 # year/month/day
time: "18:30"
away: bleu
home: orange
bleu: ~
orange: ~
rain: false
-
date: 2021/08/19 # year/month/day
time: "20:00"
away: rouge
home: jaune
rouge: ~
jaune: ~
rain: false
##############################################################
-
date: 2021/08/26 # year/month/day
time: "18:30"
away: jaune
home: bleu
jaune: ~
bleu: ~
rain: false
-
date: 2021/08/26 # year/month/day
time: "20:00"
away: orange
home: rouge
orange: ~
rouge: ~
rain: false
##############################################################
-
date: 2021/09/02 # year/month/day
time: "18:30"
away: rouge
home: bleu
rouge: ~
bleu: ~
rain: false
-
date: 2021/09/02 # year/month/day
time: "20:00"
away: orange
home: jaune
orange: ~
jaune: ~
rain: false
##############################################################
-
date: 2021/09/09 # year/month/day
time: "18:30"
away: jaune
home: rouge
jaune: ~
rouge: ~
rain: false
-
date: 2021/09/09 # year/month/day
time: "20:00"
away: orange
home: bleu
orange: ~
bleu: ~
rain: false
##############################################################
-
date: 2021/09/16 # year/month/day
time: "18:30"
away: rouge
home: orange
rouge: ~
orange: ~
rain: false
-
date: 2021/09/16 # year/month/day
time: "20:00"
away: bleu
home: jaune
bleu: ~
jaune: ~
rain: false
##############################################################
-
date: 2021/09/23 # year/month/day
time: "18:30"
away: jaune
home: orange
jaune: ~
orange: ~
rain: false
-
date: 2021/09/23 # year/month/day
time: "20:00"
away: bleu
home: rouge
bleu: ~
rouge: ~
rain: false
+361
View File
@@ -0,0 +1,361 @@
---
-
date: 2022/05/19
time: '18:45'
away: bleu
home: rouge
bleu : ~
rouge : ~
practice: false
rain: true
-
date: 2022/05/19
time: '20:15'
away: orange
home: jaune
orange : ~
jaune : ~
practice: false
rain: true
##
-
date: 2022/05/26
time: '18:45'
away: rouge
home: orange
rouge : ~
orange : ~
practice: false
rain: false
-
date: 2022/05/26
time: '20:15'
away: jaune
home: bleu
jaune : ~
bleu : ~
practice: false
rain: false
##
-
date: 2022/06/02
time: '18:45'
away: jaune
home: rouge
bleu : ~
rouge : ~
practice: false
rain: false
-
date: 2022/06/02
time: '20:15'
away: bleu
home: orange
bleu : ~
rouge : ~
practice: false
rain: false
##
-
date: 2022/06/09
time: '18:45'
away: jaune
home: orange
jaune : ~
orange : ~
practice: false
rain: false
-
date: 2022/06/09
time: '20:15'
away: rouge
home: bleu
rouge : ~
bleu : ~
practice: false
rain: false
##
-
date: 2022/06/16
time: '18:45'
away: jaune
home: bleu
jaune : ~
bleu : ~
practice: false
rain: false
-
date: 2022/06/16
time: '20:15'
away: orange
home: rouge
orange : ~
rouge : ~
practice: false
rain: false
##
-
date: 2022/06/23
time: '18:45'
away: bleu
home: orange
bleu : ~
orange : ~
practice: false
rain: false
-
date: 2022/06/23
time: '20:15'
away: rouge
home: jaune
rouge : ~
jaune : ~
practice: false
rain: false
##
-
date: 2022/06/30
time: '18:45'
away: orange
home: rouge
orange : ~
rouge : ~
practice: false
rain: false
-
date: 2022/06/30
time: '20:15'
away: bleu
home: jaune
bleu : ~
jaune : ~
practice: false
rain: false
##
-
date: 2022/07/07
time: '18:45'
away: jaune
home: orange
orange : ~
jaune : ~
practice: false
rain: false
-
date: 2022/07/07
time: '20:15'
away: bleu
home: jaune
bleu : ~
jaune : ~
practice: false
rain: false
##
-
date: 2022/07/14
time: '18:45'
away: rouge
home: jaune
rouge : ~
jaune : ~
practice: false
rain: false
-
date: 2022/07/14
time: '20:15'
away: orange
home: bleu
orange : ~
bleu : ~
practice: false
rain: false
##
-
date: 2022/07/21
time: '18:45'
away: bleu
home: rouge
bleu : ~
rouge : ~
practice: false
rain: false
-
date: 2022/07/21
time: '20:15'
away: orange
home: jaune
orange : ~
jaune : ~
practice: false
rain: false
##
-
date: 2022/07/28
time: '18:45'
away: bleu
home: jaune
bleu : ~
jaune : ~
practice: false
rain: false
-
date: 2022/07/28
time: '20:15'
away: rouge
home: orange
rouge : ~
orange : ~
practice: false
rain: false
##
-
date: 2022/08/04
time: '18:45'
away: orange
home: bleu
orange : ~
bleu : ~
practice: false
rain: false
-
date: 2022/08/04
time: '20:15'
away: jaune
home: rouge
jaune : ~
rouge : ~
practice: false
rain: false
##
-
date: 2022/08/11
time: '18:45'
away: jaune
home: bleu
jaune : ~
bleu : ~
practice: false
rain: false
-
date: 2022/08/11
time: '20:15'
away: orange
home: rouge
orange : ~
rouge : ~
practice: false
rain: false
##
-
date: 2022/08/11
time: '18:45'
away: jaune
home: bleu
jaune : ~
bleu : ~
practice: false
rain: false
-
date: 2022/08/11
time: '20:15'
away: orange
home: rouge
orange : ~
rouge : ~
practice: false
rain: false
##
-
date: 2022/08/18
time: '18:45'
away: bleu
home: rouge
rouge : ~
bleu : ~
practice: false
rain: false
-
date: 2022/08/18
time: '20:15'
away: orange
home: jaune
orange : ~
jaune : ~
practice: false
rain: false
##
-
date: 2022/08/25
time: '18:45'
away: rouge
home: jaune
rouge : ~
jaune : ~
practice: false
rain: false
-
date: 2022/08/25
time: '20:15'
away: bleu
home: orange
bleu : ~
orange : ~
practice: false
rain: false
+5
View File
@@ -0,0 +1,5 @@
[Dolphin]
SortRole=modificationtime
Timestamp=2018,3,19,17,32,48
Version=4
ViewMode=1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Generated
+42
View File
@@ -0,0 +1,42 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1649676176,
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1650998007,
"narHash": "sha256-NcJnbGDBBN023x8s3ll3HZxBcQoPq1ry9E2sjg+4flc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a3917caedfead19f853aa5769de4c3ea4e4db584",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-21.11",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+32
View File
@@ -0,0 +1,32 @@
{
description = "Trying nest.js";
inputs = {
nixpkgs.url = "nixpkgs/nixos-21.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
rec {
packages = flake-utils.lib.flattenTree {
hello = pkgs.hello;
gitAndTools = pkgs.gitAndTools;
nodejs = pkgs.nodejs;
};
defaultPackage = packages.hello;
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
defaultApp = apps.hello;
devShell = pkgs.mkShell {
name = "Nid-JS";
buildInputs = with pkgs; [
nodejs
flyway
nodePackages.node2nix
];
};
}
);
}
+61 -38
View File
@@ -1,8 +1,9 @@
var gulp = require('gulp');
const { series } = require('gulp');
var help = require('gulp-task-listing');
var clean = require('gulp-clean');
var toml = require('gulp-toml');
var sass = require('gulp-sass');
var gulpSass = require('gulp-sass');
var rename = require("gulp-rename");
var yaml = require('gulp-yaml');
var template = require('gulp-template');
@@ -12,27 +13,28 @@ var marked = require('marked');
var spritz = require('spritzjs');
var modify = require('gulp-modify');
var _ = require('lodash');
var fs = require('fs');
gulp.task('help', help);
exports.help = help;
gulp.task('sass', [], function(){
exports.sass = function sass(){
var extraSassPath = ['./node_modules/'];
return gulp.src('./scss/*.scss')
.pipe(sass({includePaths: extraSassPath}).on('error', console.log))
.pipe(gulpSass({includePaths: extraSassPath}).on('error', gulpSass.logError))
.pipe(gulp.dest('./css'));
});
}
gulp.task('clean', function(){
exports.clean = function clean(){
return gulp.src(["lib/", "css/"], {read: false})
.pipe(clean());
});
}
gulp.task('compile-results', function(){
exports.compileResults = function compileResults(){
return gulp.src('data/*.yaml')
.pipe(yaml({safe: true}))
.pipe(yaml({safe: true}).on('error', console.log))
.pipe(gulp.dest('./api'));
});
};
var encryptFile = function(message){
var keyLengthInBytes = 128;
@@ -48,7 +50,7 @@ var wrapEncryptedData = function(encryptedData){
return 'window.encryptedPlayerList = ' + encryptedData + ';';
};
gulp.task('encrypt-results', ['compile-results'], function(){
exports.encryptResults = function encryptResults(){
return gulp.src('api/*.clear.json')
.pipe(modify({
fileModifier: function(file, content) {
@@ -61,23 +63,47 @@ gulp.task('encrypt-results', ['compile-results'], function(){
return path;
}))
.pipe(gulp.dest('./api'));
});
};
gulp.task('template-prod', function () {
function getAvailableYears(files) {
var rgx = /^resultats(\d*).yaml/;
return files
.map((f) => rgx.exec(f))
.filter(_.isArray)
.map((a) => _.get(a, 1, ''))
.filter(_.identity)
.sort();
}
exports.templateProd = function templateProd() {
var dataFiles = fs.readdirSync('./data');
var data = {
production: true,
availableYears: JSON.stringify(getAvailableYears(dataFiles)),
salt: process.env.SALT,
playerListLocation: process.env.PLAYER_LIST_LOCATION}
return gulp.src('index.tmpl.html')
.pipe(rename("index.html"))
.pipe(template({production: true, salt: process.env.SALT, playerListLocation: process.env.PLAYER_LIST_LOCATION}))
.pipe(template(data))
.pipe(gulp.dest('.'));
});
};
gulp.task('template-dev', function () {
exports.templateDev = function templateDev() {
var dataFiles = fs.readdirSync('./data');
var data = {
availableYears: JSON.stringify(getAvailableYears(dataFiles)),
production: false,
salt: 'salt',
playerListLocation: 'api/players.spritz.js'}
console.log(data);
return gulp.src('index.tmpl.html')
.pipe(rename("index.html"))
.pipe(template({production: false, salt: 'salt', playerListLocation: 'api/players.spritz.js'}))
.pipe(template(data))
.pipe(gulp.dest('.'));
});
};
gulp.task('compile-articles', function(){
exports.compileArticles = function compileArticles(){
var transformArticle = function(article){
var isMarkdownKey = /markdown/i;
@@ -91,7 +117,7 @@ gulp.task('compile-articles', function(){
return JSON.stringify(article, null, 4);
};
gulp.src('data/articles/**/*.toml.md')
return gulp.src('data/articles/**/*.toml.md')
.pipe(toml({to: transformArticle}))
.pipe(wrapper({
header: "define(['m', '_'], function (m, _ ) {\nreturn ",
@@ -103,26 +129,23 @@ gulp.task('compile-articles', function(){
return path;
}))
.pipe(gulp.dest('./script/articles/'));
};
});
gulp.task('default', ['sass', 'encrypt-results', 'compile-results', 'compile-articles']);
exports.base = series(
exports.sass,
exports.compileResults,
exports.compileArticles,
exports.encryptResults
gulp.task('prod', ['default', 'template-prod']);
);
gulp.task('webserver', function(){
return gulp.src('.')
.pipe(webserver({
host: '0.0.0.0',
port: 4321,
livereload: false,
directoryListing: false,
}));
});
exports.prod = series(
exports.base,
exports.templateProd
);
gulp.task('dev', ['default', 'webserver', 'template-dev'], function(){
gulp.watch('./scss/*.scss', ['sass']);
gulp.watch('*.tmpl.html', ['template-dev']);
gulp.watch('./data/articles/**/*', ['compile-articles']);
return gulp.watch('./data/*.yaml', ['encrypt-results', 'compile-results']);
});
exports.dev = series(
exports.base,
exports.templateDev
);
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

+2 -1
View File
@@ -7,11 +7,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<script>
window.salt = "<%= salt %>";
window.availableYears = <%= availableYears %>;
</script>
<script src="<%= playerListLocation %>"></script>
<%if(production){ %>
+4937
View File
File diff suppressed because it is too large. Load diff
+16 -20
View File
@@ -4,28 +4,24 @@
"description": "Main web site of Balle Phénix.",
"main": "index.html",
"dependencies": {
"gulp": "^3.9.0",
"gulp-clean": "^0.3.1",
"almond": "^0.3.3",
"gulp": "^4.0.2",
"gulp-clean": "^0.4.0",
"gulp-modify": "^0.1.1",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.1.1",
"gulp-task-listing": "^1.0.1",
"gulp-template": "^3.1.0",
"gulp-toml": "^0.1.1",
"gulp-wrap": "^0.11.0",
"gulp-wrapper": "^1.0.0",
"lodash": "^4.6.1",
"marked": "^0.3.5",
"requirejs": "^2.1.22",
"uikit": "2.27.2",
"mithril": "~0.2.1",
"almond": "~0.3.1",
"requirejs": "~2.1.22",
"spritzjs": "https://gitlab.com/didiercrunch/spritzjs.git"
},
"devDependencies": {
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.1.0",
"gulp-task-listing": "^1.1.0",
"gulp-template": "^5.0.0",
"gulp-toml": "^0.2.0",
"gulp-webserver": "^0.9.1",
"gulp-yaml": "^1.0.1"
"gulp-wrapper": "^1.0.0",
"gulp-yaml": "^2.0.4",
"lodash": "^4.17.21",
"marked": "^2.0.7",
"mithril": "^0.2.5",
"requirejs": "^2.3.6",
"spritzjs": "https://gitlab.com/didiercrunch/spritzjs.git",
"uikit": "^2.27.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
+2 -8
View File
@@ -1,4 +1,4 @@
define(['m', 'articles/saison2017', 'articles/saison_retardee', 'articles/inscription_2017', 'articles/inscription', 'articles/inscription_rappel', 'articles/walter_stewart', 'articles/changement_de_parc'], function (m, saison2017, saison_retardee, inscription_2017, inscription, inscription_rappel, walter_stewart, changement_de_parc) {
define(['m', 'articles/saison_2021'], function (m, saison_2021) {
var simplifyArticleStructure = function(article){
var ret = {};
_.each(article, function(section, sectionName){
@@ -8,13 +8,7 @@ define(['m', 'articles/saison2017', 'articles/saison_retardee', 'articles/inscri
};
var articles = [
saison2017,
saison_retardee,
inscription_2017,
changement_de_parc,
walter_stewart,
inscription_rappel,
inscription
saison_2021
];
return _.map(articles, simplifyArticleStructure);
+1 -1
View File
@@ -1,7 +1,7 @@
define(['m', '_'], function (m, _ ) {
return {
"title": {
"innerMarkdown": "<h2 id=\"d-but-saison-2017-retard-e\">Début saison 2017 retardée</h2>\n"
"innerMarkdown": "<h2 id=\"début-saison-2017-retardée\">Début saison 2017 retardée</h2>\n"
},
"meta": {
"innerMarkdown": "<p>Samedi 23 avril 2017</p>\n"
+1
View File
@@ -14,6 +14,7 @@ requirejs(['m', 'views/mainPage', 'views/historicPage', 'views/newsPage', 'views
"/nouvelles": newsPage,
"/inscription-form": inscriptionForm,
"/calendrier": calendarPage,
"/calendrier/:year": calendarPage,
"/reglement": rulesPage,
"/photos": photosPage,
"/membre": confidentialPage,
+17
View File
@@ -14,7 +14,18 @@ define(['_'], function(_) {
return res;
};
resultParser._setCanonicalPoints = function(res){
if(!_.isNumber(res.home_points) && _.isNumber(_.get(res, res.home))){
res.home_points = res[res.home];
}
if(!_.isNumber(res.away_points) && _.isNumber(_.get(res, res.away))){
res.away_points = res[res.away];
}
return res;
}
resultParser.parseResults = function(rawResults){
rawResults = _.map(rawResults, resultParser._setCanonicalPoints);
rawResults = _.map(rawResults, resultParser._addJSDateToResult);
rawResults = _.map(rawResults, resultParser._addCustomStyle);
return rawResults;
@@ -107,7 +118,13 @@ define(['_'], function(_) {
});
};
resultParser._isValidGame = function(game){
return !game.rain && ! game.practice;
};
resultParser.getStats = function(rawResults){
rawResults = _.filter(rawResults, resultParser._isValidGame);
rawResults = _.map(rawResults, resultParser._setCanonicalPoints);
var allTeams = resultParser._getAllTeams(resultParser._removeTemporaryResults(rawResults));
var getTeamStats = _.partial(resultParser._getTeamStats, rawResults);
return _.map(allTeams, getTeamStats);
+3 -1
View File
@@ -3,12 +3,14 @@ define(['m', '_'], function (m, _) {
teams.teams = function(){
return [
{name: 'remplaçants', color: '#FFA500'},
{name: 'jaune', color: '#FF0'},
{name:'rouge', color: '#F00'},
{name:'bleu', color: '#00F'},
{name:'gris', color: '#808080'},
{name:'vert', color: '#008000'},
{name: 'orange', color: '#FFA500'}
{name: 'noir', color: '#000000'},
{name: 'orange', color: '#FFA500'},
];
};
+31 -4
View File
@@ -51,14 +51,41 @@ define(['m'], function(m) {
};
util.facebookLink = function(){
return m('a[href="https://www.facebook.com/LigueDeBalleLesPhenix"]',
return m('a[href="https://www.facebook.com/SportsPhenixMtl"]',
m('i.fa.fa-facebook-square')
);
};
util.resultatsURL = function(){
var cacheBuster = 2;
return "api/resultats.json?_=" + cacheBuster;
util.emailLink = function(){
return m('a[href="mailto:sportsphenixmtl@gmail.com"]', 'sportsphenixmtl@gmail.com');
};
util.resultatsURL = function(year){
var cacheBuster = window.Date.now();
year = !!year ? year: util.getDefaultYear();
return "api/resultats" + year + ".json?_=" + cacheBuster;
};
util.getAvailableYears = function(){
if(window.availableYears){
return _.clone(window.availableYears)
}
return [];
};
util.getDefaultYear = function(){
return _.max(util.getAvailableYears());
}
util.getResults = function(year){
var url = util.resultatsURL(year);
return m.request({method: "GET", url: url})
};
util.getDefaultResults = function(){
return util.getResults(util.getDefaultYear());
};
return util;
+60 -69
View File
@@ -1,9 +1,13 @@
define(['m', '_', 'util', 'resultParser', 'teams', 'views/topNavBar', 'views/footer', 'images/rain.svg'], function(m, _, util, resultParser, teams, topNavBar, footer, rainSvg) {
define(['m', '_', 'util', 'resultParser', 'teams', 'views/topNavBar', 'views/footer', 'views/schedulView'], function(m, _, util, resultParser, teams, topNavBar, footer, schedulView) {
function ppYear(year, availableYears) {
return _.last(availableYears) == year ? "" : year;
}
var statsView = {};
statsView.controller = function(){
statsView.controller = function(year){
var games = m.prop([]);
return m.request({method: "GET", url: "api/resultats.json"})
return util.getResults(year)
.then(games)
.then(resultParser.getStats);
};
@@ -25,8 +29,14 @@ define(['m', '_', 'util', 'resultParser', 'teams', 'views/topNavBar', 'views/foo
]);
};
statsView.isStatForValidTeam = function(stat){
var teamNames = _.map(teams.teams(), 'name');
return _.includes(teamNames, stat.team);
}
statsView.mainTable = function(stats){
var orderedStats = _.reverse(_.sortBy(stats, ['victories', 'pointsFor']));
var orderedStats = _.reverse(_.sortBy(stats, ['points', 'pointsFor']));
return m('table.uk-table.uk-table-hover.uk-table-striped',[
m('thead', m('tr', [
m('th', 'Équipes'),
@@ -39,7 +49,10 @@ define(['m', '_', 'util', 'resultParser', 'teams', 'views/topNavBar', 'views/foo
m('th', 'DIF'),
m('th', 'PTS')
])),
m('tbody', _.map(orderedStats, statsView.getStatRow))
m('tbody', _(orderedStats)
.filter(statsView.isStatForValidTeam)
.map(statsView.getStatRow)
.value())
]);
};
@@ -54,10 +67,10 @@ define(['m', '_', 'util', 'resultParser', 'teams', 'views/topNavBar', 'views/foo
]);
};
statsView.view = function(stats){
statsView.view = function(stats, year){
return m('div.uk-grid',
m('div.uk-width-medium-1-1.uk-width-large-1-1.uk-container-center',[
m('h2', 'Classement 2017'),
m('h2', 'Classement ' + year),
statsView.mainTable(stats()),
statsView.legend()
]));
@@ -66,80 +79,58 @@ define(['m', '_', 'util', 'resultParser', 'teams', 'views/topNavBar', 'views/foo
var tabView = {};
tabView.view = function(){
return m('div.uk-margin', m('h2', 'Calendrier 2017'),
m('ul.uk-tab', [
m('li.uk-active', m('a', 'Saison')),
m('li', m('a', 'Éliminatoire'))
]));
tabView._createTab = function(activeYear, availableYears, year){
var isActive = (activeYear == year) || (activeYear == ppYear(year, availableYears));
return m('li', {'class': isActive ? 'uk-active': ''}, // 'uk-active'
m('a', {href: '#/calendrier/' + ppYear(year, availableYears)}, 'Saison ' + year));
}
tabView.view = function(vnode, isPlayoff, activeYear, availableYears){
var createTab = _.partial(tabView._createTab, activeYear, availableYears);
return m('div.uk-margin', m('h2', 'Calendrier ' + ppYear(activeYear, availableYears)),
m('ul.uk-tab', _.reverse(_.map(availableYears, createTab))));
};
var schedulView = {};
var playoffView = {};
schedulView.controller = function(){
var games = m.prop([]);
return m.request({method: "GET", url: "api/resultats.json"})
.then(games)
.then(resultParser.getNightGames);
playoffView.line = function(x1, y1, x2, y2){
return m('line', {'x1': x1,
'y1': y1,
'x2': x2,
'y2': y2,
style: 'stroke:rgb(255,0,0);stroke-width:2'})
}
playoffView.horizontalLine = function(x1, x2, y){
return playoffView.line(x1, y, x2, y);
};
schedulView._getTeamTag = function(teamName){
var teamColor = teams.getTeamColor(teamName);
return [
m('i.fa.fa-flag', {style: {color: teamColor}}),
m('span', ' ' + teamName)
];
};
schedulView._asGamePoints = function(points){
return !_.isNumber(points) ? '-' : points + '';
};
schedulView._gameName = function(game){
if(game.rain){
return [rainSvg('1.5em'), " ", game.time];
}
return [game.time, " ", m('span', {style: {visibility: 'hidden'}}, rainSvg('1.5em'))];
};
schedulView._gameRow = function(game){
return m('tr',[
m('td', schedulView._gameName(game)),
m('td', schedulView._getTeamTag(game.home)),
m('td', schedulView._asGamePoints(game.home_points)),
m('td', 'vs'),
m('td', schedulView._getTeamTag(game.away)),
m('td', schedulView._asGamePoints(game.away_points))
]);
};
schedulView._gameView = function(gameNight){
return m('div', [m('h3', util.formatDate(gameNight.jsDate)),
m('table.uk-table.uk-table-hover.uk-table-condensed.uk-table-striped',
m('tbody',[
_.map(gameNight.games, schedulView._gameRow),
])
)
]);
};
schedulView.view = function(games){
return m('div.uk-grid',
m('div.uk-width-large-3-5.uk-width-medium-1-1',
_.concat([m('h2', 'Calendrier 2017')], _.map(games(), schedulView._gameView))));
playoffView.view = function(){
var width = 600;
var height = 600;
var padding = 40;
return m('div',
m('svg', {width: width, height: height},
playoffView.horizontalLine(padding, width/2 - padding, height/3),
playoffView.horizontalLine(padding, width/2 - padding, 2 * height/3)
));
};
calendarPage = {};
calendarPage.view = function(){
calendarPage.view = function(vnode){
var isPlayoff = window.location.hash.endsWith('playoff');
var availableYears = util.getAvailableYears();
var year = _.get(m.route.param(), 'year', util.getDefaultYear());
var main = isPlayoff ? m.component(playoffView) : m.component(schedulView, year, availableYears);
return [m.component(topNavBar),
m('div.uk-grid.uk-margin-top.uk-margin-bottom',
m('div.uk-width-large-3-5.uk-width-medium-4-5.uk-width-small-1-1.uk-container-center',[
m.component(statsView),
m.component(tabView),
m.component(schedulView)])),
m.component(statsView, year, availableYears),
m.component(tabView, isPlayoff, year, availableYears),
main
])),
m.component(footer)];
};
+3 -7
View File
@@ -12,16 +12,12 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer'], fu
m('div.uk-width-1-1', contactBody.logo()));
};
contactBody.email = function(){
return m('a[href=mailto:ballephenix@gmail.com]', 'ballephenix@gmail.com');
};
contactBody.tel = function(){
return ' (514) 563-1736';
return ' (514) 838-8950';
};
contactBody.address = function(){
return m('p', ' 9200 rue hochelage, App 205', m('br'), 'Montréal, Québec H1L 0B2');
return m('p', ' 10454 Sylvain-Garneau', m('br'), 'Montréal, Québec H1C 0A2');
};
contactBody.website = function(){
@@ -35,7 +31,7 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer'], fu
m('table.uk-table',
m('tr',
m('td.uk-text-right', m('i.fa.fa-desktop')),
m('td', contactBody.email())
m('td', util.emailLink())
),
m('tr',
m('td.uk-text-right', m('i.fa.fa-phone')),
+1 -1
View File
@@ -13,7 +13,7 @@ define(['m', '_', 'util'], function (m, _, util) {
m('div.uk-container.uk-container-center.uk-text-center', [
m('div.uk-panel', footer.wording()),
m('ul.uk-subnav.uk-subnav-line.uk-flex-center',
m('li', m('a[href="mailto:ballephenix@gmail.com"]', 'ballephenix@gmail.com'))),
m('li', util.emailLink())),
m('h1', util.facebookLink())
])
);
+12 -74
View File
@@ -1,4 +1,4 @@
define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'articles/articles', 'images/rain.svg'], function (m, _ , util, resultParser, topNavBar, footer, articles, rainSvg) {
define(['m', '_', 'views/nextGameDaySchedule', 'views/topNavBar', 'views/footer', 'articles/articles'], function (m, _ , nextGameDaySchedule, topNavBar, footer, articles) {
var mainPageLogo = {};
mainPageLogo.view = function(){
@@ -11,87 +11,25 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
var mainPageNews = {};
mainPageNews.showMiniArticle = function(article){
return m('div', m('h3.uk-panel-title', m('a.uk-link-muted', {href: '#/nouvelles'}, article.title)),
m('p', article.smallBody || article.body));
}
mainPageNews.view = function(){
var article = _.get(articles, 0, {});
return m('div.uk-panel.uk-panel-box',[
m('div.uk-panel-badge.uk-badge', [
m('i.fa.fa-newspaper-o', {style: {'font-size': '1.7em'}})
]),
m('h3.uk-panel-title', m('a.uk-link-muted', {href: '#/nouvelles'}, article.title)),
m('p', article.smallBody || article.body)
mainPageNews.showMiniArticle(_.get(articles, 0, {}))
]);
};
var nextGameDaySchedule = {};
nextGameDaySchedule._toDay = function(){
var now = new Date();
return new Date(now.getFullYear(), now.getMonth(), now.getDate());
};
nextGameDaySchedule.controller = function(){
var games = m.prop([]);
var toDay = new Date();
return m.request({method: "GET", url: util.resultatsURL()})
.then(games)
.then(resultParser.getNightGames)
.then(function(nightGames){
return nextGameDaySchedule._getNextNightGame(nightGames, nextGameDaySchedule._toDay()).games;
});
};
nextGameDaySchedule._getNextNightGame = function(games, date){
return _.first(_.filter(games, function(game){
return game.jsDate.getTime() >= date.getTime();
}));
};
nextGameDaySchedule._getTableHead = function(){
return m('thead', m('tr', [
m('td', 'Date'),
m('td', 'Heure'),
m('td', 'Visiteur'),
m('td', 'Receveur')
]));
};
nextGameDaySchedule._responsoveText = function(largeText, smallText, rain){
var ret = [];
if(rain){
ret.push(rainSvg('1.5em'));
ret.push(' ');
}
ret.push(m('span.uk-visible-large', largeText));
ret.push(m('span.uk-hidden-large', smallText));
return ret;
};
nextGameDaySchedule._getGamesRow = function(game){
return m('tr', [
m('td', nextGameDaySchedule._responsoveText(util.formatDate(game.jsDate),
util.formatDateSmall(game.jsDate),
game.rain)),
m('td', game.time),
m('td', game.away),
m('td', game.home)
]);
};
nextGameDaySchedule._getGamesRows = function(games){
return _.map(games(), nextGameDaySchedule._getGamesRow);
};
nextGameDaySchedule.view = function(games){
return m('table.uk-table.uk-table-hover.uk-table-striped.uk-table-condensed',[
nextGameDaySchedule._getTableHead(),
m('tbody',
nextGameDaySchedule._getGamesRows(games)
)]);
};
var scheduleNotYetSet = {};
scheduleNotYetSet. view = function(){
scheduleNotYetSet.view = function(){
return m('div',
m('h4', 'À venir...'),
m('p', "Suite a la situation au parc Walter-Stewart, " +
@@ -105,7 +43,7 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
mainPageSchedule.view = function(){
return m('div.uk-panel.uk-panel-box',[
m('div.uk-panel-badge.uk-badge', m('i.fa.fa-calendar', {style: {'font-size': '1.7em'}})),
m('h3.uk-panel-title', m('a.uk-link-muted', {href: '#/calendrier'}, 'Horaire')),
m('h3.uk-panel-title', m('a.uk-link-muted', {href: '#/calendrier'}, 'Calendrier')),
m.component(nextGameDaySchedule)
]);
};
@@ -155,8 +93,8 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
m('div.uk-panel-badge.uk-badge', [
m('i.fa.fa-map-o', {style: {'font-size': '1.7em'}})
]),
m('h3.uk-panel-title', 'Parc Georges-Vernot'),
mainMap.getGeorgesVernotMap()
m('h3.uk-panel-title', 'Parc Walter-Stewart'),
mainMap.getWalterStewartMap()
]);
};
+73
View File
@@ -0,0 +1,73 @@
define(['m', '_', 'util', 'resultParser', 'views/scheduleTeamTags', 'images/rain.svg'], function (m, _ , util, resultParser, scheduleTeamTags, rainSvg) {
var nextGameDaySchedule = {};
nextGameDaySchedule._toDay = function(){
var now = new Date();
return new Date(now.getFullYear(), now.getMonth(), now.getDate());
};
nextGameDaySchedule.controller = function(){
var games = m.prop([]);
return util.getDefaultResults()
.then(games)
.then(resultParser.getNightGames)
.then(function(nightGames){
return nextGameDaySchedule._getNextNightGame(nightGames, nextGameDaySchedule._toDay()).games;
});
};
nextGameDaySchedule._getNextNightGame = function(games, date){
return _.first(_.filter(games, function(game){
return game.jsDate.getTime() >= date.getTime();
}));
};
nextGameDaySchedule._getTableHead = function(){
return m('thead', m('tr', [
m('td', 'Date'),
m('td', 'Heure'),
m('td', 'Receveur'),
m('td', 'Visiteur')
]));
};
nextGameDaySchedule._responsoveText = function(largeText, smallText, game){
var ret = [];
if(game.rain){
ret.push(rainSvg('1.5em'));
ret.push(' ');
} else if(game.practice){
ret.push(m('span.uk-badge.uk-badge-success', 'pratique!'));
ret.push(' ');
}
ret.push(m('span.uk-visible-large', largeText));
ret.push(m('span.uk-hidden-large', smallText));
return ret;
};
nextGameDaySchedule._getGamesRow = function(game){
return m('tr', [
m('td', nextGameDaySchedule._responsoveText(util.formatDate(game.jsDate),
util.formatDateSmall(game.jsDate),
game)),
m('td', game.time),
m('td', scheduleTeamTags.getHomeTeamTag(game)),
m('td',scheduleTeamTags.getAwayTeamTag(game))
]);
};
nextGameDaySchedule._getGamesRows = function(games){
return _.map(games(), nextGameDaySchedule._getGamesRow);
};
nextGameDaySchedule.view = function(games){
return m('table.uk-table.uk-table-hover.uk-table-striped.uk-table-condensed',[
nextGameDaySchedule._getTableHead(),
m('tbody',
nextGameDaySchedule._getGamesRows(games)
)]);
};
return nextGameDaySchedule;
});
+2 -2
View File
@@ -268,6 +268,7 @@ define(['m', '_', 'spritz', 'teams'], function (m, _ , spritz, teams) {
playersTable.tableBody = function(players, visibleTeams, activatedScores, searchTerm){
return m('tbody',
_(players)
.filter(_.isObject)
.filter(playersTable.onlyPlayerOfTeams(visibleTeams))
.filter(playersTable.onlyPlayerOfScore(activatedScores))
.filter(playersTable.playerHasBeenSearchedFor(searchTerm))
@@ -309,8 +310,7 @@ define(['m', '_', 'spritz', 'teams'], function (m, _ , spritz, teams) {
return m('div.uk-grid.uk-margin-top.uk-margin-bottom',
m('div.uk-width-large-3-5.uk-width-small-1-1.uk-container-center', [
m.component(playersSelectionBar, model),
m.component(playersTable, model),
playersPage.downloadButton()
m.component(playersTable, model)
]));
};
+9 -19
View File
@@ -17,14 +17,16 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer'], fu
};
rulesPage.ruleSection = function(){
var urlASBM = 'http://montreal.baseballquebec.com/fr/publication/nouvelle/recherche_un_directeur_general_asbm.html';
var urlASBM = 'http://www.asbm.ca/';
return [
m('h2', 'Règlements 2017'),
m('h2', 'Règlements 2021'),
m('ul',[
m('li', m('h3', m('a', {href: 'files/reglements_generaux.pdf'}, 'Règlements généraux'))),
m('li', m('h3', m('a', {href: 'files/regles_procedures2017.pdf'},'Règles et procédures'))),
m('li', m('h3', m('a', {href: 'files/reglements_de_terrain2016.pdf'},'Règlements de terrain'))),
m('li', m('h3', m('a', {href: urlASBM}, 'Association des Sports de Balle à Montréal (ASBM)'))),
m('li', m('h3', m('a', {href: 'files/regle_de_jeux_2021.pdf'},'Règles de jeu'))),
m('li', m('h3', m('a', {href: 'files/regles_et_procedures_2021.pdf'},'Règles et procédures'))),
m('li', m('h3', m('a', {href: 'files/charte_organisationnelle_2021.pdf'}, 'Charte Organisationnelle'))),
m('li', m('h3', m('a', {href: 'files/formulaire_inscription_2021.pdf'}, 'Formulaire d\'inscription'))),
m('li', m('h3', m('a', {href: 'files/code_ethique_2021.pdf'}, 'Code d\'éthique'))),
m('li', m('h3', m('a', {href: urlASBM}, 'Association des Sports de Balle à Montréal (ASBN)'))),
])
];
};
@@ -37,23 +39,11 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer'], fu
);
};
rulesPage.generalAssemblies = function(){
return m('div.uk-width-large-1-1.uk-width-small-1-1.uk-margin',
m('div.uk-panel.uk-panel-box.uk-panel-box-secondary', [
m('h2', 'Procès verbaux des Assemblées Générales'),
m('ul',[
m('li', m('h3', m('a', {href: 'files/aga2016.pdf'}, 'Assemblée générale annuelle 2016'))),
])
])
);
};
rulesPage.logoAndRules = function(){
return m('div.uk-grid',[
m('div.uk-width-large-1-3.uk-width-small-1-1', rulesPage.logo()),
rulesPage.rules(),
rulesPage.generalAssemblies()
rulesPage.rules()
]
);
};
+60
View File
@@ -0,0 +1,60 @@
define(['m', '_', 'util', 'resultParser', 'teams', 'views/scheduleTeamTags', 'images/rain.svg'], function(m, _, util, resultParser, teams, scheduleTeamTags, rainSvg) {
var schedulView = {};
schedulView.controller = function(year){
var games = m.prop([]);
return util.getResults(year)
.then(games)
.then(resultParser.getNightGames);
};
schedulView._asGamePoints = function(points){
return !_.isNumber(points) ? '-' : points + '';
};
schedulView._rainIcon = function(game){
if(game.rain){
return m('span', {title: 'pluie, partie annulée.'}, rainSvg('1.5em'));
}
return m('span', {style: {visibility: 'hidden'}}, rainSvg('1.5em'));
};
schedulView._gameName = function(game){
return [schedulView._rainIcon(game),
" ",
game.time];
};
schedulView._gameRow = function(game){
return m('tr',[
m('td', schedulView._gameName(game)),
m('td', scheduleTeamTags.getAwayTeamTag(game)),
m('td', schedulView._asGamePoints(game.away_points)),
m('td', 'vs'),
m('td', scheduleTeamTags.getHomeTeamTag(game)),
m('td', schedulView._asGamePoints(game.home_points))
]);
};
schedulView._gameView = function(gameNight){
return m('div', [m('h3', util.formatDate(gameNight.jsDate)),
m('table.uk-table.uk-table-hover.uk-table-condensed.uk-table-striped',
m('tbody',[
_.map(gameNight.games, schedulView._gameRow),
])
)
]);
};
schedulView.view = function(games){
return m('div.uk-grid',
m('div.uk-width-large-3-5.uk-width-medium-1-1',
_.map(games(), schedulView._gameView)));
};
return schedulView;
})
+45
View File
@@ -0,0 +1,45 @@
define(['m', '_', 'teams'], function(m, _, teams) {
var scheduleTeamTags = {};
scheduleTeamTags._getTeamTag = function(teamName){
var teamColor = teams.getTeamColor(teamName);
return [
m('i.fa.fa-flag', {style: {color: teamColor}}),
m('span', ' ' + teamName)
];
};
scheduleTeamTags._getAwayPracticeTeamTag = function(){
return [
m('i.fa.fa-hand-spock-o', {style: {color: ' #ff1493'}, title: 'pratique'}),
m('span', ' Amis #1')
];
};
scheduleTeamTags._getHomePracticeTeamTag = function(){
return [
m('i.fa.fa-hand-spock-o', {style: {color: '#acbf60'}, title: 'pratique'}),
m('span', ' Amis #2')
];
};
scheduleTeamTags.getAwayTeamTag = function(game){
if(game.practice){
return scheduleTeamTags._getAwayPracticeTeamTag();
}
return scheduleTeamTags._getTeamTag(game.away);
};
scheduleTeamTags.getHomeTeamTag = function(game){
if(game.practice){
return scheduleTeamTags._getHomePracticeTeamTag();
}
return scheduleTeamTags._getTeamTag(game.home);
};
return scheduleTeamTags;
})
+7 -4
View File
@@ -5,10 +5,10 @@ define(['m', '_', 'util'], function (m, _, util) {
topNavBar._urlMapping = [
{name: 'Accueil', path: '', fa: 'fa-home'},
{name: 'Nouvelles', path: 'nouvelles', fa: 'fa-newspaper-o'},
{name: 'Calendrier', path: 'calendrier', fa: 'fa-calendar'},
{name: 'Calendrier', path: 'calendrier', fa: 'fa-calendar', includeSubPath: true},
{name: 'Règlement', path: 'reglement', fa: 'fa-legal'},
{name: 'Membre', path: 'membre', fa: 'fa-lock'},
{name: 'Historique', path: 'historique', fa: 'fa-history'},
// {name: 'Historique', path: 'historique', fa: 'fa-history'},
{name: 'Nous Joindre', path: 'contact', fa: 'fa-phone'}
];
@@ -22,7 +22,10 @@ define(['m', '_', 'util'], function (m, _, util) {
return '#/' + id_;
};
topNavBar._isActive = function(id_){
topNavBar._isActive = function(id_, includeSubPath){
if(includeSubPath){
return window.location.hash.startsWith(topNavBar._getUrlForId(id_));
}
return topNavBar._getUrlForId(id_) == window.location.hash;
};
topNavBar._getItemIcon = function(item){
@@ -30,7 +33,7 @@ define(['m', '_', 'util'], function (m, _, util) {
};
topNavBar._getLargeItem = function(item){
var class_ = topNavBar._isActive(item.path) ? 'uk-active' : '';
var class_ = topNavBar._isActive(item.path, item.includeSubPath) ? 'uk-active' : '';
var url = topNavBar._getUrlForId(item.path);
return m("li", {class: class_},
m("a", {href: url},