generator-razor 14.0.17 → 14.0.19
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
|
@@ -182,7 +182,7 @@ export default class extends Generator {
|
|
|
182
182
|
when: answers => answers.Transport === 'smtp',
|
|
183
183
|
type: 'input',
|
|
184
184
|
name: 'SmtpEmail',
|
|
185
|
-
message: 'Sender
|
|
185
|
+
message: 'Sender Email?',
|
|
186
186
|
default: '',
|
|
187
187
|
store: true
|
|
188
188
|
}, {
|
|
@@ -225,7 +225,7 @@ export default class extends Generator {
|
|
|
225
225
|
}, {
|
|
226
226
|
type: 'input',
|
|
227
227
|
name: 'Email',
|
|
228
|
-
message: 'Author
|
|
228
|
+
message: 'Author Email',
|
|
229
229
|
default: 'john@doe.com',
|
|
230
230
|
store: true
|
|
231
231
|
}, {
|
|
@@ -305,6 +305,17 @@ export default class extends Generator {
|
|
|
305
305
|
value: 12
|
|
306
306
|
}],
|
|
307
307
|
store: true
|
|
308
|
+
}, {
|
|
309
|
+
type: 'select',
|
|
310
|
+
name: 'Picture',
|
|
311
|
+
message: 'Download TYPO3 picture extension?',
|
|
312
|
+
choices: [{
|
|
313
|
+
name: 'No',
|
|
314
|
+
value: false
|
|
315
|
+
}, {
|
|
316
|
+
name: 'Yes',
|
|
317
|
+
value: true
|
|
318
|
+
}]
|
|
308
319
|
}]
|
|
309
320
|
|
|
310
321
|
this.props = await this.prompt(prompts)
|
|
@@ -351,14 +362,19 @@ export default class extends Generator {
|
|
|
351
362
|
async install () {
|
|
352
363
|
const branch = this._getRazorBranch()
|
|
353
364
|
|
|
354
|
-
const
|
|
365
|
+
const packages = [
|
|
355
366
|
`ssh://git@github.com/rafu1987/razor.git#${branch}`
|
|
367
|
+
]
|
|
356
368
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
369
|
+
if (this.props.Picture) {
|
|
370
|
+
const picturePackage = await this._getLatestGithubReleasePackage(
|
|
371
|
+
'b13',
|
|
372
|
+
'picture',
|
|
373
|
+
'picture'
|
|
374
|
+
)
|
|
375
|
+
|
|
376
|
+
packages.push(picturePackage)
|
|
377
|
+
}
|
|
362
378
|
|
|
363
379
|
await this._runCommand('yarn', [
|
|
364
380
|
'add',
|
|
@@ -366,8 +382,7 @@ export default class extends Generator {
|
|
|
366
382
|
'--no-lockfile',
|
|
367
383
|
'--modules-folder',
|
|
368
384
|
'typo3conf/ext/',
|
|
369
|
-
|
|
370
|
-
picturePackage
|
|
385
|
+
...packages
|
|
371
386
|
])
|
|
372
387
|
}
|
|
373
388
|
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none';"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none';"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none'; sandbox;"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none'; sandbox;"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none'; sandbox;"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none'; sandbox;"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none'; sandbox;"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none'; sandbox;"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|