-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Registration completed, reg.html updated
- Loading branch information
Showing
21 changed files
with
310 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .user import User | ||
from .storys import Story | ||
from . import user | ||
from . import storys |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
|
||
<head> | ||
<title>stories.ua.kz.ru</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> | ||
<link rel="stylesheet" href="static/css/main2.css" /> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | ||
<script src="https://kit.fontawesome.com/f755b64f54.js" crossorigin="anonymous"></script> | ||
<!-- <noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript> --> | ||
</head> | ||
|
||
<body class="homepage is-preload"> | ||
<!-- NAVBAR --> | ||
<nav class="navbar navbar-light" id='navbar-nav'> | ||
<div class="navbar-in" id='navbar-in'>STO <a href="/"><img src="https://img.icons8.com/nolan/64/r.png"></a>IES.RU</div> | ||
</nav> | ||
{% block content %}{% endblock %} | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col"> | ||
<!-- Post header --> | ||
<div class="post-name"> | ||
<h3 class="post-category">"POST NAME"</h3> | ||
<div class="author-info"> | ||
|
||
<img src="static/img/mariklolik.jpg" alt="LOL" class='author-img'> | ||
<span id='name'>Author name</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div class="row"> | ||
<div class="col" id='#carousel'> | ||
<div id="carousel-example-1z" class="carousel slide carousel-fade" data-ride="carousel"> | ||
<!--/.Indicators--> | ||
<!--Slides--> | ||
<div class="carousel-inner" role="listbox"> | ||
<!--First slide--> | ||
<div class="carousel-item active" style="max-height: 100%"> | ||
<img class="d-block w-110" src="https://mdbootstrap.com/img/Photos/Slides/img%20(130).jpg" alt="First slide" style="height: 200px"> | ||
<div class="carousel-caption"> | ||
<a href='#' id='carousel-button'>Читать полностью</a> | ||
</div> | ||
</div> | ||
<!--/First slide--> | ||
<!--Second slide--> | ||
<div class="carousel-item" style="max-height: 100%"> | ||
<img class="d-block w-110" src="https://mdbootstrap.com/img/Photos/Slides/img%20(129).jpg" alt="Second slide" style="height: 200px"> | ||
</div> | ||
<!--/Second slide--> | ||
<!--Third slide--> | ||
<div class="carousel-item" style="max-height: 100%"> | ||
<img class="d-block w-110" src="https://mdbootstrap.com/img/Photos/Slides/img%20(70).jpg" alt="Third slide" style="height: 200px"> | ||
</div> | ||
<!--/Third slide--> | ||
</div> | ||
<!--/.Slides--> | ||
<!--Controls--> | ||
<a class="carousel-control-prev" href="#carousel-example-1z" role="button" data-slide="prev" id="but"> | ||
<span class="carousel-control-prev-icon" aria-hidden="true"></span> | ||
<span class="sr-only">Previous</span> | ||
</a> | ||
<a class="carousel-control-next" href="#carousel-example-1z" role="button" data-slide="next" id="but"> | ||
<span class="carousel-control-next-icon" aria-hidden="true"></span> | ||
<span class="sr-only">Next</span> | ||
</a> | ||
<!--/.Controls--> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> | ||
|
||
|
||
|
||
|
||
|
||
<!-- FOOTER --> | ||
<footer> | ||
<div class="container"> | ||
<div class="d-flex justify-content-around"> | ||
<div class="footer-left"> | ||
<a href="https://vk.com/m.kashirsky"><i class="fab fa-vk fa-5x"></i></a> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id enim voluptatibus culpa facere, eveniet qui libero atque, aliquam dignissimos velit, provident modi laudantium quae ipsa. Neque, inventore nobis explicabo optio.</p> | ||
</div> | ||
|
||
<div class="footer-center"> | ||
<i class="fab fa-discord fa-5x"></i> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id enim voluptatibus culpa facere, eveniet qui libero atque, aliquam dignissimos velit, provident modi laudantium quae ipsa. Neque, inventore nobis explicabo optio.</p> | ||
</div> | ||
|
||
<div class="footer-right"> | ||
<a href="https://vk.com/kiryabikeev"><i class="fab fa-vk fa-5x"></i></a> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id enim voluptatibus culpa facere, eveniet qui libero atque, aliquam dignissimos velit, provident modi laudantium quae ipsa. Neque, inventore nobis explicabo optio.</p> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
|
||
<!-- Scripts --> | ||
<script src="static/js/jquery.min.js"></script> | ||
<script src="static/js/main2.js"></script> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from flask import jsonify | ||
from flask_wtf import FlaskForm | ||
from wtforms import StringField, PasswordField, BooleanField, SubmitField | ||
from wtforms.validators import DataRequired, ValidationError, EqualTo | ||
from flask_login import LoginManager, login_user, logout_user, current_user | ||
from dbremote.db_session import create_session, global_init | ||
from dbremote.user import User, Author | ||
from main import app | ||
import flask | ||
from werkzeug.security import generate_password_hash | ||
|
||
global_init("db/data.sqlite") | ||
session = create_session() | ||
|
||
blueprint = flask.Blueprint('news_api', __name__, | ||
template_folder='templates') | ||
|
||
|
||
class CommentForm(FlaskForm): | ||
content = StringField("Content",validators=[DataRequired()]) | ||
|
||
@blueprint.route("/feed", methods=["GET","POST"]) | ||
def |
Oops, something went wrong.