small fixes

This commit is contained in:
Roman 2021-03-31 20:30:51 +02:00
parent a29dc474f3
commit 32851147dc
6 changed files with 14355 additions and 7623 deletions

@ -17,13 +17,14 @@ namespace Documents {
namespace Documents\Files { namespace Documents\Files {
use Elements\Head; use Elements\Head;
use Elements\Link;
use Elements\Script; use Elements\Script;
use Elements\SimpleBody; use Elements\SimpleBody;
class FilesHead extends Head { class FilesHead extends Head {
protected function initSources() { protected function initSources() {
$this->loadBootstrap(); $this->addCSS(Link::BOOTSTRAP);
$this->loadFontawesome(); $this->loadFontawesome();
} }

@ -1,6 +1,6 @@
<?php <?php
define("WEBBASE_VERSION", "1.2.0"); define("WEBBASE_VERSION", "1.2.1");
function getProtocol() { function getProtocol() {
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http"; return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";

File diff suppressed because it is too large Load Diff

@ -11,7 +11,7 @@
"react-draft-wysiwyg": "^1.14.5", "react-draft-wysiwyg": "^1.14.5",
"react-dropzone": "^11.2.4", "react-dropzone": "^11.2.4",
"react-router-dom": "^5.2.0", "react-router-dom": "^5.2.0",
"react-scripts": "^3.4.4", "react-scripts": "^4.0.3",
"react-tooltip": "^4.2.13" "react-tooltip": "^4.2.13"
}, },
"scripts": { "scripts": {

@ -41,7 +41,7 @@ export function TokenList(props) {
function fetchTokens() { function fetchTokens() {
api.listTokens().then((res) => { api.listTokens().then((res) => {
if (res) { if (res.success) {
setTokens(res.tokens); setTokens(res.tokens);
} else { } else {
pushAlert(res, "Error fetching tokens"); pushAlert(res, "Error fetching tokens");

12
js/files.min.js vendored

File diff suppressed because one or more lines are too long