Skip to content

Add reuse compliance #40

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

Merged
merged 4 commits into from
Dec 26, 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
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* SPDX-FileCopyrightText: 2024 Kate Döen <kate.doeen@nextcloud.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

module.exports = {
extends: [
'@nextcloud',
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

name: REUSE Compliance Check

on: [pull_request]

jobs:
reuse-compliance-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: REUSE Compliance Check
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2023 Kate Döen <kate.doeen@nextcloud.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
.idea/

node_modules/
Expand Down
2 changes: 2 additions & 0 deletions .nextcloudignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2024 Kate Döen <kate.doeen@nextcloud.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
.git
.github
.gitignore
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 Kate Döen <kate.doeen@nextcloud.com>
SPDX-License-Identifier: CC0-1.0
-->
# Unreleased
- Support Nextcloud 31

Expand Down
9 changes: 9 additions & 0 deletions LICENSES/LicenseRef-NextcloudTrademarks.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The Nextcloud marks
Nextcloud and the Nextcloud logo is a registered trademark of Nextcloud GmbH in Germany and/or other countries.
These guidelines cover the following marks pertaining both to the product names and the logo: “Nextcloud”
and the blue/white cloud logo with or without the word Nextcloud; the service “Nextcloud Enterprise”;
and our products: “Nextcloud Files”; “Nextcloud Groupware” and “Nextcloud Talk”.
This set of marks is collectively referred to as the “Nextcloud marks.”

Use of Nextcloud logos and other marks is only permitted under the guidelines provided by the Nextcloud GmbH.
A copy can be found at https://nextcloud.com/trademarks/
18 changes: 18 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ SPDX-License-Identifier: CC0-1.0

# OCS API Viewer

[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/ocs_api_viewer)](https://api.reuse.software/info/github.com/nextcloud/ocs_api_viewer)

This app can be used to view the OCS API specifications for any of the installed apps on your Nextcloud server.
Internally it relies on OpenAPI specifications that are distributed with the apps, so only apps that ship with an `openapi.json` file are supported.
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 = "ocs_api_viewer"
SPDX-PackageSupplier = "Nextcloud <info@nextcloud.com>"
SPDX-PackageDownloadLocation = "https://github.com/nextcloud/ocs_api_viewer"

[[annotations]]
path = ["composer.json", "composer.lock", "package-lock.json", "package.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2023 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["img/app-color.svg", "img/app.svg"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2016-2024 Nextcloud GmbH"
SPDX-License-Identifier = "LicenseRef-NextcloudTrademarks"
2 changes: 2 additions & 0 deletions docs/screenshot.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Kate Döen <kate.doeen@nextcloud.com>
SPDX-License-Identifier: AGPL-3.0-or-later
2 changes: 2 additions & 0 deletions krankerl.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2024 Kate Döen <kate.doeen@nextcloud.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
[package]
before_cmds = [
"npm install --deps",
Expand Down
4 changes: 4 additions & 0 deletions src/ApiNavigationList.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<NcAppNavigationList :aria-labelledby="arialabel">
<NcAppNavigationItem v-for="app in apps"
Expand Down
5 changes: 5 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
- SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
- SPDX-FileCopyrightText: 2023 Kate Döen <kate.doeen@nextcloud.com>
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<!--
SPDX-FileCopyrightText: Kate Döen <kate.doeen@nextcloud.com>
Expand Down
4 changes: 4 additions & 0 deletions src/AppIcon.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<svg :width="size"
:height="size"
Expand Down
4 changes: 4 additions & 0 deletions src/LeftSidebar.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<NcAppNavigation>
<NcAppNavigationCaption heading-id="nextcloud-api-heading"
Expand Down
4 changes: 4 additions & 0 deletions src/MainView.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<router-view />
</template>
Expand Down
4 changes: 4 additions & 0 deletions src/SwaggerUI.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div id="swagger-ui" />
</template>
Expand Down
4 changes: 4 additions & 0 deletions src/Welcome.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div class="ocs_api-welcome">
<AppIcon class="ocs_api-icon" :href="imagePath('ocs_api_viewer', 'app.svg')" />
Expand Down
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* SPDX-FileCopyrightText: Kate Döen <kate.doeen@nextcloud.com>
* SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
* SPDX-FileCopyrightText: 2023 Kate Döen <kate.doeen@nextcloud.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

Expand Down
5 changes: 5 additions & 0 deletions src/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import Vue from 'vue'
import Router from 'vue-router'
import { generateUrl } from '@nextcloud/router'
Expand Down
5 changes: 5 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { defineStore, PiniaVuePlugin, setActivePinia, createPinia } from 'pinia'
import axios from '@nextcloud/axios'
import { showError } from '@nextcloud/dialogs'
Expand Down
15 changes: 10 additions & 5 deletions src/swagger-dark.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/** from swagger-themes : https://github.com/ilyamixaltik/swagger-themes
*
* one-dark theme adapted to nextcloud
*
*/
/**
* SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
* SPDX-FileCopyrightText: 2024 Ilya Mixaltik <mixaltik16@gmail.com>
* SPDX-License-Identifier: MIT
*
* from swagger-themes : https://github.com/ilyamixaltik/swagger-themes
*
* one-dark theme adapted to nextcloud
*/

@mixin main-swagger {
/* primary colors */

Expand Down
4 changes: 4 additions & 0 deletions src/swagger-theme-dark.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* SPDX-FileCopyrightText: 2024 Sebastien Marinier <seb@smarinier.net>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

@use 'swagger-dark' as sw;

Expand Down
2 changes: 2 additions & 0 deletions tests/psalm-baseline.xml.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2023 Joas Schilling <coding@schilljs.com>
SPDX-License-Identifier: AGPL-3.0-or-later
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

/**
* SPDX-FileCopyrightText: 2023 Joas Schilling <coding@schilljs.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OC\Security\CSP;

class ContentSecurityPolicyNonceManager {
Expand Down
Loading