Damien Elmes
dc81a7fed0
use mixed case for abbreviations in Rust code
...
So, this is fun. Apparently "DeckId" is considered preferable to the
"DeckID" were were using until now, and the latest clippy will start
warning about it. We could of course disable the warning, but probably
better to bite the bullet and switch to the naming that's generally
considered best.
2021-03-27 19:53:33 +10:00
Damien Elmes
3433c02242
i18n->tr in rslib/ to match Python/TS code
2021-03-27 12:09:51 +10:00
Damien Elmes
698ae855d3
update 1 arg tr strings in rslib
2021-03-27 10:39:53 +10:00
Damien Elmes
dc5fdd30d4
update no-arg TR references in rslib/
2021-03-26 23:16:08 +10:00
Damien Elmes
95dea7f20a
move activeCols into config/
2021-03-23 18:40:50 +10:00
RumovZ
03b9667789
Use raw sort field text in note_field_str() ...
...
... instead of the preprocessed note.sort_field. That means we always
have to load the note with fields.
2021-03-22 12:12:52 +01:00
RumovZ
de73232f0d
Fix date_string using FixedOffset instead of Local
2021-03-22 08:50:54 +01:00
RumovZ
255daad820
Fix card_due_str()
2021-03-21 21:18:56 +01:00
RumovZ
c91182b248
Strip question from answer string
2021-03-21 21:17:38 +01:00
RumovZ
af90bbf879
Check original_deck_id rather than original_deck()
...
in card_due_str() as we don't necessarily have to load that deck.
2021-03-20 18:12:00 +01:00
RumovZ
1ab0d4dff8
Refactor browser_rows.rs
...
* Make RowContext taking functions methods
* Make RowContext constructor a method
* Rename 'with_fields' to 'card_render'
2021-03-20 18:02:41 +01:00
RumovZ
04ae6f727b
Rename browser_rows/RowColor to Color
2021-03-20 17:31:16 +01:00
RumovZ
b86d683f17
Rename render_card_inner() to render_card()
2021-03-20 17:26:30 +01:00
RumovZ
7425aa6b58
Refactor search/browser.rs to browser_rows.rs
2021-03-20 17:20:49 +01:00