Commit Graph

140 Commits

Author SHA1 Message Date
relrelb aa33832936 web: Improve context menu position
The maxX and maxY calculation assumed the player covers the whole
viewport. Now it takes into account rect.width and rect.height.
2020-11-21 12:46:06 -08:00
Nathan Adams 9015f77bdc web: Fixed mime issue detection 2020-11-20 00:26:47 +01:00
relrelb 1674132b36 web: Use fullscreen helper methods
In order to be compatible with browsers that don't support the
standard Fullscreen API.

Co-authored-by: Sean-Thomas <sean-thomas@pocketonion.net>
2020-11-18 17:50:12 -08:00
relrelb d71c886e48 web: Move margin to #nav 2020-11-18 17:50:12 -08:00
relrelb 456ef1963e web: Move border styling to CSS 2020-11-18 17:50:12 -08:00
relrelb 80ab00cdd6 web: Extract max{X,Y}
As a small refactoring to improve readability.
2020-11-18 17:50:12 -08:00
relrelb c8ed1debc6 web: Change margin to margin-top
This makes the demo page fit in a whole page without a scrollbar.
2020-11-18 17:50:12 -08:00
relrelb 1c0b167e20 Improve web context menu 2020-11-18 17:50:12 -08:00
relrelb b987db010b web: Add fullscreen context menu item
TODO: Retain focus on fullscreen enter/exit.
2020-11-18 17:50:12 -08:00
sousuke0422 75ce1bf4c1
i18n: Add Japanese
* i18n: Add Japanese
* i18n: Fix the "message" field in ja/message.json

Co-authored-by: FUJIMOTO-Itsuki <52658442+FUJIMOTO-Itsuki@users.noreply.github.com>
Co-authored-by: FUJIMOTO-Itsuki <52658442+FUJIMOTO-Itsuki@users.noreply.github.com>
2020-11-07 17:22:47 -08:00
Pablo Rodríguez aaa4ce5431
i18n: Improve the Spanish translation and use ellipses character
* replace ... with proper Unicode char "…"
* some improvements to the Spanish translation

Co-authored-by: Pablo Rodríguez <ousia@users.noreply.gitlab.com>
2020-11-07 13:11:03 -08:00
Rult 564a36c049 i18n: Add Russian 2020-11-07 13:06:29 -08:00
Nathan Adams dab79107b2 web: Include git details into the build 2020-11-04 16:46:14 -08:00
Nathan Adams d1c58b143f web: Fix right click menu when scrolling - fixes #1484 2020-11-04 16:30:49 -08:00
Nathan Adams a8759f45a1 web: Add specific error for invalid MIME type, with a link back to the wiki 2020-11-02 13:42:36 -08:00
Nathan Adams 2b3f787547 web: Fix build of extension, failing since partial update to webpack 5 2020-11-01 05:52:40 -08:00
Nathan Adams ffb988026c web: Fix positioning of right click menu 2020-11-01 05:52:40 -08:00
Nathan Adams 66eb645b68 web: Add basic right click menu, only has About Ruffle link so far 2020-10-29 13:27:28 -07:00
Mike Welsh cd96df7ee7 web: Disable automatic publicPath in webpack configs 2020-10-21 15:19:36 -07:00
Mike Welsh 8465638939 web: Drop webpack-dev-server and use webpack serve
See https://github.com/webpack/webpack-dev-server/issues/2759
2020-10-18 17:36:52 -07:00
dependabot-preview[bot] a965d2f6ba build(deps-dev): bump webpack-cli from 3.3.12 to 4.0.0 in /web
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.12 to 4.0.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.12...webpack-cli@4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-17 15:33:13 -07:00
Mike Welsh 990052db77 chore: Bump to webpack 5 2020-10-17 14:07:28 -07:00
Nathan Adams b7b67cacb2 web: Merge flashvars with swf url query vars 2020-10-12 15:28:16 -07:00
Nathan Adams 30fffa8022 test: Add tests for flashvars on web 2020-10-12 15:28:16 -07:00
Nathan Adams 6b591269e9 web: Parse flashvars from swf urls 2020-10-12 15:28:16 -07:00
Nathan Adams 6d9155477c core: Add flashvars support - #312 2020-10-12 15:28:16 -07:00
Mike Welsh 212645d9b9 demo: Remove query parameter support (fix #1255)
The 'file' query parameter is no longer necessary now that the
sample drop-down box was added, populated by swfs.json.
2020-10-10 17:48:39 -07:00
Mike Welsh 3689bb607d docs: Update demo link in docs 2020-10-10 01:15:48 -07:00
Toad06 904b5c1463 web: Add missing file for the case-insensitive test 2020-10-09 12:25:37 -07:00
Toad06 6589710a61 web: Add tests to check swf extension 2020-10-09 12:25:37 -07:00
Toad06 1643d2335e web: Correctly detect swf file extension 2020-10-09 12:25:37 -07:00
JustinCB d4fa329c54 web(test): Add test for fixed issue 2020-10-08 23:35:33 -07:00
JustinCB ce6b19f1b2 web: Add more try/catch's to stop error spam crashing sites 2020-10-08 23:35:33 -07:00
Sean-Thomas 6b54cc4311 web: Add pause method for web player
Adds a suspend_audio method to compliment prime_audio on WebAudioBackend, as well as logic in player.rs on the set_is_playing method to suspend audio when is_playing is set to false. Exposes pause method for the ruffle player in JavaScript with logic to display the play button when paused.
2020-09-29 11:05:23 -07:00
Luca Weiss d5cb396331 *: fix spelling mistakes 2020-09-19 16:17:58 -07:00
Nathan Adams e114282a4e web: Implement Show Error Details for panics 2020-09-13 15:20:44 -07:00
Nathan Adams 69d1e903fb web: Destroy shouldn't be able to throw exceptions 2020-09-13 15:20:44 -07:00
Nathan Adams f05fba069d web: Add basic panic screen 2020-09-13 15:20:44 -07:00
Nathan Adams 95275898c7 web: If ruffle panics, inform all instances (if possible) and poison future instances 2020-09-13 15:20:44 -07:00
Nathan Adams 085c61b94f tests: In browser based tests, actually press play and check that the movie spits out some text 2020-09-13 13:51:39 -07:00
Nathan Adams 4c6c8ee1f2 web: Add trace_observer to web api, which lets you capture trace output from a specific movie 2020-09-13 13:51:39 -07:00
Toad06 048bfaf53d tests: Add polyfill samples from #457 2020-09-07 13:16:44 -07:00
Nathan Adams db86cdab79 chore: Workaround for chrome not being found on windows tests 2020-09-04 11:31:39 -07:00
Nathan Adams 4de2b7f3a0 web: Ensure exposed callbacks are on the <ruffle-player> 2020-09-03 18:17:44 -07:00
Nathan Adams 91cb597a79 web: Expose ExternalInterface callbacks on the player object, not the canvas 2020-09-03 18:17:44 -07:00
Nathan Adams 5880db43cd web: Respect allowScriptAccess, which defaults to false for streaming or 'sameDomain' for objects 2020-09-03 18:17:44 -07:00
Nathan Adams b5531a48d0 web: Allow reentrant ExternalInterface callbacks 2020-09-03 18:17:44 -07:00
Nathan Adams a49e8d8587 web: Implement two-way communication with ExternalInterface 2020-09-03 18:17:44 -07:00
Mike Welsh 4f6af6428e web: Prevent mouse/tap highlighting on player (fix #861) 2020-08-24 11:17:50 -07:00
JustinCB 808b6588ab web(test): Add test for spl 2020-08-20 05:30:28 -07:00