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