Giter Club home page Giter Club logo

oxygen's People

Contributors

dependabot[bot] avatar swift1337 avatar wtfthefirefox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oxygen's Issues

ui-payment > build > error

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.

it'll ignore the DB connection string from the config/oxygen.yml

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?

ui-dashboard > build > error

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

When withdrawal is failed and transaction wasn't created, there's an error on Frontend

Also, seems like task is forever pending.
image

image

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"
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.