Commit graph

63 commits

Author SHA1 Message Date
Jordan Eldredge
90aef32df8 Get rid of @babel/preset-react 2020-12-22 16:27:28 -08:00
Jordan Eldredge
ea1c7bdbbd Bump cursor-ani version 2020-12-10 20:12:07 -08:00
Jordan Eldredge
223084ad83 Mention ani blog post in changelog 2020-12-10 20:03:12 -08:00
Jordan Eldredge
829f7cbb6c Fix deploy of ani-cursor 2020-12-10 19:30:17 -08:00
Jordan Eldredge
441b397a72 Clean up in prep of publishing ani-cursor 2020-12-09 22:58:02 -08:00
Jordan Eldredge
5abadecc4f
Pull ani-cursor out into its own package (#1040)
* Pull ani-cursor out into its own package

* Fix yarn.lock?

* Ignore compiled tests

* Was yarn.lock messed up?

* Add ani-cursor to build
2020-12-09 22:47:50 -08:00
Jordan Eldredge
f6cf3a1897 Refactor ani parser 2020-12-08 23:10:59 -08:00
Jordan Eldredge
0bb694d9d2
Correctly handle keyframe transitions (#1037)
* Correctly handle keyframe transitions

CSS properties with a animation type of "discrete" like `cursor`actually
switch half-way _between_ each keyframe. To avoid ambiguityabout how
long we want each frame to show, we explicitly give both thestart _and_
end timing of each frame.

https://drafts.csswg.org/web-animations-1/#discrete

Thanks to https://github.com/matthewwithanm/ for catching this bug.

We also add a `:hover` pseudo selector to avoid running the animation
when the cursor is not visible.

* Refactor to dedupe URIs in CSS

* Make ani parsing more robust by handling artist/title

Also, ignore icons that crash the parser

* Clean up comments
2020-12-07 13:07:13 -08:00
Jordan Eldredge
680b863b90
Support .ani cursor files (#1035)
* Use first frame of ani animation

* Add types for aniParse

* Sketch out animating .ani cursors

* Use existing util to convert Uint8Array to base64

* Match binary magic

* Support rate and seq

* Fix and cleanup tests

* Fix serialization tests

* Make jiffies to ms conversion more precise

* Add note to changelog about .ani cursors
2020-12-04 21:01:41 -08:00
Jordan Eldredge
5a93682f54 Cut 1.4.2 release 2020-11-26 13:40:45 -08:00
Jordan Eldredge
4e61a1ac23 Add close method to public types 2020-11-26 13:36:29 -08:00
Jordan Eldredge
46e0e8180c Cut 1.4.1 release 2020-11-26 13:26:22 -08:00
Jordan Eldredge
101fa863d9 Add webamp.close() method 2020-11-26 13:26:22 -08:00
Jordan Eldredge
7b51ce1743 v1.4.1-beta06 2020-11-26 13:26:22 -08:00
Jordan Eldredge
89c4f6dd9c
Handle case insensitive file collisions (#1032)
* Use last matching file

See comment in the code.

Here is the skin that originally surfaced this issue: https://skins.webamp.org/skin/a0cf0f893d345eba99809fc84af8a71c/Half-Life%202%20-%20Gordon.wsz/

* Add regression test for case insensitive filename collision
2020-11-12 12:01:10 -08:00
Jordan Eldredge
f9fa396436
React 17 (#1030)
* Use faster source maps in dev

* Upgrade react

* Don't need to import React just for JSX any more

* Upgrade react-test-renderer

* See if having only one version of React fixes it
2020-11-02 20:40:17 -08:00
Jordan Eldredge
90bc65830c Clean up eye icon SVG 2020-11-02 16:35:43 -08:00
Jordan Eldredge
fa00493d72 Fix warnings when building
Fixes #707
2020-11-02 10:28:06 -08:00
Jordan Eldredge
169c167821 Use faster source maps in dev 2020-11-01 22:29:36 -08:00
Jordan Eldredge
e2b5cb76bf Use suspense to ensure desktop images load atomically 2020-11-01 22:24:40 -08:00
Jordan Eldredge
5645f67d93 Update image snapshots 2020-11-01 16:58:54 -08:00
Jordan Eldredge
8c870b65c2 Fix skin url in integration tests 2020-11-01 16:53:13 -08:00
Jordan Eldredge
9d4f71546a Recover if individual files cannot be extracted
See:
https://webamp.org/?skinUrl=https://cdn.webampskins.org/skins/0a90a510fcc077b0710f4ff1a763c8c2.wsz

And: https://twitter.com/diamante_loco/status/1320374866311262210?s=21
2020-10-25 14:20:29 -07:00
Jordan Eldredge
8523b0686e Version bump 2020-10-19 10:09:52 -07:00
Jordan Eldredge
0a3664bdbc Require file extension for sprites 2020-10-12 21:53:34 -07:00
Jordan Eldredge
f6897c6d41 Update changelog a bit 2020-10-12 20:30:53 -07:00
Jordan Eldredge
3afb6330bf Recover from corrupt images. Fixes #1021 2020-10-12 20:30:53 -07:00
Jordan Eldredge
f74d13b556
Render visuzlizer background for screenshot (#1019) 2020-09-29 21:43:21 -07:00
Jordan Eldredge
df500913c8 Update image snapshots 2020-09-29 16:45:09 -07:00
Jordan Eldredge
e1f5c725f3 Remove icons when taking a screenshot
Especially noticeable in https://skins.webamp.org/skin/55222bb21f623ddbf76a4d32075851ff/ROSENROTcompact.wsz/
2020-09-29 16:23:44 -07:00
Jordan Eldredge
fcb76c9e2a Bump beta version 2020-09-27 13:36:55 -07:00
Jordan Eldredge
7fe34a4658 Add link to Winamp Skin Museum 2020-09-07 10:22:19 -07:00
Jordan Eldredge
e7bb05ea76 Update image snapshots 2020-08-28 07:45:57 -07:00
Jordan Eldredge
2374113894 Fix skin path in itegration tests 2020-08-28 07:27:34 -07:00
Jordan Eldredge
6f7695ed86 Refactor GA event logging 2020-08-26 23:32:55 -07:00
Jordan Eldredge
5e086ffeea Log more user events 2020-08-26 21:19:04 -07:00
Jordan Eldredge
7032212002 Log sessions which see Milkdrop 2020-08-26 19:43:47 -07:00
Jordan Eldredge
21d30123ff More log events for windows 2020-08-26 17:21:32 -07:00
Jordan Eldredge
0bcd636138 Add playlist events 2020-08-26 17:13:53 -07:00
Jordan Eldredge
0583983161 More log events 2020-08-26 16:21:23 -07:00
Jordan Eldredge
38898b4702 Use classic Winamp skin 2020-08-26 15:15:16 -07:00
Jordan Eldredge
e09c0f92bb Enable icons 2020-08-26 14:07:51 -07:00
Jordan Eldredge
d976c80665 Show skin icons 2020-08-26 14:01:35 -07:00
horsemankukka
b8cb979ab4
Wrong character mapping in skinSprites.ts (#1008)
* Fix sprite character mapping

* yarn compile-skin

* Update snapshots

Co-authored-by: Jordan Eldredge <jordan@jordaneldredge.com>
2020-08-26 10:46:31 -07:00
Jay Sitter
88f5982d32
Use default cursor for context menu (#1006) 2020-08-19 07:01:42 -07:00
Jordan Eldredge
cd290a30ce Revert autoformat 2020-08-18 23:04:13 -07:00
Jordan Eldredge
7318397e5e Fix link to music credits 2020-08-18 22:56:26 -07:00
Jordan Eldredge
3664324bac Move non-base skins into demo directory 2020-07-04 11:21:20 -07:00
Jordan Eldredge
3a48076f91 Move examples to their own directory 2020-07-03 22:06:29 -07:00
Jordan Eldredge
fd58eab2d4 Fix links in root README 2020-07-03 22:02:09 -07:00