refactor: switch posts to barrel export
This commit is contained in:
47 files changed
+424
-528
No files matched your search
@@ -1,19 +0,0 @@
|
||||
export const isImage = (url: string | undefined) => {
|
||||
try {
|
||||
if (!url) return false
|
||||
|
||||
return /\.(jpeg|jpg|gif|png|svg|bmp|webp|avif)/i.test(url)
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
export const isVideo = (url: string | undefined) => {
|
||||
try {
|
||||
if (!url) return false
|
||||
|
||||
return /\.(mp4|mov|webm|mkv|avi)/i.test(url)
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { env } from '$env/dynamic/public'
|
||||
import type { Theme, ThemeColors } from './colors.svelte'
|
||||
import type { Theme, ThemeColors } from './theme.svelte'
|
||||
|
||||
const PHOTON_DEFAULT = {
|
||||
slate: {
|
||||
File renamed without changes.
Reference in new issue
Block a user