mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-11 04:09:01 -06:00
added hidden
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ key
|
|||||||
/key
|
/key
|
||||||
/migrations/*
|
/migrations/*
|
||||||
/venv/*
|
/venv/*
|
||||||
|
/app/hidden.py
|
||||||
BIN
__pycache__/config.cpython-36.pyc
Normal file
BIN
__pycache__/config.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/wsgi.cpython-36.pyc
Normal file
BIN
__pycache__/wsgi.cpython-36.pyc
Normal file
Binary file not shown.
@@ -15,4 +15,4 @@ login.login_view = 'login'
|
|||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
migrate = Migrate(app, db)
|
migrate = Migrate(app, db)
|
||||||
|
|
||||||
from app import routes, models
|
from app import routes, models, hidden
|
||||||
BIN
app/__pycache__/__init__.cpython-36.pyc
Normal file
BIN
app/__pycache__/__init__.cpython-36.pyc
Normal file
Binary file not shown.
BIN
app/__pycache__/forms.cpython-36.pyc
Normal file
BIN
app/__pycache__/forms.cpython-36.pyc
Normal file
Binary file not shown.
BIN
app/__pycache__/hidden.cpython-36.pyc
Normal file
BIN
app/__pycache__/hidden.cpython-36.pyc
Normal file
Binary file not shown.
BIN
app/__pycache__/models.cpython-36.pyc
Normal file
BIN
app/__pycache__/models.cpython-36.pyc
Normal file
Binary file not shown.
BIN
app/__pycache__/routes.cpython-36.pyc
Normal file
BIN
app/__pycache__/routes.cpython-36.pyc
Normal file
Binary file not shown.
@@ -1,6 +1,7 @@
|
|||||||
from app import app
|
from app import app
|
||||||
from app.models import User
|
from app.models import User
|
||||||
from app.forms import LoginForm
|
from app.forms import LoginForm
|
||||||
|
from app.hidden import trap
|
||||||
from werkzeug.urls import url_parse
|
from werkzeug.urls import url_parse
|
||||||
from flask import render_template, redirect, url_for, flash, request, jsonify
|
from flask import render_template, redirect, url_for, flash, request, jsonify
|
||||||
from flask_login import current_user, login_user, logout_user, login_required
|
from flask_login import current_user, login_user, logout_user, login_required
|
||||||
@@ -14,7 +15,6 @@ fake = faker.Faker()
|
|||||||
def strgen(length): return ''.join(
|
def strgen(length): return ''.join(
|
||||||
random.choices(list(string.ascii_letters), k=length))
|
random.choices(list(string.ascii_letters), k=length))
|
||||||
|
|
||||||
|
|
||||||
@app.route('/dashboard')
|
@app.route('/dashboard')
|
||||||
def dashboard():
|
def dashboard():
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
33
app/templates/hidden.html
Normal file
33
app/templates/hidden.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
{% block body %}
|
||||||
|
<section class="section section-padding">
|
||||||
|
<div class="container">
|
||||||
|
<div class="columns is-mobile is-multiline is-centered">
|
||||||
|
{% for image in data %}
|
||||||
|
<!-- Card Content -->
|
||||||
|
<div class="column is-5">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
<div class="card-header-title">
|
||||||
|
Bruh Moment
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-image">
|
||||||
|
<figure class="image">
|
||||||
|
<img src="{{ image.url }}" alt="">
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
<div class="card-content">
|
||||||
|
<div class="content word-break">
|
||||||
|
{{ image.tags }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Card End -->
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<!-- Card Column Content -->
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{% endblock body %}
|
||||||
Reference in New Issue
Block a user