From e2bedf3c01a629fdc985d4a4466758beb0ff0fb3 Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Wed, 8 Sep 2021 13:00:45 +0300 Subject: [PATCH 01/23] #4515 mobile edit --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e7cb719fc..80d03e20f 100644 --- a/composer.json +++ b/composer.json @@ -93,8 +93,7 @@ "filp/whoops": "~2.0", "fzaninotto/faker": "~1.4", "symfony/css-selector": "3.1.*", - "symfony/dom-crawler": "3.1.*", - "anomaly/installer-module": "~2.4.0" + "symfony/dom-crawler": "3.1.*" }, "repositories": [ { From b1b348a7f9827455e1006f8b58482440103f35c6 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Tue, 21 Sep 2021 18:06:45 +0300 Subject: [PATCH 02/23] detail page --- .../base-theme/resources/css/bootstrap-notify-visio.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css b/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css index 68a2dbc48..c3530673a 100644 --- a/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css +++ b/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css @@ -1,7 +1,7 @@ .swal2-container { display: grid; position: fixed; - z-index: 1060; + z-index: 99999999999999; top: 0; right: 0; bottom: 0; @@ -53,4 +53,8 @@ body.swal2-toast-shown .swal2-container.swal2-top-end, body.swal2-toast-shown .s grid-column: 3; align-self: start; justify-self: end; +} + +.swal2-title { + max-width: 14rem; } \ No newline at end of file From e8533fc30900a91fe0df727af03f2aa1b8df7c0d Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Mon, 27 Sep 2021 14:12:17 +0300 Subject: [PATCH 03/23] #4527 SEO optimise for openclassify.com (ahrefs.com) --- .../visiosoft/advs-module/src/Adv/AdvModel.php | 7 ------- .../advs-module/src/Adv/Contract/AdvInterface.php | 2 -- .../src/Http/Controller/AdvsController.php | 12 +++--------- .../visiosoft/base-theme/resources/js/script.js | 2 +- .../src/Http/Controller/MyProfileController.php | 5 +---- 5 files changed, 5 insertions(+), 23 deletions(-) diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php b/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php index 6f7377f07..484aba9e9 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php @@ -436,13 +436,6 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface return null; } - public function authControl() - { - if (!Auth::user()) { - redirect('/login?redirect=' . url()->current())->send(); - } - } - public function currentAds() { return $this->whereDate('finish_at', '>=', date("Y-m-d H:i:s")) ->where('status', '=', 'approved') diff --git a/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php b/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php index 87702de18..e38e2a87a 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php +++ b/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php @@ -70,8 +70,6 @@ interface AdvInterface extends EntryInterface public function getRecommended($id); - public function authControl(); - public function inStock(); public function getCity(); diff --git a/addons/default/visiosoft/advs-module/src/Http/Controller/AdvsController.php b/addons/default/visiosoft/advs-module/src/Http/Controller/AdvsController.php index 526f83d9c..4885d2938 100644 --- a/addons/default/visiosoft/advs-module/src/Http/Controller/AdvsController.php +++ b/addons/default/visiosoft/advs-module/src/Http/Controller/AdvsController.php @@ -711,9 +711,7 @@ class AdvsController extends PublicController public function deleteAd(AdvRepositoryInterface $advs, $id) { $ad = $this->adv_model->find($id); - if (!Auth::user()) { - redirect('/login?redirect=' . url()->current())->send(); - } + $this->middleware('auth'); if ($ad->created_by_id != Auth::id()) { $this->messages->error(trans('visiosoft.module.advs::message.delete_author_error')); @@ -745,9 +743,7 @@ class AdvsController extends PublicController public function create(AdvFormBuilder $formBuilder, CategoryRepositoryInterface $repository) { - if (!Auth::user()) { - redirect('/login?redirect=' . url()->current())->send(); - } + $this->middleware('auth'); $isActive = new AdvModel(); $cats = $this->request->toArray(); @@ -1059,9 +1055,7 @@ class AdvsController extends PublicController public function cats() { - if (!Auth::user()) { - redirect('/login?redirect=' . url()->current())->send(); - } + $this->middleware('auth'); $main_cats = $this->category_repository->getMainCategories(); return $this->view->make('visiosoft.module.advs::new-ad/post-cat', compact('main_cats')); diff --git a/addons/default/visiosoft/base-theme/resources/js/script.js b/addons/default/visiosoft/base-theme/resources/js/script.js index 70565b5ed..23442b5e7 100644 --- a/addons/default/visiosoft/base-theme/resources/js/script.js +++ b/addons/default/visiosoft/base-theme/resources/js/script.js @@ -1,4 +1,4 @@ $('.categories-list .show-all').on('click', function () { $(this).siblings('.hidden-category').toggleClass('hidden') $(this).find('a span').toggleClass('hidden') -}) +}); diff --git a/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php b/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php index 5eaf1f233..8042a6013 100644 --- a/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php +++ b/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php @@ -34,10 +34,7 @@ class MyProfileController extends PublicController ) { parent::__construct(); - if (!Auth::user()) { - redirect('/login?redirect=' . url()->current())->send(); - } - + $this->middleware('auth'); $this->adressRepository = $adressRepository; $this->userRepository = $userRepository; } From 2e82d6cf7614de5c2fc7e4e4fb3c57bb5d5123cc Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Mon, 27 Sep 2021 14:14:10 +0300 Subject: [PATCH 04/23] #4527 SEO optimise for openclassify.com (ahrefs.com) --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 80d03e20f..e7cb719fc 100644 --- a/composer.json +++ b/composer.json @@ -93,7 +93,8 @@ "filp/whoops": "~2.0", "fzaninotto/faker": "~1.4", "symfony/css-selector": "3.1.*", - "symfony/dom-crawler": "3.1.*" + "symfony/dom-crawler": "3.1.*", + "anomaly/installer-module": "~2.4.0" }, "repositories": [ { From e2d973625a72e25dc8efa9eca3a7a1930d7c3f9b Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Mon, 27 Sep 2021 15:26:51 +0300 Subject: [PATCH 05/23] #4527 SEO optimise for openclassify.com (ahrefs.com) --- .../visiosoft/base-theme/resources/views/partials/metadata.twig | 2 +- .../visiosoft/base-theme/resources/views/partials/metatags.twig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/default/visiosoft/base-theme/resources/views/partials/metadata.twig b/addons/default/visiosoft/base-theme/resources/views/partials/metadata.twig index 2ad8eb479..9be755125 100644 --- a/addons/default/visiosoft/base-theme/resources/views/partials/metadata.twig +++ b/addons/default/visiosoft/base-theme/resources/views/partials/metadata.twig @@ -19,7 +19,7 @@ {{ asset_add("theme.css", "visiosoft.theme.base::css/select2.css") }} {{ asset_add("theme.css", "visiosoft.theme.base::css/font-awesome.min.css") }} {{ asset_add("theme.css", "visiosoft.theme.base::css/intlTelInput.css") }} -{{ asset_style("visiosoft.theme.base::css/offline.scss") }} +{{ asset_add("theme.css", "visiosoft.theme.base::css/offline.scss") }} {{ asset_script('visiosoft.theme.base::js/visiosoft.js') }} diff --git a/addons/default/visiosoft/base-theme/resources/views/partials/metatags.twig b/addons/default/visiosoft/base-theme/resources/views/partials/metatags.twig index 017843463..dc63e9255 100644 --- a/addons/default/visiosoft/base-theme/resources/views/partials/metatags.twig +++ b/addons/default/visiosoft/base-theme/resources/views/partials/metatags.twig @@ -1,6 +1,5 @@ - Date: Tue, 28 Sep 2021 12:28:19 +0300 Subject: [PATCH 06/23] fix senfony/translation --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e7cb719fc..c0dac6852 100644 --- a/composer.json +++ b/composer.json @@ -84,7 +84,8 @@ "pusher/pusher-php-server": "^5.0", "simplepie/simplepie": "^1.5.0", "guzzlehttp/guzzle": "^7.3", - "visiosoft/connect-module": "^1.0" + "visiosoft/connect-module": "^1.0", + "symfony/translation": "v5.3.7" }, "replace": { "anomaly/streams-platform": "*" From 69ec5e96a8dbac4c53de509a762b0ab45df3ef12 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Tue, 28 Sep 2021 12:29:55 +0300 Subject: [PATCH 07/23] remove --- .../base-theme/resources/css/bootstrap-notify-visio.css | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css b/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css index c3530673a..ecb8f02a3 100644 --- a/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css +++ b/addons/default/visiosoft/base-theme/resources/css/bootstrap-notify-visio.css @@ -1,7 +1,6 @@ .swal2-container { display: grid; position: fixed; - z-index: 99999999999999; top: 0; right: 0; bottom: 0; From 41800f4dc6900f1d9e80656862a393bfea72ecea Mon Sep 17 00:00:00 2001 From: vedatakd Date: Tue, 28 Sep 2021 13:00:45 +0300 Subject: [PATCH 08/23] fix --- addons/default/visiosoft/advs-module/composer.json | 3 ++- composer.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/default/visiosoft/advs-module/composer.json b/addons/default/visiosoft/advs-module/composer.json index a028944ee..5cb075ab7 100644 --- a/addons/default/visiosoft/advs-module/composer.json +++ b/addons/default/visiosoft/advs-module/composer.json @@ -10,6 +10,7 @@ ] }, "require": { - "fruitcake/laravel-cors": "^2.0" + "fruitcake/laravel-cors": "^2.0", + "symfony/translation": "v5.3.7" } } diff --git a/composer.json b/composer.json index c0dac6852..e7cb719fc 100644 --- a/composer.json +++ b/composer.json @@ -84,8 +84,7 @@ "pusher/pusher-php-server": "^5.0", "simplepie/simplepie": "^1.5.0", "guzzlehttp/guzzle": "^7.3", - "visiosoft/connect-module": "^1.0", - "symfony/translation": "v5.3.7" + "visiosoft/connect-module": "^1.0" }, "replace": { "anomaly/streams-platform": "*" From e574e8d2bc4a649a8f39ca149e0b64701aa3d523 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Tue, 28 Sep 2021 16:01:56 +0300 Subject: [PATCH 09/23] fixed symfony/translation --- addons/default/visiosoft/advs-module/composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/default/visiosoft/advs-module/composer.json b/addons/default/visiosoft/advs-module/composer.json index 5cb075ab7..a028944ee 100644 --- a/addons/default/visiosoft/advs-module/composer.json +++ b/addons/default/visiosoft/advs-module/composer.json @@ -10,7 +10,6 @@ ] }, "require": { - "fruitcake/laravel-cors": "^2.0", - "symfony/translation": "v5.3.7" + "fruitcake/laravel-cors": "^2.0" } } From 3d63d10386938585b78a57f22cbe5ebde71d0f7a Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Tue, 28 Sep 2021 16:50:06 +0300 Subject: [PATCH 10/23] #4513 Hepsiemlak ads pages --- .../location-module/resources/views/new-ad/map.twig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig b/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig index c1d32a90f..ae07b99c4 100644 --- a/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig +++ b/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig @@ -90,6 +90,11 @@ var selectedAddressText = "{{ trans('visiosoft.module.location::field.selected') }}"; var chooseAddressText = '{{ trans("visiosoft.module.profile::field.choose.name") }}'; var chooseOptionTrans = '{{ trans("visiosoft.module.location::field.choose_an_option") }}'; + var default_country = "{{ setting_value('visiosoft.module.location::default_country') }}"; + var default_city = "{{ setting_value('visiosoft.module.location::default_city') }}"; + var default_district = "{{ setting_value('visiosoft.module.location::default_district') }}"; + var default_neighborhood = "{{ setting_value('visiosoft.module.location::default_neighborhood') }}"; + var default_village = "{{ setting_value('visiosoft.module.location::default_village') }}"; @@ -100,4 +105,4 @@ .location-map .nav-tabs .active { background-color: #e5e5e5; } - \ No newline at end of file + From 61248a4b3afd21c79ab6de1919b365372cc296b1 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Wed, 29 Sep 2021 17:42:20 +0300 Subject: [PATCH 11/23] fixed logo --- .../defaultadmin-theme/resources/css/theme.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/default/visiosoft/defaultadmin-theme/resources/css/theme.css b/addons/default/visiosoft/defaultadmin-theme/resources/css/theme.css index 650f916ba..70d52d052 100644 --- a/addons/default/visiosoft/defaultadmin-theme/resources/css/theme.css +++ b/addons/default/visiosoft/defaultadmin-theme/resources/css/theme.css @@ -2628,8 +2628,8 @@ body { display: none; } #login .login-container .logo svg, #login .login-container .logo img { - width: 45px; - max-height: 82px; + /*width: 45px;*/ + /*max-height: 82px;*/ fill: #ffffff; margin-top: -30px; vertical-align: middle; @@ -2668,8 +2668,8 @@ body { font-family: "Montserrat", sans-serif; } #login .logo svg, #login .logo img { - width: 45px; - max-height: 82px; + width: 8rem; + height: 8rem; margin-top: -30px; vertical-align: middle; object-fit: contain; @@ -2724,8 +2724,8 @@ body { margin-bottom: 2rem; } #login .login-container .logo svg, #login .login-container .logo img { - width: 55px; - max-height: 100px; + width: 8rem; + height: auto; } } @media (max-width: 767px) { From 30c1d170d754f3385b30c9d16e5cfad97760ace5 Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Thu, 30 Sep 2021 11:06:27 +0300 Subject: [PATCH 12/23] #4609 default country not working fast create --- .../src/Adv/Form/SimpleAdvFormHandler.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addons/default/visiosoft/advs-module/src/Adv/Form/SimpleAdvFormHandler.php b/addons/default/visiosoft/advs-module/src/Adv/Form/SimpleAdvFormHandler.php index 176bc5632..aae52965a 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/Form/SimpleAdvFormHandler.php +++ b/addons/default/visiosoft/advs-module/src/Adv/Form/SimpleAdvFormHandler.php @@ -2,6 +2,8 @@ use Anomaly\Streams\Platform\Ui\Form\FormBuilder; use Visiosoft\AdvsModule\Adv\Contract\AdvRepositoryInterface; +use Visiosoft\LocationModule\Country\Contract\CountryRepositoryInterface; +use Visiosoft\LocationModule\Country\CountryModel; class SimpleAdvFormHandler { @@ -11,12 +13,14 @@ class SimpleAdvFormHandler return; } - if (!$builder->getFormValue('created_by_id')) { - $builder->setFormValue('created_by_id', auth()->id()); - } - $builder->saveForm(); + if (!$builder->getFormValue('country_id')) { + $entry = $builder->getFormEntry(); + $entry->setAttribute('country_id', setting_value('visiosoft.module.location::default_country')); + $entry->save(); + } + $ad = $advRepository->find($builder->getFormEntryId()); if (!$builder->getFormValue('status') && $ad->status !== 'approved') { $ad->approve(); From 7466f07f7087f2e6e15ba89b3a5f37abbad3fda3 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Thu, 30 Sep 2021 17:30:20 +0300 Subject: [PATCH 13/23] fix certificate error file_get_content --- .../visiosoft/advs-module/src/Adv/AdvRepository.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php index cea08a2ce..7e9277833 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php @@ -312,7 +312,15 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface if (!$thumbnail AND $ext[1] != 'svg') { // Create thumbnail image - $image = Image::make(file_get_contents($adv->files[0]->make()->url())); + + $arrContextOptions=array( + "ssl"=>array( + "verify_peer"=>false, + "verify_peer_name"=>false, + ), + ); + + $image = Image::make(file_get_contents($adv->files[0]->make()->url(), false, stream_context_create($arrContextOptions))); $image->resize( null, setting_value('visiosoft.module.advs::thumbnail_height'), From 01a5968e80062d24b513ec22db98a461ad234b0d Mon Sep 17 00:00:00 2001 From: vedatakd Date: Thu, 30 Sep 2021 17:45:32 +0300 Subject: [PATCH 14/23] create my ads api --- .../advs-module/src/Adv/AdvApiCollection.php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 addons/default/visiosoft/advs-module/src/Adv/AdvApiCollection.php diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvApiCollection.php b/addons/default/visiosoft/advs-module/src/Adv/AdvApiCollection.php new file mode 100644 index 000000000..2503b7af6 --- /dev/null +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvApiCollection.php @@ -0,0 +1,11 @@ +model->userAdv() + ->where('advs_advs.finish_at', '>', date('Y-m-d H:i:s')); + + } +} From ec9dc00ac03bb03589353c22693c1f1400ff9d14 Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Fri, 1 Oct 2021 12:42:16 +0300 Subject: [PATCH 15/23] #1945 Post ad - location section --- .../resources/views/new-ad/new-create.twig | 2 +- .../resources/views/new-ad/map.twig | 31 ++++++++++--------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig index a6bd38144..49c3b36ec 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig @@ -287,7 +287,7 @@
{{ trans('visiosoft.module.advs::field.ad_location') }}
-
+
{% include "visiosoft.module.location::new-ad/map" %} +
-