mirror of https://github.com/sualko/cloud_bbb
Chore/npm composer upgrades (#322)
* chore: upgrade package.json, composer.json Some fixes in Makefile and lint in templates * chore: use dependabot.yml * chore: restrict tests from nc29 * chore: static analysis from nc29 * chore: back to psalm 5 * chore: use psr 2.0.2 * chore: psr upgrades * chore: composer all dependencies * chore: composer dependencies * chore: no psr dependency * chore: psalm analyze * chore: phpunit composerpull/324/head
parent
fdd91dfab2
commit
6c4f4a414d
|
|
@ -0,0 +1,28 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
commit-message:
|
||||||
|
prefix: "npm"
|
||||||
|
labels:
|
||||||
|
- "npm"
|
||||||
|
- "dependencies"
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
pull-request-branch-name:
|
||||||
|
separator: "/"
|
||||||
|
|
||||||
|
- package-ecosystem: "composer"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
commit-message:
|
||||||
|
prefix: "Composer"
|
||||||
|
labels:
|
||||||
|
- "composer"
|
||||||
|
- "dependencies"
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
pull-request-branch-name:
|
||||||
|
separator: "/"
|
||||||
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['8.0', '8.1', '8.2']
|
php-versions: ['8.0', '8.1', '8.2']
|
||||||
nextcloud-versions: ['stable26', 'stable27', 'stable28', 'stable29', 'stable30']
|
nextcloud-versions: ['stable29', 'stable30']
|
||||||
exclude:
|
exclude:
|
||||||
- php-versions: '8.0'
|
- php-versions: '8.0'
|
||||||
nextcloud-versions: 'stable30'
|
nextcloud-versions: 'stable30'
|
||||||
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
path: nextcloud/apps/bbb
|
path: nextcloud/apps/bbb
|
||||||
- name: Update test stub
|
- name: Update test stub
|
||||||
working-directory: nextcloud/apps/bbb
|
working-directory: nextcloud/apps/bbb
|
||||||
run: composer update friendsofphp/php-cs-fixer nextcloud/ocp -W
|
run: composer update friendsofphp/php-cs-fixer nextcloud/ocp phpunit/phpunit -W
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: nextcloud/apps/bbb
|
working-directory: nextcloud/apps/bbb
|
||||||
run: composer install
|
run: composer install
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ocp-version: [ "^30", "^29", '^28', '^27', '^26']
|
ocp-version: [ "^30", "^29"]
|
||||||
include:
|
|
||||||
- psrcontainer: "psr/container"
|
|
||||||
- psrcontainer: "psr/container:^1.1.2"
|
|
||||||
ocp-version: '^26'
|
|
||||||
name: Nextcloud ${{ matrix.ocp-version }}
|
name: Nextcloud ${{ matrix.ocp-version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -25,7 +21,7 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer i
|
run: composer i
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} ${{ matrix.psrcontainer }} symfony/service-contracts
|
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} symfony/service-contracts -W
|
||||||
- name: Run coding standards check
|
- name: Run coding standards check
|
||||||
run: composer run psalm
|
run: composer run psalm
|
||||||
|
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -41,14 +41,14 @@ lint: js-init
|
||||||
yarn run lint
|
yarn run lint
|
||||||
|
|
||||||
lint-fix: js-init
|
lint-fix: js-init
|
||||||
yarn run lint:fix
|
yarn run fix
|
||||||
|
|
||||||
# Style linting
|
# Style linting
|
||||||
stylelint: js-init
|
stylelint: js-init
|
||||||
yarn run stylelint
|
yarn run lint:style
|
||||||
|
|
||||||
stylelint-fix: js-init
|
stylelint-fix: js-init
|
||||||
yarn run stylelint:fix
|
yarn run lint:fix:style
|
||||||
|
|
||||||
phplint:
|
phplint:
|
||||||
./vendor/bin/php-cs-fixer fix --dry-run
|
./vendor/bin/php-cs-fixer fix --dry-run
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^8.5 || ^9.3",
|
"phpunit/phpunit": "^8.5 || ^9.3",
|
||||||
"friendsofphp/php-cs-fixer": "^3",
|
"friendsofphp/php-cs-fixer": "^3",
|
||||||
"nextcloud/coding-standard": "^1.0.0",
|
"nextcloud/coding-standard": "^1.1.0",
|
||||||
"phpstan/phpstan": "^0.12.29",
|
"phpstan/phpstan": "^0.12.29",
|
||||||
"nextcloud/ocp": "^25.0 || ^26.0 || ^27.0",
|
"nextcloud/ocp": "^29.0 || ^30.0 || ^31.0",
|
||||||
"vimeo/psalm": "^5.0",
|
"vimeo/psalm": "5.9.0",
|
||||||
"psr/container": "^1.1.2 || ^2.0.2"
|
"psr/container": "^1.1.2 || ^1.1.4 || ^2.0.2"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"optimize-autoloader": true,
|
"optimize-autoloader": true,
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -2,22 +2,22 @@
|
||||||
|
|
||||||
namespace OCA\BigBlueButton;
|
namespace OCA\BigBlueButton;
|
||||||
|
|
||||||
|
use OCP\AppFramework\Http;
|
||||||
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
||||||
use OCP\AppFramework\Http\Response;
|
use OCP\AppFramework\Http\Response;
|
||||||
use OCP\Template;
|
use OCP\Template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @template-extends Response<int, array<string, mixed>>
|
* @template-extends Response<Http::STATUS_*, array<string, mixed>>
|
||||||
*
|
*
|
||||||
* (NC < 28)
|
* (NC < 28)
|
||||||
* @psalm-suppress TooManyTemplateParams
|
* @psalm-suppress TooManyTemplateParams
|
||||||
*/
|
*/
|
||||||
class NoPermissionResponse extends Response {
|
class NoPermissionResponse extends Response {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct();
|
parent::__construct(Http::STATUS_FORBIDDEN);
|
||||||
|
|
||||||
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
||||||
$this->setStatus(403);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,22 @@
|
||||||
|
|
||||||
namespace OCA\BigBlueButton;
|
namespace OCA\BigBlueButton;
|
||||||
|
|
||||||
|
use OCP\AppFramework\Http;
|
||||||
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
||||||
use OCP\AppFramework\Http\Response;
|
use OCP\AppFramework\Http\Response;
|
||||||
use OCP\Template;
|
use OCP\Template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @template-extends Response<int, array<string, mixed>>
|
* @template-extends Response<Http::STATUS_*, array<string, mixed>>
|
||||||
*
|
*
|
||||||
* (NC < 28)
|
* (NC < 28)
|
||||||
* @psalm-suppress TooManyTemplateParams
|
* @psalm-suppress TooManyTemplateParams
|
||||||
*/
|
*/
|
||||||
class NotFoundResponse extends Response {
|
class NotFoundResponse extends Response {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct();
|
parent::__construct(Http::STATUS_NOT_FOUND);
|
||||||
|
|
||||||
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
||||||
$this->setStatus(404);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
"colors": "^1.4.0",
|
"colors": "^1.4.0",
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.0",
|
||||||
"execa": "^6.1.0",
|
"execa": "^6.1.0",
|
||||||
"libxmljs": "^0.19.8",
|
"libxmljs": "^1.0.11",
|
||||||
"qrcode.react": "^2.0.0",
|
"qrcode.react": "^2.0.0",
|
||||||
"react-copy-to-clipboard": "^5.0.2",
|
"react-copy-to-clipboard": "^5.0.2",
|
||||||
"simple-git": "^3.16.0"
|
"simple-git": "^3.16.0"
|
||||||
|
|
@ -65,6 +65,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.9.0",
|
"@babel/core": "^7.9.0",
|
||||||
|
"@babel/eslint-parser": "^7.27.1",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
"@babel/preset-env": "^7.9.0",
|
"@babel/preset-env": "^7.9.0",
|
||||||
"@nextcloud/browserslist-config": "^2.2.0",
|
"@nextcloud/browserslist-config": "^2.2.0",
|
||||||
|
|
@ -79,12 +80,11 @@
|
||||||
"@types/webpack-env": "^1.15.2",
|
"@types/webpack-env": "^1.15.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
||||||
"@typescript-eslint/parser": "^5.15.0",
|
"@typescript-eslint/parser": "^5.15.0",
|
||||||
"babel-eslint": "^10.1.0",
|
|
||||||
"babel-loader": "^8.1.0",
|
"babel-loader": "^8.1.0",
|
||||||
"css-loader": "^6.7.1",
|
"css-loader": "^6.7.1",
|
||||||
"dotenv-cli": "^5.0.0",
|
"dotenv-cli": "^5.0.0",
|
||||||
"eslint": "^8.11.0",
|
"eslint": "^8.11.0",
|
||||||
"eslint-config-standard": "^16.0.3",
|
"eslint-config-standard": "^17.0",
|
||||||
"eslint-import-resolver-webpack": "^0.13.2",
|
"eslint-import-resolver-webpack": "^0.13.2",
|
||||||
"eslint-plugin-import": "^2.20.2",
|
"eslint-plugin-import": "^2.20.2",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
|
@ -96,7 +96,6 @@
|
||||||
"husky": "^4.2.5",
|
"husky": "^4.2.5",
|
||||||
"inquirer": "^8.2.1",
|
"inquirer": "^8.2.1",
|
||||||
"install": "^0.13.0",
|
"install": "^0.13.0",
|
||||||
"node-sass": "^7.0.0",
|
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
>
|
>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="lib" />
|
<directory name="lib" />
|
||||||
|
<directory name="vendor/nextcloud/ocp" />
|
||||||
<ignoreFiles>
|
<ignoreFiles>
|
||||||
<directory name="vendor" />
|
<directory name="vendor" />
|
||||||
</ignoreFiles>
|
</ignoreFiles>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
/** @var $_ array */
|
/** @var $_ array */
|
||||||
/** @var $l \OCP\IL10N */
|
/** @var $l \OCP\IL10N */
|
||||||
style('core', 'guest');
|
style('core', 'guest');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="update bbb guest-box">
|
<div class="update bbb guest-box">
|
||||||
<h2><?php p($_['room']) ?></h2>
|
<h2><?php p($_['room']) ?></h2>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/** @var $_ array */
|
/** @var $_ array */
|
||||||
/** @var $l \OCP\IL10N */
|
/** @var $l \OCP\IL10N */
|
||||||
style('core', 'guest');
|
style('core', 'guest');
|
||||||
script('bbb', 'join');
|
script('bbb', 'join');
|
||||||
?>
|
?>
|
||||||
<form method="get" action="?">
|
<form method="get" action="?">
|
||||||
<fieldset class="warning bbb">
|
<fieldset class="warning bbb">
|
||||||
<h2><?php p($_['room']) ?></h2>
|
<h2><?php p($_['room']) ?></h2>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/** @var $_ array */
|
/** @var $_ array */
|
||||||
/** @var $l \OCP\IL10N */
|
/** @var $l \OCP\IL10N */
|
||||||
style('core', 'guest');
|
style('core', 'guest');
|
||||||
script('bbb', 'waiting');
|
script('bbb', 'waiting');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="update bbb">
|
<div class="update bbb">
|
||||||
<h2><?php p($_['room']); ?></h2>
|
<h2><?php p($_['room']); ?></h2>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue