Skip to content

Commit

Permalink
checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
2qx committed Sep 13, 2023
1 parent 20ac04f commit a17167f
Show file tree
Hide file tree
Showing 119 changed files with 2,965 additions and 30 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/.cd-chi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy .cash

on:
push:
branches:
- feature/*
- bugfix/*
pull_request:

jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Get yarn cache
id: yarn-cache
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn
- run: yarn app:cash:build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
#if: ${{ github.ref == 'refs/heads/main' }}
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: 2qx/unspent.cash
cname: unspent.cash
publish_dir: ./docs
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"app:publish": "yarn workspace @unspent/app run publish;",
"app:preview": "yarn workspace @unspent/app run build; yarn workspace @unspent/app run preview",
"app:dev": "yarn workspace @unspent/app run dev",
"cash:build": "yarn workspace @unspent/chi run build",
"build": "npx lerna build",
"build:phi": "yarn workspace @unspent/phi run build ",
"build:cache": "npx ts-node --esm packages/psi/scripts/buildCache.ts",
Expand Down
44 changes: 37 additions & 7 deletions packages/app/static/images/banner.inkscape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/app/static/images/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/chi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
.vercel
.output
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions packages/chi/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest
13 changes: 13 additions & 0 deletions packages/chi/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
9 changes: 9 additions & 0 deletions packages/chi/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
38 changes: 38 additions & 0 deletions packages/chi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# create-svelte

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

## Creating a project

If you're seeing this, you've probably already done this step. Congrats!

```bash
# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
1 change: 1 addition & 0 deletions packages/chi/i18n/.~lock.workbook.ods#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,amnesia,pc,10.09.2023 02:43,file:///home/amnesia/.config/libreoffice/4;
Binary file added packages/chi/i18n/workbook.ods
Binary file not shown.
31 changes: 31 additions & 0 deletions packages/chi/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@unspent/chi",
"version": "0.0.1",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check .",
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@fontsource/fira-mono": "^4.5.10",
"@neoconfetti/svelte": "^1.0.0",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.20.4",
"@types/cookie": "^0.5.1",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^4.0.5",
"svelte-check": "^3.4.3",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.4.2"
},
"type": "module",
"dependencies": {
"svelte-i18n": "^3.7.4"
}
}
12 changes: 12 additions & 0 deletions packages/chi/src/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
15 changes: 15 additions & 0 deletions packages/chi/src/lib/i18n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// src/lib/i18n.ts
import { browser } from '$app/environment'
import { init, register } from 'svelte-i18n';
const defaultLocale = 'en'

register('en', () => import('./locales/en.json'))
register('es', () => import('../locales/es.json'))
register('fr', () => import('./locales/fr.json'))
register('zh', () => import('./locales/zh-Hans.json'))
register('zh-Hant', () => import('../locales/zh-Hant.json'))

init({
fallbackLocale: defaultLocale,
initialLocale: browser ? window.navigator.language : defaultLocale,
})
16 changes: 16 additions & 0 deletions packages/chi/src/lib/images/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/chi/src/lib/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/chi/src/locale/am.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"ገንዘብ/ኮይኖች የሚቀበሉበትን አድራሻ ይምረጡ","create":"አዲስ ዋሌት ፍጠር"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"اختر العنوان الذي ترغب باستلام البتكوين فيه","ok":"تم","create":"إنشاء محفظة جديدة","year":"1 سنة","spendable":"قابل للصرف:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/az.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Pul alınacaq ünvanı seçin","create":"Yeni cüzdan yaradın"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/az@latin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Pul alınacaq ünvanı seçin","create":"Yeni cüzdan yaradın"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/bg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Избери адреса на който да получиш монети","ok":"ОК","create":"Създай нов портфейл","spendable":"За харчене:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/bn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"কয়েন গ্রহণ করার ঠিকানা বাছাই করুন।","create":"একটি নতুন ওয়ালেট তৈরি করুন"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/bs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Izaberite adresu na koju ćete primiti novac","create":"Kreirajte novi novčanik"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/ca.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Trieu ladreça on rebre les monedes,ok:Dacord","create":"Crear una nova cartera","year":"1 any","spendable":"Que es pot gastar:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/cmn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"选择接收比特币地址","create":"创建一个新的钱包"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/cs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Zvol adres na příjem mincí","ok":"Budiž","create":"Vytvoř novou peněženku","year":"1 rok","spendable":"Běžné:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/da.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Vælg adresse at modtage bitcoins med","ok":"Ok","create":"Opret en ny tegnebog","year":"1 år","spendable":"Spendérbar:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Wählen Sie die Adresse aus, mit der Sie Bitcoins empfangen wollen","create":"Neues Wallet erstellen","year":"1 Jahr","spendable":"Verfügbar:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/el.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Επιλέξτε διεύθυνση παραλαβής νομισμάτων","ok":"ΟΚ","create":"Δημιουργία νέου Πορτοφολιού","year":"1 χρόνος","spendable":"Για ξόδεμα:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Choose the address to receive coins with","ok":"Okay","create":"Create a new wallet","year":"1 year","spendable":"Spendable:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/eo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Elekti la adreson ricevi monerojn kun","ok":"Bone","create":"Krei novan monujon","year":"1 jaro","spendable":"Elspezebla:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Elija la dirección a la que se recibirán las monedas","ok":"Aceptar","create":"Crear monedero nuevo","year":"1 año","spendable":"Disponible:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/es_CL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Elige la dirección para recibir las monedas","create":"Crear una nueva billetera","year":"1 año","spendable":"Utilizable:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/es_CO.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Elige la dirección con la que se recibirán monedas","create":"Crear una nueva billetera","year":"1 año","spendable":"Gastable:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/es_DO.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Elige la dirección para recibir monedas","ok":"Aceptar","create":"Crear monedero nuevo","spendable":"Disponible:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/es_SV.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Escoja la dirección donde quiere recibir monedas","create":"Crear monedero nuevo","spendable":"Disponible:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/es_VE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Escoja la dirección donde quiere recibir monedas","ok":"Aceptar","create":"Crear una nueva billetera","spendable":"Disponible:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/et.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Vali aadress müntide vastuvõtmiseks","create":"Loo uus rahakott"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/eu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Dirua jasotzeko helbidea hautatu","ok":"Ados","create":"Diruzorro berri bat sortu","spendable":"Gastagarria:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/fa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"آدرسی که ارزها را دریافت میکند را انتخاب کنید","ok":"تایید","create":"کیف پول جدیدی ایجاد کنید","year":"1 سال","spendable":"قابل مصرف:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/fi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Valitse osoite kolikoiden vastaanottamiseen","create":"Luo uusi lompakko","year":"1 vuosi","spendable":"Käytettävissä:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/fil.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Piliin ang address na tatanggap ng coins","create":"Gumawa ng baong pitaka","year":"1 taon","spendable":"Puedeng gastusin:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Choisir l’adresse avec laquelle recevoir des pièces","ok":"Valider","create":"Créer un nouveau porte-monnaie","year":"1 an","spendable":"Disponible :"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/fr_CM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Choisir l’adresse avec laquelle recevoir des pièces","ok":"Valider","create":"Créer un nouveau porte-monnaie","year":"1 an","spendable":"Disponible :"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/fr_LU.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Choisir l’adresse avec laquelle recevoir des pièces","ok":"Valider","create":"Créer un nouveau porte-monnaie","year":"1 an","spendable":"Disponible :"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/ga.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Roghnaigh an seoladh chun boinn a fháil leis","ok":"Togha","create":"Cruthaigh sparán nua","year":"1 bhliain","spendable":"Ar fáil le caith:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/ga_IE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Roghnaigh an seoladh chun boinn a fháil leis","ok":"Togha","create":"Cruthaigh sparán nua","year":"1 bhliain","spendable":"Ar fáil le caith:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/gl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Escolle a dirección da que recibir moedas","create":"Crear unha nova carteira"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/gl_ES.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Selecciona o enderezo do que recibir moedas","create":"Crear unha nova carteira"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/gu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"સિક્કા મેળવવા માટે સરનામું પસંદ કરો","create":"નવું વૉલેટ બનાવો"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/hak.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"选择接收比特币地址","create":"创建一个新的钱包"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/he.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"נא לבחור את הכתובת לקבלת המטבעות","ok":"אישור","create":"יצירת ארנק חדש","year":"שנה אחת","spendable":"ניתנים לבזבוז:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/hi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"कॉइन्स प्राप्त करने के लिए पता चुनें","create":"एक नया वॉलेट बनाएं |","year":"1 साल"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/hr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Odaberite adresu na koju ćete primiti novac","ok":"U redu","create":"Stvorite novi novčanik","year":"1 godinu","spendable":"Stanje koje se može trošiti:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/hu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Válassza ki a címet amivel érméket fogad","create":"Új tárca létrehozása","year":"1 év","spendable":"Elkölthető:"}
File renamed without changes.
1 change: 1 addition & 0 deletions packages/chi/src/locale/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"コインを受け取りたいアドレスを選択","create":"新しいウォレットを作成","year":"1年","spendable":"送金可能:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/ka.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"აირჩიეთ კოინების მიღების მისამართი","create":"შექმენით ახალი საფულე","year":"1 წელი","spendable":"ხარჯვადი:"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/kk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"Тиын қабылдайтын мекенжай таңдаңыз","create":"Жаңа әмиян құру"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/km.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"ជ្រើសរើសអាសយដ្ឋានដើម្បីទទួលយកកាក់ជាមួយ","create":"បង្កើតកាបូបចល័តថ្មីមួយ","spendable":"អាចចំណាយបានៈ"}
1 change: 1 addition & 0 deletions packages/chi/src/locale/ko.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"receive":"코인을 받을 주소를 선택하십시오","ok":"확인","create":"새로운 지갑 생성하기","year":"1년","spendable":"사용 가능:"}
Loading

0 comments on commit a17167f

Please sign in to comment.