Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse compliance #335

Merged
merged 5 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
module.exports = {
globals: {
appName: true,
Expand Down
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
/css/files_downloadlimit-*.css binary
/js/* binary
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
version: 2
updates:
- package-ecosystem: composer
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-eslint-when-unrelated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# Use lint-eslint together with lint-eslint-when-unrelated to make eslint a required check for GitHub actions
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT

name: Lint eslint

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-when-unrelated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# Use node together with node-when-unrelated to make eslint a required check for GitHub actions
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT

name: Node

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
.DS_Store
node_modules/
npm-debug.log*
Expand Down
2 changes: 2 additions & 0 deletions .l10nignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
js
6 changes: 5 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

require_once './vendor/autoload.php';

use Nextcloud\CodingStandard\Config;
Expand Down
9 changes: 9 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!--
- SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Authors

- Christopher Ng <[email protected]>
- John Molakvoæ <[email protected]>
- Stephan Orbaugh <[email protected]>
235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-or-later.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is licensed under the Affero General Public License version 3 or
# later. See the COPYING file.
# SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

app_name=$(notdir $(CURDIR))
project_directory=$(CURDIR)/../$(app_name)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Files download limit

[![Node GitHub Action](https://github.com/nextcloud/files_downloadlimit/workflows/Node/badge.svg)](https://github.com/nextcloud/files_downloadlimit/actions?query=workflow%3ANode)
Expand Down
18 changes: 18 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
version = 1
SPDX-PackageName = "files_downloadlimit"
SPDX-PackageSupplier = "Nextcloud <[email protected]>"
SPDX-PackageDownloadLocation = "https://github.com/nextcloud/files_downloadlimit"

[[annotations]]
path = [".tx/config", "l10n/**.js", "l10n/**.json", "composer.json", "composer.lock", "package.json", "package-lock.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2021 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["tsconfig.json", "vite.config.ts"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2024 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
4 changes: 4 additions & 0 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0"?>
<!--
- SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<info>
<id>files_downloadlimit</id>
<name>Files download limit</name>
Expand Down
21 changes: 2 additions & 19 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,8 @@
declare(strict_types=1);

/**
* @copyright Copyright (c) 2021 John Molakvoæ <[email protected]>
*
* @author John Molakvoæ <[email protected]>
*
* @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/>.
*
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

$requirements = [
Expand Down
1 change: 1 addition & 0 deletions css/_plugin-vue2_normalizer-D9iiUdKS.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions css/admin-CU2l9dc-.chunk.css

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

4 changes: 3 additions & 1 deletion css/files_downloadlimit-admin.css
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.material-design-icon[data-v-251fe753]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.settings-section[data-v-251fe753]{display:block;margin-bottom:auto;padding:30px}.settings-section[data-v-251fe753]:not(:last-child){border-bottom:1px solid var(--color-border)}.settings-section--limit-width>*[data-v-251fe753]{max-width:900px}.settings-section__name[data-v-251fe753]{display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;max-width:900px}.settings-section__info[data-v-251fe753]{display:flex;align-items:center;justify-content:center;width:var(--default-clickable-area);height:var(--default-clickable-area);margin:calc((var(--default-clickable-area) - 16px) / 2 * -1);margin-left:0;color:var(--color-text-maxcontrast)}.settings-section__info[data-v-251fe753]:hover,.settings-section__info[data-v-251fe753]:focus,.settings-section__info[data-v-251fe753]:active{color:var(--color-main-text)}.settings-section__desc[data-v-251fe753]{margin-top:-.2em;margin-bottom:1em;color:var(--color-text-maxcontrast);max-width:900px}.settings__field[data-v-4a670ffb]{max-width:500px}
/* extracted by css-entry-points-plugin */
@import './admin-CU2l9dc-.chunk.css';
@import './_plugin-vue2_normalizer-D9iiUdKS.chunk.css';
4 changes: 3 additions & 1 deletion css/files_downloadlimit-main.css
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.material-design-icon[data-v-551209a3]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.loading-icon svg[data-v-551209a3]{animation:rotate var(--animation-duration, .8s) linear infinite}.material-design-icon[data-v-02d27370]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.checkbox-content[data-v-02d27370]{display:flex;align-items:center;flex-direction:row;gap:4px;-webkit-user-select:none;user-select:none;min-height:var(--default-clickable-area);border-radius:var(--default-clickable-area);padding:4px calc((var(--default-clickable-area) - var(--icon-height)) / 2);width:100%;max-width:fit-content}.checkbox-content__text[data-v-02d27370]{flex:1 0}.checkbox-content__text[data-v-02d27370]:empty{display:none}.checkbox-content__icon>*[data-v-02d27370]{width:var(--icon-size);height:var(--icon-size)}.checkbox-content--button-variant .checkbox-content__icon:not(.checkbox-content__icon--checked)>*[data-v-02d27370]{color:var(--color-primary-element)}.checkbox-content--button-variant .checkbox-content__icon--checked>*[data-v-02d27370]{color:var(--color-primary-element-text)}.checkbox-content--has-text[data-v-02d27370]{padding-right:calc((var(--default-clickable-area) - 16px) / 2)}.checkbox-content:not(.checkbox-content--button-variant) .checkbox-content__icon>*[data-v-02d27370]{color:var(--color-primary-element)}.checkbox-content[data-v-02d27370],.checkbox-content *[data-v-02d27370]{cursor:pointer;flex-shrink:0}.material-design-icon[data-v-919d07b7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.checkbox-radio-switch[data-v-919d07b7]{display:flex;align-items:center;color:var(--color-main-text);background-color:transparent;font-size:var(--default-font-size);line-height:var(--default-line-height);padding:0;position:relative}.checkbox-radio-switch__input[data-v-919d07b7]{position:absolute;z-index:-1;opacity:0!important;width:var(--icon-size);height:var(--icon-size);margin:4px calc((var(--default-clickable-area) - 16px) / 2)}.checkbox-radio-switch__input:focus-visible+.checkbox-radio-switch__content[data-v-919d07b7],.checkbox-radio-switch__input[data-v-919d07b7]:focus-visible{outline:2px solid var(--color-main-text);border-color:var(--color-main-background);outline-offset:-2px}.checkbox-radio-switch--disabled .checkbox-radio-switch__content[data-v-919d07b7]{opacity:.5}.checkbox-radio-switch--disabled .checkbox-radio-switch__content[data-v-919d07b7] .checkbox-radio-switch__icon>*{color:var(--color-main-text)}.checkbox-radio-switch:not(.checkbox-radio-switch--disabled,.checkbox-radio-switch--checked):focus-within .checkbox-radio-switch__content[data-v-919d07b7],.checkbox-radio-switch:not(.checkbox-radio-switch--disabled,.checkbox-radio-switch--checked) .checkbox-radio-switch__content[data-v-919d07b7]:hover{background-color:var(--color-background-hover)}.checkbox-radio-switch--checked:not(.checkbox-radio-switch--disabled):focus-within .checkbox-radio-switch__content[data-v-919d07b7],.checkbox-radio-switch--checked:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__content[data-v-919d07b7]:hover{background-color:var(--color-primary-element-hover)}.checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.checkbox-radio-switch--disabled):focus-within .checkbox-radio-switch__content[data-v-919d07b7],.checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__content[data-v-919d07b7]:hover{background-color:var(--color-primary-element-light-hover)}.checkbox-radio-switch-switch[data-v-919d07b7]:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon>*{color:var(--color-text-maxcontrast)}.checkbox-radio-switch-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked[data-v-919d07b7] .checkbox-radio-switch__icon>*{color:var(--color-primary-element-light)}.checkbox-radio-switch--button-variant.checkbox-radio-switch[data-v-919d07b7]{background-color:var(--color-main-background);border:2px solid var(--color-border-maxcontrast);overflow:hidden}.checkbox-radio-switch--button-variant.checkbox-radio-switch--checked[data-v-919d07b7]{font-weight:700}.checkbox-radio-switch--button-variant.checkbox-radio-switch--checked .checkbox-radio-switch__content[data-v-919d07b7]{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.checkbox-radio-switch--button-variant[data-v-919d07b7] .checkbox-radio-switch__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.checkbox-radio-switch--button-variant[data-v-919d07b7]:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon>*{color:var(--color-main-text)}.checkbox-radio-switch--button-variant[data-v-919d07b7] .checkbox-radio-switch__icon:empty{display:none}.checkbox-radio-switch--button-variant[data-v-919d07b7]:not(.checkbox-radio-switch--button-variant-v-grouped):not(.checkbox-radio-switch--button-variant-h-grouped),.checkbox-radio-switch--button-variant .checkbox-radio-switch__content[data-v-919d07b7]{border-radius:calc(var(--default-clickable-area) / 2)}.checkbox-radio-switch--button-variant-v-grouped .checkbox-radio-switch__content[data-v-919d07b7]{flex-basis:100%;max-width:unset}.checkbox-radio-switch--button-variant-v-grouped[data-v-919d07b7]:first-of-type{border-top-left-radius:calc(var(--default-clickable-area) / 2 + 2px);border-top-right-radius:calc(var(--default-clickable-area) / 2 + 2px)}.checkbox-radio-switch--button-variant-v-grouped[data-v-919d07b7]:last-of-type{border-bottom-left-radius:calc(var(--default-clickable-area) / 2 + 2px);border-bottom-right-radius:calc(var(--default-clickable-area) / 2 + 2px)}.checkbox-radio-switch--button-variant-v-grouped[data-v-919d07b7]:not(:last-of-type){border-bottom:0!important}.checkbox-radio-switch--button-variant-v-grouped:not(:last-of-type) .checkbox-radio-switch__content[data-v-919d07b7]{margin-bottom:2px}.checkbox-radio-switch--button-variant-v-grouped[data-v-919d07b7]:not(:first-of-type){border-top:0!important}.checkbox-radio-switch--button-variant-h-grouped[data-v-919d07b7]:first-of-type{border-top-left-radius:calc(var(--default-clickable-area) / 2 + 2px);border-bottom-left-radius:calc(var(--default-clickable-area) / 2 + 2px)}.checkbox-radio-switch--button-variant-h-grouped[data-v-919d07b7]:last-of-type{border-top-right-radius:calc(var(--default-clickable-area) / 2 + 2px);border-bottom-right-radius:calc(var(--default-clickable-area) / 2 + 2px)}.checkbox-radio-switch--button-variant-h-grouped[data-v-919d07b7]:not(:last-of-type){border-right:0!important}.checkbox-radio-switch--button-variant-h-grouped:not(:last-of-type) .checkbox-radio-switch__content[data-v-919d07b7]{margin-right:2px}.checkbox-radio-switch--button-variant-h-grouped[data-v-919d07b7]:not(:first-of-type){border-left:0!important}.checkbox-radio-switch--button-variant-h-grouped[data-v-919d07b7] .checkbox-radio-switch__text{text-align:center;display:flex;align-items:center}.checkbox-radio-switch--button-variant-h-grouped .checkbox-radio-switch__content[data-v-919d07b7]{flex-direction:column;justify-content:center;width:100%;margin:0;gap:0}.action__count-note[data-v-6af3ebb2]{margin-top:4px!important}.action__reset-note[data-v-6af3ebb2]{margin-bottom:8px!important}
/* extracted by css-entry-points-plugin */
@import './main-B5ga4CVe.chunk.css';
@import './_plugin-vue2_normalizer-D9iiUdKS.chunk.css';
3 changes: 2 additions & 1 deletion css/files_downloadlimit-public.css
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#imgframe{pointer-events:none}
/* extracted by css-entry-points-plugin */
@import './public-C7_-Vvpe.chunk.css';
Loading
Loading