Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

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

- name: Rector
if: always() && steps.install.outcome == 'success'
Expand Down Expand Up @@ -84,4 +84,4 @@ jobs:

- name: Check if any dependencies are compromised
if: always() && steps.install.outcome == 'success'
run: composer audit --ansi
run: composer audit --abandoned=report --ansi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/drivers/
/.idea/
/.vscode
/public/uploads/images/*/*.*

###> symfony/framework-bundle ###
Expand Down
52 changes: 52 additions & 0 deletions assets/js/properties-map.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/** global: ymaps */

const $map = $('#map');
const markers = $map.data('markers') || [];
const center = $map.data('center') || [27.188534, -81.128735];
const zoom = Number($map.data('zoom')) || 7;
const viewDetailsLabel = $map.data('viewDetails') || 'View details';

function escapeHtml(value) {
return String(value)
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
}

function init() {
const myMap = new ymaps.Map('map', {
center: center,
zoom: zoom,
});

markers.forEach((marker) => {
const price = escapeHtml(marker.price);
const category = escapeHtml(marker.category);
const url = escapeHtml(marker.url);
const label = escapeHtml(viewDetailsLabel);

const geoObject = new ymaps.GeoObject({
geometry: {
type: 'Point',
coordinates: [marker.lat, marker.lng],
},
properties: {
hintContent: price,
balloonContentHeader: price,
balloonContentBody: `${category}<br><a href="${url}">${label}</a>`,
},
}, {preset: 'islands#blueHomeIcon'});

myMap.geoObjects.add(geoObject);
});
}

ymaps.ready(init);

$map.css({
width: '100%',
height: '85vh',
'min-height': '400px',
});
83 changes: 43 additions & 40 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,43 @@
"phpdocumentor/reflection-docblock": "^5.4",
"scheb/2fa-bundle": "^7.5",
"scheb/2fa-google-authenticator": "^7.5",
"symfony/asset": "^7.1",
"symfony/cache": "^7.1",
"symfony/console": "^7.1",
"symfony/dotenv": "^7.1",
"symfony/expression-language": "^7.1",
"symfony/asset": "^7.4",
"symfony/cache": "^7.4",
"symfony/console": "^7.4",
"symfony/dotenv": "^7.4",
"symfony/expression-language": "^7.4",
"symfony/flex": "^2",
"symfony/form": "^7.1",
"symfony/framework-bundle": "^7.1",
"symfony/google-mailer": "^7.1",
"symfony/http-client": "^7.1",
"symfony/intl": "^7.1",
"symfony/lock": "^7.1",
"symfony/mailer": "^7.1",
"symfony/messenger": "^7.1",
"symfony/monolog-bridge": "^7.1",
"symfony/form": "^7.4",
"symfony/framework-bundle": "^7.4",
"symfony/google-mailer": "^7.4",
"symfony/http-client": "^7.4",
"symfony/intl": "^7.4",
"symfony/lock": "^7.4",
"symfony/mailer": "^7.4",
"symfony/messenger": "^7.4",
"symfony/monolog-bridge": "^7.4",
"symfony/monolog-bundle": "^3.10",
"symfony/notifier": "^7.1",
"symfony/process": "^7.1",
"symfony/property-access": "^7.1",
"symfony/property-info": "^7.1",
"symfony/notifier": "^7.4",
"symfony/process": "^7.4",
"symfony/property-access": "^7.4",
"symfony/property-info": "^7.4",
"symfony/proxy-manager-bridge": "^6.4",
"symfony/rate-limiter": "^7.1",
"symfony/runtime": "^7.1",
"symfony/security-bundle": "^7.1",
"symfony/serializer": "^7.1",
"symfony/string": "^7.1",
"symfony/translation": "^7.1",
"symfony/twig-bundle": "^7.1",
"symfony/validator": "^7.1",
"symfony/web-link": "^7.1",
"symfony/rate-limiter": "^7.4",
"symfony/runtime": "^7.4",
"symfony/security-bundle": "^7.4",
"symfony/serializer": "^7.4",
"symfony/string": "^7.4",
"symfony/translation": "^7.4",
"symfony/twig-bundle": "^7.4",
"symfony/validator": "^7.4",
"symfony/web-link": "^7.4",
"symfony/webpack-encore-bundle": "^2.1",
"symfony/yaml": "^7.1",
"symfony/yaml": "^7.4",
"symfonycasts/verify-email-bundle": "^1.17",
"twig/extra-bundle": "^3.10",
"twig/intl-extra": "^3.10",
"twig/string-extra": "^3.10",
"twig/twig": "^v3.10",
"twig/extra-bundle": "^3.22",
"twig/intl-extra": "^3.26",
"twig/string-extra": "^3.22",
"twig/twig": "^3.27",
"voku/portable-ascii": "^1.6"
},
"require-dev": {
Expand All @@ -65,14 +65,14 @@
"friendsofphp/php-cs-fixer": "^3.59",
"phpunit/phpunit": "^9.6",
"rector/rector": "^2.0",
"symfony/browser-kit": "^7.1",
"symfony/css-selector": "^7.1",
"symfony/debug-bundle": "^7.1",
"symfony/browser-kit": "^7.4",
"symfony/css-selector": "^7.4",
"symfony/debug-bundle": "^7.4",
"symfony/maker-bundle": "^1.60",
"symfony/panther": "^2.1",
"symfony/phpunit-bridge": "^7.1",
"symfony/stopwatch": "^7.1",
"symfony/web-profiler-bundle": "^7.1"
"symfony/phpunit-bridge": "^7.4",
"symfony/stopwatch": "^7.4",
"symfony/web-profiler-bundle": "^7.4"
},
"config": {
"platform": {
Expand All @@ -86,6 +86,9 @@
"allow-plugins": {
"symfony/flex": true,
"symfony/runtime": true
},
"audit": {
"abandoned": "report"
}
},
"autoload": {
Expand All @@ -110,7 +113,7 @@
"php-cs-fixer": "php-cs-fixer fix",
"lint": [
"@php-cs-fixer",
"phpstan analyse",
"phpstan analyse --memory-limit=512M",
"rector process"
],
"auto-scripts": {
Expand All @@ -130,7 +133,7 @@
"extra": {
"symfony": {
"allow-contrib": true,
"require": "7.1.*",
"require": "7.4.*",
"docker": true
}
}
Expand Down
Loading
Loading