mirror of https://github.com/hykilpikonna/AquaDX
parent
bcc2d286ed
commit
6913f7bdf5
|
@ -1,6 +1,7 @@
|
|||
|
||||
export const AQUA_HOST = 'https://aquanet.example.com/aqua'
|
||||
export const DATA_HOST = 'https://aquanet.example.com'
|
||||
export const IMG_HOST = 'https://aquadx.net/user-uploads'
|
||||
|
||||
// This will be displayed for users to connect from the client
|
||||
export const AQUA_CONNECTION = 'aqua.example.com'
|
||||
|
@ -10,4 +11,6 @@ export const DISCORD_INVITE = 'https://discord.gg/FNgveqFF7s'
|
|||
|
||||
// UI
|
||||
export const FADE_OUT = { duration: 200 }
|
||||
export const FADE_IN = { delay: 400 }
|
||||
export const FADE_IN = { delay: 400 }
|
||||
export const DEFAULT_PFP = "/assets/imgs/no_profile.png"
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ export interface UserMe {
|
|||
regTime: number
|
||||
profileLocation: string
|
||||
profileBio: string
|
||||
profilePicture: string
|
||||
emailConfirmed: boolean
|
||||
ghostCard: Card
|
||||
cards: Card[]
|
||||
|
|
|
@ -13,6 +13,7 @@ import moment from 'moment/moment'
|
|||
import CalHeatmap from 'cal-heatmap'
|
||||
// @ts-expect-error Cal-heatmap does not have proper types
|
||||
import CalTooltip from 'cal-heatmap/plugins/Tooltip'
|
||||
import { DEFAULT_PFP } from "./config";
|
||||
|
||||
export function title(t: string) {
|
||||
document.title = `AquaNet - ${t}`
|
||||
|
@ -98,9 +99,5 @@ export const CHARTJS_OPT: ChartOptions<'line'> = {
|
|||
},
|
||||
}
|
||||
|
||||
export const pfpNotFound = (e: Event) => {
|
||||
(e.target as HTMLImageElement).src = "/assets/imgs/no_profile.png"
|
||||
}
|
||||
export const coverNotFound = (e: Event) => {
|
||||
(e.target as HTMLImageElement).src = "/assets/imgs/no_cover.jpg"
|
||||
}
|
||||
export const pfpNotFound = (e: Event) => (e.target as HTMLImageElement).src = DEFAULT_PFP
|
||||
export const coverNotFound = (e: Event) => (e.target as HTMLImageElement).src = "/assets/imgs/no_cover.jpg"
|
||||
|
|
Loading…
Reference in New Issue