Compare commits
18 commits
22174ee93f
...
faf53708ac
Author | SHA1 | Date | |
---|---|---|---|
|
faf53708ac | ||
|
68c5ac15f4 | ||
|
d9770292df | ||
|
34667b28d1 | ||
|
84961b11f7 | ||
|
d633e90874 | ||
|
b3146d339f | ||
|
8219b9a0f3 | ||
|
bcc5a81db9 | ||
|
28f168108f | ||
|
c42c816272 | ||
|
486acf8c31 | ||
|
a5f461c7ba | ||
|
1356942cd1 | ||
|
acae1ba8f6 | ||
|
7d836b28c1 | ||
|
e624c880a7 | ||
|
91dbce8352 |
25 changed files with 321 additions and 82 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM node:15-alpine
|
||||
FROM node:20-alpine
|
||||
|
||||
RUN apk --no-cache add curl
|
||||
|
||||
|
|
3
Dockerfile_nixon
Normal file
3
Dockerfile_nixon
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM dnix/xmas-castro:latest
|
||||
|
||||
RUN mv /usr/src/app/src/static/img/nixon.png /usr/src/app/src/static/img/logo.png
|
|
@ -49,6 +49,10 @@ services:
|
|||
# (for weddings, birthdays, etc. only the admin account's list is accessible)
|
||||
# Set to 'true' to enable
|
||||
SINGLE_LIST: 'false'
|
||||
# Some websites (like walmart) send headers that are larger than 8MB in
|
||||
# length. If issues are encountered, set the node.js limit to a higher
|
||||
# number than 8192
|
||||
#NODE_OPTIONS: "--max-http-header-size=32768"
|
||||
restart: always
|
||||
```
|
||||
|
||||
|
@ -93,6 +97,9 @@ UPDATE_CHECK=true
|
|||
PFP=true
|
||||
# Language of the interface, options listed in `languages` directory
|
||||
LANGUAGE=en-US
|
||||
# Password to enter guest mode,
|
||||
# e.g. https://wishes.example.com?pw=ReplaceWithYourGuestPassword
|
||||
# GUEST_PASSWORD=ReplaceWithYourGuestPassword
|
||||
|
||||
## Wishlist Settings
|
||||
# Set to true to not allow users to have their own lists. You may want this for a birthday or wedding.
|
||||
|
|
2
build_images.sh
Executable file
2
build_images.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
docker build -t dnix/xmas-castro:latest . && \
|
||||
docker build -t dnix/xmas-nixon:latest -f Dockerfile_nixon .
|
|
@ -6,5 +6,8 @@ services:
|
|||
build: .
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
BULMASWATCH: Cosmo
|
||||
MARKDOWN: true
|
||||
SITE_TITLE: Christmas 2023
|
||||
ports:
|
||||
- 80:80
|
|
@ -25,3 +25,7 @@ module.exports = {
|
|||
}
|
||||
|
||||
if (module.exports.guestPassword) module.exports.wishlist.public = false
|
||||
if (module.exports.guestPassword === 'ReplaceWithYourGuestPassword') {
|
||||
console.error('Error: Guest password should be changed from default.')
|
||||
process.exit(1)
|
||||
}
|
11
src/index.js
11
src/index.js
|
@ -98,6 +98,7 @@ app.use((req, res, next) => {
|
|||
})
|
||||
|
||||
app.use(require('body-parser').urlencoded({ extended: true }))
|
||||
app.use(require('cookie-parser')());
|
||||
app.use(session({
|
||||
secret: config.secret,
|
||||
resave: false,
|
||||
|
@ -108,6 +109,16 @@ app.use(session({
|
|||
},
|
||||
name: 'christmas_community.connect.sid'
|
||||
}))
|
||||
app.use((req, res, next) => {
|
||||
let basepath = req.path.substring(0, req.path.lastIndexOf("/"));
|
||||
|
||||
// Clear cookies for paths that are not the base path. See #17
|
||||
if(basepath.length > config.base.length) {
|
||||
res.clearCookie('christmas_community.connect.sid', {path: req.path});
|
||||
res.clearCookie('christmas_community.connect.sid', {path: basepath});
|
||||
}
|
||||
next();
|
||||
});
|
||||
app.use(flash())
|
||||
app.use(passport.initialize())
|
||||
app.use(passport.session())
|
||||
|
|
|
@ -125,7 +125,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'Martin',
|
||||
SETUP_USERNAME: 'Uživatelské jméno',
|
||||
SUPPORTED_SITES_HEADER: 'Podporované obchody',
|
||||
SUPPORTED_SITES_TEXT: 'Nefunguje obchod nebo úplně chybí? Založ nový ticket <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">ZDE</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Nefunguje obchod nebo úplně chybí? Založ nový ticket <a href="https://github.com/Wingysam/get-product-data/issues/new">ZDE</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Nepoužíváte poslední verzi Christmas Community. V nové verzi mohou být nové funkce nebo opravy chyb. Zvžte aktualizaci :)
|
||||
|
|
|
@ -125,7 +125,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'john',
|
||||
SETUP_USERNAME: 'Brugernavn',
|
||||
SUPPORTED_SITES_HEADER: 'Supporterede hjemmesider',
|
||||
SUPPORTED_SITES_TEXT: 'Is a site missing or broken? Open an issue <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">here</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Is a site missing or broken? Open an issue <a href="https://github.com/Wingysam/get-product-data/issues/new">here</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community is out of date. There may be new features or bug fixes. Consider updating! :)
|
||||
|
|
|
@ -125,7 +125,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'john',
|
||||
SETUP_USERNAME: 'Nutzername',
|
||||
SUPPORTED_SITES_HEADER: 'Unterstützte Seiten',
|
||||
SUPPORTED_SITES_TEXT: 'Fehlt eine Seite oder ist etwas defekt? Eröffne <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">hier</a> ein Issue! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Fehlt eine Seite oder ist etwas defekt? Eröffne <a href="https://github.com/Wingysam/get-product-data/issues/new">hier</a> ein Issue! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community ist veraltet. Möglicherweise gibt es neue Funktionen oder Fehler wurden beseitigt. Mach' am besten ein Update! :)
|
||||
|
|
|
@ -2,13 +2,13 @@ module.exports.momentLocale = 'en'
|
|||
|
||||
module.exports.strings = {
|
||||
_NOT_LOCALIZED: key => `${key} hasn't been translated to English yet.`,
|
||||
ADMIN_CLEAR_WISHLISTS_BUTTON: 'Clear all wishlists',
|
||||
ADMIN_CLEAR_WISHLISTS_DESCRIPTION: 'This will instantly <b>irreversibly delete all wishlists!</b> Consider making a backup of the database before using this.',
|
||||
ADMIN_CLEAR_WISHLISTS_HEADER: 'Wishlist Deletion',
|
||||
ADMIN_SETTINGS_CLEARDB_BUTTON: 'Clear Wishlists',
|
||||
ADMIN_CLEAR_WISHLISTS_BUTTON: 'Clear all lists',
|
||||
ADMIN_CLEAR_WISHLISTS_DESCRIPTION: 'This will instantly <b>irreversibly delete all lists!</b> Consider making a backup of the database before using this.',
|
||||
ADMIN_CLEAR_WISHLISTS_HEADER: 'List Deletion',
|
||||
ADMIN_SETTINGS_CLEARDB_BUTTON: 'Clear lists',
|
||||
ADMIN_SETTINGS_CLEARDB_DESCRIPTION: '<b>Warning</b>: These options <b>destroy data</b>! You may want to back up the database before using these options.',
|
||||
ADMIN_SETTINGS_CLEARDB_HEADER: 'Data Destruction',
|
||||
ADMIN_SETTINGS_CLEARDB_SUCCESS: 'Cleared all wishlists.',
|
||||
ADMIN_SETTINGS_CLEARDB_SUCCESS: 'Cleared all lists.',
|
||||
ADMIN_SETTINGS_HEADER: 'Admin Settings',
|
||||
ADMIN_SETTINGS_USERS_ADD_BUTTON: 'Add User',
|
||||
ADMIN_SETTINGS_USERS_ADD_HEADER: 'Add user',
|
||||
|
@ -72,11 +72,11 @@ module.exports.strings = {
|
|||
LOGIN_USERNAME_PLACEHOLDER: 'john',
|
||||
LOGIN_USERNAME: 'Username',
|
||||
LOGOUT_BUTTON: 'Log Out',
|
||||
NAVBAR_ADMIN: 'Admin Settings',
|
||||
NAVBAR_ADMIN: 'Admin Panel',
|
||||
NAVBAR_LOGIN: 'Log In',
|
||||
NAVBAR_LOGOUT: 'Log Out',
|
||||
NAVBAR_PROFILE: 'Profile',
|
||||
NAVBAR_WISHLIST: 'My Wishlist',
|
||||
NAVBAR_PROFILE: 'Settings',
|
||||
NAVBAR_WISHLIST: 'My List',
|
||||
NOTE_BACK: name => `Back to ${name}'s wishlist`,
|
||||
NOTE_GET_PRODUCT_DATA: 'Get Product Data',
|
||||
NOTE_GUARD: 'Invalid user',
|
||||
|
@ -125,10 +125,10 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'john',
|
||||
SETUP_USERNAME: 'Username',
|
||||
SUPPORTED_SITES_HEADER: 'Supported Sites',
|
||||
SUPPORTED_SITES_TEXT: 'Is a site missing or broken? Open an issue <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">here</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Is a site missing or broken? Open an issue <a href="https://github.com/Wingysam/get-product-data/issues/new">here</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community is out of date. There may be new features or bug fixes. Consider updating! :)
|
||||
New version available! There may be new features or bug fixes. Consider updating! :)
|
||||
</span>
|
||||
<br>
|
||||
<span>(you can turn this off with <code>UPDATE_CHECK=false</code>)</span>
|
||||
|
@ -138,15 +138,15 @@ module.exports.strings = {
|
|||
<span>Latest: ${latest}</span>
|
||||
<span class="has-text-info" style="float: right;">This message is only visible to admins</span>`,
|
||||
WISHLIST_ADD: 'Add item to wishlist',
|
||||
WISHLIST_ADDED_BY_USER: addedBy => `Added by: ${addedBy}`,
|
||||
WISHLIST_ADDED_BY: 'Added By',
|
||||
WISHLIST_ADDED_ITEM_TO_OWN_WISHLIST: 'Added item to wishlist.',
|
||||
WISHLIST_CONFLICT: 'Items are being added too quickly. Please try again.',
|
||||
WISHLIST_ADDED_BY_USER: addedBy => `Suggested by: ${addedBy}`,
|
||||
WISHLIST_ADDED_BY: 'Suggested by',
|
||||
WISHLIST_ADDED_ITEM_TO_OWN_WISHLIST: 'Added item to your list.',
|
||||
WISHLIST_CONFLICT: 'You\'re adding things too fast. Please try again.',
|
||||
WISHLIST_DELETE: 'Delete',
|
||||
WISHLIST_EDIT_ITEM: 'Edit Item',
|
||||
WISHLIST_FETCH_FAIL: 'Failed to fetch the wishlist -- does the user exist?',
|
||||
WISHLIST_FETCH_FAIL: 'Failed to find a list -- does this person exist?',
|
||||
WISHLIST_IMAGE: 'Image',
|
||||
WISHLIST_ITEM_MISSING: 'Failed to find item',
|
||||
WISHLIST_ITEM_MISSING: 'Failed to find item. Maybe it was deleted?',
|
||||
WISHLIST_MOVE_DOWN: 'Move Down',
|
||||
WISHLIST_MOVE_GUARD: 'Not correct user',
|
||||
WISHLIST_MOVE_INVALID: 'Invalid move',
|
||||
|
@ -161,27 +161,27 @@ module.exports.strings = {
|
|||
WISHLIST_NOTE: 'Note',
|
||||
WISHLIST_OPTIONAL: 'Optional',
|
||||
WISHLIST_PLEDGE_DUPLICATE: 'Item already pledged for',
|
||||
WISHLIST_PLEDGE_ITEM: 'Pledge item',
|
||||
WISHLIST_PLEDGE_SUCCESS: 'Successfully pledged for item!',
|
||||
WISHLIST_PLEDGE_ITEM: 'Get this',
|
||||
WISHLIST_PLEDGE_SUCCESS: 'You pledged for something! Good job!',
|
||||
WISHLIST_PLEDGE: 'Pledge',
|
||||
WISHLIST_PLEDGED: pledgedBy => `Pledged for by ${pledgedBy}`,
|
||||
WISHLIST_PLEDGED_GUEST: 'Pledged for by a guest user',
|
||||
WISHLIST_PLEDGED: pledgedBy => `${pledgedBy} is getting this`,
|
||||
WISHLIST_PLEDGED_GUEST: 'Someone is getting this',
|
||||
WISHLIST_PLEDGED_ITEM_FOR_USER: user => `Pledged item for ${user}.`,
|
||||
WISHLIST_PRICE: 'Price',
|
||||
WISHLIST_REFRESH_GUARD: 'Invalid user',
|
||||
WISHLIST_REFRESH_NO_URL: 'Item has no URL.',
|
||||
WISHLIST_REFRESH_SUCCESS: 'Successfully refreshed data!',
|
||||
WISHLIST_REFRESH_NO_URL: 'Item has no URL. Fix that, probably.',
|
||||
WISHLIST_REFRESH_SUCCESS: 'Refreshed data!',
|
||||
WISHLIST_REMOVE_GUARD: 'Not correct user',
|
||||
WISHLIST_REMOVE_SUCCESS: 'Successfully removed from wishlist',
|
||||
WISHLIST_REMOVE_SUCCESS: 'Removed from your list',
|
||||
WISHLIST_SUGGEST: 'Suggest item',
|
||||
WISHLIST_TITLE: name => `${_CC.config.siteTitle} - Wishlist - ${name}`,
|
||||
WISHLIST_UNPLEDGE_GUARD: 'You did not pledge for this', // should never happen unless someone makes their own http requests
|
||||
WISHLIST_UNPLEDGE_SUCCESS: 'Successfully unpledged for item!',
|
||||
WISHLIST_UNPLEDGE: 'Unpledge',
|
||||
WISHLIST_URL_LABEL: `Item URL or Name (<a href="${_CC.config.base}supported-sites">Supported Sites</a>)`,
|
||||
WISHLIST_TITLE: name => `${_CC.config.siteTitle}: ${name}`,
|
||||
WISHLIST_UNPLEDGE_GUARD: 'You didn\'t pledge for this', // should never happen unless someone makes their own http requests
|
||||
WISHLIST_UNPLEDGE_SUCCESS: 'Unpledged!',
|
||||
WISHLIST_UNPLEDGE: 'Not getting this anymore',
|
||||
WISHLIST_URL_LABEL: `Item URL or Name (<a href="${_CC.config.base}supported-sites">List of sites that auto-populate from a URL</a>)`,
|
||||
WISHLIST_URL_PLACEHOLDER: 'https://www.amazon.com/dp/B00ZV9RDKK',
|
||||
WISHLIST_URL_REQUIRED: 'Item URL or Name is required',
|
||||
WISHLISTS_COUNTS_SELF: name => `${name}: ???/???`,
|
||||
WISHLISTS_COUNTS: (name, pledged, total) => `${name}: ${pledged}/${total}`,
|
||||
WISHLISTS_TITLE: `${_CC.config.siteTitle} - Wishlists`
|
||||
WISHLIST_URL_REQUIRED: 'Item URL or at least a name is required',
|
||||
WISHLISTS_COUNTS_SELF: name => `<h3>${name}</h3> Add to your own Christmas list!`,
|
||||
WISHLISTS_COUNTS: (name, pledged, total) => `<h3>${name}</h3> ${pledged}/<em>${total}</em>`,
|
||||
WISHLISTS_TITLE: `${_CC.config.siteTitle}`
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'juan',
|
||||
SETUP_USERNAME: 'Nombre de usuario',
|
||||
SUPPORTED_SITES_HEADER: 'Sitios web compatibles',
|
||||
SUPPORTED_SITES_TEXT: '¿Hay un sitio ausente o roto? Abra una propuesta <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">aquí</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: '¿Hay un sitio ausente o roto? Abra una propuesta <a href="https://github.com/Wingysam/get-product-data/issues/new">aquí</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community es desactualizado. Puede haber nuevas functiones o correcciones. ¡Considera actualizar! :)
|
||||
|
|
|
@ -124,7 +124,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'félix',
|
||||
SETUP_USERNAME: 'Nom d\'utilisateur',
|
||||
SUPPORTED_SITES_HEADER: 'Sites pris en charge',
|
||||
SUPPORTED_SITES_TEXT: 'Un site est-il manquant ou cassé? Reporter un problème <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">here</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Un site est-il manquant ou cassé? Reporter un problème <a href="https://github.com/Wingysam/get-product-data/issues/new">here</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community est obsolète. Il peut y avoir de nouvelles fonctionnalités ou des corrections de bugs. Pensez à mettre à jour! :)
|
||||
|
|
|
@ -125,7 +125,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'jean',
|
||||
SETUP_USERNAME: "Nom d'utilisateur",
|
||||
SUPPORTED_SITES_HEADER: 'Sites supportés',
|
||||
SUPPORTED_SITES_TEXT: 'Un site est-il manquant ou cassé? Ouvrir une issue <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">here</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Un site est-il manquant ou cassé? Ouvrir une issue <a href="https://github.com/Wingysam/get-product-data/issues/new">here</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community est obsolète. Il peut y avoir de nouvelles fonctionnalités ou des corrections de bugs. Pensez à mettre à jour! :)
|
||||
|
|
187
src/languages/nb-no.js
Normal file
187
src/languages/nb-no.js
Normal file
|
@ -0,0 +1,187 @@
|
|||
module.exports.momentLocale = 'nb'
|
||||
|
||||
module.exports.strings = {
|
||||
_NOT_LOCALIZED: key => `${key} har ikke blitt oversatt til norsk enda.`,
|
||||
ADMIN_CLEAR_WISHLISTS_BUTTON: 'Tøm alle ønskelister',
|
||||
ADMIN_CLEAR_WISHLISTS_DESCRIPTION: 'Dette vil umiddelbart og irreversibelt <b>slette alle ønskelister!</b> Vurder å ta en sikkerhetskopi av databasen før du bruker dette.',
|
||||
ADMIN_CLEAR_WISHLISTS_HEADER: 'Sletting av ønskelister',
|
||||
ADMIN_SETTINGS_CLEARDB_BUTTON: 'Tøm ønskelister',
|
||||
ADMIN_SETTINGS_CLEARDB_DESCRIPTION: '<b>Advarsel</b>: Disse alternativene <b>ødelegger data</b>! Du bør ta en sikkerhetskopi av databasen før du bruker disse alternativene.',
|
||||
ADMIN_SETTINGS_CLEARDB_HEADER: 'Dataødeleggelse',
|
||||
ADMIN_SETTINGS_CLEARDB_SUCCESS: 'Alle ønskelister ble tømt.',
|
||||
ADMIN_SETTINGS_HEADER: 'Administratorinnstillinger',
|
||||
ADMIN_SETTINGS_USERS_ADD_BUTTON: 'Legg til bruker',
|
||||
ADMIN_SETTINGS_USERS_ADD_HEADER: 'Legg til bruker',
|
||||
ADMIN_SETTINGS_USERS_ADD_PLACEHOLDER: 'Ola',
|
||||
ADMIN_SETTINGS_USERS_ADD_USERNAME: 'Brukernavn',
|
||||
ADMIN_SETTINGS_USERS_ADD_ERROR_USERNAME_EMPTY: 'Brukernavn kan ikke være tomt.',
|
||||
ADMIN_SETTINGS_USERS_EDIT_DELETE_FAIL_ADMIN: 'Kunne ikke fjerne: bruker er administrator.',
|
||||
ADMIN_SETTINGS_USERS_EDIT_DELETE_SUCCESS: name => `Brukeren ${name} ble fjernet.`,
|
||||
ADMIN_SETTINGS_USERS_EDIT_DEMOTE_NOT_ADMIN: 'brukeren er ikke en administrator',
|
||||
ADMIN_SETTINGS_USERS_EDIT_DEMOTE_SELF: 'Du kan ikke nedgradere egen konto.',
|
||||
ADMIN_SETTINGS_USERS_EDIT_DEMOTE_SUCCESS: name => `${name} er ikke lengre en administrator.`,
|
||||
ADMIN_SETTINGS_USERS_EDIT_IMPERSONATE_SUCCESS: name => `Du er nå ${name}.`,
|
||||
ADMIN_SETTINGS_USERS_EDIT_NO_USERNAME_PROVIDED: 'Ingen brukernavn oppgitt',
|
||||
ADMIN_SETTINGS_USERS_EDIT_PROMOTE_ALREADY_ADMIN: 'brukeren er allerede administrator',
|
||||
ADMIN_SETTINGS_USERS_EDIT_PROMOTE_DEMOTE_NOT_FOUND: 'Brukeren ble ikke funnet.',
|
||||
ADMIN_SETTINGS_USERS_EDIT_PROMOTE_SUCCESS: name => `${name} er nå en administrator.`,
|
||||
ADMIN_SETTINGS_USERS_EDIT_RENAMED_USER: 'Brukeren er omdøpt!',
|
||||
ADMIN_SETTINGS_USERS_EDIT_SAME_NAME: 'Brukernavnet er det samme som det nye brukernavnet.',
|
||||
ADMIN_SETTINGS_USERS_EDIT: 'Rediger',
|
||||
ADMIN_SETTINGS_USERS_HEADER: 'Brukere',
|
||||
ADMIN_SETTINGS_VERSION_INFO: 'Versjonsinfo',
|
||||
ADMIN_USER_EDIT_ACCOUNT_UNCONFIRMED: "Denne kontoen er ikke bekreftet.",
|
||||
ADMIN_USER_EDIT_ADMIN_ISADMIN: name => `${name} er en administrator.`,
|
||||
ADMIN_USER_EDIT_ADMIN_NOTADMIN: name => `${name} er ikke en administrator.`,
|
||||
ADMIN_USER_EDIT_ADMIN: 'Administrator',
|
||||
ADMIN_USER_EDIT_CHANGE_NAME: 'Endre navn',
|
||||
ADMIN_USER_EDIT_CHANGE_USERNAME: 'Endre brukernavn',
|
||||
ADMIN_USER_EDIT_CONFIRMATION_LINK: 'Bekreftelseslenke',
|
||||
ADMIN_USER_EDIT_DELETE_ADMIN: 'Brukeren er administrator',
|
||||
ADMIN_USER_EDIT_DELETE_HEADER: 'Irreversibel sletting',
|
||||
ADMIN_USER_EDIT_DELETE_USER: name => `Fjern bruker ${name}`,
|
||||
ADMIN_USER_EDIT_DEMOTE_SELF: 'Du kan ikke nedgradere deg selv',
|
||||
ADMIN_USER_EDIT_DEMOTE: name => `Nedgrader ${name}`,
|
||||
ADMIN_USER_EDIT_EDITING_USER: name => `Redigerer bruker "${name}"`,
|
||||
ADMIN_USER_EDIT_GENERATE_NEW_LINK: 'Generer ny lenke',
|
||||
ADMIN_USER_EDIT_IMPERSONATE_BUTTON: name => `Logg inn som ${name}`,
|
||||
ADMIN_USER_EDIT_IMPERSONATE_HEADER: 'Logg inn som',
|
||||
ADMIN_USER_EDIT_LINK_EXPIRY_FUTURE: fromNow => `Følgende lenke utløper ${fromNow}`, // fromNow is localized by moment
|
||||
ADMIN_USER_EDIT_LINK_EXPIRY_PAST: fromNow => `Følgende lenke utløp ${fromNow}`,
|
||||
ADMIN_USER_EDIT_PROMOTE: name => `Promoter ${name}`,
|
||||
ADMIN_USER_EDIT_RESET_PASSWORD_HASLINK_EXPIRY_FUTURE: fromNow => `Den utløper ${fromNow}`,
|
||||
ADMIN_USER_EDIT_RESET_PASSWORD_HASLINK_EXPIRY_PAST: fromNow => `Den utløp ${fromNow}`,
|
||||
ADMIN_USER_EDIT_RESET_PASSWORD_HASLINK: 'Det finnes en gjennopprettingslenke for denne brukeren.',
|
||||
ADMIN_USER_EDIT_RESET_PASSWORD_HEADER: 'Nullstill passord',
|
||||
ADMIN_USER_EDIT_RESET_PASSWORD_LINK_CANCEL: 'Slett gjennopprettingslenke',
|
||||
ADMIN_USER_EDIT_RESET_PASSWORD_LINK_CREATE: 'Opprett gjennopprettingslenke',
|
||||
ADMIN_USER_EDIT_RESET_PASSWORD_LINK_REFRESH: 'Oppdater gjennopprettingslenke',
|
||||
ADMIN_USER_EDIT_USERNAME: 'Brukernavn',
|
||||
BACK_BUTTON: 'Tilbake',
|
||||
CONFIRM_ACCOUNT_EXPIRED: 'Din gjenopprettingslenke er utløpt. Vennligst be om en ny.',
|
||||
CONFIRM_ACCOUNT_HEADER_INVALID: `${_CC.config.siteTitle} | Ugyldig bekreftelseslenke`,
|
||||
CONFIRM_ACCOUNT_HEADER_VALID: `${_CC.config.siteTitle} | Bekreft konto`,
|
||||
CONFIRM_ACCOUNT_INVALID: "Denne bekreftelseslenken er ugyldig. Kanskje er den slettet, eller det mangler tegn på slutten av den?",
|
||||
CONFIRM_ACCOUNT_SET_PW_BUTTON: `Bli medlem av ${_CC.config.siteTitle}`,
|
||||
CONFIRM_ACCOUNT_SET_PW_PLACEHOLDER: 'pa$$ord!',
|
||||
CONFIRM_ACCOUNT_SET_PW_TEXT: name => `Hei, ${name}! Vennligst sett ditt passord her.`,
|
||||
CONFIRM_ACCOUNT_SUCCESS: `Velkommen til ${_CC.config.siteTitle}!`,
|
||||
LOGIN_BUTTON: 'Logg inn',
|
||||
LOGIN_PASSWORD_PLACEHOLDER: 'pa$$ord!',
|
||||
LOGIN_PASSWORD: 'Passord',
|
||||
LOGIN_USERNAME_PLACEHOLDER: 'Ola',
|
||||
LOGIN_USERNAME: 'Brukernavn',
|
||||
LOGOUT_BUTTON: 'Logg ut',
|
||||
NAVBAR_ADMIN: 'Administratorinnstillinger',
|
||||
NAVBAR_LOGIN: 'Logg inn',
|
||||
NAVBAR_LOGOUT: 'Logg ut',
|
||||
NAVBAR_PROFILE: 'Profil',
|
||||
NAVBAR_WISHLIST: 'Min ønskeliste',
|
||||
NOTE_BACK: name => `Tilbake til ${name}s ønskeliste`,
|
||||
NOTE_GET_PRODUCT_DATA: 'Hent produktdata',
|
||||
NOTE_GUARD: 'Ugyldig bruker',
|
||||
NOTE_IMAGE_URL: 'Bildelenke',
|
||||
NOTE_MISSING_PROP: prop => `Mangler egenskap ${prop}`, // not really possible to localize this unfortunately
|
||||
NOTE_NAME: 'Navn',
|
||||
NOTE_NOTE: 'Notat',
|
||||
NOTE_PRICE: 'Pris',
|
||||
NOTE_REFRESH_DATA: 'Oppdater data',
|
||||
NOTE_REMOVE_GUARD: 'Ugyldig bruker',
|
||||
NOTE_REMOVE_MISSING: 'Har ingen notater',
|
||||
NOTE_REMOVE_SUCCESS: 'Notatet ble fjernet',
|
||||
NOTE_SAVE_BUTTON: 'Lagre element',
|
||||
NOTE_SUCCESS: 'Lagret!',
|
||||
NOTE_URL: 'Lenke',
|
||||
PROFILE_HEADER: 'Profil',
|
||||
PROFILE_PASSWORD_BUTTON: 'Lagre',
|
||||
PROFILE_PASSWORD_NEW: 'Nytt passord',
|
||||
PROFILE_PASSWORD_OLD_MISMATCH: 'Feil gammelt passord',
|
||||
PROFILE_PASSWORD_OLD: 'Nytt passord',
|
||||
PROFILE_PASSWORD_PLACEHOLDER: 'pa$$ord!',
|
||||
PROFILE_PASSWORD_REQUIRED_NEW: 'Nytt passord er påkrevd',
|
||||
PROFILE_PASSWORD_REQUIRED_OLD: 'Gammelt passord er påkrevd',
|
||||
PROFILE_PASSWORD_SUCCESS: 'Endringer ble lagret!',
|
||||
PROFILE_PASSWORD_TITLE: name => `Profilinnstillinger - Passord - ${name}`,
|
||||
PROFILE_PFP_IMAGE_URL: 'Bildelenke',
|
||||
PROFILE_SAVE_PFP_DISABLED: 'Profilbilder er deaktivert.',
|
||||
PROFILE_SAVE_PFP_SUCCESS: 'Profilbilde ble lagret!',
|
||||
PROFILE_SECURITY_CHANGE_PASSWORD: 'Endre passord',
|
||||
PROFILE_SECURITY: 'Sikkerhet',
|
||||
PROFILE_TITLE: name => `Profilinnstillinger - ${name}`,
|
||||
RESET_PASSWORD_BUTTON: 'Tilbakestill passord',
|
||||
RESET_PASSWORD_GREETING_EXPIRED: 'Din gjenopprettingslenke er utløpt. Vennligst be om en ny.',
|
||||
RESET_PASSWORD_GREETING_INVALID: "Denne gjenopprettingslenken er ugyldig. Kanskje er den slettet, eller det mangler tegn på slutten av den?",
|
||||
RESET_PASSWORD_GREETING_VALID: name => `Hei, ${name}! Vennligst sett ditt passord her.`,
|
||||
RESET_PASSWORD_HEADER_INVALID: `${_CC.config.siteTitle} | Ugyldig gjenopprettingslenke`,
|
||||
RESET_PASSWORD_HEADER_VALID: `${_CC.config.siteTitle} | Nullstill passord`,
|
||||
RESET_PASSWORD_PASSWORD_PLACEHOLDER: 'pa$$ord!',
|
||||
RESET_PASSWORD_PASSWORD: 'Passord',
|
||||
RESET_PASSWORD_SUCCESS: 'Passordet ble nullstilt!',
|
||||
SETUP_ADMIN_USER: 'Administratorbruker',
|
||||
SETUP_BUTTON: 'Konfigurer!',
|
||||
SETUP_HEADER: 'Konfigurasjon',
|
||||
SETUP_PASSWORD_PLACEHOLDER: 'pa$$ord!',
|
||||
SETUP_PASSWORD: 'Passord',
|
||||
SETUP_USERNAME_PLACEHOLDER: 'Ola',
|
||||
SETUP_USERNAME: 'Brukernavn',
|
||||
SUPPORTED_SITES_HEADER: 'Støttede nettsteder',
|
||||
SUPPORTED_SITES_TEXT: 'Mangler en nettsted, eller har problemer? Skriv en feilrapport <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">her</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community er utdatert. Det kan være nye funksjoner og feilrettinger. Vurder å oppdatere! :)
|
||||
</span>
|
||||
<br>
|
||||
<span>(du kan deaktivere dette med <code>UPDATE_CHECK=false</code>)</span>
|
||||
<br><br>
|
||||
<span>Gjeldende: ${current}</span>
|
||||
<br>
|
||||
<span>Siste: ${latest}</span>
|
||||
<span class="has-text-info" style="float: right;">Denne meldingen er kun synlig for administratorer</span>`,
|
||||
WISHLIST_ADD: 'Legg til element i ønskelisten',
|
||||
WISHLIST_ADDED_BY_USER: addedBy => `Lagt til av: ${addedBy}`,
|
||||
WISHLIST_ADDED_BY: 'Lagt til av',
|
||||
WISHLIST_ADDED_ITEM_TO_OWN_WISHLIST: 'Elementet ble lagt til i ønskelisten.',
|
||||
WISHLIST_CONFLICT: 'Elementer blir lagt til for fort. Vennligst prøv igjen.',
|
||||
WISHLIST_DELETE: 'Slett',
|
||||
WISHLIST_EDIT_ITEM: 'Rediger element',
|
||||
WISHLIST_FETCH_FAIL: 'Kunne ikke hente ønskeliste -- eksisterer brukeren?',
|
||||
WISHLIST_IMAGE: 'Bilde',
|
||||
WISHLIST_ITEM_MISSING: 'Element ikke funnet',
|
||||
WISHLIST_MOVE_DOWN: 'Flytt ned',
|
||||
WISHLIST_MOVE_GUARD: 'Feil bruker',
|
||||
WISHLIST_MOVE_INVALID: 'Ugyldig bevegelse',
|
||||
WISHLIST_MOVE_ITEM_DOWN: 'Flytt element ned',
|
||||
WISHLIST_MOVE_ITEM_TOP: 'Flytt element til toppen',
|
||||
WISHLIST_MOVE_ITEM_UP: 'Flytt element opp',
|
||||
WISHLIST_MOVE_SUCCESS: 'Elementet ble flyttet!',
|
||||
WISHLIST_MOVE_TOP: 'Flytt til toppen',
|
||||
WISHLIST_MOVE_UNKNOWN_DIRECTION: 'Ukjent retning',
|
||||
WISHLIST_MOVE_UP: 'Flytt opp',
|
||||
WISHLIST_NAME: 'Navn',
|
||||
WISHLIST_NOTE: 'Notat',
|
||||
WISHLIST_OPTIONAL: 'Valgfritt',
|
||||
WISHLIST_PLEDGE_DUPLICATE: 'Elementet er allerede reservert',
|
||||
WISHLIST_PLEDGE_ITEM: 'Reserver element',
|
||||
WISHLIST_PLEDGE_SUCCESS: 'Elementet ble reservert!',
|
||||
WISHLIST_PLEDGE: 'Reserver',
|
||||
WISHLIST_PLEDGED: pledgedBy => `Reservert av ${pledgedBy}`,
|
||||
WISHLIST_PLEDGED_GUEST: 'Reservert av gjestebruker',
|
||||
WISHLIST_PLEDGED_ITEM_FOR_USER: user => `Reserverte elementet for ${user}.`,
|
||||
WISHLIST_PRICE: 'Pris',
|
||||
WISHLIST_REFRESH_GUARD: 'Ugyldig bruker',
|
||||
WISHLIST_REFRESH_NO_URL: 'Elementet har ingen lenke.',
|
||||
WISHLIST_REFRESH_SUCCESS: 'Data ble oppdatert!',
|
||||
WISHLIST_REMOVE_GUARD: 'Feil bruker',
|
||||
WISHLIST_REMOVE_SUCCESS: 'Fjernet fra ønskeliste',
|
||||
WISHLIST_SUGGEST: 'Foreslå element',
|
||||
WISHLIST_TITLE: name => `${_CC.config.siteTitle} - Ønskeliste - ${name}`,
|
||||
WISHLIST_UNPLEDGE_GUARD: 'Du har ikke reservert dette elementet', // should never happen unless someone makes their own http requests
|
||||
WISHLIST_UNPLEDGE_SUCCESS: 'Reservasjonen for elementet ble trukket!',
|
||||
WISHLIST_UNPLEDGE: 'Trekk reservasjon',
|
||||
WISHLIST_URL_LABEL: `Elementlenke eller navn (<a href="${_CC.config.base}supported-sites">Støttede nettsteder</a>)`,
|
||||
WISHLIST_URL_PLACEHOLDER: 'https://www.amazon.com/dp/B00ZV9RDKK',
|
||||
WISHLIST_URL_REQUIRED: 'Elementlenke eller navn er påkrevd',
|
||||
WISHLISTS_COUNTS_SELF: name => `${name}: ???/???`,
|
||||
WISHLISTS_COUNTS: (name, pledged, total) => `${name}: ${pledged}/${total}`,
|
||||
WISHLISTS_TITLE: `${_CC.config.siteTitle} - Ønskeliste`
|
||||
}
|
|
@ -125,7 +125,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'henk',
|
||||
SETUP_USERNAME: 'Gebruikersnaam',
|
||||
SUPPORTED_SITES_HEADER: 'Ondersteunde sites',
|
||||
SUPPORTED_SITES_TEXT: 'Ontbreekt er een website of is er een kapot? Open een issue <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">hier</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Ontbreekt er een website of is er een kapot? Open een issue <a href="https://github.com/Wingysam/get-product-data/issues/new">hier</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Christmas Community is niet meer up to date. Misschien zijn er nieuwe functies of bugfixes. Overweeg om te updaten :)
|
||||
|
|
|
@ -125,7 +125,7 @@ module.exports.strings = {
|
|||
SETUP_USERNAME_PLACEHOLDER: 'ion',
|
||||
SETUP_USERNAME: 'Nume de utilizator',
|
||||
SUPPORTED_SITES_HEADER: 'Site-uri suportate',
|
||||
SUPPORTED_SITES_TEXT: 'Este vreun site care lipsește sau nu funcționează corect? Sesizați problema <a href="https://gitlab.com/wingysam/get-product-name/-/issues/new">aici</a>! :)',
|
||||
SUPPORTED_SITES_TEXT: 'Este vreun site care lipsește sau nu funcționează corect? Sesizați problema <a href="https://github.com/Wingysam/get-product-data/issues/new">aici</a>! :)',
|
||||
UPDATE_NOTICE: (current, latest) => `
|
||||
<span class="has-text-danger is-size-4 has-text-weight-bold">
|
||||
Folosiți o versiune învechită a Christmas Community. Este posibil să se fi adăugat noi funcții și rezolvat erori. Este recomandată actualizarea! :)
|
||||
|
|
|
@ -29,7 +29,6 @@ module.exports = ({ db, config }) => {
|
|||
const router = express.Router()
|
||||
|
||||
router.use('/', express.static(path.join(__dirname, '../static')))
|
||||
router.use(require('cookie-parser')())
|
||||
|
||||
router.get('/',
|
||||
async (req, res, next) => {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 87 KiB |
BIN
src/static/img/nixon.png
Normal file
BIN
src/static/img/nixon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
|
@ -161,6 +161,8 @@ class Wishlist {
|
|||
}
|
||||
|
||||
const productData = await getProductData(item.url)
|
||||
if (!productData) return; // short-circuit when there's no data
|
||||
|
||||
for (const key of ['name', 'price', 'image']) {
|
||||
if (productData[key]) item[key] = productData[key]
|
||||
}
|
||||
|
|
|
@ -4,36 +4,33 @@ mixin navBarLink(href, title)
|
|||
else
|
||||
a.navbar-item(href=href)= title
|
||||
|
||||
nav.navbar.is-fixed-top(role='navigation', aria-label='main navigation',style='box-shadow: 0px 0px 7px rgb(14, 15, 17);')
|
||||
nav.navbar.is-fixed-top(role='navigation', aria-label='main navigation', style='box-shadow: 0px 0px 7px rgb(14, 15, 17);')
|
||||
.navbar-brand
|
||||
if _CC.config.base === req.path
|
||||
a.is-active.navbar-item(href=_CC.config.base)
|
||||
img(src=`${_CC.config.base}img/logo.png`, alt='')
|
||||
span #{config.siteTitle}
|
||||
img(src=`${_CC.config.base}img/logo.png`, alt='Castro Christmas')
|
||||
else
|
||||
a.navbar-item(href=_CC.config.base)
|
||||
img(src=`${_CC.config.base}img/logo.png`, alt='')
|
||||
span #{config.siteTitle}
|
||||
img(src=`${_CC.config.base}img/logo.png`, alt='Castro Christmas')
|
||||
a.navbar-burger#navBarBurger(role='button', aria-label='menu', aria-expanded='false')
|
||||
span(aria-hidden='true')
|
||||
span(aria-hidden='true')
|
||||
span(aria-hidden='true')
|
||||
.navbar-menu#navBarMenu
|
||||
.navbar-start
|
||||
.navbar-end
|
||||
if req.isAuthenticated()
|
||||
if req.user._id === '_CCUNKNOWN'
|
||||
.navbar-item
|
||||
a.button.is-primary(href=`${_CC.config.base}login`)= lang('NAVBAR_LOGIN')
|
||||
else
|
||||
.navbar-item.has-dropdown.is-hoverable
|
||||
a.navbar-link= req.user._id
|
||||
.navbar-dropdown
|
||||
.navbar-item
|
||||
+navBarLink(`${_CC.config.base}wishlist/${req.user._id}`, lang('NAVBAR_WISHLIST'))
|
||||
.navbar-item
|
||||
+navBarLink(`${_CC.config.base}profile`, lang('NAVBAR_PROFILE'))
|
||||
if req.user.admin
|
||||
+navBarLink(`${_CC.config.base}admin-settings`, lang('NAVBAR_ADMIN'))
|
||||
hr.navbar-divider
|
||||
.navbar-item
|
||||
form#logoutForm(action=`${_CC.config.base}logout`, method='POST')
|
||||
button.button.is-warning(type='submit')= lang('NAVBAR_LOGOUT')
|
||||
script(src=`${_CC.config.base}js/nav.js`)
|
||||
+navBarLink(`${_CC.config.base}admin-settings`, lang('NAVBAR_ADMIN'))
|
||||
.navbar-item
|
||||
+navBarLink(`${_CC.config.base}logout`, lang('NAVBAR_LOGOUT'))
|
||||
|
||||
script(src=`${_CC.config.base}js/nav.js`)
|
||||
|
|
|
@ -39,14 +39,27 @@ block content
|
|||
figure(style='width: 100%; margin: 0;')
|
||||
img(src=item.image, style='width: 100%; max-height: 20em; object-fit: contain;')
|
||||
if item.url
|
||||
td.ugc(data-label='Name')
|
||||
td.ugc(data-label=lang('WISHLIST_NAME'))
|
||||
if item.pledgedBy && item.addedBy != req.user._id
|
||||
strike
|
||||
a(
|
||||
href=item.url,
|
||||
rel='noopener noreferrer',
|
||||
target='_blank'
|
||||
)= (item.name ? item.name : item.url)
|
||||
else
|
||||
td.ugc(data-label=lang('WISHLIST_NAME'))= item.name
|
||||
a(
|
||||
href=item.url,
|
||||
rel='noopener noreferrer',
|
||||
target='_blank'
|
||||
)= (item.name ? item.name : item.url)
|
||||
else
|
||||
td.ugc(data-label='Name')
|
||||
if item.pledgedBy
|
||||
strike
|
||||
span= item.name
|
||||
else
|
||||
span= item.name
|
||||
if _CC.config.wishlist.note.markdown
|
||||
td.ugc(data-label=lang('WISHLIST_NOTE'))
|
||||
div!= item.note
|
||||
|
@ -143,11 +156,23 @@ block content
|
|||
if item.price
|
||||
span= ' '
|
||||
if item.url
|
||||
if item.pledgedBy && item.addedBy != req.user._id
|
||||
strike
|
||||
a(
|
||||
href=item.url,
|
||||
rel='noopener noreferrer',
|
||||
target='_blank'
|
||||
)= (item.name ? item.name : item.url)
|
||||
else
|
||||
a(
|
||||
href=item.url,
|
||||
rel='noopener noreferrer',
|
||||
target='_blank'
|
||||
)= (item.name ? item.name : item.url)
|
||||
else
|
||||
if item.pledgedBy
|
||||
strike
|
||||
span= item.name
|
||||
else
|
||||
span= item.name
|
||||
hr
|
||||
|
@ -163,7 +188,7 @@ block content
|
|||
style='height: 100%;'
|
||||
readonly
|
||||
)= item.note
|
||||
span.overflowWrap=lang('WISHLIST_ADDED_BY', item.addedBy)
|
||||
span.overflowWrap=lang('WISHLIST_ADDED_BY_USER', item.addedBy)
|
||||
hr
|
||||
div
|
||||
if req.params.user !== req.user._id && !item.pledgedBy
|
||||
|
|
|
@ -54,13 +54,12 @@ block content
|
|||
a(href=`${_CC.config.base}wishlist/${req.user._id}`, style='color: #4a4a4a;')
|
||||
.columns.is-mobile
|
||||
if config.pfp
|
||||
.column.is-1(style='overflow: hidden; padding: 0 0.5rem 0 0;')
|
||||
.column.is-4-mobile.is-2-tablet.is-2-desktop(style='overflow: hidden; padding: 0 0.5rem 0 0;')
|
||||
figure.image.is-square.is-fullwidth.is-marginless(style='display: inline-block;')
|
||||
img.is-rounded.is-fullwidth(src=req.user.pfp, style='object-fit: cover;')
|
||||
.column
|
||||
span
|
||||
span=lang('WISHLISTS_COUNTS_SELF', req.user._id)
|
||||
progress.progress(value=1, max=1)
|
||||
span!=lang('WISHLISTS_COUNTS_SELF', req.user._id)
|
||||
+wishlistDetails(req.user.wishlist, req.user._id)
|
||||
each user in users
|
||||
if req.user._id !== user.id
|
||||
|
@ -69,11 +68,11 @@ block content
|
|||
a(href=`${_CC.config.base}wishlist/${user.id}`, style='color: #4a4a4a;')
|
||||
.columns.is-mobile
|
||||
if config.pfp
|
||||
.column.is-1(style='overflow: hidden; padding: 0 0.5rem 0 0;')
|
||||
.column.is-4-mobile.is-2-tablet.is-2-desktop(style='overflow: hidden; padding: 0 0.5rem 0 0;')
|
||||
figure.image.is-square.is-fullwidth.is-marginless(style='display: inline-block;')
|
||||
img.is-rounded.is-fullwidth(src=user.doc.pfp, style='object-fit: cover;')
|
||||
.column
|
||||
span= lang('WISHLISTS_COUNTS', user.id, totals(user.doc.wishlist).pledged, user.doc.wishlist.length)
|
||||
span!= lang('WISHLISTS_COUNTS', user.id, totals(user.doc.wishlist).pledged, user.doc.wishlist.length)
|
||||
progress.progress.is-info(value=totals(user.doc.wishlist).pledged, max=user.doc.wishlist.length)
|
||||
+wishlistDetails(user.doc.wishlist)
|
||||
script.
|
||||
|
|
Loading…
Reference in a new issue