oxygenpay / oxygen Goto Github PK
View Code? Open in Web Editor NEW[ARCHIVE] Crypto payment gateway. Accept the most popular crypto globally with a complete solution.
License: Apache License 2.0
[ARCHIVE] Crypto payment gateway. Accept the most popular crypto globally with a complete solution.
License: Apache License 2.0
cd ui-payment
yarn install
[1/4] Resolving packages...
............................
$ husky install
husky - .git can't be found (see https://typicode.github.io/husky/#/?id=custom-directory)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Yesterday I was trying to run the project locally. I was doing it without a docker. Built it โ UI and backend, created config/oxygen.yml.
oxygen:
postgres:
data_source: "host=localhost sslmode=disable dbname=oxygenpay_oxygen user=u1 password=1234 pool_max_conns=32"
Then - make run
But it wouldn't start because of an error in the DB connection. No parameters from the DB connection from the config would get filled in in runtime. It'd would only use the default parameters of my machine: user_name = <my_os_user_login>, for instance. Not the one that I specified in the config.yml
And the "dbname" / "database" would always be remain empty in the logs -- database=
What's the matter? Have you guys tried to run it locally without a docker?
cd ui-dashboard
cp .env.example .env
yarn install
make build
===>
npx tsc && npx vite build --base=/dashboard/
src/app.tsx:359:29 - error TS2322: Type '(item: MenuItem, dom: React.ReactNode) => JSX.Element' is not assignable to type 'WithFalse<(item: MenuDataItem & { isUrl: boolean; onClick: () => void; }, defaultDom: ReactNode, menuProps: { className?: string | undefined; defaultCollapsed?: boolean | undefined; ... 14 more ...; postMenuData?: ((menusData?: MenuDataItem[] | undefined) => MenuDataItem[]) | undefined; } & Partial<...> & Omit<...> ...'.
Type '(item: MenuItem, dom: React.ReactNode) => JSX.Element' is not assignable to type '(item: MenuDataItem & { isUrl: boolean; onClick: () => void; }, defaultDom: ReactNode, menuProps: { className?: string | undefined; defaultCollapsed?: boolean | undefined; ... 14 more ...; postMenuData?: ((menusData?: MenuDataItem[] | undefined) => MenuDataItem[]) | undefined; } & Partial<...> & Omit<...> & Partial<...'.
Types of parameters 'item' and 'item' are incompatible.
Type 'MenuDataItem & { isUrl: boolean; onClick: () => void; }' is not assignable to type 'MenuItem'.
Types of property 'path' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
359 menuItemRender={(item: MenuItem, dom: React.ReactNode) => {
~~~~~~~~~~~~~~
node_modules/@ant-design/pro-layout/es/components/SiderMenu/BaseMenu.d.ts:41:5
41 menuItemRender?: WithFalse<(item: MenuDataItem & {
~~~~~~~~~~~~~~
The expected type comes from property 'menuItemRender' which is declared here on type 'IntrinsicAttributes & GlobalTypes & { stylish?: { header?: GenerateStyle<SiderMenuToken, CSSInterpolation> | undefined; sider?: GenerateStyle<...> | undefined; } | undefined; ... 22 more ...; isChildrenLayout?: boolean | undefined; }'
Found 1 error in src/app.tsx:359
make: *** [Makefile:34: build] Error 2
Also, seems like task is forever pending.
Here's response from the backend:
{
"additionalInfo": {
"withdrawal": {
"addressId": "d82f0336-f0f4-4b24-a110-173144e42d7e",
"balanceId": "fc147df3-ee7d-40ee-b2b4-0272f8800cd7",
"explorerLink": null,
"serviceFee": "",
"transactionHash": null
}
},
"createdAt": "2023-08-27T15:18:13.538Z",
"currency": "BSC_BUSD",
"description": "Balance withdrawal",
"id": "fef4a9d2-3155-413d-a12a-4b762a323c2b",
"isTest": false,
"orderId": null,
"paymentUrl": "",
"price": "9",
"redirectUrl": "",
"status": "pending",
"type": "withdrawal"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.