diff --git a/view/template/developer/_formCreditsPublish.php b/view/template/developer/_formCreditsPublish.php index 017f58a7..71236bd3 100644 --- a/view/template/developer/_formCreditsPublish.php +++ b/view/template/developer/_formCreditsPublish.php @@ -2,7 +2,7 @@ lbry.quickstartForm('#form-new-publish-reward', "");
-

Receive Credits for Publish

+

Publishing Reward

diff --git a/view/template/developer/_quickstartApi.php b/view/template/developer/_quickstartApi.php index 49eef0c5..f2c1111e 100644 --- a/view/template/developer/_quickstartApi.php +++ b/view/template/developer/_quickstartApi.php @@ -9,7 +9,7 @@ To verify the LBRY daemon is running correctly, let's try looking up a name:

$curl 'http://localhost:5279/lbryapi' --data '{"method":"resolve_name","params":{"name":"what"}}' -[ +[ { "ver": "0.0.3", "description": "What is LBRY? An introduction with Alex Tabarrok", @@ -24,11 +24,11 @@ "nsfw": false, "thumbnail": "https:\/\/s3.amazonaws.com\/files.lbry.io\/logo.png" } -] +]

Above, we called the method resolve_name for the URL lbry://what. This returned the metadata associated with the URL.

Now let's download it. This time we're going to call the method get with the same parameters.

$curl 'http://localhost:5279/lbryapi' --data '{"method":"get","params":{"name":"what"} }' -["d5169241150022f996fa7cd6a9a1c421937276a3275eb912790bd07ba7aec1fac5fd45431d226b8fb402691e79aeb24b"] +["d5169241150022f996fa7cd6a9a1c421937276a3275eb912790bd07ba7aec1fac5fd45431d226b8fb402691e79aeb24b"]

The LBRY API consists about 50 calls, all related to discovering, distributing, and purchasing content. View the full API documentation.

You can also list all of the commands available by calling the help command.

$curl 'http://localhost:5279/lbryapi' --data '{"method":"help"}' diff --git a/view/template/developer/_quickstartCredits.php b/view/template/developer/_quickstartCredits.php index 0147dba0..e148c05c 100644 --- a/view/template/developer/_quickstartCredits.php +++ b/view/template/developer/_quickstartCredits.php @@ -1,8 +1,8 @@

Credits

So far, everything we've done with LBRY has been free. However, some actions, such as reserving a name or purchasing paid content, require credits.

To receive credits, first generate a wallet address:

-$curl 'http://localhost:5279/lbryapi' --data '{"method":"wallet_new_address","params":[]}' -["bbFxRyWCFRkA9YcuuZD8nE7XTLUxYnddTs"] +$curl 'http://localhost:5279/lbryapi' --data '{"method":"wallet_new_address"}' +["bbFxRyWCFRkA9YcuuZD8nE7XTLUxYnddTs"]

Enter this address in the form below and we'll send you 50 credits.

Next, confirm you've received your credits by calling wallet_balance:

$curl 'http://localhost:5279/lbryapi' --data '{"method":"wallet_balance"}' -[50.00000000] +[50.00000000]

Publishing

Publishing to LBRY is just as easy as everything else! If you publish something, we'll send you an additional 200 LBC for further use.

Not sure what to publish? We recommend your favorite picture or home video. Or just grab something from here.

@@ -21,7 +21,7 @@ "bid": 1, "metadata": {"what goes here": "who knows if you do not work for LBRY, certainly you will not be able to figure it out from response messages or API docs" }}' -[whatever this response looks like] +[whatever this response looks like]
Request::getRelativeUri() . '#new-developer' diff --git a/view/template/page/quickstart_old.php b/view/template/page/quickstart_old.php deleted file mode 100644 index efb4fa1c..00000000 --- a/view/template/page/quickstart_old.php +++ /dev/null @@ -1,63 +0,0 @@ - - - - false, 'isAbsolute' => false]) ?> -
-
-
-

Set Up

-

This step-by-step guide will have you running LBRY and interacting with the API in just a few minutes.

-

This guide is for programmers and other technical users. For consumer usage of LBRY, please go here.

-

What's Covered

-
    -
  1. Installation
  2. -
  3. Running LBRY
  4. -
  5. The API
  6. -
  7. Credits
  8. -
  9. Community & Issues
  10. -
-
-

1. Installation

-

The easiest way to install LBRY is to use a pre-packaged binary. We provide binaries for Windows, macOS, and Debian-based Linux.

- - - - - - - - - - - - - - - -
macOS Linux Windows
Download DMGDownload DEBDownload MSI
-

- If you prefer to compile from source or are not on one of the above operating systems, follow - this guide. -

-
-
-

2. Running LBRY

-

- Launch the deamon to run as a background process: -

-

- $lbrynet-daemon -

-

The first time you run the daemon, it must catch-up with most recent blockheaders. This can take several minutes.

-
macOS and Windows do not currently bundle the daemon separately. Just launch the full app and the API will still be available. This will be resolved in v0.9.
-
-
- -
- - -
-
-
- - diff --git a/view/template/page/what.php b/view/template/page/what.php index 9c9831cd..724ade3c 100644 --- a/view/template/page/what.php +++ b/view/template/page/what.php @@ -97,16 +97,16 @@

Here is a sample key-value entry in the LBRY blockchain. Here, wonderfullife is the key, and the rest of the description is the value.

$lbrynet-cli resolve_name name=wonderfullife -wonderfullife : { - title: "It’s a Wonderful Life", - description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.", - thumbnail: "http://i.imgur.com/MW45x88.jpg", - license: "public domain", - price: 0, //free! - publisher: "A Fan Of George Bailey", //simplification - sources: { //extensible, variable list - lbry_hash : <unique id>, - url : <url> +wonderfullife : { + title: "It’s a Wonderful Life", + description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.", + thumbnail: "http://i.imgur.com/MW45x88.jpg", + license: "public domain", + price: 0, //free! + publisher: "A Fan Of George Bailey", //simplification + sources: { //extensible, variable list + lbry_hash : <unique id>, + url : <url> } }

A slightly simplified sample entry of metadata in the LBRY blockchain. Whichever party or parties bid the most in an ongoing auction control what a name returns.

@@ -245,16 +245,16 @@

Here is a sample key-value entry in the LBRY blockchain. Here, wonderfullife is the key, and the rest of the description is the value.

-    wonderfullife : {
-      title: "It’s a Wonderful Life",
-      description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
-      thumbnail: "http://i.imgur.com/MW45x88.jpg",
-      license: "public domain",
-      price: 0, //free!
-      publisher: "A Fan Of George Bailey", //simplification
-      sources: { //extensible, variable list
-        lbry_hash : <unique id>,
-        url : <url>
+    wonderfullife : {
+      title: "It’s a Wonderful Life",
+      description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
+      thumbnail: "http://i.imgur.com/MW45x88.jpg",
+      license: "public domain",
+      price: 0, //free!
+      publisher: "A Fan Of George Bailey", //simplification
+      sources: { //extensible, variable list
+        lbry_hash : <unique id>,
+        url : <url>
       }
     }
diff --git a/web/scss/_code.scss b/web/scss/_code.scss index 980c1cd3..1d825263 100644 --- a/web/scss/_code.scss +++ b/web/scss/_code.scss @@ -34,7 +34,6 @@ pre user-select: text; margin-bottom: $spacing-vertical; - border-left: .3rem solid $color-primary; padding: $spacing-vertical / 2 $spacing-vertical; unicode-bidi: embed; overflow-x: auto; @@ -42,10 +41,22 @@ pre display: block; word-wrap: break-word; + background: #222; + color: #fff; + font-size: 0.75em; } -.code-bash__kw1 {color: #c20cb9; font-weight: bold;} -.code-bash__kw2 {color: #7a0874; font-weight: bold; } +.code-bash__response { + color: #ccc; +} + +.code-bash__kw {color: #c20cb9; font-weight: bold;} .code-bash__comment { color: #888; } -.code-bash__prompt { font-weight: bold; margin-right: 5px; } \ No newline at end of file +.code-bash__prompt +{ + font-weight: bold; + margin-right: 5px; + color: lighten($color-primary, 20%); + @include user-select(none); +} \ No newline at end of file diff --git a/web/scss/_global.scss b/web/scss/_global.scss index 7b7a9d00..d3959b3c 100644 --- a/web/scss/_global.scss +++ b/web/scss/_global.scss @@ -169,6 +169,13 @@ $info_text: #3a87ad; } +@mixin user-select ($value) { + -webkit-user-select: $value; + -moz-user-select: $value; + -ms-user-select: $value; + user-select: $value; +} + @mixin transition($transition-property, $transition-time, $method) { -webkit-transition: $transition-property $transition-time $method; -moz-transition: $transition-property $transition-time $method;