Commit Graph

80 Commits

Author SHA1 Message Date
HDVinnie
fe6ca8a17a (Update) Articles/News System
- general cleanup
- moved validation rules out of model and into controller
2018-05-18 14:20:43 -04:00
HDVinnie
a5fa96f955 (Update) Groups System 2018-05-17 23:25:00 -04:00
Poppabear
2ca0b04b78 (Fix) Bug in Groups/Permissions (Read Body)
--- Issue ---
When you create a new group it never sets up any forums permissions for
that group. This was causing errors like

Trying to get property 'show_forum' of non-object ...

This is due to in code its trying to access a property of a null object,
this is fatal and cause the app to crash, this happens when the page
tries and loads permissions for that group/forum and the groups
permissions is a null object.

--- Fix ---
In the add() method of the Staff/GroupsController.php we create a
permissions object for each forum and associate it to the new groups id.

--- Views ---
When using traditional form inputs and passing that data through
the request object, you should name the inputs the same name as the
database columns. This will make it easier in code to just pass the
request data to the create/update operations.

--- Models ---
When using mass assignments like Model::create() and/or Model::update(),
we have to tell the model to not guard those columns. So by adding
`protected $guarded = ['id'];` to the Model we say Only guard the 'id'.

Also, try and avoid the `Raw` eloquent queries!

--- Controllers ---
Validation rules should be in here and not in the Model and should be
validated BEFORE the creation of the resource!

--- Reminder ---
The Model is strictly for interacting with the database.

The Controller handles the http/ajax requests

The View handles how to present the data to the users screen

The Repository/Concrete Classes are to handle the application specific
logic
2018-05-12 12:55:00 -04:00
Poppabear
0fd8f5a9ef (Update)[Chat 2.0] Updated system messages 2018-05-08 21:05:53 -04:00
Poppabear
4aa958040d Merge remote-tracking branch 'origin/master' into Chat-2.0
# Conflicts:
#	public/css/app.css
#	public/js/app.js
2018-05-07 20:36:04 -04:00
HDVinnie
2faf7e9406 (Fix) User Groups System
- Fixes group rights settings
2018-05-07 17:34:30 -04:00
HDVinnie
4d3a268a2d (Update) Add "can_upload" Group Rights
- closes #280
- Require `php artisan migrate` to be run
- This adds the additional "can_upload" group right to the current
"can_upload" per user right.
2018-05-07 14:51:21 -04:00
poppabear8883
5bca3ded3b Merge branch 'master' into Chat-2.0
# Conflicts:
#	app/Http/Controllers/RequestController.php
#	resources/assets/js/app.js
2018-05-07 09:54:19 -04:00
HDVinnie
542eada5b2 (Update) Groups System 2018-05-03 19:24:46 -04:00
HDVinnie
d76b412f92 (Update) Articles System 2018-05-03 18:55:52 -04:00
HDVinnie
d75429e0ac (Update) Pages System 2018-05-03 18:23:47 -04:00
HDVinnie
0231832608 (Update) Types System 2018-05-03 18:00:03 -04:00
HDVinnie
0badbea2bc (Update) Category System 2018-05-03 15:42:15 -04:00
HDVinnie
ed00aa4754 (Update) Reports System 2018-05-03 15:18:01 -04:00
HDVinnie
08fea357c3 (Update) Moderation System 2018-05-03 15:15:52 -04:00
HDVinnie
20650b66c8 (Update) Staff User Tools System 2018-05-03 15:09:30 -04:00
HDVinnie
120e0e53c7 (Update) Ban System 2018-05-03 15:03:06 -04:00
HDVinnie
7728d26913 (Update) Change System Announcements To Use New Chat 2018-04-29 16:47:06 -04:00
Git Repository
a53498e953 Change (Stringed)Boolean values back to Booleans 2018-04-28 09:00:12 -07:00
Git Repository
64a56cb2ec Update VersionCheck Component
Updated the version check component.

1) Line 25 (Version.vue) was checking for a boolean but a string is returned from VersionController.

2) Line 37 (VersionController.php) was returning “true” if the current version was less then latest version. The version component was only showing “There Is A Update Available” if the return data was false. This was not triggered if the current version is less then the available version Example v1.6 installed < v1.7 latest.
2018-04-27 23:28:47 -07:00
HDVinnie
04073b20d4 (Update) Activity Logging System
- create recycle command to destroy activity records once 30 days old
- ability to delete single activity record
- cleanup and rename route/controller functions
- Created At column added and displayed in human format
2018-04-27 21:35:50 -04:00
HDVinnie
802daeaf3f (Update) Staff Notes System
- closes #267
- Ability to delete staff notes
- Created At column added and displayed in human format
2018-04-27 20:51:44 -04:00
HDVinnie
54d719175c (Feature) Codebase Version Checker
- powered by the almighty vue.js
2018-04-26 16:30:16 -04:00
HDVinnie
2e6cfd470d (Update) General Cleanup Of Controllers
- remove unused “use” statements
2018-04-25 15:15:41 -04:00
poppabear8883
9240bc2c35 (Refactored) Report System ref #209
Visually more appealing.
Will now reference urls in the message body.
Includes reported user AND reported by user.
Title now links to the torrent reported.
2018-04-22 17:15:24 -04:00
HDVinnie
97e9ac1394 (Fix) Poll Controller
- fixed missing ; for storing new poll
2018-04-19 17:31:21 -04:00
HDVinnie
e50018a70e (Update) Minor Controllers Cleanup
- Toastr
- Code Comments
- Activity Logging
2018-04-15 19:35:14 -04:00
HDVinnie
e3714183a9 (Update) Forums System
- small update that includes DB changes
- there is no longer a use for columns upload and download in
permissions table
- Some minor view cleanup
2018-04-12 16:59:12 -04:00
HDVinnie
d0f4bff4f9 (Fix) ForumController
- added missing use statement for Toastr
2018-04-11 17:36:30 -04:00
HDVinnie
d83861ff29 (Update) Add Pagination To Staff Logs
- Paginate Ban Logs
- Paginate Note Logs
- Paginate Report Logs
- Cleanup existing paginate by centering
2018-04-09 11:55:10 -04:00
HDVinnie
088d83c4d6 (Fix) Creating New Polls
- closes #245
- Keep in mind while it does now work this system is being rebuilt for
future release in branch
https://github.com/HDInnovations/UNIT3D/tree/Poll-System-Refactor and
is linked to issue #55
2018-03-30 09:21:29 -04:00
HDVinnie
32e8b1c62b (Update) Controller + Commands Query Syntax
- using shorter and more readable syntax
- remove “=“ in where clauses
- uses oldest() / latest() instead of like orderBy('created_at', 'DESC')
2018-03-24 16:42:59 -04:00
HDVinnie
e3e21896e2 (Update) Controllers Syntax
- use shorter and more readable syntax
- replace orderBy('created_at', 'DESC') with latest()
2018-03-24 15:56:39 -04:00
HDVinnie
87ce42daf3 (Update) Refactor Torrent Request System
- renamed  models/functions and more to avoid conflict with
`App\Http\Requests` which will be used to refactor all HTTP Validation
rules into dedicated form requests
2018-03-22 20:10:37 -04:00
HDVinnie
77b196a0d8 (Update) User Profiles
- fix name profil to profile in controllers, images, blades
- refactor user profile blade and UserController profile function
2018-03-21 18:50:57 -04:00
HDVinnie
889be525d9 Update ModerationController.php
- remove unneeded peer and category USE
2018-03-17 11:41:41 -04:00
HDVinnie
d963c41eb2 Update ModerationController.php
- remove facades use
2018-03-17 11:37:34 -04:00
MrG01
6f1762c15f Helper changes 2018-03-17 16:23:45 +02:00
MrG01
ed57e6a96d Merge branch 'master' into Moderation-Rework
# Conflicts:
#	app/Http/Controllers/Staff/ModerationController.php
#	app/Http/Controllers/TorrentController.php
2018-03-17 16:11:42 +02:00
HDVinnie
2da7207d2b (Update) Refactor General and Staff Controllers
- Remove all facades use besides mail
- Use Dependency Injection for Illuminate\Http\Request
- use helpers for auth, cache, validator, and more to rid of facades use
- use $request->input() over $request->get()
- use $request->isMethod('POST') over $request->getMethod('POST')
- general cleanup
2018-03-15 12:32:40 -04:00
MrG01
3c6dfe28f7 Merge branch 'master' into Moderation-Rework
# Conflicts:
#	app/Helpers/TorrentHelper.php
#	app/Http/Controllers/TorrentController.php
2018-03-14 20:41:32 +02:00
MrG01
f06e5c91da Minor corrections
- for requests input() is preferred over get()
- some string changes
- minor variables fixes
- moderation query changes
2018-03-14 20:37:20 +02:00
HDVinnie
84f7eb1935 (Update) Add Position To Categories
- closes #219
- Add position to categories and sortBy position
- Added few spots where Types sortBy position was missing
2018-03-13 15:57:26 -04:00
MrG01
eba881c2b7 [REFACTOR] Torrent Helper
- Achievements and announcements are no longer handled by the upload
function itself
- Refer approval to Torrent Helper
2018-03-12 19:24:20 +02:00
MrG01
c8b91d194f [BUG] Delete
- Added validator to delete controller
- Address issue #98
2018-03-10 23:33:59 +02:00
MrG01
1cb92c51f1 Merge branch 'master' into Moderation-Rework
# Conflicts:
#	app/Http/Controllers/Staff/ModerationController.php
#	routes/web.php
2018-03-10 21:31:59 +02:00
MrG01
bc92e070b8 Postponing is now available 2018-03-10 21:29:47 +02:00
HDVinnie
d797066370 (Fix) Group Settings
- This closes #75
2018-03-07 11:42:40 -05:00
HDVinnie
1a4e6c3670 (Update) Ban/Unban Email Notifications
- closes #206
- Email user when banned
- Email user when unbanned
2018-03-02 09:29:10 -05:00
HDVinnie
183ae6021b (Update) Gift FL Tokens
- closes #203
- Staff can now also gift FL Tokens in staff dashboard under “User
Gifting”
2018-02-25 09:43:03 -05:00