Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel11 #99

Open
wants to merge 585 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
585 commits
Select commit Hold shift + click to select a range
5d34f76
VideoControllerTests: simplify `UserControllerTest`
sakydev Nov 14, 2022
e28a503
VideoControllerTests: add `validateCanDelete`
sakydev Nov 14, 2022
4e11dc7
VideoControllerTests: add `testCanDeleteVideos`
sakydev Nov 14, 2022
834821d
VideoControllerTests: add scope tests: `public`, `private`, `unlisted`
sakydev Nov 14, 2022
52e2960
VideoControllerTests: add scope tests: `public`, `private`, `unlisted`
sakydev Nov 15, 2022
1b3e2a5
VideoStateControllerTests: update how video default configs are created
sakydev Nov 15, 2022
710b7ef
VideoStateControllerTests: add `testCanActivateVideos` and `testCanDe…
sakydev Nov 15, 2022
5b8fa6e
BRIS-76: Basics created
sakydev Nov 15, 2022
fe0d8b7
Merge pull request #82 from sakydev/BRIS-76-comments-endpoints-tests
sakydev Nov 15, 2022
f308a29
Refactoring: remove unused imports
sakydev Nov 16, 2022
890e094
Refactoring: add missing return types
sakydev Nov 16, 2022
1dfe478
Refactoring: use `strict_types`
sakydev Nov 16, 2022
7198297
Refactoring: fix class case mismatch
sakydev Nov 16, 2022
a4a0bed
Refactoring: optimize repositories and other classes
sakydev Nov 18, 2022
6efa146
Refactoring: add missing types
sakydev Nov 18, 2022
42191c1
Refactoring: delete web controllers for now
sakydev Nov 18, 2022
8b769a1
Refactoring: fix type compatability issues
sakydev Nov 18, 2022
fdddb78
Refactoring: code cleanup and optimizations
sakydev Nov 18, 2022
0dfc0aa
Refactoring: install react and upgrade mysql
sakydev Dec 5, 2022
5271773
Refactoring: set scout driver
sakydev Dec 5, 2022
08c2ba4
upgrade to Laravel 11
sakydev Jun 1, 2024
91c9dc3
delete files not required
sakydev Jun 1, 2024
343d524
use correct directory
sakydev Jun 1, 2024
fa33162
create sessions table
sakydev Jun 1, 2024
2d52677
register settings on app boot
sakydev Jun 2, 2024
9c42f08
include channel name on userFactorhy
sakydev Jun 2, 2024
eac9190
fix userController tests
sakydev Jun 2, 2024
e16b599
use correct attributes for dataprovider phpunit
sakydev Jun 2, 2024
65dc190
fix failing video controller tests
sakydev Jun 2, 2024
e64c842
fix failing video tests
sakydev Jun 2, 2024
119eef4
add icons
sakydev Jun 2, 2024
db49014
add menu items
sakydev Jun 2, 2024
1bd0947
add icons
sakydev Jun 2, 2024
20c5ca9
update video size helpers
sakydev Jun 2, 2024
9e415fb
minor adjustments
sakydev Jun 2, 2024
5197c5c
video controller for fe
sakydev Jun 2, 2024
223a14b
organise files
sakydev Jun 2, 2024
2f19f0a
create form tables
sakydev Jun 4, 2024
70b7ae0
add request validation for creation of forms
sakydev Jun 4, 2024
35e9341
add form resource
sakydev Jun 4, 2024
7cd6b63
add form repo
sakydev Jun 4, 2024
3306bba
add update form request
sakydev Jun 4, 2024
3247339
add form routes and model
sakydev Jun 4, 2024
b2e7b31
add exceptions
sakydev Jun 4, 2024
1dcac21
create forms table
sakydev Jun 4, 2024
7f5c282
update exception error response handling
sakydev Jun 4, 2024
627fdc7
minimal form validation service
sakydev Jun 4, 2024
57a65fc
WIP form controller
sakydev Jun 4, 2024
8bbebd9
remove settings cache for now
sakydev Jun 4, 2024
2579608
make form validation logic work
sakydev Jun 4, 2024
a0b3406
add Docker file and update translations
sakydev Jun 4, 2024
e5502f0
update docker instructions
sakydev Jun 4, 2024
525e732
remove sail
sakydev Jun 4, 2024
d70af4b
update translations
sakydev Jun 4, 2024
14c00a8
comment out fulltext indexews for now
sakydev Jun 4, 2024
c3d49cd
include translation method
sakydev Jun 4, 2024
c61a488
translate error messages
sakydev Jun 4, 2024
a0cb79e
use correct var names
sakydev Jun 4, 2024
88ad299
create form tests
sakydev Jun 4, 2024
3643bb5
docker files
sakydev Jun 5, 2024
87b0111
update form controller to make consistent
sakydev Jun 5, 2024
5ab9d3b
update error response structure
sakydev Jun 5, 2024
2309c5d
fix destroy form tests
sakydev Jun 5, 2024
a7c36c6
fix list form tests
sakydev Jun 5, 2024
07b9687
fix show form tests
sakydev Jun 5, 2024
8a864d4
fix update form tests
sakydev Jun 5, 2024
d2332b2
add NotFoundException
sakydev Jun 5, 2024
fad90d2
add FormService
sakydev Jun 5, 2024
9d287ce
trim down FormController
sakydev Jun 5, 2024
3f8f2cd
trim down FormRepository
sakydev Jun 5, 2024
0a18d51
use FormService for listing forms
sakydev Jun 5, 2024
218aeee
Delete temp-database.sqlite
sakydev Jun 5, 2024
57a4b44
remove separate publish and unpublish endpoints (use PATCH update ins…
sakydev Jun 5, 2024
88189ba
use correct var name
sakydev Jun 5, 2024
25d84b5
Merge pull request #85 from sakydev/form-endpoints
sakydev Jun 5, 2024
2ea5667
simpler userValidationService
sakydev Jun 5, 2024
e9e7c55
add user translations
sakydev Jun 5, 2024
4d23097
minor changes
sakydev Jun 5, 2024
00fc366
add UpdateUserRequest
sakydev Jun 5, 2024
5c3e805
add UserValidationService
sakydev Jun 5, 2024
123dc68
add UserService
sakydev Jun 5, 2024
7a6f0e1
simplify UserController
sakydev Jun 6, 2024
726411c
move logic from controller to service
sakydev Jun 6, 2024
e53079d
fix failing usercontroller tests
sakydev Jun 6, 2024
6370f77
fix failing usercontroller tests
sakydev Jun 6, 2024
2f8e62c
split user tests into multiple files
sakydev Jun 6, 2024
60616f6
move tests into appropriate folders
sakydev Jun 6, 2024
c540654
Merge pull request #86 from sakydev/fix-failing-user-tests
sakydev Jun 6, 2024
567bf61
add CreateVideoRequest
sakydev Jun 6, 2024
6e3de95
add video translations
sakydev Jun 6, 2024
2dac7e2
add video file systems
sakydev Jun 6, 2024
4205610
add update video validation rules
sakydev Jun 6, 2024
ae17dcd
trim down video controller
sakydev Jun 6, 2024
3ac82a2
fix failing video tests
sakydev Jun 6, 2024
c42a69e
simpler VideoValidationService
sakydev Jun 6, 2024
39e1c5d
move VideoController logic to VideoService
sakydev Jun 6, 2024
6ca6f40
split video controller tests across multiple files
sakydev Jun 6, 2024
b419b50
minor test related changes
sakydev Jun 6, 2024
92bb167
simplify VideoScopeController
sakydev Jun 6, 2024
b48d068
fix VideoScopeTest
sakydev Jun 6, 2024
d838804
trim down VideoStateController
sakydev Jun 6, 2024
ef73d38
fix VideoStateController tests
sakydev Jun 6, 2024
2581484
Merge pull request #87 from sakydev/fix-failing-video-tests
sakydev Jun 6, 2024
1ad37a5
Add CreateCategoryRequest
sakydev Jun 8, 2024
7e09496
Add UpdateCategoryRequest
sakydev Jun 8, 2024
a67ac2e
minor changes
sakydev Jun 8, 2024
126954b
move CategoryController logic to CategoryService
sakydev Jun 8, 2024
fd23688
simpify CategoryValidationService
sakydev Jun 8, 2024
c5c23a1
add category translations
sakydev Jun 8, 2024
f33d363
remove unused imports
sakydev Jun 8, 2024
63bdeff
simplify CategoryStateController
sakydev Jun 8, 2024
f9bdd65
Merge pull request #88 from sakydev/category-endpoint-simplifcation
sakydev Jun 8, 2024
cf0392b
add simpler PageController
sakydev Jun 8, 2024
24c6efa
add page translatations
sakydev Jun 8, 2024
c8c19f2
add UpdatePageRequest
sakydev Jun 8, 2024
9db1640
add CreatePageRequest
sakydev Jun 8, 2024
8f53763
simpler PageController
sakydev Jun 8, 2024
c94baae
add page services
sakydev Jun 8, 2024
36d68b1
use correct service
sakydev Jun 8, 2024
5fcd778
use parameters correctly in listing
sakydev Jun 8, 2024
ecb6173
add page tests empty templates
sakydev Jun 8, 2024
8720c85
minor page related changes
sakydev Jun 8, 2024
bace7fb
add page factory
sakydev Jun 8, 2024
7b5ee52
add list page tests
sakydev Jun 8, 2024
5fffc3b
add show page tests
sakydev Jun 8, 2024
1663966
Merge pull request #89 from sakydev/page-endpoint-simplification
sakydev Jun 8, 2024
66afa77
add playlist endpoints
sakydev Jun 8, 2024
7a550d0
add CreatePlaylistRequest
sakydev Jun 8, 2024
d8091d5
add UpdatePlaylistRequest
sakydev Jun 8, 2024
092de16
add Playlist model
sakydev Jun 8, 2024
22accc3
add Playlist resource
sakydev Jun 8, 2024
2a49242
add Playlist repository
sakydev Jun 8, 2024
189a939
add PlaylistValidationService
sakydev Jun 8, 2024
66af349
add basic playlisst playlist endpoints
sakydev Jun 8, 2024
45b5fdc
simplfy page state controller
sakydev Jun 8, 2024
c827eac
simplfy playlist state controller
sakydev Jun 8, 2024
5b4745f
add playlist table
sakydev Jun 8, 2024
5eb8c45
add playlist items table
sakydev Jun 8, 2024
a158d20
add CreatePlaylistItemRequest
sakydev Jun 9, 2024
960bb32
add PlaylistItem model
sakydev Jun 9, 2024
add2006
add PlaylistItemRepository
sakydev Jun 9, 2024
cb5becd
add PlaylistItemResource
sakydev Jun 9, 2024
6f33e95
add PlaylistItemController
sakydev Jun 9, 2024
61efd7e
add playlist item logic to service
sakydev Jun 9, 2024
3c7a4bb
add playlist item routes
sakydev Jun 9, 2024
82949da
rename PlaylistItems to PlaylistVideos
sakydev Jun 9, 2024
ccb38b6
add playlist video translations
sakydev Jun 9, 2024
4285e8e
Merge pull request #90 from sakydev/introduce-playlist-endpoints
sakydev Jun 9, 2024
d92fa23
add package-lock.json
sakydev Jun 9, 2024
943757e
addon addons table
sakydev Jun 9, 2024
0da80ea
add CreateAddonRequest.php
sakydev Jun 9, 2024
458997f
create addons table
sakydev Jun 9, 2024
27a59d7
add Addon table
sakydev Jun 9, 2024
bd77d13
add addon routes
sakydev Jun 9, 2024
fd09773
add AddonValidationService
sakydev Jun 9, 2024
8b9235a
add CreateAddonRequest
sakydev Jun 9, 2024
7e9ddc5
add AddonResource
sakydev Jun 9, 2024
7aab0fd
add AddonStateController
sakydev Jun 9, 2024
2505e72
add AddonRepository
sakydev Jun 9, 2024
dcc71f2
add AddonService
sakydev Jun 9, 2024
d9474cb
add AddonController
sakydev Jun 9, 2024
d99f891
minor changes
sakydev Jun 9, 2024
113c769
change addon publish/unpublish to activate/deactivate
sakydev Jun 9, 2024
34fd8b4
change addon publish/unpublish to activate/deactivate
sakydev Jun 9, 2024
87cc03c
change addon publish/unpublish to activate/deactivate
sakydev Jun 9, 2024
de28376
minor adjustments made
sakydev Jun 9, 2024
ce37da0
rename isPublished to isActivated
sakydev Jun 9, 2024
f877773
Merge pull request #91 from sakydev/introduce-addon-endpoints
sakydev Jun 9, 2024
1d04030
add themes page
sakydev Jun 9, 2024
48a108f
add themes page
sakydev Jun 9, 2024
d9d80ba
add themes endpoints
sakydev Jun 9, 2024
3f50853
add themes endpoints
sakydev Jun 9, 2024
54339f2
add ThemeController
sakydev Jun 9, 2024
b7eda8b
add ThemeRepository
sakydev Jun 9, 2024
87a540d
add ThemeResource
sakydev Jun 9, 2024
64712b4
add ThemeService
sakydev Jun 9, 2024
33d6830
add ThemeStateController
sakydev Jun 9, 2024
4ac24bc
add ThemeValidationService
sakydev Jun 9, 2024
1496e93
add addon and theme translations
sakydev Jun 9, 2024
3bb71cf
use correct naming
sakydev Jun 9, 2024
52a0d44
remove unused imports
sakydev Jun 9, 2024
7b9952a
Merge pull request #92 from sakydev/introduce-theme-endpoints
sakydev Jun 9, 2024
4c87d95
move UserController to separate directory
sakydev Jun 9, 2024
fa4057b
add setting routes
sakydev Jun 9, 2024
657d698
add SettingService
sakydev Jun 9, 2024
022d673
add Settings logic
sakydev Jun 9, 2024
ba3d683
add setting translations
sakydev Jun 9, 2024
98a3f60
Merge pull request #93 from sakydev/introduce-setting-endpoints
sakydev Jun 9, 2024
5e3bfe9
add user_activity table
sakydev Jun 10, 2024
397ca25
add activity translations
sakydev Jun 10, 2024
b05e279
add CreateActivityRequest for rules
sakydev Jun 10, 2024
8ea4750
add UserActivity model
sakydev Jun 10, 2024
6685e70
add UserActivityRepository
sakydev Jun 10, 2024
87bfa49
add UserActivityResource
sakydev Jun 10, 2024
505931a
add UserActivityService
sakydev Jun 10, 2024
bbbcb35
add WatchHistoryController logic
sakydev Jun 10, 2024
b9035ae
add UserActivityController for generic activity methods
sakydev Jun 10, 2024
147e3e2
add watch history endpoints
sakydev Jun 10, 2024
1df3557
add reset endpoint
sakydev Jun 10, 2024
9ae17d1
finish watched activity endpoints
sakydev Jun 10, 2024
b55aa7c
add CommentedController
sakydev Jun 10, 2024
3588093
add LikedController
sakydev Jun 10, 2024
65c53ad
add methods for other activity types
sakydev Jun 10, 2024
d89beff
add liked and commented endpoints
sakydev Jun 10, 2024
8b06456
add liked and commented translations
sakydev Jun 10, 2024
3fc5270
Merge pull request #94 from sakydev/user-activity-endpoints
sakydev Jun 10, 2024
0247ddc
add CreateCommentRequest
sakydev Jun 11, 2024
a8b3aed
add UpdateCommentRequest
sakydev Jun 11, 2024
1621aea
add comment translations
sakydev Jun 11, 2024
febdf6e
add CommentValidationService
sakydev Jun 11, 2024
4f7c617
add CommentService
sakydev Jun 11, 2024
2b7a048
cleanup CommentController.php
sakydev Jun 11, 2024
4720b1d
Merge pull request #95 from sakydev/introduce-comment-endpoints
sakydev Jun 11, 2024
f29609a
create ads tables
sakydev Jun 11, 2024
5a6f63f
define ad models
sakydev Jun 11, 2024
43f5bb5
add AdResource
sakydev Jun 11, 2024
b9bed55
add AdRepository
sakydev Jun 11, 2024
19f790a
add AdAnalyticRepository.php
sakydev Jun 11, 2024
5ec1981
add state to ads table
sakydev Jun 11, 2024
8db8da8
add ad translations
sakydev Jun 11, 2024
dfc833b
add AdController
sakydev Jun 11, 2024
da3a5b5
add AdStateController
sakydev Jun 11, 2024
2820d86
add AdService
sakydev Jun 11, 2024
30c831f
add AdValidationService
sakydev Jun 11, 2024
3eb7043
add AdAnalyticController
sakydev Jun 11, 2024
5399fbf
add ad endpoints
sakydev Jun 11, 2024
032c36f
add AdAnalyticResource
sakydev Jun 11, 2024
ba5f15b
add analytic request rules
sakydev Jun 11, 2024
3e40216
add ad analytics logic
sakydev Jun 11, 2024
65c1004
Merge pull request #96 from sakydev/introduce-ads-endpoints
sakydev Jun 11, 2024
5df7381
add CommentTestCase.php
sakydev Jun 12, 2024
344954e
update videos table
sakydev Jun 12, 2024
9fd121d
create Comment factory
sakydev Jun 12, 2024
7031be6
add ListCommentTest
sakydev Jun 12, 2024
196261c
add comment test structures
sakydev Jun 12, 2024
220353e
update video factory
sakydev Jun 12, 2024
eaa603a
add testTryListCommentsWithInvalidVideo
sakydev Jun 12, 2024
505edd7
add ShowComment tests
sakydev Jun 12, 2024
1064fdd
add DestroyCommentTest
sakydev Jun 12, 2024
3e05b74
add CreateCommentRequest
sakydev Jun 12, 2024
3dba188
add UpdateCommentTest
sakydev Jun 12, 2024
28a2b5a
Merge pull request #97 from sakydev/comment-feature-tests
sakydev Jun 12, 2024
4b203dc
add CreatePageTest
sakydev Jun 12, 2024
15e1664
add UpdatePageTest
sakydev Jun 12, 2024
3ec720d
add DestroyPageTest
sakydev Jun 12, 2024
c65231a
Merge pull request #98 from sakydev/comment-feature-tests
sakydev Jun 12, 2024
a9e9a40
fix seeding error
sakydev Jun 14, 2024
390fff5
add multiple icons
sakydev Jun 14, 2024
9f815dc
menu CSS added
sakydev Jun 14, 2024
0079412
Merge pull request #100 from sakydev/admin-sidebar-menu
sakydev Jun 14, 2024
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
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- Please ensure your PR title is brief and descriptive for a good changelog entry -->
<!-- Link to issue if there is one -->

## What it solves

...

## How this PR fixes it

...

## How to test it

...

## Tested browsers

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge

## Readiness Checklist

### Author/Contributor
- [ ] If documentation is needed for this change, has that been included in this pull request
- [ ] Pull request title is brief and descriptive (for a changelog entry)

### Reviewing Maintainer
- [ ] Label as `breaking` if this is a large fundamental change
- [ ] Label as either `automation`, `bug`, `documentation`, `enhancement`, `infrastructure`, or `performance`
90 changes: 90 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Local Docker
DOCKER_COMPOSE_CMD ?= docker compose -f docker-compose.yml -f docker-compose.yml

.PHONY: help
help: ## Shows this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

.PHONY: setup
setup: build start copy-env composer-install key-generate npm-install

.PHONY: build
build: ## Build containers
$(DOCKER_COMPOSE_CMD) build

.PHONY: start
start: ## Start containers
$(DOCKER_COMPOSE_CMD) up -d --remove-orphans

.PHONY: start-fresh
start-fresh: ## Start containers
$(DOCKER_COMPOSE_CMD) up -d --remove-orphans
$(DOCKER_COMPOSE_CMD) exec -T brisk.http php artisan migrate:fresh --seed

.PHONY: stop
stop: ## Stop containers
$(DOCKER_COMPOSE_CMD) stop

.PHONY: restart
restart: stop start ## Restart containers

.PHONY: down
down: ## Stop and remove containers
$(DOCKER_COMPOSE_CMD) down

.PHONY: http
http: ## Run Laravel container
$(DOCKER_COMPOSE_CMD) exec brisk.http bash

.PHONY: mysql
mysql: ## Run Mysql container
docker exec -it brisk.mysql bash

.PHONY: redis
redis: ## Run Redis container
docker exec -it brisk.redis bash

.PHONY: logs
logs: ## Show php container logs
$(DOCKER_COMPOSE_CMD) logs --follow php

.PHONY: copy-env
copy-env: ## Copy .env.example to .env
$(DOCKER_COMPOSE_CMD) exec -T brisk.http cp .env.example .env

.PHONY: key-generate
key-generate: ## Run laravel key generation
$(DOCKER_COMPOSE_CMD) exec -T brisk.http php artisan key:generate

.PHONY: composer-install
composer-install: ## Run composer install
$(DOCKER_COMPOSE_CMD) exec -T brisk.http composer install

.PHONY: npm-install
npm-install: ## Run npm install
$(DOCKER_COMPOSE_CMD) exec -T brisk.http npm install
# $(DOCKER_COMPOSE_CMD) exec -T brisk.http npm run dev

.PHONY: migrate
migrate: ## Migrations
$(DOCKER_COMPOSE_CMD) exec -T brisk.http php artisan migrate

.PHONY: migrate-fresh
migrate-fresh: ## Clear DB and migrate from scratch
$(DOCKER_COMPOSE_CMD) exec -T brisk.http php artisan migrate:fresh --seed

.PHONY: clear-cache
clear-cache: ## Clear all cache
$(DOCKER_COMPOSE_CMD) exec -T brisk.http php artisan optimize:clear

.PHONY: seed
seed: ## Seeds
$(DOCKER_COMPOSE_CMD) exec -T brisk.http php artisan db:seed

#.PHONY: test
#test: ## Execute tests
# $(DOCKER_COMPOSE_CMD) exec -T php php -dxdebug.mode=0 -dxdebug.start_with_request=0 vendor/bin/phpunit --colors=always -d memory_limit=512M

.PHONY: delete-merged-branches
delete-merged-branches: ## Delete local merged branches
git branch --merged | grep -v \* | xargs git branch -D
266 changes: 0 additions & 266 deletions README.md

This file was deleted.

Loading