mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 01:00:31 +03:00
Release
This commit is contained in:
2
views/account.ejs
Normal file
2
views/account.ejs
Normal file
@@ -0,0 +1,2 @@
|
||||
<p>Username: <%= user.username %></p>
|
||||
<p>Name: <%= user.name %></p>
|
27
views/dialog.ejs
Normal file
27
views/dialog.ejs
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>login</title>
|
||||
<link rel="stylesheet" type="text/css" href="/style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="slick-login">
|
||||
<h1>
|
||||
<p><%= user.name %>,</p>
|
||||
<p><b><%= client.name %></b> запрашивает доступ к контроллеру.</p>
|
||||
<p>Разрешить?</p>
|
||||
</h1>
|
||||
|
||||
<form action="/dialog/authorize/decision" method="post">
|
||||
<input name="transaction_id" type="hidden" value="<%= transactionId %>" />
|
||||
<div>
|
||||
<input type="submit" value="Разрешить" id="allow" />
|
||||
<input type="submit" value="Запретить" name="cancel" id="deny" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
9
views/layout.ejs
Normal file
9
views/layout.ejs
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>OK</title>
|
||||
</head>
|
||||
<body>
|
||||
<%- body %>
|
||||
</body>
|
||||
</html>
|
14
views/login.ejs
Normal file
14
views/login.ejs
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>login</title>
|
||||
<link rel="stylesheet" type="text/css" href="/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="slick-login" action="/login" method="post">
|
||||
<label for="username">Логин:</label><input type="text" name="username" class="placeholder" placeholder="Логин">
|
||||
<label for="password">Пароль:</label><input type="password" name="password" class="placeholder" placeholder="Пароль">
|
||||
<input type="submit" value="ВОЙТИ">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
302
views/style.css
Normal file
302
views/style.css
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
CSS RESET
|
||||
http://meyerweb.com/eric/tools/css/reset/
|
||||
v2.0 | 20110126
|
||||
License: none (public domain)
|
||||
*/
|
||||
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
ol,ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
blockquote,q {
|
||||
quotes: none;
|
||||
}
|
||||
|
||||
blockquote:before,blockquote:after,q:before,q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
/* CSS Animations */
|
||||
@keyframes "login" {
|
||||
0% {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
margin-top: -50px;
|
||||
}
|
||||
100% {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
margin-top: -75px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@-moz-keyframes login {
|
||||
0% {
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
margin-top: -50px;
|
||||
}
|
||||
100% {
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
margin-top: -75px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@-webkit-keyframes "login" {
|
||||
0% {
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
margin-top: -50px;
|
||||
}
|
||||
100% {
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
margin-top: -75px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@-ms-keyframes "login" {
|
||||
0% {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
margin-top: -50px;
|
||||
}
|
||||
100% {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
margin-top: -75px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@-o-keyframes "login" {
|
||||
0% {
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
margin-top: -50px;
|
||||
}
|
||||
100% {
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
margin-top: -75px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Main CSS */
|
||||
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
background-color: #323B55;
|
||||
}
|
||||
|
||||
#slick-login {
|
||||
width: 220px;
|
||||
height: 155px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -110px;
|
||||
margin-top: -75px;
|
||||
|
||||
-webkit-animation: login 1s ease-in-out;
|
||||
-moz-animation: login 1s ease-in-out;
|
||||
-ms-animation: login 1s ease-in-out;
|
||||
-o-animation: login 1s ease-in-out;
|
||||
animation: login 1s ease-in-out;
|
||||
}
|
||||
|
||||
#slick-login label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
#slick-login h1 {
|
||||
background-color: #292829;
|
||||
border-radius: 5px 5px 0px 0px;
|
||||
-moz-border-radius: 5px 5px 0px 0px;
|
||||
-webkit-border-radius: 5px 5px 0px 0px;
|
||||
color: #fff;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
#slick-login input[type="text"],#slick-login input[type="password"] {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
positon: relative;
|
||||
margin-top: 7px;
|
||||
font-size: 14px;
|
||||
color: #444;
|
||||
outline: none;
|
||||
border: 1px solid rgba(0, 0, 0, .49);
|
||||
|
||||
padding-left: 20px;
|
||||
|
||||
-webkit-background-clip: padding-box;
|
||||
-moz-background-clip: padding-box;
|
||||
background-clip: padding-box;
|
||||
border-radius: 6px;
|
||||
|
||||
background-image: -webkit-linear-gradient(bottom, #FFFFFF 0%, #F2F2F2 100%);
|
||||
background-image: -moz-linear-gradient(bottom, #FFFFFF 0%, #F2F2F2 100%);
|
||||
background-image: -o-linear-gradient(bottom, #FFFFFF 0%, #F2F2F2 100%);
|
||||
background-image: -ms-linear-gradient(bottom, #FFFFFF 0%, #F2F2F2 100%);
|
||||
background-image: linear-gradient(bottom, #FFFFFF 0%, #F2F2F2 100%);
|
||||
|
||||
-webkit-box-shadow: inset 0px 2px 0px #d9d9d9;
|
||||
box-shadow: inset 0px 2px 0px #d9d9d9;
|
||||
|
||||
-webkit-transition: all .1s ease-in-out;
|
||||
-moz-transition: all .1s ease-in-out;
|
||||
-o-transition: all .1s ease-in-out;
|
||||
-ms-transition: all .1s ease-in-out;
|
||||
transition: all .1s ease-in-out;
|
||||
}
|
||||
|
||||
#slick-login input[type="text"]:focus,#slick-login input[type="password"]:focus {
|
||||
-webkit-box-shadow: inset 0px 2px 0px #a7a7a7;
|
||||
box-shadow: inset 0px 2px 0px #a7a7a7;
|
||||
}
|
||||
|
||||
#slick-login input:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
#slick-login input[type="submit"] {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
margin-top: 7px;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
text-shadow: 0px -1px 0px #5b6ddc;
|
||||
outline: none;
|
||||
border: 1px solid rgba(0, 0, 0, .49);
|
||||
|
||||
-webkit-background-clip: padding-box;
|
||||
-moz-background-clip: padding-box;
|
||||
background-clip: padding-box;
|
||||
border-radius: 6px;
|
||||
|
||||
background-color: #5466da;
|
||||
background-image: -webkit-linear-gradient(bottom, #5466da 0%, #768ee4 100%);
|
||||
background-image: -moz-linear-gradient(bottom, #5466da 0%, #768ee4 100%);
|
||||
background-image: -o-linear-gradient(bottom, #5466da 0%, #768ee4 100%);
|
||||
background-image: -ms-linear-gradient(bottom, #5466da 0%, #768ee4 100%);
|
||||
background-image: linear-gradient(bottom, #5466da 0%, #768ee4 100%);
|
||||
|
||||
-webkit-box-shadow: inset 0px 1px 0px #9ab1ec;
|
||||
box-shadow: inset 0px 1px 0px #9ab1ec;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
-webkit-transition: all .1s ease-in-out;
|
||||
-moz-transition: all .1s ease-in-out;
|
||||
-o-transition: all .1s ease-in-out;
|
||||
-ms-transition: all .1s ease-in-out;
|
||||
transition: all .1s ease-in-out;
|
||||
}
|
||||
|
||||
#slick-login input[type="submit"]:hover {
|
||||
background-color: #5f73e9;
|
||||
background-image: -webkit-linear-gradient(bottom, #5f73e9 0%, #859bef 100%);
|
||||
background-image: -moz-linear-gradient(bottom, #5f73e9 0%, #859bef 100%);
|
||||
background-image: -o-linear-gradient(bottom, #5f73e9 0%, #859bef 100%);
|
||||
background-image: -ms-linear-gradient(bottom, #5f73e9 0%, #859bef 100%);
|
||||
background-image: linear-gradient(bottom, #5f73e9 0%, #859bef 100%);
|
||||
|
||||
-webkit-box-shadow: inset 0px 1px 0px #aab9f4;
|
||||
box-shadow: inset 0px 1px 0px #aab9f4;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#slick-login input[type="submit"]:active {
|
||||
background-color: #7588e1;
|
||||
background-image: -webkit-linear-gradient(bottom, #7588e1 0%, #7184df 100%);
|
||||
background-image: -moz-linear-gradient(bottom, #7588e1 0%, #7184df 100%);
|
||||
background-image: -o-linear-gradient(bottom, #7588e1 0%, #7184df 100%);
|
||||
background-image: -ms-linear-gradient(bottom, #7588e1 0%, #7184df 100%);
|
||||
background-image: linear-gradient(bottom, #7588e1 0%, #7184df 100%);
|
||||
|
||||
-webkit-box-shadow: inset 0px 1px 0px #93a9e9;
|
||||
box-shadow: inset 0px 1px 0px #93a9e9;
|
||||
}
|
||||
|
||||
/* Noeee aa?a vladmaxi, ii?ii oaaeeou */
|
||||
.vladmaxi-top{
|
||||
line-height: 24px;
|
||||
font-size: 11px;
|
||||
background: #eee;
|
||||
text-transform: uppercase;
|
||||
z-index: 9999;
|
||||
position: fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
font-family: calibri;
|
||||
font-size: 13px;
|
||||
box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
|
||||
-webkit-animation: slideOut 0.5s ease-in-out 0.3s backwards;
|
||||
}
|
||||
@-webkit-keyframes slideOut{
|
||||
0%{top:-30px; opacity: 0;}
|
||||
100%{top:0px; opacity: 1;}
|
||||
}
|
||||
|
||||
.vladmaxi-top a{
|
||||
padding: 0px 10px;
|
||||
letter-spacing: 1px;
|
||||
color: #333;
|
||||
text-shadow: 0px 1px 1px #fff;
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
.vladmaxi-top a:hover{
|
||||
background: #fff;
|
||||
}
|
||||
.vladmaxi-top span.right{
|
||||
float: right;
|
||||
}
|
||||
.vladmaxi-top span.right a{
|
||||
float: left;
|
||||
display: block;
|
||||
}
|
Reference in New Issue
Block a user