move json and import it as a local resource
ci/woodpecker/push/woodpecker Pipeline was successful
Podrobnosti
ci/woodpecker/push/woodpecker Pipeline was successful
Podrobnosti
This commit is contained in:
rodič
7323217e90
revize
1612a25449
|
@ -4,7 +4,7 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "js-yaml ./data/data.yaml > ./static/data.json && vite build",
|
||||
"build": "js-yaml ./data/data.yaml > ./src/lib/data.json && vite build",
|
||||
"preview": "vite preview",
|
||||
"test": "playwright test",
|
||||
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"contributors": [
|
||||
{
|
||||
"id": "rachel-oleary",
|
||||
"name": "Rachel-Rose O'Leary",
|
||||
"twitter": "lunar_mining",
|
||||
"bio": "DarkFi core dev, writer",
|
||||
"roles": [
|
||||
"speaker"
|
||||
],
|
||||
"desc": "Rachel-Rose O’Leary is a core dev at lunarpunk layer 1, DarkFi. She is also co-editor of the philosophy journal Agorism in the 21st Century. As a writer she has published in egirlcapital, CoinDesk, Defiant, Wired and elsewhere under anonymous accounts. She believes privacy is necessary for communities to define their own destinies.\n"
|
||||
},
|
||||
{
|
||||
"id": "artem-vorotnikov",
|
||||
"name": "Artem Vorotnikov",
|
||||
"twitter": "vorot93",
|
||||
"bio": "Ethereum Core Developer, creator of Akula",
|
||||
"roles": [
|
||||
"speaker"
|
||||
],
|
||||
"remote": true
|
||||
},
|
||||
{
|
||||
"id": "pavol-luptak",
|
||||
"name": "Pavol Luptak",
|
||||
"nickname": "wilder",
|
||||
"twitter": "wilderco",
|
||||
"bio": "Nethemba, Hacktrophy, liberation.travel",
|
||||
"roles": [
|
||||
"speaker"
|
||||
],
|
||||
"remote": true
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,10 +1,13 @@
|
|||
/** @type {import('./$types').PageLoad} */
|
||||
export const prerender = true;
|
||||
//import { contributors, sponsors } from "$lib/data.json";
|
||||
import { contributors } from "$lib/data.json";
|
||||
|
||||
export async function load({ fetch }) {
|
||||
//const { contributors, sponsors } = await fetch(`data.json`).then((r) => r.json());
|
||||
const { contributors, sponsors } = await fetch(`https://raw.githubusercontent.com/ethbrno/data/main/data.json`).then((r) => r.json());
|
||||
//const { contributors, sponsors } = await fetch(`https://raw.githubusercontent.com/ethbrno/data/main/data.json`).then((r) => r.json());
|
||||
return {
|
||||
data: { contributors, sponsors }
|
||||
//data: { contributors, sponsors }
|
||||
data: { contributors }
|
||||
};
|
||||
}
|
Načítá se…
Odkázat v novém úkolu