generator-razor 14.1.7 → 14.1.9
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/app/index.js
CHANGED
|
@@ -104,9 +104,15 @@ export default class extends Generator {
|
|
|
104
104
|
}, {
|
|
105
105
|
name: 'mysql8',
|
|
106
106
|
value: 'mysql8'
|
|
107
|
+
}, {
|
|
108
|
+
name: 'mysql84',
|
|
109
|
+
value: 'mysql84'
|
|
107
110
|
}, {
|
|
108
111
|
name: 'mariadb',
|
|
109
112
|
value: 'mariadb'
|
|
113
|
+
}, {
|
|
114
|
+
name: 'mariadb11',
|
|
115
|
+
value: 'mariadb11'
|
|
110
116
|
}, {
|
|
111
117
|
name: 'Custom',
|
|
112
118
|
value: 'custom'
|
|
@@ -1060,15 +1066,15 @@ export default class extends Generator {
|
|
|
1060
1066
|
|
|
1061
1067
|
_getrazorBranch () {
|
|
1062
1068
|
if (this.props.Version.startsWith('14.3.')) {
|
|
1063
|
-
return '
|
|
1069
|
+
return 'main'
|
|
1064
1070
|
}
|
|
1065
1071
|
|
|
1066
1072
|
if (this.props.Version.startsWith('13.4.')) {
|
|
1067
|
-
return 'razor13
|
|
1073
|
+
return 'razor13'
|
|
1068
1074
|
}
|
|
1069
1075
|
|
|
1070
1076
|
if (this.props.Version.startsWith('12.4.')) {
|
|
1071
|
-
return 'razor12
|
|
1077
|
+
return 'razor12'
|
|
1072
1078
|
}
|
|
1073
1079
|
|
|
1074
1080
|
throw new Error(
|
|
@@ -28,25 +28,41 @@
|
|
|
28
28
|
# | Maintenance mode |
|
|
29
29
|
# ------------------------------------------------------------------------------
|
|
30
30
|
|
|
31
|
+
# Answers 503 with maintenance.html for everyone except the given IP, so
|
|
32
|
+
# search engines keep the pages and try again later (Retry-After: 1 hour).
|
|
33
|
+
# Behind a proxy, check X-Forwarded-For instead of REMOTE_ADDR.
|
|
34
|
+
|
|
31
35
|
# <IfModule mod_rewrite.c>
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
36
|
+
# RewriteEngine On
|
|
37
|
+
# RewriteCond %{REMOTE_ADDR} !^203\.0\.113\.10$
|
|
38
|
+
# # RewriteCond %{HTTP:X-Forwarded-For} !(^|,\s*)203\.0\.113\.10$
|
|
39
|
+
# RewriteCond %{REQUEST_URI} !^/maintenance\.html$
|
|
40
|
+
# RewriteCond %{REQUEST_URI} !\.(jpe?g|png|gif|svg|webp)$ [NC]
|
|
41
|
+
# RewriteRule .* - [R=503,L]
|
|
42
|
+
# </IfModule>
|
|
43
|
+
# ErrorDocument 503 /maintenance.html
|
|
44
|
+
# <IfModule mod_headers.c>
|
|
45
|
+
# Header always set Retry-After "3600" "expr=%{REQUEST_STATUS} == 503"
|
|
39
46
|
# </IfModule>
|
|
40
47
|
|
|
41
48
|
# ------------------------------------------------------------------------------
|
|
42
|
-
# |
|
|
49
|
+
# | Outdated browsers |
|
|
43
50
|
# ------------------------------------------------------------------------------
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
# Shows browser-support.html to browsers older than the build target (Vite's
|
|
53
|
+
# "baseline widely available"): Internet Explorer, Firefox < 115,
|
|
54
|
+
# Chrome / Edge < 111, Safari < 16.4 and every browser on iOS < 16.4.
|
|
55
|
+
# Bots are left out, some send old browser versions.
|
|
56
|
+
|
|
57
|
+
RewriteCond %{REQUEST_URI} !^/browser-support\.html$
|
|
58
|
+
RewriteCond %{HTTP_USER_AGENT} !(bot|crawl|spider|slurp|preview|facebookexternalhit|lighthouse|headless) [NC]
|
|
59
|
+
RewriteCond %{HTTP_USER_AGENT} (MSIE|Trident/) [NC,OR]
|
|
60
|
+
RewriteCond %{HTTP_USER_AGENT} Firefox/([0-9]{1,2}|10[0-9]|11[0-4])\. [NC,OR]
|
|
61
|
+
RewriteCond %{HTTP_USER_AGENT} Chrome/([0-9]{1,2}|10[0-9]|110)\. [NC,OR]
|
|
62
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/([0-9]|1[0-5])(\.[0-9.]+)? Safari/" [NC,OR]
|
|
63
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/16\.[0-3](\.[0-9]+)? Safari/" [NC,OR]
|
|
64
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS ([0-9]|1[0-5])_" [NC,OR]
|
|
65
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS 16_[0-3]( |_)" [NC]
|
|
50
66
|
RewriteRule .* browser-support.html [L]
|
|
51
67
|
|
|
52
68
|
# ------------------------------------------------------------------------------
|
|
@@ -28,25 +28,41 @@
|
|
|
28
28
|
# | Maintenance mode |
|
|
29
29
|
# ------------------------------------------------------------------------------
|
|
30
30
|
|
|
31
|
+
# Answers 503 with maintenance.html for everyone except the given IP, so
|
|
32
|
+
# search engines keep the pages and try again later (Retry-After: 1 hour).
|
|
33
|
+
# Behind a proxy, check X-Forwarded-For instead of REMOTE_ADDR.
|
|
34
|
+
|
|
31
35
|
# <IfModule mod_rewrite.c>
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
36
|
+
# RewriteEngine On
|
|
37
|
+
# RewriteCond %{REMOTE_ADDR} !^203\.0\.113\.10$
|
|
38
|
+
# # RewriteCond %{HTTP:X-Forwarded-For} !(^|,\s*)203\.0\.113\.10$
|
|
39
|
+
# RewriteCond %{REQUEST_URI} !^/maintenance\.html$
|
|
40
|
+
# RewriteCond %{REQUEST_URI} !\.(jpe?g|png|gif|svg|webp)$ [NC]
|
|
41
|
+
# RewriteRule .* - [R=503,L]
|
|
42
|
+
# </IfModule>
|
|
43
|
+
# ErrorDocument 503 /maintenance.html
|
|
44
|
+
# <IfModule mod_headers.c>
|
|
45
|
+
# Header always set Retry-After "3600" "expr=%{REQUEST_STATUS} == 503"
|
|
39
46
|
# </IfModule>
|
|
40
47
|
|
|
41
48
|
# ------------------------------------------------------------------------------
|
|
42
|
-
# |
|
|
49
|
+
# | Outdated browsers |
|
|
43
50
|
# ------------------------------------------------------------------------------
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
# Shows browser-support.html to browsers older than the build target (Vite's
|
|
53
|
+
# "baseline widely available"): Internet Explorer, Firefox < 115,
|
|
54
|
+
# Chrome / Edge < 111, Safari < 16.4 and every browser on iOS < 16.4.
|
|
55
|
+
# Bots are left out, some send old browser versions.
|
|
56
|
+
|
|
57
|
+
RewriteCond %{REQUEST_URI} !^/browser-support\.html$
|
|
58
|
+
RewriteCond %{HTTP_USER_AGENT} !(bot|crawl|spider|slurp|preview|facebookexternalhit|lighthouse|headless) [NC]
|
|
59
|
+
RewriteCond %{HTTP_USER_AGENT} (MSIE|Trident/) [NC,OR]
|
|
60
|
+
RewriteCond %{HTTP_USER_AGENT} Firefox/([0-9]{1,2}|10[0-9]|11[0-4])\. [NC,OR]
|
|
61
|
+
RewriteCond %{HTTP_USER_AGENT} Chrome/([0-9]{1,2}|10[0-9]|110)\. [NC,OR]
|
|
62
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/([0-9]|1[0-5])(\.[0-9.]+)? Safari/" [NC,OR]
|
|
63
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/16\.[0-3](\.[0-9]+)? Safari/" [NC,OR]
|
|
64
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS ([0-9]|1[0-5])_" [NC,OR]
|
|
65
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS 16_[0-3]( |_)" [NC]
|
|
50
66
|
RewriteRule .* browser-support.html [L]
|
|
51
67
|
|
|
52
68
|
# ------------------------------------------------------------------------------
|
|
@@ -28,25 +28,41 @@
|
|
|
28
28
|
# | Maintenance mode |
|
|
29
29
|
# ------------------------------------------------------------------------------
|
|
30
30
|
|
|
31
|
+
# Answers 503 with maintenance.html for everyone except the given IP, so
|
|
32
|
+
# search engines keep the pages and try again later (Retry-After: 1 hour).
|
|
33
|
+
# Behind a proxy, check X-Forwarded-For instead of REMOTE_ADDR.
|
|
34
|
+
|
|
31
35
|
# <IfModule mod_rewrite.c>
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
36
|
+
# RewriteEngine On
|
|
37
|
+
# RewriteCond %{REMOTE_ADDR} !^203\.0\.113\.10$
|
|
38
|
+
# # RewriteCond %{HTTP:X-Forwarded-For} !(^|,\s*)203\.0\.113\.10$
|
|
39
|
+
# RewriteCond %{REQUEST_URI} !^/maintenance\.html$
|
|
40
|
+
# RewriteCond %{REQUEST_URI} !\.(jpe?g|png|gif|svg|webp)$ [NC]
|
|
41
|
+
# RewriteRule .* - [R=503,L]
|
|
42
|
+
# </IfModule>
|
|
43
|
+
# ErrorDocument 503 /maintenance.html
|
|
44
|
+
# <IfModule mod_headers.c>
|
|
45
|
+
# Header always set Retry-After "3600" "expr=%{REQUEST_STATUS} == 503"
|
|
39
46
|
# </IfModule>
|
|
40
47
|
|
|
41
48
|
# ------------------------------------------------------------------------------
|
|
42
|
-
# |
|
|
49
|
+
# | Outdated browsers |
|
|
43
50
|
# ------------------------------------------------------------------------------
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
# Shows browser-support.html to browsers older than the build target (Vite's
|
|
53
|
+
# "baseline widely available"): Internet Explorer, Firefox < 115,
|
|
54
|
+
# Chrome / Edge < 111, Safari < 16.4 and every browser on iOS < 16.4.
|
|
55
|
+
# Bots are left out, some send old browser versions.
|
|
56
|
+
|
|
57
|
+
RewriteCond %{REQUEST_URI} !^/browser-support\.html$
|
|
58
|
+
RewriteCond %{HTTP_USER_AGENT} !(bot|crawl|spider|slurp|preview|facebookexternalhit|lighthouse|headless) [NC]
|
|
59
|
+
RewriteCond %{HTTP_USER_AGENT} (MSIE|Trident/) [NC,OR]
|
|
60
|
+
RewriteCond %{HTTP_USER_AGENT} Firefox/([0-9]{1,2}|10[0-9]|11[0-4])\. [NC,OR]
|
|
61
|
+
RewriteCond %{HTTP_USER_AGENT} Chrome/([0-9]{1,2}|10[0-9]|110)\. [NC,OR]
|
|
62
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/([0-9]|1[0-5])(\.[0-9.]+)? Safari/" [NC,OR]
|
|
63
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/16\.[0-3](\.[0-9]+)? Safari/" [NC,OR]
|
|
64
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS ([0-9]|1[0-5])_" [NC,OR]
|
|
65
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS 16_[0-3]( |_)" [NC]
|
|
50
66
|
RewriteRule .* browser-support.html [L]
|
|
51
67
|
|
|
52
68
|
# ------------------------------------------------------------------------------
|
|
@@ -28,25 +28,41 @@
|
|
|
28
28
|
# | Maintenance mode |
|
|
29
29
|
# ------------------------------------------------------------------------------
|
|
30
30
|
|
|
31
|
+
# Answers 503 with maintenance.html for everyone except the given IP, so
|
|
32
|
+
# search engines keep the pages and try again later (Retry-After: 1 hour).
|
|
33
|
+
# Behind a proxy, check X-Forwarded-For instead of REMOTE_ADDR.
|
|
34
|
+
|
|
31
35
|
# <IfModule mod_rewrite.c>
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
36
|
+
# RewriteEngine On
|
|
37
|
+
# RewriteCond %{REMOTE_ADDR} !^203\.0\.113\.10$
|
|
38
|
+
# # RewriteCond %{HTTP:X-Forwarded-For} !(^|,\s*)203\.0\.113\.10$
|
|
39
|
+
# RewriteCond %{REQUEST_URI} !^/maintenance\.html$
|
|
40
|
+
# RewriteCond %{REQUEST_URI} !\.(jpe?g|png|gif|svg|webp)$ [NC]
|
|
41
|
+
# RewriteRule .* - [R=503,L]
|
|
42
|
+
# </IfModule>
|
|
43
|
+
# ErrorDocument 503 /maintenance.html
|
|
44
|
+
# <IfModule mod_headers.c>
|
|
45
|
+
# Header always set Retry-After "3600" "expr=%{REQUEST_STATUS} == 503"
|
|
39
46
|
# </IfModule>
|
|
40
47
|
|
|
41
48
|
# ------------------------------------------------------------------------------
|
|
42
|
-
# |
|
|
49
|
+
# | Outdated browsers |
|
|
43
50
|
# ------------------------------------------------------------------------------
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
# Shows browser-support.html to browsers older than the build target (Vite's
|
|
53
|
+
# "baseline widely available"): Internet Explorer, Firefox < 115,
|
|
54
|
+
# Chrome / Edge < 111, Safari < 16.4 and every browser on iOS < 16.4.
|
|
55
|
+
# Bots are left out, some send old browser versions.
|
|
56
|
+
|
|
57
|
+
RewriteCond %{REQUEST_URI} !^/browser-support\.html$
|
|
58
|
+
RewriteCond %{HTTP_USER_AGENT} !(bot|crawl|spider|slurp|preview|facebookexternalhit|lighthouse|headless) [NC]
|
|
59
|
+
RewriteCond %{HTTP_USER_AGENT} (MSIE|Trident/) [NC,OR]
|
|
60
|
+
RewriteCond %{HTTP_USER_AGENT} Firefox/([0-9]{1,2}|10[0-9]|11[0-4])\. [NC,OR]
|
|
61
|
+
RewriteCond %{HTTP_USER_AGENT} Chrome/([0-9]{1,2}|10[0-9]|110)\. [NC,OR]
|
|
62
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/([0-9]|1[0-5])(\.[0-9.]+)? Safari/" [NC,OR]
|
|
63
|
+
RewriteCond %{HTTP_USER_AGENT} "Version/16\.[0-3](\.[0-9]+)? Safari/" [NC,OR]
|
|
64
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS ([0-9]|1[0-5])_" [NC,OR]
|
|
65
|
+
RewriteCond %{HTTP_USER_AGENT} "(iPhone|iPad|iPod).* OS 16_[0-3]( |_)" [NC]
|
|
50
66
|
RewriteRule .* browser-support.html [L]
|
|
51
67
|
|
|
52
68
|
# ------------------------------------------------------------------------------
|