## First Commit ##
This commit is contained in:
commit
2fc7242290
56 files changed
+3501
No files matched your search
@@ -0,0 +1,113 @@
|
||||
{% extends "base.html" %}
|
||||
{#{% extends "base_login.html" %}#}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<input type="hidden" id="ongletType" value="none">
|
||||
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<div class="column is-4 is-offset-4">
|
||||
<div class="box has-background-main-2">
|
||||
<h1 class="title has-text-white">Board-Manager</h1>
|
||||
</div>
|
||||
<div class="box">
|
||||
|
||||
{% with success = get_flashed_messages(category_filter=["success"]) %}
|
||||
{% if success %}
|
||||
<div class="notification is-success">
|
||||
<button class="delete"></button>
|
||||
<p><strong>{{ success[0] }}</strong></p>
|
||||
{%- for msg in success[1:] %}
|
||||
<li>{{ msg }}</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% with warn = get_flashed_messages(category_filter=["warn"]) %}
|
||||
{% if warn %}
|
||||
<div class="notification is-warning">
|
||||
<button class="delete"></button>
|
||||
<p><strong>{{ warn[0] }}</strong></p>
|
||||
{%- for msg in warn[1:] %}
|
||||
<li>{{ msg }}</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% with error = get_flashed_messages(category_filter=["error"]) %}
|
||||
{% if error %}
|
||||
<div class="notification is-danger">
|
||||
<button class="delete"></button>
|
||||
<p><strong>{{ error[0] }}</strong></p>
|
||||
{%- for msg in error[1:] %}
|
||||
<li>{{ msg }}</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
|
||||
|
||||
<div class="box message-content has-background-main">
|
||||
|
||||
<form method="POST" action="/login">
|
||||
<input type="hidden" name="log_type" value="classic" id="log_type"/>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input class="input is-large" type="email" name="email" placeholder="Your Email" autofocus="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input class="input is-large" type="password" name="password" placeholder="Your Password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" id="rem-classic">
|
||||
Remember me
|
||||
</label>
|
||||
</div>
|
||||
<button class="button is-block is-info is-large is-fullwidth">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="{{url_for('static', filename='scripts/js/jquery/jquery-3.6.0.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='scripts/js/auth/script.js')}}"></script>
|
||||
<script>
|
||||
|
||||
function OAuthSuccessCallback(authToken) {
|
||||
signIn(true, authToken);
|
||||
}
|
||||
function OAuthErrorCallback() {
|
||||
$('#sign-in-alert').text('Error communicating with Plex.tv.').show();
|
||||
}
|
||||
|
||||
$('#sign-in-plex').click(function() {
|
||||
console.log("Loggin")
|
||||
PlexOAuth(OAuthSuccessCallback, OAuthErrorCallback);
|
||||
});
|
||||
|
||||
function signIn(plex, token) {
|
||||
console.log(token)
|
||||
{#var rem_plex = 'caca'#}
|
||||
var rem_plex = document.getElementById('rem-plex').checked
|
||||
var form = $('<form action="/login" method="post">' + '<input type="hidden" name="log_type" value="plex" id="log_type"/>' + '<input type="hidden" name="rem-plex-jav" value=' + rem_plex + ' id="rem-plex-jav"/>' + '<input type="text" name="token" value="' + token + '" />' + '</form>');
|
||||
$('body').append(form);
|
||||
form.submit();
|
||||
{#window.location.href = "/login_plex" + token;#}
|
||||
{#$('#demo').load({{ url_for('auth.login_plex', share = token)}});#}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,40 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="column is-4 is-offset-4">
|
||||
<h3 class="title">Sign Up</h3>
|
||||
<div class="box">
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<div class="notification is-danger">
|
||||
{{ messages[0] }}<br> Go to <a href="{{ url_for('auth.login') }}">login page</a>.
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<form method="POST" action="/signup">
|
||||
<!--
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input class="input is-large" type="email" name="email" placeholder="Email" autofocus="">
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input class="input is-large" type="text" name="name" placeholder="Name" autofocus="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input class="input is-large" type="password" name="password" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="button is-block is-info is-large is-fullwidth">Sign Up</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Bulma Template</title>
|
||||
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma-floating-button.min.css') }}" />
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma-divider.css') }}" />
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma.min.css') }}" />
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma-collapsible.min.css') }}" />
|
||||
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/main.css') }}" />
|
||||
<!-- <link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/style.css') }}" />-->
|
||||
|
||||
<script src="{{url_for('static', filename='js/modal.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='js/bulma-collapsible.min.js')}}"></script>
|
||||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
|
||||
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<section class="hero" style="background-color:#DE926F;">
|
||||
|
||||
<div class="hero-head">
|
||||
<nav class="navbar">
|
||||
<div class="navbar-brand">
|
||||
<a class="navbar-item">
|
||||
</a>
|
||||
<div class="navbar-burger burger" data-target="navbarMenuHeroA">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="navbarMenuHeroA" class="navbar-menu" >
|
||||
<div class="navbar-end">
|
||||
<a href="{{ url_for('main.index') }}" class="navbar-item">
|
||||
Home
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</section>
|
||||
<section class="hero is-fullheight" style="background-color:#DAD7D7;">
|
||||
{% block content %}{% endblock %}
|
||||
</section>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>PUM</title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap">
|
||||
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma-floating-button.min.css') }}" />
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma-divider.css') }}" />
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma.min.css') }}" />
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/bulma/0.9.4/bulma-collapsible.min.css') }}" />
|
||||
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/css/main.css') }}" />
|
||||
<link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles/style.css') }}" />
|
||||
|
||||
{# <link rel="icon" type="image/png" sizes="32x32" href="https://cdn.icon-icons.com/icons2/1465/PNG/512/095pileofpoo_100556.png" />#}
|
||||
{# <link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static',filename='images/shuffle-for-bulma.png') }}" />#}
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static',filename='images/sqyflix_logo.png') }}" />
|
||||
|
||||
<script src="{{url_for('static', filename='scripts/js/shuffle/js/main.js')}}"></script>
|
||||
|
||||
<script src="{{url_for('static', filename='scripts/js/ui/modal.js')}}"></script>
|
||||
<script type="text/javascript" src="{{url_for('static', filename='scripts/js/ui/pum.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='scripts/js/bulma/bulma-collapsible.min.js')}}"></script>
|
||||
|
||||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
|
||||
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
|
||||
{% include 'html_templates.html' %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<section class="hero has-background-main">
|
||||
<div class="hero-head">
|
||||
<nav class="navbar">
|
||||
<div class="navbar-brand">
|
||||
<a class="navbar-item">
|
||||
<img src="{{ url_for('static',filename='images/sqyflix_logo.png') }}" alt="pum_logo" width="auto">
|
||||
{# <img src="{{ url_for('static',filename='images/pum_logo.svg') }}" alt="pum_logo" width="auto">#}
|
||||
</a>
|
||||
<div class="navbar-burger navbar-burger-old burger" data-target="navbarMenuHeroA">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="navbarMenuHeroA" class="navbar-menu has-background-main" >
|
||||
<div class="navbar-end">
|
||||
{% if not current_user.is_authenticated %}
|
||||
<a href="{{ url_for('auth.signup') }}" class="navbar-item has-text-white">
|
||||
Sign Up
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if current_user.is_authenticated %}
|
||||
<a href="{{ url_for('auth.logout') }}" class="navbar-item has-text-white">
|
||||
Logout
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</section>
|
||||
<section class="hero is-fullheight" style="background-color:#DAD7D7;">
|
||||
{% block content %}{% endblock %}
|
||||
</section>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<div class="column is-10 is-offset-1">
|
||||
<div class="box">
|
||||
<h1 class="title">
|
||||
Bulma Template 02
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user