réorganiser les template
This commit is contained in:
		
							parent
							
								
									d0d70eb7e5
								
							
						
					
					
						commit
						f14a7f1b53
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										2
									
								
								main.nim
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.nim
									
									
									
									
									
								
							@ -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"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
#? stdtmpl | standard
 | 
			
		||||
#
 | 
			
		||||
# import snippet_icons
 | 
			
		||||
# import ../snippets/snippet_icons
 | 
			
		||||
#proc dashboardHtml(columnLeftInfo: var ColomnLeftData): string =
 | 
			
		||||
# result = ""
 | 
			
		||||
<div class="panel">
 | 
			
		||||
							
								
								
									
										0
									
								
								tmpl/dashbord/left_dashbord.nim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								tmpl/dashbord/left_dashbord.nim
									
									
									
									
									
										Normal 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
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
#? stdtmpl | standard
 | 
			
		||||
# import ../snippet_icons
 | 
			
		||||
# import ../snippets/snippet_icons
 | 
			
		||||
#proc test_bouton(columnLeftInfo: var ColomnLeftData): string =
 | 
			
		||||
# result = ""
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
#? stdtmpl | standard
 | 
			
		||||
# import ../snippet_html
 | 
			
		||||
# import ../snippets/snippet_html
 | 
			
		||||
#
 | 
			
		||||
#proc test_ping(c: var TData, ping: joplin_ping): string =
 | 
			
		||||
# result = ""
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user