Changes to plantumlgen1.scroll.pub

root
root
20 days ago
Initial commit
body.html
Changed around line 1
+
+

PlantUML Generator

+

Describe your diagram in plain text and generate PlantUML code instantly.

+
+
+
+
+
+
+
+

Generated PlantUML Code

+
+
+
+
+

PlantUML Generator - Create diagrams with ease.

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://plantumlgen.scroll.pub
+ metaTags
+ editButton /edit.html
+ title PlantUML Generator
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "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
\n

PlantUML Generator

\n

Describe your diagram in plain text and generate PlantUML code instantly.

\n
\n
\n
\n \n \n
\n
\n

Generated PlantUML Code

\n
\n  
\n
\n
\n

PlantUML Generator - Create diagrams with ease.

\n
\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"
+ }
readme.scroll
Changed around line 1
+ # plantumlgen1.scroll.pub
+ Website generated by DeepSeek from prompt: 我需要一个网站,可以根据我的描述,生成plantuml文件
script.js
Changed around line 1
+ 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`;
+ }
style.css
Changed around line 1
+ 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;
+ }
+ }