Commit graph

225 commits

Author SHA1 Message Date
Piero Toffanin
9eb1bff261
Merge pull request #237 from dingedi/main
Run test for pull requests, add some functional tests
2022-04-06 09:41:30 -04:00
Dingedi
5b45b9a53b
Focus textarea after delete text 2022-04-03 18:08:10 +02:00
Sébastien Thuret
d7377d174b
/languages should be only available for GET 2022-04-03 13:17:13 +02:00
Sébastien Thuret
00a6039289
Refactor & add the first test ! 2022-04-02 22:26:37 +02:00
Sébastien Thuret
a88841c174
upgrade-to-flask2 2022-03-26 09:02:54 +01:00
Kyle Harrity
2499c6c379 include language detected, confidence for /translate calls with auto detect 2022-03-25 02:19:56 -04:00
Piero Toffanin
c3548bffe1 Memoize 2022-03-04 10:24:29 -05:00
Ali Sherief
e23b96f1da Fix language detection error
The root cause was load_installed_languages() of argostranslate
being called at the top of the file instead of inside a function,
this caused the list of installed languages to incorrectly be
returned as an empty list.
2022-03-04 08:23:11 +00:00
Mufeed Ali
9edcbe8bea
suggestions: Abort when missing parameters 2022-02-20 22:52:12 +05:30
Mufeed Ali
2ddb415bba
cleanup: Whitespaces and imports
- Remove unnecessary import
- Reorder imports
- Fix whitespace issues
2022-02-20 13:39:02 +05:30
Mufeed Ali
933c96914b
app: Fail when giving invalid API keys
When an API key is passed, fail in the case of an invalid API key even
if an API key is not required. This allows the user to know that the API
key is invalid. Otherwise, they work under the assumption that the API
key is correct, even though it is not.
2022-02-20 13:36:29 +05:30
Sébastien Thuret
54f5c5ed94
keep selected languages and text in url 2022-02-07 17:58:30 +01:00
Piero Toffanin
61a148d692
Use len 2022-02-07 11:22:08 -05:00
Piero Toffanin
0d122c5d53
Merge pull request #206 from dingedi/feature/set-default-language
set default language instead of raise error
2022-02-07 11:21:20 -05:00
Sébastien Thuret
6b18b23b46
Add --disable-web-ui 2022-02-07 11:02:32 +01:00
Sébastien Thuret
b8df98fdce
set default language instead of raise error 2022-02-07 10:45:31 +01:00
Dingedi
79e5b0fb50
unescape html entity codes (ex: &apos) 2022-02-06 14:54:52 +01:00
Piero Toffanin
9e77f82470 Fix extra t 2022-01-31 10:39:55 -05:00
Piero Toffanin
74e2823658 Fix frontendTimeout 2022-01-31 10:19:14 -05:00
idotj
8ecf708bdd
Apply a white background main <body> 2022-01-17 21:19:46 +01:00
idotj
7afce9ae2a Improve color contrast for WCAG standards + add underline to links 2022-01-17 20:09:20 +01:00
Seth Falco
558f58e4b2
bug: optimize download btn for mobile 2022-01-04 21:13:43 +01:00
Seth Falco
da36cd77cd
fix translate text/file buttons 2022-01-04 20:20:02 +01:00
Gustavo Rodrigues
64ae20e932
Properly escape data in the request code
It was only escaping the first quote, all other quotes and other characters that require to be escaped (like line breaks) were not being escaped. JSON.stringify is a good function to handle this.
2021-12-09 10:31:48 -03:00
Piero Toffanin
0cb437083e Slower forgiveness 2021-12-06 22:15:16 +01:00
Piero Toffanin
66f62efcbb Tweak ban logic, update config description 2021-11-24 12:49:07 -05:00
Piero Toffanin
3a7527c418 Improve banned forgiveness logic 2021-11-24 12:41:12 -05:00
Piero Toffanin
ffc0c1dcda
Merge pull request #165 from fushinari/key-support-frontend
Expose api_keys in frontend settings
2021-11-07 15:09:47 -05:00
Sébastien Thuret
df0c64450a
remove debug print 2021-11-05 14:59:16 +01:00
Sébastien Thuret
adfdc8c9e5
decrease counter if the user wait after the slowdown notice 2021-11-05 14:56:04 +01:00
Mufeed Ali
2375cea3ca
Expose api_keys in frontend settings
This is useful for applications that want to know beforehand if usage of
an API key is supported.
2021-11-03 20:26:04 +05:30
Mufeed Ali
29eca1fbd4
Forward API key in suggestions client event 2021-10-31 12:57:36 +05:30
Mufeed Ali
3af4ce16e1
Require API key for submitting suggestions
Also removes limiter exemption
2021-10-31 11:23:25 +05:30
Mufeed Ali
915b912c29
Expose require_api_key_origin in frontend settings
This is useful for applications that want to know beforehand if an API
key is necessary before accessing the running instance.
2021-10-30 21:01:50 +05:30
Piero Toffanin
f3029d65d5 Remove api_key param from download url 2021-10-26 17:28:59 -04:00
Piero Toffanin
c778aa9960 Remove access check for download endpoint 2021-10-26 17:27:33 -04:00
Piero Toffanin
a82b851a3d Fix API key logic, add some error handling 2021-10-26 17:13:51 -04:00
Piero Toffanin
93b711aa74 Update spec version 2021-10-26 16:06:12 -04:00
Piero Toffanin
9d95e07d82 Style fix 2021-10-26 16:04:50 -04:00
Piero Toffanin
a1244b9e3e Path traversal check 2021-10-26 15:41:14 -04:00
Piero Toffanin
d12c81b773 Add VERSION 2021-10-26 15:32:06 -04:00
Sébastien Thuret
42c44a2ba1
fix 2021-10-25 17:24:03 +02:00
Sébastien Thuret
b3c089b246
Dont show switch type if files translation disabled 2021-10-25 17:20:57 +02:00
Sébastien Thuret
aac45a60ab
remove scheduler if files translation is disabled 2021-10-25 17:12:09 +02:00
Sébastien Thuret
909deccd3f
disable routes 2021-10-25 17:09:23 +02:00
Sébastien Thuret
5bb8ed7375
Add --disable-files-translation flag 2021-10-25 17:00:44 +02:00
Sébastien Thuret
9e272cb80c
remove uuid and fix downloaded filename 2021-10-25 12:05:39 +02:00
Sébastien Thuret
c5f47f0917
add scheduler to remove files after 30 minutes instead of after download 2021-10-25 11:46:49 +02:00
Sébastien Thuret
738dba7476
fix 2021-10-25 11:46:23 +02:00
Sébastien Thuret
5f2d0435f2
change tmp dir 2021-10-25 11:06:39 +02:00
Sébastien Thuret
8d5a418bee
format 2021-10-25 10:56:17 +02:00
Sébastien Thuret
bcbaf52777
format 2021-10-25 10:52:55 +02:00
Sébastien Thuret
6a304df2e8
add download link & auto download translated file 2021-10-25 10:50:55 +02:00
Sébastien Thuret
b97134ac07
fix 2021-10-25 10:33:49 +02:00
Sébastien Thuret
73ebb96171
fix 2021-10-24 19:14:09 +02:00
Sébastien Thuret
4f0d19dbc4
download work 2021-10-24 18:44:35 +02:00
Sébastien Thuret
f0d6c92db7
create download_file route 2021-10-24 18:38:35 +02:00
Sébastien Thuret
0b14600199
Add file translation 2021-10-24 18:27:37 +02:00
Sébastien Thuret
82c2f4396d
Add files restriction for input 2021-10-24 17:41:29 +02:00
Sébastien Thuret
aaa3c83d4f
add file and translate button display 2021-10-24 17:38:53 +02:00
Sébastien Thuret
50ce3720eb
remove console.log 2021-10-24 17:11:39 +02:00
Sébastien Thuret
ae5d67d966
Show supported file format and add it to settings 2021-10-24 16:57:45 +02:00
Sébastien Thuret
e0ecf41526
Upgrade to VueJS v2.6.14 2021-10-24 16:57:17 +02:00
Sébastien Thuret
6f63bab8a1
add file input 2021-10-24 13:22:44 +02:00
Sébastien Thuret
f906a39f66
make switch type work 2021-10-24 13:15:36 +02:00
Sébastien Thuret
4e1bfd398c
fix background color 2021-10-24 13:13:52 +02:00
Sébastien Thuret
e58b8ff97d
Add switch type (text or files ) button 2021-10-24 12:53:52 +02:00
Sébastien Thuret
7b3d9f286e
Added version number for assets that may change 2021-10-09 18:25:28 +02:00
Sébastien Thuret
7df304d955
Move the javascript in his own file 2021-10-09 18:16:50 +02:00
Piero Toffanin
9960baa9c8 Swagger docs definition 2021-10-09 10:04:16 -04:00
Sébastien Thuret
0ff3ca65fb
Disable suggestions by default 2021-10-09 15:45:58 +02:00
Sébastien Thuret
0561deb1b4
Save suggestions in a database 2021-10-09 11:44:07 +02:00
Sébastien Thuret
c02658984e
send good parameter 2021-10-09 11:43:22 +02:00
Sébastien Thuret
b8f41c8d94
Adding a notification after sending 2021-10-09 11:25:56 +02:00
Sébastien Thuret
130aaecb76
Merge remote-tracking branch 'origin/main' into main 2021-10-09 11:04:58 +02:00
Sébastien Thuret
deaa95e3c6
Dont show edit button when loading translations 2021-10-09 11:04:10 +02:00
Dingedi
b08cd2cc4c
Merge branch 'LibreTranslate:main' into main 2021-10-09 10:53:22 +02:00
Piero Toffanin
071b1f399b
Update index.html 2021-10-09 00:32:36 -04:00
Sébastien Thuret
5dcb55cad9
fix button state 2021-10-08 19:12:56 +02:00
Sébastien Thuret
f5bc2bc3f5
fix 2021-10-08 19:02:30 +02:00
Sébastien Thuret
0214d7bfd6
add buttons 2021-10-08 18:36:24 +02:00
Piero Toffanin
b73e146baf Fix HTML translation formatting, automatically detect HTML in translation UI 2021-09-24 11:30:19 -04:00
Piero Toffanin
a41f5671b0 Add HTML note in README, tweak swagger def 2021-09-11 16:02:10 -04:00
Sébastien Thuret
0a7c8ebae9 Add html translation 2021-09-11 15:08:57 +02:00
Piero Toffanin
6e05a04ff9 Revert "ReqKey check"
This reverts commit 5c3cf0a392.
2021-09-08 16:24:50 -04:00
Piero Toffanin
5c3cf0a392 ReqKey check 2021-09-08 16:14:39 -04:00
Piero Toffanin
94f4f74892 Better X-Forwarded-For logic 2021-09-08 21:41:12 +02:00
alefvanoon
fe0e4aa66d
Add dir="auto" to translatedText area 2021-09-04 13:29:29 +02:00
alefvanoon
01683534f4
Add dir="auto" to fix rtl lang problem 2021-09-04 13:24:05 +02:00
PalmerAL
c29cecbb63 improve auto-detect for batch requests with multiple languages 2021-08-02 00:06:56 -05:00
euberdeveloper
1b87edfaca
fix(default_values.py): remove debug print 2021-07-25 23:31:05 +02:00
euberdeveloper
b56245ca14
fix: fix typo 2021-07-12 23:41:03 +02:00
euberdeveloper
1574f62985
feat(cli): add env vars layer, between cli default values and passed args
Signed-off-by: euberdeveloper <euberdeveloper@gmail.com>
2021-07-12 22:43:06 +02:00
Dominik
9c1add4ff9
Add min-height to main app
Adds min-height: 80vh; The footer will stay always at the bottom on big screens and looks normal on mobile devices.
2021-07-08 12:26:08 +02:00
Piero Toffanin
64d270dc4d wsgi support 2021-07-06 20:26:06 -04:00
Piero Toffanin
29457397a1 Fix CSS 2021-07-05 09:19:46 -04:00
Piero Toffanin
cdff45efe6 Fix limits 2021-07-04 12:36:13 -04:00
idotj
42c95b9ace Add downArrow to select language + fix select language problem with small screens 2021-06-13 19:11:58 +02:00
Piero Toffanin
6e086b411b update favicon 2021-06-12 15:30:30 -04:00
Piero Toffanin
9dfd4dda09
Invalidate cache 2021-06-12 14:58:12 -04:00