generated from corysanin/nodejs-web-template
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e1c783a23 | |||
| a934b13df6 | |||
| c86afff89c |
59
package-lock.json
generated
59
package-lock.json
generated
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"name": "madisonlinux",
|
||||
"version": "0.0.6",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "madisonlinux",
|
||||
"version": "0.0.6",
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"body-parser": "^2.2.0",
|
||||
"ejs": "3.1.10",
|
||||
"express": "5.1.0",
|
||||
"express": "^5.2.1",
|
||||
"ics": "^3.8.1",
|
||||
"json5": "2.2.3"
|
||||
},
|
||||
@@ -489,23 +489,27 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/body-parser": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz",
|
||||
"integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==",
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.1.tgz",
|
||||
"integrity": "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bytes": "^3.1.2",
|
||||
"content-type": "^1.0.5",
|
||||
"debug": "^4.4.0",
|
||||
"debug": "^4.4.3",
|
||||
"http-errors": "^2.0.0",
|
||||
"iconv-lite": "^0.6.3",
|
||||
"iconv-lite": "^0.7.0",
|
||||
"on-finished": "^2.4.1",
|
||||
"qs": "^6.14.0",
|
||||
"raw-body": "^3.0.0",
|
||||
"type-is": "^2.0.0"
|
||||
"raw-body": "^3.0.1",
|
||||
"type-is": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
@@ -783,18 +787,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/express": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz",
|
||||
"integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
|
||||
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"accepts": "^2.0.0",
|
||||
"body-parser": "^2.2.0",
|
||||
"body-parser": "^2.2.1",
|
||||
"content-disposition": "^1.0.0",
|
||||
"content-type": "^1.0.5",
|
||||
"cookie": "^0.7.1",
|
||||
"cookie-signature": "^1.2.1",
|
||||
"debug": "^4.4.0",
|
||||
"depd": "^2.0.0",
|
||||
"encodeurl": "^2.0.0",
|
||||
"escape-html": "^1.0.3",
|
||||
"etag": "^1.8.1",
|
||||
@@ -1006,15 +1011,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/iconv-lite": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
||||
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
|
||||
"integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/ics": {
|
||||
@@ -1377,22 +1386,6 @@
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/raw-body/node_modules/iconv-lite": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
|
||||
"integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/readdirp": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "madisonlinux",
|
||||
"version": "0.0.6",
|
||||
"version": "0.1.1",
|
||||
"description": "Website for upcoming Linux install party in Madison WI",
|
||||
"keywords": [
|
||||
"web",
|
||||
@@ -26,7 +26,7 @@
|
||||
"dependencies": {
|
||||
"body-parser": "^2.2.0",
|
||||
"ejs": "3.1.10",
|
||||
"express": "5.1.0",
|
||||
"express": "^5.2.1",
|
||||
"ics": "^3.8.1",
|
||||
"json5": "2.2.3"
|
||||
},
|
||||
|
||||
@@ -83,7 +83,7 @@ class Web {
|
||||
else if(!adminMode){
|
||||
console.log(req.headers?.['user-agent']);
|
||||
}
|
||||
res.render('index', {
|
||||
res.render('index_after', {
|
||||
page: {
|
||||
title: 'Madison End of 10 Install Party',
|
||||
titlesuffix: 'Get help installing Linux',
|
||||
@@ -123,6 +123,10 @@ class Web {
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/firefox', (_, res) => {
|
||||
res.redirect('https://gist.github.com/CorySanin/d322dc6ebe534c23ba183920d154e566');
|
||||
});
|
||||
|
||||
app.get('/event.ics', (_, res) => {
|
||||
createEvent({
|
||||
uid: '1@madisonlinux.com',
|
||||
|
||||
38
views/index_after.ejs
Normal file
38
views/index_after.ejs
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
|
||||
<head>
|
||||
<%- include("head", locals) %>
|
||||
</head>
|
||||
|
||||
<body class="preload">
|
||||
<%- include("navigation", locals) %>
|
||||
<div class="content">
|
||||
<% if (adminMode) { %>
|
||||
<%- include("installform", locals) %>
|
||||
<% } %>
|
||||
<h1>Linux Install Party Madison</h1>
|
||||
<% if (installs && installs.length) { %>
|
||||
<div id="installs">
|
||||
<h1>We have saved <span><%= installs.length %></span> computer<% if (installs.length > 1) { %>s<% } %>!</h1>
|
||||
</div>
|
||||
<% } %>
|
||||
<h2>Thanks for saving your computers!</h2>
|
||||
<p>
|
||||
Thank you all for attending! It was great meeting everyone and I hope you all
|
||||
enjoy your new OS's! Thanks to <a href="https://www.sector67.org/">Sector67</a>
|
||||
for hosting the event and recruiting volunteers as well.
|
||||
</p>
|
||||
<p>
|
||||
No promises, but perhaps we'll do this again in the future. You better believe if
|
||||
Windows 10 ends up in the news due to a major vulnerability, I will almost certainly
|
||||
be contemplating organizing another event. So stay tuned.
|
||||
</p>
|
||||
<h2>Need help?</h2>
|
||||
<p>
|
||||
If we set up your Linux installation and you need help or guidance, shoot me an
|
||||
email at <a href="mailto:endof10@cory.sanin.dev">endof10@cory.sanin.dev</a>.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,7 +2,6 @@
|
||||
<nav>
|
||||
<ul class="nav_links">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/#event">Event Details</a></li>
|
||||
<li><a href="/os">OS Recommendations</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user