purge some dependencies

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-10-25 20:17:38 +02:00
parent dd6144ed41
commit b47eb60965
Signed by untrusted user: sam
GPG key ID: 4D8B07C18F31ACBD
6 changed files with 547 additions and 2134 deletions

View file

@ -1,7 +1,6 @@
import Express from "express";
// v2 api
import convertv2 from "./lib/convert.js";
import serveStatic from "serve-static";
import cors from "cors";
import errorPage from "./lib/errorPage.js";
import morgan from "morgan";
@ -13,7 +12,7 @@ app.disable("x-powered-by");
const logger = morgan(":method :url :status via :referrer - :response-time ms");
app.use(
serveStatic("public", {
Express.static("public", {
maxAge: "1d",
})
);

View file

@ -20,16 +20,6 @@ async function apGet(url) {
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0",
},
})
// axios({
// url: url,
// cache: map,
// headers: {
// accept: "application/activity+json",
// "User-Agent":
// "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0",
// },
// })
// .then((response) => JSON.parse(JSON.stringify(response.data, null, 2)))
.then((response) => {
if (response.ok) {
return response.json();

View file

@ -16,7 +16,7 @@
<link rel="stylesheet" href="/css/misskey-light.css"></link>
<% } else if (opts.theme && opts.theme?.toLowerCase() === 'misskey-auto'){ %>
<link rel="stylesheet" href="/css/misskey-auto.css"></link>
<% } else if (opts.theme && opts.theme?.toLowerCase() === 'pleroma'){ %>
<% } else if (opts.theme && (opts.theme?.toLowerCase() === 'pleroma' || opts.theme?.toLowerCase() === 'pleroma-dark')){ %>
<link rel="stylesheet" href="/css/pleroma.css"></link>
<% } else { %>
<link rel="stylesheet" href="/css/masto-dark.css"></link>

View file

@ -1,11 +1,11 @@
{
"dependencies": {
"axios": "1.1.3",
"cors": "2.8.5",
"ejs": "3.1.8",
"express": "4.18.2",
"express": ">=5.0.0-beta.1",
"megalodon": "4.1.0",
"morgan": "1.10.0",
"serve-static": "1.15.0",
"timeago.js": "4.0.2"
},
"main": "index.js",
@ -13,6 +13,7 @@
"type": "module",
"license": "GPL-3.0",
"scripts": {
"dev": "nodemon src/index.ts",
"start": "node index.js",
"lint": "eslint --fix . && prettier --write .",
"lint:ci": "eslint . && prettier . --check",
@ -22,8 +23,7 @@
"eslint": "8.26.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.2.1",
"prettier": "2.7.1",
"sass": "1.55.0"
},
"packageManager": "yarn@3.2.4"
"nodemon": "2.0.20",
"prettier": "2.7.1"
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long