This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/index.js b/index.js | |
index 4cf1473..598b1d1 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -1,6 +1,7 @@ | |
#!/usr/bin/env node | |
const cli = require('cac')('txtl') | |
+const textile = require('@textile/js-http-client').default | |
var readline = require('readline') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/index.js b/index.js | |
index 11b46ac..4cf1473 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -1,6 +1,7 @@ | |
#!/usr/bin/env node | |
const cli = require('cac')('txtl') | |
+var readline = require('readline') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const cli = require('cac')('txtl') | |
const { log } = console | |
// Create 'default' chat command | |
cli.command('', 'Starts an interactive chat session in a thread.') | |
.action((opts) => { | |
log('do something') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Main.js b/src/Main.js | |
index a545559..e34f915 100644 | |
--- a/src/Main.js | |
+++ b/src/Main.js | |
@@ -1,21 +1,11 @@ | |
import React, { Component } from 'react' | |
import { observer, inject } from 'mobx-react' | |
-import { Image } from 'semantic-ui-react' | |
-// import Moment from 'react-moment' | |
-import * as Logo from './[email protected]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Store.js b/src/Store.js | |
--- a/src/Store.js | |
+++ b/src/Store.js | |
@@ -1,7 +1,10 @@ | |
-import { observe, action, observable } from 'mobx' | |
+import { observe, action, observable, runInAction } from 'mobx' | |
+import { utc } from 'moment' | |
import { Textile } from '@textile/js-http-client' | |
import { toast } from 'react-semantic-toasts' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { observer, inject } from 'mobx-react' | |
import { Card, Icon, Image, Input, Form } from 'semantic-ui-react' | |
import Moment from 'react-moment' | |
@inject('store') @observer | |
class Profile extends Component { | |
handleUsername = e => { | |
e.preventDefault() | |
this.props.store.setProfile(this.inputRef.value, null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint no-undef: "error" */ | |
/* eslint-env browser */ | |
import 'babel-polyfill' | |
import toposort from 'toposort' | |
import waterfall from 'async/waterfall' | |
const getThreadInfo = async (thread) => { | |
const threadId = thread || 'default' | |
return executeJsonCmd('GET', `${API}/threads/${threadId}`, { ctype: 'application/json' }) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import click | |
from subprocess import check_output | |
import zipfile | |
try: | |
from tempfile import TemporaryDirectory | |
except: | |
from backports.tempfile import TemporaryDirectory | |
from glob import glob | |
import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import subprocess | |
cmds = subprocess.check_output(["textile", "commands"]).decode("utf-8").split("\n")[:-1] | |
seen = set() | |
for cmd in cmds: | |
line = cmd.split(" ") + ["--help",] | |
if line: | |
if line[1] not in seen: | |
seen.add(line[1]) | |
header = "# `{}`\n\n".format(line[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict' | |
import IPFS from 'ipfs' | |
const getIpfs = (opts) => { | |
opts = opts || {} | |
return new Promise(function (resolve, reject) { | |
var ipfs = new IPFS(opts) |