mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-12-17 14:54:26 +01:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34e0bde0b4 | ||
|
|
334559a4b6 | ||
|
|
cbca0d67b7 | ||
|
|
5b0146325e | ||
|
|
b2f48d5853 | ||
|
|
f0c3b898ae | ||
|
|
bf4b9e55ae | ||
|
|
2d87214cd0 | ||
|
|
a20b4c9bc3 |
3
FUNDING.yml
Normal file
3
FUNDING.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
liberapay: Reticulum
|
||||
ko_fi: markqvist
|
||||
custom: "https://unsigned.io/donate"
|
||||
@@ -1259,16 +1259,38 @@ print_messages = No
|
||||
print_command = lp
|
||||
|
||||
# You can specify what printer to use
|
||||
# print_command = lp -d PRINTER_NAME
|
||||
# print_command = lp -d [PRINTER_NAME]
|
||||
|
||||
# Or specify more advanced options. This
|
||||
# example works well for small thermal-
|
||||
# roll printers.
|
||||
# print_command = lp -d PRINTER_NAME -o cpi=16 -o lpi=8
|
||||
# roll printers:
|
||||
# print_command = lp -d [PRINTER_NAME] -o cpi=16 -o lpi=8
|
||||
|
||||
# This one is more suitable for full-sheet
|
||||
# printers.
|
||||
# print_command = lp -d PRINTER_NAME -o page-left=36 -o page-top=36 -o page-right=36 -o page-bottom=36
|
||||
# printers. It will print a QR code at the center of any media
|
||||
# your printer will accept, print in portrait mode, and move the message to
|
||||
# the top of the print queue:
|
||||
# print_command = lp -d [PRINTER_NAME] -o job-priority=100 -o media=Custom.75x75mm -o orientation-requested=3
|
||||
|
||||
# But you can modify the size to fit your needs.
|
||||
# The custom media option accepts millimeters, centimeters, and
|
||||
# inches in a width by length format like so:
|
||||
# -o media=Custom.[WIDTH]x[LENGTH][mm,cm,in]
|
||||
#
|
||||
# The job priority option accepts 1-100, though you can remove it
|
||||
# entirely if you aren't concerned with a print queue:
|
||||
# -o job-priority=[1-100]
|
||||
#
|
||||
# Finally, the orientation option allows for 90 degree rotations beginning with 3, so:
|
||||
# -o orientation-requested=4 (landscape, 90 degrees)
|
||||
# -o orientation-requested=5 (reverse portrait, 180 degrees)
|
||||
#
|
||||
# Here is the full command with the recommended customizable variables:
|
||||
# print_command = lp -d [PRINTER_NAME] -o job-priority=[N] -o media=[MEDIA_SIZE] -o orientation-requested=[N] -o sides=one-sided
|
||||
|
||||
# For example, here's a configuration for USB thermal printer that uses the POS-58 PPD driver
|
||||
# with rolls 47.98x209.9mm in size:
|
||||
# print_command = lp -d [PRINTER_NAME] -o job-priority=100 -o media=custom_47.98x209.9mm_47.98x209.9mm -o sides=one-sided
|
||||
|
||||
'''.splitlines()
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "0.7.0"
|
||||
__version__ = "0.8.0"
|
||||
|
||||
@@ -345,7 +345,7 @@ By default, you can find the examples in `!~/.nomadnetwork/examples`!. If you bu
|
||||
|
||||
Sometimes, you don't want everyone to be able to view certain pages or execute certain scripts. In such cases, you can use `*authentication`* to control who gets to run certain requests.
|
||||
|
||||
To enable authentication for any page, simply add a new file to your pages directory with ".allowed" added to the file-name of the page. If your page is named "secret_page.mu", just add a file named "secret_page.allowed".
|
||||
To enable authentication for any page, simply add a new file to your pages directory with ".allowed" added to the file-name of the page. If your page is named "secret_page.mu", just add a file named "secret_page.mu.allowed".
|
||||
|
||||
For each user allowed to access the page, add a line to this file, containing the hash of that users primary identity. Users can find their own identity hash in the `![ Network ]`! part of the program, under `!Local Peer Info`!. If you want to allow access for three different users, your file would look like this:
|
||||
|
||||
|
||||
@@ -148,6 +148,9 @@ def parse_line(line, state, url_delegate):
|
||||
elif first_char == "-":
|
||||
if len(line) == 2:
|
||||
divider_char = line[1]
|
||||
# Control characters don't make sense here and otherwise crash nomadnet
|
||||
if ord(divider_char) < 32:
|
||||
divider_char = "\u2500"
|
||||
else:
|
||||
divider_char = "\u2500"
|
||||
if state["depth"] == 0:
|
||||
|
||||
2
setup.py
2
setup.py
@@ -30,6 +30,6 @@ setuptools.setup(
|
||||
entry_points= {
|
||||
'console_scripts': ['nomadnet=nomadnet.nomadnet:main']
|
||||
},
|
||||
install_requires=["rns>=0.9.6", "lxmf>=0.7.1", "urwid>=2.6.16", "qrcode"],
|
||||
install_requires=["rns>=1.0.0", "lxmf>=0.8.0", "urwid>=2.6.16", "qrcode"],
|
||||
python_requires=">=3.7",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user