show supported sites
This commit is contained in:
parent
fca81ce279
commit
9dbea43066
5 changed files with 25 additions and 4 deletions
|
@ -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));
|
||||
|
||||
|
|
11
routes/supported-sites/index.js
Normal file
11
routes/supported-sites/index.js
Normal 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
|
||||
}
|
9
views/supported-sites.pug
Normal file
9
views/supported-sites.pug
Normal 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
|
|
@ -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',
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue