Skip to content

Commit

Permalink
feat(package/calendar): WIP done
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed Jun 6, 2019
1 parent b9693df commit 581da8c
Show file tree
Hide file tree
Showing 5 changed files with 285 additions and 127 deletions.
4 changes: 4 additions & 0 deletions app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ a {
color: inherit;
}

ul li {
margin-left: 20px;
}

body {
color: #FFF;
background-color: #151718;
Expand Down
25 changes: 23 additions & 2 deletions packages/calendar/data/answers/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"You do not have any list.",
"There is no list to show."
],
"empty_list": [
"Your \"%list%\" list is empty.",
"There is nothing in your \"%list%\" list."
],
"list_does_not_exist": [
"Sorry I can't because the \"%list%\" does not exist.",
"I cannot do that because the \"%list%\" does not exist."
Expand All @@ -28,10 +32,10 @@
"You already have a list named \"%list%\"."
],
"list_renamed": [
"I renamed the \"%old_list%\" list to \"%new_list%\" list."
"I renamed the \"%old_list%\" list to \"%new_list%\"."
],
"list_deleted": [
"I deleted the \"%list%\" list and all the todos it was contained."
"I deleted the \"%list%\" list and all the todos it was containing."
],
"lists_listed": [
"You have %lists_nb% lists. Please let me list them below for you:<br><br><ul>%result%</ul>"
Expand All @@ -40,9 +44,26 @@
"<li>\"%list%\", with %todos_nb% elements in it.</li>",
"<li>\"%list%\", that contains %todos_nb% items.</li>"
],
"no_uncompleted_todo": [
"You do not have in progress element in your \"%list%\" list.",
"You don't have any in progress element in your \"%list%\" list."
],
"no_completed_todo": [
"And you do not have completed element in your \"%list%\" list.",
"And you don't have any completed element in your \"%list%\" list."
],
"uncompleted_todos_listed": [
"Here are the in progress elements of your \"%list%\" list:<br><br><ul>%result%</ul><br><br>Stay motivated!"
],
"completed_todos_listed": [
"And here are the completed elements of your \"%list%\" list:<br><br><ul>%result%</ul>"
],
"list_todo_element": [
"<li>%todo%.</li>"
],
"list_completed_todo_element": [
"<li><strike>%todo%</strike>.</li>"
],
"todos_added": [
"Alright, I added the following to your \"%list%\" list:<br><br><ul>%result%</ul>",
"Good luck! The following have been added to your \"%list%\" list:<br><br><ul>%result%</ul>"
Expand Down
23 changes: 22 additions & 1 deletion packages/calendar/data/answers/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"Je n'ai trouvé aucune liste.",
"Il n'y a pas de liste à montrer."
],
"empty_list": [
"Votre liste \"%list%\" est vide.",
"Il n'y a rien dans votre liste \"%list%\"."
],
"list_does_not_exist": [
"Désolé je ne peux pas car la liste \"%list%\" n'éxiste pas.",
"Je ne peux pas parce que la liste \"%list%\" n'éxiste pas."
Expand All @@ -28,7 +32,7 @@
"Vous avez déjà une liste nommée \"%list%\"."
],
"list_renamed": [
"J'ai renommé la liste \"%old_list%\" en liste \"%new_list%\"."
"J'ai renommé la liste \"%old_list%\" en \"%new_list%\"."
],
"list_deleted": [
"J'ai supprimé la liste \"%list%\" et tous les éléments qu'elle contenait."
Expand All @@ -40,9 +44,26 @@
"<li>\"%list%\", avec %todos_nb% éléments.</li>",
"<li>\"%list%\", contenant %todos_nb% éléments.</li>"
],
"no_uncompleted_todo": [
"Vous n'avez pas d'élément en attente dans votre liste \"%list%\".",
"Vous n'avez aucun élément en attente dans votre liste \"%list%\"."
],
"no_completed_todo": [
"Et vous n'avez pas d'élément complété dans votre liste \"%list%\".",
"Et vous n'avez aucun élément complété dans votre liste \"%list%\"."
],
"uncompleted_todos_listed": [
"Voici les éléments en attente de votre liste \"%list\" :<br><br><ul>%result%</ul><br><br>Restez motivé !"
],
"completed_todos_listed": [
"Et voici les éléments complétés de votre liste \"%list\" :<br><br><ul>%result%</ul>"
],
"list_todo_element": [
"<li>%todo%.</li>"
],
"list_completed_todo_element": [
"<li><strike>%todo%</strike>.</li>"
],
"todos_added": [
"Entendu, j'ai ajouté ceci à votre liste \"%list%\" :<br><br><ul>%result%</ul>",
"Bonne chance ! Ce qui suit vient d'être ajouté à votre liste \"%list%\" :<br><br><ul>%result%</ul>"
Expand Down
102 changes: 90 additions & 12 deletions packages/calendar/data/expressions/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,40 @@
},
"view_lists": {
"expressions": [
"Show the lists",
"Show my lists",
"Show all the lists",
"Show all my lists",
"What are the lists?",
"What are my lists?"
]
},
"view_list": {
"expressions": [
"What is in my list?",
"What is in the list?"
],
"entities": [
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "between",
"from": "the",
"to": "list"
},
{
"type": "between",
"from": "my",
"to": "list"
}
]
}
]
},
"rename_list": {
"expressions": [
"Rename the list to list",
"Rename my list to list"
"Rename the list to",
"Rename my list to"
],
"entities": [
{
Expand Down Expand Up @@ -114,16 +138,41 @@
"type": "between",
"from": "add",
"to": "to"
},
}
]
},
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "between",
"from": "add",
"to": "and"
"from": "the",
"to": "list"
},
{
"type": "between",
"from": "and",
"to": "to"
"from": "my",
"to": "list"
}
]
}
]
},
"complete_todos": {
"expressions": [
"Complete from the list",
"Complete from my list"
],
"entities": [
{
"type": "trim",
"name": "todos",
"conditions": [
{
"type": "between",
"from": "complete",
"to": "from"
}
]
},
Expand All @@ -145,10 +194,39 @@
}
]
},
"complete_todos": {
"uncomplete_todos": {
"expressions": [
"Complete from the list",
"Complete from my list"
"Unomplete from the list",
"Uncomplete from my list"
],
"entities": [
{
"type": "trim",
"name": "todos",
"conditions": [
{
"type": "between",
"from": "uncomplete",
"to": "from"
}
]
},
{
"type": "trim",
"name": "list",
"conditions": [
{
"type": "between",
"from": "the",
"to": "list"
},
{
"type": "between",
"from": "my",
"to": "list"
}
]
}
]
}
}
Expand Down
Loading

0 comments on commit 581da8c

Please sign in to comment.