mirror of
https://github.com/Balshgit/public.git
synced 2025-12-19 03:20:41 +03:00
initial commit
This commit is contained in:
31
github-stars/server/apps/main/templates/base.html
Normal file
31
github-stars/server/apps/main/templates/base.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Celery Progress Demo</title>
|
||||
<meta name="Celery Progress Demo" content="" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% block demo %}{% endblock %}
|
||||
<!-- JQuery -->
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
|
||||
<!-- Celery Progress -->
|
||||
<script src="{% static 'celery_progress/celery_progress.js' %}"></script>
|
||||
|
||||
{% block progress_bar_js %}{% endblock progress_bar_js %}
|
||||
<div class="container text-center" style="padding-top: 20px;">
|
||||
{{ message }}
|
||||
{% for repo, stars in data.items %}
|
||||
<br>
|
||||
{{ repo }} {{ stars }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>Регистрация</h1>
|
||||
<form method="post" action="">
|
||||
{% csrf_token %}
|
||||
<dl class="register">
|
||||
{% for field in form %}
|
||||
<dt>{{ field.label_tag }}</dt>
|
||||
<dd class="clearfix">{{ field }}
|
||||
{% if field.help_text %}<div class="clearfix">{{ field.help_text }}</div>{% endif %}
|
||||
{% if field.errors %}<div class="myerrors clearfix">{{ field.errors }}</div>{% endif %}
|
||||
</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<input type="submit" value="Зарегистрироваться" class="clearfix">
|
||||
</form>
|
||||
{% endblock %}
|
||||
40
github-stars/server/apps/main/templates/download.html
Normal file
40
github-stars/server/apps/main/templates/download.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block demo %}
|
||||
<!-- Reset Form -->
|
||||
<div class="container text-center" style="padding-top: 20px;">
|
||||
<form action="{% url 'demo' %}" method="GET" style="display: inline;">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-primary" type="submit" style="width:120px; background-color:#23e841; color:black">
|
||||
<strong>REFRESH PAGE</strong>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Download Form -->
|
||||
<div class="container text-center" style="padding-top: 20px;">
|
||||
<form action="{% url 'demo' %}" method="post" style="display: inline;">
|
||||
{% csrf_token %}
|
||||
<dl class="register">
|
||||
{% for field in form %}
|
||||
<dt>{{ field.label_tag }}</dt>
|
||||
<dd class="clearfix">{{ field }}
|
||||
{% if field.help_text %}<div class="clearfix">{{ field.help_text }}</div>{% endif %}
|
||||
{% if field.errors %}<div class="myerrors clearfix">{{ field.errors }}</div>{% endif %}
|
||||
</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<button class="btn btn-primary" type="submit" style="width:120px; background-color:#23e841; color:black;">
|
||||
<strong>Get Github stars</strong>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Download Status -->
|
||||
<div class="container" style="padding-top: 20px;">
|
||||
<div class="card" style="height: 120px;">
|
||||
{% block progress %}{% endblock progress %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
25
github-stars/server/apps/main/templates/main/github.html
Normal file
25
github-stars/server/apps/main/templates/main/github.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
<h1>Github stars on repos</h1>
|
||||
<form method="post" action="">
|
||||
{% csrf_token %}
|
||||
<dl class="register">
|
||||
{% for field in form %}
|
||||
<dt>{{ field.label_tag }}</dt>
|
||||
<dd class="clearfix">{{ field }}
|
||||
{% if field.help_text %}<div class="clearfix">{{ field.help_text }}</div>{% endif %}
|
||||
{% if field.errors %}<div class="myerrors clearfix">{{ field.errors }}</div>{% endif %}
|
||||
</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<input type="submit" value="Подсчёт звёзд" class="clearfix">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Github results</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ message }}
|
||||
{% for repo, stars in data.items %}
|
||||
<br>
|
||||
{{ repo }} {{ stars }}
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
46
github-stars/server/apps/main/templates/main/index.html
Normal file
46
github-stars/server/apps/main/templates/main/index.html
Normal file
File diff suppressed because one or more lines are too long
26
github-stars/server/apps/main/templates/progress.html
Normal file
26
github-stars/server/apps/main/templates/progress.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "download.html" %}
|
||||
{% load static %}
|
||||
{% block progress %}
|
||||
<div class="text-center" style="font-size: 14px">
|
||||
<div id="progress-bar-message">
|
||||
Click the "Get Github stars" button
|
||||
</div>
|
||||
</div>
|
||||
<div class='progress-wrapper' style="padding-top: 10px;">
|
||||
<div id='progress-bar' class='progress-bar progress-bar-striped' role='progressbar' style="height:30px; width: 0%; border-radius: 5px"> </div>
|
||||
</div>
|
||||
{% endblock progress %}
|
||||
|
||||
{% block progress_bar_js %}
|
||||
{% if task_id %}
|
||||
<script type="text/javascript">
|
||||
// Progress Bar (JQuery)
|
||||
$(function () {
|
||||
var progressUrl = "{% url 'celery_progress:task_status' task_id %}";
|
||||
CeleryProgressBar.initProgressBar(progressUrl, {})
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock progress_bar_js %}
|
||||
|
||||
|
||||
14
github-stars/server/apps/main/templates/txt/humans.txt
Normal file
14
github-stars/server/apps/main/templates/txt/humans.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
# The humans responsible & technology colophon
|
||||
# http://humanstxt.org/
|
||||
|
||||
|
||||
## balsh
|
||||
|
||||
Team:
|
||||
|
||||
|
||||
## Technologies
|
||||
|
||||
Language: English
|
||||
Doctype: HTML5
|
||||
Technologies: Python, Django
|
||||
2
github-stars/server/apps/main/templates/txt/robots.txt
Normal file
2
github-stars/server/apps/main/templates/txt/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Reference in New Issue
Block a user