show supported sites

This commit is contained in:
Wingy 2020-11-05 17:42:24 -05:00
parent fca81ce279
commit 9dbea43066
5 changed files with 25 additions and 4 deletions

View file

@ -32,6 +32,7 @@ module.exports = ({ db, config }) => {
router.use('/confirm-account', require('./confirm-account')(db));
router.use('/wishlist', require('./wishlist')(db));
router.use('/supported-sites', require('./supported-sites')())
router.use('/profile', require('./profile')(db));

View file

@ -0,0 +1,11 @@
const express = require('express')
module.exports = () => {
const router = express.Router()
router.get('/', async (req, res) => {
res.render('supported-sites', { title: 'Supported Sites' })
})
return router
}

View file

@ -0,0 +1,9 @@
extends layout.pug
block content
if req.headers.referer
span.is-size-3(style='margin-top: 0; padding-top: 0;')
a(href=req.headers.referer) < Back
ul
for site of _CC.require('get-product-name').sites
li= site.name

View file

@ -178,7 +178,7 @@ block content
input.inline.button(type='submit' value='Move item down')
form(method='POST')
.field
label.label Item URL or Name
label.label Item URL or Name (<a href="/supported-sites">Supported Sites</a>)
.control.has-icons-left
input.input(
type='text',

View file

@ -868,9 +868,9 @@
"tiny-each-async" "2.0.3"
"get-product-name@1":
"integrity" "sha512-EmxDzytXhHuWSZbOIKc7aDKaCpprvFw9DaTXLtaaiG+KXT7SCwZUQYdGY/0BWmQmu6xrmJWggih/13+syCjKzw=="
"resolved" "https://registry.npmjs.org/get-product-name/-/get-product-name-1.8.0.tgz"
"version" "1.8.0"
"integrity" "sha512-l0wcyIrVb2KnGMIKuueK+zuDaXW+0K1FYsJDs53WwToRjM6v7uypf0hrIynifAEjzTxmZw4k+7oEgjY3l9mpXg=="
"resolved" "https://registry.npmjs.org/get-product-name/-/get-product-name-1.10.0.tgz"
"version" "1.10.0"
dependencies:
"cheerio" "^1.0.0-rc.3"
"child-process-promise" "^2.2.1"