mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
bounty launch?
This commit is contained in:
parent
8d7b6a2c35
commit
84888c37d0
13 changed files with 68 additions and 52 deletions
|
@ -7,11 +7,11 @@ class BountyActions extends Actions
|
||||||
public static function executeList()
|
public static function executeList()
|
||||||
{
|
{
|
||||||
$allBounties = Post::find(ROOT_DIR . '/posts/bounty');
|
$allBounties = Post::find(ROOT_DIR . '/posts/bounty');
|
||||||
|
|
||||||
$allCategories = ['' => ''] + Post::collectMetadata($allBounties, 'category');
|
|
||||||
$allStatuses = ['' => ''] + Post::collectMetadata($allBounties, 'status');
|
|
||||||
|
|
||||||
$selectedStatus = static::param('status');
|
$allCategories = ['' => ''] + Post::collectMetadata($allBounties, 'category');
|
||||||
|
$allStatuses = ['' => ''] + array_merge(Post::collectMetadata($allBounties, 'status'), ['complete' => 'unavailable']);
|
||||||
|
|
||||||
|
$selectedStatus = static::param('status', 'available');
|
||||||
$selectedCategory = static::param('category');
|
$selectedCategory = static::param('category');
|
||||||
|
|
||||||
$filters = array_filter([
|
$filters = array_filter([
|
||||||
|
|
|
@ -10,9 +10,10 @@
|
||||||
|
|
||||||
bounty:
|
bounty:
|
||||||
list:
|
list:
|
||||||
noresult: No matching bounties found.
|
noresults: No matching bounties found.
|
||||||
show:
|
show:
|
||||||
completednotice: This bounty has already been completed and can no longer be claimed.
|
completed_notice: This bounty has already been completed and can no longer be claimed.
|
||||||
|
pull_request_link: View the Pull Request
|
||||||
description:
|
description:
|
||||||
allowed: Download/install the latest version of LBRY for %os%.
|
allowed: Download/install the latest version of LBRY for %os%.
|
||||||
faq: Frequently asked questions about LBRY.
|
faq: Frequently asked questions about LBRY.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* i18n dummy we'll be happy to have later
|
* i18n dummy we'll be happy to have later
|
||||||
*/
|
*/
|
||||||
function __($msg, $args = [])
|
function __($msg, $args = [])
|
||||||
{
|
{
|
||||||
return strtr(i18n::translate($msg), $args);
|
return strtr(i18n::translate($msg), $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ class i18n
|
||||||
|
|
||||||
public static function formatCredits($amount)
|
public static function formatCredits($amount)
|
||||||
{
|
{
|
||||||
return '<span class="formatted-credits">' . number_format($amount, 1) . ' LBC</span>';
|
return '<span class="formatted-credits">' . (is_numeric($amount) ? number_format($amount, 1) : $amount) . ' LBC</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function translate($token, $language = null)
|
public static function translate($token, $language = null)
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
category: android
|
|
||||||
title: Mirror existing LBRY behavior in Android
|
|
||||||
award: 10000
|
|
||||||
status: available
|
|
||||||
date: '2016-07-01'
|
|
||||||
---
|
|
||||||
|
|
||||||
Domo arigato, Rami Malek.
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
category: ios
|
|
||||||
title: Mirror existing LBRY behavior in iOS
|
|
||||||
award: 10000
|
|
||||||
status: available
|
|
||||||
date: '2016-07-01'
|
|
||||||
---
|
|
||||||
|
|
||||||
An Apple a day keeps the FBI away.
|
|
|
@ -6,4 +6,10 @@ status: available
|
||||||
date: '2016-07-01'
|
date: '2016-07-01'
|
||||||
---
|
---
|
||||||
|
|
||||||
Create a build for Windows that is reproducible in Travis CI. This involves blah, blah, and blah.
|
LBRY is offering $1,000 in LBC to content creators as part of our [Publisher Partnership Program](https://lbry.io/publish).
|
||||||
|
|
||||||
|
If you refer someone that is accepted into the program, you will receive this bounty award.
|
||||||
|
|
||||||
|
**Note: Do not notify us to claim this bounty. When we accept publishers into the program, we will ask who referred them.**
|
||||||
|
|
||||||
|
This award will remain open as long as the publisher program continues to run.
|
|
@ -3,7 +3,13 @@ category: browser
|
||||||
title: Add Wallet Interface to LBRY Browser
|
title: Add Wallet Interface to LBRY Browser
|
||||||
award: 1000
|
award: 1000
|
||||||
status: complete
|
status: complete
|
||||||
|
pr: https://github.com/lbryio/lbry-web-ui/pull/23/files
|
||||||
date: '2016-07-01'
|
date: '2016-07-01'
|
||||||
---
|
---
|
||||||
|
|
||||||
Wallet wallet wallet, wallet wallet.
|
Add a basic wallet interface to the LBRY Browser [`lbry-web-ui`](https://github.com/lbry/lbry-web-ui).
|
||||||
|
|
||||||
|
The interface must support:
|
||||||
|
|
||||||
|
- Generating a new wallet address.
|
||||||
|
- Sending a variable number of credits to a specified address from the active wallet.
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
category: ci
|
|
||||||
title: Build LBRY for Windows
|
|
||||||
award: 1000
|
|
||||||
status: available
|
|
||||||
date: '2016-07-01'
|
|
||||||
---
|
|
||||||
|
|
||||||
Contact your favorite YouTuber or other online publisher and let them know about [LBRY's publishing partnerships](http://lbry.io/publish).
|
|
||||||
|
|
||||||
If you notify someone that is accepted, you'll earn a referral bonus.
|
|
22
posts/drafts/bounty/bug-bounty.md
Normal file
22
posts/drafts/bounty/bug-bounty.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
category: human
|
||||||
|
title: Bug and Security Bounty
|
||||||
|
award: 10-10,000+
|
||||||
|
status: available
|
||||||
|
date: '2016-07-01'
|
||||||
|
---
|
||||||
|
|
||||||
|
LBRY will award LBC for all cleanly documented bugs, security vulnerabilities, or other flaws in LBRY's software, servers, infrastructure, or procedures.
|
||||||
|
|
||||||
|
Awards will be variable based on the severity of the issue. Any discoveries that risk exploitation of the LBRY network, it's users, or LBRY Inc. should be disclosed privately to [grin@lbry.io](mailto:grin@lbry.io).
|
||||||
|
|
||||||
|
Extremely severe discoveries will warrant commensurate awards. Typical bug discoveries will be at the bottom of the scale.
|
||||||
|
|
||||||
|
### Reporting a Bug
|
||||||
|
|
||||||
|
To report a bug, please open an Issue on the relevant Github project:
|
||||||
|
|
||||||
|
[`lbry-web-ui`](https://github.com/lbry/lbry-web-ui) - UI bugs or display issues
|
||||||
|
[`lbry`](https://github.com/lbry/lbry-web-ui) - Connection or hosting issues
|
||||||
|
[`lbrycrdd`](https://github.com/lbry/lbry-web-ui) - Blockchain related issues
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<span class="align-left"><span class="meta"><?php echo $metadata['category'] ?></span></span>
|
<span class="align-left"><span class="meta"><?php echo $metadata['category'] ?></span></span>
|
||||||
<span class="align-right"><span class="badge badge-primary bounty-award"><?php echo i18n::formatCredits($metadata['award']) ?></span></span>
|
<span class="align-right"><span class="badge badge-primary <?php echo isset($metadata['status']) ? 'bounty-award-' . $metadata['status'] : '' ?>"
|
||||||
|
><?php echo i18n::formatCredits($metadata['award']) ?></span></span>
|
||||||
</div>
|
</div>
|
|
@ -24,7 +24,7 @@
|
||||||
]) ?>
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row align-left">
|
<div class="form-row align-left">
|
||||||
<label>Completed</label>
|
<label>Status</label>
|
||||||
<select name="status">
|
<select name="status">
|
||||||
<?php foreach($statuses as $statusVal => $statusLabel): ?>
|
<?php foreach($statuses as $statusVal => $statusLabel): ?>
|
||||||
<option value="<?php echo $statusVal ?>" <?php echo $selectedStatus == $statusVal ? 'selected="selected"' : '' ?>><?php echo $statusLabel ?></option>
|
<option value="<?php echo $statusVal ?>" <?php echo $selectedStatus == $statusVal ? 'selected="selected"' : '' ?>><?php echo $statusLabel ?></option>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
<?php foreach($bounties as $post): ?>
|
<?php foreach($bounties as $post): ?>
|
||||||
<?php $metadata = $post->getMetadata() ?>
|
<?php $metadata = $post->getMetadata() ?>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<a class="bounty-tile <?php echo isset($metadata['status']) ? 'bounty-status-' . $metadata['status'] : '' ?>" href="<?php echo $post->getRelativeUrl() ?>">
|
<a class="bounty-tile" href="<?php echo $post->getRelativeUrl() ?>">
|
||||||
<div class="text-center spacer-half"><span class="icon-mega
|
<div class="text-center spacer-half"><span class="icon-mega
|
||||||
<?php switch($metadata['category']) {
|
<?php switch($metadata['category']) {
|
||||||
case 'ci': echo 'icon-wrench'; break;
|
case 'ci': echo 'icon-wrench'; break;
|
||||||
|
|
|
@ -13,19 +13,28 @@
|
||||||
<?php echo View::render('bounty/_meta', ['metadata' => $metadata]) ?>
|
<?php echo View::render('bounty/_meta', ['metadata' => $metadata]) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($metadata['status'] == 'complete'): ?>
|
<?php if ($metadata['status'] == 'complete'): ?>
|
||||||
<div class="notice notice-info spacer1">{{bounty.show.completednotice}}</div>
|
<div class="notice notice-info spacer1">
|
||||||
|
<p>{{bounty.show.completed_notice}}</p>
|
||||||
|
<?php if (isset($metadata['pr'])): ?>
|
||||||
|
<p></p><a href="<?php echo $metadata['pr'] ?>">{{bounty.show.pull_request_link}}</a></p>
|
||||||
|
<?php endif ?>
|
||||||
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<div class="content">
|
||||||
<?php echo $postHtml ?>
|
<?php echo $postHtml ?>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h4>Claim This Bounty</h4>
|
<?php if ($metadata['status'] !== 'complete'): ?>
|
||||||
<div class="spacer1">
|
<h4>Claim This Bounty</h4>
|
||||||
<a href="mailto:bounty@lbry.io?subject=<?php echo $metadata['title'] ?>" class="btn btn-alt">Claim Bounty</a>
|
<div class="spacer1">
|
||||||
</div>
|
<a href="mailto:bounty@lbry.io?subject=<?php echo $metadata['title'] ?>" class="btn btn-alt">Claim Bounty</a>
|
||||||
<h4>Bounty Questions?</h4>
|
</div>
|
||||||
<div class="spacer1">
|
<h4>Bounty Questions?</h4>
|
||||||
<a href="/faq/bounties">Read the FAQ</a>
|
<div class="spacer1">
|
||||||
</div>
|
<a href="/faq/bounties">Read the FAQ</a>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bounty-status-complete .bounty-award
|
.bounty-award-complete
|
||||||
{
|
{
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue