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
relrelb
828d8b7339
demo: General refactor
...
General cleanup and refactoring of the web demo
2021-01-09 19:36:05 -08:00
Mike Welsh
87ae91963b
demo: Enable letterbox for demo
2021-01-07 11:46:07 -08:00
Toad06
2d0c76c06f
demo: Only accepts .swf and .spl files
2020-12-30 15:14:28 -08:00
Nathan Adams
797dd83766
web: Merge streamSwfUrl and streamSwfData into load
2020-11-25 11:33:51 -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
600d267bf3
web: We no longer need git dependency in webpack builds - fixes #1517
2020-11-24 16:36:33 -08:00
Nathan Adams
abb311670f
web: Rename RufflePlayer.play_swf_data to RufflePlayer.playSwfData
2020-11-24 16:36:33 -08:00
Nathan Adams
bc3b6ade4e
web: Rename SourceAPI.create_player to SourceAPI.createPlayer
2020-11-24 16:36:33 -08:00
Nathan Adams
c56d707045
web: Make demo depend directly on ruffle-core
2020-11-24 16:36:33 -08:00
Nathan Adams
5ff7168fe9
web: Switched core package from javascript to typescript
2020-11-24 16:36:33 -08:00
relrelb
d71c886e48
web: Move margin to #nav
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
Nathan Adams
dab79107b2
web: Include git details into the build
2020-11-04 16:46:14 -08: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
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
Nathan Adams
c07dbbb748
web: Remove & disable package-lock for subpackages, only root should have it
2020-06-13 12:35:14 -07:00
Nathan Adams
d7092d0f30
web: Hoist common dev dependencies up to the top (except CLI) and hopefully improve how we bootstrap
2020-06-13 12:35:14 -07:00
Mike Welsh
4671740abe
demo: Fix incorrect sample SWF loading
...
The indexing into the list of sample SWFs could be incorrect
depending on the order of the JSON data. Now we store the SWF info
directly on the option element for easy access, regardless of order.
2020-06-05 16:40:10 -07:00
Nathan Adams
e466060a50
chore: Copy LICENSE* to relevant places where package managers complain if they don't exist, and make sure they're included in distributions
2020-05-27 00:11:02 -07:00
Nathan Adams
77b0216579
chore: Update package.infos in web
2020-05-27 00:11:02 -07:00
Nathan Adams
d02223c816
chore: Formatted demo index.html
2020-05-27 00:11:02 -07:00
Nathan Adams
75759d9b3b
chore: Document web with readmes
2020-05-27 00:11:02 -07:00
Nathan Adams
df6764a69c
chore: Add license metadata to all packages & crates
2020-05-27 00:11:02 -07:00
Sean-Thomas
2d557f8fb6
Added Opt-Groups for Web Demo
...
This commit adds HTML Opt-Groups separating Games and Animations on the web demo sample dropdown menu. There are also a few tiny styling changes. Mainly the addition of a transition duration to the logo image, as well as changing "max-device-width" to "max-width" on a media query so that the "mobile" view is shown if you scale down the window on desktop browsers.
2020-05-24 19:09:19 -07:00
Mike Welsh
94f2154514
chore: Bump copy-webpack-plugin to 6.0.1
2020-05-20 23:34:17 -07:00
Nathan Adams
82c1930c0f
web: web doesn't need install before bootstrap now
2020-05-19 11:42:57 +02:00
Nathan Adams
9f4455f2fb
web: Fixed extra </div> in demo
2020-05-19 11:42:56 +02:00
Nathan Adams
11f68b90f9
web: Switch to using commonjs style require/exports
...
It looks like things still don't play nice with modules yet :(
2020-05-19 11:42:55 +02:00
Nathan Adams
0ab3c9f69b
web: Made demo use ruffle-selfhosted
2020-05-19 11:42:54 +02:00
Nathan Adams
e9a394ac27
web: Only core will build ruffle, the other packages will use that
2020-05-19 11:42:54 +02:00
Nathan Adams
7b8a4ffed1
web: Switch to using lerna for package management
2020-05-19 11:42:53 +02:00
Nathan Adams
b6523324ed
web: Move each web package into a packages/ directory
2020-05-19 11:42:53 +02:00