-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1606 from Giveth/Release-2.3.0
Release 2.3.0
- Loading branch information
Showing
142 changed files
with
8,409 additions
and
2,130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"cSpell.words": [ | ||
"giveth", | ||
"merkle", | ||
"xdai", | ||
"GIVpower", | ||
"GIVeconomy", | ||
"GIVfarm", | ||
"GIVback", | ||
"GIVstream", | ||
] | ||
} |
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,23 @@ | ||
import { useEffect } from 'react'; | ||
import GIVpowerView from '@/components/views/Power.view'; | ||
import { GeneralMetatags } from '@/components/Metatag'; | ||
import { setDarkTheme, setLightTheme } from '@/features/general/general.slice'; | ||
import { useAppDispatch } from '@/features/hooks'; | ||
import { givpowerMetatags } from '@/content/metatags'; | ||
|
||
export default function GIVpowerRoute() { | ||
const dispatch = useAppDispatch(); | ||
|
||
useEffect(() => { | ||
dispatch(setDarkTheme()); | ||
return () => { | ||
dispatch(setLightTheme()); | ||
}; | ||
}, [dispatch]); | ||
return ( | ||
<> | ||
<GeneralMetatags info={givpowerMetatags} /> | ||
<GIVpowerView /> | ||
</> | ||
); | ||
} |
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
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.
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.
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.
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,10 +1,16 @@ | ||
import { IS_BOOSTING_ENABLED } from '@/configuration'; | ||
import { EDirection, gqlEnums } from '../types/gqlEnums'; | ||
|
||
export const OPTIONS_HOME_PROJECTS = { | ||
variables: { | ||
limit: 15, | ||
skip: 0, | ||
orderBy: { field: gqlEnums.QUALITYSCORE, direction: EDirection.DESC }, | ||
orderBy: { | ||
field: IS_BOOSTING_ENABLED | ||
? gqlEnums.GIVPOWER | ||
: gqlEnums.QUALITYSCORE, | ||
direction: EDirection.DESC, | ||
}, | ||
}, | ||
notifyOnNetworkStatusChange: true, | ||
}; |
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,109 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const SAVE_POWER_BOOSTING = gql` | ||
mutation setSinglePowerBoostingMutation( | ||
$projectId: Int! | ||
$percentage: Float! | ||
) { | ||
setSinglePowerBoosting(projectId: $projectId, percentage: $percentage) { | ||
id | ||
user { | ||
id | ||
} | ||
project { | ||
id | ||
title | ||
slug | ||
} | ||
percentage | ||
} | ||
} | ||
`; | ||
|
||
export const SAVE_MULTIPLE_POWER_BOOSTING = gql` | ||
mutation setMultiplePowerBoostingMutation( | ||
$projectIds: [Int!]! | ||
$percentages: [Float!]! | ||
) { | ||
setMultiplePowerBoosting( | ||
projectIds: $projectIds | ||
percentages: $percentages | ||
) { | ||
id | ||
user { | ||
id | ||
} | ||
project { | ||
id | ||
title | ||
slug | ||
} | ||
percentage | ||
} | ||
} | ||
`; | ||
|
||
export const FETCH_POWER_BOOSTING_INFO = gql` | ||
query getPowerBoostingsQuery( | ||
$take: Int | ||
$skip: Int | ||
$orderBy: PowerBoostingOrderBy | ||
$projectId: Int | ||
$userId: Int | ||
) { | ||
getPowerBoosting( | ||
take: $take | ||
skip: $skip | ||
orderBy: $orderBy | ||
projectId: $projectId | ||
userId: $userId | ||
) { | ||
powerBoostings { | ||
id | ||
user { | ||
id | ||
} | ||
project { | ||
id | ||
title | ||
slug | ||
} | ||
percentage | ||
} | ||
} | ||
} | ||
`; | ||
|
||
export const FETCH_PROJECT_BOOSTINGS = gql` | ||
query userProjectPowers( | ||
$take: Int | ||
$skip: Int | ||
$orderBy: UserPowerOrderBy | ||
$projectId: Int | ||
) { | ||
userProjectPowers( | ||
take: $take | ||
skip: $skip | ||
orderBy: $orderBy | ||
projectId: $projectId | ||
) { | ||
totalCount | ||
userProjectPowers { | ||
id | ||
userId | ||
projectId | ||
percentage | ||
userPower | ||
boostedPower | ||
rank | ||
user { | ||
id | ||
firstName | ||
lastName | ||
name | ||
} | ||
} | ||
} | ||
} | ||
`; |
Oops, something went wrong.
69a5a80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
giveth-dapps-v2 – ./
giveth.io
giveth-dapps-v2-givethio.vercel.app
giveth-dapps-v2-git-main-givethio.vercel.app
www.giveth.io