auf 2.0.0 und css Tests

This commit is contained in:
Holger Trampe 2021-10-22 09:25:43 +02:00
parent 3d07ca9dc0
commit b6fbe90806
17 changed files with 357 additions and 337 deletions

View File

@ -1,6 +1,6 @@
# Makefile for building the project
app_name=da_registration
app_name=registration
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts

View File

@ -1,11 +1,11 @@
<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>da_registration</id>
<id>registration</id>
<name>DA Registration</name>
<namespace>Registration</namespace>
<description></description>
<version>1.5.0</version>
<version>2.0.0</version>
<licence>agpl</licence>
<types>
<prevent_group_restriction />

View File

@ -5,8 +5,8 @@
"OCA\\Registration\\": "lib/"
}
},
"name": "nextcloud/da_registration",
"description": "da_registration",
"name": "nextcloud/registration",
"description": "registration",
"license": "AGPL",
"require": {
},

View File

@ -1,10 +1,10 @@
#alternative-logins:not(.alternative-logins) .button.register-button {
color: var(--color-primary-element);
background-color: red;
background-color: blue;
}
#alternative-logins.alternative-logins .button.register-button {
color: red;
background-color: red;
background-color: blue;
}
#alternative-logins .register-button:only-child {

View File

@ -29,4 +29,4 @@ document.addEventListener('DOMContentLoaded', function () {
});
/******/ })()
;
//# sourceMappingURL=da_registration-form.js.map?v=f64a2674d0a4e7f46973
//# sourceMappingURL=registration-form.js.map?v=f64a2674d0a4e7f46973

View File

@ -1 +1 @@
{"version":3,"file":"da_registration-form.js?v=f64a2674d0a4e7f46973","sources":["webpack:///da_registration/src/form.js"],"sourcesContent":["\"use strict\";\n\ndocument.addEventListener('DOMContentLoaded', function () {\n var _this = this;\n\n // Password toggle\n $('#showadminpass').click(function (e) {\n e.preventDefault();\n var passwordTextField = $('#password');\n\n if (passwordTextField.attr('type') === 'password') {\n passwordTextField.attr('type', 'text');\n } else {\n passwordTextField.attr('type', 'password');\n }\n }); // Disable submit after first click\n\n $('form').submit(function () {\n // prevent duplicate form submissions\n $(_this).find(':submit').attr('disabled', 'disabled');\n $(_this).find(':submit')[0].value = t('registration', 'Loading …');\n });\n});"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;A","sourceRoot":""}
{"version":3,"file":"registration-form.js?v=f64a2674d0a4e7f46973","sources":["webpack:///registration/src/form.js"],"sourcesContent":["\"use strict\";\n\ndocument.addEventListener('DOMContentLoaded', function () {\n var _this = this;\n\n // Password toggle\n $('#showadminpass').click(function (e) {\n e.preventDefault();\n var passwordTextField = $('#password');\n\n if (passwordTextField.attr('type') === 'password') {\n passwordTextField.attr('type', 'text');\n } else {\n passwordTextField.attr('type', 'password');\n }\n }); // Disable submit after first click\n\n $('form').submit(function () {\n // prevent duplicate form submissions\n $(_this).find(':submit').attr('disabled', 'disabled');\n $(_this).find(':submit')[0].value = t('registration', 'Loading …');\n });\n});"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;A","sourceRoot":""}

View File

@ -3615,15 +3615,15 @@ _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }
assign: objectAssign
});
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function _typeof(obj) {
@ -8483,11 +8483,11 @@ function () {
var TOAST_UNDO_TIMEOUT = 10000;
var TOAST_DEFAULT_TIMEOUT = 7000;
var TOAST_PERMANENT_TIMEOUT = -1;
/**
* Show a toast message
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
/**
* Show a toast message
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
*/
function showMessage(data, options) {
@ -8524,11 +8524,11 @@ function showMessage(data, options) {
toast.showToast();
return toast;
}
/**
* Show a toast message with error styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
/**
* Show a toast message with error styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
*/
function showError(text, options) {
@ -8536,11 +8536,11 @@ function showError(text, options) {
type: ToastType.ERROR
}));
}
/**
* Show a toast message with warning styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
/**
* Show a toast message with warning styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
*/
function showWarning(text, options) {
@ -8548,11 +8548,11 @@ function showWarning(text, options) {
type: ToastType.WARNING
}));
}
/**
* Show a toast message with info styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
/**
* Show a toast message with info styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
*/
function showInfo(text, options) {
@ -8560,11 +8560,11 @@ function showInfo(text, options) {
type: ToastType.INFO
}));
}
/**
* Show a toast message with success styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
/**
* Show a toast message with success styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param options
*/
function showSuccess(text, options) {
@ -8572,12 +8572,12 @@ function showSuccess(text, options) {
type: ToastType.SUCCESS
}));
}
/**
* Show a toast message with undo styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param onUndo Function that is called when the undo button is clicked
* @param options
/**
* Show a toast message with undo styling
*
* @param text Message to be shown in the toast, any HTML is removed by default
* @param onUndo Function that is called when the undo button is clicked
* @param options
*/
function showUndo(text, onUndo, options) {
@ -11955,33 +11955,33 @@ function getBus() {
}
var bus = getBus();
/**
* Register an event listener
*
* @param name name of the event
* @param handler callback invoked for every matching event emitted on the bus
/**
* Register an event listener
*
* @param name name of the event
* @param handler callback invoked for every matching event emitted on the bus
*/
function subscribe(name, handler) {
bus.subscribe(name, handler);
}
/**
* Unregister a previously registered event listener
*
* Note: doesn't work with anonymous functions (closures). Use method of an object or store listener function in variable.
*
* @param name name of the event
* @param handler callback passed to `subscribed`
/**
* Unregister a previously registered event listener
*
* Note: doesn't work with anonymous functions (closures). Use method of an object or store listener function in variable.
*
* @param name name of the event
* @param handler callback passed to `subscribed`
*/
function unsubscribe(name, handler) {
bus.unsubscribe(name, handler);
}
/**
* Emit an event
*
* @param name name of the event
* @param event event payload
/**
* Emit an event
*
* @param name name of the event
* @param event event payload
*/
function emit(name, event) {
@ -29744,166 +29744,166 @@ module.exports = toPlainObject;
\*********************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
(function(){
var crypt = __webpack_require__(/*! crypt */ "./node_modules/crypt/crypt.js"),
utf8 = __webpack_require__(/*! charenc */ "./node_modules/charenc/charenc.js").utf8,
isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js"),
bin = __webpack_require__(/*! charenc */ "./node_modules/charenc/charenc.js").bin,
// The core
md5 = function (message, options) {
// Convert to byte array
if (message.constructor == String)
if (options && options.encoding === 'binary')
message = bin.stringToBytes(message);
else
message = utf8.stringToBytes(message);
else if (isBuffer(message))
message = Array.prototype.slice.call(message, 0);
else if (!Array.isArray(message) && message.constructor !== Uint8Array)
message = message.toString();
// else, assume byte array already
var m = crypt.bytesToWords(message),
l = message.length * 8,
a = 1732584193,
b = -271733879,
c = -1732584194,
d = 271733878;
// Swap endian
for (var i = 0; i < m.length; i++) {
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
}
// Padding
m[l >>> 5] |= 0x80 << (l % 32);
m[(((l + 64) >>> 9) << 4) + 14] = l;
// Method shortcuts
var FF = md5._ff,
GG = md5._gg,
HH = md5._hh,
II = md5._ii;
for (var i = 0; i < m.length; i += 16) {
var aa = a,
bb = b,
cc = c,
dd = d;
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
c = FF(c, d, a, b, m[i+10], 17, -42063);
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
d = FF(d, a, b, c, m[i+13], 12, -40341101);
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
c = GG(c, d, a, b, m[i+11], 14, 643717713);
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
d = GG(d, a, b, c, m[i+10], 9, 38016083);
c = GG(c, d, a, b, m[i+15], 14, -660478335);
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
b = HH(b, c, d, a, m[i+14], 23, -35309556);
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
a = HH(a, b, c, d, m[i+13], 4, 681279174);
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
d = HH(d, a, b, c, m[i+12], 11, -421815835);
c = HH(c, d, a, b, m[i+15], 16, 530742520);
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
c = II(c, d, a, b, m[i+14], 15, -1416354905);
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
a = II(a, b, c, d, m[i+12], 6, 1700485571);
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
c = II(c, d, a, b, m[i+10], 15, -1051523);
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
d = II(d, a, b, c, m[i+15], 10, -30611744);
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
b = II(b, c, d, a, m[i+13], 21, 1309151649);
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
d = II(d, a, b, c, m[i+11], 10, -1120210379);
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
a = (a + aa) >>> 0;
b = (b + bb) >>> 0;
c = (c + cc) >>> 0;
d = (d + dd) >>> 0;
}
return crypt.endian([a, b, c, d]);
};
// Auxiliary functions
md5._ff = function (a, b, c, d, x, s, t) {
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
md5._gg = function (a, b, c, d, x, s, t) {
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
md5._hh = function (a, b, c, d, x, s, t) {
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
md5._ii = function (a, b, c, d, x, s, t) {
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
// Package private blocksize
md5._blocksize = 16;
md5._digestsize = 16;
module.exports = function (message, options) {
if (message === undefined || message === null)
throw new Error('Illegal argument ' + message);
var digestbytes = crypt.wordsToBytes(md5(message, options));
return options && options.asBytes ? digestbytes :
options && options.asString ? bin.bytesToString(digestbytes) :
crypt.bytesToHex(digestbytes);
};
})();
(function(){
var crypt = __webpack_require__(/*! crypt */ "./node_modules/crypt/crypt.js"),
utf8 = __webpack_require__(/*! charenc */ "./node_modules/charenc/charenc.js").utf8,
isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js"),
bin = __webpack_require__(/*! charenc */ "./node_modules/charenc/charenc.js").bin,
// The core
md5 = function (message, options) {
// Convert to byte array
if (message.constructor == String)
if (options && options.encoding === 'binary')
message = bin.stringToBytes(message);
else
message = utf8.stringToBytes(message);
else if (isBuffer(message))
message = Array.prototype.slice.call(message, 0);
else if (!Array.isArray(message) && message.constructor !== Uint8Array)
message = message.toString();
// else, assume byte array already
var m = crypt.bytesToWords(message),
l = message.length * 8,
a = 1732584193,
b = -271733879,
c = -1732584194,
d = 271733878;
// Swap endian
for (var i = 0; i < m.length; i++) {
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
}
// Padding
m[l >>> 5] |= 0x80 << (l % 32);
m[(((l + 64) >>> 9) << 4) + 14] = l;
// Method shortcuts
var FF = md5._ff,
GG = md5._gg,
HH = md5._hh,
II = md5._ii;
for (var i = 0; i < m.length; i += 16) {
var aa = a,
bb = b,
cc = c,
dd = d;
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
c = FF(c, d, a, b, m[i+10], 17, -42063);
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
d = FF(d, a, b, c, m[i+13], 12, -40341101);
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
c = GG(c, d, a, b, m[i+11], 14, 643717713);
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
d = GG(d, a, b, c, m[i+10], 9, 38016083);
c = GG(c, d, a, b, m[i+15], 14, -660478335);
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
b = HH(b, c, d, a, m[i+14], 23, -35309556);
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
a = HH(a, b, c, d, m[i+13], 4, 681279174);
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
d = HH(d, a, b, c, m[i+12], 11, -421815835);
c = HH(c, d, a, b, m[i+15], 16, 530742520);
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
c = II(c, d, a, b, m[i+14], 15, -1416354905);
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
a = II(a, b, c, d, m[i+12], 6, 1700485571);
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
c = II(c, d, a, b, m[i+10], 15, -1051523);
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
d = II(d, a, b, c, m[i+15], 10, -30611744);
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
b = II(b, c, d, a, m[i+13], 21, 1309151649);
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
d = II(d, a, b, c, m[i+11], 10, -1120210379);
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
a = (a + aa) >>> 0;
b = (b + bb) >>> 0;
c = (c + cc) >>> 0;
d = (d + dd) >>> 0;
}
return crypt.endian([a, b, c, d]);
};
// Auxiliary functions
md5._ff = function (a, b, c, d, x, s, t) {
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
md5._gg = function (a, b, c, d, x, s, t) {
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
md5._hh = function (a, b, c, d, x, s, t) {
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
md5._ii = function (a, b, c, d, x, s, t) {
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
return ((n << s) | (n >>> (32 - s))) + b;
};
// Package private blocksize
md5._blocksize = 16;
md5._digestsize = 16;
module.exports = function (message, options) {
if (message === undefined || message === null)
throw new Error('Illegal argument ' + message);
var digestbytes = crypt.wordsToBytes(md5(message, options));
return options && options.asBytes ? digestbytes :
options && options.asString ? bin.bytesToString(digestbytes) :
crypt.bytesToHex(digestbytes);
};
})();
/***/ }),
@ -39072,79 +39072,79 @@ function handleGlobalClose(event) {
}
}
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
}
// Vue.extend constructor export interop.
const options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true;
// functional template
if (isFunctionalTemplate) {
options.functional = true;
}
}
// scopedId
if (scopeId) {
options._scopeId = scopeId;
}
let hook;
if (moduleIdentifier) {
// server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
}
// inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
}
// register component module identifier for async chunk inference
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook;
}
else if (style) {
hook = shadowMode
? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
}
: function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
const originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
}
else {
// inject component registration as beforeCreate hook
const existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
}
// Vue.extend constructor export interop.
const options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true;
// functional template
if (isFunctionalTemplate) {
options.functional = true;
}
}
// scopedId
if (scopeId) {
options._scopeId = scopeId;
}
let hook;
if (moduleIdentifier) {
// server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
}
// inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
}
// register component module identifier for async chunk inference
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook;
}
else if (style) {
hook = shadowMode
? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
}
: function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
const originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
}
else {
// inject component registration as beforeCreate hook
const existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
}
/* script */
@ -49806,4 +49806,4 @@ exports.app = app;
}();
/******/ })()
;
//# sourceMappingURL=da_registration-settings.js.map?v=5d2e5fd936e0ae86b2d5
//# sourceMappingURL=registration-settings.js.map?v=5d2e5fd936e0ae86b2d5

File diff suppressed because one or more lines are too long

View File

@ -39902,7 +39902,7 @@ var render = function() {
[
_c(
"SettingsSection",
{ attrs: { title: _vm.t("da_registration", "Registration settings") } },
{ attrs: { title: _vm.t("registration", "Registration settings") } },
[
_c("p", [
_c("input", {
@ -39953,7 +39953,7 @@ var render = function() {
}),
_vm._v(" "),
_c("label", { attrs: { for: "admin_approval" } }, [
_vm._v(_vm._s(_vm.t("da_registration", "Require admin approval")))
_vm._v(_vm._s(_vm.t("registration", "Require admin approval")))
])
]),
_vm._v(" "),
@ -39961,7 +39961,7 @@ var render = function() {
_vm._v(
_vm._s(
_vm.t(
"da_registration",
"registration",
'Enabling "admin approval" will prevent registrations from mobile and desktop clients to complete as the credentials cannot be verified by the client until the user was enabled.'
)
)
@ -39975,7 +39975,7 @@ var render = function() {
_vm._v(
"\n\t\t\t\t" +
_vm._s(
_vm.t("da_registration", "Registered users default group")
_vm.t("registration", "Registered users default group")
) +
"\n\t\t\t"
)
@ -39984,7 +39984,7 @@ var render = function() {
_c("Multiselect", {
attrs: {
id: "registered_user_group",
placeholder: _vm.t("da_registration", "Select group"),
placeholder: _vm.t("registration", "Select group"),
options: _vm.groups,
disabled: _vm.loading,
searchable: true,
@ -40012,7 +40012,7 @@ var render = function() {
_vm._v(" "),
_c(
"SettingsSection",
{ attrs: { title: _vm.t("da_registration", "Email settings") } },
{ attrs: { title: _vm.t("registration", "Email settings") } },
[
_c("p", [
_c("label", { attrs: { for: "allowed_domains" } }, [
@ -40034,7 +40034,7 @@ var render = function() {
name: "allowed_domains",
disabled: _vm.loading,
placeholder: "nextcloud.com;*.example.com",
"aria-label": _vm.t("da_registration", "Allowed email domain")
"aria-label": _vm.t("registration", "Allowed email domain")
},
domProps: { value: _vm.allowedDomains },
on: {
@ -40103,7 +40103,7 @@ var render = function() {
_vm._v(
_vm._s(
_vm.t(
"da_registration",
"registration",
"Block listed email domains instead of allowing them"
)
)
@ -40215,7 +40215,7 @@ var render = function() {
_vm._v(" "),
_c("label", { attrs: { for: "disable_email_verification" } }, [
_vm._v(
_vm._s(_vm.t("da_registration", "Disable email verification"))
_vm._s(_vm.t("registration", "Disable email verification"))
)
])
])
@ -40224,7 +40224,7 @@ var render = function() {
_vm._v(" "),
_c(
"SettingsSection",
{ attrs: { title: _vm.t("da_registration", "User settings") } },
{ attrs: { title: _vm.t("registration", "User settings") } },
[
_c("p", [
_c("input", {
@ -40276,7 +40276,7 @@ var render = function() {
_vm._v(" "),
_c("label", { attrs: { for: "email_is_login" } }, [
_vm._v(
_vm._s(_vm.t("da_registration", "Force email as login name"))
_vm._s(_vm.t("registration", "Force email as login name"))
)
])
]),
@ -40286,7 +40286,7 @@ var render = function() {
_c("p", [
_c("label", { attrs: { for: "username_policy_regex" } }, [
_vm._v(
_vm._s(_vm.t("da_registration", "Login name policy"))
_vm._s(_vm.t("registration", "Login name policy"))
)
]),
_vm._v(" "),
@ -40306,7 +40306,7 @@ var render = function() {
disabled: _vm.loading,
placeholder: "E.g.: /^[a-z-]+\\.[a-z-]+$/",
"aria-label": _vm.t(
"da_registration",
"registration",
"Regular expression to validate login names"
)
},
@ -40329,7 +40329,7 @@ var render = function() {
_vm._v(
_vm._s(
_vm.t(
"da_registration",
"registration",
"If configured, login names will be validated through the regular expression. If the validation fails the user is prompted with a generic error. Make sure your regex is working correctly."
)
)
@ -40387,7 +40387,7 @@ var render = function() {
}),
_vm._v(" "),
_c("label", { attrs: { for: "show_fullname" } }, [
_vm._v(_vm._s(_vm.t("da_registration", "Show full name field")))
_vm._v(_vm._s(_vm.t("registration", "Show full name field")))
])
]),
_vm._v(" "),
@ -40442,7 +40442,7 @@ var render = function() {
_vm._v(" "),
_c("label", { attrs: { for: "enforce_fullname" } }, [
_vm._v(
_vm._s(_vm.t("da_registration", "Enforce full name field"))
_vm._s(_vm.t("registration", "Enforce full name field"))
)
])
])
@ -40498,7 +40498,7 @@ var render = function() {
}),
_vm._v(" "),
_c("label", { attrs: { for: "show_phone" } }, [
_vm._v(_vm._s(_vm.t("da_registration", "Show phone field")))
_vm._v(_vm._s(_vm.t("registration", "Show phone field")))
])
])
: _vm._e(),
@ -40554,7 +40554,7 @@ var render = function() {
_vm._v(" "),
_c("label", { attrs: { for: "enforce_phone" } }, [
_vm._v(
_vm._s(_vm.t("da_registration", "Enforce phone field"))
_vm._s(_vm.t("registration", "Enforce phone field"))
)
])
])
@ -40567,9 +40567,9 @@ var render = function() {
"SettingsSection",
{
attrs: {
title: _vm.t("da_registration", "User instructions"),
title: _vm.t("registration", "User instructions"),
description: _vm.t(
"da_registration",
"registration",
"Caution: The user instructions will not be translated and will therefore be displayed as configured below for all users regardless of their actual language."
)
}
@ -40577,7 +40577,7 @@ var render = function() {
[
_c("h3", [
_vm._v(
_vm._s(_vm.t("da_registration", "Registration form instructions"))
_vm._s(_vm.t("registration", "Registration form instructions"))
)
]),
_vm._v(" "),
@ -40598,7 +40598,7 @@ var render = function() {
placeholder:
"Please create your username following the scheme 'firstname.lastname'.",
"aria-label": _vm.t(
"da_registration",
"registration",
"A short message that is shown to the user in the registration process."
)
},
@ -40621,7 +40621,7 @@ var render = function() {
_vm._v(
_vm._s(
_vm.t(
"da_registration",
"registration",
"Add additional user instructions (e.g. for choosing their login name). If configured the text is displayed in the account creation step of the registration process."
)
)
@ -40631,7 +40631,7 @@ var render = function() {
_c("h3", [
_vm._v(
_vm._s(
_vm.t("da_registration", "Verification email instructions")
_vm.t("registration", "Verification email instructions")
)
)
]),
@ -40653,7 +40653,7 @@ var render = function() {
placeholder:
"Please create your username following the scheme 'firstname.lastname'.",
"aria-label": _vm.t(
"da_registration",
"registration",
"A short message that is shown to the user in the verification email."
)
},
@ -40676,7 +40676,7 @@ var render = function() {
_vm._v(
_vm._s(
_vm.t(
"da_registration",
"registration",
"Add additional user instructions (e.g. for choosing their login name). If configured the text is embedded in the verification-email."
)
)

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@ use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
class Application extends App implements IBootstrap {
public const APP_ID = 'da_registration';
public const APP_ID = 'registration';
public function __construct() {
parent::__construct(self::APP_ID);

View File

@ -2,6 +2,17 @@
declare(strict_types=1);
/**
* ownCloud - registration
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Pellaeon Lin <pellaeon@hs.ntnu.edu.tw>
* @author Julius Härtl <jus@bitgrid.net>
* @author 2020 Joas Schilling <coding@schilljs.com>
* @copyright Pellaeon Lin 2014
*/
namespace OCA\Registration\Controller;

View File

@ -1,5 +1,14 @@
<?php
/**
* ownCloud - registration
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Pellaeon Lin <pellaeon@cnmc.tw>
* @author Julius Härtl <jus@bitgrid.net>
* @copyright Pellaeon Lin 2015
*/
namespace OCA\Registration\Controller;

8
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "da_registration",
"version": "1.0.0",
"name": "registration",
"version": "2.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "da_registration",
"version": "1.0.0",
"name": "registration",
"version": "2.0.0",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@nextcloud/axios": "^1.6.0",

View File

@ -1,5 +1,5 @@
{
"name": "da_registration",
"name": "registration",
"version": "1.0.0",
"description": "",
"license": "AGPL-3.0-or-later",

View File

@ -2,6 +2,6 @@
/** @var array $_ */
/** @var \OCP\IL10N $l */
script('registration', 'registration-settings');
style('da_registration', 'settings');
style('registration', 'settings');
?>
<div id="registration_settings_form"></div>

View File

@ -1,7 +1,7 @@
<?php
/** @var array $_ */
/** @var \OCP\IL10N $l */
style('da_registration', 'style');
style('registration', 'style');
?>
<div class="error">
<h2><?php p($l->t('Approval required')) ?></h2>