Migrate frontend to Svelte 5 runes semantics

This commit is contained in:
2026-03-11 11:29:24 +03:00
parent e50fc4c476
commit abfe06cea3
61 changed files with 989 additions and 922 deletions

View File

@@ -12,7 +12,6 @@
<script>
// [SECTION: IMPORTS]
import { createEventDispatcher, onMount } from "svelte";
import { gitService } from "../../services/gitService";
import { addToast as toast } from "../../lib/toasts.js";
import { api } from "../../lib/api";
@@ -33,8 +32,6 @@
let generatingMessage = $state(false);
// [/SECTION]
const dispatch = createEventDispatcher();
// [DEF:handleGenerateMessage:Function]
/**
* @purpose Generates a commit message using LLM.
@@ -107,7 +104,7 @@
/**
* @purpose Создает коммит с указанным сообщением.
* @pre message не должно быть пустым.
* @post Коммит создан, событие отправлено, модальное окно закрыто.
* @post Коммит создан и модальное окно закрыто.
*/
async function handleCommit() {
if (!message) return;
@@ -118,7 +115,6 @@
try {
await gitService.commit(dashboardId, message, [], envId);
toast($t.git?.commit_success, "success");
dispatch("commit");
show = false;
message = "";
console.log(`[CommitModal][Coherence:OK] Committed`);