Skip to content

Commit

Permalink
Deletion action for front- and back-end. Final polishing. Code covera…
Browse files Browse the repository at this point in the history
…ge/tests remaining.
  • Loading branch information
runyan-co committed Sep 1, 2021
1 parent 4af85ed commit 3c2e235
Show file tree
Hide file tree
Showing 14 changed files with 853 additions and 147 deletions.
18 changes: 2 additions & 16 deletions app/Http/Controllers/RecordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ public function retrieve(Request $request, Record $record): JsonResponse
: response()->json(RecordResource::collection($record::all()));
}

/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function create(Request $request): JsonResponse
{
return response()->json([]);
}

/**
* Update the specified resource in storage.
*
Expand Down Expand Up @@ -73,12 +62,9 @@ public function update(Request $request, Record $record): JsonResponse

/**
* Remove the specified resource from storage.
*
* @param \App\Models\Record $record
* @return \Illuminate\Http\Response
*/
public function destroy(Record $record): JsonResponse
public function delete(Request $request, Record $record): JsonResponse
{
return response()->json([]);
return response()->json([$record->delete()]);
}
}
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "alex-runyan-process-maker-code-test",
"private": true,
"scripts": {
"development": "mix",
Expand All @@ -13,6 +14,7 @@
"bootstrap-vue": "^2.21.2",
"laravel-mix": "^6.0.28",
"popper.js": "^1.16.1",
"portal-vue": "^2.1.7",
"vue": "^2.6.12"
},
"devDependencies": {
Expand Down
216 changes: 216 additions & 0 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -12345,4 +12345,220 @@ input[type=color].form-control:disabled {
font-size: 125%;
vertical-align: text-bottom;
}
/*!
* BootstrapVue Icons Custom CSS (https://bootstrap-vue.org)
*/
.bv-no-focus-ring:focus {
outline: none;
}

@media (max-width: 575.98px) {
.bv-d-xs-down-none {
display: none !important;
}
}
@media (max-width: 767.98px) {
.bv-d-sm-down-none {
display: none !important;
}
}
@media (max-width: 991.98px) {
.bv-d-md-down-none {
display: none !important;
}
}
@media (max-width: 1199.98px) {
.bv-d-lg-down-none {
display: none !important;
}
}
.bv-d-xl-down-none {
display: none !important;
}

.b-icon.bi {
display: inline-block;
overflow: visible;
vertical-align: -0.15em;
}
.b-icon.b-icon-animation-cylon, .b-icon.b-iconstack .b-icon-animation-cylon > g {
transform-origin: center;
-webkit-animation: 0.75s infinite ease-in-out alternate b-icon-animation-cylon;
animation: 0.75s infinite ease-in-out alternate b-icon-animation-cylon;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-cylon, .b-icon.b-iconstack .b-icon-animation-cylon > g {
-webkit-animation: none;
animation: none;
}
}
.b-icon.b-icon-animation-cylon-vertical, .b-icon.b-iconstack .b-icon-animation-cylon-vertical > g {
transform-origin: center;
-webkit-animation: 0.75s infinite ease-in-out alternate b-icon-animation-cylon-vertical;
animation: 0.75s infinite ease-in-out alternate b-icon-animation-cylon-vertical;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-cylon-vertical, .b-icon.b-iconstack .b-icon-animation-cylon-vertical > g {
-webkit-animation: none;
animation: none;
}
}
.b-icon.b-icon-animation-fade, .b-icon.b-iconstack .b-icon-animation-fade > g {
transform-origin: center;
-webkit-animation: 0.75s infinite ease-in-out alternate b-icon-animation-fade;
animation: 0.75s infinite ease-in-out alternate b-icon-animation-fade;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-fade, .b-icon.b-iconstack .b-icon-animation-fade > g {
-webkit-animation: none;
animation: none;
}
}
.b-icon.b-icon-animation-spin, .b-icon.b-iconstack .b-icon-animation-spin > g {
transform-origin: center;
-webkit-animation: 2s infinite linear normal b-icon-animation-spin;
animation: 2s infinite linear normal b-icon-animation-spin;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-spin, .b-icon.b-iconstack .b-icon-animation-spin > g {
-webkit-animation: none;
animation: none;
}
}
.b-icon.b-icon-animation-spin-reverse, .b-icon.b-iconstack .b-icon-animation-spin-reverse > g {
transform-origin: center;
animation: 2s infinite linear reverse b-icon-animation-spin;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-spin-reverse, .b-icon.b-iconstack .b-icon-animation-spin-reverse > g {
-webkit-animation: none;
animation: none;
}
}
.b-icon.b-icon-animation-spin-pulse, .b-icon.b-iconstack .b-icon-animation-spin-pulse > g {
transform-origin: center;
-webkit-animation: 1s infinite steps(8) normal b-icon-animation-spin;
animation: 1s infinite steps(8) normal b-icon-animation-spin;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-spin-pulse, .b-icon.b-iconstack .b-icon-animation-spin-pulse > g {
-webkit-animation: none;
animation: none;
}
}
.b-icon.b-icon-animation-spin-reverse-pulse, .b-icon.b-iconstack .b-icon-animation-spin-reverse-pulse > g {
transform-origin: center;
animation: 1s infinite steps(8) reverse b-icon-animation-spin;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-spin-reverse-pulse, .b-icon.b-iconstack .b-icon-animation-spin-reverse-pulse > g {
-webkit-animation: none;
animation: none;
}
}
.b-icon.b-icon-animation-throb, .b-icon.b-iconstack .b-icon-animation-throb > g {
transform-origin: center;
-webkit-animation: 0.75s infinite ease-in-out alternate b-icon-animation-throb;
animation: 0.75s infinite ease-in-out alternate b-icon-animation-throb;
}
@media (prefers-reduced-motion: reduce) {
.b-icon.b-icon-animation-throb, .b-icon.b-iconstack .b-icon-animation-throb > g {
-webkit-animation: none;
animation: none;
}
}

@-webkit-keyframes b-icon-animation-cylon {
0% {
transform: translateX(-25%);
}
100% {
transform: translateX(25%);
}
}

@keyframes b-icon-animation-cylon {
0% {
transform: translateX(-25%);
}
100% {
transform: translateX(25%);
}
}
@-webkit-keyframes b-icon-animation-cylon-vertical {
0% {
transform: translateY(25%);
}
100% {
transform: translateY(-25%);
}
}
@keyframes b-icon-animation-cylon-vertical {
0% {
transform: translateY(25%);
}
100% {
transform: translateY(-25%);
}
}
@-webkit-keyframes b-icon-animation-fade {
0% {
opacity: 0.1;
}
100% {
opacity: 1;
}
}
@keyframes b-icon-animation-fade {
0% {
opacity: 0.1;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes b-icon-animation-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
@keyframes b-icon-animation-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
@-webkit-keyframes b-icon-animation-throb {
0% {
opacity: 0.5;
transform: scale(0.5);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes b-icon-animation-throb {
0% {
opacity: 0.5;
transform: scale(0.5);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.btn .b-icon.bi,
.nav-link .b-icon.bi,
.dropdown-toggle .b-icon.bi,
.dropdown-item .b-icon.bi,
.input-group-text .b-icon.bi {
font-size: 125%;
vertical-align: text-bottom;
}

Loading

0 comments on commit 3c2e235

Please sign in to comment.