Commit Graph

185 Commits

Author SHA1 Message Date
Daniel Markstedt
1c84bb34f9
Shorten file names when downloading to AFP (#592) 2022-01-04 21:08:28 -06:00
n4al
a240198123
N4al/spanish localisation (#594)
* Adding Spanish localisation to localizer.cpp

* Addind Spanish localisation for the Web Interface
2022-01-04 16:04:54 +01:00
Daniel Markstedt
5befff28e6
Improve token auth and oled monitor install scripts; better venv cleanup logic (#587)
* Trigger installation of the oled monitor script after installing rascsi; break out the token auth code and clarify wordings.

* Better logic for venv cleanup
2022-01-01 11:38:10 -06:00
cvictor
c5ed2b5b67
Cvictor update german (#585)
* Added german translations

* German translations edited header

* Fixed typo

Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-12-30 17:34:41 -08:00
Daniel Markstedt
ce7e391a52
More sturdy logic for when session language is unset (#583) 2021-12-29 20:54:59 -06:00
Kamel Makhloufi
40fe8d611e
Added french localization (#584)
* French localization added

* Updated french translation

* Corrected small typo in french translation

* Corrected small errors in fr translation
2021-12-29 17:56:44 -08:00
Daniel Markstedt
a973485f8c
Update Swedish translations after string change (#581) 2021-12-28 19:44:47 -06:00
Daniel Markstedt
338b6af92c
Hardcoded locale fallback to English (#582)
* Hardcoded locale fallback to English

* Fallbacks for locale in proto requests in case the locale fallback fails
2021-12-28 19:44:12 -06:00
akuker
2c60a848a8
Add Apple CD Drive as pre-defined drive (#580)
* Add Apple CD Drive as pre-defined drive

* Fix block size for Apple CD-ROM

Co-authored-by: Tony Kuker <akuker@gmail.com>
2021-12-28 18:30:20 -06:00
Daniel Markstedt
3ad78e8312
Final updates for Swedish l10n (#576)
* Revert previous solution, and do dropzone i18n the right way.

* Translate Swedish

* Update Swedish localization

* Update Swedish localization
2021-12-28 15:14:30 -06:00
Daniel Markstedt
fecdc44629
Resolve pylint warnings for rascsi-web (#579)
* Add venv hook to .pylintrc

* Add to readme about pylint-venv

* Resolve pylint warnings

* Flesh out readme
2021-12-28 14:09:47 -06:00
Daniel Markstedt
9385483624
Flesh out webapp localization readme (#578) 2021-12-28 14:08:48 -06:00
Daniel Markstedt
f5a9f32019
Revert previous solution, and do dropzone i18n the right way. (#572) 2021-12-27 19:18:56 -06:00
Daniel Markstedt
a5f3a84bcf
i18n for the Dropzone JS library (#571)
* Fold dropzone.min.js v5.9.3 into base.html and apply i18n

* Add dropzone library changelog

* Make it not break jinja2
2021-12-27 16:52:44 -06:00
Daniel Markstedt
13187fc2fc
Make language selectable in UI (#568) 2021-12-27 15:21:56 -06:00
Daniel Markstedt
e209345f1c
Found an untranslated string + more Swedish translation tweaks (#569)
* Add flask_babel 2.0.0 to requirements

* Partial i18n

* Use current locale for protobuf requests

* Don't store generated messages.pot in git

* Internationalize all python code

* Formatting fixes

* Partial internationalization of html

* Iterate on html i18n

* Completed i18n of code

* Improve i18n of strings

* Blurb about i18n in the readme

* Improve i18n strings

* Add the compiled messages.mo files to .gitignore

* Add complete Swedish localization

* Generate localizations in start.sh

* Only compile messages.mo in start.sh; better sequence

* Fix bug

* Flesh out readme

* Flesh out readme

* Tweak Swedish translations

* Add to readme

* Update Swedish translation
2021-12-27 15:21:06 -06:00
Daniel Markstedt
270a3688c6
Swedish translation tweaks & readme updates (#567)
* Add flask_babel 2.0.0 to requirements

* Partial i18n

* Use current locale for protobuf requests

* Don't store generated messages.pot in git

* Internationalize all python code

* Formatting fixes

* Partial internationalization of html

* Iterate on html i18n

* Completed i18n of code

* Improve i18n of strings

* Blurb about i18n in the readme

* Improve i18n strings

* Add the compiled messages.mo files to .gitignore

* Add complete Swedish localization

* Generate localizations in start.sh

* Only compile messages.mo in start.sh; better sequence

* Fix bug

* Flesh out readme

* Flesh out readme

* Tweak Swedish translations
2021-12-27 00:00:29 -06:00
akuker
e87ef2dc77
#565 - removed invalid CONNER HD config (#566) 2021-12-26 18:25:05 -08:00
Daniel Markstedt
ab82d6e4eb
Web Interface i18n (#564)
* Add flask_babel 2.0.0 to requirements

* Partial i18n

* Use current locale for protobuf requests

* Don't store generated messages.pot in git

* Internationalize all python code

* Formatting fixes

* Partial internationalization of html

* Iterate on html i18n

* Completed i18n of code

* Improve i18n of strings

* Blurb about i18n in the readme

* Improve i18n strings

* Add the compiled messages.mo files to .gitignore

* Add complete Swedish localization

* Generate localizations in start.sh

* Only compile messages.mo in start.sh; better sequence

* Fix bug
2021-12-26 15:36:12 -06:00
Daniel Markstedt
c19c814863
Support for nested image dirs in the Web Interface (#558)
* Remove secure_filename for user created images

* Code cleanup

* Store relative path to image file in data structure

* Match attached images against relative paths

* Display scan depth in UI
2021-12-23 11:13:51 -06:00
Daniel Markstedt
ab55d95fd4
Add token authentication to Web UI and OLED monitor script (#554)
* Throw 403 forbidden if token auth is enabled

* Use argparse to parse port and password parameters; use password token to authenticate

* Move config file loading to before_first_request block

* Add token auth to monitor script

* Install script for enabling token auth

* Token config flow for oled monitor installation

* Correct permissions

* Fix bug

* Cleanup
2021-12-23 11:12:16 -06:00
Daniel Markstedt
5817ca6df5
Skip git steps in shell scripts if not a valid git repo (#524)
* Skip git steps if no .git dir exists

* Tweak message

* Check for git repo in start.sh

* Fix logic & cleanup

* Make a different check for git repo

* Make a different check for git repo

* Make a different check for git repo
2021-12-23 11:08:50 -06:00
Daniel Markstedt
c887edfc8c
Remove special elevated privileges for the Web Interface (#536)
* Use the pi_shutdown method to restart the rascsi service

* Use the pi_shutdown method to restart the rascsi service

* Remove modifications to sudoers no longer needed

* Introduce sleeps attempting to connect to socket; reduce overall number of retries

* Remove systemd helped methods and the functionality that depends on it

* Attempts to speed up splash code

* Remove unneccessary verbosity

* Attempt to optimize service definition
2021-12-19 17:50:03 -06:00
Daniel Markstedt
801aebfb96
More readable message when downloading a file (#531) 2021-12-19 17:47:22 -06:00
Daniel Markstedt
29cf58288f
Add a warning notice when ejecting removable media (#526) 2021-12-19 17:47:03 -06:00
Daniel Markstedt
7efa895239
Unzip zipfiles before storing to iso (#525)
* Unzip zipfiles before storing to iso

* Add helptext

* Skip unzip for MacZip format

* Should not be an fstring
2021-12-19 17:46:22 -06:00
Daniel Markstedt
39c65beb99
Better Pi shutdown handling in Web Interface (#522)
* Add shutdown method

* Use shutdown method

* Use proto shutdown commands; remove old shell commands

* Add explicit monitor_rascsi shutdown

* Better method name

* Add code comment

* Fix bug
2021-12-13 19:37:28 -08:00
Daniel Markstedt
0eb9e50d18
Rename image file in web interface (#521)
* Introduce rename_image method

* Introduce rename endpoint

* Better prompt text

* Fix bug

* Make renaming properties files work

* Have current file name prefilled

* Add login_required decorator

* Remove unused code
2021-12-13 20:50:36 -06:00
Daniel Markstedt
986116f8d9
Introduce wrapper method for enabling auth for endpoints (#518) 2021-12-12 18:54:15 -06:00
Daniel Markstedt
01bc198d4c
Pipe only stdout to /dev/null when checking pip return code (#517)
* Piping stderr to /dev/null was a bad idea

* Piping stderr to /dev/null was a bad idea
2021-12-12 18:53:08 -06:00
Daniel Markstedt
7dce1bc3b9
The ability to create ISO images of various types (#520)
* Better error handling

* Ability to create ISO images of various types

* Remove ISO v2 option, since I couldn't test that it works

* Add help text

* Fix typo
2021-12-12 18:52:35 -06:00
Daniel Markstedt
aa0e5a287b
Error handling in subprocess run (#516) 2021-12-12 11:13:19 -06:00
Daniel Markstedt
916cf2c72c
Fix startup check for broken venv (logic was the wrong way around) (#513)
* I got the logic the wrong way around

* Explicitly use pip3 to avoid certain error scenarios
2021-12-09 19:45:54 -06:00
Daniel Markstedt
0cc0ee9094
Add checks for bad venv, and delete if detected (#510)
* Add checks for two known bad venv states

* More sturdy replacement operator
2021-12-06 20:38:41 -06:00
Daniel Markstedt
df3387b178
Stop submit event if prompt cancel is clicked (#495) 2021-12-02 19:20:00 -06:00
Daniel Markstedt
c3a4bf876f
Handle error for invalid zip file (#494) 2021-11-28 14:09:31 -06:00
Daniel Markstedt
b682655e56
Scroll to top of page when long process is initiated (#493)
* Scroll to top of page when long process is initiated. Reduce code duplication.

* Add script type
2021-11-27 20:23:37 -06:00
Daniel Markstedt
8dfe9d1b5e
Use a byte size the Floptical driver recognizes. Remove the 21MB profile as it doesn't work. (#492) 2021-11-27 20:22:50 -06:00
Daniel Markstedt
a2af7623af
Make the restart rascsi service endpoint actually check for systemd s… (#487)
* Make the restart rascsi service endpoint actually check for systemd service status before doing anything. Introduced error handling and more verbose messages.

* Cleanup
2021-11-27 19:17:36 -06:00
Daniel Markstedt
7818552ca9
Resolve pylint warnings (#488)
* Suppress the import outside toplevel pylint rule -- I think we want to save memory

* Resolve pylint warnings
2021-11-27 14:11:59 -06:00
Daniel Markstedt
fff0a748b3
Change wiki link (#491) 2021-11-27 14:10:45 -06:00
Daniel Markstedt
5b397229cd
Introduce async operations in webapp (#485)
* Introduce run_async for system processes

* Remove redundant code for system shutdown and reboot endpoints

* Use async process with systemd_service

* Modify innerHTML to show progress messages

* Add docstring
2021-11-26 20:59:25 -08:00
Daniel Markstedt
5346d110a9
User authentication in the Web Interface (#483)
* Add flask-login library

* Add simplepam lib to requirements

* We don't use flask-login after all

* User authentication in the web app using simplepam

* Allow only users in the sudo group to log in

* Tweak string

* This way to enforce authenticated state doesn't work here

* Open links to github in new tab

* Disallow uploads when not authenticated

* Check for the rascsi group on the system to enable webapp auth. Allow only users in the rascsi group to authenticate.

* Make the AUTH_GROUP a global constant.

* Add easyinstall option for web interface auth

* Make AUTH_GROUP a constant

* More accurate change scope
2021-11-26 22:41:10 -06:00
Daniel Markstedt
53d38077f1
Include file name in delete modal (#476) 2021-11-18 19:24:59 -06:00
Daniel Markstedt
111920edb0
Make rascsi-web port configurable (#471) 2021-11-15 20:00:32 +01:00
Daniel Markstedt
014ced6042
Http error strings makes it clear that they are thrown by the RaSCSI Web Interface (#468) 2021-11-14 14:07:08 -06:00
Daniel Markstedt
e1a4a963ed
Updates for running on Bullseye (#469)
* Conditionally use compiler flags needed for gcc 10+

* Cleanup

* Remove deprecated systemd options

* Better message
2021-11-14 19:34:24 +01:00
Daniel Markstedt
133eab068c
Use the 21.11 release tarball for Macproxy; allow you to specify port number (#450)
* Tweak UI strings

* Pull a stable macproxy release tarball

* Add option to customize port
2021-11-13 19:45:40 -06:00
Daniel Markstedt
1446664310
Add Iomega Floptical profiles (#453) 2021-11-13 19:44:53 -06:00
Daniel Markstedt
65d0a9b2e6
Improved properties unzip handling (#447)
* Attempt to unzip a properties file when unzipping individual files

* Don't show the unzip button for properties files

* Hide properties files in zip files, and show an asterisk for images with associated properties

* Cleanup

* Have properties files expand below images in archives

* Hide bullets

* Improve layout
2021-11-13 19:38:01 -06:00