Skip to content

Commit

Permalink
Merge pull request #232 from nextcloud/feat/admin-default
Browse files Browse the repository at this point in the history
feat: Add admin setting to set default download limit
  • Loading branch information
Pytal authored Mar 8, 2024
2 parents 3a5ced7 + e181bf9 commit 9de5bfa
Show file tree
Hide file tree
Showing 31 changed files with 415 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/css/files_downloadlimit-*.css binary
/js/* binary
4 changes: 4 additions & 0 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
<dependencies>
<nextcloud min-version="29" max-version="29" />
</dependencies>

<settings>
<admin>OCA\Files_DownloadLimit\Settings\Admin\Settings</admin>
</settings>
</info>
2 changes: 2 additions & 0 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@
['name' => 'Api#getDownloadLimit', 'url' => '/api/v{version}/{token}/limit', 'verb' => 'GET', 'requirements' => $requirements],
['name' => 'Api#setDownloadLimit', 'url' => '/api/v{version}/{token}/limit', 'verb' => 'PUT', 'requirements' => $requirements],
['name' => 'Api#removeDownloadLimit', 'url' => '/api/v{version}/{token}/limit', 'verb' => 'DELETE', 'requirements' => $requirements],

['name' => 'Admin#setDefaultLimit', 'url' => '/api/v{version}/limit', 'verb' => 'PUT', 'requirements' => $requirements],
]
];
21 changes: 21 additions & 0 deletions css/files_downloadlimit-_plugin-vue2_normalizer.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions css/files_downloadlimit-admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@charset "UTF-8";/**
* @copyright Copyright (c) 2019 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/>.
*
*/.material-design-icon[data-v-f51cf2d3]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.settings-section[data-v-f51cf2d3]{display:block;margin-bottom:auto;padding:30px}.settings-section[data-v-f51cf2d3]:not(:last-child){border-bottom:1px solid var(--color-border)}.settings-section--limit-width>*[data-v-f51cf2d3]{max-width:900px}.settings-section__name[data-v-f51cf2d3]{display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;max-width:900px}.settings-section__info[data-v-f51cf2d3]{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-14px -14px -14px 0;color:var(--color-text-maxcontrast)}.settings-section__info[data-v-f51cf2d3]:hover,.settings-section__info[data-v-f51cf2d3]:focus,.settings-section__info[data-v-f51cf2d3]:active{color:var(--color-main-text)}.settings-section__desc[data-v-f51cf2d3]{margin-top:-.2em;margin-bottom:1em;color:var(--color-text-maxcontrast);max-width:900px}.settings__field[data-v-4a670ffb]{max-width:500px}
Loading

0 comments on commit 9de5bfa

Please sign in to comment.