105 lines
3.5 KiB
HTML
105 lines
3.5 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<meta charset="UTF-8" />
|
||
<title>Установка DecUp</title>
|
||
<link href="style.css" rel="stylesheet" />
|
||
</head>
|
||
<body>
|
||
<div id="header">
|
||
<div class="container">
|
||
<h1>
|
||
<a href="index.html" style="color: #fff; text-decoration: none"
|
||
>DecUp</a
|
||
>
|
||
</h1>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="main">
|
||
<noscript class="container" style="display: block">
|
||
<h2>У вас отключён JavaScript</h2>
|
||
<p>
|
||
В связи с этим автоматическая генерация команды установки
|
||
<strong>не работает</strong>.
|
||
</p>
|
||
|
||
<p>
|
||
Попробуйте включить JavaScript и перезагрузить страницу или
|
||
<a href="docs/install.html">установите DecUp вручную</a>.
|
||
</p>
|
||
</noscript>
|
||
|
||
<div id="wizard" class="container" style="display: none">
|
||
<script>
|
||
document.getElementById("wizard").style.display = "block";
|
||
</script>
|
||
|
||
<h2>Установка</h2>
|
||
|
||
<p>
|
||
После заполнения <strong>всех</strong> полей внизу появится команда,
|
||
устанавливающая DecUp. Вставьте её в терминал.
|
||
</p>
|
||
|
||
<p>
|
||
Мы <strong>не собираем</strong> никакие данные. Команда генерируется
|
||
локально.
|
||
</p>
|
||
|
||
<label for="pacman">Менеджер пакетов</label>
|
||
<select id="pacman">
|
||
<option value="apt-get update && apt-get install git ansible -y">
|
||
apt (Debian, Ubuntu, Mint, ALT, Rosa)
|
||
</option>
|
||
<option value="pacman -Sy --noconfirm git ansible">
|
||
pacman (Arch, Manjaro, Endeavour OS)
|
||
</option>
|
||
</select>
|
||
|
||
<label for="username">Логин</label>
|
||
<input class="code" id="username" placeholder="Введите логин..." />
|
||
|
||
<label for="pass">Пароль</label>
|
||
<div class="password-wrapper">
|
||
<input
|
||
class="code password"
|
||
name="password"
|
||
id="pass"
|
||
placeholder="Введите пароль..." />
|
||
</div>
|
||
|
||
<label for="dbpass">Пароль базы данных</label>
|
||
<div class="password-wrapper">
|
||
<input
|
||
class="code password"
|
||
name="db_password"
|
||
id="dbpass"
|
||
placeholder="Введите пароль БД..." />
|
||
</div>
|
||
|
||
<div id="cmd" style="display: none">
|
||
<label for="output">Команда</label>
|
||
<textarea class="tertiary code" id="output"></textarea>
|
||
<button
|
||
onclick="copyText = document.getElementById('output'); copyText.select(); copyText.setSelectionRange(0, 99999); navigator.clipboard.writeText(copyText.value);"
|
||
class="primary"
|
||
style="width: 100%; margin-top: 8px">
|
||
Скопировать
|
||
</button>
|
||
</div>
|
||
|
||
<script
|
||
src="password.js"
|
||
data-alt="Показать/скрыть пароль"
|
||
data-type="password"
|
||
data-icons="."></script>
|
||
|
||
<script src="textarea.js"></script>
|
||
<script src="gencmd.js"></script>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|