-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/bootstrap and font awesome (#6)
* Updates to frontendery * wip M _docker/plugins/default-login.php M app/Models/Person.php M app/Models/Team.php M database/factories/TeamFactory.php M resources/views/layouts/app.blade.php M resources/views/team/index.blade.php M routes/auth.php M tests/Feature/Auth/PasswordUpdateTest.php * additional frontendery M app/View/Components/Input.php M resources/views/components/input.blade.php M resources/views/layouts/app.blade.php M resources/views/team/index.blade.php * Remove bootstrap JS and tailwind * update nav M resources/views/layouts/navigation.blade.php * Add option to just log in as a user locally without a password * Add validationexception to throwing * Update user id in sessions table * class updates M resources/views/components/input.blade.php M resources/views/layouts/navigation.blade.php * remove old nav M resources/views/layouts/navigation.blade.php * wip M app/Http/Controllers/CompetitionController.php M app/Http/Controllers/GameController.php M app/Http/Controllers/PersonController.php M app/Http/Controllers/PositionController.php M app/Http/Controllers/SportController.php M app/Http/Controllers/TeamController.php M app/Models/Game.php M app/Models/Position.php M app/Providers/AppServiceProvider.php M database/factories/CompetitionFactory.php M database/factories/GameFactory.php M database/factories/PersonFactory.php M database/factories/PositionFactory.php M database/factories/SportFactory.php M database/factories/TeamFactory.php M resources/views/auth/login.blade.php M resources/views/competition/create.blade.php M resources/views/competition/edit.blade.php M resources/views/competition/index.blade.php M resources/views/game/create.blade.php M resources/views/game/edit.blade.php M resources/views/game/index.blade.php M resources/views/person/create.blade.php M resources/views/person/edit.blade.php M resources/views/position/create.blade.php M resources/views/position/edit.blade.php M resources/views/position/index.blade.php M resources/views/sport/index.blade.php M stubs/controller.model.stub * testing and some binaries starting M app/Http/Controllers/Auth/AuthenticatedSessionController.php M app/Http/Controllers/LocalLoginAsUserController.php M app/Models/Game.php M app/Models/Position.php M app/Providers/AppServiceProvider.php M app/View/Components/Input.php AM bin/util/exec AM bin/util/install M composer.json M database/factories/PositionFactory.php M database/factories/SportFactory.php M database/migrations/0001_01_01_000000_create_users_table.php M routes/auth.php ?? .github/ ?? bin/util/start * make them executable M bin/util/exec M bin/util/install M bin/util/start * remove - M bin/util/install * missed a word M .github/workflows/testing.yaml * amends for CI M app/Console/Commands/MakeEntity.php M app/Http/Controllers/Auth/ConfirmablePasswordController.php M app/Http/Controllers/Auth/EmailVerificationNotificationController.php M app/Http/Controllers/Auth/EmailVerificationPromptController.php M app/Http/Controllers/Auth/PasswordController.php M app/Http/Controllers/Auth/VerifyEmailController.php M app/Http/Controllers/LocalLoginAsUserController.php M app/Http/Controllers/ProfileController.php M app/Http/Requests/Auth/LoginRequest.php M app/Http/Requests/ProfileUpdateRequest.php M app/Models/Competition.php M app/Models/Game.php M app/Models/Person.php M app/Models/Position.php M app/Models/Sport.php M app/Models/Team.php M app/Models/User.php M app/View/Components/Input.php M composer.json M database/factories/PositionFactory.php * amend model stub M stubs/model.stub
- Loading branch information
1 parent
85102cb
commit b8d0434
Showing
69 changed files
with
657 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "00:00" | ||
timezone: "Europe/London" | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "[DEPS][NPM]" | ||
- package-ecosystem: composer | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "00:00" | ||
timezone: "Europe/London" | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "[DEPS][COMPOSER]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Auto-merge Dependabot PRs | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot: | ||
name: Auto-merge dependabot where appropriate | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- name: Dependabot metadata | ||
id: metadata | ||
uses: dependabot/[email protected] | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Leave a comment with the metadata extracted | ||
run: gh pr comment "$PR_URL" --body "Type is ${{steps.metadata.outputs.update-type}}" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Enable auto-merge for Dependabot PRs | ||
if: | | ||
endsWith(steps.metadata.outputs.update-type, 'semver-patch') || | ||
endsWith(steps.metadata.outputs.update-type, 'semver-minor') | ||
run: | | ||
gh pr comment "$PR_URL" --body "Merging" && \ | ||
gh pr review --approve "$PR_URL" && \ | ||
gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Testing | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache Composer | ||
id: cache-composer | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ hashFiles('composer.lock') }} | ||
- name: Cache NPM | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: ${{ hashFiles('package-lock.json') }} | ||
- name: Install | ||
run: ./bin/util/install | ||
- name: Start | ||
run: ./bin/util/start | ||
# - name: Deptrac | ||
# run: ./_docker/bin/app/composer deptrac | ||
# if: always() | ||
- name: ECS | ||
run: ./bin/util/exec app composer cs:check | ||
if: always() | ||
- name: Stan | ||
run: ./bin/util/exec app composer stan | ||
if: always() | ||
# - name: PHPUnit | ||
# run: ./_docker/bin/app/phpunit-with-coverage | ||
# if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use App\Models\User; | ||
use Illuminate\Http\Request; | ||
use Illuminate\Support\Facades\Auth; | ||
use Symfony\Component\HttpFoundation\RedirectResponse; | ||
|
||
class LocalLoginAsUserController extends Controller | ||
{ | ||
/** | ||
* Handle the incoming request. | ||
*/ | ||
public function __invoke(Request $request): RedirectResponse | ||
{ | ||
$userId = $request->input('user_id'); | ||
$user = User::find($userId); | ||
if ($user instanceof User) { | ||
Auth::login($user); | ||
|
||
return to_route('dashboard'); | ||
} | ||
|
||
$request->session()->flash('error', 'User not found'); | ||
|
||
return to_route('login'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.