mirror of
https://github.com/urbit/shrub.git
synced 2024-11-30 22:15:47 +03:00
Merge branch 'os1-rc' into mp/os1/launch
This commit is contained in:
commit
4281077dcc
@ -36,7 +36,9 @@ export class InviteSearch extends Component {
|
|||||||
let peers = [],
|
let peers = [],
|
||||||
peerSet = new Set();
|
peerSet = new Set();
|
||||||
Object.keys(this.props.groups).map(group => {
|
Object.keys(this.props.groups).map(group => {
|
||||||
|
if (this.props.groups[group].size > 0) {
|
||||||
peerSet.add(...this.props.groups[group]);
|
peerSet.add(...this.props.groups[group]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
peers = Array.from(peerSet);
|
peers = Array.from(peerSet);
|
||||||
|
|
||||||
|
@ -176,3 +176,38 @@ a {
|
|||||||
.no-scrollbar::-webkit-scrollbar {
|
.no-scrollbar::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.md h1, .md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul, .md blockquote,.md code,.md pre {
|
||||||
|
font-size: 14px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md h1 {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md h2, .md h3, .md h4, .md h5 {
|
||||||
|
color:var(--gray);
|
||||||
|
}
|
||||||
|
|
||||||
|
.md p {
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
.md code, .md pre {
|
||||||
|
font-family: "Source Code Pro", mono;
|
||||||
|
}
|
||||||
|
.md ul>li {
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
.md a {
|
||||||
|
border-bottom-style: solid;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
md img {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
@ -45,7 +45,7 @@ export class Comments extends Component {
|
|||||||
|
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
<button onClick={this.commentSubmit} className="f9 pa2 bg-white br1 ba b--gray2 gray2">
|
<button onClick={this.commentSubmit} className="f9 pa2 bg-white br1 ba b--gray2 gray2 pointer">
|
||||||
Add comment
|
Add comment
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,7 +51,7 @@ export class NoteNavigation extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex mt4">
|
<div className="flex pt4">
|
||||||
{prevComponent}
|
{prevComponent}
|
||||||
{nextComponent}
|
{nextComponent}
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,8 +2,7 @@ import React, { Component } from 'react';
|
|||||||
import { Comments } from './comments';
|
import { Comments } from './comments';
|
||||||
import { NoteNavigation } from './note-navigation';
|
import { NoteNavigation } from './note-navigation';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import ReactMarkdown from 'react-markdown'
|
import ReactMarkdown from 'react-markdown';
|
||||||
// import test from 'test.json';
|
|
||||||
//TODO ask for note if we don't have it
|
//TODO ask for note if we don't have it
|
||||||
//TODO initialise note if no state
|
//TODO initialise note if no state
|
||||||
|
|
||||||
@ -129,13 +128,14 @@ export class Note extends Component {
|
|||||||
<div className="w-100 mw6">
|
<div className="w-100 mw6">
|
||||||
<div className="flex flex-column">
|
<div className="flex flex-column">
|
||||||
<div className="f9 mb1">{title}</div>
|
<div className="f9 mb1">{title}</div>
|
||||||
<div className="flex">
|
<div className="flex mb6">
|
||||||
<div className="di f9 mono gray2 mr2">{author}</div>
|
<div className="di f9 mono gray2 mr2">{author}</div>
|
||||||
<div className="di f9 gray2">{date}</div>
|
<div className="di f9 gray2">{date}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="md">
|
||||||
<ReactMarkdown source={newfile} />
|
<ReactMarkdown source={newfile} />
|
||||||
|
</div>
|
||||||
<NoteNavigation
|
<NoteNavigation
|
||||||
prev={prev}
|
prev={prev}
|
||||||
next={next}
|
next={next}
|
||||||
|
Loading…
Reference in New Issue
Block a user