diff --git a/api/.gitignore b/api/.gitignore deleted file mode 100644 index d5f19d8..0000000 --- a/api/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -package-lock.json diff --git a/api/getLatestCommit.js b/api/getLatestCommit.js deleted file mode 100644 index ab3041b..0000000 --- a/api/getLatestCommit.js +++ /dev/null @@ -1,32 +0,0 @@ -// api/getLatestCommit.js - -import fetch from 'node-fetch'; - -export default async (req, res) => { - const label = 'Latest Commit'; - const username = 'NatsumeLS'; - const repo = 'Gakumas-Localify-EN'; - const apiUrl = `https://api.github.com/repos/${username}/${repo}/commits?per_page=1`; - - try { - const response = await fetch(apiUrl); - const data = await response.json(); - const latestCommitHash = data[0].sha.substring(0, 7); - - res.setHeader('Content-Type', 'application/json'); - res.setHeader('Cache-Control', 'no-cache'); - res.status(200).json({ - schemaVersion: 1, - label: label, - message: latestCommitHash, - color: 'blue' - }); - } catch (error) { - res.status(500).json({ - schemaVersion: 1, - label: label, - message: 'Error', - color: 'red' - }); - } -}; diff --git a/api/package.json b/api/package.json deleted file mode 100644 index a8fe102..0000000 --- a/api/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "api", - "type": "module", - "dependencies": { - "node-fetch": "^3.3.2" - } -} diff --git a/docs/logo.png b/docs/logo.png deleted file mode 100644 index d31e98c..0000000 Binary files a/docs/logo.png and /dev/null differ diff --git a/docs/preview.png b/docs/preview.png deleted file mode 100644 index d67c316..0000000 Binary files a/docs/preview.png and /dev/null differ