Dateiverwaltung für die WebBox
ulrich
2021-01-06 53119fbeeaf9dbbf6c3a2ae492b9940cb5550054
commit | author | age
c7c502 1 <!DOCTYPE html>
U 2 <html>
3   <head>
9fac84 4     <title>Dateiverwaltung</title>
c7c502 5     <meta charset="UTF-8">
U 6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
a4d3b5 7     <link rel="stylesheet" href="/jslib/codemirror/lib/codemirror.css">    
U 8     <link rel="stylesheet" href="/jslib/codemirror/addon/display/fullscreen.css">        
c7c502 9     <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css">
U 10     <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css">
630c3f 11     <link rel="stylesheet" type="text/css" href="/jslib/fancybox/jquery.fancybox.min.css">
e383f1 12     <link rel="stylesheet" type="text/css" href="/jslib/lightbox/lightbox.css">
c7c502 13     <link rel="stylesheet" type="text/css" href="stile.css">
a450f2 14     <script id="tpl-ci" type="x-tmpl-mustache">
U 15       {{#issues}}          
16         <p class="compiler-issue">
17           {{sourceName}}, line {{lineNumber}}<br>
18           {{kind}}: {{message}}
19         </p>   
20       {{/issues}}          
21     </script>
7d8ef6 22     <script id="tpl-kacheln" type="x-tmpl-mustache">
U 23       {{#files}}          
24         <figure class="figure datei-figure text-center text-warning align-top datei-elem">
7f2a41 25           {{#mini}}
76660f 26             {{#dia}}
U 27               <a href="{{bildurl}}" data-fancybox="group" data-caption="">
c30d2d 28                 <img class="datei" src="{{miniurl}}" />
76660f 29               </a>
U 30             {{/dia}}
31             {{^dia}}
c30d2d 32               <img class="datei" src="{{miniurl}}" />
76660f 33             {{/dia}}
7f2a41 34           {{/mini}}
U 35           {{^mini}}
36             <i class="fa {{ typeClass }} fa-3x"></i>
37           {{/mini}}        
7d8ef6 38           <figcaption class="figure-caption dateiname">{{ fileName }}</figcaption>
U 39         </figure>   
40       {{/files}}          
41     </script>
42     <script id="tpl-liste" type="x-tmpl-mustache">
43       <table class="table table-hover table-sm table-responsive tableBodyScroll">
44         <thead>
45           <tr>
46             <th colspan="2">Name</th>
47             <th>Gr&ouml;&szlig;e</th>
48             <th>Art</th>
49             <th>ge&auml;ndert</th>
50           </tr>
51         </thead>
52         <tbody>
53         {{#files}}
54           <tr class="datei-zeile">
55             <td class="datei-elem"><i class="fa {{ typeClass }}"></i></td>
56             <td class="dateiname">{{ fileName }}</td>
c5eaaa 57             <td>{{ fileSize }}</td>
U 58             <td>{{ fr.mimetype }}</td>
59             <td>{{ fileDate }}</td>
7d8ef6 60           </tr>
U 61         {{/files}}
62         </tbody>
63       </table>
64     </script>
65     <script id="tpl-bcr" type="x-tmpl-mustache">
66       {{#files}}
67           <a class="breadcrumb-item" rpath="{{ relPath }}" href="#">{{ fName }}</a>
68       {{/files}}
69     </script>
70     <script id="tpl-bcr2" type="x-tmpl-mustache">
71       <span class="breadcrumb-item active">{{ fName }}</span>
72     </script>
5dfab6 73     <script id="tpl-bcr3" type="x-tmpl-mustache">
10d3d3 74       <div id="ansicht" class="pull-right align-middle">
U 75         <i class="fa fa-th-list"></i>
5dfab6 76       </div>              
7d8ef6 77     </script>  </head>
c7c502 78   <body>
U 79     <!-- Kopfzeile -->
80     <div class="nord">
81       
82       <div id="menue"> <!-- Menue -->
28b4d2 83         <ul class="nav pl-3">
c7c502 84           <li class="nav-item dropdown">
9fac84 85             <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Datei</a>
c7c502 86             <div class="dropdown-menu">
53119f 87               <a id="newTab" class="dropdown-item" href="#">Neuer Reiter</a>
U 88               <div class="dropdown-divider"></div>
fc1897 89               <a id="newTextFile" class="dropdown-item" href="#">Neuer Text..</a>
305573 90               <a id="newDoc" class="dropdown-item" href="#">Neues Dokument..</a>
c509a0 91               <a id="newFolder" class="dropdown-item" href="#">Neuer Ordner..</a>
c7c502 92               <div class="dropdown-divider"></div>
fc1897 93               <a id="editTextFile" class="dropdown-item" href="#">&Ouml;ffnen als Text</a>
7d8ef6 94               <a id="editDocFile" class="dropdown-item" href="#">&Ouml;ffnen als Dokument</a>
9fac84 95               <div class="dropdown-divider"></div>
311e88 96               <a id="viewFile" class="dropdown-item" href="#">Ansehen</a>
977e5d 97               <a id="viewSlideshow" class="dropdown-item" href="#">Diashow</a>
311e88 98               <!--<a class="dropdown-item" href="#">Ansehen als Dokument</a>-->
a4d3b5 99               <div class="dropdown-divider"></div>
e5ff42 100               <a id="saveFile" class="dropdown-item" href="#">Speichern</a>
5ebb8e 101               <a id="saveFileAs" class="dropdown-item" href="#">Speichern unter..</a>
a4d3b5 102               <div class="dropdown-divider"></div>
fc1897 103               <a id="renameFile" class="dropdown-item" href="#">Umbenennen..</a>
af9930 104               <a id="m-zip" class="dropdown-item" href="#">Ordner packen</a>
6bd2c1 105               <a id="m-unzip" class="dropdown-item" href="#">Entpacken</a>
fad719 106               <a id="m-html-export" class="dropdown-item" href="#">Export HTML</a>
bef5c6 107               <div class="dropdown-divider"></div>
fc1897 108               <a id="closeFile" class="dropdown-item" href="#">Schliessen</a>
U 109             </div>
110           </li>
111           <li class="nav-item dropdown">
112             <a id="editMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Bearbeiten</a>
113             <div class="dropdown-menu">
114               <a id="m-cut" class="dropdown-item" href="#">Ausschneiden</a>
115               <a id="m-copy" class="dropdown-item" href="#">Kopieren</a>
116               <a id="m-paste" class="dropdown-item" href="#">Einf&uuml;gen</a>
117               <div class="dropdown-divider"></div>
438b16 118               <a id="m-shrink" class="dropdown-item" href="#">Verkleinern</a>
bb9f8c 119               <a id="m-rotate" class="dropdown-item" href="#">Rotieren</a>
438b16 120               <div class="dropdown-divider"></div>
fc1897 121               <a id="m-del" class="dropdown-item" href="#">L&ouml;schen</a>
c7c502 122             </div>
U 123           </li>
124           <li class="nav-item dropdown">
9fac84 125             <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Nutzer-ID</a>
c7c502 126             <div class="dropdown-menu">
11536c 127               <a class="dropdown-item" href="/data/dok/wbx/Bedienung.htmi">Hilfe</a>
9fac84 128               <a class="dropdown-item" href="/">Zur Hauptseite der WebBox wechseln</a>
U 129               <div class="dropdown-divider"></div>
130               <a class="dropdown-item" href="/wbx/mng">Apps verwalten</a>
131               <a class="dropdown-item" href="/um/ui">Benutzer verwalten</a>
e5ff42 132               <a class="dropdown-item disabled" href="/file-cms/ui">Dateien verwalten</a>
5ed7d8 133               <a class="dropdown-item" href="/wbx-dbcon/ui">Datenbanken verwalten</a>
fc1897 134               <div class="dropdown-divider"></div>
968b07 135               <a id="m-toggle-slideshow" class="dropdown-item" href="#">Diashow einschalten</a>
fc1897 136               <a id="m-test" class="dropdown-item" href="#">Test</a>
72e43d 137               <a id="m-test-2" class="dropdown-item" href="#">Compile</a>
U 138               <a id="m-test-3" class="dropdown-item" href="#">Compile all</a>
a450f2 139               <a id="m-compile-results" class="dropdown-item" href="#">Compile results</a>
7b3372 140               <a id="m-build-app" class="dropdown-item" href="#">Build app</a>
f59dce 141               <a id="m-ant-build" class="dropdown-item" href="#">Ant build</a>
9fac84 142               <div class="dropdown-divider"></div>
39cd2b 143               <a id="profil" class="dropdown-item" href="/um/profil">Profil</a>
c7c502 144               <a id="logout" class="dropdown-item" href="#">Abmelden</a>
U 145             </div>
146           </li>
147         </ul>
148       </div> <!-- Menue -->
149       
150     </div>
151     <div class="inhalt">
152       <!-- westliche Seitenleiste -->
153       <div class="west hidden-xs-down">
154           <!-- linke Seitenleiste mit Links -->
653519 155           <!--
c7c502 156           <nav class="nav flex-column">
U 157             <a class="nav-link active" href="#">Active</a>
158             <a class="nav-link" href="#">Link</a>
159             <a class="nav-link" href="#">Link</a>
160             <a class="nav-link disabled" href="#">Disabled</a>
653519 161           </nav> 
U 162           -->
c7c502 163       </div>
U 164       <!-- zentraler Inhaltsbereich -->
165       <div class="zentrum">
a4d3b5 166         
f5505f 167         <!-- Codemirror Start -->
653519 168         <div class="code-editor-container pl-3 pr-3 pb-3">
a4d3b5 169         <div class="codeeditor-space pr-3">
U 170           <textarea class="codeeditor" id="editspace"></textarea>       
c7c502 171         </div>
a4d3b5 172         </div>
f5505f 173         <!-- Codemirror Ende -->
305573 174         <!-- TinyMCE Start -->
7d8ef6 175         <div id="mce-editor" class="pl-3 pr-3">
305573 176           <textarea class="text-editor" id="text-editspace"></textarea>
U 177         </div>        
178         <!-- TinyMCE Ende -->
f5505f 179         <!-- Breadcrumb Start -->
305573 180         <div id="zentrum_bc" class="zentrum-bc pl-3 pr-3">
28b4d2 181           <nav class="breadcrumb" id="bcnav"></nav>             
c7c502 182         </div>
f5505f 183         <!-- Breadcrumb Ende -->
U 184         <!-- Dateikacheln/-liste Start -->
28b4d2 185         <div class="zentrum-liste pl-3 pr-3" id="dateien"></div>
f5505f 186         <!-- Dateikacheln Ende -->
915927 187         
c7c502 188       </div>
U 189       <!-- oestliche Seitenleiste -->
7aa566 190       <div class="ost"></div>
bef5c6 191       
f5505f 192       <!-- Modal -->
U 193       <div class="modal fade" id="saveModal">
194         <div class="modal-dialog" role="document">
195           <div class="modal-content">
196             <div class="modal-header">
957b51 197               <h5 id="saveModalTitle" class="modal-title">Datei speichern</h5>
f5505f 198               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 199                 <span aria-hidden="true">&times;</span>
200               </button>
201             </div>
957b51 202             <div id="saveModalBody" class="modal-body">
f5505f 203               <p id="dialogfrage">Dateiname?</p>
U 204               <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname">
205             </div>
206             <div class="modal-footer">
207               <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button>
208               <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
209             </div>
210           </div>
211         </div>
212       </div> <!-- Modal Ende -->        
fc1897 213       <!-- Modal ok / cancel Start -->
U 214       <div class="modal fade" id="confirmModal">
215         <div class="modal-dialog" role="document">
216           <div class="modal-content">
217             <div class="modal-header">
957b51 218               <h5 id="confirmModalTitle" class="modal-title">L&ouml;schen</h5>
fc1897 219               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 220                 <span aria-hidden="true">&times;</span>
221               </button>
222             </div>
957b51 223             <div id="confirmModalBody" class="modal-body">
fc1897 224               <p>Wirklich ...?</p>
U 225             </div>
226             <div class="modal-footer">
227               <button id="confirmOk" type="button" class="btn btn-danger" data-dismiss="modal">L&ouml;schen</button>
a75859 228               <button id="confirmClose" type="button" class="btn btn-secondary" data-dismiss="modal">Schliessen</button>
fc1897 229               <button id="confirmCancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
U 230             </div>
231           </div>
232         </div>
233       </div>
234       <!-- Modal ok / cancel Ende -->
c7c502 235     </div>
U 236     <!-- Fusszeile -->
237     <div class="sued">
a450f2 238       <button id="fusszeile-schliessen" type="button" class="close" aria-label="Close">
U 239         <span aria-hidden="true">&times;</span>
240       </button>
241       <div class="system-out">
242         
243       </div>
c7c502 244     </div>
U 245     <!-- Skripte -->
91a97a 246     <script src="/jslib/jquery/jquery.min.js"></script>
U 247     <!--<script src="/jslib/jquery-3.2.1/jquery.min.js"></script>-->
a4d3b5 248     <script src="/jslib/codemirror/lib/codemirror.js"></script>
42fece 249     
a4d3b5 250     <script src="/jslib/codemirror/mode/javascript/javascript.js"></script>
U 251     <script src="/jslib/codemirror/mode/xml/xml.js"></script>
252     <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script>
42fece 253     <script src="/jslib/codemirror/mode/clike/clike.js"></script>
a4d3b5 254     
U 255     <script src="/jslib/codemirror/addon/display/fullscreen.js"></script>
305573 256     <script src="/jslib/tinymce/tinymce.min.js"></script>
e3043f 257     <script src="/jslib/tether/tether.min.js"></script>
c7c502 258     <script src="/jslib/bootstrap/js/bootstrap.min.js"></script>
U 259     <script src="/jslib/mustache/mustache.min.js"></script>
630c3f 260     <script src="/jslib/fancybox/jquery.fancybox.min.js"></script>
e383f1 261     <script src="/jslib/lightbox/lightbox.min.js"></script>
ef09bf 262     <script src="/jslib/moment/moment-with-locales.min.js"></script>
c5eaaa 263     <script src="/jslib/numeral/numeral.min.js"></script>
2f9e6f 264     <script src="data.js"></script>
U 265     <script src="api.js"></script>
c7c502 266     <script src="ui.js"></script>
U 267     <script type="text/javascript" charset="utf-8">
268       //var ui;
269       $(document).ready(function() {
a4d3b5 270         fm_init();
c7c502 271       });
U 272     </script>
273   </body>
274 </html>