Add config and fix selenium

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/26358/head
John Molakvoæ 2 years ago
parent a6684da737
commit 2d98cd1daf
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF

@ -2182,6 +2182,16 @@ $CONFIG = [
'login_form_autocomplete' => true,
/**
* If your user is using an outdated browser, a warning will be shown
* to offer some guidance to upgrade and ensure a proper Nextcloud experience.
* They can still bypass it after they have read the warning.
*
* Simply set this property to "true", if you want to turn this feature off.
*/
'no_unsupported_browser_warning' => false,
/**
* Disable background scanning of files
*

@ -945,19 +945,6 @@ kbd {
}
/* POPOVER MENU ------------------------------------------------------------ */
.ie .bubble, .ie .bubble:after,
.ie .popovermenu, .ie .popovermenu:after,
.ie #app-navigation .app-navigation-entry-menu,
.ie #app-navigation .app-navigation-entry-menu:after,
.edge .bubble,
.edge .bubble:after,
.edge .popovermenu,
.edge .popovermenu:after,
.edge #app-navigation .app-navigation-entry-menu,
.edge #app-navigation .app-navigation-entry-menu:after {
border: 1px solid var(--color-border);
}
.contact .popovermenu ul > li > a > img,
.popover__menu > li > a > img {
filter: var(--background-invert-if-dark);

File diff suppressed because one or more lines are too long

@ -1,6 +1,5 @@
#body-public {
/** don't apply content header padding on the base layout */
/* force layout to make sure the content element's height matches its contents' height */
/* public footer */
}
#body-public .header-right #header-primary-action a {
@ -32,9 +31,6 @@
#body-public.layout-base #content {
padding-top: 0;
}
#body-public .ie #content {
display: inline-block;
}
#body-public p.info {
margin: 20px auto;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["public.scss"],"names":[],"mappings":"AAEA;AA0CC;AAKA;AAoBA;;AAhEC;EACC;;AAIA;EACC;;AAED;EACC;EACA;EACA;;AAEA;EAGC;;AAID;EACC;;AAED;EACC;;AAED;EACC;;AAMJ;EAEC;;AAKD;EACC;;AAID;EACC;;AAID;EACC;EACA;EACA;EACA;EACA;;AAED;AAAA;AAAA;AAAA;EAIC;;AAID;EACC;EACA;EACA;EACA;EACA,QA3Ec;EA4Ed;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AACA;EACC;EACA;EACA;AACA;EACA;EACA;EACA","file":"public.css"}
{"version":3,"sourceRoot":"","sources":["public.scss"],"names":[],"mappings":"AAEA;AA0CC;AAmBA;;AA1DC;EACC;;AAIA;EACC;;AAED;EACC;EACA;EACA;;AAEA;EAGC;;AAID;EACC;;AAED;EACC;;AAED;EACC;;AAMJ;EAEC;;AAKD;EACC;;AAGD;EACC;EACA;EACA;EACA;EACA;;AAED;AAAA;AAAA;AAAA;EAIC;;AAID;EACC;EACA;EACA;EACA;EACA,QArEc;EAsEd;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AACA;EACC;EACA;EACA;AACA;EACA;EACA;EACA","file":"public.css"}

@ -3723,19 +3723,6 @@ kbd {
}
/* POPOVER MENU ------------------------------------------------------------ */
.ie .bubble, .ie .bubble:after,
.ie .popovermenu, .ie .popovermenu:after,
.ie #app-navigation .app-navigation-entry-menu,
.ie #app-navigation .app-navigation-entry-menu:after,
.edge .bubble,
.edge .bubble:after,
.edge .popovermenu,
.edge .popovermenu:after,
.edge #app-navigation .app-navigation-entry-menu,
.edge #app-navigation .app-navigation-entry-menu:after {
border: 1px solid var(--color-border);
}
.contact .popovermenu ul > li > a > img,
.popover__menu > li > a > img {
filter: var(--background-invert-if-dark);
@ -4954,7 +4941,6 @@ kbd {
#body-public {
/** don't apply content header padding on the base layout */
/* force layout to make sure the content element's height matches its contents' height */
/* public footer */
}
#body-public .header-right #header-primary-action a {
@ -4986,9 +4972,6 @@ kbd {
#body-public.layout-base #content {
padding-top: 0;
}
#body-public .ie #content {
display: inline-block;
}
#body-public p.info {
margin: 20px auto;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);

File diff suppressed because one or more lines are too long

@ -38,7 +38,7 @@ import { initCore } from './init.js'
import { registerAppsSlideToggle } from './OC/apps.js'
import { testSupportedBrowser } from './utils/RedirectUnsupportedBrowsers.js'
if (window.TESTING === undefined) {
if (!window.TESTING && !OC?.config?.no_unsupported_browser_warning) {
testSupportedBrowser()
}

@ -3,7 +3,7 @@
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@ -22,7 +22,7 @@
import { getBuilder } from '@nextcloud/browser-storage'
export default getBuilder('nextcloud')
export default getBuilder('core')
.clearOnLogout()
.persist()
.build()

@ -3,7 +3,7 @@
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as

@ -1,28 +0,0 @@
/**
* @copyright 2021 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.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/>.
*
*/
import { getLoggerBuilder } from '@nextcloud/logger'
export default getLoggerBuilder()
.setApp('core')
.detectUser()
.build()

@ -3,7 +3,7 @@
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as

@ -3,7 +3,7 @@
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@ -23,10 +23,10 @@ import { generateUrl } from '@nextcloud/router'
import { supportedBrowsersRegExp } from '../services/BrowsersListService.js'
import browserStorage from '../services/BrowserStorageService.js'
import logger from '../services/LoggerService.js'
import logger from '../logger.js'
const redirectPath = '/unsupported'
export const browserStorageKey = 'unsupported-browser-ignore'
const redirectPath = '/unsupported'
const isBrowserOverridden = browserStorage.getItem(browserStorageKey) === 'true'

@ -57,7 +57,7 @@ import Web from 'vue-material-design-icons/Web'
import { browserStorageKey } from '../utils/RedirectUnsupportedBrowsers.js'
import { supportedBrowsers } from '../services/BrowsersListService.js'
import browserStorage from '../services/BrowserStorageService.js'
import logger from '../services/LoggerService.js'
import logger from '../logger.js'
logger.debug('Supported browsers', { supportedBrowsers })
@ -159,13 +159,15 @@ export default {
</script>
<style lang="scss" scoped>
$spacing: 30px;
.content-unsupported-browser {
display: flex;
justify-content: center;
width: 400px;
max-width: 90vw;
max-width: calc(90vw - 2 * $spacing);
margin: auto;
padding: 30px;
padding: $spacing;
.empty-content {
margin: 0;
@ -176,12 +178,12 @@ export default {
&__continue {
display: block;
margin: 20px auto;
margin: $spacing auto;
}
&__list {
margin-top: 60px;
margin-bottom: 30px;
margin-top: 2 * $spacing;
margin-bottom: $spacing;
li {
text-align: left;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/core-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -3,7 +3,7 @@
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as

File diff suppressed because one or more lines are too long

@ -166,20 +166,20 @@ class JSConfigHelper {
$capabilities = $this->capabilitiesManager->getCapabilities(false, true);
$config = [
'session_lifetime' => min($this->config->getSystemValue('session_lifetime', $this->iniWrapper->getNumeric('session.gc_maxlifetime')), $this->iniWrapper->getNumeric('session.gc_maxlifetime')),
'session_keepalive' => $this->config->getSystemValue('session_keepalive', true),
'auto_logout' => $this->config->getSystemValue('auto_logout', false),
'version' => implode('.', Util::getVersion()),
'versionstring' => \OC_Util::getVersionString(),
'enable_avatars' => true, // here for legacy reasons - to not crash existing code that relies on this value
'lost_password_link' => $this->config->getSystemValue('lost_password_link', null),
'modRewriteWorking' => $this->config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true',
'sharing.maxAutocompleteResults' => max(0, $this->config->getSystemValueInt('sharing.maxAutocompleteResults', Constants::SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT)),
'sharing.minSearchStringLength' => $this->config->getSystemValueInt('sharing.minSearchStringLength', 0),
'blacklist_files_regex' => FileInfo::BLACKLIST_FILES_REGEX,
'loglevel' => $this->config->getSystemValue('loglevel_frontend',
$this->config->getSystemValue('loglevel', ILogger::WARN)
),
'lost_password_link' => $this->config->getSystemValue('lost_password_link', null),
'modRewriteWorking' => $this->config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true',
'no_unsupported_browser_warning' => $this->config->getSystemValue('no_unsupported_browser_warning', false),
'session_keepalive' => $this->config->getSystemValue('session_keepalive', true),
'session_lifetime' => min($this->config->getSystemValue('session_lifetime', $this->iniWrapper->getNumeric('session.gc_maxlifetime')), $this->iniWrapper->getNumeric('session.gc_maxlifetime')),
'sharing.maxAutocompleteResults' => max(0, $this->config->getSystemValueInt('sharing.maxAutocompleteResults', Constants::SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT)),
'sharing.minSearchStringLength' => $this->config->getSystemValueInt('sharing.minSearchStringLength', 0),
'version' => implode('.', Util::getVersion()),
'versionstring' => \OC_Util::getVersionString()
];
$array = [

@ -39,8 +39,12 @@ OC_PASS=123456acb php occ user:add --password-from-env user1
OC_PASS=123456acb php occ user:add --password-from-env disabledUser
php occ user:disable disabledUser
# Redirect to files after login for acceptance tests
php occ app:disable dashboard
# Disable browser warning as selenium is old
php occ config:system:set no_unsupported_browser_warning --value=true --type=boolean
if [ "$NEXTCLOUD_SERVER_DOMAIN" != "" ]; then
# Default first trusted domain is "localhost"; replace it with given domain.
php occ config:system:set trusted_domains 0 --value="$NEXTCLOUD_SERVER_DOMAIN"

@ -72,19 +72,19 @@ module.exports = {
federatedfilesharing: {
'vue-settings-admin': path.join(__dirname, 'apps/federatedfilesharing/src', 'main-admin.js'),
'vue-settings-personal': path.join(__dirname, 'apps/federatedfilesharing/src', 'main-personal.js'),
},
},
settings: {
apps: path.join(__dirname, 'apps/settings/src', 'apps.js'),
'legacy-admin': path.join(__dirname, 'apps/settings/src', 'admin.js'),
'vue-settings-admin-basic-settings': path.join(__dirname, 'apps/settings/src', 'main-admin-basic-settings.js'),
'vue-settings-admin-delegation': path.join(__dirname, 'apps/settings/src', 'main-admin-delegation.js'),
'vue-settings-admin-security': path.join(__dirname, 'apps/settings/src', 'main-admin-security.js'),
'vue-settings-apps-users-management': path.join(__dirname, 'apps/settings/src', 'main-apps-users-management.js'),
'vue-settings-nextcloud-pdf': path.join(__dirname, 'apps/settings/src', 'main-nextcloud-pdf.js'),
'vue-settings-personal-info': path.join(__dirname, 'apps/settings/src', 'main-personal-info.js'),
'vue-settings-personal-password': path.join(__dirname, 'apps/settings/src', 'main-personal-password.js'),
'vue-settings-personal-security': path.join(__dirname, 'apps/settings/src', 'main-personal-security.js'),
'vue-settings-personal-webauthn': path.join(__dirname, 'apps/settings/src', 'main-personal-webauth.js'),
'vue-settings-personal-password': path.join(__dirname, 'apps/settings/src', 'main-personal-password.js'),
'legacy-admin': path.join(__dirname, 'apps/settings/src', 'admin.js'),
'apps': path.join(__dirname, 'apps/settings/src', 'apps.js'),
},
sharebymail: {
'vue-settings-admin-sharebymail': path.join(__dirname, 'apps/sharebymail/src', 'main-admin.js'),

Loading…
Cancel
Save