Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase revamp into main #26

Merged
merged 36 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7716256
rebase revamp into main
cryptosalomao Oct 7, 2024
910d15c
chore: change text style
cryptosalomao Oct 7, 2024
0469423
rebase revamp into main
cryptosalomao Oct 15, 2024
7c66ad7
chore: add validation to file field
cryptosalomao Oct 17, 2024
e595ed1
chore: setup react router
cryptosalomao Oct 21, 2024
b51e430
chore: initial service integration
cryptosalomao Oct 21, 2024
a9c914b
chore: remove pwa checker from EnvironmentAction function
cryptosalomao Oct 22, 2024
566524f
chore: update design primitives
cryptosalomao Oct 28, 2024
519257d
chore: configure font family with css
cryptosalomao Oct 28, 2024
b70199b
chore: configure fonts.css
cryptosalomao Oct 28, 2024
e3bc6a9
chore: unlock with PIN
cryptosalomao Oct 29, 2024
b8e02cb
chore: fix icons; fix alignment
cryptosalomao Oct 29, 2024
80bfe77
chore: create login screen
cryptosalomao Oct 28, 2024
3b4d3cc
chore: fix aspect ratio
cryptosalomao Oct 28, 2024
f917500
chore: change illustration position
cryptosalomao Oct 28, 2024
01065ea
fix deployment
cryptosalomao Oct 29, 2024
ab880c8
chore: fix deployment
cryptosalomao Oct 29, 2024
b381239
chore: add rewrite rule for vercel deployments
cryptosalomao Oct 29, 2024
a0191ab
chore: create initial translations
cryptosalomao Oct 30, 2024
09902f8
chore: add more translations
cryptosalomao Oct 30, 2024
ba0eba4
chore: remove old homepage; change root route to Login page
cryptosalomao Oct 30, 2024
493efbf
chore: add i18n functionalities
cryptosalomao Oct 30, 2024
c2f116a
chore: add test setup
cryptosalomao Oct 30, 2024
3166a4f
chore: create identity recovery pages
cryptosalomao Oct 30, 2024
978b4a1
chore: add paste actions
cryptosalomao Oct 30, 2024
19becae
chore: add links and fix layout dimensions
cryptosalomao Oct 30, 2024
68b78e4
chore: add sample test cases for Unlock screen
cryptosalomao Oct 31, 2024
e80e21f
chore: import proper typedefs for mocked function
cryptosalomao Oct 31, 2024
360809f
chore: clanup
cryptosalomao Oct 31, 2024
ce728e8
chore: remove data-testid property from components
cryptosalomao Oct 31, 2024
dce6922
chore: create home page component (#21)
cryptosalomao Nov 1, 2024
5b24295
chore: rebase revamp into main
cryptosalomao Nov 1, 2024
e607f7e
rebase revamp into main
mtbitcr Oct 29, 2024
6b2ec97
Try to add codecov.
mtbitcr Oct 29, 2024
510c0f0
fix vite.config.ts conflict
mtbitcr Oct 29, 2024
55f0bc6
chore: fix test pipeline
cryptosalomao Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_URL=localhost
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Codecov
name: Workflow for Codecov example-typescript
on:
push:
branches: [ "*" ]
Expand Down
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,50 @@
# E-Bill-frontend
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
20 changes: 20 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
31 changes: 31 additions & 0 deletions extracted/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"pages.login.newIdentity": {
"defaultMessage": "New identity",
"description": "Start Identity creation flow"
},
"pages.login.restoreWithSeedPhrase": {
"defaultMessage": "Restore with seed phrase",
"description": "Start restoration process with seed phrase"
},
"pages.login.subtitle": {
"defaultMessage": "A strong trade credit solution, directly between businesses",
"description": "Subheading copy for Login page"
},
"pages.login.title": {
"defaultMessage": "Bitcoin for the real economy",
"description": "Heading copy for Login page"
},
"pages.login.unlockWithPin": {
"defaultMessage": "Unlock with PIN",
"description": "Go to Unlock page"
},
"pages.unlock.forgotPin": {
"defaultMessage": "Forgot your PIN?"
},
"pages.unlock.seedPhraseRecovery": {
"defaultMessage": "Recover with seed phrase"
},
"pages.unlock.title": {
"defaultMessage": "Unlock with PIN code"
}
}
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://vercel.com/font/geist-sans/style.css" rel="stylesheet" />
<link href="https://vercel.com/font/geist-mono/style.css" rel="stylesheet" />
<title>Bitcredit</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading