feat: integrate SvelteKit for seamless navigation and improved data loading
This commit is contained in:
18
frontend/.svelte-kit/output/server/entries/pages/_page.ts.js
Normal file
18
frontend/.svelte-kit/output/server/entries/pages/_page.ts.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { a as api } from "../../chunks/api.js";
|
||||
async function load() {
|
||||
try {
|
||||
const plugins = await api.getPlugins();
|
||||
return {
|
||||
plugins
|
||||
};
|
||||
} catch (error) {
|
||||
console.error("Failed to load plugins:", error);
|
||||
return {
|
||||
plugins: [],
|
||||
error: "Failed to load plugins"
|
||||
};
|
||||
}
|
||||
}
|
||||
export {
|
||||
load
|
||||
};
|
||||
Reference in New Issue
Block a user