Mike Welsh
a882f85d14
chore: Bump TypeScript config to es2017
2021-09-13 14:54:17 -07:00
Daniel Jacobs
2213e7d012
web: Menu embed/object attribute true value is case-insensitive
2021-09-11 14:25:52 -07:00
Daniel Jacobs
5ac9796ffd
web: Support salign, quality, & scale embed/object attributes (part of #4258 )
2021-09-08 16:25:47 -07:00
relrelb
acd462745d
web: Fix `publicPath()` being called from non-global scope
...
`document.currentScript` works only while the script is initially
being processed. This means that when `publicPath()` was called from
a non-global scope, it failed to detect where ruffle.js is located,
which in turn failed to determine the .wasm location.
2021-09-08 02:25:05 -07:00
relrelb
375269417f
web: Set `__webpack_public_path__` in `load-ruffle.ts`
...
Use wasm-bindgen's built-in loader instead of relying on Webpack.
In order to still respect the `publicPath` config, set
`__webpack_public_path__` just before fetching the WebAssembly module.
This allows to no longer declare `.wasm` files as resource assets in
each `webpack.config.js`.
2021-09-08 02:25:05 -07:00
relrelb
28a155a099
web: Remove `config.publicPaths`
...
This simplifies the `publicPath` function and makes it useable inside
`fetchRuffle`.
Assuming `publicPaths` isn't used anywhere, this shouldn't be harmless.
2021-09-08 02:25:05 -07:00
Tal Hayon
4625ca0e0b
web: fix base param
2021-09-07 16:45:35 -07:00
dependabot[bot]
8b665b590d
chore: Bump typescript from 4.3.4 to 4.4.2 in /web
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.3.4 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.4...v4.4.2 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-02 17:03:19 +03:00
dependabot[bot]
35e32582df
chore: Bump @wdio/cli from 7.9.0 to 7.11.1 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 7.9.0 to 7.11.1.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.9.0...v7.11.1 )
---
updated-dependencies:
- dependency-name: "@wdio/cli"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-02 13:37:06 +03:00
relrelb
44d1677ed6
web: Allow migration to TypeScript 4.4
...
More info at: https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#use-unknown-catch-variables
2021-09-02 10:09:21 +03:00
dependabot[bot]
ec85e18e09
chore: Bump @types/chrome from 0.0.149 to 0.0.154 in /web
...
Bumps [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome ) from 0.0.149 to 0.0.154.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome )
---
updated-dependencies:
- dependency-name: "@types/chrome"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-02 00:25:13 +03:00
dependabot[bot]
bf44fd9a85
chore: Update typedoc requirement from ^0.21.2 to ^0.21.9 in /web
...
Updates the requirements on [typedoc](https://github.com/TypeStrong/TypeDoc ) to permit the latest version.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.21.2...v0.21.9 )
---
updated-dependencies:
- dependency-name: typedoc
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-02 00:25:02 +03:00
dependabot[bot]
6a9fc6fd1c
chore: Update style-loader requirement from ^3.0.0 to ^3.2.1 in /web
...
Updates the requirements on [style-loader](https://github.com/webpack-contrib/style-loader ) to permit the latest version.
- [Release notes](https://github.com/webpack-contrib/style-loader/releases )
- [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/style-loader/compare/v3.0.0...v3.2.1 )
---
updated-dependencies:
- dependency-name: style-loader
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-01 23:57:14 +03:00
Daniel Jacobs
3982f3af98
web: Support menu embed/object attribute (part of #4258 )
2021-08-28 14:56:35 +02:00
relrelb
74da833c58
extension: Resolve paths relative to the SWF location
...
In direct SWF mode, paths used to be resolved relative to the
extension URL, which is invalid. Change it to be relative to the
SWF location, using the `base` option.
2021-08-26 01:02:45 +03:00
Chris Midgley
535b614ee4
dev: remove wdio/sync ( #5105 )
...
* dev: remove wdio/sync
* chore: fix eslint errors
2021-08-21 16:34:08 +02:00
Tal Hayon
8cb5cf0252
web: Adds support for base embed/object attribute (Part of #4258 )
2021-08-19 21:22:47 +02:00
Daniel Jacobs
985a97d599
web: Re-enable context menu on mobile, with option to disable ( #5000 )
...
* Re-enable context menu on mobile, with option to disable
* Review refactors
Co-authored-by: Adrian Wielgosik <adrian.wielgosik@gmail.com>
2021-08-19 20:28:40 +02:00
relrelb
0fe583e723
extension: Fix warning on Firefox
...
Firefox doesn't know the manifest "version_name" key, so it shows
a warning when loading the extension.
So define "version_name" only for the "generic" variant, along with
a nearby cleanup of using a regular property assignment instead of
`Object.assign`.
2021-08-16 23:03:29 +03:00
Seedgou
7a0a3025ba
extension: vectorize logo image
2021-08-16 18:25:33 +02:00
cyrozap
74d6195725
demo: Fix local file uploads on iOS
...
It seems Mobile Safari on iOS refuses to allow selection of any files
when the "accept" attribute doesn't contain any file types it
recognizes. To fix this, detect when the demo is running on an iOS
device and remove the "accept" attribute from the file input in that
case.
Fixes: 2d0c76c06f
("demo: Only accepts .swf and .spl files")
2021-08-11 19:53:38 +02:00
Daniel Jacobs
88f368ad0a
Link all CompileErrors to wiki without a report bug button
2021-08-08 11:56:20 +02:00
Daniel Jacobs
38ae22e834
Add a loadeddata event, which triggers when loadedmetadata does for now
2021-08-03 14:28:20 -07:00
Adrian Wielgosik
02dd0ae463
web: add isExtension info to panic info and context menu version string
2021-08-03 17:47:42 +02:00
Adrian Wielgosik
b940e7f00f
Extension: Sidestep CORS issues by offering to load the SWF in a tab
2021-08-02 21:28:16 +02:00
dependabot[bot]
1aa1943da5
chore: Bump @wdio/cli from 7.7.4 to 7.9.0 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 7.7.4 to 7.9.0.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.7.4...v7.9.0 )
---
updated-dependencies:
- dependency-name: "@wdio/cli"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 08:21:50 +03:00
dependabot[bot]
97f63c75ad
chore: Bump @typescript-eslint/parser from 4.28.1 to 4.28.5 in /web
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.28.1 to 4.28.5.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.5/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 04:49:08 +03:00
dependabot[bot]
8caaf22ac0
chore: Bump ts-loader from 9.2.3 to 9.2.4 in /web
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.2.3 to 9.2.4.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases )
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.3...v9.2.4 )
---
updated-dependencies:
- dependency-name: ts-loader
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 04:48:09 +03:00
dependabot[bot]
98b4f4c73b
chore: Update @types/firefox-webext-browser requirement in /web
...
Updates the requirements on [@types/firefox-webext-browser](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/firefox-webext-browser ) to permit the latest version.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/firefox-webext-browser )
---
updated-dependencies:
- dependency-name: "@types/firefox-webext-browser"
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 04:47:31 +03:00
dependabot[bot]
ff90c132cf
chore: Bump @types/chrome from 0.0.145 to 0.0.149 in /web
...
Bumps [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome ) from 0.0.145 to 0.0.149.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome )
---
updated-dependencies:
- dependency-name: "@types/chrome"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-01 23:10:11 +02:00
dependabot[bot]
da1b74fb64
chore: Bump mocha from 9.0.1 to 9.0.3 in /web
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 9.0.1 to 9.0.3.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v9.0.1...v9.0.3 )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-01 23:09:52 +02:00
relrelb
508f541ada
Revert "web: Simplify .wasm loading"
...
This reverts commit 66bfff7687
.
2021-07-27 11:19:55 +03:00
relrelb
66bfff7687
web: Simplify .wasm loading
...
Use wasm-bindgen's built-in loader instead of relying on Webpack.
This allows to no longer declare .wasm files as resource assets in
each webpack.config.js.
Also the bundled JS is a bit smaller (e.g. demo is now ~88KB vs.
~90KB before).
2021-07-24 14:18:19 -07:00
relrelb
49e26338bc
web: Fix and cleanup npm build scripts
...
* Remove `buildProduction` as it was equivalent to `build`.
* Fix `build:avm_debug` and change it to `build:debug`, which also
disables Webpack optimizations.
2021-07-17 11:40:25 +03:00
relrelb
f9be5c2230
web: Unify "menu_item" and "active" CSS classes
...
It seems that these two classes were totally equivalent, so simply
drop "active" and use only "menu_item".
Also, don't highlight disabled context menu items on hover.
2021-07-13 23:45:18 +03:00
divinity76
c94ebf133a
open "not yet supported more info" in new tab
...
i fully intended to press "run anyway" just to see what happened, and it was annoying that Ruffle took me to another page so i had to re-load the flash.. (from a page with 10 seconds worth of ads before playing the flash, even)
2021-07-13 21:42:50 +03:00
relrelb
a33066f666
demo: Small cleanups
2021-07-12 23:21:14 +03:00
relrelb
df47c53f5c
web: Remove unused `RufflePlayer._trace_observer`
2021-07-12 23:21:14 +03:00
relrelb
803da71e9c
web: Remove `RufflePlayer.playButtonClicked`
...
Replace its few usages with `play` which is part of the public API.
Also made little cleanups to the selfhosted test utils along the way.
2021-07-12 23:21:14 +03:00
Daniel Jacobs
bdf693c9c4
Remove error report link from could not download wasm module
2021-07-08 20:20:57 +02:00
relrelb
2e77895839
web: Remove unused esm dependency
...
It's no longer used since 43d0f7a527
.
2021-07-03 21:18:42 +03:00
relrelb
276e77d188
web: Cleanup tsconfig.json files
...
* Extend from the recommended config.
* Remove the exclude field that doesn't contribute to the file
inclusion (include alone should be enough).
* Remove the esModuleInterop field that shouldn't be necessary.
2021-07-03 21:18:42 +03:00
relrelb
558bbdb520
web: Cleanup .eslintrc.json files
...
* `eslint:recommended` is not needed in the each file as it already
appears in the root config.
* The default `@typescript-eslint/naming-convention` rule is preferred.
* Other formatting improvements.
2021-07-03 21:18:42 +03:00
relrelb
70938b849c
web: Remove babel-eslint dependency
...
Not only it's deprecated, it's also not needed because ESLint's
built-in "es2021" environment seems to support everything we use.
2021-07-03 21:18:42 +03:00
relrelb
0ece8bfb38
web: Fix build without wasm-opt on Windows
...
Since #3111 , `wasm-opt` became mandatory on GitHub Actions. But the
check whether we run on GitHub Actions is Bash-specific, and fails
on Windows. That means builds on Windows without `wasm-opt` always
fail.
As a workaround, use the trick from https://gist.github.com/prail/24acc95908e581722c0e9df5795180f6
to run the check only on Unix, and skip it on Windows:
```
echo ; [ \"$GITHUB_ACTIONS\" != true ] # > nul
```
On Unix, `echo` does nothing, the check runs, and the rest is
considered a comment.
On Windows, `echo` prints everything until the `> nul`, which
suppresses the print by redirection, making the whole statement
effectively a no-op.
2021-07-02 13:58:38 +03:00
relrelb
a09733ae4c
web: Fix mocha integration with ES modules
...
Use the workaround from https://github.com/mochajs/mocha-examples/tree/master/packages/typescript#es-modules
to help mocha run with ES modules.
The `cross-env` package is for both Unix and Windows systems support.
2021-07-02 12:38:16 +03:00
dependabot[bot]
1ac370d4bd
chore: Bump mocha from 8.4.0 to 9.0.1 in /web
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.4.0 to 9.0.1.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v9.0.1 )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-02 12:38:16 +03:00
relrelb
43d0f7a527
web: Extract .mocharc.json
2021-07-02 12:38:16 +03:00
relrelb
d1bf06786a
web: Replace chai with Node.js built-in assert module
2021-07-02 12:38:16 +03:00
dependabot[bot]
f117c2d1b9
chore: Bump @wdio/cli from 7.7.3 to 7.7.4 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 7.7.3 to 7.7.4.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.7.3...v7.7.4 )
---
updated-dependencies:
- dependency-name: "@wdio/cli"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-02 12:36:58 +03:00
dependabot[bot]
0940e3f7cf
chore: Bump webpack from 5.39.1 to 5.41.1 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.39.1 to 5.41.1.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.39.1...v5.41.1 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-02 10:44:29 +03:00
dependabot[bot]
1fbda1716e
chore: Bump @typescript-eslint/parser from 4.27.0 to 4.28.1 in /web
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.27.0 to 4.28.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.1/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-02 10:44:14 +03:00
dependabot[bot]
6563670634
chore: Update eslint-plugin-jsdoc requirement in /web
...
Updates the requirements on [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) to permit the latest version.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v35.3.2...v35.4.1 )
---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-02 00:19:49 +03:00
dependabot[bot]
4a145f71e2
chore: Bump style-loader from 2.0.0 to 3.0.0 in /web
...
Bumps [style-loader](https://github.com/webpack-contrib/style-loader ) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/webpack-contrib/style-loader/releases )
- [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/style-loader/compare/v2.0.0...v3.0.0 )
---
updated-dependencies:
- dependency-name: style-loader
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 23:49:35 +03:00
dependabot[bot]
b166106bf7
chore: Bump @typescript-eslint/eslint-plugin in /web
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.27.0 to 4.28.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.1/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 23:33:50 +03:00
dependabot[bot]
8c7230fbc6
chore: Update typedoc requirement from ^0.21.0 to ^0.21.2 in /web
...
Updates the requirements on [typedoc](https://github.com/TypeStrong/TypeDoc ) to permit the latest version.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.21.0...v0.21.2 )
---
updated-dependencies:
- dependency-name: typedoc
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 22:25:24 +02:00
relrelb
6010fac5d4
web: Fix lint warnings
...
Using `npm run format`.
2021-06-23 15:04:54 +03:00
TÖRÖK Attila
a16bbcf9d0
web: Improve Hungarian translations
2021-06-20 18:45:59 -07:00
dependabot[bot]
ee69567fa5
chore: Update @types/chai requirement from ^4.2.18 to ^4.2.19 in /web
...
Updates the requirements on [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) to permit the latest version.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
---
updated-dependencies:
- dependency-name: "@types/chai"
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-20 02:55:04 -07:00
Chris Midgley
c2a7953943
dev: downgrade mocha to 8.4.0
...
Both ts-node 10 and mocha 9 include native ESM support, but I can't find
the combination of flags to get this to work.
2021-06-20 02:21:17 -07:00
Chris Midgley
55685b0a2d
lint: fix prettier errors
2021-06-20 02:21:17 -07:00
Chris Midgley
8927500489
dev: update all package.json devDependencies to latest
2021-06-20 02:21:17 -07:00
Daniel Jacobs
e6bc34cf1c
Add favicon to demo page ( fix #2910 )
2021-06-10 23:57:31 -07:00
Daniel Jacobs
b52b2a64da
web: Fix wasm compile error check
2021-06-07 11:30:17 -07:00
relrelb
dbeeb42098
web: Remove package-lock.json in core
2021-06-07 11:27:30 -07:00
Daniel Jacobs
bd2db4cca3
web: Add better error information about wasm CompileErrors
2021-06-05 10:15:34 -07:00
Chris Midgley
cb601255d9
web: improve typescript types
2021-06-05 10:12:59 -07:00
dependabot[bot]
6061e5c6cf
chore: Bump eslint-plugin-jsdoc from 33.3.0 to 35.1.2 in /web
...
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) from 33.3.0 to 35.1.2.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v33.3.0...v35.1.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-01 09:13:24 -07:00
Mike Welsh
22948789b8
web: Add MovieData.isActionScript3 and backgroundColor
2021-05-23 23:02:38 -07:00
sn-o-w
41c4ac2834
i18n: Add Romanian
2021-05-19 14:49:01 -07:00
Toad06
c5233ed172
web: Make `unmuteOverlay: "hidden"` resume audio without extra click
2021-05-16 23:34:11 -07:00
Toad06
0ee6b62517
web: Add a `none` value to completely disable the unmute overlay
2021-05-16 23:34:11 -07:00
Jmousy
27bf4c5ccc
i18n: Add Korean
2021-05-16 22:57:23 -07:00
Ahmet Akkoç
ae038ccbb1
i18n: Update Turkish localization
2021-05-13 10:30:14 -07:00
Adrian Wielgosik
c40d08e73a
web: Fix context menu checkmark in web builds
2021-05-10 00:19:29 -07:00
Pablo Rodríguez
3acfb5bc29
i18n: Minor improvement in Spanish translation
2021-05-09 10:57:27 -07:00
Ahmet Akkoç
d2bf69d5e6
i18n: Added Turkish localization
2021-05-08 03:14:23 -07:00
Adrian Wielgosik
8ca22c1f02
core: Support for custom context menu items on movie root
2021-05-02 15:28:00 -07:00
dependabot[bot]
f2130f3c58
chore: Bump eslint-plugin-jsdoc from 32.3.4 to 33.0.0 in /web
...
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) from 32.3.4 to 33.0.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v32.3.4...v33.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-01 12:56:12 -07:00
relrelb
f8a8b82c04
web: Cleanup ESLint configuration
...
* Cleanup .eslintrc.json files.
* Avoid unnecessary eslint-* directives.
2021-04-30 18:16:55 -07:00
dependabot[bot]
ea227d332a
chore: Bump @types/chrome from 0.0.135 to 0.0.136 in /web
...
Bumps [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome ) from 0.0.135 to 0.0.136.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-29 14:10:55 -07:00
Adrian Wielgosik
940cb8d2f7
web: Use unicode escapes for checkbox emojis
2021-04-28 13:58:04 -07:00
Adrian Wielgosik
a1737b5922
avm1: Respect menu.builtInItems, but on root clip only
2021-04-27 16:42:02 -07:00
Adrian Wielgosik
be40e2ce28
Fix formatting
2021-04-27 16:42:02 -07:00
Adrian Wielgosik
ce4d66e0f4
avm1: support Stage.showMenu
2021-04-27 16:42:02 -07:00
Adrian Wielgosik
41a126885c
web: Minimal context menu buttons for movie control
2021-04-27 16:42:02 -07:00
Mike Welsh
ff6adaf706
chore: Bump JS packages
2021-04-26 12:09:42 -07:00
relrelb
24dcad9546
extension: Avoid script injection in XML documents
...
document.xmlVersion doesn't exist in Firefox, so use another method
to detect XML documents, described in MDN:
https://developer.mozilla.org/en-US/docs/Web/API/Document/xmlVersion
2021-04-24 04:16:23 -07:00
Mike Welsh
10b014bf18
tests: Move utils.js out of polyfill folder
2021-04-23 16:58:24 -07:00
Mike Welsh
0c5951da52
tests: Add tests for Ruffle JS API
...
Add some basic scaffolding for testing the JS API. Adds a test for
`RufflePlayer.load` and `RufflePlayer.metadata`.
2021-04-23 16:58:24 -07:00
Mike Welsh
d34b72cc47
web: Expose SWF metadata to JavaScript
...
Add `RufflePlayer.metadata` that exposes the SWF header fields to
JavaScript.
Add `RufflePlayer.readyState` and fire a `loadedmetadata` event
once the metadata is available, mimicking the HTML5 media APIs.
2021-04-23 16:58:24 -07:00
relrelb
488e4421e9
extension: Lint after TypeScript migration
2021-04-23 16:58:13 -07:00
relrelb
cfc57a2e1d
extension: Complete TypeScript migration
2021-04-23 16:58:13 -07:00
relrelb
b0c6cfe1d3
extension: Initial TypeScript migration
2021-04-23 16:58:13 -07:00
relrelb
a157d7ab72
extension: Avoid script injection in XML documents
2021-04-22 18:05:18 -07:00
relrelb
2b71786b8b
extension: Convert manifest to JSON5
...
JSON5 is a more flexible superset of JSON. It supports comments,
trailing commas and more nice features that JSON doesn't support.
2021-04-21 19:03:19 -07:00
relrelb
0fa24b4ce0
web: Migrate file-loader to asset modules
...
file-loader is deprecated and asset modules are the recommended
alternative.
2021-04-21 19:03:19 -07:00
relrelb
201c4f5db0
web: Use relative paths for webpack entries
...
Only output.path needs to be absolute.
2021-04-21 19:03:19 -07:00
Daniel Jacobs
c993ad8964
demo: Use absolute URLs for links in README
2021-04-19 16:50:52 -07:00
Daniel Jacobs
8c9db35baf
demo: Allow small screens to still upload local files
2021-04-18 21:04:02 -07:00
valadaptive
f6602dd377
web: Handle errors from CSPs which block WebAssembly
...
This removes the "Report Bug" link from the error case in which
WebAssembly code generation is disallowed by the host's content security
policy, because there's nothing we can do to fix that, and directs
people to the wiki instead.
2021-04-17 19:21:39 -07:00
Mike Welsh
7171628b44
ci: Append GitHub build ID instead to extension version
...
Appending the build date doesn't work (the Mozilla verison format
requires each numeric to be <65536). Use GITHUB_RUN_NUMBER instead,
which increases each time the workflow runs.
2021-04-16 22:17:01 -07:00
Mike Welsh
3f718e508e
docs: Update Firefox add-on instructions
2021-04-16 12:31:14 -07:00
Mike Welsh
98c0146279
extension: Add build date to version in manifest
...
The Chrome/Firefox marketplaces require the version number of an
extension to increase with each upload, so append the build date
to the version in `manifest.json`. Add `versionName` with the more
readable version (`0.1 nightly 2010-15-04` for nightly builds).
2021-04-16 12:31:14 -07:00
Mike Welsh
100977a266
extension: Catch errors while signing the Firefox add-on
...
Properly catch errors from the `sign-addon` package and bail out
immediately. This will display better output from the Mozilla
validation service.
2021-04-16 12:31:14 -07:00
Mike Welsh
9e64f111c3
extension: Copy Firefox add-on after signing instead of moving
...
A rename will fail if the destination is on a different mount
(happened to me!). Instead, copy the file to the destination, then
delete the old file.
2021-04-16 12:31:14 -07:00
Mike Welsh
80dfefa45d
extension: Add proper 128x128 icon
2021-04-16 12:31:14 -07:00
relrelb
4d2c8ec7f6
web: Set page title in player.js
2021-04-15 16:29:27 -07:00
relrelb
9021da874d
web: Small improvement in player.js
2021-04-15 16:29:27 -07:00
relrelb
2fd0bb0183
web: Improve background.js
2021-04-15 16:29:27 -07:00
relrelb
54604c1be1
web: Prototype direct SWFs
2021-04-15 16:29:27 -07:00
relrelb
d336926e3f
web: Put Firefox-specific note in place
2021-04-15 16:21:23 -07:00
relrelb
9e4816c2f1
demo: Add missing class="hidden"
2021-04-15 15:56:52 -07:00
relrelb
71a17166f4
web: Rename index.js to ruffle.js
2021-04-15 13:47:07 -07:00
relrelb
d86949d22f
web: Refactor manifest.json
2021-04-15 13:47:07 -07:00
relrelb
1e7bd652e7
web: Update extension README.md
2021-04-15 13:47:07 -07:00
relrelb
027597039f
web: Rename lv0.js to content.js
2021-04-15 13:47:07 -07:00
relrelb
0db98888b2
web: Rename extension/build/ to extension/assets/
2021-04-15 13:47:07 -07:00
relrelb
a3576da5f1
web: Unify extension/build/icons/ and extension/build/logo/
2021-04-15 13:47:07 -07:00
relrelb
02669c0451
web: Rename extension/js/ to extension/src/
2021-04-15 13:47:07 -07:00
relrelb
2d24afc318
web: Rename settings to options
2021-04-15 13:47:07 -07:00
Mike Welsh
ae9be98821
web: Disable context menu from touch events
...
Once a touch event is seen, completely disable the context menu to
prevent a long press from triggering the context menu.
Fixes #1972 .
2021-04-12 16:28:43 -07:00
relrelb
792519a725
demo: Improvements
2021-04-11 21:49:18 -07:00
relrelb
7fbae7c809
web: Appease ESLint
2021-04-11 15:04:16 -07:00
relrelb
26932c59bb
extension: Remove util.js
2021-04-11 15:04:16 -07:00
relrelb
9e93b06d77
web: Refactor extension lv0.js and index.js
2021-04-11 15:04:16 -07:00
relrelb
3dc5b34706
web: Remove unused functions from util.js
...
As they were replaced with corresponding functions in utils.js.
The end goal is to gradually deprecate util.js, and then remove it.
2021-04-10 17:57:11 -07:00
relrelb
7b5d0b4359
web: Refactor extension settings page
2021-04-10 17:57:11 -07:00
relrelb
304d618f27
web: Refactor extension popup
...
This currently breaks the options page, which will be fixed in a
follow-up commit.
2021-04-10 17:57:11 -07:00
relrelb
ee8b24b6fc
web: Add common.css
2021-04-10 17:57:11 -07:00
relrelb
6eb5a95705
web: Add common.js
2021-04-10 17:57:11 -07:00
relrelb
2c2983236e
web: Add utils.js
2021-04-10 17:57:11 -07:00
relrelb
51d02fb7f7
web: Add packages/extension/.gitignore
2021-04-10 17:38:39 -07:00
relrelb
47859af86b
web: Move exclusive dependencies to extension
2021-04-10 17:38:39 -07:00
relrelb
c6cd22258f
web: Refactor extension build tools
2021-04-10 17:38:39 -07:00
Chris Midgley
aab3ff781d
web: use customElements.get over try-catch
2021-04-09 14:37:09 -07:00
Chris Midgley
a171883d39
web: check for window.customElements before entering loop
2021-04-09 14:37:09 -07:00
Chris Midgley
2e42942058
web: try a limited number of times defining a custom element
2021-04-09 14:37:09 -07:00
Chris Midgley
20480ef6d8
web: crash out of infinite loop if not NotSupportedError
2021-04-09 14:37:09 -07:00
Mike Welsh
d0c7aa0dff
web: Fix fullscreen sizing on Safari
...
When Ruffle would go fullscreen on Safari, the content would often
not fill the viewport because Ruffle's width/height CSS would
override the :-webkit-full-screen CSS that Safari adds.
Add our own :-webkit-full-screen CSS with !important to force 100%
dimensions in fullscreen.
2021-03-25 16:26:37 -07:00
Suhao Jeffrey Huang
ce72277a07
web: Hide navigation bar in fullscreen on Android ( fix #1698 )
2021-03-25 16:26:37 -07:00
relrelb
12dee2199e
web: Pass obfuscatedEventPrefix via query string
...
This eliminates the need to create a script dynamically, and fixes
publicPath() to correctly return the extension URL rather than the
host site URL.
2021-03-13 02:19:05 -08:00
relrelb
56cece3336
web: Use publicPath() instead of ruffleRuntimePath
...
Similarly to how selfhosted currently does.
2021-03-13 02:19:05 -08:00
relrelb
32ff16e1da
web: Remove packages/core/.eslintrc.json
2021-03-05 23:07:55 -08:00
relrelb
47c7a05340
web: Add packages/core/tools/.eslintrc.json
2021-03-05 23:07:55 -08:00
relrelb
690b51f15b
web: Shorten CopyWebpackPlugin to CopyPlugin
2021-03-05 23:07:55 -08:00
relrelb
1ed8dea599
web: Improvements
2021-03-05 23:07:55 -08:00
relrelb
f64e5d5b41
web: Get rid of move-file-cli
2021-03-03 07:08:43 -08:00
Mike Welsh
f6f7222221
web: Remove clean-webpack-plugin dependency
2021-03-03 06:44:45 -08:00
dependabot-preview[bot]
ac056e7f83
build(deps-dev): bump eslint-plugin-jsdoc from 31.6.1 to 32.1.0 in /web
...
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) from 31.6.1 to 32.1.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v31.6.1...v32.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-25 14:36:42 -08:00
relrelb
d62c3c0500
web: Fix CSS variables in shadow-template.ts
...
Apparently CSS variables need to be defined in :host rather than in
:root when it comes to shadow DOM.
2021-02-25 14:34:40 -08:00
relrelb
1b41f8fad1
web: Fix panic message alignment
2021-02-25 14:34:40 -08:00
Mike Welsh
eb173f06ca
web: Strip query params from URL in GitHub issue titles
2021-02-20 14:12:07 -08:00
relrelb
73b5916b2a
web: Fix player positioning
2021-02-19 17:40:43 -08:00
relrelb
8f62236fe1
web: Remove demo/package-lock.json
...
demo is the only package to have its own package-lock.json.
2021-02-19 16:28:09 -08:00
relrelb
d3a006f62a
web: Cleanup JSON files
...
Change indentation to 4 spaces and put newline at EOF.
2021-02-19 16:28:09 -08:00
relrelb
6a710fa1f3
web: Remove stale globals definitions
...
They were removed in 3e084963c6
.
2021-02-19 16:28:09 -08:00
relrelb
8b7b5caa95
web: Upgrade all wdio packages
2021-02-19 16:28:09 -08:00
relrelb
524fb30acb
chore: Cleanup .gitignore
...
And split it across multiple files.
2021-02-19 16:28:09 -08:00
Mike Welsh
836b631237
web: Revert style changes in #3239
2021-02-18 04:11:04 -08:00
relrelb
1c21856980
web: General refactoring
...
* web: Don't load a random SWF Instead, show a prompt to select or drag an SWF.
* web: Refactor webpack.config.js
* demo: Refactor index.js
* demo: Cleanup CSS
2021-02-16 20:39:46 -08:00
Ben Lubar
1c620b2c9b
add TypeScript documentation for maxExecutionDuration
2021-02-16 20:31:40 -08:00
dependabot-preview[bot]
cea703ad03
build(deps-dev): bump @wdio/cli from 6.12.1 to 7.0.3 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.12.1 to 7.0.3.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.12.1...v7.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-15 09:46:55 -08:00
Adrian Wielgosik
f787cffe54
web: Minimal polyfill of window.Reflect
2021-02-09 19:10:47 -08:00
TÖRÖK Attila
4ea1d9e33c
web/build: Make successful wasm-opt invocation mandatory on GitHub Actions
2021-02-05 10:38:47 -08:00
Toad06
b5749ee228
web: Fix some context menu and warning message issues
2021-02-04 15:10:04 -08:00
Mads Marquart
1990e51639
avm2: Add UiBackend::display_unsupported_message
...
To allow displaying rich content when unsupported ActionScript 3 content is encountered.
2021-01-31 23:04:20 -08:00
Brian Gontowski
31dd2729e2
web: Add an onFSCommand callback into JavaScript
2021-01-31 18:03:31 -08:00
Toad06
b62ca3d589
web: Move `allowScriptAccess` to `BaseLoadOptions`
2021-01-30 16:59:58 -08:00
Omar Shehata
218f1f1da5
web: Pause player when tab is inactive ( close #347 )
2021-01-26 22:34:43 -08:00
Adrian Wielgosik
9195491f1b
web: Redesign the context menu
2021-01-26 17:12:43 -08:00
relrelb
aeda974143
web: Rename contextMenu to contextMenuElement
...
Firefox has a read-only "contextMenu" property, so avoid
shadowing it.
2021-01-25 03:51:50 -08:00
relrelb
b07eb07afb
web: Revert config removal
2021-01-25 03:51:50 -08:00
relrelb
5827801b03
web: Rename config.showContextMenu to config.contextMenu
2021-01-25 03:51:50 -08:00
relrelb
70326108b9
web: Rename "right click menu" to "context menu"
2021-01-25 03:51:50 -08:00
relrelb
21b0128bca
web: Add option to disable the context menu
2021-01-25 03:51:50 -08:00
Andrew Larson
f34bdb045d
demo: Fix player not being destroyed when None is selected
...
Fix issue with duplicate instances in web demo when sample SWF
is unloaded.
2021-01-25 03:31:24 -08:00
relrelb
0ea7b857cf
demo: Lint index.js
2021-01-22 09:19:26 -08:00
relrelb
0349d90fcd
demo: Add drag-and-drop functionality
2021-01-22 09:19:26 -08:00
Maxwell DeKock
b2594b2b6c
web: Fix error in demo when selecting None for sample ( close #2416 )
2021-01-21 18:05:12 -08:00
Toad06
dc2b4fcc42
web: Use enum instead of arbitrary values
2021-01-20 15:03:52 -08:00
Toad06
bc47bfb9e9
web: Display appropriate errors when Ruffle fails to initialize
2021-01-20 15:03:52 -08:00
Adrian Wielgosik
b69e17bf35
web: Allow customizing log level
2021-01-19 18:10:35 -08:00
Mike Welsh
c2b768c453
web: Fallback to instantiate with improper MIME type
...
Use --target web in wasm-bindgen and file-loader for WASM files,
allowing wasm-bindgen's built-in fallback from
WebAssembly.instantiateStreaming to instantiate.
file-loader spits out the WASM file directly in the output folder,
and imports will resolve to the URL, so that we can load the file
directly, avoiding webpack's built-in wasm loaders.
This allows Ruffle to function on web servers even if they serve
WASM files with the incorrect MIME type, fixing one of our biggest
support requests (#400 , #1458 ). There is some performance impact
on loading with the fallback, but this is preferable to not
working at all.
2021-01-16 15:30:11 -08:00
TÖRÖK Attila
2858faaaf2
web: Drop wasm-pack, invoke wasm-bindgen and wasm-opt directly from npm ( #2482 )
2021-01-15 12:59:25 -08:00
Mike Welsh
9bb36885bb
web: Add backgroundColor option and support bgcolor attribute
...
Add `backgroundColor` setting to the config options, allowing
a user to override the background color of an SWF. The polyfill
will now look for the `bgcolor` HTML attribute on the embed
and fill in this setting appropriately.
2021-01-13 11:57:19 -08:00
dependabot-preview[bot]
4dbc4e55cc
build(deps-dev): bump eslint-plugin-jsdoc from 30.7.13 to 31.0.3 in /web
...
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) from 30.7.13 to 31.0.3.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v30.7.13...v31.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-11 12:04:14 -08:00
TÖRÖK Attila
cce3a8199d
web: Add a config option to disable the message about unsupported content
2021-01-10 16:02:23 -08:00
relrelb
828d8b7339
demo: General refactor
...
General cleanup and refactoring of the web demo
2021-01-09 19:36:05 -08:00
Toad06
b81fb64be9
web: Prevent "414 URI Too Long" error on Github when reporting bugs
2021-01-07 11:51:00 -08:00
Mike Welsh
01aca9f861
web: Remove upgrade_to_https param from Ruffle::new
...
Grab it from the `config` directly instead of using an extra param.
2021-01-07 11:46:07 -08:00
Mike Welsh
87ae91963b
demo: Enable letterbox for demo
2021-01-07 11:46:07 -08:00
Mike Welsh
8728804f28
web: Add letterbox config option
2021-01-07 11:46:07 -08:00
Toad06
24362d72e3
web: Fix minor issues in `ruffle-player.ts`
2021-01-06 12:04:03 -08:00
Toad06
201d014edb
web: Read the `allowScriptAccess` property from `embed` tags
2021-01-04 13:08:02 -08:00
Toad06
9449abf873
web: Rename `settings.htm` to `settings.html`
2021-01-04 12:23:25 -08:00
Toad06
ed221c5aef
web: Rename `popup.js` to `main.js`
2021-01-04 12:23:25 -08:00
Toad06
b975ab141b
web: Update extension to camelCase
2021-01-04 12:23:25 -08:00
dependabot-preview[bot]
338e43888a
build(deps-dev): bump typescript from 4.0.5 to 4.1.3 in /web
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.0.5 to 4.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.5...v4.1.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-03 02:01:54 -08:00
LaszloEr
446725e981
i18n: Fixed grammar mistakes in the German translation
2021-01-01 19:45:28 -08:00
Toad06
2d0c76c06f
demo: Only accepts .swf and .spl files
2020-12-30 15:14:28 -08:00
Toad06
3ae9ad57fc
web: Prevent crashes when native `Window` is overridden
2020-12-30 13:18:13 -08:00
Mike Welsh
3ea8c2fc7e
chore: Fix typedoc config for typedoc 0.20
2020-12-29 17:27:48 -08:00
dependabot-preview[bot]
268ed44d6d
build(deps-dev): bump typedoc from 0.19.2 to 0.20.0 in /web
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.19.2 to 0.20.0.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-28 12:53:16 -08:00
Sam Morrow
38bdb8b39a
web/desktop: Add basic dialog handling ( closes #1978 )
2020-12-23 19:08:18 -08:00
Toad06
777734f6ba
web: Maintain compatibility with prototype.js
2020-12-21 16:26:14 -08:00
Toad06
a6b7474a6b
web: Prevent crashes with external libraries
2020-12-20 15:28:52 -08:00
dependabot-preview[bot]
5503399545
build(deps-dev): bump @wdio/cli from 6.10.5 to 6.10.11 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.10.5 to 6.10.11.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.10.5...v6.10.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-19 13:19:11 -08:00
Toad06
25d5f48d18
web: Run eslint
2020-12-17 12:48:32 -08:00
Toad06
b9aed2c7bb
web: Rename from snake_case to camelCase
2020-12-17 12:48:32 -08:00
Toad06
d6a857803a
web: Fix extension and self-hosted builds conflicting with each other
2020-12-17 12:48:32 -08:00
JMcKiern
63be0455a8
web: Add query string to `Report Bug` link
...
* web: Add query string to the Report Bug link (closes #1753 )
2020-12-14 11:25:10 -08:00
Sam Morrow
c4d7b24629
web: Fix cors issues with http (close ruffle-rs#1486)
2020-12-14 05:51:28 -08:00
Toad06
dab96ba01b
tests: Don't get fooled by GET parameters that look like a file extension
2020-12-13 15:38:18 -08:00
Toad06
d55f3959b9
web: Detect file extension using the `URL()` constructor
2020-12-13 15:38:18 -08:00
Toad06
5d55a60924
web: Avoid double polyfilling object-inside-object
...
* web: Avoid double polyfilling object-inside-object
* tests: Add polyfill test for object inside object
2020-12-10 13:36:40 -08:00
Toad06
83fcd7ba40
tests: Checks that iframe correctly fires its onload event
2020-12-09 17:01:20 -08:00
Toad06
07d3e7d81b
web: Use nullish coalescing operator
2020-12-09 17:01:20 -08:00
Toad06
4ed2470068
web: Fix possible issue with iframe elements no longer existing in the DOM
2020-12-09 17:01:20 -08:00
Toad06
1e61093e32
web: Fix issues with iframe polyfill
2020-12-09 17:01:20 -08:00
techboyg5
021194875a
Open shadow DOM
2020-12-07 17:57:15 -08:00
Toad06
457d707ec2
tests: `polyfills` option is now a boolean, defaulting to true
2020-12-07 15:22:51 -08:00
Toad06
3ca08c881f
docs: Update `streamSwfUrl` to `load`
2020-12-07 15:22:51 -08:00
jmckiern
73afae8fa5
Make slider color change if slider is checked
2020-12-07 13:39:46 -08:00
notimre
491ce876aa
i18n: Add Hungarian translations
2020-12-03 16:51:45 -08:00
StevenNL2000
64d8f3a2ce
i18n: Add Dutch
2020-12-03 11:44:36 -08:00
Newbyte
71f5339827
i18n: Add Swedish
2020-12-01 11:55:57 -08:00
Zombie110year
6e8346ab56
i18n: Add Simplified Chinese translation
2020-12-01 10:10:30 -08:00
IWumboYouWumbo
af254c3bc0
web: Revamp settings page
2020-11-28 15:34:58 -08:00
Txori
a363d0e392
Create messages.json ( #1765 )
...
Here comes the French.
2020-11-28 15:28:40 -08:00
Txori
bdc18863c8
i18n: Add missing word in Spanish
...
The word "loaded" was missing in the sentence.
2020-11-28 15:28:15 -08:00
Toad06
49d4197dbf
tests: Don't polyfill an object tag if it already contains a ruffle-embed
2020-11-28 14:43:39 -08:00
Toad06
fc565e2cd6
web: Don't polyfill an object tag if it already contains a ruffle-embed
2020-11-28 14:43:39 -08:00
ednt
a2888037a3
i18n: Create german version of messages.json
2020-11-28 13:46:51 -08:00
Mike Welsh
e84c432b00
tests: Add SWFObject.js polyfill test
2020-11-27 21:11:05 -08:00
IWumboYouWumbo
b6c0809224
web: Explicitly define font size of context menu
2020-11-27 15:44:24 -08:00
Mike Welsh
7898776e0c
tests: Add polyfill tests for missing movie
2020-11-26 18:19:57 -08:00
Mike Welsh
5d99dce16c
tests: Add polyfill test for object+embed with only clsid
2020-11-26 18:19:57 -08:00
Mike Welsh
b128c876ea
tests: Alter embed-inside-object polyfill tests to expect ruffle-embed
2020-11-26 18:19:57 -08:00
Mike Welsh
e66fc6f6a1
web: Avoid double polyfilling embed-inside-object
2020-11-26 18:19:57 -08:00
IWumboYouWumbo
9501ff06b0
web: Refinements to meta user interface (attempt 2)
...
- Fonts are no longer inherited, Arial is used instead
- Play button is smaller and shares same styling as unmute button
- Context menu text is always aligned to the left
- Panic screen text displays in white instead of black (it's much easier to read this way)
- CSS is cleaner and less redundant
I'm iffy on the changes to the play button aesthetic (it ranges from translucent -> opaque instead of opaque -> brighter opaque) so opinions are welcome.
- Fixed context menu hover issue, added drop shadow
- More redundancy fixes
2020-11-25 20:49:38 -08:00
Nathan Adams
c13d5e349b
web: Move autoplay/unmuteOverlay from Config to BaseLoadOptions - and made config default the load options
2020-11-25 11:33:51 -08:00
Nathan Adams
797dd83766
web: Merge streamSwfUrl and streamSwfData into load
2020-11-25 11:33:51 -08:00
dependabot-preview[bot]
48f8e6579a
build(deps-dev): bump prettier from 2.1.2 to 2.2.0 in /web
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-24 20:55:38 -08:00
willbrindle
54ac1ea300
docs: Update demo README instructions to be correct
2020-11-24 17:50:30 -08:00
willbrindle
c3e64f1b12
demo: Allow specifying file in demo via query params
2020-11-24 17:50:30 -08:00
Nathan Adams
a02a81f80f
web: Fixed extension & local not detecting eachother correctly
2020-11-24 16:36:33 -08:00
Nathan Adams
bcfe59c351
web: Rename Config.public_paths to Config.publicPaths
2020-11-24 16:36:33 -08:00
Nathan Adams
707788218d
web: Rename Config.public_path to Config.publicPath
2020-11-24 16:36:33 -08:00
Nathan Adams
103f0d69e8
web: Default autoplay to 'auto'
2020-11-24 16:36:33 -08:00
Nathan Adams
600d267bf3
web: We no longer need git dependency in webpack builds - fixes #1517
2020-11-24 16:36:33 -08:00
Nathan Adams
cc81122fd8
web: Make sure player config takes priority over global config
2020-11-24 16:36:33 -08:00
Nathan Adams
799c0955b3
web: Add options for autoplay
...
This is a rewritten version of PR #1161 by Toad06
2020-11-24 16:36:33 -08:00
Nathan Adams
a03b2fdea6
web: Add mute overlay
...
Original code by Toad06 as part of PR #1161
2020-11-24 16:36:33 -08:00
Nathan Adams
3e084963c6
web: Embed build/version info inside the js
2020-11-24 16:36:33 -08:00
Nathan Adams
7a3273a269
web: Add 'docs' command to generate jsdocs
2020-11-24 16:36:33 -08:00
Nathan Adams
f5667fc987
web: Fix up documentation to reflect the new state of core vs selfhosted (basically npm vs manual)
2020-11-24 16:36:33 -08:00
Nathan Adams
40bcd3f835
web: Remove no longer needed webpack config in core
2020-11-24 16:36:33 -08:00
Nathan Adams
10db305988
web: Enforce (sensible) documentation
2020-11-24 16:36:33 -08:00
Nathan Adams
eae6742475
web: Make sure extension labels itself in source API
2020-11-24 16:36:33 -08:00
Nathan Adams
f1eabe1594
web: Rename install_plugin to installPlugin
2020-11-24 16:36:33 -08:00
Nathan Adams
6a9d0f64e9
web: Rename load_ruffle to loadRuffle
2020-11-24 16:36:33 -08:00
Nathan Adams
8c36e02dc5
web: Rename fetch_ruffle to fetchRuffle
2020-11-24 16:36:33 -08:00
Nathan Adams
41bf30efc8
web: Rename public_path to publicPath
2020-11-24 16:36:33 -08:00
Nathan Adams
bccdaf77d4
web: Enforce camelCase
2020-11-24 16:36:33 -08:00
Nathan Adams
1519642a9a
web: Fix documentation and warnings inside plugin-polyfill
2020-11-24 16:36:33 -08:00
Nathan Adams
48aa26460d
web: Rename methods/variables inside polyfills to be camelCase
2020-11-24 16:36:33 -08:00
Nathan Adams
1bf4f5c4e4
web: Rename plugin_polyfill to pluginPolyfill
2020-11-24 16:36:33 -08:00
Nathan Adams
dcf2b712b2
web: Fix documentation and warnings in polyfills
2020-11-24 16:36:33 -08:00
Nathan Adams
d2d8bc6f01
web: Properly document and define window.RufflePlayer
2020-11-24 16:36:33 -08:00
Nathan Adams
2c952e954d
web: Renamed fields and variables inside PublicAPI to camelCase
2020-11-24 16:36:33 -08:00
Nathan Adams
950d19d1c5
web: Allow taking in "conflict" APIs
2020-11-24 16:36:33 -08:00
Nathan Adams
af01621484
web: Rename PublicAPI.local_compatible to PublicAPI.localCompatible
2020-11-24 16:36:33 -08:00
Nathan Adams
980590cf96
web: Rename PublicAPI.newest_source_name to PublicAPI.newestSourceName
2020-11-24 16:36:33 -08:00
Nathan Adams
d6afe2edd3
web: Rename PublicAPI.register_source to PublicAPI.registerSource
2020-11-24 16:36:33 -08:00
Nathan Adams
f4a710c806
web: Make PublicAPI use Config
2020-11-24 16:36:33 -08:00
Nathan Adams
96d3c30b5e
web: Move Config to its own file
2020-11-24 16:36:33 -08:00
Nathan Adams
456557ec20
web: Fix documentation and warnings in PublicAPI
2020-11-24 16:36:33 -08:00
Nathan Adams
5f02ee3ab8
web: Fixed documentation and warnings inside public-path
2020-11-24 16:36:33 -08:00
Nathan Adams
ca96553cf0
web: Rename register_element to registerElement
2020-11-24 16:36:33 -08:00
Nathan Adams
32abd35642
web: Changed variables inside RuffleEmbled to be camelCase
2020-11-24 16:36:33 -08:00
Nathan Adams
5a1fb5fba1
web: Rename RuffleEmbed.from_native_embed_element to
...
RuffleEmbed.fromNativeEmbedElement
2020-11-24 16:36:33 -08:00
Nathan Adams
f1b05716dd
web: Rename RuffleEmbed.is_interdictable to RuffleEmbed.isInterdictable
2020-11-24 16:36:33 -08:00
Nathan Adams
868548ddc6
web: Fixed documentation and warnings inside RuffleEmbed
2020-11-24 16:36:33 -08:00
Nathan Adams
976ef86da7
web: Rename variables in RuffleObject to camelCase
2020-11-24 16:36:33 -08:00
Nathan Adams
9f8dd465ae
web: Rename RuffleObject.from_native_object_element to
...
RuffleObject.fromNativeObjectElement
2020-11-24 16:36:33 -08:00
Nathan Adams
9633073c1f
web: Rename RuffleObject.is_interdictable to
...
RuffleObject.isInterdictable
2020-11-24 16:36:33 -08:00
Nathan Adams
879fa53417
web: Ignore ruffle-imports, it's not an API
2020-11-24 16:36:33 -08:00
Nathan Adams
5b5091b4b9
web: Rename copy_to_audio_buffer to copyToAudioBuffer
2020-11-24 16:36:33 -08:00
Nathan Adams
68ffc95348
web: Move RuffleObject.params_of to paramsOf (no longer a static member)
2020-11-24 16:36:33 -08:00
Nathan Adams
3faf09696d
web: Move RuffleObject.find_case_insensitive to findCaseInsensitive (no
...
longer a static member)
2020-11-24 16:36:33 -08:00
Nathan Adams
f44f2ea9db
web: Fix documentation and warnings in RuffleObject
2020-11-24 16:36:33 -08:00
Nathan Adams
7bd4308c22
web: Renamed variables inside register-element to be camelCase
2020-11-24 16:36:33 -08:00
Nathan Adams
eaa6dc70f4
web: Rename Registration.internal_name to Registration.internalName
2020-11-24 16:36:33 -08:00
Nathan Adams
87d3bf57bd
web: Fixed documentation and warnings inside register_element
2020-11-24 16:36:33 -08:00
Nathan Adams
62ddc7c9cd
web: Rename lookup_element to lookupElement
2020-11-24 16:36:33 -08:00
Nathan Adams
5c1a8ecd94
web: Rename private_registry to privateRegistry
2020-11-24 16:36:33 -08:00
Nathan Adams
f8486f00f3
web: Rename RufflePlayer.sanitize_parameters to
...
RufflePlayer.sanitizeParameters
2020-11-24 16:36:33 -08:00
Nathan Adams
8b5f1eee2f
web: Rename all variables inside RufflePlayer to be camelCase
2020-11-24 16:36:33 -08:00
Nathan Adams
6e191f2893
web: Rename RufflePlayer.allow_script_access to
...
RufflePlayer.allowScriptAccess
2020-11-24 16:36:33 -08:00