commit 155f725f0cc95341bdebdf79a32fcd7620cff657
Author: root <root@hub.scroll.pub>
Date: 2025-01-02 02:22:18 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..c50850b
--- /dev/null
+++ b/body.html
@@ -0,0 +1,17 @@
+<header>
+ <h1>PlantUML Generator</h1>
+ <p>Describe your diagram in plain text and generate PlantUML code instantly.</p>
+</header>
+<main>
+ <section>
+ <textarea id="description" placeholder="Enter your diagram description here..." rows="5"></textarea>
+ <button id="generateBtn">Generate PlantUML</button>
+ </section>
+ <section>
+ <h2>Generated PlantUML Code</h2>
+ <pre id="plantumlCode"></pre>
+ </section>
+</main>
+<footer>
+ <p>PlantUML Generator - Create diagrams with ease.</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..9e30644
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://plantumlgen.scroll.pub
+metaTags
+editButton /edit.html
+title PlantUML 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..17f805c
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "15518a17-7e2f-4a9b-b10a-c86f0c6f5dc7",
+ "object": "chat.completion",
+ "created": 1735784524,
+ "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 Generator\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>PlantUML Generator</h1>\n <p>Describe your diagram in plain text and generate PlantUML code instantly.</p>\n</header>\n<main>\n <section>\n <textarea id=\"description\" placeholder=\"Enter your diagram description here...\" rows=\"5\"></textarea>\n <button id=\"generateBtn\">Generate PlantUML</button>\n </section>\n <section>\n <h2>Generated PlantUML Code</h2>\n <pre id=\"plantumlCode\"></pre>\n </section>\n</main>\n<footer>\n <p>PlantUML Generator - Create diagrams with ease.</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Arial', 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;\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;\n max-width: 800px;\n margin: 0 auto;\n}\n\nsection {\n margin-bottom: 2rem;\n}\n\ntextarea {\n width: 100%;\n padding: 1rem;\n border: 1px solid #ddd;\n border-radius: 5px;\n font-size: 1rem;\n margin-bottom: 1rem;\n}\n\nbutton {\n background: #4a90e2;\n color: white;\n border: none;\n padding: 1rem 2rem;\n font-size: 1rem;\n border-radius: 5px;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\nbutton:hover {\n background: #357abd;\n}\n\npre {\n background: #f9f9f9;\n padding: 1rem;\n border: 1px solid #ddd;\n border-radius: 5px;\n overflow-x: auto;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: #4a90e2;\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n textarea {\n font-size: 0.9rem;\n }\n\n button {\n width: 100%;\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('generateBtn').addEventListener('click', function() {\n const description = document.getElementById('description').value;\n const plantumlCode = generatePlantUML(description);\n document.getElementById('plantumlCode').textContent = plantumlCode;\n});\n\nfunction generatePlantUML(description) {\n // Simple example: Convert description to PlantUML code\n // This is a placeholder; you can expand this function to handle more complex descriptions\n return `@startuml\\n${description}\\n@enduml`;\n}\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 247,
+ "completion_tokens": 794,
+ "total_tokens": 1041,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 247
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..8c61348
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# plantumlgen1.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..a8dbca9
--- /dev/null
+++ b/script.js
@@ -0,0 +1,11 @@
+document.getElementById('generateBtn').addEventListener('click', function() {
+ const description = document.getElementById('description').value;
+ const plantumlCode = generatePlantUML(description);
+ document.getElementById('plantumlCode').textContent = plantumlCode;
+});
+
+function generatePlantUML(description) {
+ // Simple example: Convert description to PlantUML code
+ // This is a placeholder; you can expand this function to handle more complex descriptions
+ return `@startuml\n${description}\n@enduml`;
+}
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..279e832
--- /dev/null
+++ b/style.css
@@ -0,0 +1,94 @@
+body {
+ font-family: 'Arial', 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;
+ 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;
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+section {
+ margin-bottom: 2rem;
+}
+
+textarea {
+ width: 100%;
+ padding: 1rem;
+ border: 1px solid #ddd;
+ border-radius: 5px;
+ font-size: 1rem;
+ margin-bottom: 1rem;
+}
+
+button {
+ background: #4a90e2;
+ color: white;
+ border: none;
+ padding: 1rem 2rem;
+ font-size: 1rem;
+ border-radius: 5px;
+ cursor: pointer;
+ transition: background 0.3s ease;
+}
+
+button:hover {
+ background: #357abd;
+}
+
+pre {
+ background: #f9f9f9;
+ padding: 1rem;
+ border: 1px solid #ddd;
+ border-radius: 5px;
+ overflow-x: auto;
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background: #4a90e2;
+ color: white;
+ margin-top: 2rem;
+}
+
+@media (max-width: 600px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ textarea {
+ font-size: 0.9rem;
+ }
+
+ button {
+ width: 100%;
+ padding: 1rem;
+ }
+}
\ No newline at end of file