c672d6661e
Add wrapper for garnish/2 for phx event
2023-01-19 13:52:38 +01:00
078db6e38e
Update garnish and render_doc functions
...
Now all element node attributes have to be threaded through the
eph.attributes which is done by the garnish function.
2023-01-19 13:48:56 +01:00
170883490f
Fix mistake with taking properties from article instead translation
2023-01-19 11:35:56 +01:00
a93afea57b
Add autoren and artikel for public viewing
2023-01-19 11:25:14 +01:00
aab04f5ecc
Add public_content to translations table and rename lang to language
2023-01-15 17:55:26 +01:00
f2dd8de143
Add support for img tags
2023-01-15 17:27:51 +01:00
b520df2561
Fix stripping img and br tags as empty
2023-01-14 22:10:11 +01:00
483ed9440d
Update some superficial things
2023-01-14 22:05:48 +01:00
a95131bdbb
Add rendering the translation with title tags
2023-01-14 22:04:28 +01:00
705c7d2b53
Update partitioning
2023-01-14 22:01:21 +01:00
d7325d64c5
Add use <tunit> instead of <span> for Deepl translation
...
To avoid getting results like "... bla."</span>" ->
"... bla</span>."" from Deepl we need to set set splitting_tags
option to an element name (that's not as common as span).
2023-01-14 21:59:57 +01:00
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
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
b40c305af1
Add deleting article with associated translations
2023-01-11 19:11: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
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
54250a5a95
Fix user/deepl_account relation
2023-01-09 21:09:46 +01:00
04d6f32325
Update DeeplAccount
...
Less required fields, default for character_count and association.
2023-01-05 22:25:35 +01:00
927530c66d
Add raw Deepl module and a progress bar
2023-01-05 22:19:23 +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
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
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
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
5cbf05f650
Add first step of creating an Article
2022-12-27 23:23:16 +01:00
d99105bab1
Fix missing module
2022-12-27 23:09:17 +01:00
4f04019dee
Add saving TranslationUnitsMap always
...
Need to figure out how to manage that changed status gets checked properly.
2022-12-26 19:05:47 +01:00
afb25a328c
Add TranslationUnitsMap as content type for Translations
2022-12-26 19:04:21 +01:00
9e9c7b5519
Add Translators/deepl_accounts
...
mix phx.gen.live Translators DeeplAccount deepl_accounts\
name:string description:text auth_key:string character_limit:integer\
character_count:integer our_character_count:integer user_id:references:users
2022-12-26 18:51:30 +01:00
f66521dba8
Add Translations
...
mix phx.gen.live Translations Translation translations \
lang:string title:string teaser:text content:map \
date:utc_datetime user_id:references:users \
public:boolean unauthorized:boolean article_id:references:articles
2022-12-26 18:45:40 +01:00
f7f1e1a284
Add Articles
...
mix phx.gen.live Articles Article articles title:string\ /Crucial/git/phoenix-liveview-book
content:text url:string language:string\
date:utc_datetime author_id:references:authors
2022-12-26 18:02:29 +01:00
005a9d9337
Add Authors
...
mix phx.gen.live Authors Author authors name:string description:text homepage_name:string homepage_url:string
2022-12-26 17:12:46 +01:00