Compare commits

..

36 Commits

Author SHA1 Message Date
Swapnil 10dab44a27
app: update dummy.env 2024-02-01 16:37:36 +05:30
Swapnil 68869249bc
app: fix user_info error 2024-02-01 16:37:36 +05:30
Swapnil dd850ca6e1
app: minor improvements 2024-02-01 16:37:35 +05:30
Swapnil 706ff9d90f
db: Table and apis for last annotation time 2024-02-01 16:37:35 +05:30
Swapnil 889469dcff
job: get/update last annotation time from database 2024-02-01 16:37:35 +05:30
Swapnil 1c0f991977
added dummy.env for reference 2024-02-01 16:37:34 +05:30
Swapnil ee9b4b10a1
job: Run job for all active tokens
- check, deactivate, & refresh token
- better logging
2024-02-01 16:37:34 +05:30
Swapnil 65656ff559
db: API to deactivate token & fixes 2024-02-01 16:37:34 +05:30
Swapnil e80e88bb99
app: Comments - inoreader user-info 2024-02-01 16:37:33 +05:30
Swapnil 46e4f8e722
app: fix None readwise_api_key 2024-02-01 16:37:33 +05:30
Swapnil 19af4bff34
db: api to get all entires 2024-02-01 16:37:33 +05:30
Swapnil c1b216dd11
app: fix logic to save/create token 2024-02-01 16:37:33 +05:30
Swapnil 0c1e18cad9
db: new columns & APIs 2024-02-01 16:37:32 +05:30
Swapnil 97c3354de8
app: minor fixes 2024-02-01 16:37:32 +05:30
Swapnil 84a1ed15f5
app: fix 2024-02-01 16:37:32 +05:30
Swapnil 8fd838ce23
app: fix error 2024-02-01 16:37:31 +05:30
Swapnil 20423379a2
app: fix error 2024-02-01 16:37:31 +05:30
Swapnil f34b85d79f
fixes 2024-02-01 16:37:31 +05:30
Swapnil 91ac98a60b
fixes 2024-02-01 16:37:30 +05:30
Swapnil 327896abcc
app: fixed bug and better error message 2024-02-01 16:37:30 +05:30
Swapnil bf8b33edde
app: try better error in app 2024-02-01 16:37:30 +05:30
Swapnil cce57bca72
db-service: fix required fields checking 2024-02-01 16:37:29 +05:30
Swapnil 3ec293e1fa
app-service: Updated templates and login logic 2024-02-01 16:37:29 +05:30
Swapnil 1b7a37c4e1
db-service: Updated table schema & exposed new APIs 2024-02-01 16:37:29 +05:30
Swapnil 67766a7708
fix logout method 2024-02-01 16:37:28 +05:30
Swapnil 021f3bcb7c
use app.secret_key to enable session 2024-02-01 16:37:28 +05:30
Swapnil 6614f74c9f
fix database api 2024-02-01 16:37:28 +05:30
Swapnil d0c888d6c4
implement logout 2024-02-01 16:37:27 +05:30
Swapnil 16c94fcaa6
test with github auth 2024-02-01 16:37:27 +05:30
Swapnil 516d5db9a0
fix: app - import datetime 2024-02-01 16:37:27 +05:30
Swapnil 29a39cb633
fix: database - timestamp 2024-02-01 16:37:27 +05:30
Swapnil 1d1c2aac9f
fix: app - expose on 0.0.0.0 2024-02-01 16:37:26 +05:30
Swapnil c377909954
fix: database check 2024-02-01 16:37:26 +05:30
Swapnil 34282e6f30
fix: with app.app_context() 2024-02-01 16:37:26 +05:30
Swapnil 089583960b
Separate micro services 2024-02-01 16:37:25 +05:30
Peter Šurda 754cc950b9
Add jinja2 templates 2024-01-29 14:46:29 +08:00
5 changed files with 63 additions and 0 deletions

9
templates/login.jinja2 Normal file
View File

@ -0,0 +1,9 @@
<html>
<head>
<title>Logging in</title>
<meta http-equiv="refresh" content="0; url="https://www.inoreader.com/oauth2/auth?client_id={%inoreader_client_id%}"&redirect_uri={%siteurl%}/processoauth2&response_type=code&scope=read&state={%csrf_protection_string%}/">
</head>
<body>
Redirecting ...
</body>
</html>

9
templates/logout.jinja2 Normal file
View File

@ -0,0 +1,9 @@
<html>
<head>
<title>Logout</title>
<meta http-equiv="refresh" content="0; url="{%siteurl%}/">
</head>
<body>
Redirecting ...
</body>
</html>

View File

@ -0,0 +1,21 @@
<html>
<head>
<title>Inoreader 2 Readwise main screen
</head>
<body>
Hello {% inoreader_username %}
<p/>
<form action="setapikey">
API key:
<input type="text" id="apikey">{% readwise_apikey %}</input>
<submit>Change</submit>
</form>
<br/>
Last time sync: {%lastsync%} {%syncstatus%}}
<br/>
Next time sync: {%nextsync%}
<form action="logout">
<submit>Logout</submit>
</form>
</body>
</html>

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>Processing oauth2</title>
{%if login_success%}
<meta http-equiv="refresh" content="0; url="{%siteurl%}/">
{%endif%}
</head>
<body>
{%if login_success%}
Redirecting ...
{%else%}
Login failed.
{%endif%}
</body>
</html>

View File

@ -0,0 +1,9 @@
<html>
<head>
<title>Changing API key</title>
<meta http-equiv="refresh" content="0; url="{%siteurl%}/">
</head>
<body>
Redirecting ...
</body>
</html>