1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-26 23:07:17 +00:00
Commit Graph

56 Commits

Author SHA1 Message Date
Ivor Wanders
d3148056fc Improves the add stream dialog user experience.
When the dialog is opened, the text area is focused. When enter is
pressed (and the form is submit) the window now behaves as expected and
adds the stream to the playlist and closes. The text area is now also
cleared once the form is submit, previously the old stream was still
visible when the dialog was opened a second time.
2015-07-16 11:50:54 +02:00
Virgil Dupras
698f573a65 Fix broken add track action
Fix the bug I've introduced in my PR #78, breaking the add
track/playlist action. We have to decode URIs before sending them back
to our socket!

fixes #80
2015-07-13 14:31:56 -04:00
Virgil Dupras
fe44fca184 Fix browsing for non-ascii entity URI under Safari
Previously, browsing entities with non-ascii characters in their URI
under Safari wouldn't work. Directories would be empty, songs wouldn't
be added. I haven't tried it, but this behavior seems to be common to
Webkit-based browsers, so Chrome would be affected too.

This turned out to be because Safari normalizes all unicode strings to
NFC, breaking the link with MPD-spewed URIs, which are in NFD.

An obvious fix would have been to normalize all URIs to NFD, but
unfortunately, Safari doesn't have `str.normalize()`. Adding
normalization capabilities to our JS side would have involved
introductiing libraries such as `unorm`, which is rather big.

We could have done it on the C side, but it involves introducing `icu`,
which is far from trivial too.

After much fussing around, I stumbled on a simple solution: URI-encode
our URI when creating our browser table row. This magically prevents
Safari from trying to mess with our unicode form before we get the
chance to send it back to our server.
2015-06-20 22:39:42 -04:00
Jason Pleau
3ef53f3cc2 webpage: remove respond.js
Calling outside resources is a breach of privacy, and prevents the page
from loading correctly if offline.
2015-05-01 17:06:57 -04:00
warhog
4d4ff2bdc2 changed order of menu entries 2015-03-06 12:41:26 +01:00
warhog
1c4e89def8 added ability to add streams 2015-03-06 12:40:14 +01:00
Andy
ca40c44dd5 Merge pull request #52 from ajs124/master
Add crossfade support. Not sure about the icon/glyph though
2015-03-03 21:50:49 +01:00
Andy
1268cab3b3 Merge pull request #40 from iwanders/master
Change websocket URL to allow easy incorporation of different backends.
2015-03-03 21:49:46 +01:00
ajs124
3eb12e6ecd Add crossfade support. Not sure about the icon/glyph though 2015-02-17 15:45:26 +01:00
Andrew Karpow
e6e93a08c7 release build now installs assets to prefix
if build with dynamic assets
2014-11-11 21:13:11 +01:00
Ivor Wanders
a5a4ac9461 Changes URL used for the websocket.
This change allows easier implementation of different backends because the websocket URL isn't identical to the webpage URL. This does not affect the functionality of the default C backend.
2014-11-03 20:01:05 +01:00
Jason Pleau
07b6ac7473 add jquery source file
This is to comply with the Debian Free Software Guidelines:
https://www.debian.org/social_contract#guidelines

ympd can still use the minified file, however we need the source files
to be included in the source package.
2014-10-29 18:25:07 -04:00
Andrew Karpow
2b5a4c6fa0 added mkdata.pl generator for cross-compiling, fixes #31 2014-10-19 22:58:03 +02:00
Andrew Karpow
87fdd34f87 make mkdata more portable, fixes #35 2014-10-19 16:45:49 +02:00
ajs124
9f001aa264 change notification cookie from session to "permanent" 2014-05-24 03:12:51 +02:00
ajs124
0730673851 remove webkit prefix from Notifications, now working with firefox!
+ probably fix bug with undefined artist or album
2014-05-24 02:57:30 +02:00
Cody Mize
11e3dbefb0 fix prev and next buttons; was swapped 2014-04-23 03:13:07 -04:00
Lee Watson
e516ddb882 Ermahgerd! Werbserver!
Yeah, typo.
2014-04-15 12:41:48 +01:00
Andrew Karpow
14e807850c Merge branch 'mongoose' 2014-03-18 01:30:01 +01:00
Andrew Karpow
6bf4379eb8 fixed password remove 2014-03-08 20:33:22 +01:00
Andrew Karpow
b75dadf7a9 removed perl generator, added c generator 2014-03-08 20:32:54 +01:00
Andrew Karpow
35ab38d0e2 fixed osx scanf behaviour, notifications 2014-03-08 12:31:22 +01:00
Andrew Karpow
b9a4d83130 better json generator, various fixups 2014-03-08 12:30:49 +01:00
Andrew Karpow
38b4544542 replaces libwebsockets with mongoose, changed licese to gpl
add search support
add playlist support
various fixups
C Cleanup
2014-03-08 12:30:49 +01:00
Andrew Karpow
79e38e7edd initial mongoose checkin 2014-03-08 12:30:48 +01:00
Andrew Karpow
5920d9f1bf fix settings modal hiding on keypress 2014-03-08 12:30:48 +01:00
Andrew Karpow
6b6622988d updated bootstrap to 3.1 2014-03-08 12:30:48 +01:00
Andrew Karpow
8c49b2a877 add settings modal dialog 2014-03-08 12:30:48 +01:00
Andrew Karpow
f0c1317d57 fix settings modal hiding on keypress 2014-02-04 18:58:05 +01:00
Andrew Karpow
bde1d02055 updated bootstrap to 3.1 2014-02-04 18:24:01 +01:00
Andrew Karpow
43035bb6f7 add settings modal dialog 2014-02-04 17:58:10 +01:00
Andrew Karpow
e0d339c26d removed debug stuff, unused variable 2014-01-19 02:11:37 +01:00
Andrew Karpow
f4a1efdd88 responsive buttons 2014-01-19 02:08:56 +01:00
Andrew Karpow
547f7494dd add BSD-2 License, release is immenent 2014-01-17 19:44:07 +01:00
Andrew Karpow
e15d0600ee changed timeout for notification to 3 secs 2014-01-17 19:04:33 +01:00
Andrew Karpow
5d9e70750d add manpage, jquery cookie plugin 2014-01-17 18:34:59 +01:00
Andrew Karpow
4a4e8e2480 Merged nicos notifications, add cookie support 2014-01-17 18:34:22 +01:00
Andrew Karpow
da52814926 seek not allowed without song in queue 2014-01-17 16:41:54 +01:00
Andrew Karpow
fc1d7c1242 fixup table layout, notifications 2014-01-17 16:26:26 +01:00
Andrew Karpow
5f613a878e reworked notify.js 2014-01-16 18:53:59 +01:00
Andrew Karpow
32edeaf1d4 typo 2014-01-16 18:38:10 +01:00
Andrew Karpow
cd865b2cef fix crash when seeking without song, new slider 2014-01-16 18:32:20 +01:00
Andrew Karpow
31f1df974c fix for firefox, large datasets via http instead websockets 2014-01-08 02:23:02 +01:00
Andrew Karpow
38f5009140 fixed firefox websocket bug, added assets 2013-12-03 21:48:49 +01:00
Andrew Karpow
77321257e2 design fixes 2013-12-03 12:48:52 +01:00
Andrew Karpow
e7b73cc979 fixed url 2013-12-03 12:47:51 +01:00
Andrew Karpow
6d16ec2823 various layout fixups 2013-11-13 15:30:54 +01:00
Andrew Karpow
501cbda19d add about 2013-11-09 03:02:49 +01:00
Andrew Karpow
9ee50d00b7 add play-on-click func, fixup of current playing song 2013-11-08 12:58:18 +01:00
Andrew Karpow
1675fe5220 Alpha done, needs testing though :) 2013-11-07 17:40:22 +01:00