Commit graph

392 commits

Author SHA1 Message Date
dependabot[bot]
8156d6761c
Bump diesel from 1.4.8 to 2.2.3
Bumps [diesel](https://github.com/diesel-rs/diesel) from 1.4.8 to 2.2.3.
- [Release notes](https://github.com/diesel-rs/diesel/releases)
- [Changelog](https://github.com/diesel-rs/diesel/blob/v2.2.3/CHANGELOG.md)
- [Commits](https://github.com/diesel-rs/diesel/compare/v1.4.8...v2.2.3)

---
updated-dependencies:
- dependency-name: diesel
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 19:07:31 +00:00
Magnus Hovland Hoff
b034dcf61a Update bart dependency, which depended on a yanked crate version. 2023-06-21 21:59:17 +02:00
Magnus Hovland Hoff
03227d6aa9 Remove some redundant "extern crate" statements 2022-04-03 22:21:04 +02:00
Magnus Hovland Hoff
0521f0ce5a Upgrade quote 2022-04-03 22:16:45 +02:00
Magnus Hovland Hoff
25dcb85c24 Warning seems to have disappeared with updated diesel dependency 2022-04-03 22:10:29 +02:00
Magnus Hovland Hoff
bf34e2923b Addressed many cargo clippy complaints 2022-04-03 22:09:36 +02:00
Magnus Hovland Hoff
95a73b9471 cargo clippy --fix 2022-04-03 14:29:35 +02:00
Magnus Hovland Hoff
9320d14d89 Manually fix remaining compile warnings. 2022-04-03 14:19:56 +02:00
Magnus Hovland Hoff
e0f52cd031 Upgrade diesel dependencies.
When switching to edition=2021, the build fails with a linking error to -lsqlite3.
Upgrading libsqlite3-sys unfortunately does not fix this.
2022-04-03 14:01:45 +02:00
Magnus Hovland Hoff
203a701517 Upgrade lazy_static to get rid of compile warning 2022-04-03 13:49:15 +02:00
Magnus Hovland Hoff
9f80ced3ec cargo fmt 2022-04-03 13:47:43 +02:00
Magnus Hovland Hoff
26fe2b64da Update edition, cargo fix and cargo fix --edition 2022-04-03 13:45:50 +02:00
Magnus Hovland Hoff
3f71040aec Disable auto-deploy.
I would like to keep continuous builds available, but the auto-deploy has triggered
GitHub releases for every build, which is very confusing documentation. Also, Travis
and other CI services, do not seem to want to offer a free tier any longer. Considering
switching to running continuous build on my own hardware somehow.
2022-04-03 13:35:10 +02:00
Magnus Hovland Hoff
f675896054 Update API key for Github deploy 2021-05-23 21:17:42 +02:00
Magnus Hovland Hoff
3b16598444 cargo update
Fix broken build
2021-05-01 20:18:41 +02:00
Magnus Hovland Hoff
fef213f9f3 cargo update
This fixes build breakage caused by rotten dependency
2020-05-25 21:37:24 +02:00
Magnus Hovland Hoff
f96cc8dac5 Silence warnings caused by Diesel on Rust >=1.29, also in build.rs 2018-10-27 15:30:33 +02:00
Magnus Hovland Hoff
a20117a42c Silence warnings caused by Diesel on Rust >=1.29.
I expect this to be fixed in a future release of Diesel
2018-10-27 11:42:09 +02:00
Magnus Hovland Hoff
58a859b014 Completely disable setting focus.
setSelectionRange causes Safari to set focus to the element. Trying to get rid of distracting focus changes that pops up an on-screen keyboard
2018-10-08 07:53:41 +02:00
Magnus Hovland Hoff
318273a75d Improve placeholder styling.
Apply placeholder styling to title editor as well
2018-10-08 07:49:14 +02:00
Magnus Hovland Hoff
0a64a274ac Bugfix. Anonymous edits would have a stray period. 2018-10-07 13:54:09 +02:00
Magnus Hovland Hoff
ccbabb86f8 Make theme optional when updating articles.
This makes sense from an API design perspective
2018-10-05 13:07:19 +02:00
Magnus Hovland Hoff
09c68c5993 Select random theme for new articles server side.
This supports user agents with disabled javascript (noscript)
2018-10-05 11:56:53 +02:00
Magnus Hovland Hoff
7373af0417 Select random theme for new articles client side 2018-10-05 11:19:47 +02:00
Magnus Hovland Hoff
65ad262bd8 Bugfix.
Cancel button is always disabled and shown conditionally
2018-10-05 11:03:41 +02:00
Magnus Hovland Hoff
cffcc93b15 Add tests for automatically slugged links 2018-10-03 22:35:47 +02:00
Magnus Hovland Hoff
575c18f915 Support automatically slugged links 2018-10-03 18:24:55 +02:00
Magnus Hovland Hoff
6d1c9967aa Correctly mark unused variable 2018-10-03 18:12:27 +02:00
Magnus Hovland Hoff
748459483e Show author for diffs that show only one changeset 2018-10-02 08:44:06 +02:00
Magnus Hovland Hoff
01ceda8015 Use correct number for generating pagination link 2018-10-01 22:58:40 +02:00
Magnus Hoff
16384c9f83 Inconsequential change to trigger CI pipeline 2018-10-01 10:03:24 +02:00
Magnus Hovland Hoff
d5410f2a22 Revert focusing the body text editor when entering edit mode.
This behaves badly in multiple mobile browsers, causing confusion. Perhaps it is better to disable this feature altogether
2018-10-01 09:02:55 +02:00
Magnus Hovland Hoff
17c23da9bf Better scroll handling when toggling editing.
It will now retain the scroll position relative to the full document height when entering and leaving editing mode. This places the viewport closer to the contents you were watching. This is likely less disorienting
2018-10-01 09:01:27 +02:00
Magnus Hovland Hoff
619ba14b3f Fix editor controls layout in narrow layout 2018-10-01 08:36:44 +02:00
Magnus Hoff
58283a601c Also disable form elements via CSS pointer-events when not in edit mode.
This lets us visually transition the controls without accidentally enabling interaction
2018-09-30 22:33:40 +02:00
Magnus Hoff
c6dd37ed9e Centralize handling of form elements state handling.
This makes it easier to maintain state changes. Seems to handle all states well now
2018-09-30 22:30:52 +02:00
Magnus Hoff
85014d2789 Include theme in response when creating new article.
Bug caused by duplication of code.
2018-09-30 22:29:37 +02:00
Magnus Hovland Hoff
a81a568ee2 Forward the edit-state when redirecting to renamed articles.
This improves usability with noscript
2018-09-24 23:01:01 +02:00
Magnus Hovland Hoff
e92c9695be Fix editing of new articles with noscript.
This also generalizes the code. Neat!
2018-09-24 22:55:10 +02:00
Magnus Hovland Hoff
0439ca0d8e Avoid storing build cache in travis,
it costs more than we gain
2018-09-24 18:30:17 +02:00
Magnus Hovland Hoff
62378007b1 Reset theme when editing is canceled 2018-09-24 18:21:50 +02:00
Magnus Hoff
3bbe5840ee Implement theme picker UI 2018-09-24 08:43:36 +02:00
Magnus Hovland Hoff
baaab6ebc8 Store theme explicitly in database. Propagate theme both ways between db and frontend 2018-09-23 22:38:18 +02:00
Magnus Hovland Hoff
fe0011e757 Allow build.rs to figure out the correct database schema 2018-09-23 21:39:54 +02:00
Magnus Hovland Hoff
828490df3b Update serde_urlencoded dependency for bugfix 2018-09-23 21:39:09 +02:00
Magnus Hovland Hoff
c1fcc80cf0 Minor fix for making Theme insertable with Diesel 2018-09-23 21:38:17 +02:00
Magnus Hovland Hoff
8f1e95bdde Add theme to ArticleRevisionStub, RebaseResult and related.
This paves the way for explicitly storing the theme in the database
2018-09-22 23:16:58 +02:00
Magnus Hovland Hoff
c82228f019 Propagate theme in ArticleRevisions from the state struct 2018-09-21 08:57:35 +02:00
Magnus Hovland Hoff
b777a92a48 Expose theme_from_str_hash to SQL.
To be used in a db migration for storing the previously implicit value
2018-09-20 23:17:25 +02:00
Magnus Hovland Hoff
ca1e072d9b Add more tests for using Theme with the database 2018-09-20 08:37:27 +02:00