From 28b4d2d281f882c315e68e66c6718f72d26f4564 Mon Sep 17 00:00:00 2001 From: ulrich <undisclosed> Date: Wed, 22 Feb 2017 06:31:05 +0000 Subject: [PATCH] Raender angepasst --- web/ui/index.html | 180 +++++++++++++++++++++++++++--------------------------------- 1 files changed, 81 insertions(+), 99 deletions(-) diff --git a/web/ui/index.html b/web/ui/index.html index bcd6555..f25806e 100644 --- a/web/ui/index.html +++ b/web/ui/index.html @@ -11,12 +11,47 @@ <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"> - <i class="fa {{ typeClass }} fa-folder fa-3x"></i> - <figcaption class="figure-caption">{{ fr.absolutePath }}</figcaption> + <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> <body> @@ -24,20 +59,22 @@ <div class="nord"> <div id="menue"> <!-- Menue --> - <ul class="nav"> + <ul class="nav pl-3"> <li class="nav-item dropdown"> <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="#">Neue Text-Datei..</a> - <a class="dropdown-item" href="#">Neues Dokument..</a> + <a class="dropdown-item disabled" href="#">Neues Dokument..</a> + <a id="newFolder" class="dropdown-item" href="#">Neuer Ordner..</a> <div class="dropdown-divider"></div> - <a class="dropdown-item" href="#">Ansehen als Code</a> - <a class="dropdown-item" href="#">Ansehen als Dokument</a> + <a class="dropdown-item disabled" href="#">Ansehen als Code</a> + <a class="dropdown-item disabled" href="#">Ansehen als Dokument</a> <div class="dropdown-divider"></div> - <a class="dropdown-item" href="#">Bearbeiten als Code</a> - <a class="dropdown-item" href="#">Bearbeiten als Dokument</a> + <a id="editTextFile" class="dropdown-item" href="#">Bearbeiten als Code</a> + <a class="dropdown-item disabled" href="#">Bearbeiten 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> <div class="dropdown-divider"></div> <a id="closeFile" class="dropdown-item" href="#">Schliessen</a> </div> @@ -62,110 +99,34 @@ <!-- westliche Seitenleiste --> <div class="west hidden-xs-down"> <!-- linke Seitenleiste mit Links --> + <!-- <nav class="nav flex-column"> <a class="nav-link active" href="#">Active</a> <a class="nav-link" href="#">Link</a> <a class="nav-link" href="#">Link</a> <a class="nav-link disabled" href="#">Disabled</a> - </nav> + </nav> + --> </div> <!-- zentraler Inhaltsbereich --> <div class="zentrum"> - <div class="code-editor-container pr-3 pb-3"> + <!-- Codemirror Start --> + <div class="code-editor-container pl-3 pr-3 pb-3"> <div class="codeeditor-space pr-3"> <textarea class="codeeditor" id="editspace"></textarea> </div> </div> - - <!-- <div id="code-editor-container" class="pr-2"> --> - - <!-- - <div id="edit-tabs"> - <ul class="nav nav-tabs"> - <li class="nav-item"> - <a class="nav-link active" href="#">Active</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="#">Link</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="#">Link</a> - </li> - <li class="nav-item"> - <a class="nav-link disabled" href="#">Disabled</a> - </li> - </ul> - </div> - --> - - <!-- </div> --> - - <div id="dateiansicht"> - <!-- Breadcrumb Start --> - <div class="zentrum-bc"> - <nav class="breadcrumb"> - <a class="breadcrumb-item" href="#">Home</a> - <a class="breadcrumb-item" href="#">Library</a> - <a class="breadcrumb-item" href="#">Data</a> - <span class="breadcrumb-item active">Bootstrap</span> - <div class="pull-right align-middle"> - <i class="fa fa-th-large"></i> - </div> - </nav> - </div> - <!-- Breadcrumb Ende --> - <!-- Dateikacheln Start --> - <div class="zentrum-liste" id="dateien"> - <figure class="figure datei-figure text-center text-warning align-top"> - <i class="fa fa-folder fa-3x"></i> - <figcaption class="figure-caption">Kurzer Text</figcaption> - </figure> - <figure class="figure datei-figure text-center text-warning align-top"> - <i class="fa fa-folder fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - <figure class="figure datei-figure text-center text-warning align-top"> - <i class="fa fa-folder fa-3x"></i> - <figcaption class="figure-caption">Ein ganz langer Text, der dieses Element benennt.</figcaption> - </figure> - <figure class="figure datei-figure text-center text-warning align-top"> - <i class="fa fa-folder fa-3x"></i> - <figcaption class="figure-caption">Wort</figcaption> - </figure> - <figure class="figure datei-figure text-center text-warning align-top"> - <i class="fa fa-folder fa-3x"></i> - <figcaption class="figure-caption">Wort2</figcaption> - </figure> - <figure class="figure datei-figure text-center text-warning align-top"> - <i class="fa fa-folder fa-3x"></i> - <figcaption class="figure-caption">Wort3</figcaption> - </figure> - </div> - <!-- Dateikacheln Ende --> + <!-- Codemirror Ende --> + <!-- Breadcrumb Start --> + <div class="zentrum-bc pl-3 pr-3"> + <nav class="breadcrumb" id="bcnav"></nav> </div> + <!-- Breadcrumb Ende --> + <!-- Dateikacheln/-liste Start --> + <div class="zentrum-liste pl-3 pr-3" id="dateien"></div> + <!-- Dateikacheln Ende --> - <!-- Modal --> - <div class="modal fade" id="saveModal"> - <div class="modal-dialog" role="document"> - <div class="modal-content"> - <div class="modal-header"> - <h5 class="modal-title">Datei speichern</h5> - <button type="button" class="close" data-dismiss="modal" aria-label="Close"> - <span aria-hidden="true">×</span> - </button> - </div> - <div class="modal-body"> - <p>Dateiname?</p> - <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname"> - </div> - <div class="modal-footer"> - <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button> - <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button> - </div> - </div> - </div> - </div> <!-- Modal Ende --> </div> <!-- oestliche Seitenleiste --> <!-- @@ -173,6 +134,27 @@ östliche Seitenleiste </div> --> + <!-- Modal --> + <div class="modal fade" id="saveModal"> + <div class="modal-dialog" role="document"> + <div class="modal-content"> + <div class="modal-header"> + <h5 class="modal-title">Datei speichern</h5> + <button type="button" class="close" data-dismiss="modal" aria-label="Close"> + <span aria-hidden="true">×</span> + </button> + </div> + <div class="modal-body"> + <p id="dialogfrage">Dateiname?</p> + <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname"> + </div> + <div class="modal-footer"> + <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button> + <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button> + </div> + </div> + </div> + </div> <!-- Modal Ende --> </div> <!-- Fusszeile --> <!-- -- Gitblit v1.9.3