mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-31 09:21:26 +00:00
barest of bones
This commit is contained in:
parent
f17d0ae5c4
commit
d5fed54b19
6 changed files with 51 additions and 0 deletions
|
@ -73,6 +73,8 @@ class Controller
|
|||
return MailActions::executeListSubscribe();
|
||||
case '/press-kit.zip':
|
||||
return ContentActions::executePressKit();
|
||||
case '/roadmap':
|
||||
return ContentActions::executeRoadmap();
|
||||
case '/LBRY-deck.pdf':
|
||||
case '/deck.pdf':
|
||||
return static::redirect('https://www.dropbox.com/s/0xj4vgucsbi8rtv/lbry-deck.pdf?dl=1');
|
||||
|
|
|
@ -110,6 +110,15 @@ class ContentActions extends Actions
|
|||
]];
|
||||
}
|
||||
|
||||
|
||||
public static function executeRoadmap()
|
||||
{
|
||||
print_r(Asana::listRoadmapTasks());
|
||||
die('wtf');
|
||||
return ['content/roadmap', [
|
||||
]];
|
||||
}
|
||||
|
||||
public static function executePressKit()
|
||||
{
|
||||
$zipFileName = 'lbry-press-kit-' . date('Y-m-d') . '.zip';
|
||||
|
|
28
data/api/Asana.class.php
Normal file
28
data/api/Asana.class.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
class Asana
|
||||
{
|
||||
protected static $curlOptions = [];
|
||||
|
||||
public static function listRoadmapTasks()
|
||||
{
|
||||
return static::get('abc');
|
||||
$uri = '/projects/projectId-id/tasks';
|
||||
}
|
||||
|
||||
protected static function get($endpoint, array $data = [])
|
||||
{
|
||||
$apiKey = '0/c85cfce3591c2a3e214408cfba7cc44c';
|
||||
$options = [];
|
||||
// $apiKey = Config::get('prefinery_key');
|
||||
// curl -H "Authorization: Bearer ACCESS_TOKEN" https://app.asana.com/api/1.0/users/me
|
||||
$options['headers'] = ['Authorization: Bearer ' . $apiKey];
|
||||
return
|
||||
Curl::get('https://app.asana.com/api/1.0/users/me', $data, $options)
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
class AsanaException extends Exception
|
||||
{
|
||||
}
|
|
@ -234,3 +234,6 @@ title:
|
|||
publish: Publish
|
||||
refer: Share and Earn
|
||||
what: "Art in the Internet Age: An Introduction to LBRY"
|
||||
roadmap:
|
||||
title: LBRY Roadmap
|
||||
description: See past and future progress on development of LBRY, the world's first user-controlled digital marketplace.
|
9
view/template/content/roadmap.php
Normal file
9
view/template/content/roadmap.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php Response::setMetaDescription('roadmap.description') ?>
|
||||
<?php NavActions::setNavUri('/learn') ?>
|
||||
<?php echo View::render('nav/_header', ['isDark' => false]) ?>
|
||||
|
||||
<main>
|
||||
<div class="content content-light">
|
||||
<h1>{{roadmap.title}}</h1>
|
||||
</div>
|
||||
</main>
|
Loading…
Add table
Reference in a new issue