Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 1a0f020f authored by Pierre Jarriges's avatar Pierre Jarriges
Browse files

ignore css git

parent f9fb6fb1
No related branches found
No related tags found
No related merge requests found
bundle.js
*.map
*.css.map
src/**/*.css
*.css
node_modules
target
.env
......@@ -23,10 +23,10 @@ bash-api:
docker exec -it kuadrado_server bash
build-website:
npm run --prefix ./website build
npm run --prefix ./website build-prod
build-website-debug:
npm run --prefix ./website build debug
npm run --prefix ./website build
build-admin:
npm run --prefix ./admin-frontend build
......
......@@ -193,7 +193,7 @@ class CreateArticleForm {
maxWidth: "800px",
},
contents: [
{ tag: "button", contents: "RESET", onclick: this.reset.bind(this) },
!this.params.data && { tag: "button", contents: "RESET", onclick: this.reset.bind(this) },
{ tag: "h2", contents: article.title },
{ tag: "h4", contents: article.subtitle },
{ tag: "p", contents: article.body.replace(/\n/g, "<br>") },
......
......@@ -9,7 +9,12 @@ class UpdateArticleForm {
this.state = {
search_article_title: "",
article_to_update: {},
}
};
this.articles_list = new ArticleList({
on_select_article: this.handle_select_article.bind(this),
on_delete_result: this.handle_delete_article.bind(this)
});
}
reset() {
......@@ -39,38 +44,6 @@ class UpdateArticleForm {
.catch(err => alert(err))
}
refresh_search_result() {
obj2htm.subRender(
this.render_search_result(),
document.getElementById("update-article-form-search-result"),
{ mode: "replace" },
);
}
render_search_result() {
const { search_result } = this.state;
return {
tag: "div",
id: "update-article-form-search-result",
style_rules: {
display: "flex",
gap: "10px",
alignItems: "center"
},
contents: search_result.title ? [
{ tag: "strong", contents: search_result.title },
{
tag: "button", contents: "SELECT",
onclick: this.handle_select_result.bind(this)
},
{
tag: "button", contents: "DELETE",
onclick: this.handle_delete_article.bind(this)
}
] : []
}
}
refresh_update_form() {
obj2htm.subRender(
this.render_update_form(),
......@@ -88,7 +61,7 @@ class UpdateArticleForm {
data: this.state.article_to_update,
on_article_sent: () => {
this.reset();
this.refresh_search_result();
this.articles_list.refresh_list();
}
}).render()]
: []
......@@ -110,10 +83,7 @@ class UpdateArticleForm {
maxWidth: "800px",
},
contents: [
new ArticleList({
on_select_article: this.handle_select_article.bind(this),
on_delete_result: this.handle_delete_article.bind(this)
}).render(),
this.articles_list.render(),
{ tag: "hr", style_rules: { width: "100%" } },
this.render_update_form(),
]
......
public/assets/images/screen_mentalo_app.png

56 KiB

......@@ -29,5 +29,7 @@
"edu-learn-mentalo": "Create a game in a few sessions with the Mentalo application. Handle logical, narrative and artistic concepts with maximum simplicity.",
"Me contacter": "Contact me",
"Pour s'inscrire ou en savoir plus": "To register or find out more",
"software-page-intro": "R&D, experimental projects, software tools for game development or for the web."
"software-page-intro": "R&D, experimental projects, software tools for game development or for the web.",
"Programme XXXX": "{%date%} program",
"Rien de prévu pour le moment": "Nothing planned for the moment"
}
\ No newline at end of file
......@@ -12,5 +12,6 @@
"edu-learn-computer": "Perdu avec votre ordinateur ou votre smartphone, les logiciels, internet ? Prenez en main les fondamentaux apprenez pas à pas à utiliser sereinement la technologie.",
"edu-learn-gnu": "<b>Passez le cap du libre ! </b><br/>Apprenez à installer Linux, faites vos premiers pas avec les logiciels libres et acquérez une autonomie suffisante pour une utilisation basique.",
"edu-learn-mentalo": "Créez un jeu en quelques séances avec l'application Mentalo. Manipulez des concepts logiques, narratifs et artistiques avec le maximum de simplicité.",
"software-page-intro": "R&D, projets expérimentaux, outillage logiciel pour le développement de jeu ou pour le web."
"software-page-intro": "R&D, projets expérimentaux, outillage logiciel pour le développement de jeu ou pour le web.",
"Programme XXXX": "Programme {%date%}"
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment