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.
55 lines
2.8 KiB
55 lines
2.8 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!
|
|
|
|
h2.setup-text-section-header.mt-12 Upload configuration
|
|
.setup-panel
|
|
h3.setup-text-item-title Uploads directory
|
|
sl-input#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#idtype(type='text' placeholder='random'): sl-icon(slot='prefix' name='fas-input-text' library='fa')
|
|
h3.setup-text-item-title ID size
|
|
sl-input#idsize(type='number' placeholder='8'): sl-icon(slot='prefix' name='fas-hashtag' library='fa')
|
|
h3.setup-text-item-title Gfycat size
|
|
sl-input#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#filesize(type='number' placeholder='50'): sl-icon(slot='prefix' name='fas-file' library='fa')
|
|
|
|
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')
|
|
|
|
sl-button.w-32.mt-2.self-center#submit(type='primary' submit) Submit
|
|
script(src='/setup/ui.js') |