From a28cccfde07e76d1e70d2acfe1c2222d8b8ae705 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Wed, 4 May 2022 13:59:37 +0300 Subject: Simplified code. Removed pixivMoe, old.reddit.com #239 --- pug/options/general/general.pug | 6 ------ pug/options/pixiv/pixiv.pug | 41 ----------------------------------------- pug/options/reddit/reddit.pug | 1 - pug/options/spotify/spotify.pug | 9 --------- pug/widgets/links.pug | 4 ---- 5 files changed, 61 deletions(-) delete mode 100644 pug/options/pixiv/pixiv.pug (limited to 'pug') diff --git a/pug/options/general/general.pug b/pug/options/general/general.pug index d0aad99a..34efa64c 100644 --- a/pug/options/general/general.pug +++ b/pug/options/general/general.pug @@ -120,12 +120,6 @@ body.option(dir="auto") |Reddit input#reddit(type="checkbox") - div - div - img(src="../../../assets/images/pixiv-icon.svg") - |Pixiv - input#pixiv(type="checkbox") - div div img(src="../../../assets/images/spotify-icon.png") diff --git a/pug/options/pixiv/pixiv.pug b/pug/options/pixiv/pixiv.pug deleted file mode 100644 index 3fab5981..00000000 --- a/pug/options/pixiv/pixiv.pug +++ /dev/null @@ -1,41 +0,0 @@ -doctype html -html(lang="en") - include ../../widgets/head.pug - title General -script(type="module" src="../../../assets/javascripts/localise.js") -body.option(dir="auto") - include ../../widgets/links.pug - +links('pixiv') - - section.option-block - .some-block.option-block - h4(data-localise="__MSG_enable__") Enable - input#disable-pixiv(type="checkbox") - - .some-block.option-block - h4 - x(data-localise="__MSG_frontend__") Frontend - |: - span(style="color:red;" data-localise="__MSG_notFullyPrivate__") This isn't a fully private frontend - select#maps-frontend - option(value="pixivMoe" data-localise="__MSG_pixivMoe__") pixiv萌え - - .some-block.option-block - h4(data-localise="__MSG_protocol__") Protocol - select#protocol - option(value="normal" data-localise="__MSG_normal__") Normal - option(value="tor" data-localise="__MSG_tor__") Tor - - #pixivMoe - hr - .normal - include ../../widgets/instances.pug - +instances('https://pixivMoe.com') - include ../../widgets/latency.pug - +latency() - .tor - include ../../widgets/instances.pug - +instances('https://pixivMoe.onion') - - script(type="module" src="../init.js") - script(type="module" src="./pixiv.js") \ No newline at end of file diff --git a/pug/options/reddit/reddit.pug b/pug/options/reddit/reddit.pug index cfb0868d..1b51ccae 100644 --- a/pug/options/reddit/reddit.pug +++ b/pug/options/reddit/reddit.pug @@ -17,7 +17,6 @@ body.option(dir="auto") select#reddit-frontend option(value="libreddit") Libreddit option(value="teddit") Teddit - option(value="old") old.reddit.com .some-block.option-block h4(data-localise="__MSG_protocol__") Protocol diff --git a/pug/options/spotify/spotify.pug b/pug/options/spotify/spotify.pug index 2314fe27..97951412 100644 --- a/pug/options/spotify/spotify.pug +++ b/pug/options/spotify/spotify.pug @@ -12,12 +12,6 @@ body.option(dir="auto") h4(data-localise="__MSG_enable__") Enable input#disable-spotify(type="checkbox") - .some-block.option-block - h4(data-localise="__MSG_protocol__") Protocol - select#protocol - option(value="normal" data-localise="__MSG_normal__") Normal - option(value="tor" data-localise="__MSG_tor__") Tor - #soju hr .normal @@ -25,9 +19,6 @@ body.option(dir="auto") +instances('https://soju.com') include ../../widgets/latency.pug +latency() - .tor - include ../../widgets/instances.pug - +instances('https://soju.onion') script(type="module" src="../init.js") script(type="module" src="./spotify.js") diff --git a/pug/widgets/links.pug b/pug/widgets/links.pug index 5141d907..025d99f5 100644 --- a/pug/widgets/links.pug +++ b/pug/widgets/links.pug @@ -36,10 +36,6 @@ mixin links(service) img(src="../../../assets/images/imgur-icon.png") a(href="../imgur/imgur.html" data-localise="__MSG_imgur__" class=service == "imgur" ? "selected" : "") Imgur - .title - img(src="../../../assets/images/pixiv-icon.svg") - a(href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__" class=service == "pixiv" ? "selected" : "") Pixiv - .title img(src="../../../assets/images/librespeed-icon.svg") a(href="../speedtest/speedtest.html" data-localise="__MSG_speedtest__" class=service == "speedtest" ? "selected" : "") Speedtest -- cgit 1.4.1