Skip to content

Commit

Permalink
Merge pull request #1 from jan-nicklaus/frontend
Browse files Browse the repository at this point in the history
Frontend integration
  • Loading branch information
jan-nicklaus committed Mar 24, 2024
2 parents b227ee0 + 4574eb2 commit 153ab09
Show file tree
Hide file tree
Showing 1,932 changed files with 302,619 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
43 changes: 43 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<title>Legal Prompt Builder</title>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
<link href="style.css" rel="stylesheet">
</head>
<body>
<script type="text/javascript">
document.addEventListener("alpine:init", () => {
Alpine.data("state", () => ({
"task": "entscheid-zsfg",
"fields": {
"entscheid-zsfg": {
"display_name": "Entscheid zusammenfassen",
"inputs": [
{
"name": "fundstelle",
"display_name": "Fundstelle",
"type": "text"
},
{
"name": "rolle",
"display_name": "Was ist Ihre Rolle?",
"type": "text"
}
]
}
},
async getTaskSelectHTML() {
return `<select>
${Object.keys(this.fields).map(t => "<option")}
</select>`
}
}))
});
</script>
<div x-data="state" id="basediv">
<h1 class="text-2xl">Legal Prompt Builder v0.1</h1>
<div x-html="getTaskSelectHTML"></div>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions frontend/node_modules/.bin/cssesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/glob

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/jiti

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/nanoid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/node-which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/resolve

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/sucrase

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/sucrase-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/tailwind

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/tailwindcss

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/node_modules/.bin/yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 153ab09

Please sign in to comment.