commit b95a6bd2102545a2c45a800ffd40410f115a5601
Author: root <root@hub.scroll.pub>
Date: 2025-01-01 05:23:39 +0000
Subject: Deleted index-copy.scroll
diff --git a/index-copy.scroll b/index-copy.scroll
deleted file mode 100644
index 9001dc3..0000000
--- a/index-copy.scroll
+++ /dev/null
@@ -1,8 +0,0 @@
-buildHtml
-baseUrl https://randomcommits.scroll.pub
-metaTags
-editButton /edit.html
-title Random Commits Generator
-style.css
-body.html
-script.js
\ No newline at end of file
commit c336a22f02ffd7c93c21d4d21f5d4291c3749e68
Author: ffff:152.59.143.145 <ffff:152.59.143.145@hub.scroll.pub>
Date: 2025-01-01 05:23:18 +0000
Subject: created index-copy.scroll
diff --git a/index-copy.scroll b/index-copy.scroll
new file mode 100644
index 0000000..9001dc3
--- /dev/null
+++ b/index-copy.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://randomcommits.scroll.pub
+metaTags
+editButton /edit.html
+title Random Commits Generator
+style.css
+body.html
+script.js
\ No newline at end of file
commit 4852623b7dfa68bbca07863bf65a07cd7b20efb0
Author: root <root@hub.scroll.pub>
Date: 2025-01-01 05:22:13 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..d85286b
--- /dev/null
+++ b/body.html
@@ -0,0 +1,25 @@
+<header>
+ <h1>Random Commits Generator</h1>
+ <p>Generate random commits in your GitHub repository from a specified date range.</p>
+</header>
+<main>
+ <form id="commitForm">
+ <label for="token">GitHub Token:</label>
+ <input type="text" id="token" name="token" required placeholder="Enter your GitHub token">
+
+ <label for="repo">Repository Name:</label>
+ <input type="text" id="repo" name="repo" required placeholder="Enter repository name (owner/repo)">
+
+ <label for="startDate">Start Date:</label>
+ <input type="date" id="startDate" name="startDate" required value="2025-01-01">
+
+ <label for="endDate">End Date:</label>
+ <input type="date" id="endDate" name="endDate" required value="2025-12-31">
+
+ <button type="submit">Generate Commits</button>
+ </form>
+ <div id="result"></div>
+</main>
+<footer>
+ <p>Made with ❤️ by DeepSeek</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..9001dc3
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://randomcommits.scroll.pub
+metaTags
+editButton /edit.html
+title Random Commits 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..840d70c
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "776a66a5-eba8-422d-b02b-5f9009022322",
+ "object": "chat.completion",
+ "created": 1735708918,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nrandomcommits.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://randomcommits.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Random Commits Generator\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Random Commits Generator</h1>\n <p>Generate random commits in your GitHub repository from a specified date range.</p>\n</header>\n<main>\n <form id=\"commitForm\">\n <label for=\"token\">GitHub Token:</label>\n <input type=\"text\" id=\"token\" name=\"token\" required placeholder=\"Enter your GitHub token\">\n \n <label for=\"repo\">Repository Name:</label>\n <input type=\"text\" id=\"repo\" name=\"repo\" required placeholder=\"Enter repository name (owner/repo)\">\n \n <label for=\"startDate\">Start Date:</label>\n <input type=\"date\" id=\"startDate\" name=\"startDate\" required value=\"2025-01-01\">\n \n <label for=\"endDate\">End Date:</label>\n <input type=\"date\" id=\"endDate\" name=\"endDate\" required value=\"2025-12-31\">\n \n <button type=\"submit\">Generate Commits</button>\n </form>\n <div id=\"result\"></div>\n</main>\n<footer>\n <p>Made with ❤️ by DeepSeek</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Arial', sans-serif;\n background-color: #f4f4f9;\n color: #333;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-height: 100vh;\n}\n\nheader {\n text-align: center;\n margin-bottom: 2rem;\n}\n\nheader h1 {\n font-size: 2.5rem;\n color: #2c3e50;\n}\n\nheader p {\n font-size: 1.2rem;\n color: #7f8c8d;\n}\n\nmain {\n background: #fff;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n width: 100%;\n max-width: 500px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n margin-bottom: 0.5rem;\n font-weight: bold;\n}\n\ninput {\n margin-bottom: 1rem;\n padding: 0.5rem;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-size: 1rem;\n}\n\nbutton {\n padding: 0.75rem;\n background-color: #3498db;\n color: #fff;\n border: none;\n border-radius: 4px;\n font-size: 1rem;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: #2980b9;\n}\n\n#result {\n margin-top: 1rem;\n font-size: 1rem;\n color: #27ae60;\n}\n\nfooter {\n margin-top: 2rem;\n text-align: center;\n font-size: 0.9rem;\n color: #7f8c8d;\n}\n\n@media (max-width: 600px) {\n main {\n padding: 1rem;\n }\n\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('commitForm').addEventListener('submit', async function(event) {\n event.preventDefault();\n \n const token = document.getElementById('token').value;\n const repo = document.getElementById('repo').value;\n const startDate = document.getElementById('startDate').value;\n const endDate = document.getElementById('endDate').value;\n\n const resultDiv = document.getElementById('result');\n resultDiv.textContent = 'Generating commits...';\n\n try {\n const response = await fetch(`https://api.github.com/repos/${repo}/commits`, {\n method: 'POST',\n headers: {\n 'Authorization': `token ${token}`,\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n start_date: startDate,\n end_date: endDate\n })\n });\n\n if (response.ok) {\n resultDiv.textContent = 'Commits generated successfully!';\n } else {\n const errorData = await response.json();\n resultDiv.textContent = `Error: ${errorData.message}`;\n }\n } catch (error) {\n resultDiv.textContent = 'An error occurred while generating commits.';\n }\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 274,
+ "completion_tokens": 1056,
+ "total_tokens": 1330,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 274
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..787634e
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# randomcommits.scroll.pub
+Website generated by DeepSeek from prompt: Hi deepseek write a code to create a random commits(5-10) in github repository from a given date 01-012025 to 31-12-2025 using github tokens
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..a3bc61d
--- /dev/null
+++ b/script.js
@@ -0,0 +1,34 @@
+document.getElementById('commitForm').addEventListener('submit', async function(event) {
+ event.preventDefault();
+
+ const token = document.getElementById('token').value;
+ const repo = document.getElementById('repo').value;
+ const startDate = document.getElementById('startDate').value;
+ const endDate = document.getElementById('endDate').value;
+
+ const resultDiv = document.getElementById('result');
+ resultDiv.textContent = 'Generating commits...';
+
+ try {
+ const response = await fetch(`https://api.github.com/repos/${repo}/commits`, {
+ method: 'POST',
+ headers: {
+ 'Authorization': `token ${token}`,
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({
+ start_date: startDate,
+ end_date: endDate
+ })
+ });
+
+ if (response.ok) {
+ resultDiv.textContent = 'Commits generated successfully!';
+ } else {
+ const errorData = await response.json();
+ resultDiv.textContent = `Error: ${errorData.message}`;
+ }
+ } catch (error) {
+ resultDiv.textContent = 'An error occurred while generating commits.';
+ }
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..92d93eb
--- /dev/null
+++ b/style.css
@@ -0,0 +1,96 @@
+body {
+ font-family: 'Arial', sans-serif;
+ background-color: #f4f4f9;
+ color: #333;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ min-height: 100vh;
+}
+
+header {
+ text-align: center;
+ margin-bottom: 2rem;
+}
+
+header h1 {
+ font-size: 2.5rem;
+ color: #2c3e50;
+}
+
+header p {
+ font-size: 1.2rem;
+ color: #7f8c8d;
+}
+
+main {
+ background: #fff;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ width: 100%;
+ max-width: 500px;
+}
+
+form {
+ display: flex;
+ flex-direction: column;
+}
+
+label {
+ margin-bottom: 0.5rem;
+ font-weight: bold;
+}
+
+input {
+ margin-bottom: 1rem;
+ padding: 0.5rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+}
+
+button {
+ padding: 0.75rem;
+ background-color: #3498db;
+ color: #fff;
+ border: none;
+ border-radius: 4px;
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+button:hover {
+ background-color: #2980b9;
+}
+
+#result {
+ margin-top: 1rem;
+ font-size: 1rem;
+ color: #27ae60;
+}
+
+footer {
+ margin-top: 2rem;
+ text-align: center;
+ font-size: 0.9rem;
+ color: #7f8c8d;
+}
+
+@media (max-width: 600px) {
+ main {
+ padding: 1rem;
+ }
+
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+}
\ No newline at end of file