Skip to content

Commit c3e1c27

Browse files
committed
Update package.json and add opengraph metadaa
1 parent 018475b commit c3e1c27

File tree

6 files changed

+60
-27
lines changed

6 files changed

+60
-27
lines changed

package-lock.json

Lines changed: 53 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
"express-rate-limit": "^5.2.3",
3232
"image-to-base64": "^2.1.1",
3333
"memory-cache": "^0.2.0",
34-
"prismjs": "^1.22.0",
34+
"prismjs": "^1.23.0",
3535
"puppeteer": "^5.5.0",
3636
"svgo": "^1.3.2",
3737
"vue": "^2.6.12",
3838
"vue-prism-component": "^1.2.0"
3939
},
4040
"devDependencies": {
4141
"jest": "^26.6.3",
42-
"js-yaml": "^3.14.1",
42+
"js-yaml": "^4.0.0",
4343
"libxmljs": "^0.19.7"
4444
}
4545
}

source/app/web/instance.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
const actions = {flush:new Map()}
7373
app.get("/", limiter, (req, res) => res.sendFile(`${conf.statics}/index.html`))
7474
app.get("/index.html", limiter, (req, res) => res.sendFile(`${conf.statics}/index.html`))
75-
app.get("/favicon.ico", limiter, (req, res) => res.sendStatus(204))
75+
app.get("/.favicon.png", limiter, (req, res) => res.sendFile(`${conf.statics}/favicon.png`))
76+
app.get("/.opengraph.png", limiter, (req, res) => res.sendFile(`${conf.statics}/opengraph.png`))
7677
app.get("/.version", limiter, (req, res) => res.status(200).send(conf.package.version))
7778
app.get("/.requests", limiter, async (req, res) => res.status(200).json((await rest.rateLimit.get()).data.rate))
7879
app.get("/.templates", limiter, (req, res) => res.status(200).json(templates))

source/app/web/statics/favicon.png

1.84 KB
Loading

source/app/web/statics/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
<meta charset="utf-8">
44
<title>Metrics</title>
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<meta name="description" content="A SVG image generator which includes activity, community and repositories metrics about your GitHub account that you can includes on your profile">
6+
<meta name="description" content="An image generator with 20+ metrics about your GitHub account such as activity, community, repositories, coding habits, website performances, music played, starred topics, etc. that you can put on your profile or elsewhere !">
77
<meta name="author" content="lowlighter">
8-
<link rel="icon" href="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/microsoft/209/bar-chart_1f4ca.png">
8+
<meta property="og:image" content="/.opengraph.png">
9+
<link rel="icon" href="/.favicon.png">
910
<link rel="stylesheet" href="/.css/style.vars.css">
1011
<link rel="stylesheet" href="/.css/style.css">
1112
<link rel="stylesheet" href="/.css/style.prism.css" />
323 KB
Loading

0 commit comments

Comments
 (0)