Browse Source

Merge branch '7_fix_node_vulnerabilities' of kim/npaste into dev

Closes #7. All npm packages has been updated.
dev
Kim Grytøyr 1 year ago
committed by Gitea
parent
commit
d1cc3dfc79
11 changed files with 2058 additions and 548 deletions
  1. +1
    -1
      src/app.js
  2. +2038
    -528
      src/package-lock.json
  3. +13
    -13
      src/package.json
  4. +0
    -0
      src/views/error.pug
  5. +0
    -0
      src/views/footer.pug
  6. +0
    -0
      src/views/header.pug
  7. +2
    -2
      src/views/image.pug
  8. +1
    -1
      src/views/index.pug
  9. +0
    -0
      src/views/layout.pug
  10. +1
    -1
      src/views/stats.pug
  11. +2
    -2
      src/views/text.pug

+ 1
- 1
src/app.js View File

@@ -26,7 +26,7 @@ app.locals.config = config;
// view engine setup
app.locals.pretty = true; // Print pretty HTML
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.set('view engine', 'pug');

// uncomment after placing your favicon in /public
//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));


+ 2038
- 528
src/package-lock.json
File diff suppressed because it is too large
View File


+ 13
- 13
src/package.json View File

@@ -7,24 +7,24 @@
"test": "node test/routes.js"
},
"dependencies": {
"basic-auth": "^2.0.0",
"body-parser": "~1.18.2",
"cookie-parser": "~1.4.3",
"basic-auth": "^2.0.1",
"body-parser": "^1.18.3",
"cookie-parser": "^1.4.4",
"debug": "~2.6.9",
"express": "^4.16.3",
"filesize": "^3.6.0",
"jade": "~1.11.0",
"js-yaml": "^3.10.0",
"express": "^4.17.1",
"filesize": "^3.6.1",
"js-yaml": "^3.13.1",
"mmmagic": "^0.4.6",
"moment": "^2.20.1",
"morgan": "~1.9.0",
"multer": "^1.3.0",
"moment": "^2.24.0",
"morgan": "^1.9.1",
"multer": "^1.4.2",
"node-crontab": "0.0.8",
"pug": "^2.0.4",
"serve-favicon": "~2.4.5"
},
"devDependencies": {
"express-reload": "^1.1.0",
"supertest": "^3.0.0",
"tape": "^4.8.0"
"express-reload": "^1.2.0",
"supertest": "^3.4.2",
"tape": "^4.11.0"
}
}

src/views/error.jade → src/views/error.pug View File


src/views/footer.jade → src/views/footer.pug View File


src/views/header.jade → src/views/header.pug View File


src/views/image.jade → src/views/image.pug View File

@@ -9,7 +9,7 @@ block head
window.vault = '#{paste.vault}';
block content
#content
include header.jade
include header.pug

if paste.encrypted === true
div#data #{data}
@@ -22,4 +22,4 @@ block content
p.
#[a(href="#{rawUrl}") #[img#image.pasted(src="#{data}")]]

include footer.jade
include footer.pug

src/views/index.jade → src/views/index.pug View File

@@ -5,4 +5,4 @@ block content
p Simple personal pastebin server.
a(href="https://src.grytoyr.io/kim/npaste/") https://src.grytoyr.io/kim/npaste/

include footer.jade
include footer.pug

src/views/layout.jade → src/views/layout.pug View File


src/views/stats.jade → src/views/stats.pug View File

@@ -18,5 +18,5 @@ block content
li.
#{stats.count.expired} expired paste#{plural_expired} that does no longer exist.

include footer.jade
include footer.pug


src/views/text.jade → src/views/text.pug View File

@@ -14,7 +14,7 @@ block head
window.vault = '#{paste.vault}';
block content
#content
include header.jade
include header.pug

pre
code#paste(class=paste.plain === true ? "nohighlight" : "")
@@ -25,4 +25,4 @@ block content
if paste.encrypted === true
p#decrypting Decrypting paste..

include footer.jade
include footer.pug

Loading…
Cancel
Save