2 Commits
Author SHA1 Message Date
alu 02c5e9c7e8 ci test
tronnet/workflows: Static Analysis -- Golang / static-go (push) Failing after 4s
2026-07-30 19:01:22 +00:00
alu 9306058e90 use replace for web instead of static import
tronnet/workflows: Static Analysis -- Golang / lint-check (push) Failing after 4s
tronnet/workflows: Static Analysis -- Golang / static-go (push) Failing after 3s
2026-07-30 18:58:53 +00:00
8 changed files with 31 additions and 41 deletions
+2
View File
@@ -1,3 +1,5 @@
**/config.json **/config.json
**/package-lock.json
**/node_modules
dist/* dist/*
go.sum go.sum
+2 -3
View File
@@ -1,4 +1,4 @@
.PHONY: build build-web build-wfa-js clean clean-wfa-js ensure-dist workflow-init .PHONY: build test clean wfa-js
build: clean ensure-dist build-web build-wfa-js build: clean ensure-dist build-web build-wfa-js
@echo "======================== Building Binary =======================" @echo "======================== Building Binary ======================="
@@ -23,5 +23,4 @@ clean-wfa-js:
ensure-dist: ensure-dist:
mkdir -p dist mkdir -p dist
workflow-init: ensure-dist build-web workflow-init: ensure-dist build-web build-wfa-js
cp -r dev_config/. .
+1 -1
View File
@@ -42,7 +42,7 @@ func Run() {
router.GET("/settings", routes.HandleGETSettings) router.GET("/settings", routes.HandleGETSettings)
// run on all interfaces with port // run on all interfaces with port
log.Fatal("[ERR ] starting gin router: ", router.Run(fmt.Sprintf("0.0.0.0:%d", common.Global.Port))) log.Fatal("[ERR ] starting gin router1: ", router.Run(fmt.Sprintf("0.0.0.0:%d", common.Global.Port)))
} }
// setup static resources under web (css, images, modules, scripts) // setup static resources under web (css, images, modules, scripts)
-3
View File
@@ -1,3 +0,0 @@
web/modules/*
WFA-JS/*
dist/*
-3
View File
@@ -1,3 +0,0 @@
web/modules/*
WFA-JS/*
dist/*
+3 -7
View File
@@ -1,11 +1,8 @@
import { defineConfig, globalIgnores } from "eslint/config"; import { defineConfig } from "eslint/config";
import globals from "globals"; import globals from "globals";
import js from "@eslint/js"; import js from "@eslint/js";
export default defineConfig([ export default defineConfig([js.configs.recommended,{
js.configs.recommended,
globalIgnores(["dist/", "web/modules", "WFA-JS"]),
{
languageOptions: { languageOptions: {
globals: { globals: {
...globals.browser, ...globals.browser,
@@ -29,5 +26,4 @@ export default defineConfig([
}], }],
"prefer-const": ["error"] "prefer-const": ["error"]
}, },
} }]);
]);
+1 -1
View File
@@ -96,7 +96,7 @@ class ErrorDialog extends HTMLElement {
} }
navigator.clipboard.writeText(errors); navigator.clipboard.writeText(errors);
} }
this.dialog.close(); this.parentElement.removeChild(this);
}); });
} }
-1
View File
@@ -6,7 +6,6 @@ window.addEventListener("DOMContentLoaded", init);
async function init () { async function init () {
await deleteAllCookies(); await deleteAllCookies();
setAppearance(); setAppearance();
const formSubmitButton = document.querySelector("#submit"); const formSubmitButton = document.querySelector("#submit");
formSubmitButton.addEventListener("click", async (e) => { formSubmitButton.addEventListener("click", async (e) => {
e.preventDefault(); e.preventDefault();