Compare commits

..

No commits in common. "d3fe4ad3804d22d4e780a75621b56a187dd74b7f" and "ef9804da72e910c5ee15b088db35ae013058b208" have entirely different histories.

5 changed files with 5 additions and 20 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion] [tool.bumpversion]
current_version = "1.3.9" current_version = "1.3.8"
commit = true commit = true
tag = true tag = true
tag_name = "{new_version}" tag_name = "{new_version}"

View File

@ -1 +1 @@
1.3.9 1.3.8

6
app.py
View File

@ -159,12 +159,6 @@ def user_accounts() -> Union[Response, str]:
auth=session["auth_credentials"], auth=session["auth_credentials"],
) )
@app.route("/share", methods=["GET"])
def share() -> Response:
"""Handles shared text from PWA."""
shared_text = request.args.get("text")
return redirect(url_for("add_account", shared_text=shared_text))
@app.route("/accounts/add", methods=["GET", "POST"]) @app.route("/accounts/add", methods=["GET", "POST"])
def add_account() -> Union[Response, str]: def add_account() -> Union[Response, str]:
"""Handles adding a new user account.""" """Handles adding a new user account."""

View File

@ -1,7 +1,6 @@
{ {
"short_name": "kTv", "short_name": "kTv",
"name": "kTvManager", "name": "kTvManager",
"description": "KTVManager PWA",
"icons": [ "icons": [
{ {
"src": "/web-app-manifest-192x192.png", "src": "/web-app-manifest-192x192.png",
@ -17,14 +16,5 @@
"start_url": "/", "start_url": "/",
"background_color": "#ffffff", "background_color": "#ffffff",
"display": "standalone", "display": "standalone",
"theme_color": "#ffffff", "theme_color": "#ffffff"
"share_target": {
"action": "/share",
"method": "GET",
"params": {
"title": "title",
"text": "text",
"url": "url"
}
}
} }

View File

@ -131,7 +131,8 @@
} }
}); });
const sharedText = '{{ shared_text|safe }}'; const sharedTextJson = '{{ shared_text|tojson|safe }}';
const sharedText = JSON.parse(sharedTextJson);
if (sharedText) { if (sharedText) {
const accountDetailsTextarea = document.getElementById('accountDetails'); const accountDetailsTextarea = document.getElementById('accountDetails');