Simples IP Desenvolvimento
2 years ago
commit
653102fa40
70 changed files with 58218 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||||
|
FROM php:7.4-fpm |
||||||
|
RUN apt-get update && apt-get install -y \ |
||||||
|
libfreetype6-dev \ |
||||||
|
libjpeg62-turbo-dev \ |
||||||
|
libpng-dev \ |
||||||
|
git vim \ |
||||||
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ |
||||||
|
&& docker-php-ext-install -j$(nproc) gd |
||||||
|
|
||||||
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
||||||
|
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" |
||||||
|
RUN php composer-setup.php |
||||||
|
RUN php composer-setup.php --filename=composer --install-dir=/bin |
||||||
|
|
||||||
|
WORKDIR /var/www/html |
||||||
|
|
||||||
|
RUN git clone -b develop http://desenvolvimento:SimpleS_G1t34@192.168.115.233:3000/awade/simples-auth.git |
||||||
|
|
||||||
|
WORKDIR /var/www/html/simples-auth |
||||||
|
|
||||||
|
RUN php /bin/composer install |
||||||
|
|
||||||
|
EXPOSE 80 |
||||||
|
|
||||||
|
ENTRYPOINT [ "php" ] |
||||||
|
|
||||||
|
CMD ["-S", "0.0.0.0:80", "-t", "/var/www/html/simples-auth"] |
||||||
|
|
||||||
|
# docker image build -t simples-auth . |
||||||
|
# docker run -d --name simples-auth -p 8002:80 simples-auth |
@ -0,0 +1,78 @@ |
|||||||
|
<?php |
||||||
|
namespace app\Provider; |
||||||
|
|
||||||
|
/** |
||||||
|
* Description of Cripto |
||||||
|
* |
||||||
|
* @author Lucas Awade |
||||||
|
*/ |
||||||
|
class Crypt { |
||||||
|
|
||||||
|
private $message; |
||||||
|
private $key; |
||||||
|
private $option; |
||||||
|
private $tag; |
||||||
|
private $cipher; |
||||||
|
private $ivlen; |
||||||
|
private $iv; |
||||||
|
private $textcrypt; |
||||||
|
|
||||||
|
const CONF_CIPHER_CRYPT = 'aes-256-cbc'; |
||||||
|
|
||||||
|
function __construct($cipher = null, $key = null, $option = OPENSSL_RAW_DATA, $tag = null) { |
||||||
|
if (!$cipher) { |
||||||
|
$this->cipher = self::CONF_CIPHER_CRYPT; |
||||||
|
} else { |
||||||
|
$this->cipher = $cipher; |
||||||
|
} |
||||||
|
$this->key = $key; |
||||||
|
$this->option = $option; |
||||||
|
$this->tag = $tag; |
||||||
|
$this->openssl_crypt(); |
||||||
|
} |
||||||
|
|
||||||
|
public function encrypt($message = null) { |
||||||
|
$this->setMessage($message); |
||||||
|
$encrypt = openssl_encrypt($this->message, $this->cipher, $this->key, $this->option, $this->iv); |
||||||
|
$hashcode = hash_hmac('sha256', $encrypt, $this->key, true); |
||||||
|
$this->textcrypt = base64_encode($this->iv . $hashcode . $encrypt); |
||||||
|
return $this->textcrypt; |
||||||
|
} |
||||||
|
|
||||||
|
public function decrypt($textcrypt = null) { |
||||||
|
$c = base64_decode($textcrypt); |
||||||
|
$this->iv = substr($c, 0, $this->ivlen); |
||||||
|
$hmac = substr($c, $this->ivlen, 32); |
||||||
|
$ciphertext_raw = substr($c, $this->ivlen + 32); |
||||||
|
$original_plaintext = openssl_decrypt($ciphertext_raw, $this->cipher, $this->key, $options = OPENSSL_RAW_DATA, $this->iv); |
||||||
|
$calcmac = hash_hmac('sha256', $ciphertext_raw, $this->key, true); |
||||||
|
if (hash_equals($hmac, $calcmac)) { |
||||||
|
return $original_plaintext; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private function openssl_crypt() { |
||||||
|
if (in_array(strtolower($this->cipher), openssl_get_cipher_methods())) { |
||||||
|
$this->ivlen = openssl_cipher_iv_length($this->cipher); |
||||||
|
$this->iv = openssl_random_pseudo_bytes($this->ivlen); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public function setKey($key) { |
||||||
|
$this->key = $key; |
||||||
|
} |
||||||
|
|
||||||
|
public function setOption($option) { |
||||||
|
$this->option = $option; |
||||||
|
} |
||||||
|
|
||||||
|
public function setTag($tag) { |
||||||
|
$this->tag = $tag; |
||||||
|
} |
||||||
|
|
||||||
|
public function setMessage($message) { |
||||||
|
$this->message = $message; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,45 @@ |
|||||||
|
<body class="d-flex h-100 text-center text-bg-dark"> |
||||||
|
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column"> |
||||||
|
<header class="mb-auto"> |
||||||
|
<div> |
||||||
|
<h3 class="float-md-start mb-0"><img src="public/images/image4537.png"></h3> |
||||||
|
</div> |
||||||
|
</header> |
||||||
|
<main class="px-3"> |
||||||
|
<h1><?= CONF_PROJECT_NAME ?> Web</h1>
|
||||||
|
<p class="lead">Use o seu QR Code do seu aplicativo para se conectar em seu navegador!</p> |
||||||
|
<div class="row featurette py-5"> |
||||||
|
<div class="col-md-3"></div> |
||||||
|
<div class="col-md-3"> |
||||||
|
<h1 class="featurette-heading fw-normal lh-1">TUDO FICA MAIS SIMPLES.</h1> |
||||||
|
<p class="lead">Agora tem mais agilidade e mobilidade</p> |
||||||
|
<h2 class="featurette-heading fw-normal lh-1 py-3">PARA VOCÊ E SEU CLIENTE!</h2> |
||||||
|
<h1 class="featurette-heading fw-normal lh-1 py-5">Vamos começar?</h1> |
||||||
|
</div> |
||||||
|
<div class="col-md-2"> |
||||||
|
<div id="qrcode" class="p-2 bg-light border"></div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<p class="lead py-5"> |
||||||
|
<a href="https://play.google.com/store/apps/details?id=br.com.simplesip.simples_chat"><img src="public/images/google-play.png" width="150px"></a> |
||||||
|
<a href="https://play.google.com/store/apps/details?id=br.com.simplesip.simples_chat"><img src="public/images/app-store.png" width="195px"></a> |
||||||
|
</p> |
||||||
|
</main> |
||||||
|
<footer class="mt-auto text-white-50"> |
||||||
|
<p>Todos os direitos reservados a <a href="https://simplesip.net.br" class="text-white">Simples IP</a>. © Copyright <?= date('Y') ?></p>
|
||||||
|
</footer> |
||||||
|
</div> |
||||||
|
|
||||||
|
<?php |
||||||
|
foreach ($localStorage as $key => $jquery) { |
||||||
|
echo "<script type='text/javascript' id='$key'>{$jquery}</script>"; |
||||||
|
} |
||||||
|
|
||||||
|
foreach ($localStorage as $key => $jquery) { |
||||||
|
echo sprintf("<script id='cfglocal'>localStorage.setItem('_cfglocal', %s)</script>", count($localStorage)); |
||||||
|
} |
||||||
|
?> |
||||||
|
<script src="../../public/js/jquery-3.6.0.min.js"></script> |
||||||
|
<script src="../../public/js/qrcode.min.js"></script> |
||||||
|
<script src="../../public/js/util.js"></script> |
||||||
|
</body> |
@ -0,0 +1,16 @@ |
|||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||||
|
<meta name="description" content=""> |
||||||
|
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> |
||||||
|
<meta name="generator" content="Hugo 0.101.0"> |
||||||
|
<title><?= CONF_PROJECT_NAME ?> - Web</title>
|
||||||
|
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/cover/"> |
||||||
|
<link href="../../public/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"> |
||||||
|
|
||||||
|
<!-- Favicons --> |
||||||
|
<link rel="apple-touch-icon" href="../../public/images/favicon.ico" sizes="180x180"> |
||||||
|
<link rel="icon" href="../../public/images/favicon.ico" sizes="32x32" type="image/png"> |
||||||
|
<link rel="icon" href="../../public/images/favicon.ico" sizes="16x16" type="image/png"> |
||||||
|
<link rel="icon" href="../../public/images/favicon.ico"> |
||||||
|
</head> |
@ -0,0 +1,13 @@ |
|||||||
|
{ |
||||||
|
"name": "simplesip/authsimpleschat", |
||||||
|
"description": "Projeto Auth SimplesChat", |
||||||
|
"authors": [{ |
||||||
|
"name": "Simples IP Desenvolvimento", |
||||||
|
"email": "desenvolvimento@gmail.com" |
||||||
|
}], |
||||||
|
"autoload": { |
||||||
|
"psr-4": { |
||||||
|
"app\\": "app/" |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
{ |
||||||
|
"_readme": [ |
||||||
|
"This file locks the dependencies of your project to a known state", |
||||||
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", |
||||||
|
"This file is @generated automatically" |
||||||
|
], |
||||||
|
"content-hash": "e1ba98d4e4ff6fe89e8bcdb969c9d62d", |
||||||
|
"packages": [], |
||||||
|
"packages-dev": [], |
||||||
|
"aliases": [], |
||||||
|
"minimum-stability": "stable", |
||||||
|
"stability-flags": [], |
||||||
|
"prefer-stable": false, |
||||||
|
"prefer-lowest": false, |
||||||
|
"platform": [], |
||||||
|
"platform-dev": [], |
||||||
|
"plugin-api-version": "2.0.0" |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
require __DIR__ . "/../vendor/autoload.php"; |
||||||
|
|
||||||
|
define('CONF_PROJECT_NAME', 'Simples Chat'); |
||||||
|
|
||||||
|
define('CONF_CRYPT_PASSWORD', '#S1mpl3S_C0nn3ct@R00t'); |
@ -0,0 +1,17 @@ |
|||||||
|
<?php
|
||||||
|
|
||||||
|
include "config/core.php"; |
||||||
|
use app\Provider\Crypt; |
||||||
|
|
||||||
|
$jsStartup = []; |
||||||
|
$crypt = new Crypt('aes-256-cbc', CONF_CRYPT_PASSWORD); |
||||||
|
|
||||||
|
$localStorage[] = sprintf("localStorage.setItem('_token', '%s')", password_hash($crypt->encrypt() . time(), PASSWORD_DEFAULT)); |
||||||
|
|
||||||
|
?> |
||||||
|
<!DOCTYPE html> |
||||||
|
<html lang="pt-br" class="h-100"> |
||||||
|
<?php include "app/View/header.php"; ?> |
||||||
|
<?php include "app/View/content.php"; ?> |
||||||
|
|
||||||
|
</html> |
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,488 @@ |
|||||||
|
/*! |
||||||
|
* Bootstrap Reboot v5.2.0 (https://getbootstrap.com/) |
||||||
|
* Copyright 2011-2022 The Bootstrap Authors |
||||||
|
* Copyright 2011-2022 Twitter, Inc. |
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
||||||
|
*/ |
||||||
|
:root { |
||||||
|
--bs-blue: #0d6efd; |
||||||
|
--bs-indigo: #6610f2; |
||||||
|
--bs-purple: #6f42c1; |
||||||
|
--bs-pink: #d63384; |
||||||
|
--bs-red: #dc3545; |
||||||
|
--bs-orange: #fd7e14; |
||||||
|
--bs-yellow: #ffc107; |
||||||
|
--bs-green: #198754; |
||||||
|
--bs-teal: #20c997; |
||||||
|
--bs-cyan: #0dcaf0; |
||||||
|
--bs-black: #000; |
||||||
|
--bs-white: #fff; |
||||||
|
--bs-gray: #6c757d; |
||||||
|
--bs-gray-dark: #343a40; |
||||||
|
--bs-gray-100: #f8f9fa; |
||||||
|
--bs-gray-200: #e9ecef; |
||||||
|
--bs-gray-300: #dee2e6; |
||||||
|
--bs-gray-400: #ced4da; |
||||||
|
--bs-gray-500: #adb5bd; |
||||||
|
--bs-gray-600: #6c757d; |
||||||
|
--bs-gray-700: #495057; |
||||||
|
--bs-gray-800: #343a40; |
||||||
|
--bs-gray-900: #212529; |
||||||
|
--bs-primary: #0d6efd; |
||||||
|
--bs-secondary: #6c757d; |
||||||
|
--bs-success: #198754; |
||||||
|
--bs-info: #0dcaf0; |
||||||
|
--bs-warning: #ffc107; |
||||||
|
--bs-danger: #dc3545; |
||||||
|
--bs-light: #f8f9fa; |
||||||
|
--bs-dark: #212529; |
||||||
|
--bs-primary-rgb: 13, 110, 253; |
||||||
|
--bs-secondary-rgb: 108, 117, 125; |
||||||
|
--bs-success-rgb: 25, 135, 84; |
||||||
|
--bs-info-rgb: 13, 202, 240; |
||||||
|
--bs-warning-rgb: 255, 193, 7; |
||||||
|
--bs-danger-rgb: 220, 53, 69; |
||||||
|
--bs-light-rgb: 248, 249, 250; |
||||||
|
--bs-dark-rgb: 33, 37, 41; |
||||||
|
--bs-white-rgb: 255, 255, 255; |
||||||
|
--bs-black-rgb: 0, 0, 0; |
||||||
|
--bs-body-color-rgb: 33, 37, 41; |
||||||
|
--bs-body-bg-rgb: 255, 255, 255; |
||||||
|
--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; |
||||||
|
--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; |
||||||
|
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); |
||||||
|
--bs-body-font-family: var(--bs-font-sans-serif); |
||||||
|
--bs-body-font-size: 1rem; |
||||||
|
--bs-body-font-weight: 400; |
||||||
|
--bs-body-line-height: 1.5; |
||||||
|
--bs-body-color: #212529; |
||||||
|
--bs-body-bg: #fff; |
||||||
|
--bs-border-width: 1px; |
||||||
|
--bs-border-style: solid; |
||||||
|
--bs-border-color: #dee2e6; |
||||||
|
--bs-border-color-translucent: rgba(0, 0, 0, 0.175); |
||||||
|
--bs-border-radius: 0.375rem; |
||||||
|
--bs-border-radius-sm: 0.25rem; |
||||||
|
--bs-border-radius-lg: 0.5rem; |
||||||
|
--bs-border-radius-xl: 1rem; |
||||||
|
--bs-border-radius-2xl: 2rem; |
||||||
|
--bs-border-radius-pill: 50rem; |
||||||
|
--bs-link-color: #0d6efd; |
||||||
|
--bs-link-hover-color: #0a58ca; |
||||||
|
--bs-code-color: #d63384; |
||||||
|
--bs-highlight-bg: #fff3cd; |
||||||
|
} |
||||||
|
|
||||||
|
*, |
||||||
|
*::before, |
||||||
|
*::after { |
||||||
|
box-sizing: border-box; |
||||||
|
} |
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) { |
||||||
|
:root { |
||||||
|
scroll-behavior: smooth; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
body { |
||||||
|
margin: 0; |
||||||
|
font-family: var(--bs-body-font-family); |
||||||
|
font-size: var(--bs-body-font-size); |
||||||
|
font-weight: var(--bs-body-font-weight); |
||||||
|
line-height: var(--bs-body-line-height); |
||||||
|
color: var(--bs-body-color); |
||||||
|
text-align: var(--bs-body-text-align); |
||||||
|
background-color: var(--bs-body-bg); |
||||||
|
-webkit-text-size-adjust: 100%; |
||||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
||||||
|
} |
||||||
|
|
||||||
|
hr { |
||||||
|
margin: 1rem 0; |
||||||
|
color: inherit; |
||||||
|
border: 0; |
||||||
|
border-top: 1px solid; |
||||||
|
opacity: 0.25; |
||||||
|
} |
||||||
|
|
||||||
|
h6, h5, h4, h3, h2, h1 { |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 0.5rem; |
||||||
|
font-weight: 500; |
||||||
|
line-height: 1.2; |
||||||
|
} |
||||||
|
|
||||||
|
h1 { |
||||||
|
font-size: calc(1.375rem + 1.5vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h1 { |
||||||
|
font-size: 2.5rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h2 { |
||||||
|
font-size: calc(1.325rem + 0.9vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h2 { |
||||||
|
font-size: 2rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h3 { |
||||||
|
font-size: calc(1.3rem + 0.6vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h3 { |
||||||
|
font-size: 1.75rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h4 { |
||||||
|
font-size: calc(1.275rem + 0.3vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h4 { |
||||||
|
font-size: 1.5rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h5 { |
||||||
|
font-size: 1.25rem; |
||||||
|
} |
||||||
|
|
||||||
|
h6 { |
||||||
|
font-size: 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
p { |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
abbr[title] { |
||||||
|
-webkit-text-decoration: underline dotted; |
||||||
|
text-decoration: underline dotted; |
||||||
|
cursor: help; |
||||||
|
-webkit-text-decoration-skip-ink: none; |
||||||
|
text-decoration-skip-ink: none; |
||||||
|
} |
||||||
|
|
||||||
|
address { |
||||||
|
margin-bottom: 1rem; |
||||||
|
font-style: normal; |
||||||
|
line-height: inherit; |
||||||
|
} |
||||||
|
|
||||||
|
ol, |
||||||
|
ul { |
||||||
|
padding-left: 2rem; |
||||||
|
} |
||||||
|
|
||||||
|
ol, |
||||||
|
ul, |
||||||
|
dl { |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
ol ol, |
||||||
|
ul ul, |
||||||
|
ol ul, |
||||||
|
ul ol { |
||||||
|
margin-bottom: 0; |
||||||
|
} |
||||||
|
|
||||||
|
dt { |
||||||
|
font-weight: 700; |
||||||
|
} |
||||||
|
|
||||||
|
dd { |
||||||
|
margin-bottom: 0.5rem; |
||||||
|
margin-left: 0; |
||||||
|
} |
||||||
|
|
||||||
|
blockquote { |
||||||
|
margin: 0 0 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
b, |
||||||
|
strong { |
||||||
|
font-weight: bolder; |
||||||
|
} |
||||||
|
|
||||||
|
small { |
||||||
|
font-size: 0.875em; |
||||||
|
} |
||||||
|
|
||||||
|
mark { |
||||||
|
padding: 0.1875em; |
||||||
|
background-color: var(--bs-highlight-bg); |
||||||
|
} |
||||||
|
|
||||||
|
sub, |
||||||
|
sup { |
||||||
|
position: relative; |
||||||
|
font-size: 0.75em; |
||||||
|
line-height: 0; |
||||||
|
vertical-align: baseline; |
||||||
|
} |
||||||
|
|
||||||
|
sub { |
||||||
|
bottom: -0.25em; |
||||||
|
} |
||||||
|
|
||||||
|
sup { |
||||||
|
top: -0.5em; |
||||||
|
} |
||||||
|
|
||||||
|
a { |
||||||
|
color: var(--bs-link-color); |
||||||
|
text-decoration: underline; |
||||||
|
} |
||||||
|
a:hover { |
||||||
|
color: var(--bs-link-hover-color); |
||||||
|
} |
||||||
|
|
||||||
|
a:not([href]):not([class]), a:not([href]):not([class]):hover { |
||||||
|
color: inherit; |
||||||
|
text-decoration: none; |
||||||
|
} |
||||||
|
|
||||||
|
pre, |
||||||
|
code, |
||||||
|
kbd, |
||||||
|
samp { |
||||||
|
font-family: var(--bs-font-monospace); |
||||||
|
font-size: 1em; |
||||||
|
} |
||||||
|
|
||||||
|
pre { |
||||||
|
display: block; |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 1rem; |
||||||
|
overflow: auto; |
||||||
|
font-size: 0.875em; |
||||||
|
} |
||||||
|
pre code { |
||||||
|
font-size: inherit; |
||||||
|
color: inherit; |
||||||
|
word-break: normal; |
||||||
|
} |
||||||
|
|
||||||
|
code { |
||||||
|
font-size: 0.875em; |
||||||
|
color: var(--bs-code-color); |
||||||
|
word-wrap: break-word; |
||||||
|
} |
||||||
|
a > code { |
||||||
|
color: inherit; |
||||||
|
} |
||||||
|
|
||||||
|
kbd { |
||||||
|
padding: 0.1875rem 0.375rem; |
||||||
|
font-size: 0.875em; |
||||||
|
color: var(--bs-body-bg); |
||||||
|
background-color: var(--bs-body-color); |
||||||
|
border-radius: 0.25rem; |
||||||
|
} |
||||||
|
kbd kbd { |
||||||
|
padding: 0; |
||||||
|
font-size: 1em; |
||||||
|
} |
||||||
|
|
||||||
|
figure { |
||||||
|
margin: 0 0 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
img, |
||||||
|
svg { |
||||||
|
vertical-align: middle; |
||||||
|
} |
||||||
|
|
||||||
|
table { |
||||||
|
caption-side: bottom; |
||||||
|
border-collapse: collapse; |
||||||
|
} |
||||||
|
|
||||||
|
caption { |
||||||
|
padding-top: 0.5rem; |
||||||
|
padding-bottom: 0.5rem; |
||||||
|
color: #6c757d; |
||||||
|
text-align: left; |
||||||
|
} |
||||||
|
|
||||||
|
th { |
||||||
|
text-align: inherit; |
||||||
|
text-align: -webkit-match-parent; |
||||||
|
} |
||||||
|
|
||||||
|
thead, |
||||||
|
tbody, |
||||||
|
tfoot, |
||||||
|
tr, |
||||||
|
td, |
||||||
|
th { |
||||||
|
border-color: inherit; |
||||||
|
border-style: solid; |
||||||
|
border-width: 0; |
||||||
|
} |
||||||
|
|
||||||
|
label { |
||||||
|
display: inline-block; |
||||||
|
} |
||||||
|
|
||||||
|
button { |
||||||
|
border-radius: 0; |
||||||
|
} |
||||||
|
|
||||||
|
button:focus:not(:focus-visible) { |
||||||
|
outline: 0; |
||||||
|
} |
||||||
|
|
||||||
|
input, |
||||||
|
button, |
||||||
|
select, |
||||||
|
optgroup, |
||||||
|
textarea { |
||||||
|
margin: 0; |
||||||
|
font-family: inherit; |
||||||
|
font-size: inherit; |
||||||
|
line-height: inherit; |
||||||
|
} |
||||||
|
|
||||||
|
button, |
||||||
|
select { |
||||||
|
text-transform: none; |
||||||
|
} |
||||||
|
|
||||||
|
[role=button] { |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
select { |
||||||
|
word-wrap: normal; |
||||||
|
} |
||||||
|
select:disabled { |
||||||
|
opacity: 1; |
||||||
|
} |
||||||
|
|
||||||
|
[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator { |
||||||
|
display: none !important; |
||||||
|
} |
||||||
|
|
||||||
|
button, |
||||||
|
[type=button], |
||||||
|
[type=reset], |
||||||
|
[type=submit] { |
||||||
|
-webkit-appearance: button; |
||||||
|
} |
||||||
|
button:not(:disabled), |
||||||
|
[type=button]:not(:disabled), |
||||||
|
[type=reset]:not(:disabled), |
||||||
|
[type=submit]:not(:disabled) { |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
::-moz-focus-inner { |
||||||
|
padding: 0; |
||||||
|
border-style: none; |
||||||
|
} |
||||||
|
|
||||||
|
textarea { |
||||||
|
resize: vertical; |
||||||
|
} |
||||||
|
|
||||||
|
fieldset { |
||||||
|
min-width: 0; |
||||||
|
padding: 0; |
||||||
|
margin: 0; |
||||||
|
border: 0; |
||||||
|
} |
||||||
|
|
||||||
|
legend { |
||||||
|
float: left; |
||||||
|
width: 100%; |
||||||
|
padding: 0; |
||||||
|
margin-bottom: 0.5rem; |
||||||
|
font-size: calc(1.275rem + 0.3vw); |
||||||
|
line-height: inherit; |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
legend { |
||||||
|
font-size: 1.5rem; |
||||||
|
} |
||||||
|
} |
||||||
|
legend + * { |
||||||
|
clear: left; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-datetime-edit-fields-wrapper, |
||||||
|
::-webkit-datetime-edit-text, |
||||||
|
::-webkit-datetime-edit-minute, |
||||||
|
::-webkit-datetime-edit-hour-field, |
||||||
|
::-webkit-datetime-edit-day-field, |
||||||
|
::-webkit-datetime-edit-month-field, |
||||||
|
::-webkit-datetime-edit-year-field { |
||||||
|
padding: 0; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-inner-spin-button { |
||||||
|
height: auto; |
||||||
|
} |
||||||
|
|
||||||
|
[type=search] { |
||||||
|
outline-offset: -2px; |
||||||
|
-webkit-appearance: textfield; |
||||||
|
} |
||||||
|
|
||||||
|
/* rtl:raw: |
||||||
|
[type="tel"], |
||||||
|
[type="url"], |
||||||
|
[type="email"], |
||||||
|
[type="number"] { |
||||||
|
direction: ltr; |
||||||
|
} |
||||||
|
*/ |
||||||
|
::-webkit-search-decoration { |
||||||
|
-webkit-appearance: none; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-color-swatch-wrapper { |
||||||
|
padding: 0; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-file-upload-button { |
||||||
|
font: inherit; |
||||||
|
-webkit-appearance: button; |
||||||
|
} |
||||||
|
|
||||||
|
::file-selector-button { |
||||||
|
font: inherit; |
||||||
|
-webkit-appearance: button; |
||||||
|
} |
||||||
|
|
||||||
|
output { |
||||||
|
display: inline-block; |
||||||
|
} |
||||||
|
|
||||||
|
iframe { |
||||||
|
border: 0; |
||||||
|
} |
||||||
|
|
||||||
|
summary { |
||||||
|
display: list-item; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
progress { |
||||||
|
vertical-align: baseline; |
||||||
|
} |
||||||
|
|
||||||
|
[hidden] { |
||||||
|
display: none !important; |
||||||
|
} |
||||||
|
|
||||||
|
/*# sourceMappingURL=bootstrap-reboot.css.map */ |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,485 @@ |
|||||||
|
/*! |
||||||
|
* Bootstrap Reboot v5.2.0 (https://getbootstrap.com/) |
||||||
|
* Copyright 2011-2022 The Bootstrap Authors |
||||||
|
* Copyright 2011-2022 Twitter, Inc. |
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
||||||
|
*/ |
||||||
|
:root { |
||||||
|
--bs-blue: #0d6efd; |
||||||
|
--bs-indigo: #6610f2; |
||||||
|
--bs-purple: #6f42c1; |
||||||
|
--bs-pink: #d63384; |
||||||
|
--bs-red: #dc3545; |
||||||
|
--bs-orange: #fd7e14; |
||||||
|
--bs-yellow: #ffc107; |
||||||
|
--bs-green: #198754; |
||||||
|
--bs-teal: #20c997; |
||||||
|
--bs-cyan: #0dcaf0; |
||||||
|
--bs-black: #000; |
||||||
|
--bs-white: #fff; |
||||||
|
--bs-gray: #6c757d; |
||||||
|
--bs-gray-dark: #343a40; |
||||||
|
--bs-gray-100: #f8f9fa; |
||||||
|
--bs-gray-200: #e9ecef; |
||||||
|
--bs-gray-300: #dee2e6; |
||||||
|
--bs-gray-400: #ced4da; |
||||||
|
--bs-gray-500: #adb5bd; |
||||||
|
--bs-gray-600: #6c757d; |
||||||
|
--bs-gray-700: #495057; |
||||||
|
--bs-gray-800: #343a40; |
||||||
|
--bs-gray-900: #212529; |
||||||
|
--bs-primary: #0d6efd; |
||||||
|
--bs-secondary: #6c757d; |
||||||
|
--bs-success: #198754; |
||||||
|
--bs-info: #0dcaf0; |
||||||
|
--bs-warning: #ffc107; |
||||||
|
--bs-danger: #dc3545; |
||||||
|
--bs-light: #f8f9fa; |
||||||
|
--bs-dark: #212529; |
||||||
|
--bs-primary-rgb: 13, 110, 253; |
||||||
|
--bs-secondary-rgb: 108, 117, 125; |
||||||
|
--bs-success-rgb: 25, 135, 84; |
||||||
|
--bs-info-rgb: 13, 202, 240; |
||||||
|
--bs-warning-rgb: 255, 193, 7; |
||||||
|
--bs-danger-rgb: 220, 53, 69; |
||||||
|
--bs-light-rgb: 248, 249, 250; |
||||||
|
--bs-dark-rgb: 33, 37, 41; |
||||||
|
--bs-white-rgb: 255, 255, 255; |
||||||
|
--bs-black-rgb: 0, 0, 0; |
||||||
|
--bs-body-color-rgb: 33, 37, 41; |
||||||
|
--bs-body-bg-rgb: 255, 255, 255; |
||||||
|
--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; |
||||||
|
--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; |
||||||
|
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); |
||||||
|
--bs-body-font-family: var(--bs-font-sans-serif); |
||||||
|
--bs-body-font-size: 1rem; |
||||||
|
--bs-body-font-weight: 400; |
||||||
|
--bs-body-line-height: 1.5; |
||||||
|
--bs-body-color: #212529; |
||||||
|
--bs-body-bg: #fff; |
||||||
|
--bs-border-width: 1px; |
||||||
|
--bs-border-style: solid; |
||||||
|
--bs-border-color: #dee2e6; |
||||||
|
--bs-border-color-translucent: rgba(0, 0, 0, 0.175); |
||||||
|
--bs-border-radius: 0.375rem; |
||||||
|
--bs-border-radius-sm: 0.25rem; |
||||||
|
--bs-border-radius-lg: 0.5rem; |
||||||
|
--bs-border-radius-xl: 1rem; |
||||||
|
--bs-border-radius-2xl: 2rem; |
||||||
|
--bs-border-radius-pill: 50rem; |
||||||
|
--bs-link-color: #0d6efd; |
||||||
|
--bs-link-hover-color: #0a58ca; |
||||||
|
--bs-code-color: #d63384; |
||||||
|
--bs-highlight-bg: #fff3cd; |
||||||
|
} |
||||||
|
|
||||||
|
*, |
||||||
|
*::before, |
||||||
|
*::after { |
||||||
|
box-sizing: border-box; |
||||||
|
} |
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) { |
||||||
|
:root { |
||||||
|
scroll-behavior: smooth; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
body { |
||||||
|
margin: 0; |
||||||
|
font-family: var(--bs-body-font-family); |
||||||
|
font-size: var(--bs-body-font-size); |
||||||
|
font-weight: var(--bs-body-font-weight); |
||||||
|
line-height: var(--bs-body-line-height); |
||||||
|
color: var(--bs-body-color); |
||||||
|
text-align: var(--bs-body-text-align); |
||||||
|
background-color: var(--bs-body-bg); |
||||||
|
-webkit-text-size-adjust: 100%; |
||||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
||||||
|
} |
||||||
|
|
||||||
|
hr { |
||||||
|
margin: 1rem 0; |
||||||
|
color: inherit; |
||||||
|
border: 0; |
||||||
|
border-top: 1px solid; |
||||||
|
opacity: 0.25; |
||||||
|
} |
||||||
|
|
||||||
|
h6, h5, h4, h3, h2, h1 { |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 0.5rem; |
||||||
|
font-weight: 500; |
||||||
|
line-height: 1.2; |
||||||
|
} |
||||||
|
|
||||||
|
h1 { |
||||||
|
font-size: calc(1.375rem + 1.5vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h1 { |
||||||
|
font-size: 2.5rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h2 { |
||||||
|
font-size: calc(1.325rem + 0.9vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h2 { |
||||||
|
font-size: 2rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h3 { |
||||||
|
font-size: calc(1.3rem + 0.6vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h3 { |
||||||
|
font-size: 1.75rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h4 { |
||||||
|
font-size: calc(1.275rem + 0.3vw); |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
h4 { |
||||||
|
font-size: 1.5rem; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
h5 { |
||||||
|
font-size: 1.25rem; |
||||||
|
} |
||||||
|
|
||||||
|
h6 { |
||||||
|
font-size: 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
p { |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
abbr[title] { |
||||||
|
-webkit-text-decoration: underline dotted; |
||||||
|
text-decoration: underline dotted; |
||||||
|
cursor: help; |
||||||
|
-webkit-text-decoration-skip-ink: none; |
||||||
|
text-decoration-skip-ink: none; |
||||||
|
} |
||||||
|
|
||||||
|
address { |
||||||
|
margin-bottom: 1rem; |
||||||
|
font-style: normal; |
||||||
|
line-height: inherit; |
||||||
|
} |
||||||
|
|
||||||
|
ol, |
||||||
|
ul { |
||||||
|
padding-right: 2rem; |
||||||
|
} |
||||||
|
|
||||||
|
ol, |
||||||
|
ul, |
||||||
|
dl { |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
ol ol, |
||||||
|
ul ul, |
||||||
|
ol ul, |
||||||
|
ul ol { |
||||||
|
margin-bottom: 0; |
||||||
|
} |
||||||
|
|
||||||
|
dt { |
||||||
|
font-weight: 700; |
||||||
|
} |
||||||
|
|
||||||
|
dd { |
||||||
|
margin-bottom: 0.5rem; |
||||||
|
margin-right: 0; |
||||||
|
} |
||||||
|
|
||||||
|
blockquote { |
||||||
|
margin: 0 0 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
b, |
||||||
|
strong { |
||||||
|
font-weight: bolder; |
||||||
|
} |
||||||
|
|
||||||
|
small { |
||||||
|
font-size: 0.875em; |
||||||
|
} |
||||||
|
|
||||||
|
mark { |
||||||
|
padding: 0.1875em; |
||||||
|
background-color: var(--bs-highlight-bg); |
||||||
|
} |
||||||
|
|
||||||
|
sub, |
||||||
|
sup { |
||||||
|
position: relative; |
||||||
|
font-size: 0.75em; |
||||||
|
line-height: 0; |
||||||
|
vertical-align: baseline; |
||||||
|
} |
||||||
|
|
||||||
|
sub { |
||||||
|
bottom: -0.25em; |
||||||
|
} |
||||||
|
|
||||||
|
sup { |
||||||
|
top: -0.5em; |
||||||
|
} |
||||||
|
|
||||||
|
a { |
||||||
|
color: var(--bs-link-color); |
||||||
|
text-decoration: underline; |
||||||
|
} |
||||||
|
a:hover { |
||||||
|
color: var(--bs-link-hover-color); |
||||||
|
} |
||||||
|
|
||||||
|
a:not([href]):not([class]), a:not([href]):not([class]):hover { |
||||||
|
color: inherit; |
||||||
|
text-decoration: none; |
||||||
|
} |
||||||
|
|
||||||
|
pre, |
||||||
|
code, |
||||||
|
kbd, |
||||||
|
samp { |
||||||
|
font-family: var(--bs-font-monospace); |
||||||
|
font-size: 1em; |
||||||
|
} |
||||||
|
|
||||||
|
pre { |
||||||
|
display: block; |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 1rem; |
||||||
|
overflow: auto; |
||||||
|
font-size: 0.875em; |
||||||
|
} |
||||||
|
pre code { |
||||||
|
font-size: inherit; |
||||||
|
color: inherit; |
||||||
|
word-break: normal; |
||||||
|
} |
||||||
|
|
||||||
|
code { |
||||||
|
font-size: 0.875em; |
||||||
|
color: var(--bs-code-color); |
||||||
|
word-wrap: break-word; |
||||||
|
} |
||||||
|
a > code { |
||||||
|
color: inherit; |
||||||
|
} |
||||||
|
|
||||||
|
kbd { |
||||||
|
padding: 0.1875rem 0.375rem; |
||||||
|
font-size: 0.875em; |
||||||
|
color: var(--bs-body-bg); |
||||||
|
background-color: var(--bs-body-color); |
||||||
|
border-radius: 0.25rem; |
||||||
|
} |
||||||
|
kbd kbd { |
||||||
|
padding: 0; |
||||||
|
font-size: 1em; |
||||||
|
} |
||||||
|
|
||||||
|
figure { |
||||||
|
margin: 0 0 1rem; |
||||||
|
} |
||||||
|
|
||||||
|
img, |
||||||
|
svg { |
||||||
|
vertical-align: middle; |
||||||
|
} |
||||||
|
|
||||||
|
table { |
||||||
|
caption-side: bottom; |
||||||
|
border-collapse: collapse; |
||||||
|
} |
||||||
|
|
||||||
|
caption { |
||||||
|
padding-top: 0.5rem; |
||||||
|
padding-bottom: 0.5rem; |
||||||
|
color: #6c757d; |
||||||
|
text-align: right; |
||||||
|
} |
||||||
|
|
||||||
|
th { |
||||||
|
text-align: inherit; |
||||||
|
text-align: -webkit-match-parent; |
||||||
|
} |
||||||
|
|
||||||
|
thead, |
||||||
|
tbody, |
||||||
|
tfoot, |
||||||
|
tr, |
||||||
|
td, |
||||||
|
th { |
||||||
|
border-color: inherit; |
||||||
|
border-style: solid; |
||||||
|
border-width: 0; |
||||||
|
} |
||||||
|
|
||||||
|
label { |
||||||
|
display: inline-block; |
||||||
|
} |
||||||
|
|
||||||
|
button { |
||||||
|
border-radius: 0; |
||||||
|
} |
||||||
|
|
||||||
|
button:focus:not(:focus-visible) { |
||||||
|
outline: 0; |
||||||
|
} |
||||||
|
|
||||||
|
input, |
||||||
|
button, |
||||||
|
select, |
||||||
|
optgroup, |
||||||
|
textarea { |
||||||
|
margin: 0; |
||||||
|
font-family: inherit; |
||||||
|
font-size: inherit; |
||||||
|
line-height: inherit; |
||||||
|
} |
||||||
|
|
||||||
|
button, |
||||||
|
select { |
||||||
|
text-transform: none; |
||||||
|
} |
||||||
|
|
||||||
|
[role=button] { |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
select { |
||||||
|
word-wrap: normal; |
||||||
|
} |
||||||
|
select:disabled { |
||||||
|
opacity: 1; |
||||||
|
} |
||||||
|
|
||||||
|
[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator { |
||||||
|
display: none !important; |
||||||
|
} |
||||||
|
|
||||||
|
button, |
||||||
|
[type=button], |
||||||
|
[type=reset], |
||||||
|
[type=submit] { |
||||||
|
-webkit-appearance: button; |
||||||
|
} |
||||||
|
button:not(:disabled), |
||||||
|
[type=button]:not(:disabled), |
||||||
|
[type=reset]:not(:disabled), |
||||||
|
[type=submit]:not(:disabled) { |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
::-moz-focus-inner { |
||||||
|
padding: 0; |
||||||
|
border-style: none; |
||||||
|
} |
||||||
|
|
||||||
|
textarea { |
||||||
|
resize: vertical; |
||||||
|
} |
||||||
|
|
||||||
|
fieldset { |
||||||
|
min-width: 0; |
||||||
|
padding: 0; |
||||||
|
margin: 0; |
||||||
|
border: 0; |
||||||
|
} |
||||||
|
|
||||||
|
legend { |
||||||
|
float: right; |
||||||
|
width: 100%; |
||||||
|
padding: 0; |
||||||
|
margin-bottom: 0.5rem; |
||||||
|
font-size: calc(1.275rem + 0.3vw); |
||||||
|
line-height: inherit; |
||||||
|
} |
||||||
|
@media (min-width: 1200px) { |
||||||
|
legend { |
||||||
|
font-size: 1.5rem; |
||||||
|
} |
||||||
|
} |
||||||
|
legend + * { |
||||||
|
clear: right; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-datetime-edit-fields-wrapper, |
||||||
|
::-webkit-datetime-edit-text, |
||||||
|
::-webkit-datetime-edit-minute, |
||||||
|
::-webkit-datetime-edit-hour-field, |
||||||
|
::-webkit-datetime-edit-day-field, |
||||||
|
::-webkit-datetime-edit-month-field, |
||||||
|
::-webkit-datetime-edit-year-field { |
||||||
|
padding: 0; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-inner-spin-button { |
||||||
|
height: auto; |
||||||
|
} |
||||||
|
|
||||||
|
[type=search] { |
||||||
|
outline-offset: -2px; |
||||||
|
-webkit-appearance: textfield; |
||||||
|
} |
||||||
|
|
||||||
|
[type="tel"], |
||||||
|
[type="url"], |
||||||
|
[type="email"], |
||||||
|
[type="number"] { |
||||||
|
direction: ltr; |
||||||
|
} |
||||||
|
::-webkit-search-decoration { |
||||||
|
-webkit-appearance: none; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-color-swatch-wrapper { |
||||||
|
padding: 0; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-file-upload-button { |
||||||
|
font: inherit; |
||||||
|
-webkit-appearance: button; |
||||||
|
} |
||||||
|
|
||||||
|
::file-selector-button { |
||||||
|
font: inherit; |
||||||
|
-webkit-appearance: button; |
||||||
|
} |
||||||
|
|
||||||
|
output { |
||||||
|
display: inline-block; |
||||||
|
} |
||||||
|
|
||||||
|
iframe { |
||||||
|
border: 0; |
||||||
|
} |
||||||
|
|
||||||
|
summary { |
||||||
|
display: list-item; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
progress { |
||||||
|
vertical-align: baseline; |
||||||
|
} |
||||||
|
|
||||||
|
[hidden] { |
||||||
|
display: none !important; |
||||||
|
} |
||||||
|
/*# sourceMappingURL=bootstrap-reboot.rtl.css.map */ |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 2.5 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,53 @@ |
|||||||
|
$(() => { |
||||||
|
gerarQRcode(); |
||||||
|
removestorage(); |
||||||
|
}); |
||||||
|
|
||||||
|
const connect = () => { |
||||||
|
const ws = new WebSocket(wsserver); |
||||||
|
|
||||||
|
ws.onmessage = function (e) {}; |
||||||
|
|
||||||
|
ws.onclose = function (e) { |
||||||
|
setTimeout(function () { |
||||||
|
connect(wsserver); |
||||||
|
}, 3000); |
||||||
|
}; |
||||||
|
|
||||||
|
ws.onerror = function (err) { |
||||||
|
console.log("Não foi possível conectar no WS"); |
||||||
|
ws.close(); |
||||||
|
}; |
||||||
|
|
||||||
|
ws.onopen = function wsconnect() { |
||||||
|
console.log('conectando no serviço!') |
||||||
|
}; |
||||||
|
|
||||||
|
ws.addEventListener("open", () => { |
||||||
|
ws.addEventListener("message", (e) => { |
||||||
|
/** att: atualizacao do websocket */ |
||||||
|
if (e.data != "att") { |
||||||
|
const data = JSON.parse(e?.data); |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
}; |
||||||
|
|
||||||
|
const gerarQRcode = () => { |
||||||
|
const jsonapp = localStorage.getItem("_token"); |
||||||
|
new QRCode(document.getElementById("qrcode"), { |
||||||
|
text: JSON.stringify(jsonapp), |
||||||
|
width: 270, |
||||||
|
height: 270, |
||||||
|
correctLevel: QRCode.CorrectLevel.H, |
||||||
|
}); |
||||||
|
}; |
||||||
|
|
||||||
|
const removestorage = () => { |
||||||
|
let c = localStorage.getItem("_cfglocal"); |
||||||
|
for (let x = 0; x < c; x++) { |
||||||
|
$(`#${x}`).remove(); |
||||||
|
} |
||||||
|
localStorage.removeItem("_cfglocal"); |
||||||
|
$(`#cfglocal`).remove(); |
||||||
|
}; |
@ -0,0 +1,7 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
// autoload.php @generated by Composer |
||||||
|
|
||||||
|
require_once __DIR__ . '/composer/autoload_real.php'; |
||||||
|
|
||||||
|
return ComposerAutoloaderInit4e049454f3000410eeabe63f8584221a::getLoader(); |
@ -0,0 +1,479 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/* |
||||||
|
* This file is part of Composer. |
||||||
|
* |
||||||
|
* (c) Nils Adermann <naderman@naderman.de> |
||||||
|
* Jordi Boggiano <j.boggiano@seld.be> |
||||||
|
* |
||||||
|
* For the full copyright and license information, please view the LICENSE |
||||||
|
* file that was distributed with this source code. |
||||||
|
*/ |
||||||
|
|
||||||
|
namespace Composer\Autoload; |
||||||
|
|
||||||
|
/** |
||||||
|
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader. |
||||||
|
* |
||||||
|
* $loader = new \Composer\Autoload\ClassLoader(); |
||||||
|
* |
||||||
|
* // register classes with namespaces |
||||||
|
* $loader->add('Symfony\Component', __DIR__.'/component'); |
||||||
|
* $loader->add('Symfony', __DIR__.'/framework'); |
||||||
|
* |
||||||
|
* // activate the autoloader |
||||||
|
* $loader->register(); |
||||||
|
* |
||||||
|
* // to enable searching the include path (eg. for PEAR packages) |
||||||
|
* $loader->setUseIncludePath(true); |
||||||
|
* |
||||||
|
* In this example, if you try to use a class in the Symfony\Component |
||||||
|
* namespace or one of its children (Symfony\Component\Console for instance), |
||||||
|
* the autoloader will first look for the class under the component/ |
||||||
|
* directory, and it will then fallback to the framework/ directory if not |
||||||
|
* found before giving up. |
||||||
|
* |
||||||
|
* This class is loosely based on the Symfony UniversalClassLoader. |
||||||
|
* |
||||||
|
* @author Fabien Potencier <fabien@symfony.com> |
||||||
|
* @author Jordi Boggiano <j.boggiano@seld.be> |
||||||
|
* @see https://www.php-fig.org/psr/psr-0/ |
||||||
|
* @see https://www.php-fig.org/psr/psr-4/ |
||||||
|
*/ |
||||||
|
class ClassLoader |
||||||
|
{ |
||||||
|
private $vendorDir; |
||||||
|
|
||||||
|
// PSR-4 |
||||||
|
private $prefixLengthsPsr4 = array(); |
||||||
|
private $prefixDirsPsr4 = array(); |
||||||
|
private $fallbackDirsPsr4 = array(); |
||||||
|
|
||||||
|
// PSR-0 |
||||||
|
private $prefixesPsr0 = array(); |
||||||
|
private $fallbackDirsPsr0 = array(); |
||||||
|
|
||||||
|
private $useIncludePath = false; |
||||||
|
private $classMap = array(); |
||||||
|
private $classMapAuthoritative = false; |
||||||
|
private $missingClasses = array(); |
||||||
|
private $apcuPrefix; |
||||||
|
|
||||||
|
private static $registeredLoaders = array(); |
||||||
|
|
||||||
|
public function __construct($vendorDir = null) |
||||||
|
{ |
||||||
|
$this->vendorDir = $vendorDir; |
||||||
|
} |
||||||
|
|
||||||
|
public function getPrefixes() |
||||||
|
{ |
||||||
|
if (!empty($this->prefixesPsr0)) { |
||||||
|
return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); |
||||||
|
} |
||||||
|
|
||||||
|
return array(); |
||||||
|
} |
||||||
|
|
||||||
|
public function getPrefixesPsr4() |
||||||
|
{ |
||||||
|
return $this->prefixDirsPsr4; |
||||||
|
} |
||||||
|
|
||||||
|
public function getFallbackDirs() |
||||||
|
{ |
||||||
|
return $this->fallbackDirsPsr0; |
||||||
|
} |
||||||
|
|
||||||
|
public function getFallbackDirsPsr4() |
||||||
|
{ |
||||||
|
return $this->fallbackDirsPsr4; |
||||||
|
} |
||||||
|
|
||||||
|
public function getClassMap() |
||||||
|
{ |
||||||
|
return $this->classMap; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @param array $classMap Class to filename map |
||||||
|
*/ |
||||||
|
public function addClassMap(array $classMap) |
||||||
|
{ |
||||||
|
if ($this->classMap) { |
||||||
|
$this->classMap = array_merge($this->classMap, $classMap); |
||||||
|
} else { |
||||||
|
$this->classMap = $classMap; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Registers a set of PSR-0 directories for a given prefix, either |
||||||
|
* appending or prepending to the ones previously set for this prefix. |
||||||
|
* |
||||||
|
* @param string $prefix The prefix |
||||||
|
* @param array|string $paths The PSR-0 root directories |
||||||
|
* @param bool $prepend Whether to prepend the directories |
||||||
|
*/ |
||||||
|
public function add($prefix, $paths, $prepend = false) |
||||||
|
{ |
||||||
|
if (!$prefix) { |
||||||
|
if ($prepend) { |
||||||
|
$this->fallbackDirsPsr0 = array_merge( |
||||||
|
(array) $paths, |
||||||
|
$this->fallbackDirsPsr0 |
||||||
|
); |
||||||
|
} else { |
||||||
|
$this->fallbackDirsPsr0 = array_merge( |
||||||
|
$this->fallbackDirsPsr0, |
||||||
|
(array) $paths |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
$first = $prefix[0]; |
||||||
|
if (!isset($this->prefixesPsr0[$first][$prefix])) { |
||||||
|
$this->prefixesPsr0[$first][$prefix] = (array) $paths; |
||||||
|
|
||||||
|
return; |
||||||
|
} |
||||||
|
if ($prepend) { |
||||||
|
$this->prefixesPsr0[$first][$prefix] = array_merge( |
||||||
|
(array) $paths, |
||||||
|
$this->prefixesPsr0[$first][$prefix] |
||||||
|
); |
||||||
|
} else { |
||||||
|
$this->prefixesPsr0[$first][$prefix] = array_merge( |
||||||
|
$this->prefixesPsr0[$first][$prefix], |
||||||
|
(array) $paths |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Registers a set of PSR-4 directories for a given namespace, either |
||||||
|
* appending or prepending to the ones previously set for this namespace. |
||||||
|
* |
||||||
|
* @param string $prefix The prefix/namespace, with trailing '\\' |
||||||
|
* @param array|string $paths The PSR-4 base directories |
||||||
|
* @param bool $prepend Whether to prepend the directories |
||||||
|
* |
||||||
|
* @throws \InvalidArgumentException |
||||||
|
*/ |
||||||
|
public function addPsr4($prefix, $paths, $prepend = false) |
||||||
|
{ |
||||||
|
if (!$prefix) { |
||||||
|
// Register directories for the root namespace. |
||||||
|
if ($prepend) { |
||||||
|
$this->fallbackDirsPsr4 = array_merge( |
||||||
|
(array) $paths, |
||||||
|
$this->fallbackDirsPsr4 |
||||||
|
); |
||||||
|
} else { |
||||||
|
$this->fallbackDirsPsr4 = array_merge( |
||||||
|
$this->fallbackDirsPsr4, |
||||||
|
(array) $paths |
||||||
|
); |
||||||
|
} |
||||||
|
} elseif (!isset($this->prefixDirsPsr4[$prefix])) { |
||||||
|
// Register directories for a new namespace. |
||||||
|
$length = strlen($prefix); |
||||||
|
if ('\\' !== $prefix[$length - 1]) { |
||||||
|
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); |
||||||
|
} |
||||||
|
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; |
||||||
|
$this->prefixDirsPsr4[$prefix] = (array) $paths; |
||||||
|
} elseif ($prepend) { |
||||||
|
// Prepend directories for an already registered namespace. |
||||||
|
$this->prefixDirsPsr4[$prefix] = array_merge( |
||||||
|
(array) $paths, |
||||||
|
$this->prefixDirsPsr4[$prefix] |
||||||
|
); |
||||||
|
} else { |
||||||
|
// Append directories for an already registered namespace. |
||||||
|
$this->prefixDirsPsr4[$prefix] = array_merge( |
||||||
|
$this->prefixDirsPsr4[$prefix], |
||||||
|
(array) $paths |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Registers a set of PSR-0 directories for a given prefix, |
||||||
|
* replacing any others previously set for this prefix. |
||||||
|
* |
||||||
|
* @param string $prefix The prefix |
||||||
|
* @param array|string $paths The PSR-0 base directories |
||||||
|
*/ |
||||||
|
public function set($prefix, $paths) |
||||||
|
{ |
||||||
|
if (!$prefix) { |
||||||
|
$this->fallbackDirsPsr0 = (array) $paths; |
||||||
|
} else { |
||||||
|
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Registers a set of PSR-4 directories for a given namespace, |
||||||
|
* replacing any others previously set for this namespace. |
||||||
|
* |
||||||
|
* @param string $prefix The prefix/namespace, with trailing '\\' |
||||||
|
* @param array|string $paths The PSR-4 base directories |
||||||
|
* |
||||||
|
* @throws \InvalidArgumentException |
||||||
|
*/ |
||||||
|
public function setPsr4($prefix, $paths) |
||||||
|
{ |
||||||
|
if (!$prefix) { |
||||||
|
$this->fallbackDirsPsr4 = (array) $paths; |
||||||
|
} else { |
||||||
|
$length = strlen($prefix); |
||||||
|
if ('\\' !== $prefix[$length - 1]) { |
||||||
|
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); |
||||||
|
} |
||||||
|
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; |
||||||
|
$this->prefixDirsPsr4[$prefix] = (array) $paths; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Turns on searching the include path for class files. |
||||||
|
* |
||||||
|
* @param bool $useIncludePath |
||||||
|
*/ |
||||||
|
public function setUseIncludePath($useIncludePath) |
||||||
|
{ |
||||||
|
$this->useIncludePath = $useIncludePath; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Can be used to check if the autoloader uses the include path to check |
||||||
|
* for classes. |
||||||
|
* |
||||||
|
* @return bool |
||||||
|
*/ |
||||||
|
public function getUseIncludePath() |
||||||
|
{ |
||||||
|
return $this->useIncludePath; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Turns off searching the prefix and fallback directories for classes |
||||||
|
* that have not been registered with the class map. |
||||||
|
* |
||||||
|
* @param bool $classMapAuthoritative |
||||||
|
*/ |
||||||
|
public function setClassMapAuthoritative($classMapAuthoritative) |
||||||
|
{ |
||||||
|
$this->classMapAuthoritative = $classMapAuthoritative; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Should class lookup fail if not found in the current class map? |
||||||
|
* |
||||||
|
* @return bool |
||||||
|
*/ |
||||||
|
public function isClassMapAuthoritative() |
||||||
|
{ |
||||||
|
return $this->classMapAuthoritative; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* APCu prefix to use to cache found/not-found classes, if the extension is enabled. |
||||||
|
* |
||||||
|
* @param string|null $apcuPrefix |
||||||
|
*/ |
||||||
|
public function setApcuPrefix($apcuPrefix) |
||||||
|
{ |
||||||
|
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* The APCu prefix in use, or null if APCu caching is not enabled. |
||||||
|
* |
||||||
|
* @return string|null |
||||||
|
*/ |
||||||
|
public function getApcuPrefix() |
||||||
|
{ |
||||||
|
return $this->apcuPrefix; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Registers this instance as an autoloader. |
||||||
|
* |
||||||
|
* @param bool $prepend Whether to prepend the autoloader or not |
||||||
|
*/ |
||||||
|
public function register($prepend = false) |
||||||
|
{ |
||||||
|
spl_autoload_register(array($this, 'loadClass'), true, $prepend); |
||||||
|
|
||||||
|
if (null === $this->vendorDir) { |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
if ($prepend) { |
||||||
|
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; |
||||||
|
} else { |
||||||
|
unset(self::$registeredLoaders[$this->vendorDir]); |
||||||
|
self::$registeredLoaders[$this->vendorDir] = $this; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Unregisters this instance as an autoloader. |
||||||
|
*/ |
||||||
|
public function unregister() |
||||||
|
{ |
||||||
|
spl_autoload_unregister(array($this, 'loadClass')); |
||||||
|
|
||||||
|
if (null !== $this->vendorDir) { |
||||||
|
unset(self::$registeredLoaders[$this->vendorDir]); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Loads the given class or interface. |
||||||
|
* |
||||||
|
* @param string $class The name of the class |
||||||
|
* @return bool|null True if loaded, null otherwise |
||||||
|
*/ |
||||||
|
public function loadClass($class) |
||||||
|
{ |
||||||
|
if ($file = $this->findFile($class)) { |
||||||
|
includeFile($file); |
||||||
|
|
||||||
|
return true; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Finds the path to the file where the class is defined. |
||||||
|
* |
||||||
|
* @param string $class The name of the class |
||||||
|
* |
||||||
|
* @return string|false The path if found, false otherwise |
||||||
|
*/ |
||||||
|
public function findFile($class) |
||||||
|
{ |
||||||
|
// class map lookup |
||||||
|
if (isset($this->classMap[$class])) { |
||||||
|
return $this->classMap[$class]; |
||||||
|
} |
||||||
|
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (null !== $this->apcuPrefix) { |
||||||
|
$file = apcu_fetch($this->apcuPrefix.$class, $hit); |
||||||
|
if ($hit) { |
||||||
|
return $file; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
$file = $this->findFileWithExtension($class, '.php'); |
||||||
|
|
||||||
|
// Search for Hack files if we are running on HHVM |
||||||
|
if (false === $file && defined('HHVM_VERSION')) { |
||||||
|
$file = $this->findFileWithExtension($class, '.hh'); |
||||||
|
} |
||||||
|
|
||||||
|
if (null !== $this->apcuPrefix) { |
||||||
|
apcu_add($this->apcuPrefix.$class, $file); |
||||||
|
} |
||||||
|
|
||||||
|
if (false === $file) { |
||||||
|
// Remember that this class does not exist. |
||||||
|
$this->missingClasses[$class] = true; |
||||||
|
} |
||||||
|
|
||||||
|
return $file; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the currently registered loaders indexed by their corresponding vendor directories. |
||||||
|
* |
||||||
|
* @return self[] |
||||||
|
*/ |
||||||
|
public static function getRegisteredLoaders() |
||||||
|
{ |
||||||
|
return self::$registeredLoaders; |
||||||
|
} |
||||||
|
|
||||||
|
private function findFileWithExtension($class, $ext) |
||||||
|
{ |
||||||
|
// PSR-4 lookup |
||||||
|
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
||||||
|
|
||||||
|
$first = $class[0]; |
||||||
|
if (isset($this->prefixLengthsPsr4[$first])) { |
||||||
|
$subPath = $class; |
||||||
|
while (false !== $lastPos = strrpos($subPath, '\\')) { |
||||||
|
$subPath = substr($subPath, 0, $lastPos); |
||||||
|
$search = $subPath . '\\'; |
||||||
|
if (isset($this->prefixDirsPsr4[$search])) { |
||||||
|
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
||||||
|
foreach ($this->prefixDirsPsr4[$search] as $dir) { |
||||||
|
if (file_exists($file = $dir . $pathEnd)) { |
||||||
|
return $file; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
// PSR-4 fallback dirs |
||||||
|
foreach ($this->fallbackDirsPsr4 as $dir) { |
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
||||||
|
return $file; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
// PSR-0 lookup |
||||||
|
if (false !== $pos = strrpos($class, '\\')) { |
||||||
|
// namespaced class name |
||||||
|
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) |
||||||
|
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
||||||
|
} else { |
||||||
|
// PEAR-like class name |
||||||
|
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
||||||
|
} |
||||||
|
|
||||||
|
if (isset($this->prefixesPsr0[$first])) { |
||||||
|
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
||||||
|
if (0 === strpos($class, $prefix)) { |
||||||
|
foreach ($dirs as $dir) { |
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
||||||
|
return $file; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
// PSR-0 fallback dirs |
||||||
|
foreach ($this->fallbackDirsPsr0 as $dir) { |
||||||
|
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
||||||
|
return $file; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
// PSR-0 include paths. |
||||||
|
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { |
||||||
|
return $file; |
||||||
|
} |
||||||
|
|
||||||
|
return false; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Scope isolated include. |
||||||
|
* |
||||||
|
* Prevents access to $this/self from included files. |
||||||
|
*/ |
||||||
|
function includeFile($file) |
||||||
|
{ |
||||||
|
include $file; |
||||||
|
} |
@ -0,0 +1,283 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
namespace Composer; |
||||||
|
|
||||||
|
use Composer\Autoload\ClassLoader; |
||||||
|
use Composer\Semver\VersionParser; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class InstalledVersions |
||||||
|
{ |
||||||
|
private static $installed = array ( |
||||||
|
'root' => |
||||||
|
array ( |
||||||
|
'pretty_version' => '1.0.0+no-version-set', |
||||||
|
'version' => '1.0.0.0', |
||||||
|
'aliases' => |
||||||
|
array ( |
||||||
|
), |
||||||
|
'reference' => NULL, |
||||||
|
'name' => 'simplesip/authsimpleschat', |
||||||
|
), |
||||||
|
'versions' => |
||||||
|
array ( |
||||||
|
'simplesip/authsimpleschat' => |
||||||
|
array ( |
||||||
|
'pretty_version' => '1.0.0+no-version-set', |
||||||
|
'version' => '1.0.0.0', |
||||||
|
'aliases' => |
||||||
|
array ( |
||||||
|
), |
||||||
|
'reference' => NULL, |
||||||
|
), |
||||||
|
), |
||||||
|
); |
||||||
|
private static $canGetVendors; |
||||||
|
private static $installedByVendor = array(); |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function getInstalledPackages() |
||||||
|
{ |
||||||
|
$packages = array(); |
||||||
|
foreach (self::getInstalled() as $installed) { |
||||||
|
$packages[] = array_keys($installed['versions']); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
if (1 === \count($packages)) { |
||||||
|
return $packages[0]; |
||||||
|
} |
||||||
|
|
||||||
|
return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function isInstalled($packageName) |
||||||
|
{ |
||||||
|
foreach (self::getInstalled() as $installed) { |
||||||
|
if (isset($installed['versions'][$packageName])) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function satisfies(VersionParser $parser, $packageName, $constraint) |
||||||
|
{ |
||||||
|
$constraint = $parser->parseConstraints($constraint); |
||||||
|
$provided = $parser->parseConstraints(self::getVersionRanges($packageName)); |
||||||
|
|
||||||
|
return $provided->matches($constraint); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function getVersionRanges($packageName) |
||||||
|
{ |
||||||
|
foreach (self::getInstalled() as $installed) { |
||||||
|
if (!isset($installed['versions'][$packageName])) { |
||||||
|
continue; |
||||||
|
} |
||||||
|
|
||||||
|
$ranges = array(); |
||||||
|
if (isset($installed['versions'][$packageName]['pretty_version'])) { |
||||||
|
$ranges[] = $installed['versions'][$packageName]['pretty_version']; |
||||||
|
} |
||||||
|
if (array_key_exists('aliases', $installed['versions'][$packageName])) { |
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); |
||||||
|
} |
||||||
|
if (array_key_exists('replaced', $installed['versions'][$packageName])) { |
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); |
||||||
|
} |
||||||
|
if (array_key_exists('provided', $installed['versions'][$packageName])) { |
||||||
|
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); |
||||||
|
} |
||||||
|
|
||||||
|
return implode(' || ', $ranges); |
||||||
|
} |
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function getVersion($packageName) |
||||||
|
{ |
||||||
|
foreach (self::getInstalled() as $installed) { |
||||||
|
if (!isset($installed['versions'][$packageName])) { |
||||||
|
continue; |
||||||
|
} |
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['version'])) { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['version']; |
||||||
|
} |
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function getPrettyVersion($packageName) |
||||||
|
{ |
||||||
|
foreach (self::getInstalled() as $installed) { |
||||||
|
if (!isset($installed['versions'][$packageName])) { |
||||||
|
continue; |
||||||
|
} |
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['pretty_version'])) { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['pretty_version']; |
||||||
|
} |
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function getReference($packageName) |
||||||
|
{ |
||||||
|
foreach (self::getInstalled() as $installed) { |
||||||
|
if (!isset($installed['versions'][$packageName])) { |
||||||
|
continue; |
||||||
|
} |
||||||
|
|
||||||
|
if (!isset($installed['versions'][$packageName]['reference'])) { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
return $installed['versions'][$packageName]['reference']; |
||||||
|
} |
||||||
|
|
||||||
|
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function getRootPackage() |
||||||
|
{ |
||||||
|
$installed = self::getInstalled(); |
||||||
|
|
||||||
|
return $installed[0]['root']; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function getRawData() |
||||||
|
{ |
||||||
|
return self::$installed; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static function reload($data) |
||||||
|
{ |
||||||
|
self::$installed = $data; |
||||||
|
self::$installedByVendor = array(); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private static function getInstalled() |
||||||
|
{ |
||||||
|
if (null === self::$canGetVendors) { |
||||||
|
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); |
||||||
|
} |
||||||
|
|
||||||
|
$installed = array(); |
||||||
|
|
||||||
|
if (self::$canGetVendors) { |
||||||
|
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { |
||||||
|
if (isset(self::$installedByVendor[$vendorDir])) { |
||||||
|
$installed[] = self::$installedByVendor[$vendorDir]; |
||||||
|
} elseif (is_file($vendorDir.'/composer/installed.php')) { |
||||||
|
$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
$installed[] = self::$installed; |
||||||
|
|
||||||
|
return $installed; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,21 @@ |
|||||||
|
|
||||||
|
Copyright (c) Nils Adermann, Jordi Boggiano |
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
of this software and associated documentation files (the "Software"), to deal |
||||||
|
in the Software without restriction, including without limitation the rights |
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished |
||||||
|
to do so, subject to the following conditions: |
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all |
||||||
|
copies or substantial portions of the Software. |
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
||||||
|
THE SOFTWARE. |
||||||
|
|
@ -0,0 +1,10 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
// autoload_classmap.php @generated by Composer |
||||||
|
|
||||||
|
$vendorDir = dirname(dirname(__FILE__)); |
||||||
|
$baseDir = dirname($vendorDir); |
||||||
|
|
||||||
|
return array( |
||||||
|
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
||||||
|
); |
@ -0,0 +1,9 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
// autoload_namespaces.php @generated by Composer |
||||||
|
|
||||||
|
$vendorDir = dirname(dirname(__FILE__)); |
||||||
|
$baseDir = dirname($vendorDir); |
||||||
|
|
||||||
|
return array( |
||||||
|
); |
@ -0,0 +1,10 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
// autoload_psr4.php @generated by Composer |
||||||
|
|
||||||
|
$vendorDir = dirname(dirname(__FILE__)); |
||||||
|
$baseDir = dirname($vendorDir); |
||||||
|
|
||||||
|
return array( |
||||||
|
'app\\' => array($baseDir . '/app'), |
||||||
|
); |
@ -0,0 +1,55 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
// autoload_real.php @generated by Composer |
||||||
|
|
||||||
|
class ComposerAutoloaderInit4e049454f3000410eeabe63f8584221a |
||||||
|
{ |
||||||
|
private static $loader; |
||||||
|
|
||||||
|
public static function loadClassLoader($class) |
||||||
|
{ |
||||||
|
if ('Composer\Autoload\ClassLoader' === $class) { |
||||||
|
require __DIR__ . '/ClassLoader.php'; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @return \Composer\Autoload\ClassLoader |
||||||
|
*/ |
||||||
|
public static function getLoader() |
||||||
|
{ |
||||||
|
if (null !== self::$loader) { |
||||||
|
return self::$loader; |
||||||
|
} |
||||||
|
|
||||||
|
spl_autoload_register(array('ComposerAutoloaderInit4e049454f3000410eeabe63f8584221a', 'loadClassLoader'), true, true); |
||||||
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); |
||||||
|
spl_autoload_unregister(array('ComposerAutoloaderInit4e049454f3000410eeabe63f8584221a', 'loadClassLoader')); |
||||||
|
|
||||||
|
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
||||||
|
if ($useStaticLoader) { |
||||||
|
require __DIR__ . '/autoload_static.php'; |
||||||
|
|
||||||
|
call_user_func(\Composer\Autoload\ComposerStaticInit4e049454f3000410eeabe63f8584221a::getInitializer($loader)); |
||||||
|
} else { |
||||||
|
$map = require __DIR__ . '/autoload_namespaces.php'; |
||||||
|
foreach ($map as $namespace => $path) { |
||||||
|
$loader->set($namespace, $path); |
||||||
|
} |
||||||
|
|
||||||
|
$map = require __DIR__ . '/autoload_psr4.php'; |
||||||
|
foreach ($map as $namespace => $path) { |
||||||
|
$loader->setPsr4($namespace, $path); |
||||||
|
} |
||||||
|
|
||||||
|
$classMap = require __DIR__ . '/autoload_classmap.php'; |
||||||
|
if ($classMap) { |
||||||
|
$loader->addClassMap($classMap); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
$loader->register(true); |
||||||
|
|
||||||
|
return $loader; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,36 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
// autoload_static.php @generated by Composer |
||||||
|
|
||||||
|
namespace Composer\Autoload; |
||||||
|
|
||||||
|
class ComposerStaticInit4e049454f3000410eeabe63f8584221a |
||||||
|
{ |
||||||
|
public static $prefixLengthsPsr4 = array ( |
||||||
|
'a' => |
||||||
|
array ( |
||||||
|
'app\\' => 4, |
||||||
|
), |
||||||
|
); |
||||||
|
|
||||||
|
public static $prefixDirsPsr4 = array ( |
||||||
|
'app\\' => |
||||||
|
array ( |
||||||
|
0 => __DIR__ . '/../..' . '/app', |
||||||
|
), |
||||||
|
); |
||||||
|
|
||||||
|
public static $classMap = array ( |
||||||
|
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
||||||
|
); |
||||||
|
|
||||||
|
public static function getInitializer(ClassLoader $loader) |
||||||
|
{ |
||||||
|
return \Closure::bind(function () use ($loader) { |
||||||
|
$loader->prefixLengthsPsr4 = ComposerStaticInit4e049454f3000410eeabe63f8584221a::$prefixLengthsPsr4; |
||||||
|
$loader->prefixDirsPsr4 = ComposerStaticInit4e049454f3000410eeabe63f8584221a::$prefixDirsPsr4; |
||||||
|
$loader->classMap = ComposerStaticInit4e049454f3000410eeabe63f8584221a::$classMap; |
||||||
|
|
||||||
|
}, null, ClassLoader::class); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,5 @@ |
|||||||
|
{ |
||||||
|
"packages": [], |
||||||
|
"dev": true, |
||||||
|
"dev-package-names": [] |
||||||
|
} |
@ -0,0 +1,24 @@ |
|||||||
|
<?php return array ( |
||||||
|
'root' => |
||||||
|
array ( |
||||||
|
'pretty_version' => '1.0.0+no-version-set', |
||||||
|
'version' => '1.0.0.0', |
||||||
|
'aliases' => |
||||||
|
array ( |
||||||
|
), |
||||||
|
'reference' => NULL, |
||||||
|
'name' => 'simplesip/authsimpleschat', |
||||||
|
), |
||||||
|
'versions' => |
||||||
|
array ( |
||||||
|
'simplesip/authsimpleschat' => |
||||||
|
array ( |
||||||
|
'pretty_version' => '1.0.0+no-version-set', |
||||||
|
'version' => '1.0.0.0', |
||||||
|
'aliases' => |
||||||
|
array ( |
||||||
|
), |
||||||
|
'reference' => NULL, |
||||||
|
), |
||||||
|
), |
||||||
|
); |
Loading…
Reference in new issue