Skip to content

Commit

Permalink
Merge pull request #112 from Coderberg/2.x
Browse files Browse the repository at this point in the history
2.x
  • Loading branch information
Coderberg committed Dec 11, 2023
2 parents 77b5841 + 998e213 commit ea82d64
Show file tree
Hide file tree
Showing 82 changed files with 1,581 additions and 1,492 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ jobs:
if: always() && steps.install.outcome == 'success'
run: vendor/bin/php-cs-fixer fix --diff --dry-run

- name: PHPStan
if: always() && steps.install.outcome == 'success'
run: vendor/bin/phpstan analyse

- name: Rector
if: always() && steps.install.outcome == 'success'
run: vendor/bin/rector process src --clear-cache --dry-run

- name: Lint YAML files
if: always() && steps.install.outcome == 'success'
run: ./bin/console lint:yaml config --parse-tags
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.1']
php-versions: ['8.3']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ import 'bootstrap';
import 'lazysizes';
import bootbox from 'bootbox';
window.bootbox = bootbox;

$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
3 changes: 1 addition & 2 deletions assets/js/admin/menu-sorting.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const changeButtons = () => {

const sendRequest = () => {
const item = $('.js-move');
const token = $('#menu').data('token');

if (item.length > 1) {
let items = [];
Expand All @@ -26,7 +25,7 @@ const sendRequest = () => {
$.ajax({
method: 'POST',
url: '/en/admin/menu/sort',
data: { csrf_token: token, items: items }
data: { items: items }
});
}
};
Expand Down
2 changes: 0 additions & 2 deletions assets/js/auth/_resend.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
$.ajax({
url: '/en/auth/should_link_be_visible',
type: 'GET',
data: { csrf_token: link.data('token') },
success: function (response) {
if (response.display === true) {
link.show();
Expand All @@ -21,7 +20,6 @@
$.ajax({
url: link.data('path'),
type: 'POST',
data: { csrf_token: link.data('token') },
success: function (response) {
link.hide();
bootbox.alert(response.message);
Expand Down
5 changes: 2 additions & 3 deletions assets/js/city.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
$('body').on('change', '#property_city', function () {
clearOptions();
let cityId = $(this).val();
const token = $('#property_form').data('token');
const url =
'/en/city/' + cityId + '.json?csrf_token=' + token;

const url = '/en/city/' + cityId + '.json';

if ('' === cityId) {
return;
Expand Down
2 changes: 0 additions & 2 deletions assets/js/user/password/_update_password.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@

// Send request
$button.click(function () {
let token = $('[name="password_token"]').val();
$(this)
.attr('disabled', true)
.text($button.data('progress-text'));
$.ajax({
method: 'POST',
url: $('#passwordForm').attr('action'),
data: {
csrf_token: token,
password1: $('#password1').val(),
password2: $('#password2').val()
}
Expand Down
8 changes: 2 additions & 6 deletions assets/js/user/two_factor/google_authenticator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'use strict';

const $form = $('#generate_google_auth_secret');
const token = $('[name="auth_token"]').val();
const $secret = $('[name="generatedSecret"]');
const $authentication_code = $('[name="authentication_code"]');

Expand All @@ -11,8 +10,7 @@
if ($form.data('generate-new-secret') === true) {
$.ajax({
method: 'GET',
url: '/en/user/google_authenticator_code',
data: { csrf_token: token }
url: '/en/user/google_authenticator_code'
}).done(function (response) {
const { secret, qr_code } = response;
const image = new Image();
Expand All @@ -39,7 +37,6 @@
method: 'PUT',
url: $form.attr('action'),
data: {
csrf_token: token,
secret: $secret.val(),
authentication_code: authentication_code
}
Expand All @@ -56,8 +53,7 @@
$('#disable2fa').click(function () {
$.ajax({
method: 'DELETE',
url: $form.attr('action'),
data: { csrf_token: token }
url: $form.attr('action')
})
.done(function () {
location.reload();
Expand Down
112 changes: 56 additions & 56 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,69 +10,69 @@
"ext-ctype": "*",
"ext-gd": "*",
"doctrine/annotations": "^2.0",
"doctrine/doctrine-bundle": "^2.8",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.13",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^2.17",
"endroid/qr-code": "^4.8",
"gregwar/image": "master",
"knplabs/knp-paginator-bundle": "^6.2",
"phpdocumentor/reflection-docblock": "^5.2",
"scheb/2fa-bundle": "^6.8",
"scheb/2fa-google-authenticator": "^6.8",
"symfony/asset": "^6.3",
"symfony/cache": "^6.3",
"symfony/console": "^6.3",
"symfony/dotenv": "^6.3",
"symfony/expression-language": "^6.3",
"symfony/flex": "^2.2",
"symfony/form": "^6.3",
"symfony/framework-bundle": "^6.3",
"symfony/google-mailer": "^6.3",
"symfony/http-client": "^6.3",
"symfony/intl": "^6.3",
"symfony/lock": "^6.3",
"symfony/mailer": "^6.3",
"symfony/messenger": "^6.3",
"symfony/monolog-bridge": "^6.3",
"symfony/monolog-bundle": "^3.8",
"symfony/notifier": "^6.3",
"symfony/process": "^6.3",
"symfony/property-access": "^6.3",
"symfony/property-info": "^6.3",
"symfony/proxy-manager-bridge": "^6.3",
"symfony/rate-limiter": "^6.3",
"symfony/runtime": "^6.3",
"symfony/security-bundle": "^6.1",
"symfony/serializer": "^6.3",
"symfony/string": "^6.3",
"symfony/translation": "^6.3",
"symfony/twig-bundle": "^6.3",
"symfony/validator": "^6.3",
"symfony/web-link": "^6.3",
"symfony/webpack-encore-bundle": "^2.0",
"symfony/yaml": "^6.3",
"symfonycasts/verify-email-bundle": "^1.10",
"twig/extra-bundle": "^3.4",
"twig/intl-extra": "^3.4",
"twig/string-extra": "^3.4",
"twig/twig": "^v3.4.3",
"knplabs/knp-paginator-bundle": "^6.3",
"phpdocumentor/reflection-docblock": "^5.3",
"scheb/2fa-bundle": "^6.12",
"scheb/2fa-google-authenticator": "^6.12",
"symfony/asset": "^6.4",
"symfony/cache": "^6.4",
"symfony/console": "^6.4",
"symfony/dotenv": "^6.4",
"symfony/expression-language": "^6.4",
"symfony/flex": "^2.4",
"symfony/form": "^6.4",
"symfony/framework-bundle": "^6.4",
"symfony/google-mailer": "^6.4",
"symfony/http-client": "^6.4",
"symfony/intl": "^6.4",
"symfony/lock": "^6.4",
"symfony/mailer": "^6.4",
"symfony/messenger": "^6.4",
"symfony/monolog-bridge": "^6.4",
"symfony/monolog-bundle": "^3.10",
"symfony/notifier": "^6.4",
"symfony/process": "^6.4",
"symfony/property-access": "^6.4",
"symfony/property-info": "^6.4",
"symfony/proxy-manager-bridge": "^6.4",
"symfony/rate-limiter": "^6.4",
"symfony/runtime": "^6.4",
"symfony/security-bundle": "^6.4",
"symfony/serializer": "^6.4",
"symfony/string": "^6.4",
"symfony/translation": "^6.4",
"symfony/twig-bundle": "^6.4",
"symfony/validator": "^6.4",
"symfony/web-link": "^6.4",
"symfony/webpack-encore-bundle": "^2.1",
"symfony/yaml": "^6.4",
"symfonycasts/verify-email-bundle": "^1.15",
"twig/extra-bundle": "^3.8",
"twig/intl-extra": "^3.8",
"twig/string-extra": "^3.8",
"twig/twig": "^v3.8.0",
"voku/portable-ascii": "^1.6"
},
"require-dev": {
"coderberg/google-authenticator": "^1.2",
"dbrekelmans/bdi": "^1.0",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"friendsofphp/php-cs-fixer": "^3.17",
"dbrekelmans/bdi": "^1.1",
"doctrine/doctrine-fixtures-bundle": "^3.5",
"friendsofphp/php-cs-fixer": "^3.40",
"phpunit/phpunit": "^9.6",
"rector/rector": "^0.14.5",
"symfony/browser-kit": "^6.3",
"symfony/css-selector": "^6.3",
"symfony/debug-bundle": "^6.3",
"symfony/maker-bundle": "^1.48",
"symfony/panther": "^2.0",
"symfony/phpunit-bridge": "^6.3",
"symfony/stopwatch": "^6.3",
"symfony/web-profiler-bundle": "^6.3"
"symfony/browser-kit": "^6.4",
"symfony/css-selector": "^6.4",
"symfony/debug-bundle": "^6.4",
"symfony/maker-bundle": "^1.52",
"symfony/panther": "^2.1",
"symfony/phpunit-bridge": "^6.4",
"symfony/stopwatch": "^6.4",
"symfony/web-profiler-bundle": "^6.4"
},
"config": {
"platform": {
Expand Down Expand Up @@ -125,7 +125,7 @@
"extra": {
"symfony": {
"allow-contrib": true,
"require": "6.3.*"
"require": "6.4.*"
}
}
}

0 comments on commit ea82d64

Please sign in to comment.