Commit Graph

182 Commits

Author SHA1 Message Date
Florian Festi 201e0ae5d8 boxes_proxy (Inkscape): Fix issue with --id cli arguments
tripping up on newer inkex versions if there are any object selected
while executing a plugiuting a plugin
2023-02-10 22:06:32 +01:00
Florian Festi d511268c74 boxes_proxy (for Inkscape): Quote command line options
and clean code up a bit
2023-02-08 23:08:52 +01:00
Florian Festi 8b961797f9 boxes_proxy (for Inkscape): Use temp file
Resolves permission issues when trying to place files into system extension
directory.

Resolves: #516
2023-02-08 22:55:38 +01:00
Florian Festi 52e358a48d Gallery: Use cache 2023-02-05 16:17:30 +01:00
Florian Festi 216a5c4da8 Gallery: Add headings for groups 2023-02-05 16:17:30 +01:00
caleb crome 65a49ede39 Add a gallery page to boxesserver
This adds an image gallery to the server so you can visually search through all
available generators and just click on the image you want.
2023-02-05 16:17:30 +01:00
Rotzbua 4ef6c5c5ae boxesserver: refactor
* move & refactor JS to static
* add some typing
* move `head` to functions for reusability
* fix wrong separator for `hreflang` value
* fix various html validator errors
2023-01-31 20:37:52 +01:00
Rotzbua dc5afb8d21 boxesserver: add typing 2023-01-29 22:38:03 +01:00
Rotzbua b3fb61ec3c boxesserver: pyupgrade
Use `format()` or f-string
2023-01-29 22:38:03 +01:00
Rotzbua f106448586 boxesserver: code style 2023-01-29 22:38:03 +01:00
Florian Festi e2171a0889 boxesserver: Re-Add executable permissions 2023-01-27 22:37:11 +01:00
Rotzbua 59495ea34a change(web): open external link in new tab 2023-01-25 09:33:38 +01:00
Rotzbua e19423de25 Improve server
* Add meta tags for search engine for language detection
* Refactor dropdown for language selection, only show if other language available
2023-01-24 23:13:48 +01:00
Florian Festi daa3a50600 Add boxes_proxy.py from the MightyScape project
https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X

to make the Inkscape installation from the repostory work again.
2023-01-23 23:24:56 +01:00
Florian Festi 1b3b7850de Make generator name the start of the page title
So it is easier to find the right tab in the browser.
2023-01-22 15:42:51 +01:00
caleb crome 28959c098e Fix boxesserver
commit 0a8dcf0e37 caused the server to *only* respond to
localhost by default.  This causes the Docker to not respond properly.  The old
server had the default server name as '', but the new one set it to 'localhost'.

This fixes that problem.

In addition, This commit changes the docker file so that you can
specify which git repo and commit to check out from.  This allows
trivial testing of other clones.  The default branch is master
and default git repo is Florian's, but you  can now specify
new commits and/or branches to clone with

```docker build --build-arg BUILD_BRANCH=<branch-or-commit> --build-arg BUILD_REPO=<my-repo>```
2023-01-17 10:28:23 +01:00
Florian Festi a2bf4c060f boxesserver: Re-Add executable permissions 2023-01-14 00:10:33 +01:00
Rotzbua 7fd97931fd Remove old `super()` calls and class declaration 2023-01-13 16:18:44 +01:00
Rotzbua 631ff35f80 Remove outdated unicode literals 2023-01-13 16:18:44 +01:00
Rotzbua 6fac72bebd Remove useless parentheses 2023-01-13 16:18:44 +01:00
Florian Festi 0a8dcf0e37 boxesserver: Redo options
Use argparse for cli
Make static_url a member of the server class
Add url_prefix setting and set it to /boxes.py for uwsgi
2023-01-11 22:26:47 +01:00
Rotzbua a80a00aad6 Prevent robots from crawling generated data 2023-01-09 20:24:13 +01:00
Rotzbua fceb5f2dfe Add typing: variables 2023-01-09 07:55:59 +01:00
Rotzbua 11340448fa Add typing: magic methods 2023-01-09 07:55:59 +01:00
Rotzbua a091fc25f5 Fix typo in script command help text 2023-01-08 17:57:47 +01:00
Florian Festi a477dbd412 Delete commented out HTML for dynamic Content 2023-01-03 11:48:15 +01:00
Florian Festi 5503f06e31 Rewrite URLs of images in generator descriptions
to honor the static_url
2023-01-03 11:09:44 +01:00
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
Rotzbua 20032e50be Remove outdated imports 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
suks.ae 5169343be7 Add fillHoles() function
to fill a polygon with a hole pattern
2022-07-23 09:53:11 +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 ea4036b3d4 ArgparseEdgeType: Re-enable Inkscape format
Got dropped in ecf14540f5 while moving to
Inkscape 1.0.

Related: #369
2022-02-18 10:46:11 +01: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