Commit Graph

133 Commits

Author SHA1 Message Date
Florian Festi a88afc964d CSS: Set width of images in descriptions to 100%
at the bottom of the geenrator pages
2021-09-19 20:38:35 +02:00
Mario Voigt ecf14540f5 Adjust inx parser for InkScape 1.0
This is a more recent inx file creator which does not throw errors on console (except the ones where no thumbnail files exist yet)

Resolves: #314
2021-06-11 20:33:32 +02:00
Florian Festi ef94daa006 Add mouseover images for most groups
Resolves: #253
2021-06-05 18:25:53 +02:00
Florian Festi 7901e4aa40 Show description above image in the web interface 2021-03-15 13:50:35 +01:00
Florian Festi 33325adb87 Use new style string formating 2020-11-14 16:41:41 +01:00
Florian Festi f38819307b Limit formating for unorderd lists to menu page
Before unordered lists in generator descriptions would also be formatted
like the items in the generator selection
2020-09-26 11:45:48 +02:00
Marcin Zukowski a5648f5297 Add "Save to URL" button 2020-08-28 10:34:18 +02:00
Florian Festi be74f553e6 Fix Inkscape extension files for 1.0
Use lowercase for bools
Avoid empty gui-description strings

Resolves #231
2020-08-04 23:44:18 +02:00
Florian Festi dc0976a416 Remove unnecessary type attribute in web page 2020-07-15 14:30:04 +02:00
Florian Festi ce90f06e1e Show image underneath the settings
just before the long description (if there is one)
2020-05-24 13:52:24 +02:00
Florian Festi c0a3175c4e No langer require cairo in the Dockerfiles 2020-05-18 22:30:28 +02:00
Florian Festi 6440bcb639 Get text working for both SVG and PS
Move coordiate translation to to finish() method
Use Latin1 encoding for text PS in output

Add Boxes.set_font() to support basic font styles:
 serif, sans-serif and monospaced
 in normal, bold, italic and both bold and italic
2020-05-18 22:30:28 +02:00
Florian Festi c4ca1b4dfa Also translate Edge descriptions in ArgparseEdgeType 2020-04-13 18:45:17 +02:00
Florian Festi 18a1766f8c Add edge descriptions to pot file (translation catalog) 2020-04-13 18:36:18 +02:00
Florian Festi b46deec02e boxesserver: Return nothing.png for missing thumb nails
No longer output paths of static files
2020-03-07 20:14:38 +01:00
Florian Festi db5c0c8bad boxesserver: Remove Python 2 compat foo 2019-12-21 17:47:40 +01:00
Florian Festi 4f3b738f6f Replace deprecated cgi.escape with html.escape 2019-12-21 17:47:08 +01:00
Florian Festi 3b2e214bf1 boxesserver: Message to indicate the traceback was caught 2019-12-21 17:47:08 +01:00
Florian Festi a39567598c Fix error handling of TrayLayout2 in the web instance 2019-12-16 20:07:30 +01:00
Florian Festi 4a711b1cb4 boxesserver: Improve error handling during rendering
Especially don't print messages for out of bound parameters into the log/stdout
2019-12-14 13:09:43 +01:00
Florian Festi b4384f5d16 boxesserver: don't error out on missing QUERY_STRING 2019-12-14 12:16:25 +01:00
Florian Festi 45e9fdc68a TrayLayout: Show errors on parsing the layout 2019-11-24 16:42:47 +01:00
Florian Festi d121b34994 boxesserver: Catch all exceptions during rendering 2019-11-23 14:28:51 +01:00
Georges Khaznadar 00f25e43c7 allow a parameter to change the port of the server 2019-11-01 11:35:52 +01:00
Luca 2ab360a415 Set thumbnail position relative to viewport
Display thumbnail 100px from the bottom
2019-10-27 16:44:13 +01:00
Luca 330ebdb752 Display 200px fixed-width thumbnails instead of full-size pictures 2019-10-27 16:44:13 +01:00
Luca 53374de766 Add script to statically generate thumbnails 2019-10-27 16:44:13 +01:00
Florian Festi 55dd81886a Web UI: Fix str vs bytes mess in error message handling
Displaying the error message failed resulting in an empty page and a
(hidden) trace back.

Resolves: #180
2019-10-22 21:12:26 +02:00
Florian Festi df331cd1f3 Fix Inkscape inx files with BoolArg and argparseSections parameters
This was broken by 603c0a789e by adding quotes
to some cases but not all.

Resolves: #171
2019-09-08 23:26:07 +02:00
Florian Festi 603c0a789e Inkscape plugin: Set precision for float arguments to 2
Resolves: #167
2019-08-24 23:01:27 +02:00
Florian Festi 3c469c99d4 Also translate generator and setting group names in web UI 2019-08-24 11:33:43 +02:00
Florian Festi 291d21cd37 Use URL param and drop down in footer to select language 2019-08-24 00:07:45 +02:00
Florian Festi d0de69ed4d boxesserver: Create a new box instance for each request 2019-08-22 12:19:23 +02:00
Florian Festi 9636ecd076 boxesserver: Mark strings translatable and translate generator strings 2019-08-22 12:17:57 +02:00
Florian Festi 137ef6d676 New tool boxes2pot to extract translatable strings 2019-08-22 11:15:22 +02:00
Florian Festi e37e0df899 Make a copy of the header list 2019-08-18 13:56:26 +02:00
Florian Festi 699e224bc7 Add Content-Disposition header to have browsers download everything but SVGs
It also downloads svg_Ponoko files as they cannot really be viewed in
the browser.

Related: #164

Thanks to Tagej for suggesting this!
2019-08-17 23:50:11 +02:00
Florian Festi d51b44fb57 Use urllib.parse.parse_qs instead of cgi.parse_qs if possible 2019-08-16 00:24:51 +02:00
Florian Festi 02988d12c5 Catch exceptions from failed ps2edit calls 2019-08-15 23:12:35 +02:00
Rotzbua 6ae8acd568 [Docker] clean dnf cache to save space
about 150mb
2019-07-12 12:16:28 +02:00
Florian Festi fff74cf382 Add metadata as a xml comment
Resolves #66
2019-07-07 13:43:04 +02:00
Florian Festi d162c769b4 Use built in eTree implementation instead of lxml 2019-07-04 17:52:08 +02:00
Rotzbua c3aac6f5eb [Docker] clone without history to save space 2019-07-02 15:39:59 +02:00
chrysn 18ea1a5ed4 boxesserver: Allow multi-line errors
Fixing potential cross-site scripting attacks in passing
2019-06-01 13:07:43 +02:00
Florian Festi 83078d056f Add python3-xcffib to Dockerfile to work with Fedora 29 2019-04-09 21:58:45 +02:00
Florian Festi 0d07f48b7f Remove .open() call from the .render() method
Having this call there was necessary in the past as the open() method would
need the canvas size as a parameter. This is now determined automatically
after rendering.

Still calling open() is deprecated but won't result in an error.
2019-02-08 17:43:15 +01:00
Florian Festi 861c8451e2 Remove call to .close() from .render() method
There is really no need for all the generator to care
Still calling it is deprecated but won't result in an error
2019-02-08 17:32:04 +01:00
Florian Festi fdc90ba20d Unclutter Inkscape UI
Remove "Settings" from the name of the parameter groups tabs
2018-11-25 23:20:59 +01:00
Florian Festi b1eced8259 Ignore argument groups in the web UI that are empty except --help 2018-10-28 20:18:37 +01:00
Florian Festi b9e6ff2c1d http -> https 2018-10-01 14:42:50 +02:00