mirror of https://github.com/tycrek/ass
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
3.6 KiB
69 lines
3.6 KiB
doctype html
|
|
html.dark.sl-theme-dark(lang='en')
|
|
head
|
|
meta(charset='UTF-8')
|
|
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
|
title ass setup
|
|
meta(name='theme-color' content='black')
|
|
link(rel='stylesheet', href='/.css')
|
|
//- Shoelace-FontAwesome Pug mixin
|
|
include ../node_modules/shoelace-fontawesome-pug/sl-fa-mixin.pug
|
|
include ../node_modules/shoelace-pug-loader/loader.pug
|
|
+slTheme('dark')
|
|
//- Shoelace components
|
|
+slComponents('input', 'icon', 'button')
|
|
body.w-screen.h-screen.flex.flex-col
|
|
|
|
//- Header
|
|
.w-full.border-b.border-stone-500.flex.justify-center.items-center.py-3
|
|
h1.text-4xl.font-bold.font-mono ass setup
|
|
|
|
//- Centering width-fixer
|
|
.w-full.flex.justify-center: .w-full.md_max-w-xl.px-4.pt-16
|
|
|
|
//- Setup panel
|
|
.flex.flex-col.items-center
|
|
p.text-lg.mb-4 Welcome to ass, your new personal file upload server!
|
|
|
|
//- * Base config
|
|
h2.setup-text-section-header.mt-12 Upload configuration
|
|
.setup-panel
|
|
h3.setup-text-item-title Uploads directory
|
|
sl-input#uploads-dir(type='text' placeholder='/opt/ass/uploads' clearable): sl-icon(slot='prefix' name='fas-folders' library='fa')
|
|
h3.setup-text-item-title ID type
|
|
sl-input#uploads-idtype(type='text' placeholder='random'): sl-icon(slot='prefix' name='fas-input-text' library='fa')
|
|
h3.setup-text-item-title ID size
|
|
sl-input#uploads-idsize(type='number' placeholder='8'): sl-icon(slot='prefix' name='fas-hashtag' library='fa')
|
|
h3.setup-text-item-title Gfycat size
|
|
sl-input#uploads-gfysize(type='number' placeholder='3'): sl-icon(slot='prefix' name='fas-cat' library='fa')
|
|
h3.setup-text-item-title Maximum file size (MB)
|
|
sl-input#uploads-filesize(type='number' placeholder='50'): sl-icon(slot='prefix' name='fas-file' library='fa')
|
|
|
|
//- * S3
|
|
h2.setup-text-section-header.mt-4 S3 #[span.setup-text-optional optional]
|
|
.setup-panel
|
|
h3.setup-text-item-title Endpoint
|
|
sl-input#s3-endpoint(type='text' placeholder='https://s3.example.com' clearable): sl-icon(slot='prefix' name='fas-server' library='fa')
|
|
h3.setup-text-item-title Bucket
|
|
sl-input#s3-bucket(type='text' placeholder='ass-bucket' clearable): sl-icon(slot='prefix' name='fas-bucket' library='fa')
|
|
h3.setup-text-item-title Access key
|
|
sl-input#s3-accessKey(type='text' placeholder='ABCD1234' clearable): sl-icon(slot='prefix' name='fas-key-skeleton' library='fa')
|
|
h3.setup-text-item-title Secret key
|
|
sl-input#s3-secretKey(type='password' placeholder='EF56GH78IJ90KL12' clearable): sl-icon(slot='prefix' name='fas-user-secret' library='fa')
|
|
h3.setup-text-item-title Region #[span.setup-text-optional optional]
|
|
sl-input#s3-region(type='text' placeholder='us-east' clearable): sl-icon(slot='prefix' name='fas-map-location-dot' library='fa')
|
|
|
|
//- * MySQL
|
|
h2.setup-text-section-header.mt-4 MySQL #[span.setup-text-optional optional]
|
|
.setup-panel
|
|
h3.setup-text-item-title Host
|
|
sl-input#mysql-host(type='text' placeholder='mysql.example.com' clearable): sl-icon(slot='prefix' name='fas-server' library='fa')
|
|
h3.setup-text-item-title User
|
|
sl-input#mysql-user(type='text' placeholder='myassql' clearable): sl-icon(slot='prefix' name='fas-user' library='fa')
|
|
h3.setup-text-item-title Password
|
|
sl-input#mysql-password(type='password' placeholder='super-secure' clearable): sl-icon(slot='prefix' name='fas-lock' library='fa')
|
|
h3.setup-text-item-title Database
|
|
sl-input#mysql-database(type='text' placeholder='assdb' clearable): sl-icon(slot='prefix' name='fas-database' library='fa')
|
|
|
|
sl-button.w-32.mt-2.self-center#submit(type='primary' submit) Submit
|
|
script(src='/setup/ui.js') |