aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJad <[email protected]>2020-08-09 16:18:18 +0000
committerJad <[email protected]>2020-08-09 16:18:18 +0000
commit5ba2c86092197e01b56cb0266535d33b93f50f64 (patch)
treeedaa0f92e2a57f32a244f200e68d1c160d750558
parentfeat: add theme (diff)
downloadcounter-5ba2c86092197e01b56cb0266535d33b93f50f64.tar.xz
counter-5ba2c86092197e01b56cb0266535d33b93f50f64.zip
feat: add message board
-rw-r--r--count.dbbin20480 -> 20480 bytes
-rw-r--r--index.js3
-rw-r--r--package.json2
-rw-r--r--views/index.pug2
4 files changed, 6 insertions, 1 deletions
diff --git a/count.db b/count.db
index 4eb4184..d4dc6af 100644
--- a/count.db
+++ b/count.db
Binary files differ
diff --git a/index.js b/index.js
index c46d9fd..7f20e1d 100644
--- a/index.js
+++ b/index.js
@@ -51,6 +51,9 @@ app.get('/get/@:name', async (req, res) => {
})
if (name === 'demo') {
+ res.set({
+ 'cache-control': 'max-age=31536000'
+ })
num = '0123456789'
length = 10
diff --git a/package.json b/package.json
index 576ca91..c50fe41 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
- "author": "",
+ "author": "journey-ad",
"license": "MIT",
"dependencies": {
"compression": "^1.7.4",
diff --git a/views/index.pug b/views/index.pug
index e6c62cf..1908114 100644
--- a/views/index.pug
+++ b/views/index.pug
@@ -74,5 +74,7 @@ html
img.src = 'https://count.getloli.com/get/@' + text + '?theme=' + theme
})
+ iframe(src="https://chat.getloli.com/room/@kawaii-counter?title=%E5%8F%AF%E7%88%B1%E7%9A%84%E8%AE%A1%E6%95%B0%E5%99%A8%E7%9A%84%E7%95%99%E8%A8%80%E6%9D%BF", scrolling="no", frameborder="0", height="70%", width="26%", style="position: fixed;top: 2%;right: 5%;")
+
p.copy
a(href='https://repl.it/@journeyad/kawaii-counter') source code \ No newline at end of file