Commit Graph
100 Commits
Author SHA1 Message Date
Jordan Petridis e9b6e26f08 yet another attempt at implementing a stack state machine. 2017-12-10 23:23:09 +02:00
Jordan Petridis 2461dca94d Remove home button. 2017-12-10 19:15:32 +02:00
Jordan Petridis e127941d8a Initial stackswitcher addition into the headerbar. 2017-12-10 09:53:05 +02:00
Jordan Petridis 851be1fcfb Schema hotfix. 2017-12-10 06:47:10 +02:00
Jordan Petridis d8281c70a5 Better naming of a dbquery function. 2017-12-10 06:11:03 +02:00
Jordan Petridis bc57c33491 Change episode table schema. 2017-12-09 17:38:46 +02:00
Jordan Petridis 999a2a1fc1 Strip whitespace during parsing. 2017-12-09 10:22:09 +02:00
Jordan Petridis 8b4684679b Merge branch 'client-rework' into 'master'
Client rework

See merge request alatiera/Hammond!3
2017-12-09 04:25:39 +00:00
Jordan Petridis b528c48e3b Run rustfmt. 2017-12-09 05:57:16 +02:00
Jordan Petridis 5b19274e6a Ignore the stack state machine until TryInto trait is stabilized. 2017-12-08 10:00:21 +02:00
Jordan Petridis 48e61c6377 Added small a utility that eats extra whitespace. 2017-12-07 18:31:45 +02:00
Jordan Petridis 1266c6e971 Switch to a Generic Struct instead of an Enum. 2017-12-07 15:24:15 +02:00
Jordan Petridis 41b0a36b81 Implement Into ContentState types. 2017-12-07 11:14:12 +02:00
Jordan Petridis 6801d0b1d1 Move replace_*view functions inot Content methods. 2017-12-07 10:51:16 +02:00
Jordan Petridis 973212254c My code is horrible, don't look at it. 2017-12-07 09:43:47 +02:00
Jordan Petridis 2b2f44b10e Attempt n42 of implementing a StateMachine. 2017-12-07 08:50:20 +02:00
Jordan Petridis 9431fb827f Bug fix. 2017-12-07 08:42:36 +02:00
Jordan Petridis d7af108833 WIP markup to html parser func. 2017-12-07 06:41:10 +02:00
Jordan Petridis c07d240532 Sanitize html during feed parsing. 2017-12-07 06:38:31 +02:00
Jordan Petridis 05e056481f Take advantage of <Into> trait from the generated builders. 2017-12-05 09:28:13 +02:00
Jordan Petridis 8e6cc4d2f2 Remove custom builders in favor of derive_builder crate. 2017-12-05 09:10:02 +02:00
Jordan Petridis 35f7464540 Use a gitlab-ci template instead of script duplication. 2017-12-05 07:47:07 +02:00
Jordan Petridis c8c0699d9c gitlab-ci tweak. 2017-12-05 07:37:43 +02:00
Jordan Petridis 0835b5ed4f flatpak manifest update 2017-12-05 06:22:59 +02:00
Jordan Petridis ca2ad9b2da rustfmt fix?. 2017-12-04 14:32:38 +02:00
Jordan Petridis 276169e43d Minor cleanup of nested match/if let statements into using and_then(). 2017-12-04 14:32:16 +02:00
Jordan Petridis ad1d9a155e Readme typo fix. 2017-12-02 09:03:21 +02:00
Jordan Petridis 8bd48a09a6 Groupd stack manipulation functions into content module. 2017-12-02 08:58:28 +02:00
Jordan Petridis 7727bc5ec3 Remove unnecessary Arc. 2017-12-02 01:46:37 +02:00
Jordan Petridis 74a1aae168 Upgraded diesel to 0.99 and switched from the git master into crated.io.
Also did a cargo upgrade of all the dependancies.
Notable upgrades are r2d2, lazystatic 1.0, loggerv 0.6 and rss 1.2
2017-12-02 01:39:28 +02:00
Jordan Petridis 9312366f62 Enable more lints. 2017-12-02 00:06:42 +02:00
Jordan Petridis 8d63db047a Temporary removed unused Content.fields. 2017-12-01 07:30:28 +02:00
Jordan Petridis 0359e9dd35 Convert EpisodeWidget into a Composed struct. 2017-12-01 07:13:41 +02:00
Jordan Petridis 91ac2c6445 Minor cleanups. 2017-12-01 06:40:32 +02:00
Jordan Petridis 2d4acc3ba3 Tweaked stack transition effects. 2017-12-01 06:21:48 +02:00
Jordan Petridis fb6fc68d23 Fix empty view. 2017-12-01 06:00:06 +02:00
Jordan Petridis 3fca086d14 Renamed stack children. 2017-12-01 05:32:47 +02:00
Jordan Petridis dcc541d832 Added a PodcastChild struct and groupd some flowbox_child methods. 2017-12-01 04:22:26 +02:00
Jordan Petridis 300fc3467d Remove more stuff. 2017-12-01 03:50:23 +02:00
Jordan Petridis 326ee75cd8 Remove old implementation. 2017-12-01 02:57:55 +02:00
Jordan Petridis b4b2f24c77 Use content struct instead of plain stack. 2017-12-01 01:30:19 +02:00
Jordan Petridis 5414dbdb37 Wire and use the new Header struct instead. 2017-12-01 01:20:49 +02:00
Jordan Petridis dd0034327b Add Content Struct. 2017-12-01 01:12:25 +02:00
Jordan Petridis 774e5b38a0 Add EmptyView Struct. 2017-12-01 01:03:10 +02:00
Jordan Petridis f1f4d10fe3 Add PopulatedView struct. 2017-12-01 01:00:07 +02:00
Jordan Petridis 84c918bbd5 Fix bug where the played button will always be shown by setting default state to not visible. 2017-11-30 21:39:21 +02:00
Jordan Petridis 94879b4256 Move get_pixbuf_from_path into hammond_gtk/src/utils.rs module. 2017-11-30 21:38:21 +02:00
Jordan Petridis bf240a00f4 Make a PodcastWidget Struct type. 2017-11-30 21:19:03 +02:00
Jordan Petridis b32e35c574 Rename podcasts_view module. 2017-11-30 21:10:05 +02:00
Jordan Petridis 1fbcfa47ac Refactor Headerbar into a Wrapped struct type. 2017-11-30 21:02:26 +02:00
Jordan Petridis 13e47e9b4e Version bump. 2017-11-28 10:46:03 +02:00
Jordan Petridis 13751e3708 Tweak gresource initialization. 2017-11-28 10:27:43 +02:00
Jordan Petridis c92e40e3cf Run download cleaner on startup. Closes #3. 2017-11-28 10:23:19 +02:00
Jordan Petridis 2051f0f58e Enable some extra clippy warnings. 2017-11-28 09:50:30 +02:00
Jordan Petridis c07215d357 Set hammond-data to build with Deny missing_docs. 2017-11-28 09:44:26 +02:00
Jordan Petridis e4a7a7becf Add module Doc comments. 2017-11-28 09:38:05 +02:00
Jordan Petridis 7dd8755bcb Document hammond-data/src/lib.rs xdg_dirs module. 2017-11-28 09:24:12 +02:00
Jordan Petridis 76f9f36609 Document Source Model. 2017-11-28 09:01:38 +02:00
Jordan Petridis 4d669ef297 Document Podcast Model. 2017-11-28 08:40:27 +02:00
Jordan Petridis 3707b70b41 Document Episode Model. 2017-11-28 08:25:04 +02:00
Jordan Petridis d81f9c6ad7 Fixed stable unit tests. 2017-11-28 04:42:15 +02:00
Jordan Petridis 34e808182c Documented a bit hammond-data/src/feed.rs. 2017-11-27 06:06:14 +02:00
Jordan Petridis c4030e51df Added some doc comments in hammond-data/src/utils.rs. 2017-11-27 05:25:16 +02:00
Jordan Petridis cb65782829 Extended the NewModel builder and added a bunch of unit tests. 2017-11-27 04:32:21 +02:00
Jordan Petridis ee4f08c5cf Implemented a BuildPattern for NewModels. Swiched stuff to pub(crate).
Added a Constructor for NewModels in order to make their fields private.
Also added getter methods that are mainly used in Unit tests.
2017-11-26 23:30:56 +02:00
Jordan Petridis 9e03aaae27 Upgrade gtk-rs crates. 2017-11-26 21:25:46 +02:00
Jordan Petridis 866904a687 Use generic IntoIterator instead of &[foo] slices. 2017-11-26 07:03:21 +02:00
Jordan Petridis 9d0df9de46 Tweak cargo privacy settings. 2017-11-26 06:21:14 +02:00
Jordan Petridis 7eff93ecf1 Remove rand from the downloader. 2017-11-26 03:47:43 +02:00
Jordan Petridis 6336f7cac1 Moved update funtions into a Trait and impl for NewModels. 2017-11-26 00:56:38 +02:00
Jordan Petridis 39dff5e27a Moved insert functions into an Insert trait and implemented it for each NewModel. 2017-11-26 00:40:03 +02:00
Jordan Petridis ce3a76aee1 Update episode rows instead of replacing them. 2017-11-26 00:13:51 +02:00
Jordan Petridis 39cccf85a5 Change the ci config. 2017-11-25 18:50:32 +02:00
Jordan Petridis 2f801043c1 In place update a podcast row instead of replace. 2017-11-25 18:22:56 +02:00
Jordan Petridis f83f894e44 Replaced pool.get().unwrap() statements with get()?. 2017-11-25 03:29:06 +02:00
Jordan Petridis f0a0fdfa83 Added a truncate_db helper function. 2017-11-25 03:01:21 +02:00
Jordan Petridis 7498a37f68 Fixed unit test. 2017-11-25 02:19:16 +02:00
Jordan Petridis faab32ba17 Fix podcast flowbox_child title label. 2017-11-25 02:00:37 +02:00
Jordan Petridis 62da8bbb52 Use source_id as the unique identifieble field for the podcast table. 2017-11-25 01:56:10 +02:00
Jordan Petridis 12ffe5c231 Use a db transaction when deleting a feed. 2017-11-24 20:40:32 +02:00
Jordan Petridis d9ef4fed53 Truncate the temp db before running test_complete_index. Should close #17. 2017-11-24 20:31:10 +02:00
Jordan Petridis 4a195eb1b7 Moved set_played_now into a method of the Episode model. 2017-11-24 19:48:20 +02:00
Jordan Petridis f7f0a16858 Minor cleanup. 2017-11-24 19:28:34 +02:00
Jordan Petridis 91f4a30c01 Moved episode indexing into a transaction. 2017-11-23 21:30:17 +02:00
Jordan Petridis 5570fdd118 Switched to using r2d2 instead of a databaseConnection object. 2017-11-23 21:09:50 +02:00
Jordan Petridis aa7c493e81 hammond-data/src/feed.rs api changes. 2017-11-23 18:48:41 +02:00
Jordan Petridis a58671ea9a Moved database related things into their own module. 2017-11-22 21:54:09 +02:00
Jordan Petridis 02b27d33b6 Move XDG global variables into their own module. 2017-11-22 21:07:21 +02:00
Jordan Petridis 6098f0f54a Banner fix? Closes #14. 2017-11-22 10:44:32 +02:00
Jordan Petridis 3bcb23b39a Redefine NewModels to hold Option<String> instead of Option<&str>. 2017-11-22 09:53:52 +02:00
Jordan Petridis 31328355b1 Methods renaming, Api changes. 2017-11-22 06:25:34 +02:00
Jordan Petridis 9bc6df2cba Made Disel NewModels private. 2017-11-22 05:50:25 +02:00
Jordan Petridis ee7c5ca26e Use bail! instead of panic!. 2017-11-20 22:23:04 +02:00
Jordan Petridis 7be0b5bbf8 Added a url cleanr. Closes #4. 2017-11-20 22:06:29 +02:00
Jordan Petridis 5890fe2bb4 Moved all diesel queries into hammond-data/src/dbquerries.rs module. 2017-11-20 20:05:00 +02:00
Jordan Petridis 0ce4107be4 Revert back to using an Arc<Mutex<Connection>> instead of the pool. 2017-11-20 18:09:53 +02:00
Jordan Petridis ce29602431 I hate everything. 2017-11-20 16:57:27 +02:00
Jordan Petridis e07683c046 partially-fixed the tests and benchmarks. 2017-11-20 01:08:34 +02:00
Jordan Petridis 5ad52fa4b2 Refactored to remove from Database refferences. 2017-11-19 23:32:37 +02:00
Jordan Petridis beaeeffba8 Refactored dbquerries.
Refactored so dbquerries.rs module *should* be the only piece of code
that interacts with a Database connection. Insert stuff will be moved too.
2017-11-19 23:08:36 +02:00