WIP: Road to 1.0.0 #1

Draft
miguel456 wants to merge 123 commits from develop into master

123 Commits

Author SHA1 Message Date
Miguel Nogueira 1aee4c053f
Fix broken code 2021-10-13 04:07:16 +01:00
Miguel Nogueira a880eb65b0
Revert last commits
This reverts commit 2ddef6058d.
2021-10-13 02:57:00 +01:00
Miguel Nogueira 2ddef6058d
Revert "Revert "Revert "Merge branch 'master' into develop"""
This reverts commit 427c9d1c57.
*facepalm*
2021-10-13 01:55:12 +01:00
Miguel Nogueira 41d86de5b0
Revert "Reverse L8 upgrade"
This reverts commit 64d8ffa9d9.
2021-10-13 01:47:23 +01:00
Miguel Nogueira 427c9d1c57
Revert "Revert "Merge branch 'master' into develop""
This reverts commit fc6d7d2b18.
2021-10-13 01:47:16 +01:00
Miguel Nogueira 64d8ffa9d9 Reverse L8 upgrade 2021-10-13 00:24:52 +00:00
Miguel Nogueira 4594973a21
Prev changes 2021-10-13 01:19:56 +01:00
Miguel Nogueira fc6d7d2b18
Revert "Merge branch 'master' into develop"
This reverts commit 42178e26de, reversing
changes made to d876dd6055.
2021-10-13 01:19:04 +01:00
Miguel Nogueira 42178e26de Merge branch 'master' into develop 2021-10-12 23:03:36 +00:00
Miguel Nogueira b2b29382bf
Merge branch 'develop' 2021-10-13 00:02:42 +01:00
Miguel Nogueira 92679e94d5
Add unknown MC status placeholder to cache 2021-10-12 23:01:15 +01:00
Miguel Nogueira d8e836980a
Move seeder to right place 2021-10-12 22:46:43 +01:00
Miguel Nogueira 8d1e39c43c
Replaced ConnectException with ConnectionException
This exception is thrown and handled when Mojang servers are down.
2021-10-12 22:41:24 +01:00
Miguel Nogueira a3d0730808 Update to Laravel & PHP 8 2021-10-12 18:08:15 +01:00
Miguel Nogueira d876dd6055 Update 'README.md' 2021-09-04 13:27:37 +00:00
Miguel Nogueira 521810c23c
Fix team update issue 2021-09-04 13:50:43 +01:00
Miguel Nogueira e6f84cd09a
Fixed broken Laravel Mix
Also disabled IP history logger for demo mode
2021-09-04 02:56:18 +01:00
Miguel Nogueira 3f4bc28fd4
Added Demo mode
Demo mode allows to safely run a demo version of the app, with destructive features limited.

Some bugs were also fixed in this commit.
2021-09-04 00:44:54 +01:00
Miguel Nogueira 8942623bde
Added services
This commit moves most controller logic onto Services. Services are part of the Service-Repository pattern. The models act as repositories.

Services are easily testable and are needed for the upcoming API, in order to avoid duplicated code and to maintain a single source of "truth".

 The User, Vacancy and Vote controllers still need their logic moved onto services.
2021-07-25 22:54:15 +01:00
Miguel Nogueira c739933668
Push suspension logic onto Service
In preparation to the upcoming API, most logic is being moved to services. Models function as repositories.
2021-07-21 19:33:52 +01:00
Miguel Nogueira cbcc1f025a
Refactored ban system
Implemented a Reddit-like account suspension system (similar to subreddit bans). This makes it easier to ban users from the app, and the code has also been cleaned up.

The interface was also revamped.
2021-07-20 22:35:49 +01:00
Miguel Nogueira 6cda1fe183
More refactoring
Refactored some old code and added missing translation calls.
2021-07-20 10:32:43 +01:00
Miguel Nogueira 620453c1e4
Separation of Concerns + old coude cleanup 2021-07-20 00:35:03 +01:00
Miguel Nogueira 9baa249ba7
Added logging to API calls 2021-03-31 19:53:23 +01:00
Miguel Nogueira f62ea9669b
Finished applications API endpoint group 2021-03-31 19:39:42 +01:00
Miguel N f267da3760 Update 'README.md' 2021-03-31 15:16:17 +00:00
Miguel Nogueira 6940b1816e
Merge remote-tracking branch 'origin/develop' into develop 2021-03-31 15:50:55 +01:00
Miguel Nogueira ddd79d38fe
API Resources and first endpoints 2021-03-31 03:55:09 +01:00
Miguel Nogueira 2bc07d8ca0
Add key management page 2021-03-30 18:16:01 +01:00
Miguel Nogueira 99779c9053
API key management interface 2021-03-30 01:27:49 +01:00
Miguel Nogueira 6d94263ede
JSON response provider 2021-03-29 23:47:55 +01:00
Miguel N 242ba7b31e Update 'resources/views/dashboard/application-rendering/apply.blade.php' 2021-01-29 17:34:45 +00:00
Miguel N 5b39c573b3 Add Markdown support notice 2021-01-29 17:32:43 +00:00
Miguel N 638b2719a8 Blade change 2021-01-29 17:28:29 +00:00
Miguel N aad04d6d14 Support markdown for application fields 2021-01-29 17:27:03 +00:00
Miguel N 5f6f6f693d Remove linebreak processing
This approach would allow users to directly use HTML in their responses. We'd need to purify HTML on the way out to only allow <br>, otherwise, there'd be XSS concerns.

Rendering as Markdown and letting users know they can use it is a better approach in the long run.
2021-01-29 17:20:28 +00:00
Miguel N f83b3a6860 Updated linebreak processing 2021-01-29 17:12:36 +00:00
Miguel N f17bb0e3cc Update 'app/Http/Controllers/ApplicationController.php' 2021-01-29 17:00:35 +00:00
Miguel N f941980602 % to $ 2021-01-29 16:57:57 +00:00
Miguel N 0f5e812e03 Usability: Turn CRLF/CR/LF into BR 2021-01-29 16:56:29 +00:00
Miguel N 3a56d2bfb2 Removed 100 character limit from submissions 2021-01-29 16:27:39 +00:00
Miguel N 26e5a53efb Reverse route add 2021-01-27 02:35:55 +00:00
Miguel N 685ec75d0c Reverse 2021-01-27 02:31:57 +00:00
Miguel N 8769f279ac Add confirmation route 2021-01-27 02:26:12 +00:00
Miguel N d234415d38 Logic changes for confirmation dialog
This commit changes the deletion mechanism for forms. Currently, it sets the wanted deletion ID to the session, and redirects the user to the previous page, to open a confirmation dialog for deletion.
2021-01-27 02:23:30 +00:00
Miguel N 9c597eeb65 Update 'resources/views/dashboard/administration/formbuilder.blade.php' 2021-01-27 02:07:34 +00:00
Miguel N 7319d091e2 Add exit popup 2021-01-27 02:01:59 +00:00
Miguel Nogueira 14a8e9e9d5
Force users to change password
This commit applies the password_expiration setting to all users.
Users won't be able to do anything other than update password until it's done.
2021-01-06 05:03:38 +00:00
Miguel Nogueira aa2bfac3e5
Show current pw policy in register page
Also adds a warning for when pw policy is set to off
2021-01-06 03:48:14 +00:00
Miguel Nogueira 42868be96e
Fix 2021-01-06 03:25:19 +00:00
Miguel Nogueira d1142d3e0c
Apply license and password settings 2021-01-06 03:21:53 +00:00
Miguel Nogueira 3b28bf1cfe
Track IP changes 2021-01-06 02:11:47 +00:00
Miguel Nogueira 5cf6b2b241
Selectable game integration 2021-01-06 01:55:22 +00:00
Miguel Nogueira 3e1a75dfea
Set default 0 for password_expiry 2021-01-06 01:30:57 +00:00
Miguel Nogueira 3156b0d17d
Remove ignoreOptions 2021-01-06 01:29:47 +00:00
Miguel Nogueira abace4e85b
Setting categorization system
This categorization system aims to prevent mixing different options together.
2021-01-06 01:29:01 +00:00
Miguel Nogueira baddf3fc76
Save value instead of raw model to cache 2021-01-06 01:02:47 +00:00
Miguel Nogueira 2ec2a92645
Saveable settings 2021-01-06 00:57:27 +00:00
Miguel Nogueira 33960270f3
Added Sanctum + new options to seeder 2021-01-01 21:01:23 +00:00
Miguel Nogueira 8be29f9739
Merge branch 'develop' of git.spacejewel-hosting.com:spacejewelhosting/staffmanager into develop 2020-12-30 00:12:05 +00:00
Miguel Nogueira 8b9cb7fbc4
Add 3rd party integrations
This commit adds third party integrations to the settings page.
It will allow users to link the games and services their community is using, to facilitate recruiting in each service.
These settings are not saved yet.
2020-12-30 00:11:50 +00:00
Proximity e0fc9b2d94 Addeed Development branch warning 2020-12-24 03:59:35 +00:00
Miguel Nogueira 29f697d7b2
More footer info 2020-12-21 01:20:46 +00:00
Miguel Nogueira 1c0eeb4bb0
Added Gate authorization arguments
Gate Auth arguments were missing for TeamFile and Team controllers.
This means that Gate has no idea where to look for policies, meaning that
the ability passed is perceived literally, causing an Unauthorized error.

Adding the Model with which to authorize the request solved the error since
Gate now knows which policy to look in for permission logic.
2020-12-21 01:02:05 +00:00
Miguel Nogueira 2f0fc14825
Merge remote-tracking branch 'origin/develop' into develop 2020-12-21 00:48:35 +00:00
Miguel Nogueira bc8570019c
Force TeamSeeder to skip creating existing permissions
TeamSeeder previously created permissions that already existed, if the migration had ran twice. This commit forces the seeder to verify if the permission it's attempting to create already exists, and if not, it creates it and assigns them at the end.

THis prevents an error from appearing if these permissions were created manually. In this case, the seeder will only assign the permissions instead of creating them.
2020-12-21 00:48:21 +00:00
Proximity aaaf56d415 Removed stray message from players tab 2020-12-20 12:57:41 -05:00
Proximity 79571d8b4c Fixed variable caps 2020-12-20 12:14:27 -05:00
Proximity 035e94421e Fixed variable . 2020-12-20 12:12:58 -05:00
Proximity a72abb9147 Updated footer variables 2020-12-20 12:11:25 -05:00
Proximity 96ebdc554e Update Description again 2020-12-20 12:10:13 -05:00
Proximity ece01fc71f Change header description 2020-12-20 12:06:48 -05:00
root 6f08b852f4 Merge branch 'develop' of https://code.spacejewel-hosting.com/spacejewelhosting/staffmanager into develop 2020-12-20 11:53:40 -05:00
Miguel Nogueira 889c771454 Remove StyleCI used at bitbucket 2020-12-20 16:53:14 +00:00
root 2e78d8c321 Updated Font Awesome 2020-12-20 11:53:09 -05:00
Proximity d7331b2dc1 Added GNU License comment. 2020-12-20 16:39:30 +00:00
Miguel Nogueira a8107a5421 Merge pull request 'Footer changes' (#5) from Proximity/staffmanager:develop into develop
Reviewed-on: https://code.spacejewel-hosting.com/spacejewelhosting/staffmanager/pulls/5
2020-12-20 16:36:33 +00:00
Proximity bf9b6d43f3 Update from GitHub to Gitea 2020-12-20 15:37:30 +00:00
Proximity 7fef7a0ac7 Added APP_NAME/URL to main page footer. 2020-12-20 15:36:32 +00:00
Miguel Nogueira 7c663dcc02 Merge pull request 'Make pretty' (#4) from Proximity/staffmanager:develop into develop
Reviewed-on: https://code.spacejewel-hosting.com/spacejewelhosting/staffmanager/pulls/4
2020-12-20 14:15:47 +00:00
Proximity 37c22f4377 Merge branch 'develop' into develop 2020-12-20 11:30:19 +00:00
Proximity d3d1f6f2b1 Update 'README.md' 2020-12-20 11:29:44 +00:00
Proximity 36f9e4f9f0 Added links to used 2020-12-20 11:28:57 +00:00
Proximity d8dac401cb Make pretty 2020-12-20 05:55:03 +00:00
Miguel Nogueira a04510ac36 Merge pull request 'Fixed carousel width' (#3) from Proximity/staffmanager:develop into develop
Reviewed-on: https://code.spacejewel-hosting.com/spacejewelhosting/staffmanager/pulls/3
2020-12-20 04:40:54 +00:00
Proximity a7d0e05188 Fixed carousel width 2020-12-20 04:37:00 +00:00
Miguel Nogueira 975f0a69c7
Removed now-unsupported message option 2020-12-19 15:37:15 +00:00
Miguel Nogueira a1edef026f
Fix naming typo 2020-12-19 04:09:32 +00:00
Miguel Nogueira cf65569702
Un-hardcode configuration value 2020-12-19 03:13:27 +00:00
Miguel Nogueira 0c667d74ef
Refactored seeders 2020-12-08 14:56:19 +00:00
Miguel Nogueira a206782187
Added TeamFile Authorization Policy 2020-12-08 03:09:17 +00:00
Miguel Nogueira 7323ffec2b
Added Team Authorization Policy 2020-12-08 02:58:10 +00:00
Miguel Nogueira 6518ad3447
Fixed #2
This method would always fail for cached options because at the end it was expecting an Eloquent model, which would never be populated if the requested value was cached in the first place.

Uncached requests wouldn't fail because the exec path would lead to $value being a Model.

Also removed reference to old feature causing application page to crash.
2020-12-08 00:07:53 +00:00
Miguel Nogueira 8882804c6e
Menu changes 2020-12-07 20:28:18 +00:00
Miguel Nogueira 1fae91a62b
Remove view file button 2020-12-07 18:42:56 +00:00
Miguel Nogueira 0bdb6cf2fb
Minor fixes 2020-12-07 17:48:15 +00:00
Miguel Nogueira 32c01f6e0b Removed useless feature 2020-11-03 03:00:03 +00:00
Miguel Nogueira d53e8135ee Reverted recent accidental changes 2020-11-02 22:04:57 +00:00
Miguel Nogueira e4fb438721 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	app/Http/Controllers/TeamFileController.php
#	app/TeamFile.php
#	config/adminlte.php
#	routes/web.php
2020-11-02 21:50:30 +00:00
Miguel Nogueira 96aa01b9c6 Recent changes 2020-11-02 21:44:05 +00:00
Miguel Nogueira 2bdb2f2dce Merged in analysis-aoLDWj (pull request #5)
Apply fixes from StyleCI
2020-10-11 01:56:01 +00:00
Miguel Nogueira d5d23b7dbd Apply fixes from StyleCI 2020-10-11 01:54:22 +00:00
Miguel Nogueira 06d1e0ad3f RSM-8 Add team files page and ability to download files 2020-10-11 02:54:09 +01:00
Miguel Nogueira b8a2a64354 Add user account creation command 2020-10-11 00:25:14 +01:00
Miguel Nogueira 61d01b3a9b RSM-43 Add DropZoneJS 2020-10-10 18:38:35 +01:00
Miguel Nogueira 9b4bdefd81 RSM-78 Add OneSignal credential config and others 2020-10-10 18:22:38 +01:00
Miguel Nogueira 535b5c3fb1 Update README badges 2020-10-10 18:13:26 +01:00
Miguel Nogueira 0a6d05cd57 Merged in analysis-aJ4reE (pull request #2)
Apply fixes from StyleCI
2020-10-10 16:37:57 +00:00
Miguel Nogueira 6541e25a39 Apply fixes from StyleCI 2020-10-10 16:30:26 +00:00
Miguel Nogueira 53660a2355 RSM-21 Update StyleCI configuration 2020-10-10 17:02:59 +01:00
Miguel Nogueira b2adcee51e Merged in RSM-19_feature (pull request #1)
RSM-19 feature

Approved-by: Miguel Nogueira <miguel456@spacejewel-hosting.com>
2020-10-09 21:37:48 +00:00
Miguel Nogueira 077ead9612 RSM-5 Made Vacancies easily linkable to Teams 2020-10-09 22:27:36 +01:00
Miguel Nogueira 6cc99d2ebe Prevent empty form creation 2020-10-09 00:56:11 +01:00
Miguel Nogueira 0930c29b9a RSM-5 Update to Laravel 8 2020-10-08 23:47:23 +01:00
Miguel Nogueira 596a469e15 Add user invitation facilities RSM-5
Adds user invitation to teams, and framework for assigning taems
Also adds user acc. deletion.
2020-10-08 19:19:10 +01:00
Miguel Nogueira 75f4404259 RSM-6 Team features 2020-10-03 21:36:35 +01:00
Miguel Nogueira 7c0c244e21 Team page skeleton 2020-09-10 23:09:23 +01:00
Miguel Nogueira 982854d5c6 RSM-25 add relevant permisisons to teams 2020-09-10 22:47:51 +01:00
Miguel Nogueira 551741c687 RSM-3 Update team assoc relationship 2020-09-10 19:41:19 +01:00
Miguel Nogueira dbeddd6fdb RSM-3 Update vacancy schema with team assoc 2020-09-10 19:24:55 +01:00
Miguel Nogueira b68449d3bf RSM-3 Add team functionality to users 2020-09-10 19:05:26 +01:00
Miguel Nogueira 67d1df7571 RSM-3 Add teams migration and config 2020-09-10 18:43:58 +01:00
Miguel Nogueira d4f1b433dc RSM-2 Update lock file 2020-09-10 18:39:24 +01:00