Merge branch 'master' of https://github.com/nextcloud/server into gridview-table
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
commit
b6981dcecb
2
3rdparty
2
3rdparty
|
@ -1 +1 @@
|
|||
Subproject commit ae66d5646abbade298a6595e5cd29d5ce7ecbcad
|
||||
Subproject commit 8633304ce214a7c0ff8e4fd72052a5ed7a444b6d
|
|
@ -27,4 +27,5 @@ $app = new \OCA\Accessibility\AppInfo\Application();
|
|||
// Separate from the constructor since the route are not initialized before that
|
||||
// 1. create the app
|
||||
// 2. generate css route and inject
|
||||
$app->injectCss();
|
||||
$app->injectCss();
|
||||
$app->injectJavascript();
|
|
@ -22,8 +22,9 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'routes' => [
|
||||
['name' => 'accessibility#getCss', 'url' => '/css/user-{md5}.css', 'verb' => 'GET'],
|
||||
'routes' => [
|
||||
['name' => 'accessibility#getCss', 'url' => '/css/user-{md5}.css', 'verb' => 'GET'],
|
||||
['name' => 'accessibility#getJavascript', 'url' => '/js/accessibility', 'verb' => 'GET'],
|
||||
],
|
||||
'ocs' => [
|
||||
[
|
||||
|
|
|
@ -19,4 +19,4 @@
|
|||
src: url('../fonts/OpenDyslexic-Bold.woff') format('woff');
|
||||
}
|
||||
|
||||
$font-face: OpenDyslexic, 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
$font-face: OpenDyslexic, 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
|
|
|
@ -1,29 +1,3 @@
|
|||
// Fonts
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local('Open Sans'), local('OpenSans'),
|
||||
url('../../../core/fonts/OpenSans-Regular.woff') format('woff');
|
||||
}
|
||||
|
||||
/* overriding default light */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans'), local('OpenSans'),
|
||||
url('../../../core/fonts/OpenSans-Regular.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 500 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'),
|
||||
url('../../../core/fonts/OpenSans-Bold.woff') format('woff');
|
||||
}
|
||||
|
||||
// SCSS variables
|
||||
$color-main-text: #000;
|
||||
$color-main-background: #fff;
|
||||
|
@ -43,14 +17,6 @@ $color-box-shadow: $color-main-text;
|
|||
$color-border: darken($color-main-background, 50%);
|
||||
$color-border-dark: darken($color-main-background, 50%);
|
||||
|
||||
$font-face: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
|
||||
|
||||
// Font weight reset
|
||||
body {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
[class^='icon-'], [class*=' icon-'],
|
||||
.action {
|
||||
opacity: 1 !important;
|
||||
|
|
|
@ -60,4 +60,22 @@ class Application extends App {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function injectJavascript() {
|
||||
$linkToJs = $this->urlGenerator->linkToRoute(
|
||||
$this->appName . '.accessibility.getJavascript',
|
||||
[
|
||||
'v' => \OC::$server->getConfig()->getAppValue('accessibility', 'cachebuster', '0'),
|
||||
]
|
||||
);
|
||||
|
||||
\OCP\Util::addHeader(
|
||||
'script',
|
||||
[
|
||||
'src' => $linkToJs,
|
||||
'nonce' => \OC::$server->getContentSecurityPolicyNonceManager()->getNonce()
|
||||
],
|
||||
''
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ use Leafo\ScssPhp\Formatter\Crunched;
|
|||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http;
|
||||
use OCP\AppFramework\Http\DataDisplayResponse;
|
||||
use OCP\AppFramework\Http\DataDownloadResponse;
|
||||
use OCP\AppFramework\Utility\ITimeFactory;
|
||||
use OCP\App\IAppManager;
|
||||
use OCP\IConfig;
|
||||
|
@ -184,6 +185,32 @@ class AccessibilityController extends Controller {
|
|||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoCSRFRequired
|
||||
* @PublicPage
|
||||
*
|
||||
* @return DataDownloadResponse
|
||||
*/
|
||||
public function getJavascript(): DataDownloadResponse {
|
||||
$user = $this->userSession->getUser();
|
||||
|
||||
if ($user === null) {
|
||||
$theme = false;
|
||||
} else {
|
||||
$theme = $this->config->getUserValue($user->getUID(), $this->appName, 'theme', false);
|
||||
}
|
||||
|
||||
$responseJS = '(function() {
|
||||
OCA.Accessibility = {
|
||||
theme: ' . json_encode($theme) . ',
|
||||
|
||||
};
|
||||
})();';
|
||||
$response = new DataDownloadResponse($responseJS, 'javascript', 'text/javascript');
|
||||
$response->cacheFor(3600);
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an array with the user theme & font settings
|
||||
*
|
||||
|
|
|
@ -1317,7 +1317,7 @@
|
|||
},
|
||||
"browserify-aes": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",
|
||||
"integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -1354,7 +1354,7 @@
|
|||
},
|
||||
"browserify-rsa": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
|
||||
"integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -1721,7 +1721,7 @@
|
|||
},
|
||||
"create-hash": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz",
|
||||
"integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -1734,7 +1734,7 @@
|
|||
},
|
||||
"create-hmac": {
|
||||
"version": "1.1.7",
|
||||
"resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz",
|
||||
"resolved": "http://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz",
|
||||
"integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -1932,7 +1932,7 @@
|
|||
},
|
||||
"diffie-hellman": {
|
||||
"version": "5.0.3",
|
||||
"resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",
|
||||
"resolved": "http://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",
|
||||
"integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -1957,9 +1957,9 @@
|
|||
}
|
||||
},
|
||||
"duplexify": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz",
|
||||
"integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==",
|
||||
"version": "3.6.1",
|
||||
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.1.tgz",
|
||||
"integrity": "sha512-vM58DwdnKmty+FSPzT14K9JXb90H+j5emaR4KYbr2KTIz00WHGbWOe5ghQTx233ZCLZtrGDALzKwcjEtSt35mA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"end-of-stream": "^1.0.0",
|
||||
|
@ -2399,8 +2399,7 @@
|
|||
"ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"aproba": {
|
||||
"version": "1.2.0",
|
||||
|
@ -2815,8 +2814,7 @@
|
|||
"safe-buffer": {
|
||||
"version": "5.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
|
@ -2872,7 +2870,6 @@
|
|||
"version": "3.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ansi-regex": "^2.0.0"
|
||||
}
|
||||
|
@ -2916,14 +2913,12 @@
|
|||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"yallist": {
|
||||
"version": "3.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -3605,13 +3600,14 @@
|
|||
}
|
||||
},
|
||||
"md5.js": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz",
|
||||
"integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=",
|
||||
"version": "1.3.5",
|
||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
|
||||
"integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"hash-base": "^3.0.0",
|
||||
"inherits": "^2.0.1"
|
||||
"inherits": "^2.0.1",
|
||||
"safe-buffer": "^5.1.2"
|
||||
}
|
||||
},
|
||||
"mem": {
|
||||
|
@ -3810,9 +3806,9 @@
|
|||
}
|
||||
},
|
||||
"neo-async": {
|
||||
"version": "2.5.2",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.2.tgz",
|
||||
"integrity": "sha512-vdqTKI9GBIYcAEbFAcpKPErKINfPF5zIuz3/niBfq8WUZjpT2tytLlFVrBgWdOtqI4uaA/Rb6No0hux39XXDuw==",
|
||||
"version": "2.6.0",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.0.tgz",
|
||||
"integrity": "sha512-MFh0d/Wa7vkKO3Y3LlacqAEeHK0mckVqzDieUKTT+KGxi+zIpeVsFxymkIiRpbpDziHc290Xr9A1O4Om7otoRA==",
|
||||
"dev": true
|
||||
},
|
||||
"nice-try": {
|
||||
|
@ -4045,7 +4041,7 @@
|
|||
},
|
||||
"parse-asn1": {
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz",
|
||||
"integrity": "sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -4279,16 +4275,17 @@
|
|||
"dev": true
|
||||
},
|
||||
"public-encrypt": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz",
|
||||
"integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==",
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz",
|
||||
"integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bn.js": "^4.1.0",
|
||||
"browserify-rsa": "^4.0.0",
|
||||
"create-hash": "^1.1.0",
|
||||
"parse-asn1": "^5.0.0",
|
||||
"randombytes": "^2.0.1"
|
||||
"randombytes": "^2.0.1",
|
||||
"safe-buffer": "^5.1.2"
|
||||
}
|
||||
},
|
||||
"pump": {
|
||||
|
@ -4631,7 +4628,7 @@
|
|||
},
|
||||
"sha.js": {
|
||||
"version": "2.4.11",
|
||||
"resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",
|
||||
"resolved": "http://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",
|
||||
"integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -5346,9 +5343,9 @@
|
|||
}
|
||||
},
|
||||
"webpack": {
|
||||
"version": "4.20.2",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.20.2.tgz",
|
||||
"integrity": "sha512-75WFUMblcWYcocjSLlXCb71QuGyH7egdBZu50FtBGl2Nso8CK3Ej+J7bTZz2FPFq5l6fzCisD9modB7t30ikuA==",
|
||||
"version": "4.22.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.22.0.tgz",
|
||||
"integrity": "sha512-2+3EYFqyhPl12buLQ42QPHEEh8BHn3P9ipRvGRHhdfKJ1u9svhZ3QjhIoEdL5SeIhL5gfOZVbBnartYEabkEsg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.7.8",
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"file-loader": "^1.1.11",
|
||||
"vue-loader": "^15.4.2",
|
||||
"vue-template-compiler": "^2.5.17",
|
||||
"webpack": "^4.20.2",
|
||||
"webpack": "^4.22.0",
|
||||
"webpack-cli": "^3.1.2",
|
||||
"webpack-merge": "^4.1.4"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# compiled vue templates
|
||||
js/templates.js
|
|
@ -89,6 +89,10 @@
|
|||
return t('comments', 'Comments');
|
||||
},
|
||||
|
||||
getIcon: function() {
|
||||
return 'icon-comment';
|
||||
},
|
||||
|
||||
setFileInfo: function(fileInfo) {
|
||||
if (fileInfo) {
|
||||
this.model = fileInfo;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<name>WebDAV</name>
|
||||
<summary>WebDAV endpoint</summary>
|
||||
<description>WebDAV endpoint</description>
|
||||
<version>1.7.0</version>
|
||||
<version>1.7.1</version>
|
||||
<licence>agpl</licence>
|
||||
<author>owncloud.org</author>
|
||||
<namespace>DAV</namespace>
|
||||
|
|
|
@ -155,6 +155,7 @@ return array(
|
|||
'OCA\\DAV\\Migration\\Version1005Date20180413093149' => $baseDir . '/../lib/Migration/Version1005Date20180413093149.php',
|
||||
'OCA\\DAV\\Migration\\Version1005Date20180530124431' => $baseDir . '/../lib/Migration/Version1005Date20180530124431.php',
|
||||
'OCA\\DAV\\Migration\\Version1006Date20180619154313' => $baseDir . '/../lib/Migration/Version1006Date20180619154313.php',
|
||||
'OCA\\DAV\\Migration\\Version1007Date20181007225117' => $baseDir . '/../lib/Migration/Version1007Date20181007225117.php',
|
||||
'OCA\\DAV\\RootCollection' => $baseDir . '/../lib/RootCollection.php',
|
||||
'OCA\\DAV\\Server' => $baseDir . '/../lib/Server.php',
|
||||
'OCA\\DAV\\Settings\\CalDAVSettings' => $baseDir . '/../lib/Settings/CalDAVSettings.php',
|
||||
|
|
|
@ -170,6 +170,7 @@ class ComposerStaticInitDAV
|
|||
'OCA\\DAV\\Migration\\Version1005Date20180413093149' => __DIR__ . '/..' . '/../lib/Migration/Version1005Date20180413093149.php',
|
||||
'OCA\\DAV\\Migration\\Version1005Date20180530124431' => __DIR__ . '/..' . '/../lib/Migration/Version1005Date20180530124431.php',
|
||||
'OCA\\DAV\\Migration\\Version1006Date20180619154313' => __DIR__ . '/..' . '/../lib/Migration/Version1006Date20180619154313.php',
|
||||
'OCA\\DAV\\Migration\\Version1007Date20181007225117' => __DIR__ . '/..' . '/../lib/Migration/Version1007Date20181007225117.php',
|
||||
'OCA\\DAV\\RootCollection' => __DIR__ . '/..' . '/../lib/RootCollection.php',
|
||||
'OCA\\DAV\\Server' => __DIR__ . '/..' . '/../lib/Server.php',
|
||||
'OCA\\DAV\\Settings\\CalDAVSettings' => __DIR__ . '/..' . '/../lib/Settings/CalDAVSettings.php',
|
||||
|
|
|
@ -140,6 +140,8 @@ class File extends Node implements IFile {
|
|||
list($partStorage) = $this->fileView->resolvePath($this->path);
|
||||
$needsPartFile = $partStorage->needsPartFile() && (strlen($this->path) > 1);
|
||||
|
||||
$view = \OC\Files\Filesystem::getView();
|
||||
|
||||
if ($needsPartFile) {
|
||||
// mark file as partial while uploading (ignored by the scanner)
|
||||
$partFilePath = $this->getPartFileBasePath($this->path) . '.ocTransferId' . rand() . '.part';
|
||||
|
@ -147,11 +149,11 @@ class File extends Node implements IFile {
|
|||
// upload file directly as the final path
|
||||
$partFilePath = $this->path;
|
||||
|
||||
$this->emitPreHooks($exists);
|
||||
if ($view && !$this->emitPreHooks($exists)) {
|
||||
throw new Exception('Could not write to final file, canceled by hook');
|
||||
}
|
||||
}
|
||||
|
||||
$view = \OC\Files\Filesystem::getView();
|
||||
|
||||
// the part file and target file might be on a different storage in case of a single file storage (e.g. single file share)
|
||||
/** @var \OC\Files\Storage\Storage $partStorage */
|
||||
list($partStorage, $internalPartPath) = $this->fileView->resolvePath($partFilePath);
|
||||
|
@ -159,9 +161,6 @@ class File extends Node implements IFile {
|
|||
list($storage, $internalPath) = $this->fileView->resolvePath($this->path);
|
||||
try {
|
||||
if (!$needsPartFile) {
|
||||
if ($view && !$this->emitPreHooks($exists)) {
|
||||
throw new Exception('Could not write to final file, canceled by hook');
|
||||
}
|
||||
$this->changeLock(ILockingProvider::LOCK_EXCLUSIVE);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
/**
|
||||
* @copyright Copyright (c) 2018 Georg Ehrke
|
||||
*
|
||||
* @author Georg Ehrke <oc.list@georgehrke.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\DAV\Migration;
|
||||
|
||||
use Closure;
|
||||
|
||||
use Doctrine\DBAL\Types\Type;
|
||||
use OCP\DB\ISchemaWrapper;
|
||||
use OCP\Migration\SimpleMigrationStep;
|
||||
use OCP\Migration\IOutput;
|
||||
|
||||
class Version1007Date20181007225117 extends SimpleMigrationStep {
|
||||
|
||||
/**
|
||||
* @param IOutput $output
|
||||
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
||||
* @param array $options
|
||||
* @return null|ISchemaWrapper
|
||||
*/
|
||||
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
|
||||
/** @var ISchemaWrapper $schema */
|
||||
$schema = $schemaClosure();
|
||||
|
||||
$table = $schema->getTable('calendarsubscriptions');
|
||||
$column = $table->getColumn('source');
|
||||
|
||||
$column->setType(Type::getType(Type::TEXT));
|
||||
$column->setLength(null);
|
||||
|
||||
return $schema;
|
||||
}
|
||||
}
|
|
@ -76,9 +76,6 @@ class AssemblyStream implements \Icewind\Streams\File {
|
|||
return strnatcmp($a->getName(), $b->getName());
|
||||
});
|
||||
$this->nodes = array_values($nodes);
|
||||
if (count($this->nodes) > 0) {
|
||||
$this->currentStream = $this->getStream($this->nodes[0]);
|
||||
}
|
||||
$this->size = array_reduce($this->nodes, function ($size, IFile $file) {
|
||||
return $size + $file->getSize();
|
||||
}, 0);
|
||||
|
@ -107,7 +104,11 @@ class AssemblyStream implements \Icewind\Streams\File {
|
|||
*/
|
||||
public function stream_read($count) {
|
||||
if (is_null($this->currentStream)) {
|
||||
return '';
|
||||
if ($this->currentNode < count($this->nodes)) {
|
||||
$this->currentStream = $this->getStream($this->nodes[$this->currentNode]);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
do {
|
||||
|
@ -191,7 +192,7 @@ class AssemblyStream implements \Icewind\Streams\File {
|
|||
* @return bool
|
||||
*/
|
||||
public function stream_eof() {
|
||||
return $this->pos >= $this->size || $this->currentStream === null;
|
||||
return $this->pos >= $this->size || ($this->currentNode >= count($this->nodes) && $this->currentNode === null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,7 +28,7 @@ $(document).ready(function() {
|
|||
// Clipboard!
|
||||
var clipboard = new Clipboard('.clipboardButton');
|
||||
clipboard.on('success', function(e) {
|
||||
$input = $(e.trigger);
|
||||
var $input = $(e.trigger);
|
||||
$input.tooltip('hide')
|
||||
.attr('data-original-title', t('core', 'Copied!'))
|
||||
.tooltip('fixTitle')
|
||||
|
@ -41,7 +41,7 @@ $(document).ready(function() {
|
|||
}, 3000);
|
||||
});
|
||||
clipboard.on('error', function (e) {
|
||||
$input = $(e.trigger);
|
||||
var $input = $(e.trigger);
|
||||
var actionMsg = '';
|
||||
if (/iPhone|iPad/i.test(navigator.userAgent)) {
|
||||
actionMsg = t('core', 'Not supported!');
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
console.log("typing away");
|
||||
|
||||
url = $(this).val();
|
||||
var url = $(this).val();
|
||||
|
||||
// toggle add-button visiblity based on input length
|
||||
if ( url.length > 0 )
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# compiled vue templates
|
||||
js/templates.js
|
|
@ -698,9 +698,6 @@ table.dragshadow td.size {
|
|||
.app-files .actions .button.new {
|
||||
position: relative;
|
||||
}
|
||||
.app-files .actions .button.new .icon {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.breadcrumb .canDrop > a,
|
||||
#filestable tbody tr.canDrop {
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
this.$el.insertAfter($('#app-content'));
|
||||
} else {
|
||||
if ($appSidebar[0] !== this.el) {
|
||||
$appSidebar.replaceWith(this.$el)
|
||||
$appSidebar.replaceWith(this.$el);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,8 @@
|
|||
templateVars.tabHeaders = _.map(this._tabViews, function(tabView, i) {
|
||||
return {
|
||||
tabId: tabView.id,
|
||||
label: tabView.getLabel()
|
||||
label: tabView.getLabel(),
|
||||
tabIcon: tabView.getIcon()
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
@ -49,6 +49,15 @@
|
|||
return 'Tab ' + this.id;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the tab label
|
||||
*
|
||||
* @return {String}|{null} icon class
|
||||
*/
|
||||
getIcon: function() {
|
||||
return null
|
||||
},
|
||||
|
||||
/**
|
||||
* returns the jQuery object for HTML output
|
||||
*
|
||||
|
|
|
@ -94,12 +94,6 @@ $(document).ready(function() {
|
|||
|
||||
return OCA.Files.FileList.prototype.reloadCallback.call(this, status, result);
|
||||
},
|
||||
|
||||
_onUrlChanged: function (e) {
|
||||
if (e && _.isString(e.dir)) {
|
||||
this.changeDirectory(e.dir, false, true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
OCA.Files.FavoritesFileList = FavoritesFileList;
|
||||
|
|
|
@ -67,6 +67,11 @@
|
|||
return new OCA.Files.FavoritesFileList(
|
||||
$el, {
|
||||
fileActions: fileActions,
|
||||
// The file list is created when a "show" event is handled,
|
||||
// so it should be marked as "shown" like it would have been
|
||||
// done if handling the event with the file list already
|
||||
// created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
},
|
||||
|
|
|
@ -221,6 +221,10 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if (options.shown) {
|
||||
this.shown = options.shown;
|
||||
}
|
||||
|
||||
if (options.config) {
|
||||
this._filesConfig = options.config;
|
||||
} else if (!_.isUndefined(OCA.Files) && !_.isUndefined(OCA.Files.App)) {
|
||||
|
@ -310,10 +314,10 @@
|
|||
breadcrumbOptions.onDrop = _.bind(this._onDropOnBreadCrumb, this);
|
||||
breadcrumbOptions.onOver = function() {
|
||||
self.$el.find('td.filename.ui-droppable').droppable('disable');
|
||||
}
|
||||
};
|
||||
breadcrumbOptions.onOut = function() {
|
||||
self.$el.find('td.filename.ui-droppable').droppable('enable');
|
||||
}
|
||||
};
|
||||
}
|
||||
this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions);
|
||||
|
||||
|
@ -1409,6 +1413,10 @@
|
|||
// rgb(118, 118, 118) / #767676
|
||||
// min. color contrast for normal text on white background according to WCAG AA
|
||||
sizeColor = Math.round(118-Math.pow((fileData.size/(1024*1024)),2));
|
||||
|
||||
if (OCA.Accessibility && OCA.Accessibility.theme === 'themedark') {
|
||||
sizeColor = Math.abs(sizeColor);
|
||||
}
|
||||
} else {
|
||||
simpleSize = t('files', 'Pending');
|
||||
}
|
||||
|
@ -1428,6 +1436,16 @@
|
|||
if (modifiedColor >= '118') {
|
||||
modifiedColor = 118;
|
||||
}
|
||||
if (OCA.Accessibility && OCA.Accessibility.theme === 'themedark') {
|
||||
modifiedColor = Math.abs(modifiedColor);
|
||||
|
||||
// ensure that the dimmest color is still readable
|
||||
// rgb(130, 130, 130) / #828282
|
||||
// min. color contrast for normal text on black background according to WCAG AA
|
||||
if (modifiedColor < 130) {
|
||||
modifiedColor = 130;
|
||||
}
|
||||
}
|
||||
var formatted;
|
||||
var text;
|
||||
if (mtime > 0) {
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
|
||||
/* Find the right actionHandler that should be called.
|
||||
* Actions is retrieved by using `actionSpec.id` */
|
||||
action = _.filter(self._menuItems, function(item) {
|
||||
var action = _.filter(self._menuItems, function(item) {
|
||||
return item.id == $target.attr('data-action');
|
||||
}).pop();
|
||||
action.actionHandler(newname);
|
||||
|
|
|
@ -67,6 +67,11 @@
|
|||
return new OCA.Files.RecentFileList(
|
||||
$el, {
|
||||
fileActions: fileActions,
|
||||
// The file list is created when a "show" event is handled,
|
||||
// so it should be marked as "shown" like it would have been
|
||||
// done if handling the event with the file list already
|
||||
// created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
},
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
(function () {
|
||||
SidebarPreviewManager = function (fileList) {
|
||||
var SidebarPreviewManager = function (fileList) {
|
||||
this._fileList = fileList;
|
||||
this._previewHandlers = {};
|
||||
OC.Plugins.attach('OCA.Files.SidebarPreviewManager', this);
|
||||
|
|
|
@ -7,13 +7,21 @@ templates['detailsview'] = template({"1":function(container,depth0,helpers,parti
|
|||
+ ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.tabHeaders : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
||||
+ "</ul>\n";
|
||||
},"2":function(container,depth0,helpers,partials,data) {
|
||||
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
|
||||
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
|
||||
|
||||
return " <li class=\"tabHeader\" data-tabid=\""
|
||||
+ alias4(((helper = (helper = helpers.tabId || (depth0 != null ? depth0.tabId : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"tabId","hash":{},"data":data}) : helper)))
|
||||
+ "\" tabindex=\"0\">\n <a href=\"#\" tabindex=\"-1\">"
|
||||
+ "\" tabindex=\"0\">\n "
|
||||
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.tabIcon : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
||||
+ "\n <a href=\"#\" tabindex=\"-1\">"
|
||||
+ alias4(((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"label","hash":{},"data":data}) : helper)))
|
||||
+ "</a>\n </li>\n";
|
||||
},"3":function(container,depth0,helpers,partials,data) {
|
||||
var helper;
|
||||
|
||||
return "<span class=\"icon "
|
||||
+ container.escapeExpression(((helper = (helper = helpers.tabIcon || (depth0 != null ? depth0.tabIcon : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"tabIcon","hash":{},"data":data}) : helper)))
|
||||
+ "\"></span>";
|
||||
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<ul class="tabHeaders">
|
||||
{{#each tabHeaders}}
|
||||
<li class="tabHeader" data-tabid="{{tabId}}" tabindex="0">
|
||||
{{#if tabIcon}}<span class="icon {{tabIcon}}"></span>{{/if}}
|
||||
<a href="#" tabindex="-1">{{label}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# compiled handlebar templates
|
||||
js/templates.js
|
|
@ -10,58 +10,6 @@
|
|||
|
||||
(function(){
|
||||
|
||||
// TODO: move to a separate file
|
||||
var MOUNT_OPTIONS_DROPDOWN_TEMPLATE =
|
||||
'<div class="popovermenu open">'+
|
||||
// FIXME: options are hard-coded for now
|
||||
' <ul>'+
|
||||
' <li class="optionRow">'+
|
||||
' <span class="menuitem">'+
|
||||
' <input id="mountOptionsEncrypt" class="checkbox" name="encrypt" type="checkbox" value="true" checked="checked"/>'+
|
||||
' <label for="mountOptionsEncrypt">{{t "files_external" "Enable encryption"}}</label>'+
|
||||
' </span>'+
|
||||
' </li>'+
|
||||
' <li class="optionRow">'+
|
||||
' <span class="menuitem">'+
|
||||
' <input id="mountOptionsPreviews" class="checkbox" name="previews" type="checkbox" value="true" checked="checked"/>'+
|
||||
' <label for="mountOptionsPreviews">{{t "files_external" "Enable previews"}}</label>'+
|
||||
' </span>'+
|
||||
' </li>'+
|
||||
' <li class="optionRow">'+
|
||||
' <span class="menuitem">'+
|
||||
' <input id="mountOptionsSharing" class="checkbox" name="enable_sharing" type="checkbox" value="true"/>'+
|
||||
' <label for="mountOptionsSharing">{{t "files_external" "Enable sharing"}}</label>'+
|
||||
' </span>'+
|
||||
' </li>'+
|
||||
' <li class="optionRow">'+
|
||||
' <span class="menuitem icon-search">'+
|
||||
' <label for="mountOptionsFilesystemCheck">{{t "files_external" "Check for changes"}}</label>'+
|
||||
' <select id="mountOptionsFilesystemCheck" name="filesystem_check_changes" data-type="int">'+
|
||||
' <option value="0">{{t "files_external" "Never"}}</option>'+
|
||||
' <option value="1" selected="selected">{{t "files_external" "Once every direct access"}}</option>'+
|
||||
' </select>'+
|
||||
' </span>'+
|
||||
' </li>'+
|
||||
' <li class="optionRow">'+
|
||||
' <span class="menuitem">'+
|
||||
' <input id="mountOptionsEncoding" class="checkbox" name="encoding_compatibility" type="checkbox" value="true"/>'+
|
||||
' <label for="mountOptionsEncoding">{{mountOptionsEncodingLabel}}</label>'+
|
||||
' </span>'+
|
||||
' </li>'+
|
||||
' <li class="optionRow">' +
|
||||
' <span class="menuitem">' +
|
||||
' <input id="mountOptionsReadOnly" class="checkbox" name="readonly" type="checkbox" value="true"/>' +
|
||||
' <label for="mountOptionsReadOnly">{{t "files_external" "Read only"}}</label>' +
|
||||
' </span>' +
|
||||
' </li>' +
|
||||
' <li class="optionRow persistent">' +
|
||||
' <a href="#" class="menuitem remove icon-delete">' +
|
||||
' <span>{{t "files_external" "Delete"}}</span>' +
|
||||
' </a>' +
|
||||
' </li>' +
|
||||
' </ul>'+
|
||||
'</div>';
|
||||
|
||||
/**
|
||||
* Returns the selection of applicable users in the given configuration row
|
||||
*
|
||||
|
@ -514,14 +462,16 @@ MountOptionsDropdown.prototype = {
|
|||
MountOptionsDropdown._last.hide();
|
||||
}
|
||||
|
||||
var template = MountOptionsDropdown._template;
|
||||
if (!template) {
|
||||
template = Handlebars.compile(MOUNT_OPTIONS_DROPDOWN_TEMPLATE);
|
||||
MountOptionsDropdown._template = template;
|
||||
}
|
||||
|
||||
var $el = $(template({
|
||||
mountOptionsEncodingLabel: t('files_external', 'Compatibility with Mac NFD encoding (slow)')
|
||||
var $el = $(OCA.External.Templates.mountOptionsDropDown({
|
||||
mountOptionsEncodingLabel: t('files_external', 'Compatibility with Mac NFD encoding (slow)'),
|
||||
mountOptionsEncryptLabel: t('files_external', 'Enable encryption'),
|
||||
mountOptionsPreviewsLabel: t('files_external', 'Enable previews'),
|
||||
mountOptionsSharingLabel: t('files_external', 'Enable sharing'),
|
||||
mountOptionsFilesystemCheckLabel: t('files_external', 'Check for changes'),
|
||||
mountOptionsFilesystemCheckOnce: t('files_external', 'Never'),
|
||||
mountOptionsFilesystemCheckDA: t('files_external', 'Once every direct access'),
|
||||
mountOptionsReadOnlyLabel: t('files_external', 'Read only'),
|
||||
deleteLabel: t('files_external', 'Delete')
|
||||
}));
|
||||
this.$el = $el;
|
||||
|
||||
|
|
|
@ -392,8 +392,7 @@ OCA.External.StatusManager = {
|
|||
* @param mountData
|
||||
*/
|
||||
showCredentialsDialog: function (mountPoint, mountData) {
|
||||
var template = Handlebars.compile(OCA.External.StatusManager.credentialsDialogTemplate);
|
||||
var dialog = $(template({
|
||||
var dialog = $(OCA.External.Templates.credentialsDialog({
|
||||
credentials_text: t('files_external', 'Please enter the credentials for the {mount} mount', {
|
||||
'mount': mountPoint
|
||||
}),
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
(function() {
|
||||
var template = Handlebars.template, templates = OCA.External.Templates = OCA.External.Templates || {};
|
||||
templates['credentialsDialog'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
|
||||
|
||||
return "<div id=\"files_external_div_form\"><div>\n <div>"
|
||||
+ alias4(((helper = (helper = helpers.credentials_text || (depth0 != null ? depth0.credentials_text : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"credentials_text","hash":{},"data":data}) : helper)))
|
||||
+ "</div>\n <form>\n <input type=\"text\" name=\"username\" placeholder=\""
|
||||
+ alias4(((helper = (helper = helpers.placeholder_username || (depth0 != null ? depth0.placeholder_username : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"placeholder_username","hash":{},"data":data}) : helper)))
|
||||
+ "\"/>\n <input type=\"password\" name=\"password\" placeholder=\""
|
||||
+ alias4(((helper = (helper = helpers.placeholder_password || (depth0 != null ? depth0.placeholder_password : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"placeholder_password","hash":{},"data":data}) : helper)))
|
||||
+ "\"/>\n </form>\n </div>\n</div>\n";
|
||||
},"useData":true});
|
||||
templates['mountOptionsDropDown'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
|
||||
|
||||
return "<div class=\"popovermenu open\">\n <ul>\n <li class=\"optionRow\">\n <span class=\"menuitem\">\n <input id=\"mountOptionsEncrypt\" class=\"checkbox\" name=\"encrypt\" type=\"checkbox\" value=\"true\" checked=\"checked\"/>\n <label for=\"mountOptionsEncrypt\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsEncryptLabel || (depth0 != null ? depth0.mountOptionsEncryptLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsEncryptLabel","hash":{},"data":data}) : helper)))
|
||||
+ "</label>\n </span>\n </li>\n <li class=\"optionRow\">\n <span class=\"menuitem\">\n <input id=\"mountOptionsPreviews\" class=\"checkbox\" name=\"previews\" type=\"checkbox\" value=\"true\" checked=\"checked\"/>\n <label for=\"mountOptionsPreviews\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsPreviewsLabel || (depth0 != null ? depth0.mountOptionsPreviewsLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsPreviewsLabel","hash":{},"data":data}) : helper)))
|
||||
+ "</label>\n </span>\n </li>\n <li class=\"optionRow\">\n <span class=\"menuitem\">\n <input id=\"mountOptionsSharing\" class=\"checkbox\" name=\"enable_sharing\" type=\"checkbox\" value=\"true\"/>\n <label for=\"mountOptionsSharing\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsSharingLabel || (depth0 != null ? depth0.mountOptionsSharingLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsSharingLabel","hash":{},"data":data}) : helper)))
|
||||
+ "</label>\n </span>\n </li>\n <li class=\"optionRow\">\n <span class=\"menuitem icon-search\">\n <label for=\"mountOptionsFilesystemCheck\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsFilesystemCheckLabel || (depth0 != null ? depth0.mountOptionsFilesystemCheckLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsFilesystemCheckLabel","hash":{},"data":data}) : helper)))
|
||||
+ "</label>\n <select id=\"mountOptionsFilesystemCheck\" name=\"filesystem_check_changes\" data-type=\"int\">\n <option value=\"0\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsFilesystemCheckOnce || (depth0 != null ? depth0.mountOptionsFilesystemCheckOnce : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsFilesystemCheckOnce","hash":{},"data":data}) : helper)))
|
||||
+ "</option>\n <option value=\"1\" selected=\"selected\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsFilesystemCheckDA || (depth0 != null ? depth0.mountOptionsFilesystemCheckDA : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsFilesystemCheckDA","hash":{},"data":data}) : helper)))
|
||||
+ "</option>\n </select>\n </span>\n </li>\n <li class=\"optionRow\">\n <span class=\"menuitem\">\n <input id=\"mountOptionsEncoding\" class=\"checkbox\" name=\"encoding_compatibility\" type=\"checkbox\" value=\"true\"/>\n <label for=\"mountOptionsEncoding\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsEncodingLabel || (depth0 != null ? depth0.mountOptionsEncodingLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsEncodingLabel","hash":{},"data":data}) : helper)))
|
||||
+ "</label>\n </span>\n </li>\n <li class=\"optionRow\">\n <span class=\"menuitem\">\n <input id=\"mountOptionsReadOnly\" class=\"checkbox\" name=\"readonly\" type=\"checkbox\" value=\"true\"/>\n <label for=\"mountOptionsReadOnly\">"
|
||||
+ alias4(((helper = (helper = helpers.mountOptionsReadOnlyLabel || (depth0 != null ? depth0.mountOptionsReadOnlyLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"mountOptionsReadOnlyLabel","hash":{},"data":data}) : helper)))
|
||||
+ "</label>\n </span>\n </li>\n <li class=\"optionRow persistent\">\n <a href=\"#\" class=\"menuitem remove icon-delete\">\n <span>"
|
||||
+ alias4(((helper = (helper = helpers.deleteLabel || (depth0 != null ? depth0.deleteLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"deleteLabel","hash":{},"data":data}) : helper)))
|
||||
+ "</span>\n </a>\n </li>\n </ul>\n</div>\n";
|
||||
},"useData":true});
|
||||
})();
|
|
@ -0,0 +1,8 @@
|
|||
<div id="files_external_div_form"><div>
|
||||
<div>{{credentials_text}}</div>
|
||||
<form>
|
||||
<input type="text" name="username" placeholder="{{placeholder_username}}"/>
|
||||
<input type="password" name="password" placeholder="{{placeholder_password}}"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,48 @@
|
|||
<div class="popovermenu open">
|
||||
<ul>
|
||||
<li class="optionRow">
|
||||
<span class="menuitem">
|
||||
<input id="mountOptionsEncrypt" class="checkbox" name="encrypt" type="checkbox" value="true" checked="checked"/>
|
||||
<label for="mountOptionsEncrypt">{{mountOptionsEncryptLabel}}</label>
|
||||
</span>
|
||||
</li>
|
||||
<li class="optionRow">
|
||||
<span class="menuitem">
|
||||
<input id="mountOptionsPreviews" class="checkbox" name="previews" type="checkbox" value="true" checked="checked"/>
|
||||
<label for="mountOptionsPreviews">{{mountOptionsPreviewsLabel}}</label>
|
||||
</span>
|
||||
</li>
|
||||
<li class="optionRow">
|
||||
<span class="menuitem">
|
||||
<input id="mountOptionsSharing" class="checkbox" name="enable_sharing" type="checkbox" value="true"/>
|
||||
<label for="mountOptionsSharing">{{mountOptionsSharingLabel}}</label>
|
||||
</span>
|
||||
</li>
|
||||
<li class="optionRow">
|
||||
<span class="menuitem icon-search">
|
||||
<label for="mountOptionsFilesystemCheck">{{mountOptionsFilesystemCheckLabel}}</label>
|
||||
<select id="mountOptionsFilesystemCheck" name="filesystem_check_changes" data-type="int">
|
||||
<option value="0">{{mountOptionsFilesystemCheckOnce}}</option>
|
||||
<option value="1" selected="selected">{{mountOptionsFilesystemCheckDA}}</option>
|
||||
</select>
|
||||
</span>
|
||||
</li>
|
||||
<li class="optionRow">
|
||||
<span class="menuitem">
|
||||
<input id="mountOptionsEncoding" class="checkbox" name="encoding_compatibility" type="checkbox" value="true"/>
|
||||
<label for="mountOptionsEncoding">{{mountOptionsEncodingLabel}}</label>
|
||||
</span>
|
||||
</li>
|
||||
<li class="optionRow">
|
||||
<span class="menuitem">
|
||||
<input id="mountOptionsReadOnly" class="checkbox" name="readonly" type="checkbox" value="true"/>
|
||||
<label for="mountOptionsReadOnly">{{mountOptionsReadOnlyLabel}}</label>
|
||||
</span>
|
||||
</li>
|
||||
<li class="optionRow persistent">
|
||||
<a href="#" class="menuitem remove icon-delete">
|
||||
<span>{{deleteLabel}}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
|
@ -28,6 +28,7 @@ $tmpl = new OCP\Template('files_external', 'list', '');
|
|||
/* Load Status Manager */
|
||||
\OCP\Util::addStyle('files_external', 'external');
|
||||
\OCP\Util::addScript('files_external', 'statusmanager');
|
||||
\OCP\Util::addScript('files_external', 'templates.js');
|
||||
\OCP\Util::addScript('files_external', 'rollingqueue');
|
||||
|
||||
OCP\Util::addScript('files_external', 'app');
|
||||
|
|
|
@ -14,7 +14,10 @@
|
|||
$l->t("Once every direct access");
|
||||
$l->t('Read only');
|
||||
|
||||
script('files_external', 'settings');
|
||||
script('files_external', [
|
||||
'settings',
|
||||
'templates'
|
||||
]);
|
||||
style('files_external', 'settings');
|
||||
|
||||
// load custom JS
|
||||
|
|
|
@ -34,7 +34,11 @@ OCA.Sharing.App = {
|
|||
id: 'shares.self',
|
||||
sharedWithUser: true,
|
||||
fileActions: this._createFileActions(),
|
||||
config: OCA.Files.App.getFilesConfig()
|
||||
config: OCA.Files.App.getFilesConfig(),
|
||||
// The file list is created when a "show" event is handled, so
|
||||
// it should be marked as "shown" like it would have been done
|
||||
// if handling the event with the file list already created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -56,7 +60,11 @@ OCA.Sharing.App = {
|
|||
id: 'shares.others',
|
||||
sharedWithUser: false,
|
||||
fileActions: this._createFileActions(),
|
||||
config: OCA.Files.App.getFilesConfig()
|
||||
config: OCA.Files.App.getFilesConfig(),
|
||||
// The file list is created when a "show" event is handled, so
|
||||
// it should be marked as "shown" like it would have been done
|
||||
// if handling the event with the file list already created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -78,7 +86,11 @@ OCA.Sharing.App = {
|
|||
id: 'shares.link',
|
||||
linksOnly: true,
|
||||
fileActions: this._createFileActions(),
|
||||
config: OCA.Files.App.getFilesConfig()
|
||||
config: OCA.Files.App.getFilesConfig(),
|
||||
// The file list is created when a "show" event is handled, so
|
||||
// it should be marked as "shown" like it would have been done
|
||||
// if handling the event with the file list already created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -101,7 +113,11 @@ OCA.Sharing.App = {
|
|||
showDeleted: true,
|
||||
sharedWithUser: true,
|
||||
fileActions: this._restoreShareAction(),
|
||||
config: OCA.Files.App.getFilesConfig()
|
||||
config: OCA.Files.App.getFilesConfig(),
|
||||
// The file list is created when a "show" event is handled, so
|
||||
// it should be marked as "shown" like it would have been done
|
||||
// if handling the event with the file list already created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -122,7 +138,11 @@ OCA.Sharing.App = {
|
|||
{
|
||||
id: 'shares.overview',
|
||||
config: OCA.Files.App.getFilesConfig(),
|
||||
isOverview: true
|
||||
isOverview: true,
|
||||
// The file list is created when a "show" event is handled, so
|
||||
// it should be marked as "shown" like it would have been done
|
||||
// if handling the event with the file list already created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
var permission = fileData.permissions;
|
||||
$tr.attr('data-share-permissions', permission);
|
||||
}
|
||||
|
||||
|
||||
// add row with expiration date for link only shares - influenced by _createRow of filelist
|
||||
if (this._linksOnly) {
|
||||
var expirationTimestamp = 0;
|
||||
|
@ -107,6 +107,8 @@
|
|||
modifiedColor = 160;
|
||||
}
|
||||
|
||||
var formatted;
|
||||
var text;
|
||||
if (expirationTimestamp > 0) {
|
||||
formatted = OC.Util.formatDate(expirationTimestamp);
|
||||
text = OC.Util.relativeModifiedDate(expirationTimestamp);
|
||||
|
@ -232,7 +234,7 @@
|
|||
promises.push($.ajax(remoteShares));
|
||||
}
|
||||
if (this._isOverview) {
|
||||
shares.data.shared_with_me = !shares.data.shared_with_me
|
||||
shares.data.shared_with_me = !shares.data.shared_with_me;
|
||||
promises.push($.ajax(shares));
|
||||
}
|
||||
}
|
||||
|
@ -242,7 +244,7 @@
|
|||
return this._reloadCall.then(callBack, callBack);
|
||||
},
|
||||
|
||||
reloadCallback: function(shares, remoteShares, additionnalShares) {
|
||||
reloadCallback: function(shares, remoteShares, additionalShares) {
|
||||
delete this._reloadCall;
|
||||
this.hideMask();
|
||||
|
||||
|
@ -259,8 +261,8 @@
|
|||
if (remoteShares && remoteShares[0] && remoteShares[0].ocs) {
|
||||
remoteShares = remoteShares[0];
|
||||
}
|
||||
if (additionnalShares && additionnalShares[0] && additionnalShares[0].ocs) {
|
||||
additionnalShares = additionnalShares[0];
|
||||
if (additionalShares && additionalShares[0] && additionalShares[0].ocs) {
|
||||
additionalShares = additionalShares[0];
|
||||
}
|
||||
|
||||
if (shares.ocs && shares.ocs.data) {
|
||||
|
@ -271,8 +273,8 @@
|
|||
files = files.concat(this._makeFilesFromRemoteShares(remoteShares.ocs.data));
|
||||
}
|
||||
|
||||
if (additionnalShares && additionnalShares && additionnalShares.ocs && additionnalShares.ocs.data) {
|
||||
files = files.concat(this._makeFilesFromShares(additionnalShares.ocs.data, !this._sharedWithUser));
|
||||
if (additionalShares && additionalShares.ocs && additionalShares.ocs.data) {
|
||||
files = files.concat(this._makeFilesFromShares(additionalShares.ocs.data, !this._sharedWithUser));
|
||||
}
|
||||
|
||||
|
||||
|
@ -444,12 +446,6 @@
|
|||
// Sort by expected sort comparator
|
||||
return files.sort(this._sortComparator);
|
||||
},
|
||||
|
||||
_onUrlChanged: function(e) {
|
||||
if (e && _.isString(e.dir)) {
|
||||
this.changeDirectory(e.dir, false, true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
return t('files_sharing', 'Sharing');
|
||||
},
|
||||
|
||||
getIcon: function() {
|
||||
return 'icon-shared';
|
||||
},
|
||||
|
||||
/**
|
||||
* Renders this details view
|
||||
*/
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
namespace OCA\Files_Sharing\Controller;
|
||||
|
||||
use OC\Security\CSP\ContentSecurityPolicy;
|
||||
use OC_Files;
|
||||
use OC_Util;
|
||||
use OCA\FederatedFileSharing\FederatedShareProvider;
|
||||
|
@ -158,7 +159,16 @@ class ShareController extends AuthPublicShareController {
|
|||
$event = new GenericEvent(null, $templateParameters);
|
||||
$this->eventDispatcher->dispatch('OCA\Files_Sharing::loadAdditionalScripts::publicShareAuth', $event);
|
||||
|
||||
return new TemplateResponse('core', 'publicshareauth', $templateParameters, 'guest');
|
||||
$response = new TemplateResponse('core', 'publicshareauth', $templateParameters, 'guest');
|
||||
if ($this->share->getSendPasswordByTalk()) {
|
||||
$csp = new ContentSecurityPolicy();
|
||||
$csp->addAllowedConnectDomain('*');
|
||||
$csp->addAllowedMediaDomain('blob:');
|
||||
$csp->allowEvalScript(true);
|
||||
$response->setContentSecurityPolicy($csp);
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -170,7 +180,16 @@ class ShareController extends AuthPublicShareController {
|
|||
$event = new GenericEvent(null, $templateParameters);
|
||||
$this->eventDispatcher->dispatch('OCA\Files_Sharing::loadAdditionalScripts::publicShareAuth', $event);
|
||||
|
||||
return new TemplateResponse('core', 'publicshareauth', $templateParameters, 'guest');
|
||||
$response = new TemplateResponse('core', 'publicshareauth', $templateParameters, 'guest');
|
||||
if ($this->share->getSendPasswordByTalk()) {
|
||||
$csp = new ContentSecurityPolicy();
|
||||
$csp->addAllowedConnectDomain('*');
|
||||
$csp->addAllowedMediaDomain('blob:');
|
||||
$csp->allowEvalScript(true);
|
||||
$response->setContentSecurityPolicy($csp);
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
protected function verifyPassword(string $password): bool {
|
||||
|
|
|
@ -51,7 +51,11 @@ OCA.Trashbin.App = {
|
|||
iconClass: 'icon-delete',
|
||||
}
|
||||
],
|
||||
client: this.client
|
||||
client: this.client,
|
||||
// The file list is created when a "show" event is handled, so
|
||||
// it should be marked as "shown" like it would have been done
|
||||
// if handling the event with the file list already created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
},
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# compiled vue templates
|
||||
js/templates.js
|
|
@ -50,9 +50,15 @@ class RetryJob extends Job {
|
|||
$this->clientService = $clientService;
|
||||
$this->jobList = $jobList;
|
||||
|
||||
if ($config->getSystemValue('has_internet_connection', true) === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->lookupServer = $config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com');
|
||||
$this->lookupServer = rtrim($this->lookupServer, '/');
|
||||
$this->lookupServer .= '/users';
|
||||
if (!empty($this->lookupServer)) {
|
||||
$this->lookupServer = rtrim($this->lookupServer, '/');
|
||||
$this->lookupServer .= '/users';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -69,7 +75,7 @@ class RetryJob extends Job {
|
|||
}
|
||||
|
||||
protected function run($argument) {
|
||||
if($argument['retryNo'] === 5) {
|
||||
if ($argument['retryNo'] === 5 || empty($this->lookupServer)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -64,15 +64,25 @@ class UpdateLookupServer {
|
|||
$this->signer = $signer;
|
||||
$this->jobList = $jobList;
|
||||
|
||||
if($config->getSystemValue('has_internet_connection', true) === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->lookupServer = $config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com');
|
||||
$this->lookupServer = rtrim($this->lookupServer, '/');
|
||||
$this->lookupServer .= '/users';
|
||||
if(!empty($this->lookupServer)) {
|
||||
$this->lookupServer = rtrim($this->lookupServer, '/');
|
||||
$this->lookupServer .= '/users';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param IUser $user
|
||||
*/
|
||||
public function userUpdated(IUser $user) {
|
||||
if(empty($this->lookupServer)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$userData = $this->accountManager->getUser($user);
|
||||
$publicData = [];
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# compiled vue templates
|
||||
js/oauth2.js
|
|
@ -1097,9 +1097,9 @@
|
|||
}
|
||||
},
|
||||
"duplexify": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz",
|
||||
"integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==",
|
||||
"version": "3.6.1",
|
||||
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.1.tgz",
|
||||
"integrity": "sha512-vM58DwdnKmty+FSPzT14K9JXb90H+j5emaR4KYbr2KTIz00WHGbWOe5ghQTx233ZCLZtrGDALzKwcjEtSt35mA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"end-of-stream": "^1.0.0",
|
||||
|
@ -1508,8 +1508,7 @@
|
|||
"ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"aproba": {
|
||||
"version": "1.2.0",
|
||||
|
@ -1924,8 +1923,7 @@
|
|||
"safe-buffer": {
|
||||
"version": "5.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
|
@ -1981,7 +1979,6 @@
|
|||
"version": "3.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ansi-regex": "^2.0.0"
|
||||
}
|
||||
|
@ -2025,14 +2022,12 @@
|
|||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"yallist": {
|
||||
"version": "3.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -2633,13 +2628,14 @@
|
|||
}
|
||||
},
|
||||
"md5.js": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz",
|
||||
"integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=",
|
||||
"version": "1.3.5",
|
||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
|
||||
"integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"hash-base": "^3.0.0",
|
||||
"inherits": "^2.0.1"
|
||||
"inherits": "^2.0.1",
|
||||
"safe-buffer": "^5.1.2"
|
||||
}
|
||||
},
|
||||
"mem": {
|
||||
|
@ -2812,9 +2808,9 @@
|
|||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||
},
|
||||
"nan": {
|
||||
"version": "2.11.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.11.0.tgz",
|
||||
"integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==",
|
||||
"version": "2.11.1",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz",
|
||||
"integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
|
@ -2838,9 +2834,9 @@
|
|||
}
|
||||
},
|
||||
"neo-async": {
|
||||
"version": "2.5.2",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.2.tgz",
|
||||
"integrity": "sha512-vdqTKI9GBIYcAEbFAcpKPErKINfPF5zIuz3/niBfq8WUZjpT2tytLlFVrBgWdOtqI4uaA/Rb6No0hux39XXDuw==",
|
||||
"version": "2.6.0",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.0.tgz",
|
||||
"integrity": "sha512-MFh0d/Wa7vkKO3Y3LlacqAEeHK0mckVqzDieUKTT+KGxi+zIpeVsFxymkIiRpbpDziHc290Xr9A1O4Om7otoRA==",
|
||||
"dev": true
|
||||
},
|
||||
"nice-try": {
|
||||
|
@ -3270,16 +3266,17 @@
|
|||
"dev": true
|
||||
},
|
||||
"public-encrypt": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "http://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz",
|
||||
"integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==",
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz",
|
||||
"integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bn.js": "^4.1.0",
|
||||
"browserify-rsa": "^4.0.0",
|
||||
"create-hash": "^1.1.0",
|
||||
"parse-asn1": "^5.0.0",
|
||||
"randombytes": "^2.0.1"
|
||||
"randombytes": "^2.0.1",
|
||||
"safe-buffer": "^5.1.2"
|
||||
}
|
||||
},
|
||||
"pump": {
|
||||
|
@ -4247,9 +4244,9 @@
|
|||
}
|
||||
},
|
||||
"webpack": {
|
||||
"version": "4.20.2",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.20.2.tgz",
|
||||
"integrity": "sha512-75WFUMblcWYcocjSLlXCb71QuGyH7egdBZu50FtBGl2Nso8CK3Ej+J7bTZz2FPFq5l6fzCisD9modB7t30ikuA==",
|
||||
"version": "4.22.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.22.0.tgz",
|
||||
"integrity": "sha512-2+3EYFqyhPl12buLQ42QPHEEh8BHn3P9ipRvGRHhdfKJ1u9svhZ3QjhIoEdL5SeIhL5gfOZVbBnartYEabkEsg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.7.8",
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"file-loader": "^1.1.11",
|
||||
"vue-loader": "^15.4.2",
|
||||
"vue-template-compiler": "^2.5.17",
|
||||
"webpack": "^4.20.2",
|
||||
"webpack": "^4.22.0",
|
||||
"webpack-cli": "^3.1.2",
|
||||
"webpack-merge": "^4.1.4"
|
||||
}
|
||||
|
|
|
@ -28,7 +28,12 @@
|
|||
{
|
||||
id: 'systemtags',
|
||||
fileActions: this._createFileActions(),
|
||||
config: OCA.Files.App.getFilesConfig()
|
||||
config: OCA.Files.App.getFilesConfig(),
|
||||
// The file list is created when a "show" event is handled,
|
||||
// so it should be marked as "shown" like it would have been
|
||||
// done if handling the event with the file list already
|
||||
// created.
|
||||
shown: true
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# compiled vue templates
|
||||
js/updatenotification.js
|
|
@ -1130,9 +1130,9 @@
|
|||
}
|
||||
},
|
||||
"duplexify": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz",
|
||||
"integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==",
|
||||
"version": "3.6.1",
|
||||
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.1.tgz",
|
||||
"integrity": "sha512-vM58DwdnKmty+FSPzT14K9JXb90H+j5emaR4KYbr2KTIz00WHGbWOe5ghQTx233ZCLZtrGDALzKwcjEtSt35mA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"end-of-stream": "^1.0.0",
|
||||
|
@ -2645,13 +2645,14 @@
|
|||
}
|
||||
},
|
||||
"md5.js": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz",
|
||||
"integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=",
|
||||
"version": "1.3.5",
|
||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
|
||||
"integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"hash-base": "^3.0.0",
|
||||
"inherits": "^2.0.1"
|
||||
"inherits": "^2.0.1",
|
||||
"safe-buffer": "^5.1.2"
|
||||
}
|
||||
},
|
||||
"mem": {
|
||||
|
@ -2843,9 +2844,9 @@
|
|||
}
|
||||
},
|
||||
"neo-async": {
|
||||
"version": "2.5.2",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.2.tgz",
|
||||
"integrity": "sha512-vdqTKI9GBIYcAEbFAcpKPErKINfPF5zIuz3/niBfq8WUZjpT2tytLlFVrBgWdOtqI4uaA/Rb6No0hux39XXDuw==",
|
||||
"version": "2.6.0",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.0.tgz",
|
||||
"integrity": "sha512-MFh0d/Wa7vkKO3Y3LlacqAEeHK0mckVqzDieUKTT+KGxi+zIpeVsFxymkIiRpbpDziHc290Xr9A1O4Om7otoRA==",
|
||||
"dev": true
|
||||
},
|
||||
"nice-try": {
|
||||
|
@ -3275,16 +3276,17 @@
|
|||
"dev": true
|
||||
},
|
||||
"public-encrypt": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "http://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz",
|
||||
"integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==",
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz",
|
||||
"integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bn.js": "^4.1.0",
|
||||
"browserify-rsa": "^4.0.0",
|
||||
"create-hash": "^1.1.0",
|
||||
"parse-asn1": "^5.0.0",
|
||||
"randombytes": "^2.0.1"
|
||||
"randombytes": "^2.0.1",
|
||||
"safe-buffer": "^5.1.2"
|
||||
}
|
||||
},
|
||||
"pump": {
|
||||
|
@ -4243,9 +4245,9 @@
|
|||
}
|
||||
},
|
||||
"webpack": {
|
||||
"version": "4.20.2",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.20.2.tgz",
|
||||
"integrity": "sha512-75WFUMblcWYcocjSLlXCb71QuGyH7egdBZu50FtBGl2Nso8CK3Ej+J7bTZz2FPFq5l6fzCisD9modB7t30ikuA==",
|
||||
"version": "4.22.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.22.0.tgz",
|
||||
"integrity": "sha512-2+3EYFqyhPl12buLQ42QPHEEh8BHn3P9ipRvGRHhdfKJ1u9svhZ3QjhIoEdL5SeIhL5gfOZVbBnartYEabkEsg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.7.8",
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
"file-loader": "^1.1.11",
|
||||
"vue-loader": "^15.4.2",
|
||||
"vue-template-compiler": "^2.5.17",
|
||||
"webpack": "^4.20.2",
|
||||
"webpack": "^4.22.0",
|
||||
"webpack-cli": "^3.1.2",
|
||||
"webpack-merge": "^4.1.4"
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
.tooltip {
|
||||
position:absolute;
|
||||
display:block;
|
||||
font-family:'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
font-family: 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
font-style:normal;
|
||||
font-weight:400;
|
||||
letter-spacing:normal;
|
||||
|
|
|
@ -302,7 +302,7 @@ OCA = OCA || {};
|
|||
if( !view.getFilterItem().$element.val()
|
||||
&& view.parsedFilterMode === view.configModel.FILTER_MODE_ASSISTED
|
||||
) {
|
||||
view.configModel.requestWizard(view.getFilterItem().keyName)
|
||||
view.configModel.requestWizard(view.getFilterItem().keyName);
|
||||
}
|
||||
} else if (payload.feature === view.getGroupsItem().featureName) {
|
||||
if(view.manyGroupsSupport && payload.data.length > view._groupElementSwitchThreshold) {
|
||||
|
|
|
@ -31,6 +31,9 @@ handlebars -n OCA.WorkflowEngine.Templates apps/workflowengine/js/templates -f a
|
|||
# Sharing
|
||||
handlebars -n OCA.Sharing.Templates apps/files_sharing/js/templates -f apps/files_sharing/js/templates.js
|
||||
|
||||
# Files external
|
||||
handlebars -n OCA.External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
|
||||
|
||||
if [[ $(git diff --name-only) ]]; then
|
||||
echo "Please submit your compiled handlebars templates"
|
||||
echo
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
"behat/behat": "~3.5.0",
|
||||
"guzzlehttp/guzzle": "6.3.3",
|
||||
"jarnaiz/behat-junit-formatter": "^1.3",
|
||||
"sabre/dav": "3.2.2"
|
||||
"sabre/dav": "3.2.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# compiled vue templates
|
||||
js/contactsmenu_templates.js
|
||||
js/sharetemplates.js
|
||||
js/systemtags/templates.js
|
|
@ -21,7 +21,7 @@
|
|||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h2 {
|
||||
|
@ -727,7 +727,7 @@ kbd {
|
|||
border-radius: 0;
|
||||
text-align: left;
|
||||
padding-left: 42px;
|
||||
font-weight: 400;
|
||||
font-weight: normal;
|
||||
|
||||
/* like app-navigation a */
|
||||
color: var(--color-main-text);
|
||||
|
@ -746,7 +746,6 @@ kbd {
|
|||
.section {
|
||||
display: block;
|
||||
padding: 30px;
|
||||
color: var(--color-text-lighter);
|
||||
margin-bottom: 24px;
|
||||
&.hidden {
|
||||
display: none !important;
|
||||
|
@ -789,12 +788,22 @@ kbd {
|
|||
cursor: pointer;
|
||||
color: var(--color-text-lighter);
|
||||
margin-bottom: 1px;
|
||||
.icon {
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-size: 16px;
|
||||
vertical-align: middle;
|
||||
margin-top: -2px;
|
||||
margin-right: 3px;
|
||||
opacity: .7;
|
||||
}
|
||||
a {
|
||||
color: var(--color-text-lighter);
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
&.selected {
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
}
|
||||
&.selected,
|
||||
&:hover,
|
||||
|
@ -911,7 +920,7 @@ $popovericon-size: 16px;
|
|||
align-items: flex-start;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
font-weight: 300;
|
||||
font-weight: normal;
|
||||
box-shadow: none;
|
||||
width: 100%;
|
||||
color: var(--color-main-text);
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
--color-border-dark: $color-border-dark;
|
||||
--border-radius: $border-radius;
|
||||
--border-radius-large: $border-radius-large;
|
||||
--border-radius-pill: $border-radius-pill;
|
||||
|
||||
--font-face: $font-face;
|
||||
}
|
||||
|
|
|
@ -1,26 +1,43 @@
|
|||
/* for low-res screens, use Regular font-weight instead of Light */
|
||||
@media (-webkit-max-device-pixel-ratio: 1.3), (max-resolution: 124.8dpi) {
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local('Open Sans'), local('OpenSans'),
|
||||
url('../fonts/OpenSans-Regular.woff') format('woff');
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 400; /* normal */
|
||||
src: local('Nunito Regular'), local('Nunito-Regular'),
|
||||
url('../fonts/Nunito-Regular-latin-ext.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Regular.ttf') format('truetype');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'),
|
||||
url('../fonts/OpenSans-Light.woff') format('woff');
|
||||
font-weight: 400; /* normal */
|
||||
src: local('Nunito Regular'), local('Nunito-Regular'),
|
||||
url('../fonts/Nunito-Regular.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Regular.ttf') format('truetype');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'),
|
||||
url('../fonts/OpenSans-Semibold.woff') format('woff');
|
||||
font-weight: 700; /* bold */
|
||||
src: local('Nunito Bold'), local('Nunito-Bold'),
|
||||
url('../fonts/Nunito-Bold-latin-ext.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Bold.ttf') format('truetype');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 700; /* bold */
|
||||
src: local('Nunito Bold'), local('Nunito-Bold'),
|
||||
url('../fonts/Nunito-Bold.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Bold.ttf') format('truetype');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
|
|
@ -16,10 +16,10 @@ ul { list-style:none; }
|
|||
|
||||
body {
|
||||
background-color: #ffffff;
|
||||
font-weight: 400;
|
||||
font-weight: normal;
|
||||
font-size: .8em;
|
||||
line-height: 1.6em;
|
||||
font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
font-family: 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
background-color: #0082c9;
|
||||
|
@ -56,7 +56,7 @@ em {
|
|||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h2 {
|
||||
|
@ -175,7 +175,7 @@ form #datadirField legend {
|
|||
}
|
||||
|
||||
input, textarea, select, button, div[contenteditable=true] {
|
||||
font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
font-family: 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
}
|
||||
input,
|
||||
input:not([type='range']),
|
||||
|
@ -184,7 +184,7 @@ a.button {
|
|||
margin: 5px;
|
||||
padding: 11px 10px 9px;
|
||||
outline: none;
|
||||
border-radius: 3px;
|
||||
border-radius: 3px; /* --border-radius */
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
input[type='submit'],
|
||||
|
@ -198,9 +198,10 @@ select {
|
|||
min-width: 25px;
|
||||
padding: 12px;
|
||||
background-color: white;
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
color: #555;
|
||||
border: none;
|
||||
border-radius: 100px; /* --border-radius-pill */
|
||||
cursor: pointer;
|
||||
}
|
||||
input[type='text'],
|
||||
|
@ -216,7 +217,7 @@ input[type='email'] {
|
|||
-moz-appearance: textfield;
|
||||
box-sizing: content-box;
|
||||
border: none;
|
||||
font-weight: 300;
|
||||
font-weight: normal;
|
||||
}
|
||||
input.login {
|
||||
width: 269px;
|
||||
|
@ -233,13 +234,19 @@ input.update-continue {
|
|||
padding: 10px 20px;
|
||||
color: #666 !important;
|
||||
display: inline-block;
|
||||
border-radius: 3px;
|
||||
border-radius: 100px; /* --border-radius-pill */
|
||||
margin: 15px 5px;
|
||||
}
|
||||
.updateAnyways a.updateAnywaysButton:hover {
|
||||
color: #222 !important;
|
||||
}
|
||||
|
||||
/* Get rid of the inside dotted line in Firefox */
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
input.primary,
|
||||
button.primary,
|
||||
a.primary {
|
||||
|
@ -397,7 +404,7 @@ form .warning input[type='checkbox']+label {
|
|||
|
||||
.two-factor-provider {
|
||||
display: flex;
|
||||
border-radius: 3px;
|
||||
border-radius: 3px; /* --border-radius */
|
||||
margin: 12px 0;
|
||||
border: 1px solid transparent;
|
||||
text-align: left;
|
||||
|
@ -421,7 +428,7 @@ form .warning input[type='checkbox']+label {
|
|||
margin: 0;
|
||||
}
|
||||
.two-factor-provider p {
|
||||
font-weight: 300;
|
||||
font-weight: normal;
|
||||
}
|
||||
.two-factor-icon {
|
||||
width: 100px;
|
||||
|
@ -432,7 +439,7 @@ form .warning input[type='checkbox']+label {
|
|||
width: 100%;
|
||||
padding: 10px;
|
||||
margin: 0 0 5px 0;
|
||||
border-radius: 3px;
|
||||
border-radius: 100px; /* --border-radius-pill */
|
||||
font-size: 20px;
|
||||
}
|
||||
.two-factor-primary {
|
||||
|
@ -456,12 +463,12 @@ form .warning input[type='checkbox']+label {
|
|||
margin: 10px 0;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
text-shadow: 0 0 2px rgba(0, 0, 0, .4); // better readability on bright background
|
||||
text-shadow: 0 0 2px rgba(0, 0, 0, .4); /* better readability on bright background */
|
||||
}
|
||||
.lost-password-container #lost-password,
|
||||
.lost-password-container #lost-password-back {
|
||||
display: inline-block;
|
||||
font-weight: 300;
|
||||
font-weight: normal;
|
||||
padding: 12px;
|
||||
margin-top: -6px;
|
||||
color: #fff;
|
||||
|
@ -489,7 +496,7 @@ form .warning input[type='checkbox']+label {
|
|||
box-sizing: border-box;
|
||||
background-color: #0082c9;
|
||||
color: white;
|
||||
border-radius: 3px;
|
||||
border-radius: 100px; /* --border-radius-pill */
|
||||
}
|
||||
|
||||
/* fixes for update page TODO should be fixed some time in a proper way */
|
||||
|
@ -575,7 +582,7 @@ form #selectDbType label.ui-state-active {
|
|||
color: #fff;
|
||||
text-align: left;
|
||||
word-wrap: break-word;
|
||||
border-radius: 10px;
|
||||
border-radius: 10px; /* --border-radius-large */
|
||||
cursor: default;
|
||||
-moz-user-select: text;
|
||||
-webkit-user-select: text;
|
||||
|
@ -607,7 +614,7 @@ form #selectDbType label.ui-state-active {
|
|||
.warning a,
|
||||
.error a {
|
||||
color: #fff !important;
|
||||
font-weight: 600 !important;
|
||||
font-weight: bold !important;
|
||||
opacity: 1;
|
||||
}
|
||||
.error a.button {
|
||||
|
@ -652,7 +659,7 @@ fieldset.update legend + p {
|
|||
}
|
||||
p.info {
|
||||
margin: 20px auto;
|
||||
text-shadow: 0 0 2px rgba(0, 0, 0, .4); // better readability on bright background
|
||||
text-shadow: 0 0 2px rgba(0, 0, 0, .4); /* better readability on bright background */
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
|
@ -803,7 +810,7 @@ footer {
|
|||
}
|
||||
|
||||
footer .info .entity-name {
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
|
@ -823,26 +830,47 @@ a.legal {
|
|||
font-size: smaller;
|
||||
}
|
||||
|
||||
/* for low-res screens, use Regular font-weight instead of Light */
|
||||
@media (-webkit-max-device-pixel-ratio: 1.3), (max-resolution: 124.8dpi) {
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local('Open Sans'), local('OpenSans'), url('../fonts/OpenSans-Regular.woff') format('woff');
|
||||
}
|
||||
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 400; /* normal */
|
||||
src: local('Nunito Regular'), local('Nunito-Regular'),
|
||||
url('../fonts/Nunito-Regular-latin-ext.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Regular.ttf') format('truetype');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url('../fonts/OpenSans-Light.woff') format('woff');
|
||||
font-weight: 400; /* normal */
|
||||
src: local('Nunito Regular'), local('Nunito-Regular'),
|
||||
url('../fonts/Nunito-Regular.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Regular.ttf') format('truetype');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url('../fonts/OpenSans-Semibold.woff') format('woff');
|
||||
font-weight: 700; /* bold */
|
||||
src: local('Nunito Bold'), local('Nunito-Bold'),
|
||||
url('../fonts/Nunito-Bold-latin-ext.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Bold.ttf') format('truetype');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Nunito';
|
||||
font-style: normal;
|
||||
font-weight: 700; /* bold */
|
||||
src: local('Nunito Bold'), local('Nunito-Bold'),
|
||||
url('../fonts/Nunito-Bold.woff2') format('woff2'),
|
||||
url('../fonts/Nunito-Bold.ttf') format('truetype');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
.header-right > div > .menu {
|
||||
background-color: var(--color-main-background);
|
||||
filter: drop-shadow(0 1px 5px var(--color-box-shadow));
|
||||
border-radius: 0 0 3px 3px;
|
||||
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
||||
box-sizing: border-box;
|
||||
z-index: 2000;
|
||||
position: absolute;
|
||||
|
@ -212,7 +212,7 @@
|
|||
.header-appname {
|
||||
color: var(--color-primary-text);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-right: 5px;
|
||||
|
@ -615,7 +615,7 @@ nav[role='navigation'] {
|
|||
background-color: transparent;
|
||||
color: var(--color-primary-text);
|
||||
border: 0;
|
||||
border-radius: var(--border-radius);
|
||||
border-radius: var(--border-radius-pill);
|
||||
height: 34px;
|
||||
width: 0;
|
||||
cursor: pointer;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* Specifically override browser styles */
|
||||
input, textarea, select, button, div[contenteditable=true], div[contenteditable=false] {
|
||||
font-family: var(--font-face)
|
||||
font-family: var(--font-face);
|
||||
}
|
||||
.select2-container-multi .select2-choices .select2-search-field input, .select2-search input, .ui-widget {
|
||||
font-family: var(--font-face) !important;
|
||||
|
@ -174,7 +174,9 @@ input[type='button'],
|
|||
input[type='submit'],
|
||||
input[type='reset'] {
|
||||
font-weight: bold;
|
||||
/* Get rid of the ugly firefox dotted line */
|
||||
border-radius: var(--border-radius-pill);
|
||||
|
||||
/* Get rid of the inside dotted line in Firefox */
|
||||
&::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
@ -286,7 +288,7 @@ button img,
|
|||
}
|
||||
select,
|
||||
.button.multiselect {
|
||||
font-weight: 400;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Radio & Checkboxes */
|
||||
|
@ -662,7 +664,7 @@ input {
|
|||
border: 1px solid var(--color-border-dark);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
border-radius: var(--border-radius);
|
||||
height: 34px;
|
||||
/* tag wrapper */
|
||||
.multiselect__tags-wrap {
|
||||
|
@ -692,7 +694,7 @@ input {
|
|||
border: 1px solid var(--color-border-dark);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
border-radius: 3px;
|
||||
border-radius: var(--border-radius);
|
||||
/* require to override the default width
|
||||
and force the tag to shring properly */
|
||||
min-width: 0;
|
||||
|
|
|
@ -70,7 +70,7 @@ $footer-height: 65px;
|
|||
color: var(--color-text-lighter);
|
||||
a {
|
||||
color: var(--color-text-lighter);
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
/* increasing clickability to more than the text height */
|
||||
padding: 13px;
|
||||
|
|
|
@ -3,10 +3,13 @@ form fieldset {
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
form fieldset > p {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#password {
|
||||
margin-right: 0 !important;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
margin: 5px 0;
|
||||
padding-right: 45px;
|
||||
height: 45px;
|
||||
box-sizing: border-box;
|
||||
flex: 1 1 auto;
|
||||
|
@ -16,13 +19,10 @@ form fieldset {
|
|||
|
||||
input[type='submit'],
|
||||
input[type='submit'].icon-confirm {
|
||||
width: 45px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: -5px;
|
||||
width: 45px !important;
|
||||
height: 45px;
|
||||
margin-left: 0 !important;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
fieldset > p {
|
||||
display: inline-flex;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ ul {
|
|||
|
||||
body {
|
||||
background-color: var(--color-main-background);
|
||||
font-weight: 300;
|
||||
font-weight: normal;
|
||||
font-size: .8em;
|
||||
line-height: 1.6em;
|
||||
font-family: var(--font-face);
|
||||
|
@ -327,14 +327,14 @@ label.infield {
|
|||
.warning {
|
||||
legend, a {
|
||||
color: var(--color-primary-text) !important;
|
||||
font-weight: 600 !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
}
|
||||
|
||||
.error {
|
||||
a {
|
||||
color: var(--color-primary-text) !important;
|
||||
font-weight: 600 !important;
|
||||
font-weight: bold !important;
|
||||
&.button {
|
||||
color: var(--color-text-lighter) !important;
|
||||
display: inline-block;
|
||||
|
@ -541,7 +541,7 @@ code {
|
|||
|
||||
.ui-datepicker-title {
|
||||
line-height: 1;
|
||||
font-weight: 300;
|
||||
font-weight: normal;
|
||||
}
|
||||
.ui-icon {
|
||||
opacity: .5;
|
||||
|
@ -622,7 +622,7 @@ code {
|
|||
|
||||
.ui-timepicker-title {
|
||||
line-height: 1;
|
||||
font-weight: 300;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
/* AM/PM fix */
|
||||
|
@ -1091,7 +1091,7 @@ div.crumb {
|
|||
&:not(:first-child) a {
|
||||
}
|
||||
&:last-child {
|
||||
font-weight: 600;
|
||||
font-weight: bold;
|
||||
margin-right: 10px;
|
||||
// Allow multiple span next to the main 'a'
|
||||
a ~ span {
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
.tooltip {
|
||||
position: absolute;
|
||||
display: block;
|
||||
font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
font-family: 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-weight: normal;
|
||||
letter-spacing: normal;
|
||||
line-break: auto;
|
||||
line-height: 1.6;
|
||||
|
@ -135,4 +135,4 @@
|
|||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
// SCSS variables
|
||||
// DEPRECATED, please use CSS4 vars
|
||||
$color-main-text: #000 !default;
|
||||
$color-main-text: #222 !default; // Not #000 for better readability
|
||||
$color-main-background: #fff !default;
|
||||
$color-main-background-translucent: rgba($color-main-background, .97) !default;
|
||||
|
||||
|
@ -74,9 +74,11 @@ $color-border: nc-darken($color-main-background, 7%) !default;
|
|||
// darker border like inputs or very visible elements
|
||||
$color-border-dark: nc-darken($color-main-background, 14%) !default;
|
||||
$border-radius: 3px !default;
|
||||
$border-radius-large: 10px;
|
||||
$border-radius-large: 10px !default;
|
||||
// Pill-style button, value is large so big buttons also have correct roundness
|
||||
$border-radius-pill: 100px !default;
|
||||
|
||||
$font-face: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif !default;
|
||||
$font-face: 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif !default;
|
||||
|
||||
|
||||
// various structure data
|
||||
|
|
|
@ -1,202 +0,0 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,93 @@
|
|||
Copyright 2014 The Nunito Project Authors (contact@sansoxygen.com)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -25,7 +25,7 @@
|
|||
|
||||
var $element = $(element);
|
||||
|
||||
$clone = $("<input />");
|
||||
var $clone = $("<input />");
|
||||
|
||||
// Name added for JQuery Validation compatibility
|
||||
// Element name is required to avoid script warning.
|
||||
|
|
|
@ -167,7 +167,7 @@ OC.L10N = {
|
|||
* @private
|
||||
*/
|
||||
_getPlural: function(number) {
|
||||
locale = OC.getLocale();
|
||||
var locale = OC.getLocale();
|
||||
if ('pt_BR' === locale) {
|
||||
// temporary set a locale for brazilian
|
||||
locale = 'xbr';
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
var palette = new Array();
|
||||
palette.push(color1);
|
||||
var step = stepCalc(steps, [color1, color2])
|
||||
for (i = 1; i < steps; i++) {
|
||||
for (var i = 1; i < steps; i++) {
|
||||
var r = parseInt(color1.r + (step[0] * i));
|
||||
var g = parseInt(color1.g + (step[1] * i));
|
||||
var b = parseInt(color1.b + (step[2] * i));
|
||||
|
|
|
@ -422,7 +422,6 @@
|
|||
|
||||
if (xhr.status === 200) {
|
||||
var securityHeaders = {
|
||||
'X-XSS-Protection': ['1; mode=block'],
|
||||
'X-Content-Type-Options': ['nosniff'],
|
||||
'X-Robots-Tag': ['none'],
|
||||
'X-Frame-Options': ['SAMEORIGIN', 'DENY'],
|
||||
|
@ -443,6 +442,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
var xssfields = xhr.getResponseHeader('X-XSS-Protection') ? xhr.getResponseHeader('X-XSS-Protection').split(';').map(function(item) { return item.trim(); }) : [];
|
||||
if (xssfields.length === 0 || xssfields.indexOf('1') === -1 || xssfields.indexOf('mode=block') === -1) {
|
||||
messages.push({
|
||||
msg: t('core', 'The "{header}" HTTP header doesn\'t contain "{expected}". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
{
|
||||
header: 'X-XSS-Protection',
|
||||
expected: '1; mode=block'
|
||||
}),
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
});
|
||||
}
|
||||
|
||||
if (!xhr.getResponseHeader('Referrer-Policy') ||
|
||||
(xhr.getResponseHeader('Referrer-Policy').toLowerCase() !== 'no-referrer' &&
|
||||
xhr.getResponseHeader('Referrer-Policy').toLowerCase() !== 'no-referrer-when-downgrade' &&
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
});
|
||||
clipboard.on('error', function (e) {
|
||||
var $menu = $(e.trigger);
|
||||
var $linkTextMenu = $menu.parent().next('li.linkTextMenu')
|
||||
var $linkTextMenu = $menu.parent().next('li.linkTextMenu');
|
||||
var $input = $linkTextMenu.find('.linkText');
|
||||
|
||||
var actionMsg = '';
|
||||
|
@ -393,8 +393,8 @@
|
|||
|
||||
var isLinkShare = this.model.get('linkShare').isLinkShare;
|
||||
var isPasswordSet = !!this.model.get('linkShare').password;
|
||||
var isPasswordEnforced = this.configModel.get('enforcePasswordForPublicLink')
|
||||
var isPasswordEnabledByDefault = this.configModel.get('enableLinkPasswordByDefault') === true
|
||||
var isPasswordEnforced = this.configModel.get('enforcePasswordForPublicLink');
|
||||
var isPasswordEnabledByDefault = this.configModel.get('enableLinkPasswordByDefault') === true;
|
||||
var showPasswordCheckBox = isLinkShare
|
||||
&& ( !this.configModel.get('enforcePasswordForPublicLink')
|
||||
|| !this.model.get('linkShare').password);
|
||||
|
|
|
@ -811,9 +811,6 @@ describe('OC.SetupChecks tests', function() {
|
|||
async.done(function( data, s, x ){
|
||||
expect(data).toEqual([
|
||||
{
|
||||
msg: 'The "X-XSS-Protection" HTTP header is not set to "1; mode=block". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
}, {
|
||||
msg: 'The "X-Content-Type-Options" HTTP header is not set to "nosniff". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
}, {
|
||||
|
@ -829,6 +826,9 @@ describe('OC.SetupChecks tests', function() {
|
|||
}, {
|
||||
msg: 'The "X-Permitted-Cross-Domain-Policies" HTTP header is not set to "none". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
}, {
|
||||
msg: 'The "X-XSS-Protection" HTTP header doesn\'t contain "1; mode=block". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
}, {
|
||||
msg: 'The "Referrer-Policy" HTTP header is not set to "no-referrer", "no-referrer-when-downgrade", "strict-origin", "strict-origin-when-cross-origin" or "same-origin". This can leak referer information. See the <a href="https://www.w3.org/TR/referrer-policy/" rel="noreferrer noopener">W3C Recommendation ↗</a>.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_INFO
|
||||
|
@ -855,13 +855,15 @@ describe('OC.SetupChecks tests', function() {
|
|||
);
|
||||
|
||||
async.done(function( data, s, x ){
|
||||
expect(data).toEqual([{
|
||||
msg: 'The "X-XSS-Protection" HTTP header is not set to "1; mode=block". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING,
|
||||
}, {
|
||||
expect(data).toEqual([
|
||||
{
|
||||
msg: 'The "X-Content-Type-Options" HTTP header is not set to "nosniff". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
}]);
|
||||
}, {
|
||||
msg: 'The "X-XSS-Protection" HTTP header doesn\'t contain "1; mode=block". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING,
|
||||
}
|
||||
]);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@ -890,6 +892,102 @@ describe('OC.SetupChecks tests', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('check X-XSS-Protection header', function() {
|
||||
it('should return no message if X-XSS-Protection is set to 1; mode=block; report=https://example.com', function(done) {
|
||||
protocolStub.returns('https');
|
||||
var result = OC.SetupChecks.checkGeneric();
|
||||
|
||||
suite.server.requests[0].respond(200, {
|
||||
'Strict-Transport-Security': 'max-age=15768000',
|
||||
'X-XSS-Protection': '1; mode=block; report=https://example.com',
|
||||
'X-Content-Type-Options': 'nosniff',
|
||||
'X-Robots-Tag': 'none',
|
||||
'X-Frame-Options': 'SAMEORIGIN',
|
||||
'X-Download-Options': 'noopen',
|
||||
'X-Permitted-Cross-Domain-Policies': 'none',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
});
|
||||
|
||||
result.done(function( data, s, x ){
|
||||
expect(data).toEqual([]);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should return no message if X-XSS-Protection is set to 1; mode=block', function(done) {
|
||||
protocolStub.returns('https');
|
||||
var result = OC.SetupChecks.checkGeneric();
|
||||
|
||||
suite.server.requests[0].respond(200, {
|
||||
'Strict-Transport-Security': 'max-age=15768000',
|
||||
'X-XSS-Protection': '1; mode=block',
|
||||
'X-Content-Type-Options': 'nosniff',
|
||||
'X-Robots-Tag': 'none',
|
||||
'X-Frame-Options': 'SAMEORIGIN',
|
||||
'X-Download-Options': 'noopen',
|
||||
'X-Permitted-Cross-Domain-Policies': 'none',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
});
|
||||
|
||||
result.done(function( data, s, x ){
|
||||
expect(data).toEqual([]);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should return a message if X-XSS-Protection is set to 1', function(done) {
|
||||
protocolStub.returns('https');
|
||||
var result = OC.SetupChecks.checkGeneric();
|
||||
|
||||
suite.server.requests[0].respond(200, {
|
||||
'Strict-Transport-Security': 'max-age=15768000',
|
||||
'X-XSS-Protection': '1',
|
||||
'X-Content-Type-Options': 'nosniff',
|
||||
'X-Robots-Tag': 'none',
|
||||
'X-Frame-Options': 'SAMEORIGIN',
|
||||
'X-Download-Options': 'noopen',
|
||||
'X-Permitted-Cross-Domain-Policies': 'none',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
});
|
||||
|
||||
result.done(function( data, s, x ){
|
||||
expect(data).toEqual([
|
||||
{
|
||||
msg: 'The "X-XSS-Protection" HTTP header doesn\'t contain "1; mode=block". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
}
|
||||
]);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should return a message if X-XSS-Protection is set to 0', function(done) {
|
||||
protocolStub.returns('https');
|
||||
var result = OC.SetupChecks.checkGeneric();
|
||||
|
||||
suite.server.requests[0].respond(200, {
|
||||
'Strict-Transport-Security': 'max-age=15768000',
|
||||
'X-XSS-Protection': '0',
|
||||
'X-Content-Type-Options': 'nosniff',
|
||||
'X-Robots-Tag': 'none',
|
||||
'X-Frame-Options': 'SAMEORIGIN',
|
||||
'X-Download-Options': 'noopen',
|
||||
'X-Permitted-Cross-Domain-Policies': 'none',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
});
|
||||
|
||||
result.done(function( data, s, x ){
|
||||
expect(data).toEqual([
|
||||
{
|
||||
msg: 'The "X-XSS-Protection" HTTP header doesn\'t contain "1; mode=block". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',
|
||||
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
||||
}
|
||||
]);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('check Referrer-Policy header', function() {
|
||||
it('should return no message if Referrer-Policy is set to no-referrer', function(done) {
|
||||
protocolStub.returns('https');
|
||||
|
|
|
@ -88,6 +88,9 @@ return array(
|
|||
'OCP\\BackgroundJob' => $baseDir . '/lib/public/BackgroundJob.php',
|
||||
'OCP\\BackgroundJob\\IJob' => $baseDir . '/lib/public/BackgroundJob/IJob.php',
|
||||
'OCP\\BackgroundJob\\IJobList' => $baseDir . '/lib/public/BackgroundJob/IJobList.php',
|
||||
'OCP\\BackgroundJob\\Job' => $baseDir . '/lib/public/BackgroundJob/Job.php',
|
||||
'OCP\\BackgroundJob\\QueuedJob' => $baseDir . '/lib/public/BackgroundJob/QueuedJob.php',
|
||||
'OCP\\BackgroundJob\\TimedJob' => $baseDir . '/lib/public/BackgroundJob/TimedJob.php',
|
||||
'OCP\\Calendar\\BackendTemporarilyUnavailableException' => $baseDir . '/lib/public/Calendar/BackendTemporarilyUnavailableException.php',
|
||||
'OCP\\Calendar\\ICalendar' => $baseDir . '/lib/public/Calendar/ICalendar.php',
|
||||
'OCP\\Calendar\\IManager' => $baseDir . '/lib/public/Calendar/IManager.php',
|
||||
|
|
|
@ -118,6 +118,9 @@ class ComposerStaticInit53792487c5a8370acc0b06b1a864ff4c
|
|||
'OCP\\BackgroundJob' => __DIR__ . '/../../..' . '/lib/public/BackgroundJob.php',
|
||||
'OCP\\BackgroundJob\\IJob' => __DIR__ . '/../../..' . '/lib/public/BackgroundJob/IJob.php',
|
||||
'OCP\\BackgroundJob\\IJobList' => __DIR__ . '/../../..' . '/lib/public/BackgroundJob/IJobList.php',
|
||||
'OCP\\BackgroundJob\\Job' => __DIR__ . '/../../..' . '/lib/public/BackgroundJob/Job.php',
|
||||
'OCP\\BackgroundJob\\QueuedJob' => __DIR__ . '/../../..' . '/lib/public/BackgroundJob/QueuedJob.php',
|
||||
'OCP\\BackgroundJob\\TimedJob' => __DIR__ . '/../../..' . '/lib/public/BackgroundJob/TimedJob.php',
|
||||
'OCP\\Calendar\\BackendTemporarilyUnavailableException' => __DIR__ . '/../../..' . '/lib/public/Calendar/BackendTemporarilyUnavailableException.php',
|
||||
'OCP\\Calendar\\ICalendar' => __DIR__ . '/../../..' . '/lib/public/Calendar/ICalendar.php',
|
||||
'OCP\\Calendar\\IManager' => __DIR__ . '/../../..' . '/lib/public/Calendar/IManager.php',
|
||||
|
|
|
@ -112,7 +112,9 @@ class Manager implements IProvider {
|
|||
public function getToken(string $tokenId): IToken {
|
||||
try {
|
||||
return $this->publicKeyTokenProvider->getToken($tokenId);
|
||||
} catch (InvalidTokenException $e) {
|
||||
} catch (ExpiredTokenException $e) {
|
||||
throw $e;
|
||||
} catch(InvalidTokenException $e) {
|
||||
// No worries we try to convert it to a PublicKey Token
|
||||
}
|
||||
|
||||
|
@ -138,6 +140,8 @@ class Manager implements IProvider {
|
|||
public function getTokenById(int $tokenId): IToken {
|
||||
try {
|
||||
return $this->publicKeyTokenProvider->getTokenById($tokenId);
|
||||
} catch (ExpiredTokenException $e) {
|
||||
throw $e;
|
||||
} catch (InvalidTokenException $e) {
|
||||
return $this->defaultTokenProvider->getTokenById($tokenId);
|
||||
}
|
||||
|
@ -151,6 +155,8 @@ class Manager implements IProvider {
|
|||
public function renewSessionToken(string $oldSessionId, string $sessionId) {
|
||||
try {
|
||||
$this->publicKeyTokenProvider->renewSessionToken($oldSessionId, $sessionId);
|
||||
} catch (ExpiredTokenException $e) {
|
||||
throw $e;
|
||||
} catch (InvalidTokenException $e) {
|
||||
$this->defaultTokenProvider->renewSessionToken($oldSessionId, $sessionId);
|
||||
}
|
||||
|
|
|
@ -62,15 +62,18 @@ class Avatar implements IAvatar {
|
|||
|
||||
/**
|
||||
* https://github.com/sebdesign/cap-height -- for 500px height
|
||||
* Open Sans cap-height is 0.72 and we want a 200px caps height size (0.4 letter-to-total-height ratio, 500*0.4=200). 200/0.72 = 278px.
|
||||
* Since we start from the baseline (text-anchor) we need to shift the y axis by 100px (half the caps height): 500/2+100=350
|
||||
*
|
||||
* @var string
|
||||
* Automated check: https://codepen.io/skjnldsv/pen/PydLBK/
|
||||
* Nunito cap-height is 0.716 and we want a 200px caps height size
|
||||
* (0.4 letter-to-total-height ratio, 500*0.4=200), so: 200/0.716 = 279px.
|
||||
* Since we start from the baseline (text-anchor) we need to
|
||||
* shift the y axis by 100px (half the caps height): 500/2+100=350
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $svgTemplate = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="{size}" height="{size}" version="1.1" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="100%" height="100%" fill="#{fill}"></rect>
|
||||
<text x="50%" y="350" style="font-weight:600;font-size:278px;font-family:\'Open Sans\';text-anchor:middle;fill:#fff">{letter}</text>
|
||||
<text x="50%" y="350" style="font-weight:normal;font-size:279px;font-family:\'Nunito\';text-anchor:middle;fill:#fff">{letter}</text>
|
||||
</svg>';
|
||||
|
||||
/**
|
||||
|
@ -189,7 +192,7 @@ class Avatar implements IAvatar {
|
|||
//
|
||||
}
|
||||
$this->user->triggerChange('avatar', $file);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* remove the users avatar
|
||||
|
@ -285,15 +288,15 @@ class Avatar implements IAvatar {
|
|||
}
|
||||
throw new NotFoundException;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {size} = 500
|
||||
* {fill} = hex color to fill
|
||||
* {letter} = Letter to display
|
||||
*
|
||||
*
|
||||
* Generate SVG avatar
|
||||
* @return string
|
||||
*
|
||||
*
|
||||
*/
|
||||
private function getAvatarVector(int $size): string {
|
||||
$userDisplayName = $this->user->getDisplayName();
|
||||
|
@ -301,14 +304,14 @@ class Avatar implements IAvatar {
|
|||
$bgRGB = $this->avatarBackgroundColor($userDisplayName);
|
||||
$bgHEX = sprintf("%02x%02x%02x", $bgRGB->r, $bgRGB->g, $bgRGB->b);
|
||||
$letter = mb_strtoupper(mb_substr($userDisplayName, 0, 1), 'UTF-8');
|
||||
|
||||
|
||||
$toReplace = ['{size}', '{fill}', '{letter}'];
|
||||
return str_replace($toReplace, [$size, $bgHEX, $letter], $this->svgTemplate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate png avatar from svg with Imagick
|
||||
*
|
||||
*
|
||||
* @param int $size
|
||||
* @return string|boolean
|
||||
*/
|
||||
|
@ -317,7 +320,7 @@ class Avatar implements IAvatar {
|
|||
return false;
|
||||
}
|
||||
try {
|
||||
$font = __DIR__ . '/../../core/fonts/OpenSans-Semibold.ttf';
|
||||
$font = __DIR__ . '/../../core/fonts/Nunito-Regular.ttf';
|
||||
$svg = $this->getAvatarVector($size);
|
||||
$avatar = new Imagick();
|
||||
$avatar->setFont($font);
|
||||
|
@ -333,7 +336,7 @@ class Avatar implements IAvatar {
|
|||
|
||||
/**
|
||||
* Generate png avatar with GD
|
||||
*
|
||||
*
|
||||
* @param string $userDisplayName
|
||||
* @param int $size
|
||||
* @return string
|
||||
|
@ -347,7 +350,7 @@ class Avatar implements IAvatar {
|
|||
$white = imagecolorallocate($im, 255, 255, 255);
|
||||
imagefilledrectangle($im, 0, 0, $size, $size, $background);
|
||||
|
||||
$font = __DIR__ . '/../../core/fonts/OpenSans-Semibold.ttf';
|
||||
$font = __DIR__ . '/../../core/fonts/Nunito-Regular.ttf';
|
||||
|
||||
$fontSize = $size * 0.4;
|
||||
|
||||
|
@ -455,7 +458,7 @@ class Avatar implements IAvatar {
|
|||
public function avatarBackgroundColor(string $hash) {
|
||||
// Normalize hash
|
||||
$hash = strtolower($hash);
|
||||
|
||||
|
||||
// Already a md5 hash?
|
||||
if( preg_match('/^([0-9a-f]{4}-?){8}$/', $hash, $matches) !== 1 ) {
|
||||
$hash = md5($hash);
|
||||
|
|
|
@ -63,12 +63,17 @@ class LookupPlugin implements ISearchPlugin {
|
|||
public function search($search, $limit, $offset, ISearchResult $searchResult) {
|
||||
$isGlobalScaleEnabled = $this->config->getSystemValue('gs.enabled', false);
|
||||
$isLookupServerEnabled = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no') === 'yes';
|
||||
$hasInternetConnection = (bool)$this->config->getSystemValue('has_internet_connection', true);
|
||||
|
||||
// if case of Global Scale we always search the lookup server
|
||||
if (!$isLookupServerEnabled && !$isGlobalScaleEnabled) {
|
||||
if ((!$isLookupServerEnabled && !$isGlobalScaleEnabled) || !$hasInternetConnection) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$lookupServerUrl = $this->config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com');
|
||||
if(empty($lookupServerUrl)) {
|
||||
return false;
|
||||
}
|
||||
$lookupServerUrl = rtrim($lookupServerUrl, '/');
|
||||
$result = [];
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ class TXT extends Provider {
|
|||
|
||||
$fontFile = __DIR__;
|
||||
$fontFile .= '/../../../core';
|
||||
$fontFile .= '/fonts/OpenSans-Regular.ttf';
|
||||
$fontFile .= '/fonts/Nunito-Regular.ttf';
|
||||
|
||||
$canUseTTF = function_exists('imagettftext');
|
||||
|
||||
|
|
|
@ -223,4 +223,12 @@ class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy
|
|||
$this->allowedWorkerSrcDomains = $allowedWorkerSrcDomains;
|
||||
}
|
||||
|
||||
public function getReportTo(): array {
|
||||
return $this->reportTo;
|
||||
}
|
||||
|
||||
public function setReportTo(array $reportTo) {
|
||||
$this->reportTo = $reportTo;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -74,6 +74,8 @@ class ContentSecurityPolicyNonceManager {
|
|||
Request::USER_AGENT_CHROME,
|
||||
// Firefox 45+
|
||||
'/^Mozilla\/5\.0 \([^)]+\) Gecko\/[0-9.]+ Firefox\/(4[5-9]|[5-9][0-9])\.[0-9.]+$/',
|
||||
// Safari 12+
|
||||
'/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/(1[2-9]|[2-9][0-9])\.[0-9]+ Safari\/[0-9.A-Z]+$/',
|
||||
];
|
||||
|
||||
if($this->request->isUserAgent($browserWhitelist)) {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue