chore: some small fixes and native deps config
This commit is contained in:
parent
465dd5af7c
commit
e84490bbca
11 changed files with 146 additions and 3646 deletions
|
|
@ -1 +1,3 @@
|
|||
nodejs 22
|
||||
pnpm 10
|
||||
python 3
|
||||
|
|
@ -16,7 +16,7 @@ We do not generally accept outside pull requests for new features. Please consul
|
|||
- Python 3 (to be deprecated, required by a single dependency installation)
|
||||
- OpenSSL (for cert-gen.sh, it will set up the server self-signed certificates)
|
||||
|
||||
There's a shell.nix file that you can use to set up your env in case you're a nix user.
|
||||
There's a shell.nix file that you can use to set up your env in case you're a nix user. (most reliable way of installing native deps)
|
||||
There's also a .tool-versions for asdf and mise users.
|
||||
|
||||
This project uses Turbo for monorepo management. Install dependencies:
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import json from '@eslint/json'
|
|||
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||
import reactCompiler from 'eslint-plugin-react-compiler'
|
||||
import eslintConfigPrettier from 'eslint-config-prettier/flat'
|
||||
import pluginJest from 'eslint-plugin-jest'
|
||||
import vitest from 'eslint-plugin-vitest'
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores([
|
||||
|
|
@ -60,16 +60,12 @@ export default defineConfig([
|
|||
{
|
||||
// update this to match your test files
|
||||
files: ['**/*.spec.js', '**/*.test.js'],
|
||||
plugins: { jest: pluginJest },
|
||||
languageOptions: {
|
||||
globals: pluginJest.environments.globals.globals,
|
||||
plugins: {
|
||||
vitest,
|
||||
},
|
||||
rules: {
|
||||
'jest/no-disabled-tests': 'warn',
|
||||
'jest/no-focused-tests': 'error',
|
||||
'jest/no-identical-title': 'error',
|
||||
'jest/prefer-to-have-length': 'warn',
|
||||
'jest/valid-expect': 'error',
|
||||
...vitest.configs.recommended.rules, // you can also use vitest.configs.all.rules to enable all rules
|
||||
'vitest/max-nested-describe': ['error', { max: 3 }], // you can also modify rules' behavior using option like this
|
||||
},
|
||||
},
|
||||
])
|
||||
|
|
|
|||
|
|
@ -12,16 +12,15 @@
|
|||
"engines": {
|
||||
"node": ">=22.0.0"
|
||||
},
|
||||
"workspaces": [],
|
||||
"devDependencies": {
|
||||
"@eslint/css": "^0.7.0",
|
||||
"@eslint/js": "^9.26.0",
|
||||
"@eslint/json": "^0.12.0",
|
||||
"eslint": "^9.26.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"eslint-plugin-jest": "^28.11.0",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-compiler": "^19.1.0-rc.1",
|
||||
"eslint-plugin-vitest": "^0.5.4",
|
||||
"globals": "^16.1.0",
|
||||
"husky": "^8.0.0",
|
||||
"lint-staged": "^16.0.0",
|
||||
|
|
@ -31,8 +30,7 @@
|
|||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
"build": "turbo build",
|
||||
"dev": "turbo dev",
|
||||
"start": "turbo start",
|
||||
"dev": "turbo watch dev",
|
||||
"test": "turbo test",
|
||||
"clean": "turbo clean",
|
||||
"server:dev": "turbo dev --filter=lamassu-server",
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@
|
|||
"vitest": "^3.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
import IconButton from '@mui/material/IconButton'
|
||||
import Tooltip from '@mui/material/Tooltip'
|
||||
import Visibility from '@mui/icons-material/Visibility'
|
||||
import { format } from 'date-fns/fp'
|
||||
import * as R from 'ramda'
|
||||
import React, { useMemo } from 'react'
|
||||
import { MaterialReactTable, useMaterialReactTable } from 'material-react-table'
|
||||
import {
|
||||
MaterialReactTable,
|
||||
MRT_ActionMenuItem,
|
||||
useMaterialReactTable,
|
||||
} from 'material-react-table'
|
||||
import { MainStatus } from '../../components/Status'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
|
@ -120,16 +122,15 @@ const CustomersList = ({ data, country, onClick, loading }) => {
|
|||
state: { isLoading: loading },
|
||||
getRowId: it => it.id,
|
||||
enableRowActions: true,
|
||||
positionActionsColumn: 'last',
|
||||
renderRowActions: ({ row }) => (
|
||||
<div>
|
||||
<Tooltip title="Customer page">
|
||||
<IconButton aria-label="Go to customer" onClick={() => onClick(row)}>
|
||||
<Visibility />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
),
|
||||
renderRowActionMenuItems: ({ row }) => [
|
||||
<MRT_ActionMenuItem //or just use a normal MUI MenuItem component
|
||||
icon={<Visibility />}
|
||||
key="view"
|
||||
label="View"
|
||||
onClick={() => onClick(row)}
|
||||
table={table}
|
||||
/>,
|
||||
],
|
||||
})
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -86,9 +86,9 @@
|
|||
"serve-static": "^1.12.4",
|
||||
"talisman": "^0.20.0",
|
||||
"telnyx": "^1.25.5",
|
||||
"typesafe-db": "workspace:*",
|
||||
"tronweb": "^5.3.0",
|
||||
"twilio": "^3.6.1",
|
||||
"typesafe-db": "workspace:*",
|
||||
"uuid": "8.3.2",
|
||||
"web3": "1.7.1",
|
||||
"winston": "^2.4.2",
|
||||
|
|
@ -126,32 +126,12 @@
|
|||
"lamassu-clean-parsed-id": "./bin/lamassu-clean-parsed-id"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "echo 'Server requires no build step'",
|
||||
"start": "node bin/lamassu-server",
|
||||
"dev": "concurrently \"npm:server\" \"npm:admin-server\"",
|
||||
"jtest": "jest --detectOpenHandles",
|
||||
"build-admin": "npm run build-admin:css && npm run build-admin:main && npm run build-admin:lamassu",
|
||||
"server": "nodemon bin/lamassu-server --mockScoring --logLevel silly",
|
||||
"admin-server": "nodemon bin/lamassu-admin-server --dev --logLevel silly",
|
||||
"watch": "concurrently \"npm:server\" \"npm:admin-server\"",
|
||||
"server": "node bin/lamassu-server --mockScoring --logLevel silly --watch",
|
||||
"admin-server": "node bin/lamassu-admin-server --dev --logLevel silly --watch",
|
||||
"stress-test": "cd tests/stress/ && node index.js 50 -v"
|
||||
},
|
||||
"nodemonConfig": {
|
||||
"ignore": [
|
||||
"new-lamassu-admin/*"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^5.3.0",
|
||||
"jest": "^26.6.3",
|
||||
"nodemon": "^2.0.6",
|
||||
"standard": "^12.0.1"
|
||||
},
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"/lamassu-admin-elm",
|
||||
"/public",
|
||||
"/new-lamassu-admin"
|
||||
]
|
||||
"concurrently": "^5.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "tsc --build",
|
||||
"start": "tsc --watch",
|
||||
"dev": "tsc --watch",
|
||||
"generate-types": "kysely-codegen --camel-case --out-file ./src/types/types.d.ts",
|
||||
"postinstall": "npm run build"
|
||||
|
|
|
|||
3681
pnpm-lock.yaml
generated
3681
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,23 @@
|
|||
packages:
|
||||
- 'packages/server'
|
||||
- 'packages/admin-ui'
|
||||
- 'packages/typesafe-db'
|
||||
- packages/server
|
||||
- packages/admin-ui
|
||||
- packages/typesafe-db
|
||||
onlyBuiltDependencies:
|
||||
- '@apollo/protobufjs'
|
||||
- '@swc/core'
|
||||
- '@tailwindcss/oxide'
|
||||
- argon2
|
||||
- bufferutil
|
||||
- cbor-extract
|
||||
- ccxt
|
||||
- es5-ext
|
||||
- esbuild
|
||||
- iconv
|
||||
- keccak
|
||||
- node-expat
|
||||
- secp256k1
|
||||
- tiny-secp256k1
|
||||
- utf-8-validate
|
||||
- web3
|
||||
- web3-bzz
|
||||
- web3-shh
|
||||
|
|
|
|||
|
|
@ -17,11 +17,6 @@
|
|||
],
|
||||
"outputs": ["lib/**", "dist/**", "build/**"]
|
||||
},
|
||||
"start": {
|
||||
"dependsOn": ["^build"],
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
},
|
||||
"dev": {
|
||||
"dependsOn": ["^build"],
|
||||
"cache": false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue