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