Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
292dc6c
fix issue #700
oyeaussie Jun 6, 2025
4da32c5
update issue #573 - geodata to v2.6
oyeaussie Jun 8, 2025
3ffbf17
update issue #703
oyeaussie Jun 8, 2025
5ed7d3d
fix issue #709
oyeaussie Jun 14, 2025
e13781d
fix issue #710
oyeaussie Jun 14, 2025
c0dac60
update issue #706
oyeaussie Jun 14, 2025
6cca045
update issue #702
oyeaussie Jun 14, 2025
ff4eebd
update issue #706
oyeaussie Jun 14, 2025
a39c988
update issue #702
oyeaussie Jun 14, 2025
a2bd39d
fix issue #579
oyeaussie Jun 15, 2025
103a338
initial commit #708
oyeaussie Jun 15, 2025
47f5988
update issue #708
oyeaussie Jun 15, 2025
dc067ca
update issue #702
oyeaussie Jun 15, 2025
4c16522
update issue #579
oyeaussie Jun 15, 2025
e1c8efd
fix issue #711. Fix another bug with widgets not being stored properly
oyeaussie Jun 15, 2025
4f9be4a
Fix issue #712
oyeaussie Jun 18, 2025
218640d
update issue #708
oyeaussie Jun 18, 2025
724169b
update issue #702
oyeaussie Jun 18, 2025
f94bc40
initial commit #713
oyeaussie Jun 18, 2025
5285775
update issue #706
oyeaussie Jun 20, 2025
b849394
update issue #712
oyeaussie Jun 20, 2025
a205cf6
update issue #713
oyeaussie Jun 20, 2025
b9ac7c6
update issue #332
oyeaussie Jun 20, 2025
5bcc258
update issue #706 - fixed isEnabled method in geoCountries
oyeaussie Jun 20, 2025
f2840d6
update issue #708 - Added country id, added xth method for recurring …
oyeaussie Jun 21, 2025
016a843
update issue #713
oyeaussie Jun 21, 2025
b6025ea
update issue #708
oyeaussie Jun 21, 2025
42daded
fix issue #716
oyeaussie Jun 29, 2025
5944580
Fix issue #717
oyeaussie Jun 30, 2025
df003d7
update issue #717. We need to reset keys of found array, else we will…
oyeaussie Jun 30, 2025
472d263
fix issue #679 & issue #718
oyeaussie Jul 5, 2025
408b564
update issue #675 add generate release button
oyeaussie Jul 5, 2025
96aaa81
fix issue #675
oyeaussie Jul 7, 2025
f175657
fix issue #719. Applies come cosmetic fixes as well.
oyeaussie Jul 7, 2025
9c90002
update #675 added close button to changes.
oyeaussie Jul 7, 2025
1181845
fix issue #689
oyeaussie Jul 7, 2025
5c45a24
update #675, cosmetic fix
oyeaussie Jul 7, 2025
6afecad
fix issue #720, added correct condition to check for apptypes
oyeaussie Jul 7, 2025
0411ea2
update #675
oyeaussie Jul 7, 2025
6f5d35d
update issue #675, added sorting for module type
oyeaussie Jul 7, 2025
a3a1767
fix issue #721
oyeaussie Jul 10, 2025
1938a48
update issue #708
oyeaussie Jul 10, 2025
c4cf4e7
fix issue #722
oyeaussie Jul 10, 2025
4554199
update issue #332, cleaner way to set orphan via post.
oyeaussie Jul 10, 2025
187eed2
update issue #332, cosmetic fix for flatpickr width
oyeaussie Jul 10, 2025
20eb41c
update issue #332, cosmetic fix for dropzone.
oyeaussie Jul 10, 2025
f6cf512
update issue #332 - cleanup jsondata
oyeaussie Jul 10, 2025
3db48d4
update issue #332 - update docker.
oyeaussie Jul 10, 2025
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
33 changes: 32 additions & 1 deletion apps/Core/Components/Devtools/Modules/ModulesComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public function viewAction()
unset($modules['apptypes']);
unset($modules['bundles']);

$modifiedModules = [];
foreach ($modules as $moduleType => &$modulesTypeArr) {
if (isset($modulesTypeArr['childs']) && count($modulesTypeArr['childs']) > 0) {
foreach ($modulesTypeArr['childs'] as $childKey => &$child) {
Expand All @@ -195,12 +196,18 @@ public function viewAction()
if ($child['repoExists'] && !$child['isModified'] && $child['latestRelease']) {
unset($modules[$moduleType]['childs'][$childKey]);
}

if (isset($child['modified_files']) && count($child['modified_files']) > 0) {
$modifiedModules[$child['id']] = $child['modified_files'];
}
}
}
}

$this->view->modules = $modules;

$this->view->modifiedModules = $modifiedModules;

$this->view->pick('modules/changes');

return;
Expand Down Expand Up @@ -385,7 +392,7 @@ public function viewAction()

$module['id'] = $module['module_details']['id'];
} catch (\throwable $e) {
throw new \Exception($e->getMessage());
throw $e;
}
}
}
Expand Down Expand Up @@ -857,4 +864,28 @@ public function checkVersionAction()
$this->modulesPackage->packagesData->responseCode
);
}

public function reCalculateFilesHashAction()
{
$this->requestIsPost();

$this->modulesPackage->reCalculateFilesHash($this->postData(), false, false, false, true);

$this->addResponse(
$this->modulesPackage->packagesData->responseMessage,
$this->modulesPackage->packagesData->responseCode
);
}

public function getModifiedFilesHashAction()
{
$this->requestIsPost();

$this->modulesPackage->getModifiedFilesHash($this->postData());

$this->addResponse(
$this->modulesPackage->packagesData->responseMessage,
$this->modulesPackage->packagesData->responseCode
);
}
}
70 changes: 35 additions & 35 deletions apps/Core/Components/System/Geo/Cities/CitiesComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,46 +28,46 @@ public function viewAction()
if ($this->getData()['id'] != 0) {
$city = $this->basepackages->geoCities->getById($this->getData()['id']);

if (!$city) {
return $this->throwIdNotFound();
}

$this->view->city = $city;
} else {
$this->view->city = [];
}
$this->view->pick('cities/view');

$this->view->countries = $countriesArr;
$this->view->states = $statesArr;
return;
}
if (!$this->view->city) {
return $this->throwIdNotFound();
}

$countries = [];
$states = [];
$this->view->pick('cities/view');

if ($countriesArr) {
foreach ($countriesArr as $countriesKey => $country) {
$countries[$country['id']] = $country['name'] . ' (' . $country['id'] . ')';
}
}
$this->view->countries = [$countriesArr[$city['country_id']]];
$this->view->states = [$statesArr[$city['state_id']]];

if ($statesArr) {
foreach ($statesArr as $statesKey => $state) {
$states[$state['id']] = $state['name'] . ' (' . $state['id'] . ')';
}
return;
}

$controlActions =
[
// 'includeQ' => true,
'actionsToEnable' =>
[
'edit' => 'system/geo/cities',
'view' => 'system/geo/cities',
]
];

if ($this->request->isPost()) {
$countries = [];
$states = [];

if ($countriesArr) {
foreach ($countriesArr as $countriesKey => $country) {
$countries[$country['id']] = $country['name'] . ' (' . $country['id'] . ')';
}
}

if ($statesArr) {
foreach ($statesArr as $statesKey => $state) {
$states[$state['id']] = $state['name'] . ' (' . $state['id'] . ')';
}
}

$replaceColumns =
[
'country_id' =>
Expand Down Expand Up @@ -141,13 +141,13 @@ public function searchCityAction()
return;
}

$searchCities = $this->basepackages->geoCities->searchCities($searchQuery);

if ($searchCities) {
$this->view->responseCode = $this->basepackages->geoCities->packagesData->responseCode;
$this->basepackages->geoCities->searchCities($searchQuery);

$this->view->cities = $this->basepackages->geoCities->packagesData->cities;
}
$this->addResponse(
$this->basepackages->geoCities->packagesData->responseMessage,
$this->basepackages->geoCities->packagesData->responseCode,
$this->basepackages->geoCities->packagesData->responseData ?? []
);
} else {
$this->addResponse('Search Query Missing', 1);
}
Expand All @@ -164,13 +164,13 @@ public function searchPostCodeAction()
return;
}

$searchPostCodes = $this->basepackages->geoCities->searchPostCodes($searchQuery);
$this->basepackages->geoCities->searchPostCodes($searchQuery);

if ($searchPostCodes) {
$this->view->responseCode = $this->basepackages->geoCities->packagesData->responseCode;

$this->view->postCodes = $this->basepackages->geoCities->packagesData->postCodes;
}
$this->addResponse(
$this->basepackages->geoCities->packagesData->responseMessage,
$this->basepackages->geoCities->packagesData->responseCode,
$this->basepackages->geoCities->packagesData->responseData ?? []
);
} else {
$this->addResponse('Search Query Missing', 1);
}
Expand Down
81 changes: 25 additions & 56 deletions apps/Core/Components/System/Geo/Countries/CountriesComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Apps\Core\Packages\Adminltetags\Traits\DynamicTable;
use System\Base\BaseComponent;
use System\Base\Providers\BasepackagesServiceProvider\Packages\Geo\GeoExtractData;

class CountriesComponent extends BaseComponent
{
Expand All @@ -26,46 +25,26 @@ public function viewAction()
if ($this->getData()['id'] != 0) {
$country = $this->basepackages->geoCountries->getById($this->getData()['id']);

if (!$country) {
return $this->throwIdNotFound();
}

$this->view->country = $country;
} else {
$this->view->country = [];
}

if (!$this->view->country) {
return $this->throwIdNotFound();
}

$this->view->pick('countries/view');

return;
}

$controlActions =
[
// 'includeQ' => true,
'actionsToEnable' =>
[
'edit' => 'system/geo/countries',
]
];

// $dtAdditionControlButtons =
// [
// 'includeId' => true,
// // 'includeQ' => true, //Only true when not adding /q/ in link below.
// 'buttons' => [
// 'states' => [
// 'title' => 'states',
// 'icon' => 'map-marked',
// 'link' => $this->links->url('system/geo/q/type/states')
// ],
// 'cities' => [
// 'title' => 'cities',
// 'icon' => 'map-marked-alt',
// 'link' => $this->links->url('system/geo/q/type/cities')
// ]
// ]
// ];

$replaceColumns =
[
'installed' =>
Expand Down Expand Up @@ -97,7 +76,6 @@ public function viewAction()
null,
$replaceColumns,
'name',
// $dtAdditionControlButtons
);

$this->view->pick('countries/list');
Expand All @@ -118,6 +96,7 @@ public function apiViewAction()
return $this->throwIdNotFound();
}
}

$this->addResponse('Ok', 0, ['data' => $geoCountry]);

return;
Expand All @@ -132,29 +111,12 @@ public function apiViewAction()
['name', 'capital', 'currency', 'installed', 'enabled']
);

if ($data) {
$this->addResponse('Ok', 0, ['data' => $data]);
}
$this->addResponse('Ok', 0, ['data' => $data ?? []]);

return;
}
}

/**
* @acl(name=add)
*/
public function addAction()
{
$this->requestIsPost();

$this->geoCountries->addCountry($this->postData());

$this->addResponse(
$this->geoCountries->packagesData->responseMessage,
$this->geoCountries->packagesData->responseCode
);
}

/**
* @acl(name=update)
*/
Expand All @@ -178,13 +140,22 @@ public function installAction()

$this->addResponse(
$this->geoCountries->packagesData->responseMessage,
$this->geoCountries->packagesData->responseCode
$this->geoCountries->packagesData->responseCode,
$this->geoCountries->packagesData->responseData ?? []
);
}

public function uninstallAction()
{
//
$this->requestIsPost();

$this->geoCountries->uninstallCountry($this->postData());

$this->addResponse(
$this->geoCountries->packagesData->responseMessage,
$this->geoCountries->packagesData->responseCode,
$this->geoCountries->packagesData->responseData ?? []
);
}

public function searchCountryAction()
Expand All @@ -198,17 +169,15 @@ public function searchCountryAction()
return;
}

$searchCountries = $this->geoCountries->searchCountries($searchQuery);
$countries = $this->geoCountries->searchCountries($searchQuery);

if ($searchCountries) {
$this->view->responseCode = $this->geoCountries->packagesData->responseCode;
$countries = msort($countries, 'id');

$countries = $this->geoCountries->packagesData->countries;

$countries = msort($countries, 'id');

$this->view->countries = $countries;
}
$this->addResponse(
$this->geoCountries->packagesData->responseMessage,
$this->geoCountries->packagesData->responseCode,
['countries' => $countries] ?? []
);
} else {
$this->addResponse('Search Query Missing', 1);
}
Expand Down
Loading