Dateiverwaltung für die WebBox
ulrich
2021-03-11 186aecb0fcc868d7f8fc632f7848b81dd231498c
Schnellmenue hinzugefuegt
1 files added
4 files modified
110 ■■■■■ changed files
web/ui2/font/pikto-spaeter-loeschen.ttf patch | view | raw | blame | history
web/ui2/font/pikto.ttf patch | view | raw | blame | history
web/ui2/index.html 14 ●●●●● patch | view | raw | blame | history
web/ui2/js/app.js 17 ●●●● patch | view | raw | blame | history
web/ui2/stile.css 79 ●●●●● patch | view | raw | blame | history
web/ui2/font/pikto-spaeter-loeschen.ttf
Binary files differ
web/ui2/font/pikto.ttf
Binary files differ
web/ui2/index.html
@@ -23,9 +23,23 @@
        <span id="app-titel">Dateien</span>
      </div>
      <div class="top-btn-area">
        <!--
        <button type="button"  title="Neuer Text" class="top-btn" id="top-neuer-text-btn"><i class="icon-doc-text-inv datei"></i></button>
        <button type="button"  title="Neuer Ordner" class="top-btn" id="top-neuer-ordner-btn"><i class="icon-folder"></i></button>
        -->
        <button type="button"  title="Speichern" class="top-btn" id="top-speichern-btn"><i class="icon-floppy"></i></button>
        <button type="button"  title="Schlie&szlig;en" class="top-btn" id="top-close-btn"><i class="icon-cancel"></i></button>
        <div class="dropdown">
          <button class="top-btn"><i class="icon-down-dir"></i></button>
          <div class="dropdown-content">
            <a id="mi-ansehen"><i class="icon-eye"></i> Ansehen</a>
            <a id="mi-neuer-ordner"><i class="icon-folder-empty"></i> Neuer Ordner</a>
            <a id="mi-neuer-text"><i class="icon-doc"></i> Neuer Text</a>
            <a id="mi-neues-dok"><i class="icon-doc-text"></i> Neues Dokument</a>
            <a id="mi-abmelden"><i class="icon-logout"></i> Abmelden</a>
          </div>
        </div>
      </div>
    </div>
    <div class="inhalt">
web/ui2/js/app.js
@@ -46,12 +46,20 @@
            "data/tpl/app-menu.tpl",
            ".west",
            "8em");
    document.querySelector('.hamburger').addEventListener('click', function (e) {
    self.addEvtListener('.hamburger', 'click', function (e) {
      self.menue_umschalten();
    });
    document.querySelector('#top-neuer-text-btn').addEventListener('click', self.datei_neuer_text);
    document.querySelector('#top-neuer-ordner-btn').addEventListener('click', self.datei_neuer_ordner);
    document.querySelector('#top-close-btn').addEventListener('click', self.fm_menu_datei_schliessen);
    //self.addEvtListener('#top-neuer-text-btn', 'click', self.datei_neuer_text);
    //self.addEvtListener('#top-neuer-ordner-btn', 'click', self.datei_neuer_ordner);
    self.addEvtListener('#top-close-btn', 'click', self.fm_menu_datei_schliessen);
    self.addEvtListener('#top-speichern-btn', 'click', self.fm_menu_datei_speichern);
    self.addEvtListener('#mi-ansehen', 'click', self.fm_view_file);
    self.addEvtListener('#mi-neuer-ordner', 'click', self.datei_neuer_ordner);
    self.addEvtListener('#mi-neuer-text', 'click', self.datei_neuer_text);
    self.addEvtListener('#mi-neues-dok', 'click', self.fm_menu_neues_dokument);
    self.addEvtListener('#mi-abmelden', 'click', self.fm_logout);
    self.fm_get_login();
    
    var parsedUrl = new URL(window.location.href);
@@ -66,6 +74,7 @@
    
    self.seitenleiste_umschalten();
    self.fm_init_uploader();
    self.fm_dropdown_menue_binden();
    self.loc = window.location.protocol + '//' + window.location.host;
  };
  
web/ui2/stile.css
@@ -443,7 +443,8 @@
@font-face {
  font-family: 'pikto';
  src: url('font/pikto.ttf?22834745') format('truetype');
  /* src: url('font/pikto.ttf?22834745') format('truetype'); */
     src: url('font/pikto.ttf?11736494') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@@ -492,24 +493,94 @@
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.icon-cancel:before { content: '\e800'; } /* '' */
.icon-th-large:before { content: '\e801'; } /* '' */
.icon-th-list:before { content: '\e802'; } /* '' */
.icon-folder:before { content: '\e803'; } /* '' */
.icon-folder-open:before { content: '\e804'; } /* '' */
.icon-doc:before { content: '\e805'; } /* '' */
.icon-trash-empty:before { content: '\e806'; } /* '' */
.icon-pencil:before { content: '\e807'; } /* '' */
.icon-pencil:before { content: '\e806'; } /* '' */
.icon-trash-empty:before { content: '\e807'; } /* '' */
.icon-down-dir:before { content: '\e808'; } /* '' */
.icon-up-dir:before { content: '\e809'; } /* '' */
.icon-left-dir:before { content: '\e80a'; } /* '' */
.icon-right-dir:before { content: '\e80b'; } /* '' */
.icon-down-open:before { content: '\e80c'; } /* '' */
.icon-left-open:before { content: '\e80d'; } /* '' */
.icon-right-open:before { content: '\e80e'; } /* '' */
.icon-up-open:before { content: '\e80f'; } /* '' */
.icon-floppy:before { content: '\e810'; } /* '' */
.icon-eye:before { content: '\e811'; } /* '' */
.icon-logout:before { content: '\e812'; } /* '' */
.icon-docs:before { content: '\f0c5'; } /* '' */
.icon-menu:before { content: '\f0c9'; } /* '' */
.icon-doc-text:before { content: '\f0f6'; } /* '' */
.icon-angle-left:before { content: '\f104'; } /* '' */
.icon-angle-right:before { content: '\f105'; } /* '' */
.icon-angle-up:before { content: '\f106'; } /* '' */
.icon-angle-down:before { content: '\f107'; } /* '' */
.icon-folder-empty:before { content: '\f114'; } /* '' */
.icon-folder-open-empty:before { content: '\f115'; } /* '' */
.icon-ellipsis:before { content: '\f141'; } /* '' */
.icon-ellipsis-vert:before { content: '\f142'; } /* '' */
.icon-doc-inv:before { content: '\f15b'; } /* '' */
.icon-doc-text-inv:before { content: '\f15c'; } /* '' */
.icon-trash:before { content: '\f1f8'; } /* '' */
/* Dropdown Menu */
/* Style The Dropdown Button */
.dropbtn {
  background-color: white;
  width: 3em;
  padding: 0;
  font-size: medium;
  cursor: pointer;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  width: 12em;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0;
  font-size: medium;
}
/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 0.5em 0.8em;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #33C3F0; /* #3e8e41; */
  color: white;
  border: none;
}
/* von Skeleton */
/* Buttons