Compare commits

..

19 Commits

Author SHA1 Message Date
9e3ad401e9 Remove duplicate message when trying to create a user with same username 2023-08-03 16:46:22 +02:00
c2bfc0f359 Merge pull request #6786 from wallabag/dependabot/composer/sentry/sentry-symfony-4.10.0
Bump sentry/sentry-symfony from 4.9.2 to 4.10.0
2023-08-03 11:26:02 +02:00
8281920f2c Merge pull request #6775 from viktoriussuwandi/issue#6772
Remove external dependencies on src/Wallabag/CoreBundle/Resources/vie…
2023-08-02 23:14:13 +02:00
d4913c50c2 Bump sentry/sentry-symfony from 4.9.2 to 4.10.0
Bumps [sentry/sentry-symfony](https://github.com/getsentry/sentry-symfony) from 4.9.2 to 4.10.0.
- [Release notes](https://github.com/getsentry/sentry-symfony/releases)
- [Changelog](https://github.com/getsentry/sentry-symfony/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-symfony/compare/4.9.2...4.10.0)

---
updated-dependencies:
- dependency-name: sentry/sentry-symfony
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-02 02:10:33 +00:00
19d3e878cf Merge branch 'master' into issue#6772 2023-08-01 19:43:37 +07:00
c659a42c51 Merge pull request #6783 from wallabag/fix-dependencies
Update dependencies
2023-07-31 15:38:43 +02:00
cb411e8dcd Update dependencies 2023-07-31 14:58:29 +02:00
fec8a993d9 Merge pull request #6779 from wallabag/dependabot/composer/jms/serializer-3.27.0
Bump jms/serializer from 3.26.0 to 3.27.0
2023-07-31 11:46:58 +02:00
31542bc4b1 Merge branch 'master' into dependabot/composer/jms/serializer-3.27.0 2023-07-31 11:36:39 +02:00
827dded754 Merge pull request #6780 from wallabag/dependabot/composer/symfony/phpunit-bridge-6.3.2
Bump symfony/phpunit-bridge from 6.3.1 to 6.3.2
2023-07-31 11:36:18 +02:00
39bcddfd8b Merge branch 'master' into dependabot/composer/symfony/phpunit-bridge-6.3.2 2023-07-31 11:29:08 +02:00
8cfa1cd551 Merge pull request #6782 from wallabag/dependabot/npm_and_yarn/eslint-8.46.0
Bump eslint from 8.45.0 to 8.46.0
2023-07-31 02:38:17 +00:00
649e1e56a9 Bump eslint from 8.45.0 to 8.46.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.45.0 to 8.46.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.45.0...v8.46.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 02:33:21 +00:00
c1ed66aad5 Merge pull request #6781 from wallabag/dependabot/npm_and_yarn/eslint-plugin-import-2.28.0
Bump eslint-plugin-import from 2.27.5 to 2.28.0
2023-07-31 02:32:20 +00:00
9beadfde59 Bump eslint-plugin-import from 2.27.5 to 2.28.0
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.5 to 2.28.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...v2.28.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 02:27:52 +00:00
090f873ffc Bump symfony/phpunit-bridge from 6.3.1 to 6.3.2
Bumps [symfony/phpunit-bridge](https://github.com/symfony/phpunit-bridge) from 6.3.1 to 6.3.2.
- [Release notes](https://github.com/symfony/phpunit-bridge/releases)
- [Changelog](https://github.com/symfony/phpunit-bridge/blob/6.3/CHANGELOG.md)
- [Commits](https://github.com/symfony/phpunit-bridge/compare/v6.3.1...v6.3.2)

---
updated-dependencies:
- dependency-name: symfony/phpunit-bridge
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 02:14:05 +00:00
1b7d756be0 Bump jms/serializer from 3.26.0 to 3.27.0
Bumps [jms/serializer](https://github.com/schmittjoh/serializer) from 3.26.0 to 3.27.0.
- [Release notes](https://github.com/schmittjoh/serializer/releases)
- [Changelog](https://github.com/schmittjoh/serializer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/schmittjoh/serializer/compare/3.26.0...3.27.0)

---
updated-dependencies:
- dependency-name: jms/serializer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 02:13:54 +00:00
c1cba72a19 Replace hardcoded url by current wallabag url 2023-07-30 10:09:54 +02:00
e80a169435 Remove external dependencies on src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig 2023-07-30 14:07:45 +07:00
13 changed files with 512 additions and 660 deletions

View File

@ -151,58 +151,3 @@ jobs:
- name: "Run PHPUnit" - name: "Run PHPUnit"
run: "php bin/simple-phpunit -v" run: "php bin/simple-phpunit -v"
phpunit_no_database:
name: "PHP ${{ matrix.php }} using ${{ matrix.database }} without DB created"
runs-on: "ubuntu-20.04"
services:
rabbitmq:
image: rabbitmq:3-alpine
ports:
- 5672:5672
redis:
image: redis:6-alpine
ports:
- 6379:6379
strategy:
fail-fast: true
matrix:
php:
- "8.2"
database:
- "mysql"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 2
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
coverage: none
tools: pecl
extensions: json, pdo, pdo_mysql, pdo_sqlite, pdo_pgsql, curl, imagick, pgsql, gd, tidy
ini-values: "date.timezone=Europe/Paris"
- name: "Setup MySQL"
if: "${{ matrix.database == 'mysql' }}"
run: |
sudo systemctl start mysql.service
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
composer-options: "--optimize-autoloader --prefer-dist"
- name: "Install wallabag"
run: "php bin/console wallabag:install --env=test"
- name: "Prepare fixtures"
run: "make fixtures"
- name: "Run PHPUnit"
run: "php bin/simple-phpunit -v"

View File

@ -86,7 +86,6 @@
"kphoen/rulerz": "^0.21", "kphoen/rulerz": "^0.21",
"kphoen/rulerz-bundle": "~0.13", "kphoen/rulerz-bundle": "~0.13",
"laminas/laminas-code": "^4.7", "laminas/laminas-code": "^4.7",
"laminas/laminas-diactoros": "^2.3",
"lcobucci/jwt": "~4.1.5", "lcobucci/jwt": "~4.1.5",
"lexik/form-filter-bundle": "^7.0", "lexik/form-filter-bundle": "^7.0",
"mgargano/simplehtmldom": "~1.5", "mgargano/simplehtmldom": "~1.5",
@ -116,7 +115,7 @@
"scheb/2fa-qr-code": "^5.13", "scheb/2fa-qr-code": "^5.13",
"scheb/2fa-trusted-device": "^5.13", "scheb/2fa-trusted-device": "^5.13",
"sensio/framework-extra-bundle": "^6.2", "sensio/framework-extra-bundle": "^6.2",
"sentry/sentry-symfony": "4.9.2", "sentry/sentry-symfony": "4.10.0",
"stof/doctrine-extensions-bundle": "^1.2", "stof/doctrine-extensions-bundle": "^1.2",
"symfony/dom-crawler": "^4.0", "symfony/dom-crawler": "^4.0",
"symfony/mailer": "^4.0", "symfony/mailer": "^4.0",

172
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "1f7c20bf034c1595dacf792986d5d42a", "content-hash": "380ee6b102e29c7cbb589a66f15fc145",
"packages": [ "packages": [
{ {
"name": "babdev/pagerfanta-bundle", "name": "babdev/pagerfanta-bundle",
@ -4959,22 +4959,22 @@
}, },
{ {
"name": "jms/serializer", "name": "jms/serializer",
"version": "3.26.0", "version": "3.27.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/schmittjoh/serializer.git", "url": "https://github.com/schmittjoh/serializer.git",
"reference": "926a7d57438fa1ff4ab794551c5ae26e68536853" "reference": "e8c812460d7b47b15bc0ccd78901276bd44ad452"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/schmittjoh/serializer/zipball/926a7d57438fa1ff4ab794551c5ae26e68536853", "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/e8c812460d7b47b15bc0ccd78901276bd44ad452",
"reference": "926a7d57438fa1ff4ab794551c5ae26e68536853", "reference": "e8c812460d7b47b15bc0ccd78901276bd44ad452",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/annotations": "^1.13 || ^2.0", "doctrine/annotations": "^1.13 || ^2.0",
"doctrine/instantiator": "^1.0.3 || ^2.0", "doctrine/instantiator": "^1.0.3 || ^2.0",
"doctrine/lexer": "^2", "doctrine/lexer": "^2.0 || ^3.0",
"jms/metadata": "^2.6", "jms/metadata": "^2.6",
"php": "^7.2||^8.0", "php": "^7.2||^8.0",
"phpstan/phpdoc-parser": "^0.4 || ^0.5 || ^1.0" "phpstan/phpdoc-parser": "^0.4 || ^0.5 || ^1.0"
@ -5043,7 +5043,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/schmittjoh/serializer/issues", "issues": "https://github.com/schmittjoh/serializer/issues",
"source": "https://github.com/schmittjoh/serializer/tree/3.26.0" "source": "https://github.com/schmittjoh/serializer/tree/3.27.0"
}, },
"funding": [ "funding": [
{ {
@ -5051,7 +5051,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2023-06-24T19:25:58+00:00" "time": "2023-07-29T22:33:44+00:00"
}, },
{ {
"name": "jms/serializer-bundle", "name": "jms/serializer-bundle",
@ -5459,103 +5459,6 @@
], ],
"time": "2022-11-21T01:32:31+00:00" "time": "2022-11-21T01:32:31+00:00"
}, },
{
"name": "laminas/laminas-diactoros",
"version": "2.17.0",
"source": {
"type": "git",
"url": "https://github.com/laminas/laminas-diactoros.git",
"reference": "5b32597aa46b83c8b85bb1cf9a6ed4fe7dd980c5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/5b32597aa46b83c8b85bb1cf9a6ed4fe7dd980c5",
"reference": "5b32597aa46b83c8b85bb1cf9a6ed4fe7dd980c5",
"shasum": ""
},
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0"
},
"conflict": {
"zendframework/zend-diactoros": "*"
},
"provide": {
"psr/http-factory-implementation": "1.0",
"psr/http-message-implementation": "1.0"
},
"require-dev": {
"ext-curl": "*",
"ext-dom": "*",
"ext-gd": "*",
"ext-libxml": "*",
"http-interop/http-factory-tests": "^0.9.0",
"laminas/laminas-coding-standard": "^2.4.0",
"php-http/psr7-integration-tests": "^1.1.1",
"phpunit/phpunit": "^9.5.23",
"psalm/plugin-phpunit": "^0.17.0",
"vimeo/psalm": "^4.24.0"
},
"type": "library",
"extra": {
"laminas": {
"config-provider": "Laminas\\Diactoros\\ConfigProvider",
"module": "Laminas\\Diactoros"
}
},
"autoload": {
"files": [
"src/functions/create_uploaded_file.php",
"src/functions/marshal_headers_from_sapi.php",
"src/functions/marshal_method_from_sapi.php",
"src/functions/marshal_protocol_version_from_sapi.php",
"src/functions/marshal_uri_from_sapi.php",
"src/functions/normalize_server.php",
"src/functions/normalize_uploaded_files.php",
"src/functions/parse_cookie_header.php",
"src/functions/create_uploaded_file.legacy.php",
"src/functions/marshal_headers_from_sapi.legacy.php",
"src/functions/marshal_method_from_sapi.legacy.php",
"src/functions/marshal_protocol_version_from_sapi.legacy.php",
"src/functions/marshal_uri_from_sapi.legacy.php",
"src/functions/normalize_server.legacy.php",
"src/functions/normalize_uploaded_files.legacy.php",
"src/functions/parse_cookie_header.legacy.php"
],
"psr-4": {
"Laminas\\Diactoros\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "PSR HTTP Message implementations",
"homepage": "https://laminas.dev",
"keywords": [
"http",
"laminas",
"psr",
"psr-17",
"psr-7"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-diactoros/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-diactoros/issues",
"rss": "https://github.com/laminas/laminas-diactoros/releases.atom",
"source": "https://github.com/laminas/laminas-diactoros"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
"type": "community_bridge"
}
],
"time": "2022-08-30T17:01:46+00:00"
},
{ {
"name": "lcobucci/clock", "name": "lcobucci/clock",
"version": "2.0.0", "version": "2.0.0",
@ -8883,16 +8786,16 @@
}, },
{ {
"name": "sentry/sentry", "name": "sentry/sentry",
"version": "3.19.1", "version": "3.21.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/getsentry/sentry-php.git", "url": "https://github.com/getsentry/sentry-php.git",
"reference": "dd1057fb37d4484ebb2d1bc9b05fa5969c078436" "reference": "624aafc22b84b089ffa43b71fb01e0096505ec4f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/getsentry/sentry-php/zipball/dd1057fb37d4484ebb2d1bc9b05fa5969c078436", "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/624aafc22b84b089ffa43b71fb01e0096505ec4f",
"reference": "dd1057fb37d4484ebb2d1bc9b05fa5969c078436", "reference": "624aafc22b84b089ffa43b71fb01e0096505ec4f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -8936,11 +8839,6 @@
"monolog/monolog": "Allow sending log messages to Sentry by using the included Monolog handler." "monolog/monolog": "Allow sending log messages to Sentry by using the included Monolog handler."
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.13.x-dev"
}
},
"autoload": { "autoload": {
"files": [ "files": [
"src/functions.php" "src/functions.php"
@ -8972,7 +8870,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/getsentry/sentry-php/issues", "issues": "https://github.com/getsentry/sentry-php/issues",
"source": "https://github.com/getsentry/sentry-php/tree/3.19.1" "source": "https://github.com/getsentry/sentry-php/tree/3.21.0"
}, },
"funding": [ "funding": [
{ {
@ -8984,20 +8882,20 @@
"type": "custom" "type": "custom"
} }
], ],
"time": "2023-05-25T06:19:09+00:00" "time": "2023-07-31T15:31:24+00:00"
}, },
{ {
"name": "sentry/sentry-symfony", "name": "sentry/sentry-symfony",
"version": "4.9.2", "version": "4.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/getsentry/sentry-symfony.git", "url": "https://github.com/getsentry/sentry-symfony.git",
"reference": "a4f7ffb30134ff2d12510fbeb2c74787375f0f17" "reference": "be9d93e5aed6a76a98dc980ae9e6fb56a29083b1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/getsentry/sentry-symfony/zipball/a4f7ffb30134ff2d12510fbeb2c74787375f0f17", "url": "https://api.github.com/repos/getsentry/sentry-symfony/zipball/be9d93e5aed6a76a98dc980ae9e6fb56a29083b1",
"reference": "a4f7ffb30134ff2d12510fbeb2c74787375f0f17", "reference": "be9d93e5aed6a76a98dc980ae9e6fb56a29083b1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -9005,7 +8903,7 @@
"jean85/pretty-package-versions": "^1.5 || ^2.0", "jean85/pretty-package-versions": "^1.5 || ^2.0",
"php": "^7.2||^8.0", "php": "^7.2||^8.0",
"sentry/sdk": "^3.4", "sentry/sdk": "^3.4",
"sentry/sentry": "^3.19", "sentry/sentry": "^3.20.1",
"symfony/cache-contracts": "^1.1||^2.4||^3.0", "symfony/cache-contracts": "^1.1||^2.4||^3.0",
"symfony/config": "^4.4.20||^5.0.11||^6.0", "symfony/config": "^4.4.20||^5.0.11||^6.0",
"symfony/console": "^4.4.20||^5.0.11||^6.0", "symfony/console": "^4.4.20||^5.0.11||^6.0",
@ -9014,7 +8912,8 @@
"symfony/http-kernel": "^4.4.20||^5.0.11||^6.0", "symfony/http-kernel": "^4.4.20||^5.0.11||^6.0",
"symfony/polyfill-php80": "^1.22", "symfony/polyfill-php80": "^1.22",
"symfony/psr-http-message-bridge": "^1.2||^2.0", "symfony/psr-http-message-bridge": "^1.2||^2.0",
"symfony/security-core": "^4.4.20||^5.0.11||^6.0" "symfony/security-core": "^4.4.20||^5.0.11||^6.0",
"symfony/security-http": "^4.4.20||^5.0.11||^6.0"
}, },
"require-dev": { "require-dev": {
"doctrine/dbal": "^2.13||^3.0", "doctrine/dbal": "^2.13||^3.0",
@ -9051,7 +8950,6 @@
"type": "symfony-bundle", "type": "symfony-bundle",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "4.6.x-dev",
"releases/3.2.x": "3.2.x-dev", "releases/3.2.x": "3.2.x-dev",
"releases/2.x": "2.x-dev", "releases/2.x": "2.x-dev",
"releases/1.x": "1.x-dev" "releases/1.x": "1.x-dev"
@ -9089,7 +8987,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/getsentry/sentry-symfony/issues", "issues": "https://github.com/getsentry/sentry-symfony/issues",
"source": "https://github.com/getsentry/sentry-symfony/tree/4.9.2" "source": "https://github.com/getsentry/sentry-symfony/tree/4.10.0"
}, },
"funding": [ "funding": [
{ {
@ -9101,7 +8999,7 @@
"type": "custom" "type": "custom"
} }
], ],
"time": "2023-06-19T12:02:46+00:00" "time": "2023-08-01T13:42:19+00:00"
}, },
{ {
"name": "simplepie/simplepie", "name": "simplepie/simplepie",
@ -10531,16 +10429,16 @@
}, },
{ {
"name": "symfony/string", "name": "symfony/string",
"version": "v5.4.22", "version": "v5.4.26",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/string.git", "url": "https://github.com/symfony/string.git",
"reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62" "reference": "1181fe9270e373537475e826873b5867b863883c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", "url": "https://api.github.com/repos/symfony/string/zipball/1181fe9270e373537475e826873b5867b863883c",
"reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", "reference": "1181fe9270e373537475e826873b5867b863883c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -10597,7 +10495,7 @@
"utf8" "utf8"
], ],
"support": { "support": {
"source": "https://github.com/symfony/string/tree/v5.4.22" "source": "https://github.com/symfony/string/tree/v5.4.26"
}, },
"funding": [ "funding": [
{ {
@ -10613,7 +10511,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-03-14T06:11:53+00:00" "time": "2023-06-28T12:46:07+00:00"
}, },
{ {
"name": "symfony/symfony", "name": "symfony/symfony",
@ -13387,16 +13285,16 @@
}, },
{ {
"name": "symfony/phpunit-bridge", "name": "symfony/phpunit-bridge",
"version": "v6.3.1", "version": "v6.3.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/phpunit-bridge.git", "url": "https://github.com/symfony/phpunit-bridge.git",
"reference": "0b0bf59b0d9bd1422145a123a67fb12af546ef0d" "reference": "e020e1efbd1b42cb670fcd7d19a25abbddba035d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/0b0bf59b0d9bd1422145a123a67fb12af546ef0d", "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/e020e1efbd1b42cb670fcd7d19a25abbddba035d",
"reference": "0b0bf59b0d9bd1422145a123a67fb12af546ef0d", "reference": "e020e1efbd1b42cb670fcd7d19a25abbddba035d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -13448,7 +13346,7 @@
"description": "Provides utilities for PHPUnit, especially user deprecation notices management", "description": "Provides utilities for PHPUnit, especially user deprecation notices management",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/phpunit-bridge/tree/v6.3.1" "source": "https://github.com/symfony/phpunit-bridge/tree/v6.3.2"
}, },
"funding": [ "funding": [
{ {
@ -13464,7 +13362,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-06-23T13:25:16+00:00" "time": "2023-07-12T16:00:22+00:00"
} }
], ],
"aliases": [], "aliases": [],

View File

@ -1,6 +1,6 @@
{ {
"name": "wallabag", "name": "wallabag",
"version": "2.5.0", "version": "2.6.0",
"description": "wallabag is a self hostable application for saving web pages", "description": "wallabag is a self hostable application for saving web pages",
"private": true, "private": true,
"directories": { "directories": {
@ -17,17 +17,22 @@
{ {
"name": "Nicolas Lœuillet", "name": "Nicolas Lœuillet",
"email": "nicolas@loeuillet.org", "email": "nicolas@loeuillet.org",
"homepage": "http://www.cdetc.fr", "homepage": "https://nicolas.loeuillet.org",
"role": "Developer" "role": "Developer"
}, },
{ {
"name": "Thomas Citharel", "name": "Thomas Citharel",
"homepage": "http://tcit.fr", "homepage": "https://tcit.fr",
"role": "Developer" "role": "Developer"
}, },
{ {
"name": "Jérémy Benoist", "name": "Jérémy Benoist",
"homepage": "http://www.j0k3r.net", "homepage": "https://www.j0k3r.net",
"role": "Developer"
},
{
"name": "Kevin Decherf",
"homepage": "https://kdecherf.com/",
"role": "Developer" "role": "Developer"
} }
], ],
@ -42,9 +47,9 @@
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",
"css-loader": "^6.8.1", "css-loader": "^6.8.1",
"eslint": "^8.45.0", "eslint": "^8.46.0",
"eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.28.0",
"eslint-webpack-plugin": "^4.0.1", "eslint-webpack-plugin": "^4.0.1",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"lato-font": "^3.0.0", "lato-font": "^3.0.0",
@ -79,7 +84,7 @@
"jquery.cookie": "^1.4.1", "jquery.cookie": "^1.4.1",
"jr-qrcode": "^1.0.7", "jr-qrcode": "^1.0.7",
"material-design-icons-iconfont": "^6.7.0", "material-design-icons-iconfont": "^6.7.0",
"materialize-css": "^0.98.1", "materialize-css": "^0.100.2",
"mathjax": "^3.2.2", "mathjax": "^3.2.2",
"mousetrap": "^1.6.0", "mousetrap": "^1.6.0",
"ptsans-npm-webfont": "^0.0.4", "ptsans-npm-webfont": "^0.0.4",

View File

@ -99,6 +99,9 @@ class DeveloperController extends AbstractController
*/ */
public function howtoFirstAppAction() public function howtoFirstAppAction()
{ {
return $this->render('@WallabagCore/Developer/howto_app.html.twig'); return $this->render('@WallabagCore/Developer/howto_app.html.twig',
[
'wallabag_url' => $this->getParameter('domain_name'),
]);
} }
} }

View File

@ -372,25 +372,24 @@ class InstallCommand extends Command
private function isDatabasePresent() private function isDatabasePresent()
{ {
$connection = $this->entityManager->getConnection(); $connection = $this->entityManager->getConnection();
$databaseName = $connection->getDatabase();
try { try {
$databaseName = $connection->getDatabase(); $schemaManager = $connection->getSchemaManager();
} catch (\Exception $exception) { } catch (\Exception $exception) {
// mysql & sqlite // mysql & sqlite
if (false !== strpos($exception->getMessage(), 'Unknown database')) { if (false !== strpos($exception->getMessage(), sprintf("Unknown database '%s'", $databaseName))) {
return false; return false;
} }
// pgsql // pgsql
if (false !== strpos($exception->getMessage(), 'does not exist')) { if (false !== strpos($exception->getMessage(), sprintf('database "%s" does not exist', $databaseName))) {
return false; return false;
} }
throw $exception; throw $exception;
} }
$schemaManager = $connection->getSchemaManager();
// custom verification for sqlite, since `getListDatabasesSQL` doesn't work for sqlite // custom verification for sqlite, since `getListDatabasesSQL` doesn't work for sqlite
if ('sqlite' === $schemaManager->getDatabasePlatform()->getName()) { if ('sqlite' === $schemaManager->getDatabasePlatform()->getName()) {
$params = $connection->getParams(); $params = $connection->getParams();

View File

@ -2,11 +2,6 @@
{% block title %}{{ 'developer.howto.page_title'|trans }}{% endblock %} {% block title %}{{ 'developer.howto.page_title'|trans }}{% endblock %}
{% block css %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('https://cdnjs.cloudflare.com/ajax/libs/prism/1.4.1/themes/prism-dark.min.css') }}">
{% endblock %}
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="col s12"> <div class="col s12">
@ -18,7 +13,7 @@
<p>{{ 'developer.howto.description.paragraph_3'|trans({'%link%': path('developer_create_client')})|raw }}</p> <p>{{ 'developer.howto.description.paragraph_3'|trans({'%link%': path('developer_create_client')})|raw }}</p>
<p>{{ 'developer.howto.description.paragraph_4'|trans }}</p> <p>{{ 'developer.howto.description.paragraph_4'|trans }}</p>
<p> <p>
<pre><code class="language-bash">http POST https://app.wallabag.it/oauth/v2/token \ <pre><code class="language-bash">http POST {{ wallabag_url }}/oauth/v2/token \
grant_type=password \ grant_type=password \
client_id=12_5um6nz50ceg4088c0840wwc0kgg44g00kk84og044ggkscso0k \ client_id=12_5um6nz50ceg4088c0840wwc0kgg44g00kk84og044ggkscso0k \
client_secret=3qd12zpeaxes8cwg8c0404g888co4wo8kc4gcw0occww8cgw4k \ client_secret=3qd12zpeaxes8cwg8c0404g888co4wo8kc4gcw0occww8cgw4k \
@ -47,7 +42,7 @@ X-Powered-By: PHP/5.5.9-1ubuntu4.13
</p> </p>
<p>{{ 'developer.howto.description.paragraph_6'|trans }}</p> <p>{{ 'developer.howto.description.paragraph_6'|trans }}</p>
<p> <p>
<pre><code class="language-bash">http GET https://app.wallabag.it/api/entries.json \ <pre><code class="language-bash">http GET {{ wallabag_url }}/api/entries.json \
"Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"</code></pre> "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"</code></pre>
</p> </p>
<p>{{ 'developer.howto.description.paragraph_7'|trans }}</p> <p>{{ 'developer.howto.description.paragraph_7'|trans }}</p>
@ -58,6 +53,4 @@ X-Powered-By: PHP/5.5.9-1ubuntu4.13
</div> </div>
</div> </div>
</div> </div>
<script src="{{ asset('https://cdnjs.cloudflare.com/ajax/libs/prism/1.4.1/prism.min.js') }}"></script>
<script src="{{ asset('https://cdnjs.cloudflare.com/ajax/libs/prism/1.4.1/components/prism-bash.min.js') }}"></script>
{% endblock %} {% endblock %}

View File

@ -13,7 +13,6 @@ use OpenApi\Annotations as OA;
use Scheb\TwoFactorBundle\Model\BackupCodeInterface; use Scheb\TwoFactorBundle\Model\BackupCodeInterface;
use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface as EmailTwoFactorInterface; use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface as EmailTwoFactorInterface;
use Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface as GoogleTwoFactorInterface; use Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface as GoogleTwoFactorInterface;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Wallabag\ApiBundle\Entity\Client; use Wallabag\ApiBundle\Entity\Client;
use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Config;
use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Entry;
@ -26,9 +25,6 @@ use Wallabag\CoreBundle\Helper\EntityTimestampsTrait;
* @ORM\Entity(repositoryClass="Wallabag\UserBundle\Repository\UserRepository") * @ORM\Entity(repositoryClass="Wallabag\UserBundle\Repository\UserRepository")
* @ORM\Table(name="`user`") * @ORM\Table(name="`user`")
* @ORM\HasLifecycleCallbacks() * @ORM\HasLifecycleCallbacks()
*
* @UniqueEntity("email")
* @UniqueEntity("username")
*/ */
class User extends BaseUser implements EmailTwoFactorInterface, GoogleTwoFactorInterface, BackupCodeInterface class User extends BaseUser implements EmailTwoFactorInterface, GoogleTwoFactorInterface, BackupCodeInterface
{ {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

878
yarn.lock

File diff suppressed because it is too large Load Diff