Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Jackson Palmer
@ummjackson
trying to get a non-dev machine to test on
Jason Miller
@developit
I felt a bit bad about it, but for new users they see nothing until they have 1 friend
originally had them follow me
now I have them follow @nectarineapp
Jackson Palmer
@ummjackson
ncie
that builds a stream up i guess
you can't register with mine :)
at the moment it's jsut for people who want to refresh their stream on desktop
Jason Miller
@developit
mhm
download is taking an eternity
Jackson Palmer
@ummjackson
it's ~40mb
haha
no way around it unfortunately, webkit is big
Jason Miller
@developit
oh no I know
I have 120mb down, just slow as hell for some reason
Jackson Palmer
@ummjackson
yeah the Github binary CDN ain't super fast
booyah it works on a clean non-dev machine
phew
Jason Miller
@developit
poop
Jackson Palmer
@ummjackson
Jason Miller
@developit
nice
damn you set that up fast
Jason Miller
@developit
My gifs are not animated in the Peach iOS app :(
Jason Miller
@developit
@ummjackson thinking about adding search?
Jackson Palmer
@ummjackson
hmm, perhaps
it's just some regexs on the object really
their search isn't advanced :)
Jason Miller
@developit
oh
is it local?
if so yeah should be cake
i should publish my changes for peach-client
they are pretty extensive lol
I put 0 thought/effort into the API though, kinda embarrassing
Jason Miller
@developit
you guys aware of an unblock API?
Jackson Palmer
@ummjackson
I don't think there is one
so @developit - points to you if you can figure out the "attributes" array for text messages with bold/italic
it provides the attribute type and a range
but i can't for the life of me get it to work...
i even talked to dom and he swears it's just simple ranges, but something is funky
Jason Miller
@developit
whaaaa
no way I have not even seen that yet
lol
got an example json?
Jackson Palmer
@ummjackson
holy crap i figured it out
if (attributes) {

 // attributes.reverse();

for (var i = attributes.length - 1; i >= 0; i--) {
  attribute = attributes[i];

  var tag; if (attribute.type == 'bold') { tag = 'b' } else { tag = 'em' };

  string = string.substring(0, attribute.range[0]) + '<' + tag + '>' + string.substring(attribute.range[0], attribute.range[0]+attribute.range[1]) + '</' + tag + '>' + string.substring(attribute.range[0] + attribute.range[1]);

}

return string;

}
this is how the message JSON is formatted
blob
Jason Miller
@developit
ah man I'm so spoiled by JSX
check out how nectarine renders messages, totally going to add formatting support this weekend:
https://github.com/developit/nectarine/blob/master/src/lib/parse-message.js
Jason Miller
@developit
@ummjackson is it only bold and italic for now?