Skip to content

Commit 37fe648

Browse files
authored
Feature/livewire preset (Team-Tea-Time#362)
* Update config and begin implementing new Livewire preset * Work on Livewire components * Work on Livewire preset * Refactor CategoryPrivacy (CategoryAccess) and introduce ThreadAccess * Revise models * Update CategoryAccess usages * Work on Livewire preset * Fix FrontendInterface and its implementations * "Namespace" Livewire components to avoid conflicts with app components * Improve preset handling * Rework preset and stack handling * Fix some imports * Update command signatures * Update command descriptions * Fix category trees and update Livewire preset * Rename Blade preset directory to match preset name * Update presets * Work on Livewire preset * Fix a couple of issues * Work on Livewire preset * Clean up requests * Make new trait names consistent with Laravel ones * Implement alerts for the Livewire preset * Refactor bulk category request authorization * Refactor CategoryShow * Fix ThreadShow * Work on Livewire preset * Make ThreadShow::reply touch the update key * Update $selectablePostIds condition in ThreadShow * Move and rename FulfillableRequest interface * Add Timestamp component * Mark thread as read after replying to it * Work on Livewire preset * Refactor authorization handling * Implement authorization and event dispatching for CategoryShow * Implement category creation for the Livewire preset * Implement category management for the Livewire preset * Implement CategoryShow::moveThreads * Implement category editing for Livewire preset * Fix category re-ordering * Implement category deletion * Implement recent and unread pages * Implement thread reply and post show * Improve button components * Implement thread actions * Implement post delete/restore * Rework config * Implement light/dark category colours * Fix some formatting issues * Update readme.md * Fix routes/livewire.php formatting * Update workflow branches * Exclude .blade.php files from phpcs * Fix formatting * Add livewire preset resources * Update composer.json * Update composer.json and composer.lock * Fix default_category_color * Update phpcs action * Update view * Ignore ui-presets in phpcs checks * Fix tests * Don't run phpcs on tests
1 parent cd77b22 commit 37fe648

File tree

316 files changed

+8783
-2932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+8783
-2932
lines changed

.github/workflows/phpcs.yml

+12-17
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,23 @@ name: phpcs
22

33
on:
44
pull_request:
5-
branches: [ "5.0" ]
5+
branches: [ "6.x" ]
66
paths:
77
- "**.php"
88
- "phpcs.xml"
99
- ".github/workflows/phpcs.yml"
1010

1111
jobs:
12-
check-phpcs:
12+
run:
13+
name: Run
1314
runs-on: ubuntu-latest
1415
steps:
15-
- uses: actions/checkout@v2
16-
with:
17-
fetch-depth: 0
18-
19-
- name: Install PHP_CodeSniffer
20-
run: |
21-
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
22-
php phpcs.phar --version
23-
24-
- uses: thenabeel/action-phpcs@v8
25-
with:
26-
files: "**.php"
27-
phpcs_path: php phpcs.phar
28-
standard: phpcs.xml
29-
fail_on_warnings: false
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.event.pull_request.head.sha }}
20+
- name: Run PHPCS inspection
21+
uses: rtCamp/action-phpcs-code-review@v3
22+
env:
23+
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
24+
SKIP_FOLDERS: ".github,ui-presets,src/Tests"

.github/workflows/tests.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ "5.0" ]
5+
branches: [ "6.x" ]
66
pull_request:
7-
branches: [ "5.0" ]
7+
branches: [ "6.x" ]
88

99
jobs:
10-
run-tests:
10+
run:
11+
name: Run
1112
runs-on: ubuntu-latest
12-
1313
steps:
14-
- uses: actions/checkout@v2
15-
14+
- name: Checkout code
15+
uses: actions/checkout@v2
1616
- name: Bring up MySQL service
1717
run: docker-compose up -d mysql
18-
1918
- name: Run Composer install
2019
run: docker-compose run composer install
21-
2220
- name: Run PHPUnit
2321
run: docker-compose run phpunit

composer.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@
2020
"email": "[email protected]"
2121
}
2222
],
23+
"repositories": [
24+
{
25+
"type": "vcs",
26+
"url": "https://github.com/laravel-shift/laravel-nestedset.git"
27+
}
28+
],
2329
"require": {
24-
"php": "^8.1",
25-
"laravel/framework": "^10.0",
26-
"kalnoy/nestedset": "^6.0",
27-
"doctrine/dbal": "^3.5"
30+
"php": "^8.2",
31+
"laravel/framework": "^11.0",
32+
"kalnoy/nestedset": "dev-l11-compatibility",
33+
"doctrine/dbal": "^4.0"
2834
},
2935
"require-dev": {
30-
"orchestra/testbench": "^8.0"
36+
"orchestra/testbench": "^9.0"
3137
},
3238
"autoload": {
3339
"psr-4": {

0 commit comments

Comments
 (0)