Browse Source

Port share by mail settings to vue

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
tags/v25.0.0beta1
Carl Schwan 1 year ago
parent
commit
da49e3f3e0
100 changed files with 317 additions and 206 deletions
  1. 6
    0
      .github/workflows/command-compile.yml
  2. 0
    3
      apps/sharebymail/css/settings-admin.css
  3. 0
    46
      apps/sharebymail/js/settings-admin.js
  4. 9
    12
      apps/sharebymail/lib/Settings/Admin.php
  5. 91
    0
      apps/sharebymail/src/components/AdminSettings.vue
  6. 39
    0
      apps/sharebymail/src/main-admin.js
  7. 23
    21
      apps/sharebymail/templates/settings-admin.php
  8. 2
    2
      dist/comments-comments-app.js
  9. 1
    1
      dist/comments-comments-app.js.map
  10. 2
    2
      dist/core-common.js
  11. 1
    1
      dist/core-common.js.map
  12. 2
    2
      dist/core-files_client.js
  13. 1
    1
      dist/core-files_client.js.map
  14. 2
    2
      dist/core-install.js
  15. 1
    1
      dist/core-install.js.map
  16. 2
    2
      dist/core-login.js
  17. 1
    1
      dist/core-login.js.map
  18. 2
    2
      dist/core-main.js
  19. 1
    1
      dist/core-main.js.map
  20. 2
    2
      dist/core-maintenance.js
  21. 1
    1
      dist/core-maintenance.js.map
  22. 2
    2
      dist/core-profile.js
  23. 1
    1
      dist/core-profile.js.map
  24. 2
    2
      dist/core-recommendedapps.js
  25. 1
    1
      dist/core-recommendedapps.js.map
  26. 2
    2
      dist/core-systemtags.js
  27. 1
    1
      dist/core-systemtags.js.map
  28. 2
    2
      dist/core-unified-search.js
  29. 1
    1
      dist/core-unified-search.js.map
  30. 2
    2
      dist/dashboard-main.js
  31. 1
    1
      dist/dashboard-main.js.map
  32. 2
    2
      dist/dav-settings-admin-caldav.js
  33. 1
    1
      dist/dav-settings-admin-caldav.js.map
  34. 2
    2
      dist/dav-settings-personal-availability.js
  35. 1
    1
      dist/dav-settings-personal-availability.js.map
  36. 2
    2
      dist/files-main.js
  37. 1
    1
      dist/files-main.js.map
  38. 2
    2
      dist/files-personal-settings.js
  39. 1
    1
      dist/files-personal-settings.js.map
  40. 2
    2
      dist/files-sidebar.js
  41. 1
    1
      dist/files-sidebar.js.map
  42. 2
    2
      dist/files_sharing-additionalScripts.js
  43. 1
    1
      dist/files_sharing-additionalScripts.js.map
  44. 2
    2
      dist/files_sharing-files_sharing_tab.js
  45. 1
    1
      dist/files_sharing-files_sharing_tab.js.map
  46. 2
    2
      dist/files_sharing-personal-settings.js
  47. 1
    1
      dist/files_sharing-personal-settings.js.map
  48. 2
    2
      dist/files_trashbin-files_trashbin.js
  49. 1
    1
      dist/files_trashbin-files_trashbin.js.map
  50. 2
    2
      dist/files_versions-files_versions.js
  51. 1
    1
      dist/files_versions-files_versions.js.map
  52. 2
    2
      dist/oauth2-oauth2.js
  53. 1
    1
      dist/oauth2-oauth2.js.map
  54. 0
    2
      dist/settings-apps-view-418.js
  55. 0
    1
      dist/settings-apps-view-418.js.map
  56. 2
    0
      dist/settings-apps-view-7418.js
  57. 1
    0
      dist/settings-apps-view-7418.js.map
  58. 2
    2
      dist/settings-apps.js
  59. 1
    1
      dist/settings-apps.js.map
  60. 0
    3
      dist/settings-users-351.js
  61. 0
    1
      dist/settings-users-351.js.map
  62. 3
    0
      dist/settings-users-8351.js
  63. 0
    0
      dist/settings-users-8351.js.LICENSE.txt
  64. 1
    0
      dist/settings-users-8351.js.map
  65. 2
    2
      dist/settings-vue-settings-admin-basic-settings.js
  66. 1
    1
      dist/settings-vue-settings-admin-basic-settings.js.map
  67. 2
    2
      dist/settings-vue-settings-admin-delegation.js
  68. 1
    1
      dist/settings-vue-settings-admin-delegation.js.map
  69. 2
    2
      dist/settings-vue-settings-admin-security.js
  70. 1
    1
      dist/settings-vue-settings-admin-security.js.map
  71. 2
    2
      dist/settings-vue-settings-apps-users-management.js
  72. 1
    1
      dist/settings-vue-settings-apps-users-management.js.map
  73. 2
    2
      dist/settings-vue-settings-nextcloud-pdf.js
  74. 1
    1
      dist/settings-vue-settings-nextcloud-pdf.js.map
  75. 2
    2
      dist/settings-vue-settings-personal-info.js
  76. 1
    1
      dist/settings-vue-settings-personal-info.js.map
  77. 2
    2
      dist/settings-vue-settings-personal-security.js
  78. 1
    1
      dist/settings-vue-settings-personal-security.js.map
  79. 2
    2
      dist/settings-vue-settings-personal-webauthn.js
  80. 1
    1
      dist/settings-vue-settings-personal-webauthn.js.map
  81. 3
    0
      dist/sharebymail-vue-settings-admin-sharebymail.js
  82. 21
    0
      dist/sharebymail-vue-settings-admin-sharebymail.js.LICENSE.txt
  83. 1
    0
      dist/sharebymail-vue-settings-admin-sharebymail.js.map
  84. 2
    2
      dist/systemtags-systemtags.js
  85. 1
    1
      dist/systemtags-systemtags.js.map
  86. 2
    2
      dist/theming-theming-settings.js
  87. 1
    1
      dist/theming-theming-settings.js.map
  88. 2
    2
      dist/twofactor_backupcodes-settings.js
  89. 1
    1
      dist/twofactor_backupcodes-settings.js.map
  90. 2
    2
      dist/updatenotification-updatenotification.js
  91. 1
    1
      dist/updatenotification-updatenotification.js.map
  92. 0
    2
      dist/user-status-modal-299.js
  93. 0
    1
      dist/user-status-modal-299.js.map
  94. 2
    0
      dist/user-status-modal-8299.js
  95. 1
    0
      dist/user-status-modal-8299.js.map
  96. 2
    2
      dist/user_status-dashboard.js
  97. 1
    1
      dist/user_status-dashboard.js.map
  98. 2
    2
      dist/user_status-menu.js
  99. 1
    1
      dist/user_status-menu.js.map
  100. 0
    0
      dist/weather_status-weather-status.js

+ 6
- 0
.github/workflows/command-compile.yml View File

@@ -86,6 +86,12 @@ jobs:
npm ci
npm run build --if-present

- name: Build css
run: npm run sass

- name: Build icons css
run: npm run sass:icons

- name: Commit and push default
if: ${{ needs.init.outputs.arg1 != 'fixup' && needs.init.outputs.arg1 != 'amend' }}
run: |

+ 0
- 3
apps/sharebymail/css/settings-admin.css View File

@@ -1,3 +0,0 @@
#ncShareByMailSettings p {
padding-bottom: 10px;
}

+ 0
- 46
apps/sharebymail/js/settings-admin.js View File

@@ -1,46 +0,0 @@
/**
* @copyright Copyright (c) 2017 Bjoern Schiessle <bjoern@schiessle.org>
*
* @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
* 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/>.
*
*/
$(function() {

$('#sendPasswordMail').on('change', function() {
var status = 'no';
if ($(this).is(':checked')) {
status = 'yes';
}
OCP.AppConfig.setValue('sharebymail', 'sendpasswordmail', status);
});

$('#enforcePasswordProtection').on('change', function() {
var status = 'no';
if ($(this).is(':checked')) {
status = 'yes';
}
OCP.AppConfig.setValue('sharebymail', 'enforcePasswordProtection', status);
});

$('#replyToInitiator').on('change', function() {
var status = 'no';
if ($(this).is(':checked')) {
status = 'yes';
}
OCP.AppConfig.setValue('sharebymail', 'replyToInitiator', status);
});

});

+ 9
- 12
apps/sharebymail/lib/Settings/Admin.php View File

@@ -24,32 +24,29 @@
namespace OCA\ShareByMail\Settings;

use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Services\IInitialState;
use OCP\IL10N;
use OCP\Settings\IDelegatedSettings;

class Admin implements IDelegatedSettings {
private SettingsManager $settingsManager;
private IL10N $l;
private IInitialState $initialState;

/** @var SettingsManager */
private $settingsManager;

/** @var IL10N */
private $l;

public function __construct(SettingsManager $settingsManager, IL10N $l) {
public function __construct(SettingsManager $settingsManager, IL10N $l, IInitialState $initialState) {
$this->settingsManager = $settingsManager;
$this->l = $l;
$this->initialState = $initialState;
}

/**
* @return TemplateResponse
*/
public function getForm() {
$parameters = [
'sendPasswordMail' => $this->settingsManager->sendPasswordByMail(),
'replyToInitiator' => $this->settingsManager->replyToInitiator()
];
$this->initialState->provideInitialState('sendPasswordMail', $this->settingsManager->sendPasswordByMail());
$this->initialState->provideInitialState('replyToInitiator', $this->settingsManager->replyToInitiator());

return new TemplateResponse('sharebymail', 'settings-admin', $parameters, '');
return new TemplateResponse('sharebymail', 'settings-admin', [], '');
}

/**

+ 91
- 0
apps/sharebymail/src/components/AdminSettings.vue View File

@@ -0,0 +1,91 @@
<!--
- @copyright 2022 Carl Schwan <carl@carlschwan.eu>
-
- @author Carl Schwan <carl@carlschwan.eu>
-
- @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/>.
-
-->

<template>
<SettingsSection :title="t('sharebymail', 'Share by mail')"
:description="t('sharebymail', 'Allows users to share a personalized link to a file or folder by putting in an email address.')">
<CheckboxRadioSwitch type="switch"
:checked.sync="sendPasswordMail"
@update:checked="update('sendpasswordmail', sendPasswordMail)">
{{ t('sharebymail', 'Send password by mail') }}
</CheckboxRadioSwitch>

<CheckboxRadioSwitch type="switch"
:checked.sync="replyToInitiator"
@update:checked="update('replyToInitiator', replyToInitiator)">
{{ t('sharebymail', 'Reply to initiator') }}
</CheckboxRadioSwitch>
</SettingsSection>
</template>

<script>
import CheckboxRadioSwitch from '@nextcloud/vue/dist/Components/CheckboxRadioSwitch'
import SettingsSection from '@nextcloud/vue/dist/Components/SettingsSection'
import { loadState } from '@nextcloud/initial-state'
import { showError } from '@nextcloud/dialogs'
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import confirmPassword from '@nextcloud/password-confirmation'

export default {
name: 'AdminSettings',
components: {
CheckboxRadioSwitch,
SettingsSection,
},
data() {
return {
sendPasswordMail: loadState('sharebymail', 'sendPasswordMail'),
replyToInitiator: loadState('sharebymail', 'replyToInitiator'),
}
},
methods: {
async update(key, value) {
await confirmPassword()
const url = generateOcsUrl('/apps/provisioning_api/api/v1/config/apps/{appId}/{key}', {
appId: 'sharebymail',
key,
})
const stringValue = value ? 'yes' : 'no'
try {
const { data } = await axios.post(url, {
value: stringValue,
})
this.handleResponse({
status: data.ocs?.meta?.status
})
} catch (e) {
this.handleResponse({
errorMessage: t('sharebymail', 'Unable to update share by mail config'),
error: e,
})
}
},
async handleResponse({ status, errorMessage, error }) {
if (status !== 'ok') {
showError(errorMessage)
console.error(errorMessage, error)
}
},
}
}
</script>

+ 39
- 0
apps/sharebymail/src/main-admin.js View File

@@ -0,0 +1,39 @@
/**
* @copyright 2022 Carl Schwan <carl@carlschwan.eu>
*
* @author Carl Schwan <carl@carlschwan.eu>
*
* @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 Vue from 'vue'
import { getRequestToken } from '@nextcloud/auth'
import { translate as t } from '@nextcloud/l10n'
import '@nextcloud/dialogs/styles/toast.scss'

import AdminSettings from './components/AdminSettings'

__webpack_nonce__ = btoa(getRequestToken())

Vue.mixin({
methods: {
t,
},
})

const AdminSettingsView = Vue.extend(AdminSettings)
new AdminSettingsView().$mount('#vue-admin-sharebymail')

+ 23
- 21
apps/sharebymail/templates/settings-admin.php View File

@@ -1,24 +1,26 @@
<?php
/** @var array $_ */
/**
* @copyright 2022 Carl Schwan <carl@carlschwan.eu>
*
* @author Carl Schwan <carl@carlschwan.eu>
*
* @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/>.
*
*/

/** @var \OCP\IL10N $l */
script('sharebymail', 'settings-admin');
style('sharebymail', 'settings-admin');
\OCP\Util::addScript('sharebymail', 'vue-settings-admin-sharebymail');
?>
<div id="ncShareByMailSettings" class="section">
<h2><?php p($l->t('Share by mail')); ?></h2>
<p class="settings-hint"><?php p($l->t('Allows users to share a personalized link to a file or folder by putting in an email address.')); ?></p>

<p>
<input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if ($_['sendPasswordMail']) {
p('checked');
} ?> />
<label for="sendPasswordMail"><?php p($l->t('Send password by mail')); ?></label><br/>

<input id="replyToInitiator" type="checkbox" class="checkbox" <?php if ($_['replyToInitiator']) {
p('checked');
} ?> />
<label for="replyToInitiator"><?php p($l->t('Reply to initiator')); ?></label>
</p>

</div>
<div id="vue-admin-sharebymail"></div>

+ 2
- 2
dist/comments-comments-app.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/comments-comments-app.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-common.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-common.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-files_client.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-files_client.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-install.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-install.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-login.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-login.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-main.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-main.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-maintenance.js View File

@@ -1,2 +1,2 @@
!function(){"use strict";var n,e={49e3:function(n,e,t){var o=t(4820),r=(0,t(79753).getRootUrl)()+"/status.php";!function n(){console.info("checking the Nextcloud maintenance status"),o.default.get(r).then((function(n){return n.data})).then((function(e){if(!1===e.maintenance)return console.info("Nextcloud is not in maintenance mode anymore -> reloading"),void window.location.reload();console.info("Nextcloud is still in maintenance mode"),setTimeout(n,2e4)})).catch(console.error.bind(void 0))}()}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=e,o.amdD=function(){throw new Error("define cannot be used indirect")},o.amdO={},n=[],o.O=function(e,t,r,i){if(!t){var u=1/0;for(l=0;l<n.length;l++){t=n[l][0],r=n[l][1],i=n[l][2];for(var c=!0,a=0;a<t.length;a++)(!1&i||u>=i)&&Object.keys(o.O).every((function(n){return o.O[n](t[a])}))?t.splice(a--,1):(c=!1,i<u&&(u=i));if(c){n.splice(l--,1);var f=r();void 0!==f&&(e=f)}}return e}i=i||0;for(var l=n.length;l>0&&n[l-1][2]>i;l--)n[l]=n[l-1];n[l]=[t,r,i]},o.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(e,{a:e}),e},o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},o.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n},o.j=802,function(){o.b=document.baseURI||self.location.href;var n={802:0};o.O.j=function(e){return 0===n[e]};var e=function(e,t){var r,i,u=t[0],c=t[1],a=t[2],f=0;if(u.some((function(e){return 0!==n[e]}))){for(r in c)o.o(c,r)&&(o.m[r]=c[r]);if(a)var l=a(o)}for(e&&e(t);f<u.length;f++)i=u[f],o.o(n,i)&&n[i]&&n[i][0](),n[i]=0;return o.O(l)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))}();var r=o.O(void 0,[874],(function(){return o(49e3)}));r=o.O(r)}();
//# sourceMappingURL=core-maintenance.js.map?v=8c58a08df0fabf3cf91d
!function(){"use strict";var n,e={49e3:function(n,e,t){var o=t(4820),r=(0,t(79753).getRootUrl)()+"/status.php";!function n(){console.info("checking the Nextcloud maintenance status"),o.default.get(r).then((function(n){return n.data})).then((function(e){if(!1===e.maintenance)return console.info("Nextcloud is not in maintenance mode anymore -> reloading"),void window.location.reload();console.info("Nextcloud is still in maintenance mode"),setTimeout(n,2e4)})).catch(console.error.bind(void 0))}()}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=e,o.amdD=function(){throw new Error("define cannot be used indirect")},o.amdO={},n=[],o.O=function(e,t,r,i){if(!t){var u=1/0;for(l=0;l<n.length;l++){t=n[l][0],r=n[l][1],i=n[l][2];for(var c=!0,a=0;a<t.length;a++)(!1&i||u>=i)&&Object.keys(o.O).every((function(n){return o.O[n](t[a])}))?t.splice(a--,1):(c=!1,i<u&&(u=i));if(c){n.splice(l--,1);var f=r();void 0!==f&&(e=f)}}return e}i=i||0;for(var l=n.length;l>0&&n[l-1][2]>i;l--)n[l]=n[l-1];n[l]=[t,r,i]},o.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(e,{a:e}),e},o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},o.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n},o.j=1802,function(){o.b=document.baseURI||self.location.href;var n={1802:0};o.O.j=function(e){return 0===n[e]};var e=function(e,t){var r,i,u=t[0],c=t[1],a=t[2],f=0;if(u.some((function(e){return 0!==n[e]}))){for(r in c)o.o(c,r)&&(o.m[r]=c[r]);if(a)var l=a(o)}for(e&&e(t);f<u.length;f++)i=u[f],o.o(n,i)&&n[i]&&n[i][0](),n[i]=0;return o.O(l)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))}();var r=o.O(void 0,[7874],(function(){return o(49e3)}));r=o.O(r)}();
//# sourceMappingURL=core-maintenance.js.map?v=1b4f16bb5395363395e8

+ 1
- 1
dist/core-maintenance.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-profile.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-profile.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-recommendedapps.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-recommendedapps.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-systemtags.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-systemtags.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/core-unified-search.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/core-unified-search.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/dashboard-main.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/dashboard-main.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/dav-settings-admin-caldav.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/dav-settings-admin-caldav.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/dav-settings-personal-availability.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/dav-settings-personal-availability.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files-main.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files-main.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files-personal-settings.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files-personal-settings.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files-sidebar.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files-sidebar.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files_sharing-additionalScripts.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files_sharing-additionalScripts.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files_sharing-files_sharing_tab.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files_sharing-files_sharing_tab.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files_sharing-personal-settings.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files_sharing-personal-settings.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files_trashbin-files_trashbin.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files_trashbin-files_trashbin.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/files_versions-files_versions.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files_versions-files_versions.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/oauth2-oauth2.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/oauth2-oauth2.js.map
File diff suppressed because it is too large
View File


+ 0
- 2
dist/settings-apps-view-418.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/settings-apps-view-418.js.map
File diff suppressed because it is too large
View File


+ 2
- 0
dist/settings-apps-view-7418.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/settings-apps-view-7418.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-apps.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-apps.js.map
File diff suppressed because it is too large
View File


+ 0
- 3
dist/settings-users-351.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/settings-users-351.js.map
File diff suppressed because it is too large
View File


+ 3
- 0
dist/settings-users-8351.js
File diff suppressed because it is too large
View File


dist/settings-users-351.js.LICENSE.txt → dist/settings-users-8351.js.LICENSE.txt View File


+ 1
- 0
dist/settings-users-8351.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-admin-basic-settings.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-vue-settings-admin-basic-settings.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-admin-delegation.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-vue-settings-admin-delegation.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-admin-security.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-vue-settings-admin-security.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-apps-users-management.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-vue-settings-apps-users-management.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-nextcloud-pdf.js View File

@@ -1,3 +1,3 @@
/*! For license information please see settings-vue-settings-nextcloud-pdf.js.LICENSE.txt */
!function(){"use strict";var e,n={27853:function(e,n,t){var r=!0===(0,t(16453).loadState)("settings","has-reasons-use-nextcloud-pdf");window.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("open-reasons-use-nextcloud-pdf");e&&r&&e.addEventListener("click",(function(e){e.preventDefault(),OCA.Viewer.open({path:"/Reasons to use Nextcloud.pdf"})}))}))}},t={};function r(e){var o=t[e];if(void 0!==o)return o.exports;var u=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.loaded=!0,u.exports}r.m=n,r.amdD=function(){throw new Error("define cannot be used indirect")},r.amdO={},e=[],r.O=function(n,t,o,u){if(!t){var i=1/0;for(d=0;d<e.length;d++){t=e[d][0],o=e[d][1],u=e[d][2];for(var c=!0,f=0;f<t.length;f++)(!1&u||i>=u)&&Object.keys(r.O).every((function(e){return r.O[e](t[f])}))?t.splice(f--,1):(c=!1,u<i&&(i=u));if(c){e.splice(d--,1);var a=o();void 0!==a&&(n=a)}}return n}u=u||0;for(var d=e.length;d>0&&e[d-1][2]>u;d--)e[d]=e[d-1];e[d]=[t,o,u]},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r.j=636,function(){r.b=document.baseURI||self.location.href;var e={636:0};r.O.j=function(n){return 0===e[n]};var n=function(n,t){var o,u,i=t[0],c=t[1],f=t[2],a=0;if(i.some((function(n){return 0!==e[n]}))){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(f)var d=f(r)}for(n&&n(t);a<i.length;a++)u=i[a],r.o(e,u)&&e[u]&&e[u][0](),e[u]=0;return r.O(d)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var o=r.O(void 0,[874],(function(){return r(27853)}));o=r.O(o)}();
//# sourceMappingURL=settings-vue-settings-nextcloud-pdf.js.map?v=931fa13cff66a4c5959d
!function(){"use strict";var e,n={27853:function(e,n,t){var r=!0===(0,t(16453).loadState)("settings","has-reasons-use-nextcloud-pdf");window.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("open-reasons-use-nextcloud-pdf");e&&r&&e.addEventListener("click",(function(e){e.preventDefault(),OCA.Viewer.open({path:"/Reasons to use Nextcloud.pdf"})}))}))}},t={};function r(e){var o=t[e];if(void 0!==o)return o.exports;var u=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.loaded=!0,u.exports}r.m=n,r.amdD=function(){throw new Error("define cannot be used indirect")},r.amdO={},e=[],r.O=function(n,t,o,u){if(!t){var i=1/0;for(d=0;d<e.length;d++){t=e[d][0],o=e[d][1],u=e[d][2];for(var c=!0,f=0;f<t.length;f++)(!1&u||i>=u)&&Object.keys(r.O).every((function(e){return r.O[e](t[f])}))?t.splice(f--,1):(c=!1,u<i&&(i=u));if(c){e.splice(d--,1);var a=o();void 0!==a&&(n=a)}}return n}u=u||0;for(var d=e.length;d>0&&e[d-1][2]>u;d--)e[d]=e[d-1];e[d]=[t,o,u]},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r.j=7636,function(){r.b=document.baseURI||self.location.href;var e={7636:0};r.O.j=function(n){return 0===e[n]};var n=function(n,t){var o,u,i=t[0],c=t[1],f=t[2],a=0;if(i.some((function(n){return 0!==e[n]}))){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(f)var d=f(r)}for(n&&n(t);a<i.length;a++)u=i[a],r.o(e,u)&&e[u]&&e[u][0](),e[u]=0;return r.O(d)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var o=r.O(void 0,[7874],(function(){return r(27853)}));o=r.O(o)}();
//# sourceMappingURL=settings-vue-settings-nextcloud-pdf.js.map?v=3b2559cbf2901f9d22f2

+ 1
- 1
dist/settings-vue-settings-nextcloud-pdf.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-personal-info.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-vue-settings-personal-info.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-personal-security.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-vue-settings-personal-security.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/settings-vue-settings-personal-webauthn.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/settings-vue-settings-personal-webauthn.js.map
File diff suppressed because it is too large
View File


+ 3
- 0
dist/sharebymail-vue-settings-admin-sharebymail.js View File

@@ -0,0 +1,3 @@
/*! For license information please see sharebymail-vue-settings-admin-sharebymail.js.LICENSE.txt */
!function(){"use strict";var e,n={92328:function(e,n,r){var o=r(20144),a=r(22200),i=r(9944),s=(r(73317),r(7826)),u=r.n(s),c=r(67776),l=r.n(c),d=r(16453),f=r(26932),p=r(4820),h=r(79753),v=r(10128),m=r.n(v);function y(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){y(a,r,o,i,s,"next",e)}function s(e){y(a,r,o,i,s,"throw",e)}i(void 0)}))}}var w={name:"AdminSettings",components:{CheckboxRadioSwitch:u(),SettingsSection:l()},data:function(){return{sendPasswordMail:(0,d.loadState)("sharebymail","sendPasswordMail"),replyToInitiator:(0,d.loadState)("sharebymail","replyToInitiator")}},methods:{update:function(e,n){var r=this;return b(regeneratorRuntime.mark((function o(){var a,i,s,u,c,l;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,m()();case 2:return a=(0,h.generateOcsUrl)("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:e}),i=n?"yes":"no",o.prev=4,o.next=7,p.default.post(a,{value:i});case 7:c=o.sent,l=c.data,r.handleResponse({status:null===(s=l.ocs)||void 0===s||null===(u=s.meta)||void 0===u?void 0:u.status}),o.next=15;break;case 12:o.prev=12,o.t0=o.catch(4),r.handleResponse({errorMessage:t("sharebymail","Unable to update share by mail config"),error:o.t0});case 15:case"end":return o.stop()}}),o,null,[[4,12]])})))()},handleResponse:function(e){return b(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.status,r=e.errorMessage,o=e.error,"ok"!==n&&((0,f.x2)(r),console.error(r,o));case 2:case"end":return t.stop()}}),t)})))()}}},g=(0,r(51900).Z)(w,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("SettingsSection",{attrs:{title:e.t("sharebymail","Share by mail"),description:e.t("sharebymail","Allows users to share a personalized link to a file or folder by putting in an email address.")}},[n("CheckboxRadioSwitch",{attrs:{type:"switch",checked:e.sendPasswordMail},on:{"update:checked":[function(t){e.sendPasswordMail=t},function(t){return e.update("sendpasswordmail",e.sendPasswordMail)}]}},[e._v("\n\t\t"+e._s(e.t("sharebymail","Send password by mail"))+"\n\t")]),e._v(" "),n("CheckboxRadioSwitch",{attrs:{type:"switch",checked:e.replyToInitiator},on:{"update:checked":[function(t){e.replyToInitiator=t},function(t){return e.update("replyToInitiator",e.replyToInitiator)}]}},[e._v("\n\t\t"+e._s(e.t("sharebymail","Reply to initiator"))+"\n\t")])],1)}),[],!1,null,null,null).exports;r.nc=btoa((0,a.getRequestToken)()),o.default.mixin({methods:{t:i.translate}}),(new(o.default.extend(g))).$mount("#vue-admin-sharebymail")}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=n,o.amdD=function(){throw new Error("define cannot be used indirect")},o.amdO={},e=[],o.O=function(t,n,r,a){if(!n){var i=1/0;for(l=0;l<e.length;l++){n=e[l][0],r=e[l][1],a=e[l][2];for(var s=!0,u=0;u<n.length;u++)(!1&a||i>=a)&&Object.keys(o.O).every((function(e){return o.O[e](n[u])}))?n.splice(u--,1):(s=!1,a<i&&(i=a));if(s){e.splice(l--,1);var c=r();void 0!==c&&(t=c)}}return t}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[n,r,a]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o.j=3173,function(){o.b=document.baseURI||self.location.href;var e={3173:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,a,i=n[0],s=n[1],u=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(u)var l=u(o)}for(t&&t(n);c<i.length;c++)a=i[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(l)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var a=o.O(void 0,[7874],(function(){return o(92328)}));a=o.O(a)}();
//# sourceMappingURL=sharebymail-vue-settings-admin-sharebymail.js.map?v=ce2293be73e039f5d908

+ 21
- 0
dist/sharebymail-vue-settings-admin-sharebymail.js.LICENSE.txt View File

@@ -0,0 +1,21 @@
/**
* @copyright 2022 Carl Schwan <carl@carlschwan.eu>
*
* @author Carl Schwan <carl@carlschwan.eu>
*
* @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/>.
*
*/

+ 1
- 0
dist/sharebymail-vue-settings-admin-sharebymail.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/systemtags-systemtags.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/systemtags-systemtags.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/theming-theming-settings.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/theming-theming-settings.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/twofactor_backupcodes-settings.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/twofactor_backupcodes-settings.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/updatenotification-updatenotification.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/updatenotification-updatenotification.js.map
File diff suppressed because it is too large
View File


+ 0
- 2
dist/user-status-modal-299.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/user-status-modal-299.js.map
File diff suppressed because it is too large
View File


+ 2
- 0
dist/user-status-modal-8299.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/user-status-modal-8299.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/user_status-dashboard.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/user_status-dashboard.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
dist/user_status-menu.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/user_status-menu.js.map
File diff suppressed because it is too large
View File


+ 0
- 0
dist/weather_status-weather-status.js View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save