semantic markup update

This commit is contained in:
2026-01-18 21:29:54 +03:00
parent 11c59fb420
commit 76baeb1038
85 changed files with 7020 additions and 5953 deletions

View File

@@ -50,6 +50,8 @@
// [DEF:loadSettings:Function]
/**
* @purpose Loads settings from the backend.
* @pre Component mounted or refresh requested.
* @post settings object is populated with backend data.
*/
async function loadSettings() {
try {
@@ -67,6 +69,8 @@
// [DEF:handleSaveGlobal:Function]
/**
* @purpose Saves global settings to the backend.
* @pre settings.settings contains valid configuration.
* @post Backend global settings are updated.
*/
async function handleSaveGlobal() {
try {
@@ -84,6 +88,8 @@
// [DEF:handleAddOrUpdateEnv:Function]
/**
* @purpose Adds or updates an environment.
* @pre newEnv contains valid environment details.
* @post Environment list is updated on backend and reloaded locally.
*/
async function handleAddOrUpdateEnv() {
try {
@@ -108,6 +114,8 @@
// [DEF:handleDeleteEnv:Function]
/**
* @purpose Deletes an environment.
* @pre id of environment to delete is provided.
* @post Environment is removed from backend and list is reloaded.
* @param {string} id - The ID of the environment to delete.
*/
async function handleDeleteEnv(id) {
@@ -129,6 +137,8 @@
// [DEF:handleTestEnv:Function]
/**
* @purpose Tests the connection to an environment.
* @pre Environment ID is valid.
* @post Connection test result is displayed via toast.
* @param {string} id - The ID of the environment to test.
*/
async function handleTestEnv(id) {
@@ -152,6 +162,8 @@
// [DEF:editEnv:Function]
/**
* @purpose Sets the form to edit an existing environment.
* @pre env object is provided.
* @post newEnv is populated with env data and editingEnvId is set.
* @param {Object} env - The environment object to edit.
*/
function editEnv(env) {
@@ -163,6 +175,8 @@
// [DEF:resetEnvForm:Function]
/**
* @purpose Resets the environment form.
* @pre None.
* @post newEnv is reset to initial state and editingEnvId is cleared.
*/
function resetEnvForm() {
newEnv = {