mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
Merge remote-tracking branch 'ohaitch/subtalk'
Hide porches from random passerby
This commit is contained in:
commit
d1ac676653
@ -1376,6 +1376,8 @@
|
||||
~& [%bad-subscribe-story-c i.t.pax]
|
||||
(ra-evil %talk-no-story)
|
||||
=+ soy=~(. pa i.t.pax u.pur)
|
||||
?. (pa-visible:soy her)
|
||||
(ra-evil %talk-no-story)
|
||||
=^ who +>.$ (ra-human her)
|
||||
=. soy ?.((~(has in vab) %a) soy (pa-watch-group:soy her))
|
||||
=. soy ?.((~(has in vab) %v) soy (pa-watch-glyph:soy her))
|
||||
@ -1466,6 +1468,16 @@
|
||||
::==
|
||||
&
|
||||
::
|
||||
++ pa-visible :: display to
|
||||
|= her=ship
|
||||
^- ?
|
||||
?- p.cordon.shape
|
||||
%black &
|
||||
%green &
|
||||
%brown =(her our.hid)
|
||||
%white (~(has in q.cordon.shape) her)
|
||||
==
|
||||
::
|
||||
++ pa-report :: update
|
||||
|= [wac=(set bone) caw=report]
|
||||
:: ~& [%pa-report man -.caw]
|
||||
|
@ -2,6 +2,16 @@
|
||||
::
|
||||
:::: /hook/hymn/fab/talk/pub/
|
||||
::
|
||||
/+ talk
|
||||
/= gas /$ fuel :: get request info
|
||||
=+ aut=?=(~ but.gas)
|
||||
=+ ^- man=span
|
||||
~| bad-path/but.gas
|
||||
%- need
|
||||
?+ but.gas ~
|
||||
[@ ~] ((sand %ta) i.but.gas)
|
||||
~ (some (main:talk (slav %p -:%)))
|
||||
==
|
||||
|%
|
||||
++ cdnj
|
||||
|= a=wall ^- marl
|
||||
@ -21,8 +31,7 @@
|
||||
"lodash.js/2.4.1/lodash.min.js"
|
||||
"react/0.13.1/react.js"
|
||||
==
|
||||
:: remove /~~ for anon
|
||||
;script(type "text/javascript", src "/~~/~/at/home/lib/urb.js");
|
||||
;script(type "text/javascript", src "{?:(aut "/~~" "")}/~/at/home/lib/urb.js");
|
||||
;meta(name "viewport", content "width=device-width, height=device-height, ".
|
||||
"initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0");
|
||||
;link(type "text/css", rel "stylesheet", href "/home/pub/talk/src/css/main.css");
|
||||
@ -35,6 +44,7 @@
|
||||
;div#writing-container;
|
||||
;div#scrolling: BOTTOM
|
||||
==
|
||||
;script: window.talk = {(pojo (joba 'mainStation' s/man))}
|
||||
;script(type "text/javascript", src "/home/pub/talk/src/js/main.js");
|
||||
==
|
||||
==
|
||||
|
@ -90,7 +90,7 @@ module.exports = recl
|
||||
last:MessageStore.getLast()
|
||||
fetching:MessageStore.getFetching()
|
||||
listening:MessageStore.getListening()
|
||||
station:window.util.mainStation()
|
||||
station:window.talk.mainStation
|
||||
stations:StationStore.getStations()
|
||||
configs:StationStore.getConfigs()
|
||||
typing:MessageStore.getTyping()
|
||||
|
@ -10,7 +10,7 @@ module.exports = recl
|
||||
stateFromStore: -> {
|
||||
audi:StationStore.getAudience()
|
||||
members:StationStore.getMembers()
|
||||
station:window.util.mainStation()
|
||||
station:window.talk.mainStation
|
||||
stations:StationStore.getStations()
|
||||
configs:StationStore.getConfigs()
|
||||
typing:StationStore.getTyping()
|
||||
@ -73,6 +73,9 @@ module.exports = recl
|
||||
StationActions.setSources @state.station,_sources
|
||||
|
||||
render: ->
|
||||
if window.urb.user isnt window.urb.ship #foreign
|
||||
return div {id:"station"}
|
||||
|
||||
parts = []
|
||||
members = []
|
||||
|
||||
|
@ -108,7 +108,9 @@ module.exports = recl
|
||||
@cursorAtEnd
|
||||
|
||||
addCC: (audi) ->
|
||||
listening = @state.config[window.util.mainStation(window.urb.user)].sources
|
||||
if window.urb.user isnt window.urb.ship #foreign
|
||||
return audi
|
||||
listening = @state.config[window.util.mainStation(window.urb.user)]?.sources ? []
|
||||
cc = false
|
||||
for s in audi
|
||||
if listening.indexOf(s) is -1
|
||||
@ -251,6 +253,9 @@ module.exports = recl
|
||||
_onChangeStore: -> @setState @stateFromStore()
|
||||
|
||||
render: ->
|
||||
# if window.urb.user isnt window.urb.ship #foreign
|
||||
# return div {className:"writing"}
|
||||
|
||||
user = "~"+window.urb.user
|
||||
iden = StationStore.getMember(user)
|
||||
ship = if iden then iden.ship else user
|
||||
|
@ -3,7 +3,6 @@ $(() ->
|
||||
|
||||
rend = React.render
|
||||
|
||||
window.talk = {}
|
||||
window.talk.online = yes
|
||||
|
||||
setInterval (->
|
||||
|
@ -403,7 +403,7 @@ module.exports = recl({
|
||||
last: MessageStore.getLast(),
|
||||
fetching: MessageStore.getFetching(),
|
||||
listening: MessageStore.getListening(),
|
||||
station: window.util.mainStation(),
|
||||
station: window.talk.mainStation,
|
||||
stations: StationStore.getStations(),
|
||||
configs: StationStore.getConfigs(),
|
||||
typing: MessageStore.getTyping(),
|
||||
@ -573,7 +573,7 @@ module.exports = recl({
|
||||
return {
|
||||
audi: StationStore.getAudience(),
|
||||
members: StationStore.getMembers(),
|
||||
station: window.util.mainStation(),
|
||||
station: window.talk.mainStation,
|
||||
stations: StationStore.getStations(),
|
||||
configs: StationStore.getConfigs(),
|
||||
typing: StationStore.getTyping(),
|
||||
@ -648,6 +648,11 @@ module.exports = recl({
|
||||
},
|
||||
render: function() {
|
||||
var _remove, _sources, members, parts, sourceCtrl, sourceInput, sources;
|
||||
if (window.urb.user !== window.urb.ship) {
|
||||
return div({
|
||||
id: "station"
|
||||
});
|
||||
}
|
||||
parts = [];
|
||||
members = [];
|
||||
if (this.state.station && this.state.members) {
|
||||
@ -825,8 +830,11 @@ module.exports = recl({
|
||||
return this.cursorAtEnd;
|
||||
},
|
||||
addCC: function(audi) {
|
||||
var cc, i, len, listening, s;
|
||||
listening = this.state.config[window.util.mainStation(window.urb.user)].sources;
|
||||
var cc, i, len, listening, ref1, ref2, s;
|
||||
if (window.urb.user !== window.urb.ship) {
|
||||
return audi;
|
||||
}
|
||||
listening = (ref1 = (ref2 = this.state.config[window.util.mainStation(window.urb.user)]) != null ? ref2.sources : void 0) != null ? ref1 : [];
|
||||
cc = false;
|
||||
for (i = 0, len = audi.length; i < len; i++) {
|
||||
s = audi[i];
|
||||
@ -1057,7 +1065,6 @@ $(function() {
|
||||
var $c, MessagesComponent, StationActions, StationComponent, WritingComponent, rend;
|
||||
StationActions = require('./actions/StationActions.coffee');
|
||||
rend = React.render;
|
||||
window.talk = {};
|
||||
window.talk.online = true;
|
||||
setInterval((function() {
|
||||
window.talk.online = window.urb.poll.dely < 500;
|
||||
@ -6719,7 +6726,7 @@ _.merge(window.util, {
|
||||
},
|
||||
mainStation: function(user) {
|
||||
if (user == null) {
|
||||
user = window.urb.user;
|
||||
user = window.urb.ship;
|
||||
}
|
||||
switch (user.length) {
|
||||
case 3:
|
||||
|
@ -5,7 +5,7 @@ _.merge window.util,
|
||||
mainStationPath: (user = window.urb.user) ->
|
||||
"~#{user}/#{window.util.mainStation(user)}"
|
||||
|
||||
mainStation: (user = window.urb.user) ->
|
||||
mainStation: (user = window.urb.ship) ->
|
||||
switch user.length
|
||||
when 3
|
||||
return "court"
|
||||
|
Loading…
Reference in New Issue
Block a user