@spinajs/http 1.2.151 → 1.2.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/views/responses/badRequest.pug +13 -0
- package/lib/views/responses/conflict.pug +13 -0
- package/lib/views/responses/forbidden.pug +13 -0
- package/lib/views/responses/noContent.pug +13 -0
- package/lib/views/responses/notFound.pug +13 -0
- package/lib/views/responses/ok.pug +12 -0
- package/lib/views/responses/serverError.pug +13 -0
- package/lib/views/responses/unauthorized.pug +13 -0
- package/package.json +3 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
+
|
|
5
|
+
title #{__("Bad request")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 400 - #{__("Bad request")}
|
|
13
|
+
div #{__(message)}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
+
|
|
5
|
+
title #{__("Conflict")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 409 - #{__("Conflict")}
|
|
13
|
+
div #{__(message)}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
+
|
|
5
|
+
title #{__("Forbidden")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 403 - #{__("Forbidden")}
|
|
13
|
+
div #{__(message)}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
+
|
|
5
|
+
title #{__("No content")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 204 - #{__("No content")}
|
|
13
|
+
div #{__(message)}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
+
|
|
5
|
+
title #{__("Not found")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 404 - #{__("Not found")}
|
|
13
|
+
div #{__(message)}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.png")
|
|
4
|
+
|
|
5
|
+
title #{__("All ok")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 200 - #{__("All ok")}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
+
|
|
5
|
+
title #{__("Server error")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 500 - #{__("Server error")}
|
|
13
|
+
div #{__(message)}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
+
|
|
5
|
+
title #{__("Unauthorized")}
|
|
6
|
+
|
|
7
|
+
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 401 - #{__("Unauthorized")}
|
|
13
|
+
div #{__(message)}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinajs/http",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.152",
|
|
4
4
|
"description": "framework HTTP module base on express.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"private": false,
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "npm run clean && npm run compile",
|
|
8
|
+
"build": "npm run clean && npm run compile && cpx src/views/**/* lib/views",
|
|
9
9
|
"compile": "tsc -p tsconfig.build.json",
|
|
10
10
|
"clean": "",
|
|
11
11
|
"test": "ts-mocha -p tsconfig.json test/**/*.test.ts",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"tempfile": "3.0.0",
|
|
62
62
|
"uuid": "^8.3.2"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "c18f00316083d2ce7a080572b833cb4cc37bef7d"
|
|
65
65
|
}
|