2024-01-28 20:22:05 +02:00
import type { ThemeDefinition } from 'vuetify'
2024-01-27 18:17:30 +02:00
import packageJSON from './package.json'
interface TitleConfig {
full : string
short : string
}
interface BuildConfig {
date? : string
version : string
}
2024-01-28 20:22:05 +02:00
interface ThemeConfig {
file : string
cookie : string
default : string
light : string
dark : string
themes : Record < string , ThemeDefinition >
}
2024-01-27 18:17:30 +02:00
type config = {
url : string
2024-02-18 10:30:50 +02:00
shortener : string
2024-01-27 18:17:30 +02:00
name : string
title : TitleConfig
description : string
locale : string
build : BuildConfig
2024-01-28 20:22:05 +02:00
theme : ThemeConfig
2024-01-27 18:17:30 +02:00
}
export default {
url : 'https://enderman.ch' ,
2024-02-18 10:30:50 +02:00
shortener : 'https://go.enderman.ch' ,
2024-01-27 18:17:30 +02:00
name : packageJSON.name || 'app' ,
title : {
full : "Enderman's Website" ,
short : 'Enderman' ,
} ,
description :
'A software engineer, a malware enthusiast and, most importantly, a weird tall creature. I have over 300K subscribers on YouTube and over 20K followers on Twitter.' ,
locale : 'en' ,
build : {
date : new Date ( ) . toISOString ( ) . split ( 'T' ) [ 0 ] ,
version : packageJSON.version || '0.0.0' ,
} ,
2024-01-28 20:22:05 +02:00
theme : {
file : './assets/styles/vuetify.scss' ,
cookie : 'color-scheme' ,
2024-02-18 10:30:50 +02:00
default : 'chocolate' ,
2024-01-28 20:22:05 +02:00
light : 'vanilla' ,
dark : 'chocolate' ,
themes : {
vanilla : {
dark : false ,
colors : {
background : '#FFFFFF' ,
surface : '#FFFFFF' ,
primary : '#6200EE' ,
'primary-darken-1' : '#3700B3' ,
secondary : '#03DAC6' ,
'secondary-darken-1' : '#018786' ,
error : '#B00020' ,
info : '#2196F3' ,
success : '#4CAF50' ,
warning : '#FB8C00' ,
} ,
} ,
chocolate : {
dark : true ,
colors : {
background : '#000' ,
surface : '#000' ,
primary : '#795548' ,
'primary-darken-1' : '#5D4037' ,
secondary : '#FF9800' ,
'secondary-darken-1' : '#F57C00' ,
error : '#B00020' ,
info : '#2196F3' ,
success : '#4CAF50' ,
warning : '#FB8C00' ,
} ,
} ,
} ,
} ,
2024-01-27 18:17:30 +02:00
} satisfies config as config