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/main.tmpl"
include "tmpl/user.nim" include "tmpl/user.nim"
include "tmpl/dashboard.nim" include "tmpl/dashbord/dashboard.nim"
include "tmpl/website.nim" include "tmpl/website.nim"

View File

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

View File

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

View File

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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