fixed Lua Runtime. Plugins now have priority for hooks and POST for routes if requested. also changed the CSS for main.css to color #1e1e1e for darkmode body

This commit is contained in:
2025-10-06 11:22:05 +02:00
parent 4a03e37aed
commit 06217188e1
15 changed files with 1180 additions and 1262 deletions

89
.vscode/settings.json vendored
View File

@@ -1,27 +1,66 @@
{
"Lua.diagnostics.globals": [
"read_file",
"write_file",
"read_html",
"write_html",
"list_html_files",
"read_markdown",
"write_markdown",
"list_markdown_files",
"html_find_tag",
"html_replace_tag",
"html_insert_before",
"html_insert_after",
"html_wrap_content",
"md_add_header",
"md_replace_section",
"md_append_content",
"table_to_json",
"json_to_table",
"add_route",
"register_hook",
"log",
"log_warn",
"log_error"
]
// Lua Language Server settings
"Lua.runtime.version": "Lua 5.4",
"Lua.workspace.checkThirdParty": false,
"Lua.workspace.library": [
"./.vscode"
],
"Lua.hint.enable": true,
"Lua.completion.callSnippet": "Both",
"Lua.completion.autoRequire": false,
// Diagnostics: treat these globals as known
"Lua.diagnostics.globals": [
"add_route",
"add_get_route",
"add_post_route",
"register_hook",
"list_html_files",
"list_markdown_files",
"write_markdown",
"html_add_class",
"html_add_attribute",
"html_insert_before",
"html_insert_after",
"html_wrap_content",
"html_remove_tag",
"md_add_header",
"md_replace_section",
"md_append_content",
"md_prepend_content",
"md_insert_at_position",
"md_find_section",
"md_remove_section",
"md_add_list_item",
"md_wrap_code_block",
"table_to_json",
"json_to_table",
"json_parse",
"json_stringify",
"string_split",
"string_join",
"string_replace",
"string_match",
"string_match_all",
"file_exists",
"file_size",
"list_directory",
"log"
],
// Formatting
"Lua.format.enable": true,
"Lua.format.defaultConfig": {
"indent_style": "space",
"indent_size": "2"
},
// Disable warnings about lowercase globals
"Lua.diagnostics.disable": [
"lowercase-global"
],
// Optional
"Lua.telemetry.enable": false
}