feat: self-host TweetNaCl, add server-side PoW captcha (PHP), activate categoriesService

This commit is contained in:
2026-02-06 14:04:24 +01:00
parent 1aa723728e
commit ebb5b2f86d
13 changed files with 210 additions and 20 deletions

View File

@@ -2,6 +2,7 @@ import { t, i18n } from '../../i18n.js'
import { router } from '../../router.js'
import { auth } from '../../services/auth.js'
import { directus } from '../../services/directus.js'
import { categoriesService } from '../../services/categories.js'
import { SUPPORTED_CURRENCIES, getDisplayCurrency } from '../../services/currency.js'
import { escapeHTML } from '../../utils/helpers.js'
import '../location-picker.js'
@@ -181,7 +182,7 @@ class PageCreate extends HTMLElement {
async loadCategories() {
try {
this.categories = await directus.getCategories()
this.categories = await categoriesService.getAll()
} catch (e) {
console.error('Failed to load categories:', e)
this.categories = []