generator-razor 13.4.0 → 13.4.2

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.
Files changed (40) hide show
  1. package/app/index.js +13 -24
  2. package/app/templates/124/_.htaccess-dev +1 -1
  3. package/app/templates/124/_.htaccess-dev-ssl +1 -1
  4. package/package.json +1 -1
  5. package/app/templates/104/_.htaccess-dev +0 -3
  6. package/app/templates/104/_.htaccess-dev-ssl +0 -17
  7. package/app/templates/104/db.sql +0 -1907
  8. package/app/templates/104/fileadmin/.htaccess +0 -4
  9. package/app/templates/104/fileadmin/_temp_/.htaccess +0 -15
  10. package/app/templates/104/fileadmin/_temp_/index.html +0 -7
  11. package/app/templates/104/fileadmin/user_upload/.htaccess +0 -33
  12. package/app/templates/104/fileadmin/user_upload/_temp_/importexport/.htaccess +0 -15
  13. package/app/templates/104/fileadmin/user_upload/_temp_/importexport/index.html +0 -7
  14. package/app/templates/104/fileadmin/user_upload/_temp_/index.html +0 -0
  15. package/app/templates/104/fileadmin/user_upload/index.html +0 -0
  16. package/app/templates/104/typo3conf/Local.php +0 -9
  17. package/app/templates/104/typo3conf/LocalConfiguration.php +0 -116
  18. package/app/templates/104/typo3conf/PackageStates.php +0 -91
  19. package/app/templates/104/typo3temp/index.html +0 -0
  20. package/app/templates/104/typo3temp/var/.htaccess +0 -15
  21. package/app/templates/104/typo3temp/var/log/.htaccess +0 -13
  22. package/app/templates/95/_.htaccess-dev +0 -3
  23. package/app/templates/95/_.htaccess-dev-ssl +0 -17
  24. package/app/templates/95/db.sql +0 -2079
  25. package/app/templates/95/fileadmin/.htaccess +0 -4
  26. package/app/templates/95/fileadmin/_temp_/.htaccess +0 -15
  27. package/app/templates/95/fileadmin/_temp_/index.html +0 -7
  28. package/app/templates/95/fileadmin/user_upload/_temp_/importexport/.htaccess +0 -15
  29. package/app/templates/95/fileadmin/user_upload/_temp_/importexport/index.html +0 -7
  30. package/app/templates/95/fileadmin/user_upload/_temp_/index.html +0 -0
  31. package/app/templates/95/fileadmin/user_upload/index.html +0 -0
  32. package/app/templates/95/typo3conf/Local.php +0 -9
  33. package/app/templates/95/typo3conf/LocalConfiguration.php +0 -89
  34. package/app/templates/95/typo3conf/PackageStates.php +0 -97
  35. package/app/templates/95/typo3temp/index.html +0 -0
  36. package/app/templates/95/typo3temp/var/.htaccess +0 -15
  37. package/app/templates/95/typo3temp/var/cache/data/extbase_reflection/ClassSchematas +0 -0
  38. package/app/templates/95/typo3temp/var/log/.htaccess +0 -13
  39. package/app/templates/95/uploads/index.html +0 -7
  40. package/app/templates/95/uploads/media/index.html +0 -0
package/app/index.js CHANGED
@@ -288,12 +288,8 @@ module.exports = class extends Generator {
288
288
  const path = rzr.SrcPath + '/typo3_src-' + rzr.Version
289
289
 
290
290
  // Version
291
- let version = '104'
292
- if (rzr.Version.indexOf('9.5') !== -1) {
293
- version = '95'
294
- } else if (rzr.Version.indexOf('11.5') !== -1) {
295
- version = '115'
296
- } else if (rzr.Version.indexOf('12.4') !== -1) {
291
+ let version = '115'
292
+ if (rzr.Version.indexOf('12.4') !== -1) {
297
293
  version = '124'
298
294
  } else if (rzr.Version.indexOf('13.4') !== -1) {
299
295
  version = '134'
@@ -322,12 +318,8 @@ module.exports = class extends Generator {
322
318
  rzr = this.props
323
319
 
324
320
  // Branch
325
- let branch = 'razor10'
326
- if (rzr.Version.indexOf('9.5') !== -1) {
327
- branch = 'razor9'
328
- } else if (rzr.Version.indexOf('11.5') !== -1) {
329
- branch = 'razor11'
330
- } else if (rzr.Version.indexOf('12.4') !== -1) {
321
+ let branch = 'razor11'
322
+ if (rzr.Version.indexOf('12.4') !== -1) {
331
323
  branch = 'razor12-dev'
332
324
  } else if (rzr.Version.indexOf('13.4') !== -1) {
333
325
  branch = 'razor13-dev'
@@ -360,21 +352,19 @@ module.exports = class extends Generator {
360
352
  json: true
361
353
  }, (error, response, body) => {
362
354
  if (!error && response.statusCode === 200) {
363
- const releases9 = body['9']['releases']
364
- const releases10 = body['10']['releases']
365
355
  const releases11 = body['11']['releases']
366
356
  const releases12 = body['12']['releases']
367
357
  const releases13 = body['13']['releases']
368
358
 
369
- const releasesObj = t._mergeOptions(releases13, releases12, releases11, releases10, releases9)
359
+ const releasesObj = t._mergeOptions(releases13, releases12, releases11)
370
360
 
371
361
  const keys = Object.keys(releasesObj)
372
362
  const len = keys.length
373
363
  const arr = []
374
364
 
375
- // Filter out only 11.5.x 10.4.x, 9.5.x
365
+ // Filter out only 11.5.x 12.4.x, 13.4.x
376
366
  for (let i = 0; i < len; i++) {
377
- if (keys[i].indexOf('9.5.') !== -1 || keys[i].indexOf('10.4.') !== -1 || keys[i].indexOf('11.5.') !== -1 || keys[i].indexOf('12.4.') !== -1 || keys[i].indexOf('13.4.') !== -1) {
367
+ if (keys[i].indexOf('11.5.') !== -1 || keys[i].indexOf('12.4.') !== -1 || keys[i].indexOf('13.4.') !== -1) {
378
368
  arr.push({
379
369
  name: keys[i],
380
370
  value: keys[i]
@@ -387,15 +377,14 @@ module.exports = class extends Generator {
387
377
  })
388
378
  }
389
379
 
390
- _mergeOptions (obj1, obj2, obj3, obj4) {
391
- const obj5 = {}
380
+ _mergeOptions (obj1, obj2, obj3) {
381
+ const obj4 = {}
392
382
 
393
- for (let attrname in obj1) { obj5[attrname] = obj1[attrname] }
394
- for (let attrname in obj2) { obj5[attrname] = obj2[attrname] }
395
- for (let attrname in obj3) { obj5[attrname] = obj3[attrname] }
396
- for (let attrname in obj4) { obj5[attrname] = obj4[attrname] }
383
+ for (let attrname in obj1) { obj4[attrname] = obj1[attrname] }
384
+ for (let attrname in obj2) { obj4[attrname] = obj2[attrname] }
385
+ for (let attrname in obj3) { obj4[attrname] = obj3[attrname] }
397
386
 
398
- return obj5
387
+ return obj4
399
388
  }
400
389
 
401
390
  _createSymlinks (t, path, callback) {
@@ -3,7 +3,7 @@
3
3
  # ------------------------------------------------------------------------------
4
4
 
5
5
  <FilesMatch \.php$>
6
- SetHandler proxy:fcgi://php81:9000
6
+ SetHandler proxy:fcgi://php82:9000
7
7
  </FilesMatch>
8
8
 
9
9
  # ------------------------------------------------------------------------------
@@ -3,7 +3,7 @@
3
3
  # ------------------------------------------------------------------------------
4
4
 
5
5
  <FilesMatch \.php$>
6
- SetHandler proxy:fcgi://php81:9000
6
+ SetHandler proxy:fcgi://php82:9000
7
7
  </FilesMatch>
8
8
 
9
9
  # ------------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "13.4.0",
3
+ "version": "13.4.2",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",
@@ -1,3 +0,0 @@
1
- <FilesMatch \.php$>
2
- SetHandler proxy:fcgi://php74:9000
3
- </FilesMatch>
@@ -1,17 +0,0 @@
1
- <FilesMatch \.php$>
2
- SetHandler proxy:fcgi://php74:9000
3
- </FilesMatch>
4
-
5
- # ----------------------------------------------------------------------
6
- # | Forcing `https://` |
7
- # ----------------------------------------------------------------------
8
-
9
- # Redirect from the `http://` to the `https://` version of the URL.
10
- # https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
11
-
12
- <IfModule mod_rewrite.c>
13
- RewriteEngine On
14
- RewriteCond %{HTTPS} !=on
15
- RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
16
- RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
17
- </IfModule>