-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Dmitriy <128726599+Magorsky@users.noreply.github.com> Co-authored-by: magorsky <di@gear.foundation>
- Loading branch information
1 parent
b418c30
commit 031439f
Showing
94 changed files
with
1,389 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
VITE_API_URL=https://idea.gear-tech.io/api | ||
VITE_NODE_ADDRESS=wss://testnet.vara-network.io | ||
VITE_HCAPTCHA_SITE_KEY=xxxx-xxxx-xxxx-xxxx-xxxx | ||
VITE_DEFAULT_TRANSFER_BALANCE_VALUE=250000000000 | ||
VITE_DEFAULT_NODES_URL=https://idea.gear-tech.io/gear-nodes | ||
VITE_API_URL= | ||
VITE_VOUCHERS_API_URL= | ||
VITE_NODES_API_URL= | ||
VITE_NODE_ADDRESS= | ||
VITE_HCAPTCHA_SITE_KEY= | ||
VITE_DEFAULT_TRANSFER_BALANCE_VALUE= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; | ||
import { ReactNode } from 'react'; | ||
|
||
const queryClient = new QueryClient({ | ||
defaultOptions: { | ||
queries: { | ||
gcTime: 0, | ||
staleTime: Infinity, | ||
}, | ||
}, | ||
}); | ||
|
||
type Props = { | ||
children: ReactNode; | ||
}; | ||
|
||
const QueryProvider = ({ children }: Props) => ( | ||
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider> | ||
); | ||
|
||
export { QueryProvider }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { ExplorerSearch, Events, Block } from './ui'; | ||
import { Events, Block } from './ui'; | ||
import { Section, Method } from './consts'; | ||
import { EventRecords } from './types'; | ||
import { IdeaEvent } from './idea-event'; | ||
|
||
export { Section, Method, IdeaEvent, ExplorerSearch, Events, Block }; | ||
export { Section, Method, IdeaEvent, Events, Block }; | ||
export type { EventRecords }; |
37 changes: 0 additions & 37 deletions
37
idea/frontend/src/features/explorer/ui/explorer-search/explorer-search.tsx
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
idea/frontend/src/features/explorer/ui/explorer-search/index.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import { ExplorerSearch } from './explorer-search'; | ||
import { Events } from './events'; | ||
import { Block } from './block'; | ||
|
||
export { ExplorerSearch, Events, Block }; | ||
export { Events, Block }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
idea/frontend/src/features/filters/ui/radio/Radio.module.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { StatusRadio } from './status-radio'; | ||
|
||
export { StatusRadio }; |
33 changes: 33 additions & 0 deletions
33
idea/frontend/src/features/filters/ui/status-radio/status-radio.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { RadioProps, radioStyles } from '@gear-js/ui'; | ||
import clsx from 'clsx'; | ||
import { FieldValues, Path, PathValue, useFormContext } from 'react-hook-form'; | ||
|
||
import { BulbBlock, BulbStatus } from '@/shared/ui/bulbBlock'; | ||
|
||
type Props<T> = Omit<RadioProps, 'name' | 'value' | 'onChange' | 'onSubmit'> & { | ||
onSubmit: (values: T) => void; | ||
name: Path<T>; | ||
value: PathValue<T, Path<T>>; | ||
status: BulbStatus; | ||
}; | ||
|
||
const StatusRadio = <T extends FieldValues>({ name, label, value, status, onSubmit }: Props<T>) => { | ||
const { register, handleSubmit } = useFormContext<T>(); | ||
|
||
const onChange = () => handleSubmit(onSubmit)(); | ||
|
||
return ( | ||
<label className={radioStyles.label}> | ||
<input | ||
type="radio" | ||
value={value} | ||
className={clsx(radioStyles.input, radioStyles.radio)} | ||
{...register(name, { onChange })} | ||
/> | ||
|
||
<BulbBlock size="large" color="primary" weight="normal" status={status} text={label} /> | ||
</label> | ||
); | ||
}; | ||
|
||
export { StatusRadio }; |
7 changes: 0 additions & 7 deletions
7
idea/frontend/src/features/filters/ui/statusCheckbox/StatusCheckbox.module.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
idea/frontend/src/features/program/ui/programs-search/programs-search.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...chers/assets/voucher-card-placeholder.svg → ...ucher/assets/voucher-card-placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import { useIssueVoucher } from './use-issue-voucher'; | ||
import { useBalanceSchema } from './use-balance-schema'; | ||
import { useDurationSchema } from './use-duration-schema'; | ||
import { useProgramIdSchema } from './use-program-id-schema'; | ||
import { useVoucherType } from './use-voucher-type'; | ||
import { useModal } from './use-modal'; | ||
import { useLoading } from './use-loading'; | ||
import { useVouchers } from './use-vouchers'; | ||
import { useVoucherFilters } from './use-voucher-filters'; | ||
|
||
export { useIssueVoucher, useBalanceSchema, useDurationSchema, useProgramIdSchema, useVoucherType }; | ||
export { | ||
useBalanceSchema, | ||
useDurationSchema, | ||
useProgramIdSchema, | ||
useVoucherType, | ||
useModal, | ||
useLoading, | ||
useVouchers, | ||
useVoucherFilters, | ||
}; |
Oops, something went wrong.