AAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
continuous-integration/drone/push Build is passing Details

master
37b7 3 weeks ago
parent da78fb284f
commit b44e29d4d8

@ -23,7 +23,7 @@
import { TEXTS } from '~/config/content';
import { PATHS , DEFAULT_IMAGES} from '~/config/paths';
export const handleIconError = (payload: string | Event) => {
const handleIconError = (payload: string | Event) => {
if (payload instanceof Event) {
const target = payload.target as HTMLImageElement;
target.src = DEFAULT_IMAGES.ICON;

@ -85,23 +85,23 @@ import { PATHS , DEFAULT_IMAGES} from '~/config/paths';
import { projects } from '~/config/projects';
import type { Project } from '~/types/project';
export const handleLightboxImageError = (event: Event): void => {
const handleLightboxImageError = (event: Event): void => {
const target = event.target as HTMLImageElement;
target.src = DEFAULT_IMAGES.PROJECT;
};
export const handleImageError = (event: Event): void => {
const handleImageError = (event: Event): void => {
const target = event.target as HTMLImageElement;
target.src = DEFAULT_IMAGES.PROJECT;
};
export const handleIconError = (event: Event): void => {
const handleIconError = (event: Event): void => {
const target = event.target as HTMLImageElement;
target.src = DEFAULT_IMAGES.ICON;
};
export const useProjectDetail = (id: number) => {
const useProjectDetail = (id: number) => {
const { $theme } = useNuxtApp();
const showLightbox = ref(false);
const currentImageIndex = ref(0);

Loading…
Cancel
Save