-
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.
Browse files
Browse the repository at this point in the history
* create basic crud layout * refactor: decouple from 'demo' and '87-login-page-improvements' branches * fix: duration input is cut when expanding the test * fix: duration can be set to number the exceeds the max limit * fix: remove copying for multiple quizzes * fix: delete button deletes all questions * style: answer check button color and position * style: create new answers with empty content * build: update packages * fix: linting * chore: merge button logic * fix: remove time limits for datepicker * fix: error message is not fully visible * fix: `schedule_at` error message contains untranslated word 'now' fix: make fix * fix: wrong interpritation of time after quiz update fix * style: add animation to quizzes occurence * format: remove unused import * style: add animations for icon-buttons * apply suggestion: change 'Stworzony' na 'Utworzony' * fix: sorting isn' t preserved after page reload * fix: deletion alert doesn't close when clicking "Usuń" * chore: preserve state and scroll in request components by default * fix: seeder creates quizzes that can't exist * feat: add placeholders for empty textareas * fix: "Zaproś uczestników" redirects to entry that doesn't yet exist * fix: typo in "Zaproś uczestników" * feat: add sorting by modification * feat: make pre-publish validation message more specific * fix: publish button doesn't switch its state * feat: add " - kopia" to the end of the tile of a copied quiz * format: `"` to `'` * fix: sorting state is preserved between sessions * style: change 'Nie można oddać testu.' to 'Nie można opublikować testu.' * refactor: suggestions from code review * chore: add archieved quizzes to seeder * build: update packages * feat: add dropdown pointer positioning * fix: quiz title underline * fix: duration input doesn't resize fully * feat: error handle empty question * refactor: link button styling * create warning message box * move sorting logic to a separate helper * fix: cloning doesn't add data to database * fix: error highliting on question deletion reappears on the next question * feat: automatically remove empty answers * fix: revert update logic * create basic crud for schools * simplify quizzes page * fix linter errors * fix code style * rename value to address * add regon to school * fix code style * add lintf * create mobile version * add newItem slot * remove limit from school controller * create CrudInput * fix InputWrapper * remove force-full-screen-nav * add prop pointer-position to Dropdown * change import button icon * improve code style * add comments explaining textarea height reset * Replace ButtonFrame with Button * allow manual implementation of the 'New Item' button * improve ButtonFrame * fix code style * move resize none to vDynamicTextAreaHeight.ts * fix InputWrapper * add padding to ButtonFrame * fix linter errors * consider placeholder when calculating input width * add fix-all * update phony * implement frontend for UsersPanel.vue * fix new item mode * fix CrudInput * fix linter errors * Update resources/js/Pages/Admin/SchoolsPanel.vue Co-authored-by: Ewelina Skrzypacz <[email protected]> * add regon validator * fix school seeder * fix code style * add zip-code input * validate the length of the inputs * create icon button * create SortHelper Co-authored-by: Dominikaninn <[email protected]> * add pagination to CRUDPage * fix tests * fix abort mock * fix test * fix abort mock * fix test * add information about the number of fetched schools * make filter case-insensitive * debounce searchbar * fix code style * fix sort test * add icon button * rename QuizLayout to QuizPage * fix unsupported_field translation * fix sorter href * create no content component * fix crud cancel button * rename ExapnsionToggleDynamicIcon to ExpansionToggleDynamicIcon * hide delete button if quiz is locked * change user name to firstname * fix code style * fix NoContent * fix typo * Update resources/js/Pages/Admin/Quizzes.vue Co-authored-by: Ewelina Skrzypacz <[email protected]> * update rspo api url * style: change searchbar design * fix quiz filtering * reverse default sorting order * fix input size * update sort option labels * fix typo * hide pagination button when there is no content * fix test * pagination draft * add pagination to user panel * fix sorting by school * implement admin panel * fix user tests * fix code style * fix admin tests * fix console errors * Apply suggestions from code review Co-authored-by: Ewelina Skrzypacz <[email protected]> * Fix not displaying username validation errors * fix tests * fix: Clear inputs not saving correctly on edit forms * fix code style * limit password to 255 characters * refactor admin creation to auto-assign school and fix password update logic * clear inputs after successful save request * hide admin school in school input * Apply suggestions from code review Co-authored-by: Mykyta Mykulskyi <[email protected]> * fix input animations * fix user page title * add gap-2 to user inputs * remove text-center from crud-school-input * change crud-school-input border color * replace trash icon with UserMinusIcon * remove school_id from user resource * remove mobile-nav * remove mobile-nav prop * add format prop to CrudInput * replace inputs with CrudInput * fix code style * remove default title implementation * fix code style * remove unnecessary default value reset after success update * remove unused import * remove randomness from test * make newItemData partial --------- Co-authored-by: Mykyta Mykulskyi <[email protected]> Co-authored-by: Mik <Mykyta Mykulskyi> Co-authored-by: Mykyta Mykulskyi <[email protected]> Co-authored-by: Ewelina Skrzypacz <[email protected]>
- Loading branch information
1 parent
1a20886
commit 8ec02ac
Showing
27 changed files
with
730 additions
and
200 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
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,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Http\Requests; | ||
|
||
use Illuminate\Foundation\Http\FormRequest; | ||
|
||
class AdminRequest extends FormRequest | ||
{ | ||
public function authorize(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function rules(): array | ||
{ | ||
return [ | ||
"email" => ["required", "string", "email", "max:255", "unique:users,email," . $this->user->id], | ||
"firstname" => ["required", "string", "max:255"], | ||
"surname" => ["required", "string", "max:255"], | ||
"password" => ["nullable", "string", "min:8", "max:255"], | ||
]; | ||
} | ||
} |
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,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Http\Requests\Auth; | ||
|
||
use Illuminate\Foundation\Http\FormRequest; | ||
|
||
class RegisterAdminRequest extends FormRequest | ||
{ | ||
public function authorize(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function rules(): array | ||
{ | ||
return [ | ||
"email" => ["required", "string", "email:rfc,dns", "max:255"], | ||
"firstname" => ["required", "string", "max:255"], | ||
"surname" => ["required", "string", "max:255"], | ||
"password" => ["required", "string", "min:8", "max:255"], | ||
]; | ||
} | ||
} |
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.