Florian Festi
6aa5cb4204
Cache menu and stock generator pages
...
as they are always the same for the same language
2023-01-02 22:08:12 +01:00
Florian Festi
70e1e033c2
Redirect static links to github.io docs
...
if running as wsgi (aka the web instance). Keep statics local when
running with the built-in web server.
2023-01-02 21:15:38 +01:00
Florian Festi
53e7991ea3
Use new f string format in boxesserver
...
well, at least a bit more...
2023-01-02 21:15:38 +01:00
Rotzbua
9d6f535e01
Fix typing errors
2023-01-01 18:10:42 +01:00
Rotzbua
ad38bb1eaf
Auto optimize imports
...
* Remove unused
* Rearrange imports (module > partial > project)
2022-12-31 20:33:49 +01:00
Florian Festi
8dc27d90d7
Add Download button to web UI
...
Resolves : #462
2022-12-25 16:32:51 +01:00
funkonaut
478d73f69d
Announce menu collapse and expand
...
Role tag added as aria-expanded does not work for clickable headings, this is some what of a work around but will get things accessible for now wihtout requiring too much of a rewrite. The showHide function now has lines to toggle the aria-expanded tag based on the state of the clickable heading.
2022-09-08 09:03:56 +02:00
funkonaut
691f3f440e
Add aria labels to inputs
...
to make them accessible for screen reader users.
Assign ids to the tds containing the setting name and description and
then use them as the label via the aria-labeledby attribute.
2022-09-08 09:00:04 +02:00
funkonaut
b2636f5e72
Keyboard navigation for collapsible sections
...
For now there was no way to select and open the collapsed sections in
both the generator groups and the setting groups other as by mouse
click. This break the keyboard only work flow and excludes screen reader
users. Add a tab stop and hook up the collapse/uncollaps function to the
return key.
2022-09-05 10:35:08 +02:00
funkonaut
78dec8ed21
Fix tables for screen readers
...
Avoid announcing every row number which is part of the navigation for
proper tables (read spread sheet). This is a stop gap solution as tables
should not be used for layout at all. But this at least make things
better for screen reader users until this is switched to proper CSS
based layout.
2022-09-05 10:30:35 +02:00
Vojtěch Mrkývka
224f7b25aa
Keyboard interruption for BoxesServer
2022-08-28 11:46:24 +02:00
Vyacheslav V. Anisimov
c8d93bfe14
Add host parameter to boxesserver
2022-04-30 23:23:52 +02:00
Florian Festi
adf5079ea0
Boxesserver: Allow extra extentions for markdown
...
of generators' long description
2022-04-30 16:45:01 +02:00
Florian Festi
6cb2af9cc9
Fix URL params defaults for int choices
...
URL parameters are passed in as strings so they would not register as
selected for choices with int values. As a result a render=0 link would
nt pass these parameters correctly.
Thanks to Richard Kampmann for noting and reporting this rather
obscure bug!
2022-01-08 18:20:39 +01:00
Florian Festi
f0022d3754
Re-arrage footer links
2022-01-03 13:42:50 +01:00
Florian Festi
4ba1768d29
Treat all parameter descriptions as markdown
...
in the web UI
2022-01-03 13:29:12 +01:00
Rotzbua
a596f79814
change to html5 style
2021-11-11 12:15:22 +01:00
Rotzbua
d43d44bf66
fix wrong encoding header from server
2021-11-11 11:04:16 +01:00
Rotzbua
8d30892d23
Remove unreachable code
2021-11-11 11:03:28 +01:00
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
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
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
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
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
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
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
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