Commit Graph

114 Commits

Author SHA1 Message Date
3b1c1d04a1 Add listing translation with article 2023-01-14 21:51:04 +01:00
b7db9cdd8e Update partitioning to strip empty elements 2023-01-13 14:09:37 +01:00
e45e3597c9 Fix tiny slip of thought 2023-01-12 22:45:24 +01:00
fd2eb5503c Add "Save and continue" button to Translation form 2023-01-12 20:59:14 +01:00
ecb1ef2eee Fix issue with saved eph field 2023-01-12 20:55:11 +01:00
cf9118c5ac Fix issue with end of sentence 'disguised' by markup 2023-01-11 22:15:04 +01:00
2d3a511bff Update tests to use nanoids 2023-01-11 22:08:38 +01:00
b40c305af1 Add deleting article with associated translations 2023-01-11 19:11:07 +01:00
54d0ad26d5 Fix issue with missing assign in default edit code 2023-01-11 19:07:07 +01:00
403116cd08 Replace uuids with "nanoid"s 2023-01-11 19:01:28 +01:00
881a8ee094 Fix bug with destroying %TranslationUnit{} struct 2023-01-11 11:35:13 +01:00
e0cd51937a Fix issues with changed default :current_tunit 2023-01-11 11:34:02 +01:00
24e58c7d96 Update tunit editor
Now with fancy new radio-buttons.
2023-01-10 23:20:20 +01:00
e16710664d Add checking and updating DeepL usage information 2023-01-10 20:06:54 +01:00
33ed533a1a Update editing translation 2023-01-09 21:35:35 +01:00
71e6a8da60 Update Deepl translation
Now getting auth-key from db.
2023-01-09 21:30:20 +01:00
3cd9d983fe Update routes to :ensure_authenticated
Implies setting :current_user for liveviews.
2023-01-09 21:11:13 +01:00
54250a5a95 Fix user/deepl_account relation 2023-01-09 21:09:46 +01:00
6faf1e02f5 Update to Phoenix 1.7.0-rc.1
elixir_make 0.7.2 => 0.7.3
  gettext 0.20.0 => 0.21.0 (minor)
  phoenix 1.7.0-rc.0 => 1.7.0-rc.1
  phoenix_live_view 0.18.3 => 0.18.4
  telemetry 1.1.0 => 1.2.0
New:
  expo 0.1.0
2023-01-08 12:31:40 +01:00
04d6f32325 Update DeeplAccount
Less required fields, default for character_count and association.
2023-01-05 22:25:35 +01:00
f22171cae3 Add apparently forgotten assignment 2023-01-05 22:24:30 +01:00
78160a5bae Add HtmlDocComponent to render the InternalTree
Very basic but promising.
2023-01-05 22:22:44 +01:00
927530c66d Add raw Deepl module and a progress bar 2023-01-05 22:19:23 +01:00
bafd9c81f7 Replace new.ex and edit.ex with new_edit.ex in translations_live 2023-01-05 22:13:57 +01:00
429352b32d Remove superfluous Logger 2023-01-04 16:40:14 +01:00
501648f496 Remove unused function 2023-01-04 15:56:14 +01:00
536ebdd0bd Add foreign_key_constraint validation to Article and Translation 2023-01-04 15:29:14 +01:00
b1110beeaf Add default values for language in Article and Translation 2023-01-04 15:28:30 +01:00
49b72cbf68 Cleanup some code 2023-01-04 15:27:30 +01:00
9a7dc7cf80 Add ignoring non-period points/dots 2023-01-04 15:26:05 +01:00
b0f8778c07 Fix tiny issue with nonsensical html 2023-01-04 14:59:29 +01:00
8de7169217 Add showing tunit boundaries 2023-01-04 14:43:51 +01:00
d589d84b40 Add creating and basic editing of translation 2023-01-04 14:42:13 +01:00
f4b5abef5a Update to_html/1 to accept maps instead of only %InternalNode{}s 2023-01-04 14:26:38 +01:00
80a21b8606 Add stripping HTML attributes 2023-01-04 14:23:55 +01:00
4949797343 Update partitioning the raw tree (means converting it to "non-raw" tree)
Finally achieves to pass the first internaltree test.
2023-01-04 14:21:55 +01:00
f54c08193b Add (still failing) test for partitioning an InternalTree 2023-01-02 22:38:52 +01:00
07413802d9 Fix bug with date/datetime inputs 2023-01-01 00:22:40 +01:00
40b1bedbe2 Add article_id to Translation validations 2022-12-30 21:17:46 +01:00
2075315721 Add unique constraint to Translation
To make sure only one translation per article is possible.
2022-12-30 21:16:06 +01:00
d9022fb0c7 Add dropdown for language of Article
And a configuration with the available Deepl source and target languages.
2022-12-30 21:13:59 +01:00
a0b280438c Add HTTPoison and FastHtml 2022-12-29 22:10:44 +01:00
b48274eaef Add :eph field to %TranslationUnit{} and remove :sibling_with
Using :eph from now on to store ephemeral data like :sibling_with. Additionally
added cleaning up :eph before saving to db. And renamed InternalTree.Basic
to InternalTree.RawInternalBasic to make clear that it contains function
for an intermediary tree structure.
2022-12-29 22:09:26 +01:00
fba40236d7 Rename file 2022-12-29 19:47:22 +01:00
5a37d20430 Fix bug that crashed with "<p> </p>" 2022-12-29 19:39:39 +01:00
b7bd9195b6 Add importing html and save it to Article
Additionally defines a wizard logic which is partially unused yet.
2022-12-29 16:43:52 +01:00
60a22d011e Add some styles for articles 2022-12-29 13:46:47 +01:00
bedf8bb005 Update input for authors' description to textarea 2022-12-28 14:33:51 +01:00
c44344cd35 Add "New Article" link to authors index 2022-12-28 14:32:44 +01:00
6ab313aabd Add optional class attribute to textarea 2022-12-28 14:31:09 +01:00