Skip to content

Commit

Permalink
Merge branch 'develop' into simpler-input-styles
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/components/curator-actions/child-bounties/operations/BatchAllChildBountyCalls.svelte
#	src/routes/curator-actions/batch/create/+page.svelte
#	src/routes/curator-actions/batch/everything/+page.svelte
  • Loading branch information
arty-name committed Jan 24, 2025
2 parents d7d49f3 + c2cd6e4 commit f10cce8
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 497 deletions.
481 changes: 4 additions & 477 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions src/components/curator-actions/ExternalLinks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,35 @@
import LogoTreasuryWhite from '../svg/curator-actions-logos/LogoTreasuryWhite.svg';
import LogoSubscanWhite from '../svg/curator-actions-logos/LogoSubscanWhite.svg';
import LogoSubsquareWhite from '../svg/curator-actions-logos/LogoSubsquareWhite.svg';
import LogoPolkassemblyWhite from '../svg/curator-actions-logos/LogoPolkassemblyWhite.svg';
import ExternalLinksButton from '../ExternalLinksButton.svelte';
export let bountyId: number;
export let dimension = 6;
</script>

<div class="mr-4">
<div class="space-x-2">
<ExternalLinksButton
url={`https://polkadot.subscan.io/bounty/${bountyId}`}
icon={LogoSubscanWhite}
{dimension}
/>
</div>
<div class="mr-4">

<ExternalLinksButton
url={`https://polkadot.dotreasury.com/#/bounties/${bountyId}`}
icon={LogoTreasuryWhite}
{dimension}
/>
</div>
<div class="mr-4">

<ExternalLinksButton
url={`https://polkadot.subsquare.io/treasury/bounty/${bountyId}`}
icon={LogoSubsquareWhite}
{dimension}
/>

<ExternalLinksButton
url={`https://polkadot.polkassembly.io/bounty/${bountyId}`}
icon={LogoPolkassemblyWhite}
{dimension}
/>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@
</div>

<div class="space-y-3 p-2 2xl:mr-[140px]">
<div class="flex justify-end">
<div class="hidden lg:flex lg:flex-row lg:items-center lg:justify-end lg:mr-2">
<ChildBountyExternalLinks dimension={6} childBountyId={childBounty.id} />
</div>
</div>
{#if $showAllCuratorOptions || (childBounty.status === 'Added' && $activeAccount?.address === parentBounty.curator)}
<div class="flex flex-col space-y-2 lg:flex-row lg:items-center lg:justify-end lg:gap-3">
<p class="text-xs lg:text-base lg:pt-2">Sub-curator</p>
Expand All @@ -169,12 +174,6 @@
</div>
{/if}

<div class="flex justify-end">
<div class="hidden lg:flex lg:flex-row lg:items-center lg:justify-end lg:mr-4">
<ChildBountyExternalLinks dimension={6} childBountyId={childBounty.id} />
</div>
</div>

{#if $showAllCuratorOptions || (childBounty.status === 'CuratorProposed' && childBounty.curator === $activeAccount?.address)}
<div class="flex flex-col space-y-2 lg:flex-row lg:items-center lg:justify-end lg:gap-3">
<p class="text-xs lg:text-base lg:pt-2">Sub-curator role</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<script lang="ts">
import LogoSubsquarePink from '../../svg/curator-actions-logos/LogoSubsquarePink.svg';
import LogoTreasuryPink from '../../svg/curator-actions-logos/LogoTreasuryPink.svg';
import LogoPolkassemblyPink from '../../svg/curator-actions-logos/LogoPolkassemblyPink.svg';
import ExternalLinksButton from '../../ExternalLinksButton.svelte';
export let dimension = 5;
export let childBountyId: number;
</script>

<div class="mr-4">
<div class="space-x-3.5">
<ExternalLinksButton
url={`https://polkadot.dotreasury.com/#/child-bounties/${childBountyId}`}
icon={LogoTreasuryPink}
{dimension}
backgroundColor="white"
textColor="primary"
buttonStyle="bg-accent text-white"
/>
</div>
<div class="mr-4">

<ExternalLinksButton
url={`https://polkadot.subsquare.io/treasury/child-bounties/${childBountyId}`}
icon={LogoSubsquarePink}
{dimension}
backgroundColor="white"
textColor="primary"
buttonStyle="bg-accent text-white"
/>

<ExternalLinksButton
url={`https://polkadot.polkassembly.io/child_bounty/${childBountyId}`}
icon={LogoPolkassemblyPink}
{dimension}
/>
</div>
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.
6 changes: 6 additions & 0 deletions src/routes/curator-actions/batch/create/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@
oninput={validateBountyValue}
inputmode="decimal"
/>
<span
class="border border-accent absolute right-9 top-9 transform -translate-y-1/2 h-6"
></span>
<span class="absolute right-2 top-[26px]">
<img src={PolkaCoin} width="20" height="20" alt="PolkaCoin" />

Check failure on line 112 in src/routes/curator-actions/batch/create/+page.svelte

View workflow job for this annotation

GitHub Actions / build-test-lint

'PolkaCoin' is not defined
</span>
</label>

<label>
Expand Down
12 changes: 12 additions & 0 deletions src/routes/curator-actions/batch/everything/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@
oninput={validateBountyValue}
inputmode="decimal"
/>
<span
class="border border-accent absolute right-9 top-9 transform -translate-y-1/2 h-6"
></span>
<span class="absolute right-2 top-[26px]">
<img src={PolkaCoin} width="20" height="20" alt="PolkaCoin" />

Check failure on line 173 in src/routes/curator-actions/batch/everything/+page.svelte

View workflow job for this annotation

GitHub Actions / build-test-lint

'PolkaCoin' is not defined
</span>
</label>

<label>
Expand All @@ -188,6 +194,12 @@
oninput={validateFee}
inputmode="decimal"
/>
<span
class="border border-accent absolute right-9 top-9 transform -translate-y-1/2 h-6"
></span>
<span class="absolute right-2 top-[26px]">
<img src={PolkaCoin} width="20" height="20" alt="PolkaCoin" />

Check failure on line 201 in src/routes/curator-actions/batch/everything/+page.svelte

View workflow job for this annotation

GitHub Actions / build-test-lint

'PolkaCoin' is not defined
</span>
</label>

<label>
Expand Down

0 comments on commit f10cce8

Please sign in to comment.