Skip to content
Snippets Groups Projects
Commit 3e9e4d21 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Fix appstore build, cleanup unused code, remove all traces of a unit test sytem

parent 54139270
No related branches found
No related tags found
No related merge requests found
...@@ -128,9 +128,13 @@ source: ...@@ -128,9 +128,13 @@ source:
appstore: appstore:
rm -rf $(appstore_build_directory) rm -rf $(appstore_build_directory)
mkdir -p $(appstore_build_directory) mkdir -p $(appstore_build_directory)
tar cvzf $(appstore_package_name).tar.gz ../$(app_name) \ echo "building $(appstore_package_name).tar.gz from directory "
echo $(pwd)
tar cvzf $(appstore_package_name).tar.gz \
--exclude-vcs \ --exclude-vcs \
--exclude="../$(app_name)/build" \ --exclude="../$(app_name)/build" \
--exclude="../$(app_name)/.git" \
--exclude="../$(app_name)/vendor" \
--exclude="../$(app_name)/tests" \ --exclude="../$(app_name)/tests" \
--exclude="../$(app_name)/Makefile" \ --exclude="../$(app_name)/Makefile" \
--exclude="../$(app_name)/*.log" \ --exclude="../$(app_name)/*.log" \
...@@ -150,6 +154,7 @@ appstore: ...@@ -150,6 +154,7 @@ appstore:
--exclude="../$(app_name)/protractor\.*" \ --exclude="../$(app_name)/protractor\.*" \
--exclude="../$(app_name)/.*" \ --exclude="../$(app_name)/.*" \
--exclude="../$(app_name)/js/.*" \ --exclude="../$(app_name)/js/.*" \
../$(app_name)
.PHONY: test .PHONY: test
test: composer test: composer
......
...@@ -83,3 +83,7 @@ Response: ...@@ -83,3 +83,7 @@ Response:
</data> </data>
</ocs> </ocs>
``` ```
## Example script to sync members of a Nextcloud group to a Mailman mailing list
{
"name": "opentools/secondary_mail",
"description": "Enter a secondary email and specify which e-Mail should be used for external communication",
"type": "project",
"license": "AGPL",
"authors": [
{
"name": "Reinhold Kainhofer"
}
],
"require": {},
"require-dev": {
"phpunit/phpunit": "^5.4"
}
}
...@@ -57,22 +57,6 @@ ...@@ -57,22 +57,6 @@
return OCA.Secondary_Mail._submitChange($(e.target)); return OCA.Secondary_Mail._submitChange($(e.target));
} }
function _submitChangeOLD(e) {
if (OC.PasswordConfirmation.requiresPasswordConfirmation()) {
OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(_submitChange, e));
return;
}
var url = OC.generateUrl('/apps/secondarymail/settings');
let target = $(e.target),
key = target.data('setting'),
value = target.val();
if (target.attr('type') === 'checkbox') {
value = target[0].checked ? 'true' : 'false';
}
$.post(url, {key, value});
return true;
}
initialize(); initialize();
})(); })();
......
/**
* @author Reinhold Kainhofer <office@open-tools.net>
*
* @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/>.
*
*/
// 'use strict';
alert("Main script.js loaded");
(function () {
function initialize() {
$('#mailsSecondaryUse1').change(_submitChange);
$('#mailsSecondaryUse2').change(_submitChange);
$('#secondaryemail').keyup(function(e) {
if (e.keyCode == 13) {
_submitChange(e);
}
}).focusout(_submitChange);
alert("initialize for secondaryMail");
}
function _submitChange(e) {
var url = OC.generateUrl('/apps/secondarymail/settings');
let target = $(e.target),
key = target.data('setting'),
value = target.val();
if (target.attr('type') === 'checkbox') {
value = target[0].checked ? 'true' : 'false';
}
$.post(url, {key, value});
return true;
}
alert("Loaded, vor initialize...");
initialize();
})();
alert("Main script.js loaded");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment