réorganiser les template

This commit is contained in:
bruno 2022-11-10 19:53:55 -05:00
parent d0d70eb7e5
commit f14a7f1b53
14 changed files with 31 additions and 29 deletions

Binary file not shown.

Binary file not shown.

View File

@ -260,7 +260,7 @@ when isMainModule:
# ---------------------------- #
#include "tmpl/main.tmpl"
include "tmpl/user.nim"
include "tmpl/dashboard.nim"
include "tmpl/dashbord/dashboard.nim"
include "tmpl/website.nim"

View File

@ -86,20 +86,21 @@
/*==================================================================
[ Open Window on link with id="openWindow" ]*/
document.addEventListener("click", FromIdNavigateTo, false);
function FromIdNavigateTo(event) {
if (event.target.matches("#openWindow")) {
// console("Open link on open Window");
window.open(
event.target.href,
"_blank",
"menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,dependent,width=800,height=620,left=0,top=0"
);
} else {
// console("Open link on new tab");
open(event.target.href, "_blank");
}
event.preventDefault();
return false;
}
// document.addEventListener("click", FromIdNavigateTo, false);
// function FromIdNavigateTo(event) {
// if (event.target.matches("#openWindow")) {
// // console("Open link on open Window");
// window.open(
// event.target.href,
// "_blank",
// "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,dependent,width=800,height=620,left=0,top=0"
// );
// }
// else {
// // console("Open link on new tab");
// open(event.target.href, "_blank");
// }
// event.preventDefault();
// return false;
// }
})(jQuery);

View File

@ -1,6 +1,6 @@
#? stdtmpl | standard
#
# import snippet_icons
# import ../snippets/snippet_icons
#proc dashboardHtml(columnLeftInfo: var ColomnLeftData): string =
# result = ""
<div class="panel">

View File

View File

@ -1,5 +1,5 @@
import templates
import ../nim-lib/outils/web/web_utils
import ../../nim-lib/outils/web/web_utils
# --==--==--==--==--==--==--==--==--==--==-- #
# SVG : HTML title H2

View File

@ -1,5 +1,5 @@
#? stdtmpl | standard
# import ../snippet_icons
# import ../snippets/snippet_icons
#proc test_bouton(columnLeftInfo: var ColomnLeftData): string =
# result = ""
<!DOCTYPE html>

View File

@ -1,5 +1,5 @@
#? stdtmpl | standard
# import ../snippet_html
# import ../snippets/snippet_html
#proc test_notebooks(c: var TData, columnLeftInfo: var ColomnLeftData): string =
# result = ""
<!DOCTYPE html>

View File

@ -1,5 +1,5 @@
#? stdtmpl | standard
# import ../snippet_html
# import ../snippets/snippet_html
#proc test_notes(c: var TData, columnLeftInfo: var ColomnLeftData): string =
# result = ""
<!DOCTYPE html>

View File

@ -1,5 +1,5 @@
#? stdtmpl | standard
# import ../snippet_html
# import ../snippets/snippet_html
#
#proc test_ping(c: var TData, ping: joplin_ping): string =
# result = ""

View File

@ -1,5 +1,5 @@
#? stdtmpl | standard
# import ../snippet_html
# import ../snippets/snippet_html
#proc test_tags(c: var TData, columnLeftInfo: var ColomnLeftData): string =
# result = ""
<!DOCTYPE html>

View File

@ -11,8 +11,8 @@
#end proc
#
# import snippet_html
# import snippet_icons
# import snippets/snippet_html
# import snippets/snippet_icons
#proc genSecret(c: var TData, columnLeftInfo: var ColomnLeftData, ColomnRightInfo: var ColomnRightData): string =
# result = ""
<!DOCTYPE html>
@ -282,8 +282,7 @@
<div class="force-overflow">
<div class="ColomnLeftJoplinDashboard">
# var dashboardHTML = dashboardHtml(columnLeftInfo)
${dashboardHTML}
</div>
</div>
@ -303,7 +302,9 @@
# else :
<h2>Click on note to see it !!</h2>
# end if
# elif columnLeftInfo.option == dashbord:
# var dashboardHTML = dashboardHtml(columnLeftInfo)
${dashboardHTML}
# end if
</div>
</div>