Refactor entry API: consolidate entry handling, update naming conventions, and enhance error reporting

This commit is contained in:
marc-go committed 2026-10-11 19:19:36 +02:00
1 parent 205f2e2f73
commit ad9290d2ad
9 files changed
+72 -12

No files matched your search

@@ -101,7 +101,7 @@
<md-icon-button id="toggle" aria-label="Menü ein-/ausklappen">
<md-icon>menu</md-icon>
</md-icon-button>
<span class="title">Dashboard</span>
<span class="md-typescale-body-large title">%appname%</span>
</div>
<md-list>
@@ -117,7 +117,14 @@
</aside>
<main class="content">
<h1>Dashboard</h1>
<h1 class="md-typescale-display-large">%appname%</h1>
<h3 class="md-typescale-display-medium">Entrys</h3>
<md-list>
<md-list-item>
<div slot="headline">Cucumber</div>
<div slot="supporting-text">Cucumbers are long green fruits that are just as long as this multi-line description</div>
</md-list-item>
</md-list>
</main>
</div>
@@ -16,7 +16,7 @@
document.adoptedStyleSheets.push(typescaleStyles.styleSheet);
</script>
<title>%appname% // Entrys</title>
<title>%appname% // Entries</title>
<style>
:root {
@@ -86,7 +86,7 @@
name = document.getElementById("entry_name").value;
text = document.getElementById("entry_text").value;
fetch("/api/entrys/add.php", {
fetch("/api/entry/add.php", {
method: "POST",
body: JSON.stringify({
name: name,
+4 -4
View File
@@ -15,10 +15,10 @@
"css_files":[]
},
"entrys_frontend":{
"name":"entrys_frontend",
"dir_name":"entrys_frontend",
"html_file":"entrys_frontend.html",
"entries_frontend":{
"name":"entries_frontend",
"dir_name":"entries_frontend",
"html_file":"entries_frontend.html",
"css_files":[]
},