From 93761378133fd7f6827167a54e2fc2e2304946e2 Mon Sep 17 00:00:00 2001 From: KimlikDAO-bot Date: Sat, 1 Feb 2025 21:28:30 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=92=EF=B8=8F=20Update=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 51 ++++++++++++++++++++----------------- components/chains/chains.js | 12 ++++----- landing/Learn2Earn.jsx | 2 +- landing/Reports.jsx | 4 +-- landing/network/Network.css | 6 ++--- landing/network/Network.jsx | 18 +++++++------ landing/page.css | 4 +-- landing/page.jsx | 4 +-- 8 files changed, 53 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index a62330b..1dbfb5a 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,46 @@

 KimlikDAO dApp

-## Dizinler -Her http request gerektiren bölümü 'sayfa' olarak adlandırıyoruz. -Her sayfa için gerekli dosyalar http `pathname`'i ile aynı isimli -bir dizinde toplanıyor. +# 👋 Introduction -Buna istisna `/` pathindeki ana sayfa; bu sayfaya `ana` dizinini -ayırıyoruz. +Using the KimlikDAO dApp, you can mint your KPass by interacting with the +KimlikDAO network and inscribe it on one of the blockchains we support +(such as Ethereum, Arbitrum, Mina, etc). -Sayfaların bazı `altbirim`leri olabilir; bunlar sayfa içindeki sınırları belli -bileşenler ve bu bileşenlere ait her dosya altbirimle aynı adda bir dizinde -duruyor. Örneğin `al/` sayfasının `tanışma` ve `ödeme` gibi altbirimleri -`al/tanışma` ve `al/ödeme` dizininde duruyor. +The KimlikDAO dApp is truly decentralized: you can run it locally, deploy it +on your own server, or use the reference deployment at [kimlikdao.org](https://kimlikdao.org). -Birden çok yerde kullanılabilen bileşenlere ise `birim` adını -veriyoruz ve bunları `birim/` dizinine koyuyoruz. +The dApp will connect to the KimlikDAO network nodes and the node discovery will be initiated +through the seeed nodes at `node.kimlikdao.org`, `kdao-node.yenibank.org`, `kdao-node.blinkbridge.xyz`. +To modify the seed nodes, edit the list in `lib/node/network.js`. -## Kullanım +For blockchain nodes, the dApp has no hardcoded rpc urls and will rely on your wallet's provider. -Yazılımcıların dApp'i test etmesi için gereken adımlar: +## 🧑‍💻 Developer Guide -- `git clone --recursive https://github.com/KimlikDAO/dapp` +The KimlikDAO dApp is built with our in-house framework, [kastro](https://github.com/KimlikDAO/kimlikdao-js/tree/ana/kastro). Kastro provides a familiar react-like experience yet allows us to build +highly optimized and lightweight fontends by pushing as much work as possible to the compile time. -- `bun i` gerekli build araçlarını ve dev sunucusunu yükler +To run the dApp, follow these steps: -- `bun run dev` dev sunucuyu çalıştırır. - - http://localhost:8787/ +- `git clone --recursive https://github.com/KimlikDAO/dapp` -dApp 3 farklı şekilde çalıştırılabilir: +- `bun i` install the required npm packages - - `bun run dev` en az işi yaparak en hızlı şekilde dApp'i yükler - - `bun run compiled` istenen sayfa ve assetleri derleyip yollar - - `bun run canary` deploy için hazırlanmış `crate`'i sunar +- `bun dev` run the dev server + - http://localhost:8787/ -Deploy için gerekli crate `bun run build` ile oluşturulur. `canary` ve `build` için npm paketlerine ek -olarak şu araçlar gerekli: +The dApp can also be run in `compiled` and `canary` modes. +To run the dApp in these modes, we need other tools installed: ```shell +# brew dependencies brew install pngcrush brotli zopfli woff2 webp librsvg +# pip dependencies pip install fonttools ``` + +With these dependencies installed, we can run the dApp in `compiled` and `canary` modes: + +- `bun compiled` compile the required pages and assets +- `bun canary` serve the `bundle` prepared for deployment diff --git a/components/chains/chains.js b/components/chains/chains.js index 4a77c4b..52840d2 100644 --- a/components/chains/chains.js +++ b/components/chains/chains.js @@ -20,7 +20,7 @@ const ChainInfos = { [ChainId.x1]: { uiName: "Ethereum", explorer: "etherscan.io", - tokenKodu: "ETH", + tokenCode: "ETH", token: "ether", tokenSuffix: dom.i18n({ tr: ["’den", "’e"], en: [] }), rpcUrl: "cloudflare-eth.com", @@ -28,21 +28,21 @@ const ChainInfos = { [ChainId.xa86a]: { uiName: "Avalanche", explorer: "snowtrace.io", - tokenKodu: "AVAX", + tokenCode: "AVAX", tokenSuffix: dom.i18n({ tr: ["’tan", "’a"], en: [] }), rpcUrl: "api.avax.network/ext/bc/C/rpc", }, [ChainId.x89]: { uiName: "Polygon", explorer: "polygonscan.com", - tokenKodu: "MATIC", + tokenCode: "MATIC", tokenSuffix: dom.i18n({ tr: ["’ten", "’e"], en: [] }), rpcUrl: "polygon-rpc.com" }, [ChainId.xa4b1]: { uiName: "Arbitrum One", explorer: "arbiscan.io", - tokenKodu: "ETH", + tokenCode: "ETH", token: "ether", tokenSuffix: dom.i18n({ tr: ["’den", "’e"], en: [] }), rpcUrl: "arb1.arbitrum.io/rpc", @@ -50,14 +50,14 @@ const ChainInfos = { [ChainId.x38]: { uiName: "BNB Chain", explorer: "bscscan.com", - tokenKodu: "BNB", + tokenCode: "BNB", tokenSuffix: dom.i18n({ tr: ["’den", "’ye"], en: [] }), rpcUrl: "bsc-dataseed3.binance.org" }, [ChainId.MinaMainnet]: { uiName: "Mina", explorer: "minaexplorer:.com", - tokenKodu: "MINA", + tokenCode: "MINA", tokenSuffix: dom.i18n({ tr: ["’dan", "’ya"], en: [] }), rpcUrl: "api.minaexplorer:.com" }, diff --git a/landing/Learn2Earn.jsx b/landing/Learn2Earn.jsx index d2060c2..4ee4ace 100644 --- a/landing/Learn2Earn.jsx +++ b/landing/Learn2Earn.jsx @@ -30,7 +30,7 @@ const Learn2Earn = () => ( topla. Çok yakında! }}
- {{ + {{ en: "Learn & earn (Soon!)", tr: "Öğren ve kazan (Yakında!)" }} diff --git a/landing/Reports.jsx b/landing/Reports.jsx index 56ccc5c..388a585 100644 --- a/landing/Reports.jsx +++ b/landing/Reports.jsx @@ -3,7 +3,7 @@ import Feb25 from "/components/blog/2025.02/birim"; import SharedCss from "/components/ortakcss/birim.css"; const Reports = () => ( -
+
@@ -21,7 +21,7 @@ const Reports = () => ( katıldığımız etkinliklerden, kurduğumuz yeni ortaklıklara tüm gelişmelerini aylık ilerleme raporlarından okuyun. }}
- {{ + {{ en: "All progress reports", tr: "Tüm ilerleme raporları" }} diff --git a/landing/network/Network.css b/landing/network/Network.css index 14f1911..ad1d03f 100644 --- a/landing/network/Network.css +++ b/landing/network/Network.css @@ -22,11 +22,11 @@ #Altıgen {} -.Düğümİmza:hover { +.NodeSignature:hover { opacity: 1; } -.Düğümİmza { +.NodeSignature { align-items: center; border-radius: 15px; color: rgba(10, 10, 100, 0.9); @@ -40,7 +40,7 @@ width: 180px; } -.DüğümNokta { +.NodePoint { width: 10px; height: 10px; border-radius: 10px; diff --git a/landing/network/Network.jsx b/landing/network/Network.jsx index 4661583..62e71d1 100644 --- a/landing/network/Network.jsx +++ b/landing/network/Network.jsx @@ -14,8 +14,8 @@ import { keccak256 } from "/lib/crypto/sha3"; const Node = ({ idx }) => { const shortAddress = (addr) => `0x${addr.slice(0, 8)}...${addr.slice(8, 16)}`; return ( -
-
{shortAddress(keccak256(idx))} +
+
{shortAddress(keccak256(idx))}
); } @@ -65,7 +65,8 @@ const Graph = ({ width }) => { const x = Math.round(cx + r * Math.sin((Math.PI * 2 * i) / n)); const y = Math.round(cy - r * Math.cos((Math.PI * 2 * i) / n)); return (<> - + {NODES[key][0].slice(0, 8)} {NODES[key][1]} ); @@ -75,7 +76,7 @@ const Graph = ({ width }) => { } const Network = () => ( -
+

{{ @@ -86,10 +87,11 @@ const Network = () => ( en: "The contents of each KPass are verified and digitally signed by at least seven independent nodes in the KimlikDAO network, all while fully preserving your privacy.", tr: "KPass’ler birbirinden bağımsız en az 7 KimlikDAO ağı düğümünün onay ve dijital imzası ile üretilebilir. Onay aşamasında veri gizliliğiniz tamamıyla korunur." }}

- {{ - en: "Learn about KimlikDAO nodes", - tr: "KimlikDAO düğümü detayları" - }} + {{ + en: "Learn about KimlikDAO nodes", + tr: "KimlikDAO düğümü detayları" + }}
diff --git a/landing/page.css b/landing/page.css index b238ed7..ae9663c 100644 --- a/landing/page.css +++ b/landing/page.css @@ -9,7 +9,7 @@ /** * Üç sütunlu alt hero */ -.Üçlü { +.ThreeColumn { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); @@ -29,7 +29,7 @@ margin: 100px 0; } -.ÜstBoşluk { +.TopSpaced { margin-top: 30px; } diff --git a/landing/page.jsx b/landing/page.jsx index 619e71a..e9cb327 100644 --- a/landing/page.jsx +++ b/landing/page.jsx @@ -28,8 +28,8 @@ const Chains = [ /** @const {!Object} */ const ChainNotes = { - [ChainId.xa4b1]: { tr: "Ana ağ", en: "Signal chain" }, - [ChainId.MinaMainnet]: { tr: "Yeni ✨", en: "New ✨" }, + [ChainId.xa4b1]: { en: "Signal chain", tr: "Ana ağ" }, + [ChainId.MinaMainnet]: { en: "New ✨", tr: "Yeni ✨" }, }; /** @const {ChainId} */