Dateiverwaltung für die WebBox
ulrich
2017-03-21 6bd2c116db33972d971235120d9fa9107f2b4525
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>
bef5c6 94               <div class="dropdown-divider"></div>
fc1897 95               <a id="closeFile" class="dropdown-item" href="#">Schliessen</a>
U 96             </div>
97           </li>
98           <li class="nav-item dropdown">
99             <a id="editMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Bearbeiten</a>
100             <div class="dropdown-menu">
101               <a id="m-cut" class="dropdown-item" href="#">Ausschneiden</a>
102               <a id="m-copy" class="dropdown-item" href="#">Kopieren</a>
103               <a id="m-paste" class="dropdown-item" href="#">Einf&uuml;gen</a>
104               <div class="dropdown-divider"></div>
438b16 105               <a id="m-shrink" class="dropdown-item" href="#">Verkleinern</a>
U 106               <div class="dropdown-divider"></div>
fc1897 107               <a id="m-del" class="dropdown-item" href="#">L&ouml;schen</a>
c7c502 108             </div>
U 109           </li>
110           <li class="nav-item dropdown">
9fac84 111             <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Nutzer-ID</a>
c7c502 112             <div class="dropdown-menu">
11536c 113               <a class="dropdown-item" href="/data/dok/wbx/Bedienung.htmi">Hilfe</a>
9fac84 114               <a class="dropdown-item" href="/">Zur Hauptseite der WebBox wechseln</a>
U 115               <div class="dropdown-divider"></div>
116               <a class="dropdown-item" href="/wbx/mng">Apps verwalten</a>
117               <a class="dropdown-item" href="/um/ui">Benutzer verwalten</a>
e5ff42 118               <a class="dropdown-item disabled" href="/file-cms/ui">Dateien verwalten</a>
fc1897 119               <div class="dropdown-divider"></div>
U 120               <a id="m-test" class="dropdown-item" href="#">Test</a>
72e43d 121               <a id="m-test-2" class="dropdown-item" href="#">Compile</a>
U 122               <a id="m-test-3" class="dropdown-item" href="#">Compile all</a>
a450f2 123               <a id="m-compile-results" class="dropdown-item" href="#">Compile results</a>
7b3372 124               <a id="m-build-app" class="dropdown-item" href="#">Build app</a>
9fac84 125               <div class="dropdown-divider"></div>
c7c502 126               <a id="logout" class="dropdown-item" href="#">Abmelden</a>
U 127             </div>
128           </li>
129         </ul>
130       </div> <!-- Menue -->
131       
132     </div>
133     <div class="inhalt">
134       <!-- westliche Seitenleiste -->
135       <div class="west hidden-xs-down">
136           <!-- linke Seitenleiste mit Links -->
653519 137           <!--
c7c502 138           <nav class="nav flex-column">
U 139             <a class="nav-link active" href="#">Active</a>
140             <a class="nav-link" href="#">Link</a>
141             <a class="nav-link" href="#">Link</a>
142             <a class="nav-link disabled" href="#">Disabled</a>
653519 143           </nav> 
U 144           -->
c7c502 145       </div>
U 146       <!-- zentraler Inhaltsbereich -->
147       <div class="zentrum">
a4d3b5 148         
f5505f 149         <!-- Codemirror Start -->
653519 150         <div class="code-editor-container pl-3 pr-3 pb-3">
a4d3b5 151         <div class="codeeditor-space pr-3">
U 152           <textarea class="codeeditor" id="editspace"></textarea>       
c7c502 153         </div>
a4d3b5 154         </div>
f5505f 155         <!-- Codemirror Ende -->
305573 156         <!-- TinyMCE Start -->
7d8ef6 157         <div id="mce-editor" class="pl-3 pr-3">
305573 158           <textarea class="text-editor" id="text-editspace"></textarea>
U 159         </div>        
160         <!-- TinyMCE Ende -->
f5505f 161         <!-- Breadcrumb Start -->
305573 162         <div id="zentrum_bc" class="zentrum-bc pl-3 pr-3">
28b4d2 163           <nav class="breadcrumb" id="bcnav"></nav>             
c7c502 164         </div>
f5505f 165         <!-- Breadcrumb Ende -->
U 166         <!-- Dateikacheln/-liste Start -->
28b4d2 167         <div class="zentrum-liste pl-3 pr-3" id="dateien"></div>
f5505f 168         <!-- Dateikacheln Ende -->
915927 169         
c7c502 170       </div>
U 171       <!-- oestliche Seitenleiste -->
7aa566 172       <div class="ost"></div>
bef5c6 173       
f5505f 174       <!-- Modal -->
U 175       <div class="modal fade" id="saveModal">
176         <div class="modal-dialog" role="document">
177           <div class="modal-content">
178             <div class="modal-header">
957b51 179               <h5 id="saveModalTitle" class="modal-title">Datei speichern</h5>
f5505f 180               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 181                 <span aria-hidden="true">&times;</span>
182               </button>
183             </div>
957b51 184             <div id="saveModalBody" class="modal-body">
f5505f 185               <p id="dialogfrage">Dateiname?</p>
U 186               <input class="form-control eingabe" type="text" size="20" maxlength="250" placeholder="Dateiname" name="dateiname" id="dateiname">
187             </div>
188             <div class="modal-footer">
189               <button id="modal_ok" type="button" class="btn btn-primary" data-dismiss="modal">Speichern</button>
190               <button id="modal_cancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
191             </div>
192           </div>
193         </div>
194       </div> <!-- Modal Ende -->        
fc1897 195       <!-- Modal ok / cancel Start -->
U 196       <div class="modal fade" id="confirmModal">
197         <div class="modal-dialog" role="document">
198           <div class="modal-content">
199             <div class="modal-header">
957b51 200               <h5 id="confirmModalTitle" class="modal-title">L&ouml;schen</h5>
fc1897 201               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
U 202                 <span aria-hidden="true">&times;</span>
203               </button>
204             </div>
957b51 205             <div id="confirmModalBody" class="modal-body">
fc1897 206               <p>Wirklich ...?</p>
U 207             </div>
208             <div class="modal-footer">
209               <button id="confirmOk" type="button" class="btn btn-danger" data-dismiss="modal">L&ouml;schen</button>
a75859 210               <button id="confirmClose" type="button" class="btn btn-secondary" data-dismiss="modal">Schliessen</button>
fc1897 211               <button id="confirmCancel" type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
U 212             </div>
213           </div>
214         </div>
215       </div>
216       <!-- Modal ok / cancel Ende -->
c7c502 217     </div>
U 218     <!-- Fusszeile -->
219     <div class="sued">
a450f2 220       <button id="fusszeile-schliessen" type="button" class="close" aria-label="Close">
U 221         <span aria-hidden="true">&times;</span>
222       </button>
223       <div class="system-out">
224         
225       </div>
c7c502 226     </div>
U 227     <!-- Skripte -->
228     <script src="/jslib/jquery/jquery.min.js"></script>
a4d3b5 229     <script src="/jslib/codemirror/lib/codemirror.js"></script>
42fece 230     
a4d3b5 231     <script src="/jslib/codemirror/mode/javascript/javascript.js"></script>
U 232     <script src="/jslib/codemirror/mode/xml/xml.js"></script>
233     <script src="/jslib/codemirror/mode/htmlmixed/htmlmixed.js"></script>
42fece 234     <script src="/jslib/codemirror/mode/clike/clike.js"></script>
a4d3b5 235     
U 236     <script src="/jslib/codemirror/addon/display/fullscreen.js"></script>
305573 237     <script src="/jslib/tinymce/tinymce.min.js"></script>
e3043f 238     <script src="/jslib/tether/tether.min.js"></script>
c7c502 239     <script src="/jslib/bootstrap/js/bootstrap.min.js"></script>
U 240     <script src="/jslib/mustache/mustache.min.js"></script>
e383f1 241     <script src="/jslib/lightbox/lightbox.min.js"></script>
c7c502 242     <script src="ui.js"></script>
U 243     <script type="text/javascript" charset="utf-8">
244       //var ui;
245       $(document).ready(function() {
a4d3b5 246         fm_init();
c7c502 247       });
U 248     </script>
249   </body>
250 </html>