From fc8db104e8c70f6a431827b17210a29934a232bf Mon Sep 17 00:00:00 2001 From: Ulrich <undisclosed> Date: Mon, 27 Feb 2017 12:13:42 +0000 Subject: [PATCH] Datei ansehen implementiert, TinyMCE mit veraenderlichem Basisverzeichnis --- web/ui/index.html | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 51 insertions(+), 8 deletions(-) diff --git a/web/ui/index.html b/web/ui/index.html index d74367b..6e21a5a 100644 --- a/web/ui/index.html +++ b/web/ui/index.html @@ -9,12 +9,50 @@ <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="stile.css"> + <script id="tpl-kacheln" type="x-tmpl-mustache"> + {{#files}} + <figure class="figure datei-figure text-center text-warning align-top datei-elem"> + <i class="fa {{ typeClass }} fa-3x"></i> + <figcaption class="figure-caption dateiname">{{ fileName }}</figcaption> + </figure> + {{/files}} + </script> + <script id="tpl-liste" type="x-tmpl-mustache"> + <table class="table table-hover table-sm table-responsive tableBodyScroll"> + <thead> + <tr> + <th colspan="2">Name</th> + <th>Größe</th> + <th>Art</th> + <th>geändert</th> + </tr> + </thead> + <tbody> + {{#files}} + <tr class="datei-zeile"> + <td class="datei-elem"><i class="fa {{ typeClass }}"></i></td> + <td class="dateiname">{{ fileName }}</td> + <td>{{ fr.length }}</td> + <td> </td> + <td>{{ fr.lastModified }}</td> + </tr> + {{/files}} + </tbody> + </table> + </script> + <script id="tpl-bcr" type="x-tmpl-mustache"> + {{#files}} + <a class="breadcrumb-item" rpath="{{ relPath }}" href="#">{{ fName }}</a> + {{/files}} + </script> + <script id="tpl-bcr2" type="x-tmpl-mustache"> + <span class="breadcrumb-item active">{{ fName }}</span> + </script> <script id="tpl-bcr3" type="x-tmpl-mustache"> <div id="ansicht" class="pull-right align-middle"> <i class="fa fa-th-list"></i> </div> - </script> - </head> + </script> </head> <body> <!-- Kopfzeile --> <div class="nord"> @@ -25,14 +63,14 @@ <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Datei</a> <div class="dropdown-menu"> <a id="newTextFile" class="dropdown-item" href="#">Neuer Text..</a> - <a class="dropdown-item disabled" href="#">Neues Dokument..</a> + <a id="newDoc" class="dropdown-item" href="#">Neues Dokument..</a> <a id="newFolder" class="dropdown-item" href="#">Neuer Ordner..</a> <div class="dropdown-divider"></div> <a id="editTextFile" class="dropdown-item" href="#">Öffnen als Text</a> - <a class="dropdown-item disabled" href="#">Öffnen als Dokument</a> + <a id="editDocFile" class="dropdown-item" href="#">Öffnen als Dokument</a> <div class="dropdown-divider"></div> - <a class="dropdown-item disabled" href="#">Ansehen als Text</a> - <a class="dropdown-item disabled" href="#">Ansehen als Dokument</a> + <a id="viewFile" class="dropdown-item" href="#">Ansehen als Text</a> + <a class="dropdown-item" href="#">Ansehen als Dokument</a> <div class="dropdown-divider"></div> <a id="saveFile" class="dropdown-item" href="#">Speichern</a> <a id="saveFileAs" class="dropdown-item" href="#">Speichern unter..</a> @@ -93,8 +131,13 @@ </div> </div> <!-- Codemirror Ende --> + <!-- TinyMCE Start --> + <div id="mce-editor" class="pl-3 pr-3"> + <textarea class="text-editor" id="text-editspace"></textarea> + </div> + <!-- TinyMCE Ende --> <!-- Breadcrumb Start --> - <div class="zentrum-bc pl-3 pr-3"> + <div id="zentrum_bc" class="zentrum-bc pl-3 pr-3"> <nav class="breadcrumb" id="bcnav"></nav> </div> <!-- Breadcrumb Ende --> @@ -163,7 +206,7 @@ <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script> <script src="/jslib/codemirror/addon/display/fullscreen.js"></script> - + <script src="/jslib/tinymce/tinymce.min.js"></script> <script src="/jslib/bootstrap/js/bootstrap.min.js"></script> <script src="/jslib/mustache/mustache.min.js"></script> <script src="ui.js"></script> -- Gitblit v1.9.3