Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
059f0ac
update issue #753
oyeaussie Apr 13, 2026
f959aac
fix issue #754
oyeaussie Apr 13, 2026
ab6c254
fix issue #755
oyeaussie Apr 13, 2026
7387ea7
initial commit #753
oyeaussie Apr 14, 2026
d2d552a
update #753
oyeaussie Apr 14, 2026
80a3644
update #749 & #753
oyeaussie Apr 15, 2026
36ef30b
update issue #752
oyeaussie Apr 15, 2026
8a5172e
refactor #705
oyeaussie Apr 15, 2026
b579c62
update #753
oyeaussie Apr 15, 2026
ced3d73
update issue #753
oyeaussie Apr 15, 2026
a839490
update issue #754
oyeaussie Apr 15, 2026
a80959e
update #753
oyeaussie Apr 16, 2026
daaef43
update issue #749
oyeaussie Apr 16, 2026
757634e
fix issue #756
oyeaussie Apr 19, 2026
66054d0
update #753
oyeaussie Apr 19, 2026
b247c82
update #756 move breadcrumb to separate file
oyeaussie Apr 19, 2026
47c00e4
update #756
oyeaussie Apr 19, 2026
0537fa7
update issue #332 - Update jquery, bootstrap and cleanup html files.
oyeaussie Apr 29, 2026
8262422
update issue #332 - Revert BS to older version as its not compatible …
oyeaussie Apr 29, 2026
5e36870
update #749 - Add JS check, changed getwidgetcontent to single curly …
oyeaussie May 2, 2026
9898c22
update #749 - cleanup option to process volt inside html content of p…
oyeaussie May 2, 2026
8c25d41
update issue #753, check for JSON data submitted via form.
oyeaussie May 2, 2026
9dd5b35
fix issue #757
oyeaussie May 2, 2026
31184c3
update #752 - add condition to add menu and widget for core component…
oyeaussie May 9, 2026
d7eed89
fix issue #759
oyeaussie May 9, 2026
6b82aff
fix issue #764
oyeaussie May 11, 2026
611703c
update #573 - update geo data. Add User-Agent for Timezone extraction…
oyeaussie May 12, 2026
27d25cd
initial commit #762
oyeaussie May 12, 2026
ac9994f
initial commit #763
oyeaussie May 12, 2026
85256dc
Fix issue #765. Also fixed the accounts relationship data passing inc…
oyeaussie May 12, 2026
a998fc4
update #332
oyeaussie May 12, 2026
0960652
update issue #332 - Get app info if missing.
oyeaussie May 12, 2026
42c33ea
update #753 - re-add the correct condition to only show widgets for s…
oyeaussie May 13, 2026
048e1fd
update #763
oyeaussie May 13, 2026
974ac7e
update #762
oyeaussie May 13, 2026
61c6805
fix issue #766
oyeaussie May 13, 2026
929d1a5
fix issue #767
oyeaussie May 14, 2026
12437dc
initial commit #768
oyeaussie May 14, 2026
6797913
fix issue #769
oyeaussie May 14, 2026
c107fc9
update #768
oyeaussie May 14, 2026
740fbb5
update #762
oyeaussie May 14, 2026
dfaf151
Fix issue #770
oyeaussie May 20, 2026
735d85d
Initial commit #771
oyeaussie May 20, 2026
80dcdde
update issue #770
oyeaussie May 20, 2026
ae84da4
update #768
oyeaussie May 20, 2026
23f33d9
update #332
oyeaussie May 20, 2026
98899e9
fix issue #772
oyeaussie May 22, 2026
1bd47da
fix issue #773
oyeaussie May 22, 2026
d1617d3
fix issue #774
oyeaussie May 23, 2026
b9840fd
Fix issue #775
oyeaussie May 23, 2026
37647c7
Fix issue #776
oyeaussie May 23, 2026
c4d68d3
Fix issue #777
oyeaussie May 23, 2026
8496d99
fix issue #778. Found this issue while troubleshooting slow performan…
oyeaussie May 23, 2026
445c753
Fix issue #779
oyeaussie May 23, 2026
781f321
update issue #775
oyeaussie May 24, 2026
52de530
fix minor database issue #779
oyeaussie May 24, 2026
c5ec615
update issue #771
oyeaussie May 24, 2026
0008c00
update issue #714, fix quick filters
oyeaussie May 24, 2026
68ff933
fix issue #780. Also fixed underlying bug with setup not being comple…
oyeaussie May 24, 2026
662c62f
Fix issue #760. When new app is created, we do not need to modify its…
oyeaussie May 24, 2026
94479f1
Issue #471. Initial Commit.
oyeaussie May 24, 2026
bd7121c
update #471. Fix bug with api clients
oyeaussie May 24, 2026
930fa51
Update conditions for #775
oyeaussie May 25, 2026
2b03e9d
fix issue #781
oyeaussie May 25, 2026
1fca01e
update #332
oyeaussie May 25, 2026
58ddd53
update #774
oyeaussie May 25, 2026
693ea00
fix issue #782
oyeaussie May 26, 2026
2831c92
update #714, fix quick filters bug where quick filter is sending unde…
oyeaussie May 26, 2026
1c46d19
fix issue #783
oyeaussie May 26, 2026
1b830e7
fix issue #784
oyeaussie May 26, 2026
34bdf0e
Fix issue #785. headers were set before the setFileToSend method was …
oyeaussie May 26, 2026
ff258c4
fix issue #786
oyeaussie May 27, 2026
403ec9f
update issue #785, added indexing for uuid and orphans
oyeaussie May 27, 2026
3440948
update #786
oyeaussie May 27, 2026
866556b
update issue #786. Added check for include core modules.
oyeaussie May 27, 2026
2ae42a4
Fix issue #787
oyeaussie May 27, 2026
e8c8cce
fix issue #788. add array merge to showModuleSettingsData. Added defa…
oyeaussie May 28, 2026
d1dd186
fix issue #789
oyeaussie May 28, 2026
90c1c76
fix issue #790
oyeaussie May 28, 2026
c884d91
fix issue #791
oyeaussie May 28, 2026
fd208f3
Update issue templates
oyeaussie May 30, 2026
ce7e1d2
fix issue #792. Added cc, bcc and attachments.
oyeaussie May 30, 2026
3b8066a
update #792
oyeaussie May 30, 2026
05eb036
update #792
oyeaussie May 30, 2026
4666343
update #792, fix list buttons.
oyeaussie May 30, 2026
885fc99
initial commit #793. Rewrite methods for activity logs.
oyeaussie May 30, 2026
1f12e2d
fix issue #794
oyeaussie May 31, 2026
ecdb39c
update issue #793. Added easy access option for activity logs via for…
oyeaussie May 31, 2026
eea7f3d
Fix issue #795. also fix bug with button a link to open content on a …
oyeaussie May 31, 2026
eb6bcb4
update #793, Remove fields that are null or empty on activity log tha…
oyeaussie May 31, 2026
2579e74
fix issue #796
oyeaussie May 31, 2026
ba6c2d8
update #792, fix issue with CC and BCC check.
oyeaussie May 31, 2026
a7a3dff
fix bug with subviews not showing up correctly. #786
oyeaussie May 31, 2026
b7b11a5
fix issue #797
oyeaussie May 31, 2026
96012e7
update #796. Fixed condition lookup for hasOneThrough and hasManyThro…
oyeaussie May 31, 2026
3e69be0
initial commit #798
oyeaussie Jun 1, 2026
9a144cb
update #798, added check if child is accessed first which should lock…
oyeaussie Jun 1, 2026
456391e
update #798, set mutex timeout
oyeaussie Jun 2, 2026
098adf3
update #798. we force release lock when we close the form. The mechan…
oyeaussie Jun 2, 2026
130cb06
update #798. Update adminlte card to show warning instead of primary …
oyeaussie Jun 2, 2026
248176e
update #798, release mutex on update.
oyeaussie Jun 2, 2026
592be96
update #798. Added check for mutex when other user tries to force upd…
oyeaussie Jun 2, 2026
64cec08
update #786. Fix bug with coremodules select redirecting to previous …
oyeaussie Jun 2, 2026
a0d3bd3
update #798. Added mutex component.
oyeaussie Jun 2, 2026
00c09c9
update #798. add unlock button
oyeaussie Jun 2, 2026
d76254d
Initial commit #799
oyeaussie Jun 2, 2026
a2550cb
Fix issue #800
oyeaussie Jun 3, 2026
76abdaf
update #800. Change attempt method to login for better clarity.
oyeaussie Jun 3, 2026
5780af4
Issue #801, initial commit.
oyeaussie Jun 3, 2026
d859fbb
update #801 fix check for id cookie.
oyeaussie Jun 3, 2026
3fdcf97
Fix issue #803. Also fixed some minor bugs with notification mute/unm…
oyeaussie Jun 3, 2026
539f634
update #798, cosmetic fix.
oyeaussie Jun 3, 2026
534914a
update #803. Fix minor bugs with profile not showing all components/p…
oyeaussie Jun 3, 2026
362d790
fix issue #804
oyeaussie Jun 3, 2026
4752182
update #786, fix redirect on bulk edit back to previous app type
oyeaussie Jun 4, 2026
e211bb2
fix issue #805
oyeaussie Jun 4, 2026
d024383
update #803. Fix issue where notification is being sent to the trigge…
oyeaussie Jun 4, 2026
8fc699f
update #798, Generate mutex if user has update permission. When movin…
oyeaussie Jun 5, 2026
d1b27c7
update #793. Move setActivityLogsPackage to be initialized during com…
oyeaussie Jun 5, 2026
b2fa398
update #803. Notification can be enabled via component initialization…
oyeaussie Jun 5, 2026
0804463
update #763, move address to addresses for profile
oyeaussie Jun 5, 2026
5d3a688
Fix bug #803. Check if route is for notification in checkshowallfilters.
oyeaussie Jun 5, 2026
b7a1783
fix issue #806
oyeaussie Jun 6, 2026
7fd2bfa
update #763, added post link so addresses can be updated on add/updat…
oyeaussie Jun 7, 2026
026f784
update #762. Added post link to update contacts via add/update/remove…
oyeaussie Jun 7, 2026
6477fc0
update #774, remove disabled if there is an error with bulk update.
oyeaussie Jun 7, 2026
cf41891
update #762, add option to exclude secondary email.
oyeaussie Jun 7, 2026
3552ffc
update #762, cleanup
oyeaussie Jun 7, 2026
aca321a
fix issue #807
oyeaussie Jun 7, 2026
9f345f5
fix issue #808
oyeaussie Jun 7, 2026
45b8b39
Fix issue #809. The issue is because of missing DB in container durin…
oyeaussie Jun 7, 2026
996e90c
Update #803, Added option to pass notification name field. Fixed noti…
oyeaussie Jun 8, 2026
2dfe193
update #808, cosmetic fixes.
oyeaussie Jun 8, 2026
91bde76
update #807. Fix issue with sequence array failing.
oyeaussie Jun 8, 2026
a6acc79
update #774 - Add bulk select/deselect buttons to datatable.
oyeaussie Jun 8, 2026
b7b02f3
update #774, fix bug with only 1 ID sent when filtered via select all
oyeaussie Jun 8, 2026
75cba55
fix issue #810
oyeaussie Jun 8, 2026
e6d9635
update #784, Move js for contact reference from include name.
oyeaussie Jun 8, 2026
960f828
fix issue #811
oyeaussie Jun 8, 2026
74a6dd4
update #789 add condition.
oyeaussie Jun 8, 2026
784bec4
update #793, Fix formatting of json data. if the field is json, you n…
oyeaussie Jun 9, 2026
05ecfc9
update #798. Fix issue where recalling same package_row_id entry afte…
oyeaussie Jun 10, 2026
2728b93
update #798. Fix issue where the user still sees warning even if its …
oyeaussie Jun 10, 2026
4dac91b
update #332, fix background color for select2
oyeaussie Jun 10, 2026
de3c5ce
Fix issue #812
oyeaussie Jun 11, 2026
b487252
update #803. Do not send notification if response code is not 0
oyeaussie Jun 11, 2026
6f64f73
update #332 - Add helper option on checkCtype to return data without …
oyeaussie Jun 11, 2026
2f58d52
update #766
oyeaussie Jun 11, 2026
f4c1657
fix issue #814
oyeaussie Jun 11, 2026
1f5db52
Update #786. Fix fields not being valid if generate release button wa…
oyeaussie Jun 12, 2026
8b0a065
update #332, fix json related errors for modules queue. If there is s…
oyeaussie Jun 12, 2026
1da68c6
fix issue #816
oyeaussie Jun 12, 2026
999aa2e
fix issue #818
oyeaussie Jun 12, 2026
1eb161d
update #762 - fix croppie cosmetic bug.
oyeaussie Jun 13, 2026
df4da9f
update #332. add redirect rules to htaccess.example
oyeaussie Jun 13, 2026
edd16d3
update #429, Fix bug. We dont know app in cli env.
oyeaussie Jun 13, 2026
333500f
update #332 - Add repository analytics to readme.
oyeaussie Jun 13, 2026
2de08b1
initial commit #819
oyeaussie Jun 13, 2026
0480313
update #819, Fix bug with getting CSRF token error while uploading fi…
oyeaussie Jun 14, 2026
2a692ed
update #819. Remove baz assets. Changed the way assets are added to t…
oyeaussie Jun 14, 2026
d4e084b
update #819. Tested assets image with multiple retina images, see iss…
oyeaussie Jun 14, 2026
ce945ef
initial commit #820
oyeaussie Jun 14, 2026
ef05848
Fix issue #821
oyeaussie Jun 14, 2026
8a12b10
update #821
oyeaussie Jun 14, 2026
01ae55e
Initial commit #822
oyeaussie Jun 15, 2026
fc9f592
update #822. Added condition to check where the call is coming from, …
oyeaussie Jun 15, 2026
c516778
update #822. Added call id information to job. Added option in task t…
oyeaussie Jun 15, 2026
507c7f3
fix issue #823
oyeaussie Jun 16, 2026
31a1906
fix issue #824
oyeaussie Jun 16, 2026
343bd34
update #822. Fixed api calls not being registered correctly in job. A…
oyeaussie Jun 16, 2026
d2790a5
update #822, Fixed raw command execution.
oyeaussie Jun 17, 2026
3ddd4eb
update #822, remove psef and added hello world. update grep command
oyeaussie Jun 17, 2026
c888969
cleanup #822
oyeaussie Jun 17, 2026
73aa3d9
fix issue #802, #238
oyeaussie Jun 17, 2026
92c40be
update #802. Remove single page form
oyeaussie Jun 17, 2026
110e706
update #819. Fixed bug with image not showing up in dropzone and inco…
oyeaussie Jun 17, 2026
f6171c1
update #819, fix bug with wrong image being sent after cache link add…
oyeaussie Jun 17, 2026
5a9501a
initial commit #95
oyeaussie Jun 17, 2026
95b28a9
initial commit #825
oyeaussie Jun 18, 2026
f9e2a27
fix issue #827
oyeaussie Jun 18, 2026
fcf812d
update issue #762. Added orphan flag to files that are deletes via co…
oyeaussie Jun 18, 2026
8549ee2
fix issue #828
oyeaussie Jun 18, 2026
31f47e0
update #95
oyeaussie Jun 18, 2026
4f7b453
update #827, fix correct package_class
oyeaussie Jun 18, 2026
cc4f55d
update #825, fix cross reference for accounts and profiles
oyeaussie Jun 18, 2026
08648f4
update #825, fix cross reference for mutex
oyeaussie Jun 18, 2026
f44ac76
update #825 fix cross reference for mutex
oyeaussie Jun 18, 2026
7792ee8
update #803, fix issue with key not matching packageslinks
oyeaussie Jun 18, 2026
82a185f
update #825 fix cross reference of activitylogs
oyeaussie Jun 18, 2026
6585e40
update #825 fix cross reference for activitylogs
oyeaussie Jun 19, 2026
dc68f51
update #95, housekeeping for activity logs
oyeaussie Jun 19, 2026
048da54
update #825 fix cross reference of tags and geo holidays
oyeaussie Jun 19, 2026
436930b
update #95, housekeeping for tags
oyeaussie Jun 19, 2026
1750789
update #825, fix bug with holidays not being update.
oyeaussie Jun 19, 2026
09e3e11
update #820, add missing favicon
oyeaussie Jun 19, 2026
c179196
update #714, only store env for view requests
oyeaussie Jun 19, 2026
7e0c5ef
fix issue #829. Removed condition overwrite from post data. Added con…
oyeaussie Jun 19, 2026
14adfec
update #714, added env to profiles, so users can remove the env params.
oyeaussie Jun 19, 2026
bb08260
update #825, added file package information to core db and security f…
oyeaussie Jun 19, 2026
aa4afba
update #95, clean stale sessions
oyeaussie Jun 19, 2026
e67c2d1
update #95, register housekeeping at setup. Fixed minor bugs with job…
oyeaussie Jun 19, 2026
10f3f06
update #822, add exception for email queue
oyeaussie Jun 20, 2026
dd11968
update #822, fix issue with everyxseconds job not logging correct time.
oyeaussie Jun 20, 2026
ca82bf1
update #822, fix termination of work method in case there is an error…
oyeaussie Jun 20, 2026
6f8ecc1
update #822, fix termination of exec in case there is an error
oyeaussie Jun 20, 2026
9342688
fix issue #815
oyeaussie Jun 20, 2026
a1d7c68
update #95. Added check for pointer files and delete db entry if the …
oyeaussie Jun 20, 2026
ec9799c
fix issue #831
oyeaussie Jun 20, 2026
c662741
update #831. add email results to job
oyeaussie Jun 20, 2026
0dee71c
update #831, fix condition to show task running while we are emailing…
oyeaussie Jun 20, 2026
e61e7cb
update #831, update job status when email is running.
oyeaussie Jun 20, 2026
0696e6a
initial commit #833
oyeaussie Jun 20, 2026
c1f4f1d
fix issue #832
oyeaussie Jun 20, 2026
5d5e77d
update #332
oyeaussie Jun 20, 2026
6d9873d
update #833
oyeaussie Jun 21, 2026
a55de2b
update #833
oyeaussie Jun 21, 2026
76b3664
initial commit #830
oyeaussie Jun 21, 2026
3805dac
update #830
oyeaussie Jun 21, 2026
9957fe3
update #830
oyeaussie Jun 21, 2026
cfa7929
update #830 add backup process to tasks during setup.
oyeaussie Jun 21, 2026
252684c
update #95. Add check for core updates task during setup.
oyeaussie Jun 21, 2026
b773387
update #95
oyeaussie Jun 21, 2026
fc01892
update #832, add logger as optional as it fails during setup.
oyeaussie Jun 21, 2026
7d8a87c
update #95, added condition to check for correct response code and up…
oyeaussie Jun 21, 2026
553ce9f
fix issue #834
oyeaussie Jun 21, 2026
14daff3
fix issue #835
oyeaussie Jun 21, 2026
27b4c1a
initial commit #836
oyeaussie Jun 21, 2026
c85c832
update #836
oyeaussie Jun 21, 2026
56ddd70
update #544
oyeaussie Jun 21, 2026
d5d38ac
fix issue #837
oyeaussie Jun 22, 2026
12f21e1
initial commit #836
oyeaussie Jun 22, 2026
fe50670
update #822
oyeaussie Jun 22, 2026
84f72f7
update #836
oyeaussie Jun 22, 2026
cba2939
update #836
oyeaussie Jun 22, 2026
7510ca8
update #836
oyeaussie Jun 22, 2026
8ed2fb2
update #835
oyeaussie Jun 22, 2026
03ec490
update #834
oyeaussie Jun 22, 2026
bd69839
fix issue #838
oyeaussie Jun 22, 2026
8b9b6a0
initial commit #662
oyeaussie Jun 23, 2026
bf21b60
update #662
oyeaussie Jun 23, 2026
f3246c5
update #662
oyeaussie Jun 23, 2026
3fe27b9
update #662
oyeaussie Jun 23, 2026
2115f32
update #662, add pid for call.
oyeaussie Jun 23, 2026
c9a294a
update #332. Cleanup
oyeaussie Jun 23, 2026
b3241f5
update branding for core #819
oyeaussie Jun 23, 2026
efa13fa
initial commit #813
oyeaussie Jun 23, 2026
3cb1575
update #813
oyeaussie Jun 23, 2026
8cb5c9a
update #95, fixed bug with not able to register tasks for mysql
oyeaussie Jun 24, 2026
2782ecc
update #823, index fields size needs to be dropped as mysql rejects t…
oyeaussie Jun 24, 2026
85cb5b9
update #807. fix issue with mysql not able to register menu
oyeaussie Jun 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug, P3
assignees: oyeaussie
type: Bug

---


11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement, P3
assignees: oyeaussie
type: Feature

---


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
public/1/*
public/2/*
public/*
!public/ping.ico
!public/core/
private/*
*.sublime-project
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SP Framework - Core

Caution!!! - Do not use in production. A man from downunder is still working on it...

![Alt](https://repobeats.axiom.co/api/embed/adfc9873368b036fb044bd21afb3cfae6cc5a11b.svg "Repository Analytics")
79 changes: 59 additions & 20 deletions apps/Core/Components/Apps/AppsComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,44 @@ public function viewAction()
return $this->throwIdNotFound();
}

if (!isset($app['default_component']) ||
isset($app['default_component']) && $app['default_component'] == '0'
$dashboard = $this->modules->components->getComponentByNameForAppType('dashboards', $app['app_type']);
$home = $this->modules->components->getComponentByNameForAppType('home', $app['app_type']);
$errors = $this->modules->components->getComponentByNameForAppType('errors', $app['app_type']);

if (!isset($app['default_component_guests']) ||
isset($app['default_component_guests']) && $app['default_component_guests'] == '0'
) {
if ($app['app_type'] === 'core' || $app['app_type'] === 'dash') {
$dashboard = $this->modules->components->getComponentByNameForAppType('dashboards', $app['app_type']);

if ($dashboard) {
$app['default_component'] = $dashboard['id'];
$app['default_component_guests'] = $dashboard['id'];
}
} else {
$home = $this->modules->components->getComponentByNameForAppType('home', $app['app_type']);
if ($home) {
$app['default_component_guests'] = $home['id'];
}
}
}

if (!isset($app['default_component_users']) ||
isset($app['default_component_users']) && $app['default_component_users'] == '0'
) {
if ($app['app_type'] === 'core' || $app['app_type'] === 'dash') {
if ($dashboard) {
$app['default_component_users'] = $dashboard['id'];
}
} else {
if ($home) {
$app['default_component'] = $home['id'];
$app['default_component_users'] = $home['id'];
}
}
}

if (!isset($app['errors_component']) ||
isset($app['errors_component']) && $app['errors_component'] == '0'
) {
$errors = $this->modules->components->getComponentByNameForAppType('errors', $app['app_type']);

if ($errors) {
$app['errors_component'] = $errors['id'];
} else {
$home = $this->modules->components->getComponentByNameForAppType('home', $app['app_type']);

if ($home) {
$app['errors_component'] = $home['id'];
}
Expand Down Expand Up @@ -121,7 +131,27 @@ public function viewAction()
$this->view->menuBaseStructure = $this->view->modulesMenus = [];
}

$selectGuestComponents = [];
$selectUserComponents = [];
$this->view->dashboardComponentId = 0;
$this->view->pageComponentId = 0;
foreach ($componentsArr as $key => &$componentValue) {
if ($app['app_type'] === 'core' || $app['app_type'] === 'dash') {
if ($componentValue['route'] !== 'home') {
$selectUserComponents[$key] = $componentValue;
}
$selectGuestComponents[$key] = $componentValue;
} else {
$selectUserComponents[$key] = $componentValue;
$selectGuestComponents[$key] = $componentValue;
}

if ($componentValue['route'] === 'dashboards') {
$this->view->dashboardComponentId = $componentValue['id'];
}
if ($componentValue['route'] === 'pages') {
$this->view->pageComponentId = $componentValue['id'];
}
if ($componentValue['apps']) {
if (is_string($componentValue['apps'])) {
$componentValue['apps'] = $this->helper->decode($componentValue['apps'], true);
Expand All @@ -132,10 +162,10 @@ public function viewAction()
}
}

if (isset($dashboard) && $dashboard) {
if ($dashboard['id'] == $componentValue['id']) {
$componentValue['apps'][$app['id']]['enabled'] = true;
}
if ($dashboard &&
$dashboard['id'] == $componentValue['id']
) {
$componentValue['apps'][$app['id']]['enabled'] = true;
}

if ($componentValue['settings']) {
Expand Down Expand Up @@ -164,7 +194,7 @@ public function viewAction()
}
}

$components[$key] = $componentValue;
$components[$componentValue['id']] = $componentValue;
}

//Middlewares
Expand Down Expand Up @@ -245,7 +275,9 @@ public function viewAction()
}
}

$this->view->components = msort($components, 'name');
$this->view->components = msort(array: $components, key: 'name', preserveKey: true);
$this->view->selectUserComponents = $selectUserComponents;
$this->view->selectGuestComponents = $selectGuestComponents;
$this->view->middlewares = msort($middlewares, 'sequence');
$this->view->views = msort($views, 'name');
$this->view->mandatoryComponents = $mandatoryComponents;
Expand All @@ -266,6 +298,7 @@ public function viewAction()
$this->view->acceptableUsernames = $this->apps->getAcceptableUsernamesForAppId();

$this->view->dashboards = $this->basepackages->dashboards->init()->getDashboardsByAppType($app['app_type']);
$this->view->pages = $this->basepackages->pages->init()->pages;
} else {
$this->view->app = null;
$domains = $this->domains->domains;
Expand Down Expand Up @@ -367,7 +400,9 @@ public function addAction()
$this->apps->packagesData->responseData
);

$this->addToNotification('add', 'Added new app ' . $this->postData()['name'], null, $this->apps->packagesData->last);
if ($this->apps->packagesData->responseCode === 0) {
$this->addToNotification('add', 'Added new app ' . $this->postData()['name'], null, $this->apps->packagesData->last);
}
}

/**
Expand All @@ -386,7 +421,9 @@ public function updateAction()
$this->apps->packagesData->responseCode
);

$this->addToNotification('update', 'Updated app', null, $this->apps->packagesData->last ?? []);
if ($this->apps->packagesData->responseCode === 0) {
$this->addToNotification('update', 'Updated app', null, $this->apps->packagesData->last ?? []);
}
}

/**
Expand All @@ -405,7 +442,9 @@ public function removeAction()
$this->apps->packagesData->responseCode
);

$this->addToNotification('remove', 'Removed app with ID ' . $this->postData()['id']);
if ($this->apps->packagesData->responseCode === 0) {
$this->addToNotification('remove', 'Removed app with ID ' . $this->postData()['id']);
}
}

public function getFiltersAction()
Expand Down
2 changes: 1 addition & 1 deletion apps/Core/Components/Auth/AuthComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function loginAction()
{
$this->requestIsPost();

$auth = $this->access->auth->attempt($this->postData());
$auth = $this->access->auth->login($this->postData());

$this->addResponse(
$this->access->auth->packagesData->responseMessage,
Expand Down
25 changes: 18 additions & 7 deletions apps/Core/Components/Dashboards/DashboardsComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,25 @@ class DashboardsComponent extends BaseComponent
public function viewAction()
{
if (isset($this->getData()['widgets'])) {
$this->getNewToken();

if ($this->getData()['widgets'] == 'info') {
return $this->basepackages->widgets->getWidget($this->getData()['id'], 'info')['info'];
} else if ($this->getData()['widgets'] == 'content') {//This is when we add the widget via list of widgets in dashboard.
$dashboardWidget = $this->basepackages->dashboards->getDashboardWidgetById($this->getData()['id'], $this->getData()['did']);

$dashboardWidget['getWidgetData'] = true;
if ($dashboardWidget) {
$dashboardWidget['getWidgetData'] = true;

$dashboardWidgetContent = $this->basepackages->widgets->getWidget($this->getData()['wid'], 'content', $dashboardWidget);

return $this->basepackages->widgets->getWidget($this->getData()['wid'], 'content', $dashboardWidget)['content'];
if (isset($dashboardWidgetContent['content'])) {
return $dashboardWidgetContent['content'];
}
}

//Remove Widget as it might be stale as the source content would have been deleted.
$this->basepackages->dashboards->removeWidgetFromDashboard(['dashboard_id' => $this->getData()['did'], 'id' => $this->getData()['id']]);

return false;
}
} else {
if (is_string($this->app['settings'])) {
Expand All @@ -34,7 +43,7 @@ public function viewAction()
if ($this->getData()['id'] != 0) {
$dashboardId = $this->getData()['id'];

$dashboard = $this->basepackages->dashboards->getDashboardById($dashboardId, true, false);
$dashboard = $this->basepackages->dashboards->getDashboardById($dashboardId, true);

if (isset($this->app['settings']['defaultDashboard'])) {
if ($this->app['settings']['defaultDashboard'] == $dashboard['id']) {
Expand Down Expand Up @@ -134,9 +143,11 @@ public function viewAction()

$this->view->dashboards = $dashboards;

$this->view->dashboard = $this->basepackages->dashboards->getDashboardById($dashboardId, true, false);
$this->view->dashboard = $this->basepackages->dashboards->getDashboardById($dashboardId, true);

$this->view->widgetsTree = $this->basepackages->widgets->getWidgetsTree('dashboards');

$this->view->widgetsTree = $this->basepackages->widgets->getWidgetsTree();
$this->getNewToken();//We need this token as we initiate a getDashboardWidgets();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public function processAction()
$success = false;

if (isset($this->postData()['geo']) && $this->postData()['geo'] == 'true') {
$success = $this->geoExtractDataPackage->downloadGeoData();
$success = $this->geoExtractDataPackage->processGeoData();
$success = $this->geoExtractDataPackage->downloadGeoCountriesData();
$success = $this->geoExtractDataPackage->downloadGeoPostcodeData();
$success = $this->geoExtractDataPackage->processGeoCountriesData();
}

if (isset($this->postData()['timezone']) && $this->postData()['timezone'] == 'true') {
Expand Down Expand Up @@ -85,13 +86,18 @@ protected function registerProgressMethods()
$methods = array_merge($methods,
[
[
'method' => 'downloadGeoData',
'text' => 'Download Geo Location Data...',
'method' => 'downloadGeoCountriesData',
'text' => 'Download Geo Location Countries Data...',
'remoteWeb' => true
],
[
'method' => 'processGeoData',
'text' => 'Process Geo Location Data...'
'method' => 'downloadGeoPostcodeData',
'text' => 'Download Geo Location Postcode Data...',
'remoteWeb' => true
],
[
'method' => 'processGeoCountriesData',
'text' => 'Process Geo Location Countries Data...'
]
]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function initialize()
{
$this->migratorPackage = $this->usePackage(DevtoolsMigrator::class);

$this->setModuleSettings(true);
$this->setModuleSettings();

$this->setModuleSettingsData([
'apis' => $this->migratorPackage->getAvailableApis(true, false),
Expand Down
Loading