Merge branch 'main' of gwei.cz:ethbrno/eb2-website
ci/woodpecker/push/woodpecker Pipeline was successful Podrobnosti

This commit is contained in:
Adam Sobotka 2022-10-17 08:18:09 +02:00
revize 03c2fb5b01
7 změnil soubory, kde provedl 47 přidání a 7 odebrání

3
.env.example Normal file
Zobrazit soubor

@ -0,0 +1,3 @@
IPFS_CLUSTER_HOST=https://my-ipfs-cluster.example
IPFS_CLUSTER_USER=my_username
IPFS_CLUSTER_PASS=my_password

Zobrazit soubor

@ -16,7 +16,12 @@ pipeline:
branch: [main]
deploy_ipfs:
image: ipfs/ipfs-cluster
image: node
environment:
IPFS_CLUSTER_HOST: https://ipfs-cluster.gwei.cz
IPFS_CLUSTER_USER: ethbrno
commands:
- ipfs-cluster-ctl --host /dns/ipfs-cluster.gwei.cz/tcp/443 --basic-auth ethbrno:$IPFS_CLUSTER_PASS add -r -w build/
- npx -y --loglevel=error github:burningtree/ipfs-cluster-deploy ./build ethbrno-web
secrets: [IPFS_CLUSTER_PASS]
when:
branch: [main]

Zobrazit soubor

@ -3,7 +3,11 @@
Website is created using [SvelteKit](https://kit.svelte.dev/) and deployed as a static application to these addresses:
* [ethbrno.cz](https://ethbrno.cz) (self-hosted @ [gwei.cz](https://gwei.cz))
* [mirror.ethbrno.cz](https://mirror.ethbrno.cz/) (mirror @ [Netlify](https://www.netlify.com/))
* IPFS network - the url is changing (example: [bafybeiddx4e2yyur3kjyppcvcg2nb7yxrxs2b2y7lfe4pgekgwpjwtsh7y.ipfs.gwei.cz](https://bafybeiddx4e2yyur3kjyppcvcg2nb7yxrxs2b2y7lfe4pgekgwpjwtsh7y.ipfs.gwei.cz))
The [IPFS](https://ipfs.io/) addresses of the major versions are stored directly in the `ethbrno.eth` [ENS](https://ens.domains/) record. You can access the site using these gateways:
* [ethbrno.eth.link](https://ethbrno.eth.link)
* [ethbrno.eth.limo](https://ethbrno.eth.limo)
## Authors
* vorcigernix

16
package-lock.json vygenerováno
Zobrazit soubor

@ -7,6 +7,9 @@
"": {
"name": "eb2-website",
"version": "0.0.1",
"dependencies": {
"moment": "^2.29.4"
},
"devDependencies": {
"@playwright/test": "^1.25.0",
"@sveltejs/adapter-auto": "next",
@ -2231,6 +2234,14 @@
"node": ">=10"
}
},
"node_modules/moment": {
"version": "2.29.4",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
"engines": {
"node": "*"
}
},
"node_modules/mri": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
@ -5112,6 +5123,11 @@
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
"dev": true
},
"moment": {
"version": "2.29.4",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
},
"mri": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",

Zobrazit soubor

@ -9,7 +9,8 @@
"test": "playwright test",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"make-data": "node ./scripts/make-data.js"
"make-data": "node ./scripts/make-data.js",
"ipfs-deploy": "npx -y --loglevel=error github:burningtree/ipfs-cluster-deploy ./build ethbrno-web"
},
"devDependencies": {
"@playwright/test": "^1.25.0",
@ -29,5 +30,8 @@
"tailwindcss": "^3.1.8",
"vite": "^3.1.0"
},
"type": "module"
"type": "module",
"dependencies": {
"moment": "^2.29.4"
}
}

Zobrazit soubor

@ -1,6 +1,9 @@
<script>
import logo from '$lib/assets/logo_black.svg';
import cityscape from '$lib/assets/cityscape2.png';
import moment from 'moment';
export let data;
</script>
<footer class="bg-black mx-auto">
@ -9,7 +12,7 @@
</div>
<div class="bg-white flex flex-col justify-end">
<div
class="container mx-auto px-4 flex flex-wrap flex-col sm:flex-row justify-center items-center h-60"
class="container mx-auto px-4 flex flex-wrap flex-col sm:flex-row justify-center items-center mt-20"
>
<div>
<img src={logo} class=" h-6" alt="logo" />
@ -43,5 +46,8 @@
</div>
</div>
</div>
<div class="text-black text-center my-16 text-sm opacity-50 leading-7">
Built with <a href="https://kit.svelte.dev/" target="_blank" class="external">SvelteKit</a>
- <a href="https://git.gwei.cz/ethbrno/eb2-website" target="_blank" class="external">Source code</a> - Generated @ {moment(new Date(data.time)).format("YYYY-MM-DD HH:mm:SS")} (UTC+2)</div>
</div>
</footer>

Zobrazit soubor

@ -2,8 +2,10 @@
import '../app.css';
import Navigation from '$lib/Navigation.svelte';
import Footer from '$lib/Footer.svelte';
export let data;
</script>
<Navigation open={false} />
<slot />
<Footer />
<Footer data={data} />