mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-22 01:46:52 +01:00
update search twitter params
-update styles
This commit is contained in:
parent
6dba8a7de8
commit
2e8f758d38
1
assets/img/icons/copy.svg
Normal file
1
assets/img/icons/copy.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill-rule="evenodd" fill="#94FEBF" d="M15 14h-1v1a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3zM3 6a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H3zm13-3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v1h5a3 3 0 0 1 3 3v5h1a1 1 0 0 0 1-1V3z"></path></svg>
|
After Width: | Height: | Size: 374 B |
@ -28,3 +28,10 @@
|
|||||||
background-image: url('../img/icons/link.svg');
|
background-image: url('../img/icons/link.svg');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contribution-hash {
|
||||||
|
.icon {
|
||||||
|
background-image: url('../img/icons/copy.svg');
|
||||||
|
background-size: 16px 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -10,5 +10,9 @@
|
|||||||
&.is-danger {
|
&.is-danger {
|
||||||
color: $danger;
|
color: $danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.buttons .button {
|
||||||
|
margin-top: .5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,25 +67,9 @@
|
|||||||
|
|
||||||
.table-search {
|
.table-search {
|
||||||
.icon {
|
.icon {
|
||||||
mask-image: url("../img/icons/search.svg");
|
background-image: url("../img/icons/search.svg");
|
||||||
mask-position: center;
|
background-position: center;
|
||||||
mask-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
mask-size: 16px 16px;
|
background-size: 16px 16px;
|
||||||
|
|
||||||
background-color: $input-placeholder-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input {
|
|
||||||
&:hover {
|
|
||||||
~ .icon {
|
|
||||||
background-color: $input-hover-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus {
|
|
||||||
~ .icon {
|
|
||||||
background-color: $primary;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,19 +19,17 @@
|
|||||||
>
|
>
|
||||||
Save information
|
Save information
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
</div>
|
||||||
v-if="status.type === 'is-success'"
|
<div v-show="status.type !== ''" class="status">
|
||||||
@click="makeTweet"
|
<div :class="status.type" class="status-message">{{ status.msg }}</div>
|
||||||
type="is-primary"
|
<div v-show="status.type === 'is-success'" class="status-message is-success">
|
||||||
tag="a"
|
Now you can post attestation from your twitter account.
|
||||||
target="_blank"
|
<div class="buttons is-centered">
|
||||||
outlined
|
<b-button @click="makeTweet" type="is-primary" tag="a" target="_blank" outlined>
|
||||||
>
|
|
||||||
Post attestation
|
Post attestation
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="status.type === 'is-danger' || status.type === 'is-success'" class="status">
|
</div>
|
||||||
<div :class="status.type" class="status-message">{{ status.msg }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -99,7 +97,7 @@ export default {
|
|||||||
body: JSON.stringify(body)
|
body: JSON.stringify(body)
|
||||||
})
|
})
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
this.status.msg = `Your contribution authorized. Now you can post attestation from your twitter account.`
|
this.status.msg = `Your contribution authorized.`
|
||||||
this.status.type = 'is-success'
|
this.status.type = 'is-success'
|
||||||
this.hideSaveBtn = true
|
this.hideSaveBtn = true
|
||||||
} else {
|
} else {
|
||||||
|
@ -27,18 +27,31 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<div v-show="status.type === 'is-danger' || status.type === 'is-success'" class="status">
|
|
||||||
<div :class="status.type" class="status-message">{{ status.msg }}</div>
|
|
||||||
</div>
|
|
||||||
<div v-show="contributionHash" class="status">
|
<div v-show="contributionHash" class="status">
|
||||||
<div class="label">Your contribution hash (Blake2b)</div>
|
<div class="label">Your contribution hash (Blake2b)</div>
|
||||||
<b-field position="is-centered">
|
<b-field position="is-centered" class="has-addons contribution-hash">
|
||||||
<b-input :value="contributionHash" readonly></b-input>
|
<b-input
|
||||||
<p class="control">
|
@click.native="copyContributionHash"
|
||||||
<b-button @click="copyContributionHash" type="is-primary">Copy</b-button>
|
:value="contributionHash"
|
||||||
</p>
|
icon="copy"
|
||||||
|
readonly
|
||||||
|
></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-show="status.type !== ''" class="status">
|
||||||
|
<div :class="status.type" class="status-message">{{ status.msg }}</div>
|
||||||
|
<div
|
||||||
|
v-show="status.type === 'is-success' && contributionType !== 'anonymous'"
|
||||||
|
class="status-message is-success"
|
||||||
|
>
|
||||||
|
Now you can post attestation from your twitter account.
|
||||||
|
<div class="buttons is-centered">
|
||||||
|
<b-button @click="makeTweet" type="is-primary" tag="a" target="_blank" outlined>
|
||||||
|
Post attestation
|
||||||
|
</b-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div v-show="authorizeLink" class="status">
|
<div v-show="authorizeLink" class="status">
|
||||||
You still can authorize your contribution by following this
|
You still can authorize your contribution by following this
|
||||||
<a :href="authorizeLink" class="has-text-primary">link</a>.
|
<a :href="authorizeLink" class="has-text-primary">link</a>.
|
||||||
@ -54,16 +67,6 @@
|
|||||||
>
|
>
|
||||||
Make the contribution
|
Make the contribution
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
|
||||||
v-if="status.type === 'is-success' && contributionType !== 'anonymous'"
|
|
||||||
@click="makeTweet"
|
|
||||||
type="is-primary"
|
|
||||||
tag="a"
|
|
||||||
target="_blank"
|
|
||||||
outlined
|
|
||||||
>
|
|
||||||
Post attestation
|
|
||||||
</b-button>
|
|
||||||
</div>
|
</div>
|
||||||
<p class="p">
|
<p class="p">
|
||||||
If you don’t trust binaries, we encorage you to follow this
|
If you don’t trust binaries, we encorage you to follow this
|
||||||
@ -183,8 +186,6 @@ export default {
|
|||||||
this.contributionHash = responseData.hash
|
this.contributionHash = responseData.hash
|
||||||
if (this.contributionType === 'anonymous') {
|
if (this.contributionType === 'anonymous') {
|
||||||
this.authorizeLink = `${window.location.origin}/authorize-contribution?token=${responseData.token}`
|
this.authorizeLink = `${window.location.origin}/authorize-contribution?token=${responseData.token}`
|
||||||
} else {
|
|
||||||
this.status.msg += ' Now you can post attestation from your twitter account.'
|
|
||||||
}
|
}
|
||||||
} else if (resp.status === 422) {
|
} else if (resp.status === 422) {
|
||||||
if (retry < 3) {
|
if (retry < 3) {
|
||||||
|
@ -31,7 +31,7 @@ function attestationWatcher() {
|
|||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
since_id: initTweet,
|
since_id: initTweet,
|
||||||
q: `#${TWITTER_HASHTAG} -filter:retweets`,
|
q: `contribution #${TWITTER_HASHTAG} -filter:retweets`,
|
||||||
result_type: 'recent',
|
result_type: 'recent',
|
||||||
count: 100
|
count: 100
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user