Delete web-resources directory

pull/2/head
Who? 2024-09-10 20:45:17 +07:00 committed by GitHub
parent f153ef0b9d
commit 3c4b0e6b9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 0 additions and 244 deletions

View File

@ -1,25 +0,0 @@
<!--
©️ Dan Gazizullin, 2021-2023
This file is a part of Hikka Userbot
🌐 https://github.com/hikariatama/Hikka
You can redistribute it and/or modify it under the terms of the GNU AGPLv3
🔑 https://www.gnu.org/licenses/agpl-3.0.html
-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
<title>Hikka userbot</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<link rel="icon" href="https://github.com/hikariatama/assets/raw/master/cherry-blossom_1f338.png">
{% block head %}{% endblock %}
</head>
<body>
<div class="main_content">{% block content %}{% endblock %}</div>
{% block after %}{% endblock %}
</body>
</html>

View File

@ -1,214 +0,0 @@
<!--
©️ Dan Gazizullin, 2021-2023
This file is a part of Hikka Userbot
🌐 https://github.com/hikariatama/Hikka
You can redistribute it and/or modify it under the terms of the GNU AGPLv3
🔑 https://www.gnu.org/licenses/agpl-3.0.html
-->
{% extends "base.jinja2" %}
{% block head %}
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bodymovin/5.8.1/lottie.min.js"></script>
<script src="{{ static("sakura.min.js") }}"></script>
<script src="//unpkg.com/@dotlottie/player-component@1.0.0/dist/dotlottie-player.js"></script>
<script src="//unpkg.com/qr-code-styling@1.5.0/lib/qr-code-styling.js"></script>
<link href="{{ static("sakura.min.css") }}" rel="stylesheet">
<link href="https://css.gg/css?=arrow-right-r|add|brackets|chevron-right-o|smartphone" rel="stylesheet">
<link rel="stylesheet" href="{{ static("base.min.css") }}">
{% endblock %}
{% block content %}
{% endblock %}
{% block after %}
<div class="bg">
<div class="bg_inner"></div>
</div>
<div class="blur auth vert_center">
<div id="tg_icon"></div>
<div class="waiting_for_auth">Waiting for authentification...</div>
<div class="confirm_auth">Please, confirm action in <span style="color:#28a0dc">Telegram</span></div>
</div>
<div class="auth-code-form blur">
<div id="monkey"></div>
<div id="monkey-close"></div>
<span class="code-caption">Enter the code you recieved from Telegram</span>
<input type="text" class="code-input" autocomplete="off">
<div class="enter">Enter</div>
</div>
<div class="eula-form blur">
<div class="vert_center" style="height: 100%">
<div>
<div id="law"></div>
<br><br>
<span class="code-caption">You are <span style="color:#c54245">prohibited</span> from adding more than 1 account on the current platform by its EULA.</span>
</div>
</div>
</div>
<div class="wrapper">
<div class="blur main finish_block">
<div id="installation_icon"></div>
<div class="title">Hikka is installed</div>
<div class="description">
Hikka is installed. You can close this page now.
<br>
<b>It might take a while for installation to fully complete. Please, be patient.</b>
<br>
<span style="font-size: 24px;">Check <span style="color:#28a0dc">Telegram</span> for a message from your <b>inline
bot</b></span>
</div>
</div>
<div class="blur main installation">
<div class="title">
<div class="hikka_label">
<div class="label_inner">
<img src="{{ platform_emoji }}" class="moon">
&nbsp;Hikka
</div>
</div>
</div><br>
<div class="description">Incomprehensibly <span style="color:#c54245">the best</span> userbot<br><span
style="color: #18cc18; display: none" class="authorized">Authorized!</span></div>
<div class="center">
{% if not tg_done %}
<div class="button" id="get_started">
<div class="horiz_center">
<div class="vert_center">
Get started
</div>
<div class="vert_center">
<i class="gg-arrow-right-r"></i>
</div>
</div>
</div>
{% else %}
<div class="button" id="get_started">
<div class="horiz_center">
<div class="vert_center">
Add phone
</div>
<div class="vert_center">
<i class="gg-add"></i>
</div>
</div>
</div>
{% endif %}
{% if skip_creds and not lavhost %}
<div class="button" id="enter_api">
<div class="horiz_center">
<div class="vert_center">
Change API Creds
</div>
<div class="vert_center">
<i class="gg-brackets"></i>
</div>
</div>
</div>
{% endif %}
<span id="block_api_id">
<label class="api_id" for="api_id">Telegram API ID: </label>
<input class="api_id" id="api_id" placeholder="••••" style="width: 4em;">
</span>
<span id="block_api_hash">
<label class="api_hash" for="api_hash">Telegram API hash: </label>
<input class="api_hash" id="api_hash" placeholder="••••••••••••••••••••••••••••••••" style="width: 24em;">
</span>
<span id="block_phone">
<label class="phone" for="phone">Phone: </label>
<input class="phone" id="phone" placeholder="••••••••••••" style="width: 12em;">
</span>
<span id="block_custom_bot">
<label class="custom_bot" for="custom_bot">Inline bot username (E.g. @username_bot): </label>
<input class="custom_bot" id="custom_bot" placeholder="Leave empty to generate automatically"
style="width: 20em;" type="text">
</span>
<span id="block_qr_login">
<div class="qr_outer">
<div class="qr_inner">
<dotlottie-player
autoplay
loop
mode="normal"
src="https://static.hikari.gay/4T7FajtZbx.lottie"
style="width: 100px; height: 100px"
>
</dotlottie-player>
</div>
</div>
<div class="tg_guide">
<ol>
<li>
<span>Open Telegram on your phone</span>
</li>
<li>
<span>Go to <b>Settings</b> → <b>Devices</b> → <b>Link Desktop Device</b></span>
</li>
<li>
<span>Point your phone at this screen to confirm login</span>
</li>
</ol>
</div>
</span>
</div>
<div class="horiz_center">
<div id="continue_btn" class="button">
<div class="horiz_center">
<div class="vert_center">
Continue
</div>
<div class="vert_center">
<i class="gg-chevron-right-o"></i>
</div>
</div>
</div>
<div id="denyqr" class="button">
<div class="horiz_center">
<div class="vert_center">
Auth using phone instead
</div>
<div class="vert_center">
<i class="gg-smartphone"></i>
</div>
</div>
</div>
</div>
</div>
<div id="root">
</div>
</div>
<div class="lights">
<div class="light x1"></div>
<div class="light x2"></div>
<div class="light x3"></div>
<div class="light x4"></div>
<div class="light x5"></div>
<div class="light x6"></div>
<div class="light x7"></div>
<div class="light x8"></div>
<div class="light x9"></div>
</div>
<script>
var skip_creds = "{{ skip_creds }}" == "True";
var auth_required = true;
fetch("/check_session", {
method: "POST",
credentials: "include"
})
.then(response => response.text())
.then((response) => {
auth_required = response != "1";
})
</script>
<script src="{{ static("root.min.js") }}"></script>
{% endblock %}

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
@keyframes fall{0%{opacity:.9;top:0}100%{opacity:.2;top:100%}}@keyframes blow-soft-left{0%{margin-left:0}100%{margin-left:-50%}}@keyframes blow-medium-left{0%{margin-left:0}100%{margin-left:-100%}}@keyframes blow-soft-right{0%{margin-left:0}100%{margin-left:50%}}@keyframes blow-medium-right{0%{margin-left:0}100%{margin-left:100%}}@keyframes sway-0{0%{transform:rotate(-5deg)}40%{transform:rotate(28deg)}100%{transform:rotate(3deg)}}@keyframes sway-1{0%{transform:rotate(10deg)}40%{transform:rotate(43deg)}100%{transform:rotate(15deg)}}@keyframes sway-2{0%{transform:rotate(15deg)}40%{transform:rotate(56deg)}100%{transform:rotate(22deg)}}@keyframes sway-3{0%{transform:rotate(25deg)}40%{transform:rotate(74deg)}100%{transform:rotate(37deg)}}@keyframes sway-4{0%{transform:rotate(40deg)}40%{transform:rotate(68deg)}100%{transform:rotate(25deg)}}@keyframes sway-5{0%{transform:rotate(50deg)}40%{transform:rotate(78deg)}100%{transform:rotate(40deg)}}@keyframes sway-6{0%{transform:rotate(65deg)}40%{transform:rotate(92deg)}100%{transform:rotate(58deg)}}@keyframes sway-7{0%{transform:rotate(72deg)}40%{transform:rotate(118deg)}100%{transform:rotate(68deg)}}@keyframes sway-8{0%{transform:rotate(94deg)}40%{transform:rotate(136deg)}100%{transform:rotate(82deg)}}.sakura{pointer-events:none;position:absolute}

View File

@ -1,2 +0,0 @@
// https://raw.githubusercontent.com/jhammann/sakura/master/src/sakura.js
const Sakura=function(t,e){if(void 0===t)throw new Error("No selector present. Define an element.");this.el=document.querySelector(t);var i,n;function a(t){return t[Math.floor(Math.random()*t.length)]}function s(t,e){return Math.floor(Math.random()*(e-t+1))+t}this.settings=(i={className:"sakura",fallSpeed:1,maxSize:14,minSize:10,delay:300,colors:[{gradientColorStart:"rgba(255, 183, 197, 0.9)",gradientColorEnd:"rgba(255, 197, 208, 0.9)",gradientColorDegree:120}]},n=e,Object.keys(i).forEach(t=>{n&&Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=n[t])}),i),this.el.style.overflowX="hidden";const o=["webkit","moz","MS","o",""];function r(t,e,i){for(let n=0;n<o.length;n+=1){let a=e;o[n]||(a=e.toLowerCase()),t.addEventListener(o[n]+a,i,!1)}}function l(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}this.createPetal=(()=>{this.el.dataset.sakuraAnimId&&setTimeout(()=>{window.requestAnimationFrame(this.createPetal)},this.settings.delay);const t=["sway-0","sway-1","sway-2","sway-3","sway-4","sway-5","sway-6","sway-7","sway-8"],e=a(["blow-soft-left","blow-medium-left","blow-soft-right","blow-medium-right"]),i=a(t),n=(.007*document.documentElement.clientHeight+Math.round(5*Math.random()))*this.settings.fallSpeed,o=[`fall ${n}s linear 0s 1`,`${e} ${(n>30?n:30)-20+s(0,20)}s linear 0s infinite`,`${i} ${s(2,4)}s linear 0s infinite`].join(", "),d=document.createElement("div");d.classList.add(this.settings.className);const m=s(this.settings.minSize,this.settings.maxSize),h=m-Math.floor(s(0,this.settings.minSize)/3),c=a(this.settings.colors);d.style.background=`linear-gradient(${c.gradientColorDegree}deg, ${c.gradientColorStart}, ${c.gradientColorEnd})`,d.style.webkitAnimation=o,d.style.animation=o,d.style.borderRadius=`${s(this.settings.maxSize,this.settings.maxSize+Math.floor(10*Math.random()))}px ${s(1,Math.floor(h/4))}px`,d.style.height=`${m}px`,d.style.left=`${Math.random()*document.documentElement.clientWidth-100}px`,d.style.marginTop=`${-(Math.floor(20*Math.random())+15)}px`,d.style.width=`${h}px`,r(d,"AnimationEnd",()=>{l(d)||d.remove()}),r(d,"AnimationIteration",()=>{l(d)||d.remove()}),this.el.appendChild(d)}),this.el.setAttribute("data-sakura-anim-id",window.requestAnimationFrame(this.createPetal))};Sakura.prototype.start=function(){if(this.el.dataset.sakuraAnimId)throw new Error("Sakura is already running.");this.el.setAttribute("data-sakura-anim-id",window.requestAnimationFrame(this.createPetal))},Sakura.prototype.stop=function(t=!1){const e=this.el.dataset.sakuraAnimId;e&&(window.cancelAnimationFrame(e),this.el.setAttribute("data-sakura-anim-id","")),t||setTimeout(()=>{const t=document.getElementsByClassName(this.settings.className);for(;t.length>0;)t[0].parentNode.removeChild(t[0])},this.settings.delay+50)};