Rotzbua
3c45bfed80
Refactor main to callable function
...
Preparation for `pyproject.toml` entry-point
2023-05-02 21:38:41 +02:00
Rotzbua
8a62293a47
Lint code
2023-05-02 21:38:41 +02:00
Florian Festi
bf6e55bb36
gen_thumbnails.sh: Don't quote /
...
as this is unnecessary and grep now complaints about it.
Leaving the [] in for now even if we only quote one char (.) as I have
the feeling we might need to quote more as soon as we encounter them.
2023-04-23 12:14:52 +02:00
Florian Festi
91c8ef31f9
Make Gallery the default view
...
and add large buttons to switch between Gallery and Menu.
Needs some more love to really look good.
2023-04-16 22:18:24 +02:00
Florian Festi
0e9b8a760e
Use same header in both the menu and the gallery
...
also make the search bar work in the gallery
2023-04-16 16:17:49 +02:00
Florian Festi
765b432679
Fix *LidSettings in boxes2pot
2023-04-07 19:59:54 +02:00
caleb crome
98a6538573
qr_code fixes
...
use short_url on standalone QR code generation
filter out redundant arguments to further shorten the URL. Current list to filter are the format, and the qr_code arguments
2023-03-09 20:18:08 +01:00
caleb crome
0b986eeb0c
TrayLayout: Make generation a one step operation in the web UI
...
Add Java Script for generating the layout from sx and sy
Drop special handling in boxesserver
Add .UI attribute to Boxes class to allow behaving differntly on different UIs
Traylayout is still filtered out from Inkscape INX file generation
Slightly adjust layout format of GridfinityTrayLayout
Co-authored-by: Florian Festi <florian@festi.info>
2023-03-07 20:02:27 +01:00
Florian Festi
f0bd44a81c
Remove &render=3 from QR code
...
Related: #488
2023-03-07 19:31:52 +01:00
Rotzbua
fa2b2fe466
Refactor generator `traylayout`
...
* Use generic argument `sx` and `sy` to generate text traylayout
* Add typing
* Fix code style
2023-02-28 13:47:11 +01:00
Florian Festi
ea1ac786d5
Add Boxes.translations
...
to allow geenrators to translate things like labels, too.
Adds hidden language parameter to make sure the language selected gets
passed down to the generated drawing.
2023-02-25 15:55:06 +01:00
Florian Festi
982ca9c498
Add qrcode button to web interface
2023-02-24 19:09:53 +01:00
Florian Festi
b0c529725a
Add .qrcode()
2023-02-24 19:09:53 +01:00
Florian Festi
0421aeb76a
Calculate short url and command line
...
with only the changed parameters
2023-02-24 19:09:53 +01:00
Rotzbua
eec47d260d
Fix html: use `oninput` instead of `onsearch`
...
`onsearch` is non-standard
2023-02-24 18:59:57 +01:00
caleb crome
5a0763f534
Update dockerfile to only do flat checkouts
...
as in earlier versions
2023-02-18 21:37:27 +01:00
caleb crome
1b30322269
Add search box to menu page
...
searches in class name, translated name and translated short description
(aka doc text)
Cut Menu items to 75% to avoid collisions
2023-02-16 23:36:49 +01:00
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