Skip to content

Commit

Permalink
docs(reuse): Add SPDX header
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Scherzinger <[email protected]>
  • Loading branch information
AndyScherzinger committed Feb 13, 2025
1 parent 6be9382 commit e52ea0b
Show file tree
Hide file tree
Showing 170 changed files with 674 additions and 701 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* SPDX-FileCopyrightText: 2021-2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

module.exports = {
globals: {
appVersion: true
Expand Down
2 changes: 2 additions & 0 deletions .github/pull_request_template.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
2 changes: 2 additions & 0 deletions .github/scripts/notify-to-element.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2023-2024 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later

# helper functions
log_error() {
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2023 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
name: CI

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nighlty-ci-release-branch.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2023-2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Nightly CI (Release branch)

# workflow can be scheduled ONLY from DEFAULT branch
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pr-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ on:
schedule:
- cron: '30 1 * * *'

permissions:
contents: read
pull-requests: write

jobs:
pr-feedback:
if: ${{ github.repository_owner == 'nextcloud' }}
runs-on: ubuntu-latest
steps:
- name: The get-github-handles-from-website action
uses: marcelklehr/get-github-handles-from-website-action@a739600f6b91da4957f51db0792697afbb2f143c # v1.0.0
uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1
id: scrape
with:
website: 'https://nextcloud.com/team/'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2022-2025 Jankari Tech Pvt. Ltd.
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
on:
push:
branches: [auto-release]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/shared_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2023-2025 Jankari Tech Pvt. Ltd.
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
on:
workflow_call:
inputs:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022-2025 Jankari Tech Pvt. Ltd.
# SPDX-FileCopyrightText: 2021-2023 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2022 OpenProject GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
js/
.code-workspace
.DS_Store
Expand Down
2 changes: 2 additions & 0 deletions .l10nignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
# compiled vue templates
js/
6 changes: 6 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2022 Jankari Tech Pvt. Ltd.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

require_once './vendor/autoload.php';

use Nextcloud\CodingStandard\Config;
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Change Log
All notable changes to this project will be documented in this file.

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
- SPDX-FileCopyrightText: 2022-2025 Jankari Tech Pvt. Ltd.
- SPDX-FileCopyrightText: 2022-2023 OpenProject GmbH
- SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# 🔗 OpenProject Integration

This application enables integration between Nextcloud and open-source project management software OpenProject.
Expand Down
24 changes: 24 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ SPDX-PackageName = "integration_openproject"
SPDX-PackageSupplier = "Nextcloud <[email protected]>"
SPDX-PackageDownloadLocation = "https://github.com/nextcloud/integration_openproject"

[[annotations]]
path = ["l10n/*.js", "l10n/*.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2021 Nextcloud translators"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = [".tx/config"]
precedence = "aggregate"
Expand All @@ -23,6 +29,24 @@ precedence = "aggregate"
SPDX-FileCopyrightText = "2022-2025 Jankari Tech Pvt. Ltd., 2022 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["package-lock.json", "package.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2021-2025 Nextcloud GmbH and Nextcloud contributors, 2022-2024 Jankari Tech Pvt. Ltd."
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["tests/jest/components/__snapshots__/AdminSettings.spec.js.snap", "tests/jest/components/__snapshots__/OAuthConnectButton.spec.js.snap", "tests/jest/components/__snapshots__/PersonalSettings.spec.js.snap", "tests/jest/components/tab/__snapshots__/EmptyContent.spec.js.snap", "tests/jest/components/tab/__snapshots__/SearchInput.spec.js.snap", "tests/jest/components/tab/__snapshots__/WorkPackage.spec.js.snap", "tests/jest/components/admin/__snapshots__/FieldValue.spec.js.snap", "tests/jest/components/admin/__snapshots__/FormHeading.spec.js.snap", "tests/jest/components/admin/__snapshots__/TextInput.spec.js.snap", "tests/jest/views/__snapshots__/CreateWorkpackageModal.spec.js.snap", "tests/jest/views/__snapshots__/Dashboard.spec.js.snap", "tests/jest/views/__snapshots__/LinkMultipleFilesModal.spec.js.snap", "tests/jest/views/__snapshots__/ProjectsTab.spec.js.snap"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2022-2025 Jankari Tech Pvt. Ltd., 2022-2023 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["tests/jest/fixtures/availableProjectAssigneesResponse.json", "tests/jest/fixtures/availableProjectOptions.json", "tests/jest/fixtures/formValidationResponseRequiredType.json", "tests/jest/fixtures/notificationsResponse.json", "tests/jest/fixtures/openprojectAvailableProjectResponse.json", "tests/jest/fixtures/openprojectAvailableProjectResponseAfterSearch.json", "tests/jest/fixtures/workpackageFormValidationProjectSelectedResponse.json", "tests/jest/fixtures/workpackageFormValidationTypeChanged.json", "tests/jest/fixtures/workPackageObjectsInSearchResults.json", "tests/jest/fixtures/workPackageSearchReqResponse.json", "tests/jest/fixtures/workPackagesSearchResponse.json", "tests/jest/fixtures/workPackagesSearchResponseNoAssignee.json", "tests/jest/fixtures/workPackageSuccessfulCreationResponse.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2022-2024 Jankari Tech Pvt. Ltd."
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["img/app.svg", "img/app-dark.svg"]
precedence = "aggregate"
Expand Down
6 changes: 6 additions & 0 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?xml version="1.0"?>
<!--
- SPDX-FileCopyrightText: 2022-2025 Jankari Tech Pvt. Ltd.
- SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
- SPDX-FileCopyrightText: 2023 OpenProject GmbH
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<info>
<id>integration_openproject</id>
<name>OpenProject Integration</name>
Expand Down
10 changes: 3 additions & 7 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<?php

/**
* Nextcloud - OpenProject
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Julien Veyssier <[email protected]>
* @copyright Julien Veyssier 2021
* SPDX-FileCopyrightText: 2022-2024 Jankari Tech Pvt. Ltd.
* SPDX-FileCopyrightText: 2021-2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

return [
Expand Down
6 changes: 6 additions & 0 deletions css/dashboard.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* SPDX-FileCopyrightText: 2022-2024 Jankari Tech Pvt. Ltd.
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

.icon-openproject {
background-image: url('../img/app-dark.svg');
filter: var(--background-invert-if-dark);
Expand Down
6 changes: 6 additions & 0 deletions css/tab.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* SPDX-FileCopyrightText: 2022-2024 Jankari Tech Pvt. Ltd.
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

@import '../css/dashboard.css';

#tab-open-project {
Expand Down
3 changes: 3 additions & 0 deletions dev/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Nextcloud configurations
NEXTCLOUD_IMAGE_TAG=

Expand Down
2 changes: 2 additions & 0 deletions dev/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
services:
step:
image: smallstep/step-ca:latest
Expand Down
2 changes: 2 additions & 0 deletions dev/keycloak.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
services:
keycloak-db:
image: postgres:13
Expand Down
3 changes: 2 additions & 1 deletion dev/nextcloud.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
STEP_CERTS_DIR="/step/certs"

if [ -d "$STEP_CERTS_DIR" ]; then
Expand Down
2 changes: 2 additions & 0 deletions dev/openproject.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later

STEP_CERTS_DIR="/step/certs"

Expand Down
2 changes: 2 additions & 0 deletions dev/opnc-realm.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
SPDX-License-Identifier: AGPL-3.0-or-later
2 changes: 2 additions & 0 deletions dev/ssl.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later

tmp_cert_dir="$HOME/tmp"

Expand Down
2 changes: 2 additions & 0 deletions dev/step.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later

rm -f /certs/acme.json
touch /certs/acme.json
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.override.example.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2022 OpenProject GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
services:
nextcloud:
ports:
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2022-2023 Jankari Tech Pvt. Ltd.
# SPDX-FileCopyrightText: 2022 OpenProject GmbH
# SPDX-License-Identifier: AGPL-3.0-or-later
version: '3.9'

services:
Expand Down
4 changes: 4 additions & 0 deletions docs/direct_upload.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
## Direct upload
There's an end-point `direct-upload` available which can be used for direct-upload. There's two steps to direct upload. First we need to get the `token`. Then use the token in the direct upload request.

Expand Down
4 changes: 4 additions & 0 deletions docs/get_file_information.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
## Get file information
We have two endpoints `fileinfo` and `filesinfo` from which we can get the information of a single or multiple files.

Expand Down
4 changes: 4 additions & 0 deletions docs/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024-2025 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Release Process

## 1. Release Preparation
Expand Down
4 changes: 4 additions & 0 deletions docs/running_API_test.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
### 🧪 Running API tests

> **_NOTE:_**
Expand Down
4 changes: 4 additions & 0 deletions docs/setting_up_as_admin.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
## Setting up the integration as an administrator with API

> Note: Setting up the integration can only be done by admin user but not a normal user
Expand Down
4 changes: 4 additions & 0 deletions docs/setting_up_via_shell_script.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
## Setting up the integration with shell script

`integration_setup.sh` sets up the whole integration with just one command.
Expand Down
4 changes: 4 additions & 0 deletions docs/setup_nc_op__full.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2025 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Nextcloud-OpenProject Full Setup

## Table of Contents
Expand Down
4 changes: 4 additions & 0 deletions docs/setup_via_docker.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
## Development

Develop using docker compose
Expand Down
4 changes: 4 additions & 0 deletions docs/testing/smoke_testing.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2024 Jankari Tech Pvt. Ltd.
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
This file consists of some smoke testing to be done before the release (major and minor) of `integration_application` application.
The need for this smoke testing (manual) is that we do not have e2e test setup to automate that involves both `OpenProject` and `Nextcloud`.

Expand Down
2 changes: 2 additions & 0 deletions img/screenshot1.jpg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2022 Jankari Tech Pvt. Ltd.
SPDX-License-Identifier: AGPL-3.0-or-later
2 changes: 2 additions & 0 deletions img/screenshot1.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2023 OpenProject GmbH
SPDX-License-Identifier: AGPL-3.0-or-later
2 changes: 2 additions & 0 deletions img/screenshot2.jpg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2022 Jankari Tech Pvt. Ltd.
SPDX-License-Identifier: AGPL-3.0-or-later
2 changes: 2 additions & 0 deletions img/screenshot2.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2022 Jankari Tech Pvt. Ltd.
SPDX-License-Identifier: AGPL-3.0-or-later
1 change: 1 addition & 0 deletions integration_setup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-FileCopyrightText: 2023-2024 Jankari Tech Pvt. Ltd.
# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH
# SPDX-License-Identifier: AGPL-3.0-only
Expand Down
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* SPDX-FileCopyrightText: 2021-2024 Jankari Tech Pvt. Ltd.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

const path = require('path')
const rootDir = path.resolve(__dirname, '../../../')

Expand Down
8 changes: 3 additions & 5 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?php

/**
* Nextcloud - OpenProject
*
*
* @author Julien Veyssier <[email protected]>
* @copyright Julien Veyssier 2020
* SPDX-FileCopyrightText: 2021-2024 Jankari Tech Pvt. Ltd.
* SPDX-FileCopyrightText: 2021-2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\OpenProject\AppInfo;
Expand Down
20 changes: 3 additions & 17 deletions lib/BackgroundJob/RemoveExpiredDirectUploadTokens.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2023 Sagar Gurung <[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: 2023-2024 Jankari Tech Pvt. Ltd.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\OpenProject\BackgroundJob;
Expand Down
Loading

0 comments on commit e52ea0b

Please sign in to comment.