From 28db0fa9c374343715df30ce1fa4e641235ccecf Mon Sep 17 00:00:00 2001 From: conzer Date: Sat, 7 Dec 2024 19:46:49 -0500 Subject: [PATCH] start o stuff --- .gitignore | 1 + frontend/index.html | 32 +++++++++++++++++++++++++++ frontend/js/main.js | 5 +++++ frontend/package-lock.json | 44 ++++++++++++++++++++++++++++++++++++++ frontend/package.json | 14 ++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 frontend/index.html create mode 100644 frontend/js/main.js create mode 100644 frontend/package-lock.json create mode 100644 frontend/package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b5ce1bd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/frontend/node_modules \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..c6ec965 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,32 @@ + + + + + gobin + + + +
+

gobin

+

A minimal and speedy markdown pastebin software, written in Go.

+

about

+ +
+ +

add a new post

+
+
+ + +
+
+ + +
+ +
+
+ + + + \ No newline at end of file diff --git a/frontend/js/main.js b/frontend/js/main.js new file mode 100644 index 0000000..8cbae62 --- /dev/null +++ b/frontend/js/main.js @@ -0,0 +1,5 @@ +function fetchPosts() { + fetch('/posts', { + headers: { 'Content-Type': 'application/json' } + }) +} \ No newline at end of file diff --git a/frontend/package-lock.json b/frontend/package-lock.json new file mode 100644 index 0000000..e535589 --- /dev/null +++ b/frontend/package-lock.json @@ -0,0 +1,44 @@ +{ + "name": "frontend", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "frontend", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "bootstrap": "^5.3.3" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/bootstrap": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz", + "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + } + } +} diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..c8888f7 --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,14 @@ +{ + "name": "frontend", + "version": "1.0.0", + "description": "Frontend for goblog", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "bootstrap": "^5.3.3" + } +}