diff --git a/Dockerfile b/Dockerfile index 5692da3..bad25d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,18 @@ +FROM node:18 -FROM node:16.15.0 -FROM node:18.2.0 -RUN apt-get update -RUN apt-get upgrade -y -RUN apt-get install nodejs -y +# Install canvas dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + libcairo2-dev \ + libpango1.0-dev \ + libjpeg-dev \ + libgif-dev \ + librsvg2-dev \ + libpixman-1-dev WORKDIR /app -COPY . /app +COPY package*.json ./ RUN npm install -CMD ["node", "index.js"] -EXPOSE 6892 +COPY . . +EXPOSE 3000 +CMD ["npm", "start"] \ No newline at end of file diff --git a/package.json b/package.json index dde0885..2567ad3 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,10 @@ "name": "API-REST", "version": "1.1.0", "description": "turu", - "main": "node index.js", + "main": "index.js", "scripts": { - "start": "nodemon index.js" + "start": "node index.js", + "dev": "nodemon index.js" }, "repository": { "type": "git", @@ -13,52 +14,47 @@ "keywords": [ "simple", "api", - "rest", - "api" + "rest" ], "author": "Reyganz", "license": "ISC", "bugs": { "url": "https://github.com/inirey/API-REST/issues" }, + "homepage": "https://github.com/inirey/API-REST#readme", + "engines": { + "node": "18.x" + }, "dependencies": { - "axios": "^0.21.1", + "axios": "^1.7.7", "base-64": "^1.0.0", - "base32": "0.0.6", - "chalk": "^4.1.0", - "cheerio": "^1.0.0-rc.5", - "child_process": "^1.0.2", - "facebook-video-link": "^1.0.2", + "base32": "^0.0.6", + "chalk": "^4.1.2", + "cheerio": "^1.0.0", "cors": "^2.8.5", "tiktok-scraper-without-watermark": "^1.1.2", - "path": "^0.12.7", - "dotenv": "^8.2.0", - "canvacord": "^5.2.1", - "canvas": "^2.8.0", + "dotenv": "^16.4.5", + "canvas": "^2.11.2", + "canvacord": "^5.4.10", "canvas-hikki": "github:ZyxMapLe/canvas-hikki", - "emoji-api": "^2.0.0", - "express": "^4.17.1", - "fbdl-core": "^1.0.2", + "express": "^4.21.0", "form-data": "^4.0.0", - "fs": "0.0.1-security", - "genius-lyrics": "^4.2.7", + "genius-lyrics": "^4.4.6", "instatouch": "^2.3.3", - "lodash": "^4.17.20", - "moment": "^2.29.1", - "mongodb": "^3.6.3", - "monk": "^7.3.3", + "lodash": "^4.17.21", + "moment": "^2.30.1", + "mongodb": "^6.9.0", + "monk": "^7.3.4", "morgan": "^1.10.0", - "needle": "^3.0.0", - "node-fetch": "^2.6.1", - "nodemon": "^2.0.7", - "request": "^2.88.2", - "ssl-express-www": "^3.0.7", - "skh-api": "^1.0.0", - "tiktok-scraper": "^1.4.12", + "needle": "^3.3.1", + "node-fetch": "^2.7.0", + "ssl-express-www": "^3.0.8", "urlencode": "^1.1.0", - "skh-api": "2.1.1", - "api-rey": "1.1.0", - "zrapi": "0.0.6" + "skh-api": "^2.1.1", + "api-rey": "^1.1.0", + "zrapi": "^0.0.6" }, - "homepage": "https://github.com/inirey/API-REST#readme" -} + "devDependencies": { + "nodemon": "^3.1.7" + } +} \ No newline at end of file diff --git a/vercel.json b/vercel.json index 95c5de4..717cf3b 100644 --- a/vercel.json +++ b/vercel.json @@ -1,11 +1,25 @@ { - "version": 2, - "builds": [{ + "version": 2, + "builds": [ + { "src": "index.js", - "use": "@vercel/node" - }], - "routes": [{ - "src": "/.*", - "dest": "/" - }] -} + "use": "@vercel/node", + "config": { + "installCommand": "apt-get update && apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev libpixman-1-dev pkg-config && npm install", + "nodeVersion": "18" + } + } + ], + "routes": [ + { + "src": "/(.*)", + "dest": "index.js" + } + ], + "env": { + "NODE_ENV": "production" + }, + "engines": { + "node": "18.x" + } +} \ No newline at end of file diff --git a/views/docs.html b/views/docs.html index 33b8d6c..ccd3abb 100644 --- a/views/docs.html +++ b/views/docs.html @@ -1,103 +1,129 @@ - + - - - - - - - - Rey sekha - + + + + brokenvznapi + + + + + +
+ + +
- - - + + -
- -
- -
- - - - -
-
-
- -
-
-

Rey Sekha

-

@_sekhaa

-
-
+ +
+
+ + + + +
+
+ Profile +
+ +
+
+

Akewushola Abdulbakri

+

@brokenvzn

+
+
-
-
-
-

About

-

hi world introduce the name Rey sekha my hobby is watching anime and dialogue in Japanese and I also don't have any skills I can only MANGAN,TURU,NGARIT

-
-
- - - - - - - - - - - -
-
- - -
-
-
+
+
+
+

About

+

+ Hey there! I'm Akewushola Abdulbakri, aka broken Vzn, a developer passionate about AI, chatbots, and coding. I love building projects like my cognitivePath CBT webapk and creating APIs for innovative solutions. When I'm not coding, I'm exploring open-source tech or connecting with my community on social media! +

+
+ +
+

GitHub Stats

+
+ GitHub Followers + Profile Views + Top Languages +
+ GitHub Trophies +
+ + +
+ + +
-
- - - - +
+
+
+ + + + + \ No newline at end of file diff --git a/views/game.html b/views/game.html index 4b95505..633583b 100644 --- a/views/game.html +++ b/views/game.html @@ -1,593 +1,355 @@ - - - - - - - - ๐Ÿ“Ping Pong - - - - - -
-
- - - - -
-
-
-
-
- Loading... -
-
- -
- -
- โ“˜ ๐Ÿ†PEMAIN PERTAMA MENCETAK 10 POIN YANG AKAN MENANG๐Ÿ† . -
-
-
- Level Pemula -
-
- Level Sedang -
-
- Level Mustahil - -
-
-
-
-
-
- Kamu Menang :D -
-
-
- -
-
- - - - -
- Back To Rest Api - - - Banyak orang gagal karena mereka tidak memahami usaha yang diperlukan untuk menjadi sukses. Yukino Yukinoshita (Oregairu), Kita harus mensyukuri apa yang kita punya saat ini, karena mungkin orang lain belum tentu mempunyainya. Kayaba Akihiko (Sword Art Online), - -
- - + document.getElementById("result").innerHTML = txt; + document.getElementById('status').style.display = 'block'; + document.getElementById('status').classList.add('animate-pop'); + } + + run = setInterval(game, 1000 / fps); + } + + function again() { + document.getElementById('status').style.display = 'none'; + document.getElementsByClassName('tab')[0].style.transform = 'scale(1)'; + document.getElementsByClassName('tab')[0].classList.add('animate-pop'); + } + + function eas() { + aiLevel = 0.03; + document.getElementById("easy").classList.add('bg-cyan-500', 'text-white'); + document.getElementById("hard").classList.remove('bg-cyan-500', 'text-white'); + document.getElementById("impossible").classList.remove('bg-cyan-500', 'text-white'); + win.play(); + lose.play(); + init(); + } + + function har() { + aiLevel = 0.06; + document.getElementById("easy").classList.remove('bg-cyan-500', 'text-white'); + document.getElementById("hard").classList.add('bg-cyan-500', 'text-white'); + document.getElementById("impossible").classList.remove('bg-cyan-500', 'text-white'); + win.play(); + lose.play(); + init(); + } + + function imp() { + aiLevel = 0.7; + document.getElementById("easy").classList.remove('bg-cyan-500', 'text-white'); + document.getElementById("hard").classList.remove('bg-cyan-500', 'text-white'); + document.getElementById("impossible").classList.add('bg-cyan-500', 'text-white'); + win.play(); + lose.play(); + init(); + } + + + \ No newline at end of file diff --git a/views/index.html b/views/index.html index c24ddfa..5948342 100644 --- a/views/index.html +++ b/views/index.html @@ -1,411 +1,160 @@ - - - - - - - - REY - Api - - - - - - - - - - -
-
-
-

Selamat

-

Datang

-

Di Website

-

Rest Api

-

- REY - Rest - API's -

- Open Docs -
-
- - - - - -' ) ); - - - + + + + brokenvznapi + + + + + + + + + +
+
+
+

Loading brokenvznapi...

+

by broken Vzn

+
+
+ + + + + +
+
+
+

Welcome

+

to

+

brokenvznapi

+

by

+

+ broken + Vzn +

+ Open Docs + + +
+

broken Vzn's GitHub

+
+ GitHub Followers + Profile Views + Top Languages +
+ GitHub Trophies +
+ + +
+

Connect with broken Vzn

+ +
+
+
+ + + + + + \ No newline at end of file