mirror of https://github.com/VERT-sh/VERT.git
fix build error
This commit is contained in:
parent
47d266f35d
commit
64ab1288f4
|
|
@ -1,5 +1,4 @@
|
||||||
import type { Converter } from "$lib/converters/converter.svelte";
|
import type { Converter } from "$lib/converters/converter.svelte";
|
||||||
import { error } from "$lib/logger";
|
|
||||||
import { addToast } from "$lib/store/ToastProvider";
|
import { addToast } from "$lib/store/ToastProvider";
|
||||||
|
|
||||||
export class VertFile {
|
export class VertFile {
|
||||||
|
|
@ -47,7 +46,7 @@ export class VertFile {
|
||||||
res = await this.converter.convert(this, this.to);
|
res = await this.converter.convert(this, this.to);
|
||||||
this.result = res;
|
this.result = res;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
error(["files"], "Error converting file", err);
|
console.error(err);
|
||||||
addToast("error", `Error converting file: ${this.file.name}`);
|
addToast("error", `Error converting file: ${this.file.name}`);
|
||||||
this.result = null;
|
this.result = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { error } from "$lib/logger";
|
import { error, log } from "$lib/logger";
|
||||||
import * as About from "$lib/sections/about";
|
import * as About from "$lib/sections/about";
|
||||||
import { InfoIcon } from "lucide-svelte";
|
import { InfoIcon } from "lucide-svelte";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
const cachedContribs = sessionStorage.getItem("ghContribs");
|
const cachedContribs = sessionStorage.getItem("ghContribs");
|
||||||
if (cachedContribs) {
|
if (cachedContribs) {
|
||||||
ghContribs = JSON.parse(cachedContribs);
|
ghContribs = JSON.parse(cachedContribs);
|
||||||
console.log("Loaded GitHub contributors from cache");
|
log(["about"], "Loaded GitHub contributors from cache");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue