Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace all server-side load functions by universal load functions #1699

Open
6 tasks
Tracked by #1700
nsarrazin opened this issue Feb 8, 2025 · 0 comments
Open
6 tasks
Tracked by #1700
Labels
back This issue is related to the Svelte backend or the DB enhancement New feature or request front This issue is related to the front-end of the app.

Comments

@nsarrazin
Copy link
Collaborator

nsarrazin commented Feb 8, 2025

We need to replace all the +page.server.ts and +layout.server.ts by +page.ts and +layout.ts. In order to do this, we need to create more routes under src/routes/api with +server.ts GET endpoints, which we can then fetch inside the universal load functions.

The following server-side load functions need to be replaced:

  • - src/routes/+layout.server.ts
  • - src/routes/assistants/+page.server.ts
  • - src/routes/conversation/[id]/+page.server.ts
  • - src/routes/settings/+layout.server.ts
  • - src/routes/tools/+page.server.ts
  • - src/routes/tools/[toolId]/+layout.server.ts
@nsarrazin nsarrazin added back This issue is related to the Svelte backend or the DB enhancement New feature or request front This issue is related to the front-end of the app. labels Feb 8, 2025
@nsarrazin nsarrazin added this to the Make chat-ui run in tauri milestone Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB enhancement New feature or request front This issue is related to the front-end of the app.
Projects
None yet
Development

No branches or pull requests

1 participant