8 changed files with 75 additions and 12 deletions
@ -0,0 +1,17 @@ |
|||||
|
#! /usr/bin/python3 |
||||
|
|
||||
|
class Admin: |
||||
|
def __init__(self): |
||||
|
return |
||||
|
|
||||
|
def is_authenticated(self): |
||||
|
return True |
||||
|
|
||||
|
def is_active(self): |
||||
|
return True |
||||
|
|
||||
|
def is_anonymous(self): |
||||
|
return False |
||||
|
|
||||
|
def get_id(self): |
||||
|
return "admin" |
@ -1,4 +1,4 @@ |
|||||
import riot from 'riot'; |
import riot from 'riot'; |
||||
import './editor.tag'; |
import './editor.tag'; |
||||
|
axios.defaults.withCredentials = true |
||||
riot.mount("editor"); |
riot.mount("editor"); |
||||
|
@ -0,0 +1,19 @@ |
|||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
|
<head> |
||||
|
<link rel="stylesheet" href="/styles/primop.me.min.css"> |
||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
|
</head> |
||||
|
<html> |
||||
|
<body> |
||||
|
<section class="text-center nav navbar centered page-top navbar-section"> |
||||
|
<h1 class="blog-title">logged in status: {{ success }}</h1> |
||||
|
</section> |
||||
|
<footer class="footer"> |
||||
|
</footer> |
||||
|
|
||||
|
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> |
||||
|
<script type="text/javascript" src="/scripts/riotblog.min.js"></script> |
||||
|
</body> |
||||
|
</html> |
Loading…
Reference in new issue