diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-01 15:55:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-01 15:55:54 +0200 |
commit | 6527eb0ccf823b5eac547c90066d3bd693094b2c (patch) | |
tree | 6b6600ff3a5c9bb617f87deecd677ef9a076e795 | |
parent | 3419e0e1fe8e48a08b63ca0ded31087f913eb2b6 (diff) | |
download | PeerTube-6527eb0ccf823b5eac547c90066d3bd693094b2c.tar.gz PeerTube-6527eb0ccf823b5eac547c90066d3bd693094b2c.tar.zst PeerTube-6527eb0ccf823b5eac547c90066d3bd693094b2c.zip |
Compat embed with ios 11
-rw-r--r-- | client/package.json | 3 | ||||
-rw-r--r-- | client/webpack/webpack.video-embed.js | 17 | ||||
-rw-r--r-- | client/yarn.lock | 99 |
3 files changed, 113 insertions, 6 deletions
diff --git a/client/package.json b/client/package.json index ce41700f8..c3fc14a9f 100644 --- a/client/package.json +++ b/client/package.json | |||
@@ -45,6 +45,8 @@ | |||
45 | "@angular/platform-browser-dynamic": "^12.0.0", | 45 | "@angular/platform-browser-dynamic": "^12.0.0", |
46 | "@angular/router": "^12.0.0", | 46 | "@angular/router": "^12.0.0", |
47 | "@angular/service-worker": "^12.0.0", | 47 | "@angular/service-worker": "^12.0.0", |
48 | "@babel/core": "^7.15.0", | ||
49 | "@babel/preset-env": "^7.15.0", | ||
48 | "@neos21/bootstrap3-glyphicons": "^1.0.1", | 50 | "@neos21/bootstrap3-glyphicons": "^1.0.1", |
49 | "@ng-bootstrap/ng-bootstrap": "^10.0.0", | 51 | "@ng-bootstrap/ng-bootstrap": "^10.0.0", |
50 | "@ng-select/ng-select": "^7.0.1", | 52 | "@ng-select/ng-select": "^7.0.1", |
@@ -77,6 +79,7 @@ | |||
77 | "@wdio/spec-reporter": "^7.10.1", | 79 | "@wdio/spec-reporter": "^7.10.1", |
78 | "angular2-hotkeys": "^2.1.2", | 80 | "angular2-hotkeys": "^2.1.2", |
79 | "angularx-qrcode": "11.0.0", | 81 | "angularx-qrcode": "11.0.0", |
82 | "babel-loader": "^8.2.2", | ||
80 | "bootstrap": "^4.1.3", | 83 | "bootstrap": "^4.1.3", |
81 | "buffer": "^6.0.3", | 84 | "buffer": "^6.0.3", |
82 | "cache-chunk-store": "^3.0.0", | 85 | "cache-chunk-store": "^3.0.0", |
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index 8cd606b39..c5df40a04 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js | |||
@@ -74,6 +74,23 @@ module.exports = function () { | |||
74 | } | 74 | } |
75 | ] | 75 | ] |
76 | }, | 76 | }, |
77 | { | ||
78 | test: /\.js$/, | ||
79 | use: [ | ||
80 | { | ||
81 | loader: 'babel-loader', | ||
82 | options: { | ||
83 | presets: [ | ||
84 | [ | ||
85 | '@babel/preset-env', { | ||
86 | targets: 'last 1 Chrome version, last 2 Edge major versions, Firefox ESR, Safari >= 11, ios_saf >= 11' | ||
87 | } | ||
88 | ] | ||
89 | ] | ||
90 | } | ||
91 | } | ||
92 | ] | ||
93 | }, | ||
77 | 94 | ||
78 | { | 95 | { |
79 | test: /\.(sass|scss)$/, | 96 | test: /\.(sass|scss)$/, |
diff --git a/client/yarn.lock b/client/yarn.lock index a7a519c28..8f41b3102 100644 --- a/client/yarn.lock +++ b/client/yarn.lock | |||
@@ -364,7 +364,7 @@ | |||
364 | semver "^5.4.1" | 364 | semver "^5.4.1" |
365 | source-map "^0.5.0" | 365 | source-map "^0.5.0" |
366 | 366 | ||
367 | "@babel/core@>=7.9.0", "@babel/core@^7.1.6", "@babel/core@^7.7.5", "@babel/core@^7.8.6": | 367 | "@babel/core@>=7.9.0", "@babel/core@^7.1.6", "@babel/core@^7.15.0", "@babel/core@^7.7.5", "@babel/core@^7.8.6": |
368 | version "7.15.0" | 368 | version "7.15.0" |
369 | resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.15.0.tgz#749e57c68778b73ad8082775561f67f5196aafa8" | 369 | resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.15.0.tgz#749e57c68778b73ad8082775561f67f5196aafa8" |
370 | integrity sha512-tXtmTminrze5HEUPn/a0JtOzzfp0nk+UEXQ/tqIJo3WDGypl/2OFQEMll/zSFU8f/lfmfLXvTaORHF3cfXIQMw== | 370 | integrity sha512-tXtmTminrze5HEUPn/a0JtOzzfp0nk+UEXQ/tqIJo3WDGypl/2OFQEMll/zSFU8f/lfmfLXvTaORHF3cfXIQMw== |
@@ -633,7 +633,7 @@ | |||
633 | "@babel/helper-remap-async-to-generator" "^7.14.5" | 633 | "@babel/helper-remap-async-to-generator" "^7.14.5" |
634 | "@babel/plugin-syntax-async-generators" "^7.8.4" | 634 | "@babel/plugin-syntax-async-generators" "^7.8.4" |
635 | 635 | ||
636 | "@babel/plugin-proposal-async-generator-functions@^7.14.7": | 636 | "@babel/plugin-proposal-async-generator-functions@^7.14.7", "@babel/plugin-proposal-async-generator-functions@^7.14.9": |
637 | version "7.14.9" | 637 | version "7.14.9" |
638 | resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.14.9.tgz#7028dc4fa21dc199bbacf98b39bab1267d0eaf9a" | 638 | resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.14.9.tgz#7028dc4fa21dc199bbacf98b39bab1267d0eaf9a" |
639 | integrity sha512-d1lnh+ZnKrFKwtTYdw320+sQWCTwgkB9fmUhNXRADA4akR6wLjaruSGnIEUjpt9HCOwTr4ynFTKu19b7rFRpmw== | 639 | integrity sha512-d1lnh+ZnKrFKwtTYdw320+sQWCTwgkB9fmUhNXRADA4akR6wLjaruSGnIEUjpt9HCOwTr4ynFTKu19b7rFRpmw== |
@@ -903,7 +903,7 @@ | |||
903 | dependencies: | 903 | dependencies: |
904 | "@babel/helper-plugin-utils" "^7.14.5" | 904 | "@babel/helper-plugin-utils" "^7.14.5" |
905 | 905 | ||
906 | "@babel/plugin-transform-classes@^7.14.5": | 906 | "@babel/plugin-transform-classes@^7.14.5", "@babel/plugin-transform-classes@^7.14.9": |
907 | version "7.14.9" | 907 | version "7.14.9" |
908 | resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.14.9.tgz#2a391ffb1e5292710b00f2e2c210e1435e7d449f" | 908 | resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.14.9.tgz#2a391ffb1e5292710b00f2e2c210e1435e7d449f" |
909 | integrity sha512-NfZpTcxU3foGWbl4wxmZ35mTsYJy8oQocbeIMoDAGGFarAmSQlL+LWMkDx/tj6pNotpbX3rltIA4dprgAPOq5A== | 909 | integrity sha512-NfZpTcxU3foGWbl4wxmZ35mTsYJy8oQocbeIMoDAGGFarAmSQlL+LWMkDx/tj6pNotpbX3rltIA4dprgAPOq5A== |
@@ -999,7 +999,7 @@ | |||
999 | "@babel/helper-plugin-utils" "^7.14.5" | 999 | "@babel/helper-plugin-utils" "^7.14.5" |
1000 | babel-plugin-dynamic-import-node "^2.3.3" | 1000 | babel-plugin-dynamic-import-node "^2.3.3" |
1001 | 1001 | ||
1002 | "@babel/plugin-transform-modules-commonjs@^7.1.0", "@babel/plugin-transform-modules-commonjs@^7.14.5": | 1002 | "@babel/plugin-transform-modules-commonjs@^7.1.0", "@babel/plugin-transform-modules-commonjs@^7.14.5", "@babel/plugin-transform-modules-commonjs@^7.15.0": |
1003 | version "7.15.0" | 1003 | version "7.15.0" |
1004 | resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.0.tgz#3305896e5835f953b5cdb363acd9e8c2219a5281" | 1004 | resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.0.tgz#3305896e5835f953b5cdb363acd9e8c2219a5281" |
1005 | integrity sha512-3H/R9s8cXcOGE8kgMlmjYYC9nqr5ELiPkJn4q0mypBrjhYQoc+5/Maq69vV4xRPWnkzZuwJPf5rArxpB/35Cig== | 1005 | integrity sha512-3H/R9s8cXcOGE8kgMlmjYYC9nqr5ELiPkJn4q0mypBrjhYQoc+5/Maq69vV4xRPWnkzZuwJPf5rArxpB/35Cig== |
@@ -1028,7 +1028,7 @@ | |||
1028 | "@babel/helper-module-transforms" "^7.14.5" | 1028 | "@babel/helper-module-transforms" "^7.14.5" |
1029 | "@babel/helper-plugin-utils" "^7.14.5" | 1029 | "@babel/helper-plugin-utils" "^7.14.5" |
1030 | 1030 | ||
1031 | "@babel/plugin-transform-named-capturing-groups-regex@^7.14.7": | 1031 | "@babel/plugin-transform-named-capturing-groups-regex@^7.14.7", "@babel/plugin-transform-named-capturing-groups-regex@^7.14.9": |
1032 | version "7.14.9" | 1032 | version "7.14.9" |
1033 | resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz#c68f5c5d12d2ebaba3762e57c2c4f6347a46e7b2" | 1033 | resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz#c68f5c5d12d2ebaba3762e57c2c4f6347a46e7b2" |
1034 | integrity sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA== | 1034 | integrity sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA== |
@@ -1229,6 +1229,85 @@ | |||
1229 | core-js-compat "^3.15.0" | 1229 | core-js-compat "^3.15.0" |
1230 | semver "^6.3.0" | 1230 | semver "^6.3.0" |
1231 | 1231 | ||
1232 | "@babel/preset-env@^7.15.0": | ||
1233 | version "7.15.0" | ||
1234 | resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.15.0.tgz#e2165bf16594c9c05e52517a194bf6187d6fe464" | ||
1235 | integrity sha512-FhEpCNFCcWW3iZLg0L2NPE9UerdtsCR6ZcsGHUX6Om6kbCQeL5QZDqFDmeNHC6/fy6UH3jEge7K4qG5uC9In0Q== | ||
1236 | dependencies: | ||
1237 | "@babel/compat-data" "^7.15.0" | ||
1238 | "@babel/helper-compilation-targets" "^7.15.0" | ||
1239 | "@babel/helper-plugin-utils" "^7.14.5" | ||
1240 | "@babel/helper-validator-option" "^7.14.5" | ||
1241 | "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.14.5" | ||
1242 | "@babel/plugin-proposal-async-generator-functions" "^7.14.9" | ||
1243 | "@babel/plugin-proposal-class-properties" "^7.14.5" | ||
1244 | "@babel/plugin-proposal-class-static-block" "^7.14.5" | ||
1245 | "@babel/plugin-proposal-dynamic-import" "^7.14.5" | ||
1246 | "@babel/plugin-proposal-export-namespace-from" "^7.14.5" | ||
1247 | "@babel/plugin-proposal-json-strings" "^7.14.5" | ||
1248 | "@babel/plugin-proposal-logical-assignment-operators" "^7.14.5" | ||
1249 | "@babel/plugin-proposal-nullish-coalescing-operator" "^7.14.5" | ||
1250 | "@babel/plugin-proposal-numeric-separator" "^7.14.5" | ||
1251 | "@babel/plugin-proposal-object-rest-spread" "^7.14.7" | ||
1252 | "@babel/plugin-proposal-optional-catch-binding" "^7.14.5" | ||
1253 | "@babel/plugin-proposal-optional-chaining" "^7.14.5" | ||
1254 | "@babel/plugin-proposal-private-methods" "^7.14.5" | ||
1255 | "@babel/plugin-proposal-private-property-in-object" "^7.14.5" | ||
1256 | "@babel/plugin-proposal-unicode-property-regex" "^7.14.5" | ||
1257 | "@babel/plugin-syntax-async-generators" "^7.8.4" | ||
1258 | "@babel/plugin-syntax-class-properties" "^7.12.13" | ||
1259 | "@babel/plugin-syntax-class-static-block" "^7.14.5" | ||
1260 | "@babel/plugin-syntax-dynamic-import" "^7.8.3" | ||
1261 | "@babel/plugin-syntax-export-namespace-from" "^7.8.3" | ||
1262 | "@babel/plugin-syntax-json-strings" "^7.8.3" | ||
1263 | "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" | ||
1264 | "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" | ||
1265 | "@babel/plugin-syntax-numeric-separator" "^7.10.4" | ||
1266 | "@babel/plugin-syntax-object-rest-spread" "^7.8.3" | ||
1267 | "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" | ||
1268 | "@babel/plugin-syntax-optional-chaining" "^7.8.3" | ||
1269 | "@babel/plugin-syntax-private-property-in-object" "^7.14.5" | ||
1270 | "@babel/plugin-syntax-top-level-await" "^7.14.5" | ||
1271 | "@babel/plugin-transform-arrow-functions" "^7.14.5" | ||
1272 | "@babel/plugin-transform-async-to-generator" "^7.14.5" | ||
1273 | "@babel/plugin-transform-block-scoped-functions" "^7.14.5" | ||
1274 | "@babel/plugin-transform-block-scoping" "^7.14.5" | ||
1275 | "@babel/plugin-transform-classes" "^7.14.9" | ||
1276 | "@babel/plugin-transform-computed-properties" "^7.14.5" | ||
1277 | "@babel/plugin-transform-destructuring" "^7.14.7" | ||
1278 | "@babel/plugin-transform-dotall-regex" "^7.14.5" | ||
1279 | "@babel/plugin-transform-duplicate-keys" "^7.14.5" | ||
1280 | "@babel/plugin-transform-exponentiation-operator" "^7.14.5" | ||
1281 | "@babel/plugin-transform-for-of" "^7.14.5" | ||
1282 | "@babel/plugin-transform-function-name" "^7.14.5" | ||
1283 | "@babel/plugin-transform-literals" "^7.14.5" | ||
1284 | "@babel/plugin-transform-member-expression-literals" "^7.14.5" | ||
1285 | "@babel/plugin-transform-modules-amd" "^7.14.5" | ||
1286 | "@babel/plugin-transform-modules-commonjs" "^7.15.0" | ||
1287 | "@babel/plugin-transform-modules-systemjs" "^7.14.5" | ||
1288 | "@babel/plugin-transform-modules-umd" "^7.14.5" | ||
1289 | "@babel/plugin-transform-named-capturing-groups-regex" "^7.14.9" | ||
1290 | "@babel/plugin-transform-new-target" "^7.14.5" | ||
1291 | "@babel/plugin-transform-object-super" "^7.14.5" | ||
1292 | "@babel/plugin-transform-parameters" "^7.14.5" | ||
1293 | "@babel/plugin-transform-property-literals" "^7.14.5" | ||
1294 | "@babel/plugin-transform-regenerator" "^7.14.5" | ||
1295 | "@babel/plugin-transform-reserved-words" "^7.14.5" | ||
1296 | "@babel/plugin-transform-shorthand-properties" "^7.14.5" | ||
1297 | "@babel/plugin-transform-spread" "^7.14.6" | ||
1298 | "@babel/plugin-transform-sticky-regex" "^7.14.5" | ||
1299 | "@babel/plugin-transform-template-literals" "^7.14.5" | ||
1300 | "@babel/plugin-transform-typeof-symbol" "^7.14.5" | ||
1301 | "@babel/plugin-transform-unicode-escapes" "^7.14.5" | ||
1302 | "@babel/plugin-transform-unicode-regex" "^7.14.5" | ||
1303 | "@babel/preset-modules" "^0.1.4" | ||
1304 | "@babel/types" "^7.15.0" | ||
1305 | babel-plugin-polyfill-corejs2 "^0.2.2" | ||
1306 | babel-plugin-polyfill-corejs3 "^0.2.2" | ||
1307 | babel-plugin-polyfill-regenerator "^0.2.2" | ||
1308 | core-js-compat "^3.16.0" | ||
1309 | semver "^6.3.0" | ||
1310 | |||
1232 | "@babel/preset-flow@^7.0.0": | 1311 | "@babel/preset-flow@^7.0.0": |
1233 | version "7.14.5" | 1312 | version "7.14.5" |
1234 | resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.14.5.tgz#a1810b0780c8b48ab0bece8e7ab8d0d37712751c" | 1313 | resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.14.5.tgz#a1810b0780c8b48ab0bece8e7ab8d0d37712751c" |
@@ -3062,7 +3141,7 @@ babel-core@^7.0.0-bridge.0: | |||
3062 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" | 3141 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" |
3063 | integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== | 3142 | integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== |
3064 | 3143 | ||
3065 | babel-loader@8.2.2: | 3144 | babel-loader@8.2.2, babel-loader@^8.2.2: |
3066 | version "8.2.2" | 3145 | version "8.2.2" |
3067 | resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.2.tgz#9363ce84c10c9a40e6c753748e1441b60c8a0b81" | 3146 | resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.2.tgz#9363ce84c10c9a40e6c753748e1441b60c8a0b81" |
3068 | integrity sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g== | 3147 | integrity sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g== |
@@ -4117,6 +4196,14 @@ core-js-compat@^3.14.0, core-js-compat@^3.15.0: | |||
4117 | browserslist "^4.16.8" | 4196 | browserslist "^4.16.8" |
4118 | semver "7.0.0" | 4197 | semver "7.0.0" |
4119 | 4198 | ||
4199 | core-js-compat@^3.16.0: | ||
4200 | version "3.16.4" | ||
4201 | resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.16.4.tgz#cf28abe0e45a43645b04b2c1a073efa03d0b3b26" | ||
4202 | integrity sha512-IzCSomxRdahCYb6G3HiN6pl3JCiM0NMunRcNa1pIeC7g17Vd6Ue3AT9anQiENPIm/svThUVer1pIbLMDERIsFw== | ||
4203 | dependencies: | ||
4204 | browserslist "^4.16.8" | ||
4205 | semver "7.0.0" | ||
4206 | |||
4120 | core-js-pure@^3.16.0: | 4207 | core-js-pure@^3.16.0: |
4121 | version "3.16.3" | 4208 | version "3.16.3" |
4122 | resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.16.3.tgz#41ccb9b6027535f8dd51a0af004c1c7f0a8c9ca7" | 4209 | resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.16.3.tgz#41ccb9b6027535f8dd51a0af004c1c7f0a8c9ca7" |