Commit graph

58 commits

Author SHA1 Message Date
Antoine Gersant
8dbaad98f5 Ditched ring dependency, simplified password hashing 2019-09-28 16:38:43 -07:00
Laurențiu Nicola
1bffdf0861 Provide secret key to Rocket 2019-08-08 08:06:29 +03:00
Laurențiu Nicola
6d963c059f Use 2018-style macro imports 2019-08-06 12:51:15 +03:00
Antoine Gersant
4b4ab8145c Rust 2018 2018-10-30 23:49:30 -07:00
Antoine Gersant
a8a98fdd22 Removed iron 2018-10-28 17:27:47 -07:00
Antoine Gersant
0ebcc8a280 Autoformat 2018-10-27 17:00:49 -07:00
Antoine Gersant
d894ae2783 Cleanup 2018-10-08 21:28:05 -07:00
Antoine Gersant
f905bc4f73 Added API endpoint to unlink last.fm account 2018-10-07 18:06:29 -07:00
Antoine Gersant
ec69a3568f Fixed clippy lints 2018-10-06 16:29:46 -07:00
Antoine Gersant
0297b351bf Rustfmt 2018-10-06 15:46:30 -07:00
Antoine Gersant
2092813258 Changed LastFM auth flow from application flow to web-flow 2018-10-06 14:41:25 -07:00
Antoine Gersant
c52ec3d30c Added support for lastfm scrobbling
- Added user preferences
- Added time and location to log entries
2018-03-06 21:36:10 -08:00
Antoine Gersant
e079574879 Fixed diesel warnings 2017-11-03 12:28:41 -07:00
João Oliveira
55d6e412d6 update project to use log crate and replace println! calls with equivalent log level macro calls 2017-10-14 04:34:54 +01:00
Antoine Gersant
80c37ce1bb Autoformat 2017-10-08 15:26:45 -07:00
João Oliveira
a82af0f0b8 add prefix_url to config options to allow polaris to run behind a reverse proxy 2017-10-03 00:36:21 +01:00
Antoine Gersant
bd537b8134 Simplified connection API 2017-07-09 23:32:02 -07:00
Antoine Gersant
2117d94649 Updated dependencies 2017-07-06 20:49:34 -07:00
Antoine Gersant
27cfa19b77 Added notion of admin accouts, required to read/write settings 2017-07-03 17:38:28 -07:00
Antoine Gersant
554aa3436c Fixed typo 2017-07-02 15:06:46 -07:00
Antoine Gersant
26e091ab15 Fixed a bug where overwriting config didnt overwrite DDNS settings 2017-07-02 15:06:01 -07:00
Antoine Gersant
ce6da979ea Fixed a bug where password where not preserved when amending config 2017-07-02 02:37:43 -07:00
Antoine Gersant
f42e40b766 Added API endpoint to edit configuration 2017-07-01 18:04:52 -07:00
Antoine Gersant
c2efeb9e44 Added unit test for editing config 2017-07-01 15:52:35 -07:00
Antoine Gersant
69f1392663 Added API end point to read config 2017-07-01 15:26:25 -07:00
Antoine Gersant
ae4e5ab81b Cosmetic change 2017-07-01 13:59:36 -07:00
Antoine Gersant
94ebbed2ec Merged User and NewUser 2017-07-01 13:57:18 -07:00
Antoine Gersant
87d43d0da5 Moved config functionality out of DB 2017-07-01 13:51:01 -07:00
Antoine Gersant
89d746268e Moved config business out of DB struct 2017-07-01 13:43:13 -07:00
Antoine Gersant
48f2913816 Removed models module 2017-07-01 11:59:32 -07:00
Antoine Gersant
d70abba47e Moved MountPoint structure into vfs module 2017-07-01 11:40:31 -07:00
Antoine Gersant
104381af5d Less boilerplate for VFS config 2017-06-29 00:16:00 -07:00
Antoine Gersant
e41a5273a8 Autoformat 2017-06-28 23:59:48 -07:00
Antoine Gersant
d87ec09c38 Unify DDNS config struct 2017-06-28 23:58:24 -07:00
Antoine Gersant
66f59da7b2 Moved resident configuration from .toml file to database 2017-06-28 23:37:48 -07:00
Antoine Gersant
378c2015b8 Replaced hand-written SQL with diesel 2017-06-25 18:36:54 -07:00
Antoine Gersant
f6ca5bace4 Autoformat 2017-05-29 12:01:07 -07:00
Antoine Gersant
8eaefb6dba Moved app data into user folders instead of system folders 2017-05-28 22:46:42 -07:00
Antoine Gersant
5866076b21 Use serde to parse config file 2017-05-08 22:47:15 -07:00
Antoine Gersant
d073e02549 Applied rustfmt 2017-05-07 21:21:30 -07:00
Danny Angelo Carminati Grein
b348be4e10 Fix commented issues. 2017-01-25 21:15:35 -05:00
Danny Angelo Carminati Grein
f04e1bc4d7 Fix broken player if mounted path had a trailing slash. The query on
browse_songs wasn't returning any results as in the database they were
save without the trailing slash.

Add two complementary output messages in case of errors trying to
create SharedData and SharedConfig where on Linux XDG defaults to
readonly system wide paths based on XDG_CONFIG_DIRS and XDG_DATA_DIRS
default values from spec (/etc/xdg and /usr/share for example).

And a minor change in the api to use forward slash.
2017-01-24 22:59:28 -05:00
Antoine Gersant
f9a27895b4 Formatting 2016-12-21 07:05:16 +01:00
Antoine Gersant
ef3d55cdbc Fix broken test on Linux 2016-12-17 20:11:56 -08:00
Antoine Gersant
3b2a6f0a3a Fixed broken test on Linux 2016-12-17 20:03:49 -08:00
Antoine Gersant
87c4763cd1 Fixed a bug where most mount directory paths didn't work on Windows 2016-12-17 19:53:50 -08:00
Antoine Gersant
2f49aa0e40 Cosmetic changes to debug output 2016-12-03 12:29:22 -08:00
Antoine Gersant
ec8a8da81e Modernized error handling
- Use error-chain instead of writing tons of boilerplate
- Switched try!() macros to '?'
2016-12-03 12:08:55 -08:00
Antoine Gersant
15505f8991 DB path is now a constructor parameter of Index struct 2016-12-02 17:41:29 -08:00
Antoine Gersant
85f4492b92 Applied rustfmt 2016-11-30 23:16:06 -08:00