v4.1.9: Начальная производственная версия

- Полный backend на Hono + TypeScript
- SQLite база данных с 38 записями
- 3 пользователя: admin, aknaproff, kasutaja
- Модальное окно reportModal (4 шага)
- Docker конфигурация для Synology ARM
- Все миграции (0001-0017)
- Frontend: vanilla HTML/JS (original.html)
This commit is contained in:
Deploy Bot
2025-12-31 12:00:00 +02:00
parent afea76b053
commit 4898f5ec7f
381 changed files with 9105 additions and 65477 deletions

View File

@@ -1,116 +0,0 @@
<?php
namespace App\Http\Controllers;
use App\FormDataComment;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\View;
class FormDataCommentController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
try {
$input = $request->only('form_data_id', 'comment');
$input['user_id'] = \Auth::id();
$comment = FormDataComment::create($input);
$comments[] = FormDataComment::with('commentedBy')
->findOrFail($comment->id);
//generate comment html
$comment_html = View::make('form_data.partials.comment')
->with(compact('comments'))
->render();
$output = $this->respondSuccess(__('messages.success'), ['comment' => $comment_html]);
} catch (Exception $e) {
$output = $this->respondWentWrong($e);
}
return $output;
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
try {
$form_data_id = request()->input('form_data_id');
$comment = FormDataComment::where('form_data_id', $form_data_id)
->findOrFail($id);
$comment->delete();
$output = $this->respondSuccess();
} catch (Exception $e) {
$output = $this->respondWentWrong($e);
}
return $output;
}
}