Open MacFJA opened 4 months ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
sveltesociety-dev | β Failed (Inspect) | Jul 8, 2024 5:14pm | ||
sveltesociety-dev-preview | β Failed (Inspect) | Jul 8, 2024 5:14pm | ||
sveltesociety-v2 | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 8, 2024 5:14pm |
π― Changes
This PR add "service" to load data from sources (internal and external).
Implemented source:
[^1]: There is no public API, the probability that the current code won't work in a near future is pretty high :disappointed: [^2]: Need to be connected to the database
Usage
Server side
The input data is minimal: the type of data and an identifier.
Each source will be interrogated if it can handle the data
All services will be asked if they can handle a
package
, that can be found with anidentifier
(so Youtube service will respond immediately that it can't andpackage
)Render side
To display a data from the services, there are 5 components:
All components are design to accept the same parameter as the result of the services, so using them is simple: +page.svelte