Compare commits
No commits in common. "d3fe4ad3804d22d4e780a75621b56a187dd74b7f" and "ef9804da72e910c5ee15b088db35ae013058b208" have entirely different histories.
d3fe4ad380
...
ef9804da72
@ -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}"
|
||||||
|
6
app.py
6
app.py
@ -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."""
|
||||||
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user