-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
155 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
#!/bin/sh | ||
|
||
cp LICENSE local | ||
cp LICENSE_openpgp local | ||
cp LICENSE LICENSE_openpgp local | ||
rm -rf local/static | ||
cp -r app local/static | ||
rm -rf local/__pycache__ | ||
rm -f local/Frogtab_backup.json | ||
|
||
cd local/static | ||
sed -i'.backup' 's/data-save=\"browser\"/data-save=\"service\"/' index.html icon-*.html help.html | ||
sed -i'.backup' 's/data-vibe=\"\"/data-vibe=\"👽 Send to your inbox…\"/' help.html | ||
rm *.backup | ||
|
||
cd .. | ||
zip -r frogtab_local_v1xx.zip . | ||
mv frogtab_local_v1xx.zip .. | ||
|
||
cd .. | ||
rm -rf snapcraft | ||
cp -r local snapcraft | ||
rm -f snapcraft/README.md | ||
rm -f snapcraft/CHANGELOG.md | ||
cp -r snap/* snapcraft | ||
|
||
cd snapcraft | ||
mkdir flask | ||
mv static app.py frogtab_helpers.py requirements.txt flask | ||
snapcraft pack | ||
mv frogtab_*.snap .. | ||
|
||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 1.04 | ||
- Changed the Flask app to run via Python instead of the `flask` command. The port is now specified in *config.py* | ||
- Changed the name of the built-in backup method to show the backup directory instead of the filename | ||
- Identified the registration server in "Registering for a personal link" on the help page | ||
- Removed the `data-vibe` attribute and documented how to [customize the placeholder text of your personal link](https://github.com/dwilding/frogtab#customizing-the-placeholder-text-of-your-personal-link) | ||
|
||
# 1.03 | ||
- Improved support & docs for self-hosted servers | ||
|
||
# 1.02 | ||
- Fixed a bug with the registration button | ||
- Made some minor documentation updates | ||
- Updated Simple.css and OpenPGP.js | ||
|
||
# 1.01 | ||
- Initial version of Frogtab Local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from functions import backup, write_json | ||
from frogtab_helpers import working_dir, backup, write_json | ||
|
||
@backup('Save to Frogtab_backup.json') | ||
local_port = 5000 | ||
|
||
@backup(f'Save file to {working_dir}') | ||
def save_file(data): | ||
write_json(data, 'Frogtab_backup.json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from pathlib import Path | ||
from json import dump | ||
|
||
working_dir = Path.cwd() | ||
methods = {} | ||
|
||
def backup(desc): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Flask>=2.2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
cd "$SNAP_USER_COMMON" | ||
if test ! -e config.py; then | ||
cp "$SNAP/config.py" . | ||
fi | ||
export PYTHONPATH=".:$PYTHONPATH" | ||
"$SNAP/bin/python3" "$SNAP/flask/app.py" > /dev/null |
Oops, something went wrong.