commit f992d3b000da0fbaa1462bc2a94e3fe217f5199a
Author: root <root@hub.scroll.pub>
Date: 2025-01-02 02:17:34 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..9c9f02c
--- /dev/null
+++ b/body.html
@@ -0,0 +1,16 @@
+<header>
+ <h1>PlantUML Flowchart Generator</h1>
+ <p>Describe your flowchart in plain text and see it visualized instantly.</p>
+</header>
+<main>
+ <section>
+ <textarea id="description" placeholder="Enter your flowchart description here..."></textarea>
+ <button id="generate">Generate Flowchart</button>
+ </section>
+ <section>
+ <div id="flowchart"></div>
+ </section>
+</main>
+<footer>
+ <p>Created with ❤️ for visualizing ideas.</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..d872831
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://plantumlgen.scroll.pub
+metaTags
+editButton /edit.html
+title PlantUML Flowchart Generator
+style.css
+body.html
+script.js
\ No newline at end of file
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..4f1feb1
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "ec9a8842-57e2-4a82-a205-c9f43396810e",
+ "object": "chat.completion",
+ "created": 1735784241,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nplantumlgen.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://plantumlgen.scroll.pub\nmetaTags\neditButton /edit.html\ntitle PlantUML Flowchart Generator\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>PlantUML Flowchart Generator</h1>\n <p>Describe your flowchart in plain text and see it visualized instantly.</p>\n</header>\n<main>\n <section>\n <textarea id=\"description\" placeholder=\"Enter your flowchart description here...\"></textarea>\n <button id=\"generate\">Generate Flowchart</button>\n </section>\n <section>\n <div id=\"flowchart\"></div>\n </section>\n</main>\n<footer>\n <p>Created with ❤️ for visualizing ideas.</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background: linear-gradient(135deg, #f5f7fa, #c3cfe2);\n color: #333;\n line-height: 1.6;\n}\n\nheader {\n background: #4a90e2;\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n padding: 2rem 1rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\ntextarea {\n width: 100%;\n height: 150px;\n padding: 1rem;\n border: 1px solid #ddd;\n border-radius: 8px;\n font-size: 1rem;\n margin-bottom: 1rem;\n resize: vertical;\n}\n\nbutton {\n background: #4a90e2;\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 8px;\n font-size: 1rem;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\nbutton:hover {\n background: #357abd;\n}\n\n#flowchart {\n margin-top: 2rem;\n padding: 1rem;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: #333;\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n textarea {\n height: 100px;\n }\n}\n---script.js---\ndocument.getElementById('generate').addEventListener('click', function() {\n const description = document.getElementById('description').value;\n if (description.trim() === '') {\n alert('Please enter a description for the flowchart.');\n return;\n }\n\n const encodedDescription = encodeURIComponent(description);\n const plantUmlUrl = `https://www.plantuml.com/plantuml/svg/~1${encodedDescription}`;\n\n const flowchartDiv = document.getElementById('flowchart');\n flowchartDiv.innerHTML = `<img src=\"${plantUmlUrl}\" alt=\"Generated Flowchart\" style=\"width:100%;\">`;\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 248,
+ "completion_tokens": 800,
+ "total_tokens": 1048,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 248
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..a2d7b96
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# plantumlgen.scroll.pub
+Website generated by DeepSeek from prompt: 我需要一个网站,可以根据我的描述,绘制一个plantuml流程图
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..96bc600
--- /dev/null
+++ b/script.js
@@ -0,0 +1,13 @@
+document.getElementById('generate').addEventListener('click', function() {
+ const description = document.getElementById('description').value;
+ if (description.trim() === '') {
+ alert('Please enter a description for the flowchart.');
+ return;
+ }
+
+ const encodedDescription = encodeURIComponent(description);
+ const plantUmlUrl = `https://www.plantuml.com/plantuml/svg/~1${encodedDescription}`;
+
+ const flowchartDiv = document.getElementById('flowchart');
+ flowchartDiv.innerHTML = `<img src="${plantUmlUrl}" alt="Generated Flowchart" style="width:100%;">`;
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..ff628a6
--- /dev/null
+++ b/style.css
@@ -0,0 +1,87 @@
+body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ margin: 0;
+ padding: 0;
+ background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
+ color: #333;
+ line-height: 1.6;
+}
+
+header {
+ background: #4a90e2;
+ color: white;
+ padding: 2rem 1rem;
+ text-align: center;
+}
+
+header h1 {
+ margin: 0;
+ font-size: 2.5rem;
+}
+
+header p {
+ margin: 0.5rem 0 0;
+ font-size: 1.2rem;
+}
+
+main {
+ padding: 2rem 1rem;
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+textarea {
+ width: 100%;
+ height: 150px;
+ padding: 1rem;
+ border: 1px solid #ddd;
+ border-radius: 8px;
+ font-size: 1rem;
+ margin-bottom: 1rem;
+ resize: vertical;
+}
+
+button {
+ background: #4a90e2;
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: 8px;
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background 0.3s ease;
+}
+
+button:hover {
+ background: #357abd;
+}
+
+#flowchart {
+ margin-top: 2rem;
+ padding: 1rem;
+ background: white;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background: #333;
+ color: white;
+ margin-top: 2rem;
+}
+
+@media (max-width: 768px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ textarea {
+ height: 100px;
+ }
+}
\ No newline at end of file