mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +02:00
chore: use new imports
This commit is contained in:
parent
0b09c5b14e
commit
e49e4dbbf1
3 changed files with 5 additions and 4 deletions
|
@ -3,8 +3,8 @@ import { icon, library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import { faSort, faSortDown, faSortUp } from '@fortawesome/free-solid-svg-icons'
|
import { faSort, faSortDown, faSortUp } from '@fortawesome/free-solid-svg-icons'
|
||||||
import Xmark from '~/icons/XmarkIcon.astro'
|
import Xmark from '~/icons/XmarkIcon.astro'
|
||||||
import { type ZenTheme } from '~/mods'
|
import { type ZenTheme } from '~/mods'
|
||||||
|
import { type Locale } from '~/types/i18n'
|
||||||
import { getPath } from '~/utils/i18n'
|
import { getPath } from '~/utils/i18n'
|
||||||
import { type Locale } from '~/constants/i18n'
|
|
||||||
|
|
||||||
// Add icons to the library
|
// Add icons to the library
|
||||||
library.add(faSort, faSortUp, faSortDown)
|
library.add(faSort, faSortUp, faSortDown)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { type Locale } from '~/constants/i18n'
|
import { type Locale } from '~/types/i18n'
|
||||||
import { getUI } from '~/utils/i18n'
|
import { getUI } from '~/utils/i18n'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,12 +7,13 @@ import InfoIcon from '~/icons/InfoIcon.astro'
|
||||||
import Layout from '~/layouts/Layout.astro'
|
import Layout from '~/layouts/Layout.astro'
|
||||||
import { getAllMods, getAuthorLink, getLocalizedDate } from '~/mods'
|
import { getAllMods, getAuthorLink, getLocalizedDate } from '~/mods'
|
||||||
import { getPath, getUI } from '~/utils/i18n'
|
import { getPath, getUI } from '~/utils/i18n'
|
||||||
import { getLocale, getOtherLocales } from '~/utils/i18n'
|
import { getLocale, otherLocales } from '~/utils/i18n'
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const mods = await getAllMods()
|
const mods = await getAllMods()
|
||||||
|
|
||||||
return mods.flatMap(mod => [
|
return mods.flatMap(mod => [
|
||||||
...getOtherLocales().map(locale => ({
|
...otherLocales.map(locale => ({
|
||||||
params: {
|
params: {
|
||||||
slug: mod.id,
|
slug: mod.id,
|
||||||
locale: locale,
|
locale: locale,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue