feat: trying to add hashes to scripts
This commit is contained in:
@@ -5,7 +5,6 @@ import { createNewArticle } from "@islands/KMenu/commands/create_article.ts";
|
||||
import { getCookie } from "@lib/string.ts";
|
||||
import { addSeriesInfo } from "@islands/KMenu/commands/add_series_infos.ts";
|
||||
import { createNewSeries } from "@islands/KMenu/commands/create_series.ts";
|
||||
import { updateAllRecommendations } from "@islands/KMenu/commands/create_recommendations.ts";
|
||||
import { createNewRecipe } from "@islands/KMenu/commands/create_recipe.ts";
|
||||
import { enhanceArticleInfo } from "@islands/KMenu/commands/enhance_article_infos.ts";
|
||||
|
||||
|
||||
@@ -42,7 +42,11 @@ export const addMovieInfos: MenuEntry = {
|
||||
globalThis.location.reload();
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
})),
|
||||
@@ -53,7 +57,11 @@ export const addMovieInfos: MenuEntry = {
|
||||
state.activeState.value = "normal";
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
visible: () => {
|
||||
|
||||
@@ -42,7 +42,11 @@ export const addSeriesInfo: MenuEntry = {
|
||||
//window.location.reload();
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
})),
|
||||
@@ -53,7 +57,11 @@ export const addSeriesInfo: MenuEntry = {
|
||||
state.activeState.value = "normal";
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
visible: () => {
|
||||
|
||||
@@ -66,7 +66,11 @@ export const createNewMovie: MenuEntry = {
|
||||
globalThis.location.href = "/movies/" + movie.name;
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -75,7 +79,11 @@ export const createNewMovie: MenuEntry = {
|
||||
state.activeMenu.value = "input_link";
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 500);
|
||||
|
||||
|
||||
@@ -68,7 +68,11 @@ export const createNewSeries: MenuEntry = {
|
||||
globalThis.location.href = "/series/" + series.name;
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -78,7 +82,11 @@ export const createNewSeries: MenuEntry = {
|
||||
state.activeMenu.value = "input_link";
|
||||
} catch (e) {
|
||||
state.activeState.value = "error";
|
||||
state.loadingText.value = e.message;
|
||||
if (e instanceof Error) {
|
||||
if ("message" in e) {
|
||||
state.loadingText.value = e.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 500);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user