Skip to content

Commit

Permalink
Rename campaign to app
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolman committed May 15, 2024
1 parent 73b852e commit 2623466
Show file tree
Hide file tree
Showing 223 changed files with 94 additions and 94 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions apps/campaign/project.json → apps/app/project.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "campaign",
"name": "app",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/campaign/src",
"sourceRoot": "apps/app/src",
"projectType": "application",
"targets": {
"build": {
"executor": "@nx/vite:build",
"options": {
"outputPath": "dist/apps/campaign"
"outputPath": "dist/apps/app"
}
},
"serve": {
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "campaign:build",
"buildTarget": "app:build",
"port": 8080
},
"configurations": {}
Expand All @@ -34,7 +34,7 @@
"test": {
"executor": "@nxext/vitest:vitest",
"options": {
"vitestConfig": "apps/campaign/vitest.config.ts"
"vitestConfig": "apps/app/vitest.config.ts"
}
}
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const args = process.argv.slice(2);
const [branch, version, webhook] = args;

if (!branch || !version || !webhook) {
console.error('Usage: nx run campaign:notify --branch=:branch --version=:version --webhook=:webhook');
console.error('Usage: nx run app:notify --branch=:branch --version=:version --webhook=:webhook');
process.exit(0);
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import { defineComponent, PropType } from 'vue';
import { BigNumber } from 'ethers/lib/ethers';
import { formatUnits, parseUnits } from 'ethers/lib/utils';
import { useWalletStore } from '@thxnetwork/campaign/stores/Wallet';
import { useWalletStore } from '@thxnetwork/app/stores/Wallet';
import { mapStores } from 'pinia';
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { contractNetworks } from '@thxnetwork/app/config/constants';
import { ChainId } from '@thxnetwork/sdk';
import poll from 'promise-poller';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<script lang="ts">
import { defineComponent, PropType } from 'vue';
import { BigNumber } from 'ethers/lib/ethers';
import { useWalletStore } from '@thxnetwork/campaign/stores/Wallet';
import { useWalletStore } from '@thxnetwork/app/stores/Wallet';
import { mapStores } from 'pinia';
import { BALANCER_POOL_ID, contractNetworks } from '@thxnetwork/campaign/config/constants';
import { BALANCER_POOL_ID, contractNetworks } from '@thxnetwork/app/config/constants';
import { ChainId } from '@thxnetwork/sdk';
import { BalancerSDK, Network } from '@balancer-labs/sdk';
import { POLYGON_RPC } from '@thxnetwork/campaign/config/secrets';
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { POLYGON_RPC } from '@thxnetwork/app/config/secrets';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
export default defineComponent({
name: 'BaseButtonLiquidityCreate',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<script lang="ts">
import { defineComponent, PropType } from 'vue';
import { BigNumber } from 'ethers/lib/ethers';
import { useWalletStore } from '@thxnetwork/campaign/stores/Wallet';
import { useWalletStore } from '@thxnetwork/app/stores/Wallet';
import { mapStores } from 'pinia';
import { useVeStore } from '@thxnetwork/campaign/stores/VE';
import { useVeStore } from '@thxnetwork/app/stores/VE';
export default defineComponent({
name: 'BaseButtonLiquidityLock',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<script lang="ts">
import { defineComponent, PropType } from 'vue';
import { BigNumber } from 'ethers/lib/ethers';
import { useWalletStore } from '@thxnetwork/campaign/stores/Wallet';
import { useWalletStore } from '@thxnetwork/app/stores/Wallet';
import { mapStores } from 'pinia';
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { contractNetworks } from '@thxnetwork/app/config/constants';
import { ChainId } from '@thxnetwork/sdk';
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
export default defineComponent({
name: 'BaseButtonLiquidityStake',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
import { defineComponent, PropType } from 'vue';
import { decodeHTML } from '../../utils/decode-html';
import { mapStores } from 'pinia';
import { useAccountStore } from '@thxnetwork/campaign/stores/Account';
import { useAccountStore } from '@thxnetwork/app/stores/Account';
type TCampaignProps = {
id: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
</template>

<script lang="ts">
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue';
import imgLogoEU from '@thxnetwork/campaign/assets/logo-eu.png';
import imgLogoTS from '@thxnetwork/campaign/assets/logo-ts.png';
import imgLogoPV from '@thxnetwork/campaign/assets/logo-pv.png';
import imgLogoEU from '@thxnetwork/app/assets/logo-eu.png';
import imgLogoTS from '@thxnetwork/app/assets/logo-ts.png';
import imgLogoPV from '@thxnetwork/app/assets/logo-pv.png';
export default defineComponent({
name: 'BaseCardHeaderHome',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ import { mapStores } from 'pinia';
import { useWalletStore } from '../../stores/Wallet';
import { useLiquidityStore } from '../../stores/Liquidity';
import { useVeStore } from '../../stores/VE';
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { contractNetworks } from '@thxnetwork/app/config/constants';
import { chainList } from '@thxnetwork/app/utils/chains';
import { ChainId } from '@thxnetwork/sdk';
import { formatUnits } from 'ethers/lib/utils';
import { useAuthStore } from '@thxnetwork/campaign/stores/Auth';
import { useAuthStore } from '@thxnetwork/app/stores/Auth';
import { useAccountStore } from '../../stores/Account';
export default defineComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { useAuthStore } from '../../stores/Auth';
import { useWalletStore } from '../../stores/Wallet';
import { useLiquidityStore } from '../../stores/Liquidity';
import { useVeStore } from '../../stores/VE';
import { roundUpFixed, toFiatPrice } from '@thxnetwork/campaign/utils/price';
import { roundUpFixed, toFiatPrice } from '@thxnetwork/app/utils/price';
export default defineComponent({
name: 'BaseCardPrices',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import { QuestVariant } from '@thxnetwork/sdk';
import { mapStores } from 'pinia';
import { useAccountStore } from '../../stores/Account';
import { useQuestStore } from '../../stores/Quest';
import { decodeHTML } from '@thxnetwork/campaign/utils/decode-html';
import { decodeHTML } from '@thxnetwork/app/utils/decode-html';
export default defineComponent({
name: 'BaseCardQuest',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import { useAuthStore } from '../../stores/Auth';
import { useQuestStore } from '../../stores/Quest';
import { useWalletStore } from '../../stores/Wallet';
import { ChainId } from '@thxnetwork/sdk';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
import imgLogoGitcoin from '../../assets/gitcoin-logo.svg';
export default defineComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ import { useAuthStore } from '../../stores/Auth';
import { useQuestStore } from '../../stores/Quest';
import { chainList, getAddressURL } from '../../utils/chains';
import { ChainId } from '@thxnetwork/sdk/src/lib/types/enums/ChainId';
import { useWalletStore } from '@thxnetwork/campaign/stores/Wallet';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { useWalletStore } from '@thxnetwork/app/stores/Wallet';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
export default defineComponent({
name: 'BaseCardQuestWeb3',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
import { mapStores } from 'pinia';
import { defineComponent } from 'vue';
import { useSnapshotStore } from '../../stores/Snapshot';
import { useVeStore } from '@thxnetwork/campaign/stores/VE';
import { useVeStore } from '@thxnetwork/app/stores/VE';
import { format } from 'date-fns';
export default defineComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import { defineComponent, PropType } from 'vue';
import { useLiquidityStore } from '../../stores/Liquidity';
import { useWalletStore } from '../../stores/Wallet';
import { formatUnits } from 'ethers/lib/utils';
import { toFiatPrice } from '@thxnetwork/campaign/utils/price';
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { toFiatPrice } from '@thxnetwork/app/utils/price';
import { contractNetworks } from '@thxnetwork/app/config/constants';
import { ChainId } from '@thxnetwork/sdk';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { chainList } from '@thxnetwork/app/utils/chains';
type TMetricReward = {
week: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import { mapStores } from 'pinia';
import { defineComponent } from 'vue';
import { useLiquidityStore } from '../../stores/Liquidity';
import { formatUnits, parseUnits } from 'ethers/lib/utils';
import { toFiatPrice } from '@thxnetwork/campaign/utils/price';
import { toFiatPrice } from '@thxnetwork/app/utils/price';
import { BigNumber } from 'ethers/lib/ethers';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { useWalletStore } from '@thxnetwork/campaign/stores/Wallet';
import { chainList } from '@thxnetwork/app/utils/chains';
import { useWalletStore } from '@thxnetwork/app/stores/Wallet';
import { ChainId } from '@thxnetwork/sdk';
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { contractNetworks } from '@thxnetwork/app/config/constants';
export default defineComponent({
name: 'BaseDropdownMetricAPR',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ import { defineComponent } from 'vue';
import { useLiquidityStore } from '../../stores/Liquidity';
import { useWalletStore } from '../../stores/Wallet';
import { formatUnits } from 'ethers/lib/utils';
import { toFiatPrice } from '@thxnetwork/campaign/utils/price';
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { toFiatPrice } from '@thxnetwork/app/utils/price';
import { contractNetworks } from '@thxnetwork/app/config/constants';
import { ChainId } from '@thxnetwork/sdk';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { chainList } from '@thxnetwork/app/utils/chains';
export default defineComponent({
name: 'BaseDropdownMetricAPR',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ import { mapStores } from 'pinia';
import { useWalletStore, walletLogoMap } from '../../stores/Wallet';
import { useAccountStore } from '../../stores/Account';
import { WalletVariant } from '../../types/enums/accountVariant';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { chainList } from '@thxnetwork/app/utils/chains';
export default defineComponent({
name: 'BaseDropdownWallets',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
</template>

<script lang="ts">
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { useVeStore } from '@thxnetwork/campaign/stores/VE';
import { useWalletStore } from '@thxnetwork/campaign/stores/Wallet';
import { contractNetworks } from '@thxnetwork/app/config/constants';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
import { useVeStore } from '@thxnetwork/app/stores/VE';
import { useWalletStore } from '@thxnetwork/app/stores/Wallet';
import { ChainId } from '@thxnetwork/sdk';
import { formatUnits, parseUnits } from 'ethers/lib/utils';
import { mapStores } from 'pinia';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { NinetyDaysInMs, getThursdaysUntilTimestamp } from '@thxnetwork/campaign/utils/date';
import { NinetyDaysInMs, getThursdaysUntilTimestamp } from '@thxnetwork/app/utils/date';
import { mapStores } from 'pinia';
import { useVeStore } from '@thxnetwork/campaign/stores/VE';
import { useVeStore } from '@thxnetwork/app/stores/VE';
import { BigNumber } from 'ethers';
export default defineComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ import { mapStores } from 'pinia';
import { useVeStore } from '../../stores/VE';
import { useWalletStore } from '../../stores/Wallet';
import { formatUnits } from 'ethers/lib/utils';
import { roundDownFixed, toFiatPrice } from '@thxnetwork/campaign/utils/price';
import { roundDownFixed, toFiatPrice } from '@thxnetwork/app/utils/price';
import { ChainId } from '@thxnetwork/sdk';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { chainList } from '@thxnetwork/app/utils/chains';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
export default defineComponent({
name: 'BaseModalClaimTokens',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ import { useLiquidityStore } from '../../stores/Liquidity';
import { BALANCER_POOL_ID, contractNetworks } from '../../config/constants';
import { parseUnits } from 'ethers/lib/utils';
import { ChainId } from '@thxnetwork/sdk';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
import { BalancerSDK, Network } from '@balancer-labs/sdk';
import { POLYGON_RPC } from '@thxnetwork/campaign/config/secrets';
import { POLYGON_RPC } from '@thxnetwork/app/config/secrets';
export default defineComponent({
name: 'BaseModalCreateLiquidity',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ import { useLiquidityStore } from '../../stores/Liquidity';
import { contractNetworks } from '../../config/constants';
import { ChainId } from '@thxnetwork/sdk';
import { formatUnits, parseUnits } from 'ethers/lib/utils';
import { roundDownFixed } from '@thxnetwork/campaign/utils/price';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { roundDownFixed } from '@thxnetwork/app/utils/price';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
import { BigNumber } from 'ethers';
export default defineComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useVeStore } from '../../stores/VE';
import { useWalletStore } from '../../stores/Wallet';
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
import { contractNetworks } from '../../config/constants';
import { formatUnits, parseUnits } from 'ethers/lib/utils';
import { ChainId } from '@thxnetwork/sdk';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
import { BigNumber } from 'ethers/lib/ethers';
export default defineComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useVeStore } from '../../stores/VE';
import { useWalletStore } from '../../stores/Wallet';
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
export default defineComponent({
name: 'BaseModalIncreaseLockEnd',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ import { useLiquidityStore } from '../../stores/Liquidity';
import { contractNetworks } from '../../config/constants';
import { ChainId } from '@thxnetwork/sdk';
import { formatUnits, parseUnits } from 'ethers/lib/utils';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { chainList } from '@thxnetwork/app/utils/chains';
import { BigNumber } from 'ethers/lib/ethers';
import { format } from 'date-fns';
import { roundDownFixed, toFiatPrice } from '@thxnetwork/campaign/utils/price';
import { parseError } from '@thxnetwork/campaign/utils/toast';
import { roundDownFixed, toFiatPrice } from '@thxnetwork/app/utils/price';
import { parseError } from '@thxnetwork/app/utils/toast';
export default defineComponent({
name: 'BaseModalDeposit',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import { mapStores } from 'pinia';
import { useRewardStore } from '../../stores/Reward';
import { useAccountStore } from '../../stores/Account';
import { useWalletStore } from '../../stores/Wallet';
import { RewardVariant } from '@thxnetwork/campaign/types/enums/rewards';
import { RewardVariant } from '@thxnetwork/app/types/enums/rewards';
export default defineComponent({
name: 'BaseModalRewardPayment',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { useLiquidityStore } from '../../stores/Liquidity';
import { contractNetworks } from '../../config/constants';
import { formatUnits, parseUnits } from 'ethers/lib/utils';
import { ChainId } from '@thxnetwork/sdk';
import { WalletVariant } from '@thxnetwork/campaign/types/enums/accountVariant';
import { WalletVariant } from '@thxnetwork/app/types/enums/accountVariant';
export default defineComponent({
name: 'BaseModalStake',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ import { defineComponent, PropType } from 'vue';
import { mapStores } from 'pinia';
import { useVeStore } from '../../stores/VE';
import { useWalletStore } from '../../stores/Wallet';
import { toFiatPrice } from '@thxnetwork/campaign/utils/price';
import { useLiquidityStore } from '@thxnetwork/campaign/stores/Liquidity';
import { contractNetworks } from '@thxnetwork/campaign/config/constants';
import { toFiatPrice } from '@thxnetwork/app/utils/price';
import { useLiquidityStore } from '@thxnetwork/app/stores/Liquidity';
import { contractNetworks } from '@thxnetwork/app/config/constants';
import { ChainId } from '@thxnetwork/sdk';
import { chainList } from '@thxnetwork/campaign/utils/chains';
import { chainList } from '@thxnetwork/app/utils/chains';
import { formatUnits } from 'ethers/lib/utils';
export default defineComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ import { chainList } from '../../utils/chains';
import { useWalletStore } from '../../stores/Wallet';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue';
import { useAccountStore } from '@thxnetwork/campaign/stores/Account';
import { useAccountStore } from '@thxnetwork/app/stores/Account';
import { ChainId } from '@thxnetwork/sdk';
import { shortenAddress } from '@thxnetwork/campaign/utils/address';
import { shortenAddress } from '@thxnetwork/app/utils/address';
export default defineComponent({
name: 'BaseModalWalletConnect',
Expand Down
Loading

0 comments on commit 2623466

Please sign in to comment.