Skip to content

Commit efecb91

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/multi-c22e25d29b
2 parents e824cad + d64882f commit efecb91

File tree

95 files changed

+6693
-1317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+6693
-1317
lines changed

.github/workflows/lint-php-cs.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow is provided via the organization template repository
2+
#
3+
# https://github.com/nextcloud/.github
4+
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
8+
9+
name: Lint php-cs
10+
11+
on: pull_request
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: lint-php-cs-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
lint:
22+
runs-on: ubuntu-latest
23+
24+
name: php-cs
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
persist-credentials: false
31+
32+
- name: Get php version
33+
id: versions
34+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
35+
36+
- name: Set up php${{ steps.versions.outputs.php-min }}
37+
uses: shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e # v2.34.1
38+
with:
39+
php-version: ${{ steps.versions.outputs.php-min }}
40+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
41+
coverage: none
42+
ini-file: development
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Install dependencies
47+
run: |
48+
composer remove nextcloud/ocp --dev --no-scripts
49+
composer i
50+
51+
- name: Lint
52+
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )

.php-cs-fixer.dist.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
6+
* SPDX-License-Identifier: AGPL-3.0-or-later
7+
*/
8+
require_once './vendor-bin/cs-fixer/vendor/autoload.php';
9+
10+
use Nextcloud\CodingStandard\Config;
11+
12+
$config = new Config();
13+
$config
14+
->getFinder()
15+
->ignoreVCSIgnored(true)
16+
->notPath('build')
17+
->notPath('tests/stubs')
18+
->notPath('l10n')
19+
->notPath('src')
20+
->notPath('vendor')
21+
->in(__DIR__);
22+
return $config;

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# Changelog
66
All notable changes to this project will be documented in this file.
77

8+
## 4.7.0
9+
### Changed
10+
- Migrate to outline icons
11+
812
## 4.6.0
913
### Changed
1014
- Updated dependencies

appinfo/info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<description><![CDATA[Requires users to accept the terms of service before accessing data.
1212
This product includes GeoLite2 data created by MaxMind, available from [maxmind.com](http://www.maxmind.com)]]></description>
1313

14-
<version>4.6.0</version>
14+
<version>4.7.0-rc.1</version>
1515
<licence>agpl</licence>
1616
<author>Joas Schilling</author>
1717

@@ -33,7 +33,7 @@ This product includes GeoLite2 data created by MaxMind, available from [maxmind.
3333
<screenshot>https://github.com/nextcloud/terms_of_service/raw/master/docs/notification-and-settings.png</screenshot>
3434

3535
<dependencies>
36-
<nextcloud min-version="28" max-version="32" />
36+
<nextcloud min-version="30" max-version="33" />
3737
</dependencies>
3838

3939
<commands>

appinfo/routes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"autoloader-suffix": "TermsOfService",
1212
"optimize-autoloader": true,
1313
"platform": {
14-
"php": "8.0.2"
14+
"php": "8.1"
1515
},
1616
"sort-packages": true
1717
},
@@ -27,7 +27,10 @@
2727
"scripts": {
2828
"bin": "echo 'bin not installed'",
2929
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
30+
"cs:check": "php-cs-fixer fix --dry-run --diff",
31+
"cs:fix": "php-cs-fixer fix",
3032
"openapi": "generate-spec --verbose",
33+
"rector": "rector && composer cs:fix",
3134
"post-install-cmd": [
3235
"@composer bin all install --ansi",
3336
"composer dump-autoload"

js/terms_of_service-admin.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/terms_of_service-admin.js.license

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ This file is generated from multiple sources. Included packages:
9999
- version: 11.0.3
100100
- license: MIT
101101
- axios
102-
- version: 1.9.0
102+
- version: 1.12.2
103103
- license: MIT
104104
- base64-js
105105
- version: 1.5.1
@@ -180,5 +180,5 @@ This file is generated from multiple sources. Included packages:
180180
- version: 5.94.0
181181
- license: MIT
182182
- terms_of_service
183-
- version: 4.6.0
183+
- version: 4.7.0-rc.1
184184
- license: AGPL-3.0-or-later

js/terms_of_service-admin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/terms_of_service-public.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)