id stringlengths 34 124 | type stringclasses 4
values | prompt stringlengths 0 4.95k | response stringlengths 21 4.89k | source_lang stringclasses 3
values | target_lang stringclasses 2
values | repo stringclasses 75
values | path stringlengths 10 88 | license stringclasses 1
value | commit stringlengths 40 40 | stars int64 431 18.7k | source_url stringlengths 86 176 | line_start int64 1 214 | line_end int64 3 253 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jnordberg/wintersmith:src/core/graph.coffee:1:completion | completion | class Node
constructor: (@id, @item) -> | @edges = []
addEdge: (node) ->
@edges.push node | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 8 | 14 |
jnordberg/wintersmith:src/core/graph.coffee:2:raw_corpus | raw_corpus | class Graph
constructor: (@identify) ->
### *identify* is a function that identifies an item. should return
a unique string value representing that item. ###
@nodes = {}
addItem: (item) ->
id = @identify item
node = new Node id, item
@nodes[id] = node
return node
addDependency: ... | CoffeeScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 16 | 52 | ||
jnordberg/wintersmith:src/core/graph.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Graph
constructor: (@identify) ->
### *identify* is a function that identifies an item. should return
a unique string value representing that item. ###
@nodes = {}
addItem: (item) ->
id = @identify item
node = new Node id, item... | var Graph,
indexOf = [].indexOf;
Graph = class Graph {
constructor(identify) {
this.identify = identify;
/* *identify* is a function that identifies an item. should return
a unique string value representing that item. */
this.nodes = {};
}
addItem(item) {
var id, node;
id = this... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 16 | 52 |
jnordberg/wintersmith:src/core/graph.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Graph,
indexOf = [].indexOf;
Graph = class Graph {
constructor(identify) {
this.identify = identify;
/* *identify* is a function that identifies an item. should return
a unique string value representing that item. */
this.nodes = {};... | class Graph
constructor: (@identify) ->
### *identify* is a function that identifies an item. should return
a unique string value representing that item. ###
@nodes = {}
addItem: (item) ->
id = @identify item
node = new Node id, item
@nodes[id] = node
return node
addDependency: ... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 16 | 52 |
jnordberg/wintersmith:src/core/graph.coffee:2:completion | completion | class Graph
constructor: (@identify) ->
### *identify* is a function that identifies an item. should return
a unique string value representing that item. ###
@nodes = {}
addItem: (item) ->
id = @identify item
node = new Node id, item
@nodes[id] = node
return node
addDependency: ... | dependenciesFor: (item) ->
### return an array with all depdenencies for *item* ###
node = @nodeFor item
resolved = @resolveNode node
resolved.splice resolved.indexOf(node), 1
return resolved.map (node) -> node.item
### private ###
nodeFor: (item) ->
@nodes[@identify(item)] or @addItem(ite... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 16 | 52 |
jnordberg/wintersmith:src/core/graph.coffee:6:raw_corpus | raw_corpus | buildGraph = (env, contents, templates, locals, callback) ->
if not Proxy?
callback new Error "Harmony proxies not enabled. You need to run node with --harmony-proxies."
return
current = null
items = ContentTree.flatten contents
graph = new Graph (item) -> item.__filename
graph.addItem item for item... | CoffeeScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 122 | 145 | ||
jnordberg/wintersmith:src/core/graph.coffee:6:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
buildGraph = (env, contents, templates, locals, callback) ->
if not Proxy?
callback new Error "Harmony proxies not enabled. You need to run node with --harmony-proxies."
return
current = null
items = ContentTree.flatten contents
graph = new Grap... | var buildGraph;
buildGraph = function(env, contents, templates, locals, callback) {
var current, graph, i, item, items, len, proxy;
if (typeof Proxy === "undefined" || Proxy === null) {
callback(new Error("Harmony proxies not enabled. You need to run node with --harmony-proxies."));
return;
}
current =... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 122 | 145 |
jnordberg/wintersmith:src/core/graph.coffee:6:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var buildGraph;
buildGraph = function(env, contents, templates, locals, callback) {
var current, graph, i, item, items, len, proxy;
if (typeof Proxy === "undefined" || Proxy === null) {
callback(new Error("Harmony proxies not enabled. You need to run node ... | buildGraph = (env, contents, templates, locals, callback) ->
if not Proxy?
callback new Error "Harmony proxies not enabled. You need to run node with --harmony-proxies."
return
current = null
items = ContentTree.flatten contents
graph = new Graph (item) -> item.__filename
graph.addItem item for item... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 122 | 145 |
jnordberg/wintersmith:src/core/graph.coffee:6:completion | completion | buildGraph = (env, contents, templates, locals, callback) ->
if not Proxy?
callback new Error "Harmony proxies not enabled. You need to run node with --harmony-proxies."
return
current = null
items = ContentTree.flatten contents
graph = new Graph (item) -> item.__filename
graph.addItem item for item... | graph.addDependency current, dep
locals.contents = proxy
async.eachSeries items, (item, callback) ->
current = item
# NOTE: is it ok to discard readstreams like this?
item.view env, locals, proxy, templates, callback
, (error) ->
callback error, graph
exports.buildGraph = buildGraph | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/graph.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/core/graph.coffee | 122 | 145 |
gss/engine:spec/view.coffee:1:raw_corpus | raw_corpus | remove = (el) ->
el?.parentNode?.removeChild(el)
describe "GSS.View", ->
engine = null
container = null
beforeEach ->
container = document.createElement 'div'
engine = new GSS(container)
document.getElementById('fixtures').appendChild container
afterEach ->
remove(container)
engine.des... | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 4 | 53 | ||
gss/engine:spec/view.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
remove = (el) ->
el?.parentNode?.removeChild(el)
describe "GSS.View", ->
engine = null
container = null
beforeEach ->
container = document.createElement 'div'
engine = new GSS(container)
document.getElementById('fixtures').appendChild conta... | var remove;
remove = function(el) {
var ref;
return el != null ? (ref = el.parentNode) != null ? ref.removeChild(el) : void 0 : void 0;
};
describe("GSS.View", function() {
var container, engine;
engine = null;
container = null;
beforeEach(function() {
container = document.createElement('div');
en... | CoffeeScript | JavaScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 4 | 53 |
gss/engine:spec/view.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var remove;
remove = function(el) {
var ref;
return el != null ? (ref = el.parentNode) != null ? ref.removeChild(el) : void 0 : void 0;
};
describe("GSS.View", function() {
var container, engine;
engine = null;
container = null;
beforeEach(function() ... | remove = (el) ->
el?.parentNode?.removeChild(el)
describe "GSS.View", ->
engine = null
container = null
beforeEach ->
container = document.createElement 'div'
engine = new GSS(container)
document.getElementById('fixtures').appendChild container
afterEach ->
remove(container)
engine.des... | JavaScript | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 4 | 53 |
gss/engine:spec/view.coffee:1:completion | completion | remove = (el) ->
el?.parentNode?.removeChild(el)
describe "GSS.View", ->
engine = null
container = null
beforeEach ->
container = document.createElement 'div'
engine = new GSS(container)
document.getElementById('fixtures').appendChild container
afterEach ->
remove(container)
engine.des... | container.removeEventListener 'solved', onSolved
done()
container.addEventListener 'solved', onSolved
engine.solve [
['==', ['get',['.', 'target'], 'width'], 88]
]
container.innerHTML = """
<div>
<div>
<div style="width:10px;" class="target">
... | CoffeeScript | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 4 | 53 |
gss/engine:spec/view.coffee:2:raw_corpus | raw_corpus | describe 'Display passes down translated offsets', ->
it 'matrix3d & view:attach event', (done) ->
container.innerHTML = """
<div id="target1" class="target">
<div id="target2" class="target">
</div>
</div>
"""
ast = [
['==', ['get',['.','target'],'y'... | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 54 | 103 | ||
gss/engine:spec/view.coffee:2:completion | completion | describe 'Display passes down translated offsets', ->
it 'matrix3d & view:attach event', (done) ->
container.innerHTML = """
<div id="target1" class="target">
<div id="target2" class="target">
</div>
</div>
"""
ast = [
['==', ['get',['.','target'],'y'... | describe 'Elements can be positioned relative to', ->
it 'after solving', (done) ->
container.style.position = 'relative'
ast = ['==',
['get',
['#', 'floater'],
'y'],
['+',
['get',
['#', 'anchor'],
... | CoffeeScript | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 54 | 103 |
gss/engine:spec/view.coffee:3:raw_corpus | raw_corpus | <div id="pusher" style="height: 17px"></div>
<div id="anchor" style="height: 10px"></div>
<div id="floater"></div>
"""
describe 'Display Pass takes in account parent offsets when requested', ->
it 'after solving', (done) ->
engine.solve [
['==', ['get',['.', 'target'],'y'... | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 104 | 153 | ||
gss/engine:spec/view.coffee:3:completion | completion | <div id="pusher" style="height: 17px"></div>
<div id="anchor" style="height: 10px"></div>
<div id="floater"></div>
"""
describe 'Display Pass takes in account parent offsets when requested', ->
it 'after solving', (done) ->
engine.solve [
['==', ['get',['.', 'target'],'y'... | </div>
"""
q = document.getElementsByClassName('target')
target1 = q[0]
onSolved = (e) ->
assert engine.values['$target1[y]'] is 100, "solved value is 100."
assert target1.offsetTop == 92, "Top offset should match"
assert target1.offsetLeft == 0, "Left offset should mat... | CoffeeScript | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 104 | 153 |
gss/engine:spec/view.coffee:4:raw_corpus | raw_corpus | <div id="ignore1">
<div id="target1" class="target">
<div id="ignore2">
<div id="target2" class="target">
</div>
</div>
</div>
</div>
"""
q = document.getElementsByClassName('target')
target1 = q[0]
target2 = q[1]
GSS.conf... | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 154 | 183 | ||
gss/engine:spec/view.coffee:4:completion | completion | <div id="ignore1">
<div id="target1" class="target">
<div id="ignore2">
<div id="target2" class="target">
</div>
</div>
</div>
</div>
"""
q = document.getElementsByClassName('target')
target1 = q[0]
target2 = q[1]
GSS.conf... | didAttach = false
engine.once 'display', (values) ->
css1 = target1.gssView.printCss()
css2 = target2.gssView.printCss()
cssRoot = GSS.printCss()
m1 = "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 100, 0, 1)"
m2 = "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1... | CoffeeScript | CoffeeScript | gss/engine | spec/view.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/spec/view.coffee | 154 | 183 |
jianliaoim/talk-os:talk-web/client/app/group-item.coffee:1:raw_corpus | raw_corpus | React = require 'react'
cx = require 'classnames'
Immutable = require 'immutable'
Icon = React.createFactory require '../module/icon'
{ div, span } = React.DOM
T = React.PropTypes
module.exports = React.createClass
displayName: 'group-item'
propTypes:
group: T.instanceOf(Immutable.Map).isRequired
showS... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-item.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-item.coffee | 1 | 40 | ||
jianliaoim/talk-os:talk-web/client/app/group-item.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
cx = require 'classnames'
Immutable = require 'immutable'
Icon = React.createFactory require '../module/icon'
{ div, span } = React.DOM
T = React.PropTypes
module.exports = React.createClass
displayName: 'group-item'
propTypes:
... | var Icon, Immutable, React, T, cx, div, span;
React = require('react');
cx = require('classnames');
Immutable = require('immutable');
Icon = React.createFactory(require('../module/icon'));
({div, span} = React.DOM);
T = React.PropTypes;
module.exports = React.createClass({
displayName: 'group-item',
propType... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/group-item.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-item.coffee | 1 | 40 |
jianliaoim/talk-os:talk-web/client/app/group-item.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Icon, Immutable, React, T, cx, div, span;
React = require('react');
cx = require('classnames');
Immutable = require('immutable');
Icon = React.createFactory(require('../module/icon'));
({div, span} = React.DOM);
T = React.PropTypes;
module.exports = Reac... | React = require 'react'
cx = require 'classnames'
Immutable = require 'immutable'
Icon = React.createFactory require '../module/icon'
{ div, span } = React.DOM
T = React.PropTypes
module.exports = React.createClass
displayName: 'group-item'
propTypes:
group: T.instanceOf(Immutable.Map).isRequired
showS... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-item.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-item.coffee | 1 | 40 |
jianliaoim/talk-os:talk-web/client/app/group-item.coffee:1:completion | completion | React = require 'react'
cx = require 'classnames'
Immutable = require 'immutable'
Icon = React.createFactory require '../module/icon'
{ div, span } = React.DOM
T = React.PropTypes
module.exports = React.createClass
displayName: 'group-item'
propTypes:
group: T.instanceOf(Immutable.Map).isRequired
showS... | getDefaultProps: ->
showSelect: false
isSelected: false
hover: false
onClick: ->
@props.onClick?(@props.group)
render: ->
cxBody = cx 'group-item', 'flex-horiz',
'is-clickable': @props.onClick?
hover: @props.hover
div className: cxBody, onClick: @onClick,
Icon name: 'use... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-item.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-item.coffee | 1 | 40 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus | raw_corpus | onclickaction = (a) -> (ev) -> action a
# Update the presence every 60 seconds
setInterval () ->
action 'updatepresence'
, 60 * 1000
updateActiveTimer = null | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 6 | 13 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
onclickaction = (a) -> (ev) -> action a
# Update the presence every 60 seconds
setInterval () ->
action 'updatepresence'
, 60 * 1000
updateActiveTimer = null
``` | var onclickaction, updateActiveTimer;
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
// Update the presence every 60 seconds
setInterval(function() {
return action('updatepresence');
}, 60 * 1000);
updateActiveTimer = null; | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 6 | 13 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var onclickaction, updateActiveTimer;
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
// Update the presence every 60 seconds
setInterval(function() {
return action('updatepresence');
}, 60 * 1000);
updateActiveTimer = null;... | onclickaction = (a) -> (ev) -> action a
# Update the presence every 60 seconds
setInterval () ->
action 'updatepresence'
, 60 * 1000
updateActiveTimer = null | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 6 | 13 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion | completion | onclickaction = (a) -> (ev) -> action a
# Update the presence every 60 seconds
setInterval () -> | action 'updatepresence'
, 60 * 1000
updateActiveTimer = null | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 6 | 13 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 15 | 64 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headw... | module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
if (!viewstate.useSystemDateFormat) {
moment.locale(i18n.getLocale());
} else {
moment.locale(window.navigator.language);
}
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = con... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 15 | 64 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
if (!viewstate.useSystemDateFormat) {
moment.locale(i18n.getLocale());
} else {
moment.locale(window.navigator.language);
}
conv_id = viewsta... | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 15 | 64 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:completion | completion | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | , 10 * 1000
div class:'namewrapper', ->
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifications_off'
if conv.isStarred(c)
span class:'material-icons', "star"
name
span class:'active', active:active, i18n.__('conv... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 15 | 64 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | div class:'option-label', i18n.__n('notification:Notification', 1)
div class:'button'
, title:i18n.__('favorite.star_it:Star / unstar')
, onclick:onclickaction('togglestar')
, ->
if not conv.isStarred(c)
span class:'material-icons', 'star_border'
... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 65 | 106 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | div class:'option-label', i18n.__n('notification:Notification', 1)
div class:'button'
, title:i18n.__('favorite.star_it:Star / unstar')
, onclick:onclickaction('togglestar')
, ->
if not conv.isStarred(c)
span class:'material-icons', 'star_border'
... | , onclick: onclickaction('minimize')
div class:'button', ->
button id: "win-maximize"
, title:i18n.__('window.controls:Maximize')
, onclick: onclickaction('resizewindow')
div class:'button', ->
button id: "win-restore"
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 65 | 106 |
yakyak/yakyak:src/ui/views/convhead.coffee:4:raw_corpus | raw_corpus | toggleHidden = (element, hidden) ->
return unless element
if hidden
element.style.display = 'none'
else
element.style.display = 'inline'
document.querySelector('body').addEventListener 'click', (event) ->
if not document.querySelector('.optionwrapper').contains(event.target)
document.... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 108 | 117 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
toggleHidden = (element, hidden) ->
return unless element
if hidden
element.style.display = 'none'
else
element.style.display = 'inline'
document.querySelector('body').addEventListener 'click', (event) ->
if not document.querySelect... | var toggleHidden;
toggleHidden = function(element, hidden) {
if (!element) {
return;
}
if (hidden) {
return element.style.display = 'none';
} else {
return element.style.display = 'inline';
}
};
document.querySelector('body').addEventListener('click', function(event) {
if (!document.querySelec... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 108 | 117 |
yakyak/yakyak:src/ui/views/convhead.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var toggleHidden;
toggleHidden = function(element, hidden) {
if (!element) {
return;
}
if (hidden) {
return element.style.display = 'none';
} else {
return element.style.display = 'inline';
}
};
document.querySelector('body').addEventListene... | toggleHidden = (element, hidden) ->
return unless element
if hidden
element.style.display = 'none'
else
element.style.display = 'inline'
document.querySelector('body').addEventListener 'click', (event) ->
if not document.querySelector('.optionwrapper').contains(event.target)
document.... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 108 | 117 |
yakyak/yakyak:src/ui/views/convhead.coffee:4:completion | completion | toggleHidden = (element, hidden) ->
return unless element
if hidden
element.style.display = 'none'
else | element.style.display = 'inline'
document.querySelector('body').addEventListener 'click', (event) ->
if not document.querySelector('.optionwrapper').contains(event.target)
document.querySelector('.convoptions').classList.remove('open') | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 108 | 117 |
yakyak/yakyak:src/ui/views/convhead.coffee:5:raw_corpus | raw_corpus | convoptions = ->
{viewstate} = models
document.querySelector('.convoptions').classList.toggle('open');
if viewstate.state == viewstate.STATE_ADD_CONVERSATION
action 'saveconversation' | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 119 | 123 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:5:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
convoptions = ->
{viewstate} = models
document.querySelector('.convoptions').classList.toggle('open');
if viewstate.state == viewstate.STATE_ADD_CONVERSATION
action 'saveconversation'
``` | var convoptions;
convoptions = function() {
var viewstate;
({viewstate} = models);
document.querySelector('.convoptions').classList.toggle('open');
if (viewstate.state === viewstate.STATE_ADD_CONVERSATION) {
return action('saveconversation');
}
}; | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 119 | 123 |
yakyak/yakyak:src/ui/views/convhead.coffee:5:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var convoptions;
convoptions = function() {
var viewstate;
({viewstate} = models);
document.querySelector('.convoptions').classList.toggle('open');
if (viewstate.state === viewstate.STATE_ADD_CONVERSATION) {
return action('saveconversation');
}
};
``... | convoptions = ->
{viewstate} = models
document.querySelector('.convoptions').classList.toggle('open');
if viewstate.state == viewstate.STATE_ADD_CONVERSATION
action 'saveconversation' | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 119 | 123 |
yakyak/yakyak:src/ui/views/convhead.coffee:5:completion | completion | convoptions = ->
{viewstate} = models | document.querySelector('.convoptions').classList.toggle('open');
if viewstate.state == viewstate.STATE_ADD_CONVERSATION
action 'saveconversation' | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/convhead.coffee | 119 | 123 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | d0c63a713a137e66b4db3d49a78519a46f4a1be8 | 3,762 | https://github.com/yakyak/yakyak/blob/d0c63a713a137e66b4db3d49a78519a46f4a1be8/src/ui/views/convhead.coffee | 10 | 59 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headw... | module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
if (!viewstate.useSystemDateFormat) {
moment.locale(i18n.getLocale());
} else {
moment.locale(window.navigator.language);
}
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = con... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | d0c63a713a137e66b4db3d49a78519a46f4a1be8 | 3,762 | https://github.com/yakyak/yakyak/blob/d0c63a713a137e66b4db3d49a78519a46f4a1be8/src/ui/views/convhead.coffee | 10 | 59 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
if (!viewstate.useSystemDateFormat) {
moment.locale(i18n.getLocale());
} else {
moment.locale(window.navigator.language);
}
conv_id = viewsta... | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | d0c63a713a137e66b4db3d49a78519a46f4a1be8 | 3,762 | https://github.com/yakyak/yakyak/blob/d0c63a713a137e66b4db3d49a78519a46f4a1be8/src/ui/views/convhead.coffee | 10 | 59 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:completion | completion | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | , 10 * 1000
div class:'namewrapper', ->
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifications_off'
if conv.isStarred(c)
span class:'material-icons', "star"
name
span class:'active', active:active, i18n.__('conv... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | d0c63a713a137e66b4db3d49a78519a46f4a1be8 | 3,762 | https://github.com/yakyak/yakyak/blob/d0c63a713a137e66b4db3d49a78519a46f4a1be8/src/ui/views/convhead.coffee | 10 | 59 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 5035d07f7b418633846cf317e8dd3ad62553a4ec | 3,762 | https://github.com/yakyak/yakyak/blob/5035d07f7b418633846cf317e8dd3ad62553a4ec/src/ui/views/convhead.coffee | 8 | 57 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headw... | module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
if (!viewstate.useSystemDateFormat) {
moment.locale(i18n.getLocale());
} else {
moment.locale(window.navigator.language);
}
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = con... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 5035d07f7b418633846cf317e8dd3ad62553a4ec | 3,762 | https://github.com/yakyak/yakyak/blob/5035d07f7b418633846cf317e8dd3ad62553a4ec/src/ui/views/convhead.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
if (!viewstate.useSystemDateFormat) {
moment.locale(i18n.getLocale());
} else {
moment.locale(window.navigator.language);
}
conv_id = viewsta... | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 5035d07f7b418633846cf317e8dd3ad62553a4ec | 3,762 | https://github.com/yakyak/yakyak/blob/5035d07f7b418633846cf317e8dd3ad62553a4ec/src/ui/views/convhead.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:completion | completion | module.exports = view (models) ->
{conv, viewstate} = models
if !viewstate.useSystemDateFormat
moment.locale(i18n.getLocale())
else
moment.locale(window.navigator.language)
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefin... | , title: i18n.__('conversation.options:Conversation Options')
, onclick:convoptions, -> span class:'material-icons', 'more_vert'
div class:'convoptions'
, title:i18n.__('conversation.settings:Conversation settings'), ->
div class:'button'
, title: i18n.__('menu.view.notification.to... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 5035d07f7b418633846cf317e8dd3ad62553a4ec | 3,762 | https://github.com/yakyak/yakyak/blob/5035d07f7b418633846cf317e8dd3ad62553a4ec/src/ui/views/convhead.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | , ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
if process.platform is 'win32'
div class:"win-buttons", ->
div class:'button', ->
button id: "win-minimize"
, title:i18n.__('window.co... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 5035d07f7b418633846cf317e8dd3ad62553a4ec | 3,762 | https://github.com/yakyak/yakyak/blob/5035d07f7b418633846cf317e8dd3ad62553a4ec/src/ui/views/convhead.coffee | 58 | 86 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | , ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
if process.platform is 'win32'
div class:"win-buttons", ->
div class:'button', ->
button id: "win-minimize"
, title:i18n.__('window.co... | button id: "win-restore"
, title:i18n.__('window.controls:Restore')
, onclick: onclickaction('resizewindow')
div class:'button', ->
button id: "win-close"
, title:i18n.__('window.controls:Close')
, onclick: onclickaction('close'... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 5035d07f7b418633846cf317e8dd3ad62553a4ec | 3,762 | https://github.com/yakyak/yakyak/blob/5035d07f7b418633846cf317e8dd3ad62553a4ec/src/ui/views/convhead.coffee | 58 | 86 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8d7e35836cf980be32f4a87a051b693e5ea7dbb5 | 3,762 | https://github.com/yakyak/yakyak/blob/8d7e35836cf980be32f4a87a051b693e5ea7dbb5/src/ui/views/convhead.coffee | 7 | 56 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.is... | module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
if (!c) { // region cannot take undefined
retur... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8d7e35836cf980be32f4a87a051b693e5ea7dbb5 | 3,762 | https://github.com/yakyak/yakyak/blob/8d7e35836cf980be32f4a87a051b693e5ea7dbb5/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
... | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8d7e35836cf980be32f4a87a051b693e5ea7dbb5 | 3,762 | https://github.com/yakyak/yakyak/blob/8d7e35836cf980be32f4a87a051b693e5ea7dbb5/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:completion | completion | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | else
span class:'material-icons', 'notifications'
div class:'option-label', i18n.__n('notification:Notification', 1)
div class:'button'
, title:i18n.__('favorite.star_it:Star / unstar')
, onclick:onclickaction('togglestar')
, ->
if no... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8d7e35836cf980be32f4a87a051b693e5ea7dbb5 | 3,762 | https://github.com/yakyak/yakyak/blob/8d7e35836cf980be32f4a87a051b693e5ea7dbb5/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | button id: "win-maximize"
, title:i18n.__('window.controls:Maximize')
, onclick: onclickaction('resizewindow')
div class:'button', ->
button id: "win-restore"
, title:i18n.__('window.controls:Restore')
, onclick: onclickaction('... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8d7e35836cf980be32f4a87a051b693e5ea7dbb5 | 3,762 | https://github.com/yakyak/yakyak/blob/8d7e35836cf980be32f4a87a051b693e5ea7dbb5/src/ui/views/convhead.coffee | 57 | 75 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | button id: "win-maximize"
, title:i18n.__('window.controls:Maximize')
, onclick: onclickaction('resizewindow')
div class:'button', ->
button id: "win-restore"
, title:i18n.__('window.controls:Restore')
, onclick: onclickaction('... | , title:i18n.__('window.controls:Close')
, onclick: onclickaction('close')
ipc.on 'on-mainwindow.maximize', () ->
toggleHidden document.getElementById('win-maximize'), true
toggleHidden document.getElementById('win-restore'), false
ipc.on 'on-mainwindow.unmaximize', () ->
toggleHidden docu... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 8d7e35836cf980be32f4a87a051b693e5ea7dbb5 | 3,762 | https://github.com/yakyak/yakyak/blob/8d7e35836cf980be32f4a87a051b693e5ea7dbb5/src/ui/views/convhead.coffee | 57 | 75 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee | 3,762 | https://github.com/yakyak/yakyak/blob/22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee/src/ui/views/convhead.coffee | 7 | 56 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.is... | module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
if (!c) { // region cannot take undefined
retur... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee | 3,762 | https://github.com/yakyak/yakyak/blob/22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
... | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee | 3,762 | https://github.com/yakyak/yakyak/blob/22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:completion | completion | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | else
span class:'material-icons', 'notifications'
div class:'option-label', i18n.__n('notification:Notification', 1)
div class:'button'
, title:i18n.__('favorite.star_it:Star / unstar')
, onclick:onclickaction('togglestar')
, ->
if no... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee | 3,762 | https://github.com/yakyak/yakyak/blob/22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | , onclick: onclickaction('resizewindow')
button id: "win-restore"
, title:i18n.__('window.controls:Restore')
, onclick: onclickaction('resizewindow')
button id: "win-close"
, title:i18n.__('window.controls:Close')
, onclick: onclickaction('close')
... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee | 3,762 | https://github.com/yakyak/yakyak/blob/22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee/src/ui/views/convhead.coffee | 57 | 71 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | , onclick: onclickaction('resizewindow')
button id: "win-restore"
, title:i18n.__('window.controls:Restore')
, onclick: onclickaction('resizewindow')
button id: "win-close"
, title:i18n.__('window.controls:Close')
, onclick: onclickaction('close') | ipc.on 'on-mainwindow.maximize', () ->
toggleHidden document.getElementById('win-maximize'), true
toggleHidden document.getElementById('win-restore'), false
ipc.on 'on-mainwindow.unmaximize', () ->
toggleHidden document.getElementById('win-maximize'), false
toggleHidden document.getElementById('win-res... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee | 3,762 | https://github.com/yakyak/yakyak/blob/22eabd781f6e5f0d3ec7de05ff28c908ec6dbcee/src/ui/views/convhead.coffee | 57 | 71 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 81e73a140d93cc6ea8986e416731cc727752d066 | 3,762 | https://github.com/yakyak/yakyak/blob/81e73a140d93cc6ea8986e416731cc727752d066/src/ui/views/convhead.coffee | 7 | 56 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.is... | module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
if (!c) { // region cannot take undefined
retur... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 81e73a140d93cc6ea8986e416731cc727752d066 | 3,762 | https://github.com/yakyak/yakyak/blob/81e73a140d93cc6ea8986e416731cc727752d066/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
... | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 81e73a140d93cc6ea8986e416731cc727752d066 | 3,762 | https://github.com/yakyak/yakyak/blob/81e73a140d93cc6ea8986e416731cc727752d066/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:completion | completion | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | button id: "win-close"
, title:i18n.__('window.controls:Close')
, onclick: onclickaction('close')
div class:'button'
, title: i18n.__('conversation.options:Conversation Options')
, onclick:convoptions, -> span class:'material-icons', 'more_vert'
div class:'convoptions'
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 81e73a140d93cc6ea8986e416731cc727752d066 | 3,762 | https://github.com/yakyak/yakyak/blob/81e73a140d93cc6ea8986e416731cc727752d066/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 81e73a140d93cc6ea8986e416731cc727752d066 | 3,762 | https://github.com/yakyak/yakyak/blob/81e73a140d93cc6ea8986e416731cc727752d066/src/ui/views/convhead.coffee | 57 | 79 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | toggleHidden document.getElementById('win-restore'), false
ipc.on 'on-mainwindow.unmaximize', () ->
toggleHidden document.getElementById('win-maximize'), false
toggleHidden document.getElementById('win-restore'), true
toggleHidden = (element, hidden) ->
return unless element
if... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 81e73a140d93cc6ea8986e416731cc727752d066 | 3,762 | https://github.com/yakyak/yakyak/blob/81e73a140d93cc6ea8986e416731cc727752d066/src/ui/views/convhead.coffee | 57 | 79 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 2202419a767411fe1c6b97e868c9fd53a3d8af86 | 3,762 | https://github.com/yakyak/yakyak/blob/2202419a767411fe1c6b97e868c9fd53a3d8af86/src/ui/views/convhead.coffee | 57 | 79 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | toggleHidden document.getElementById('win-restore'), false
ipc.on 'mainwindow.unmaximize', () ->
toggleHidden document.getElementById('win-maximize'), false
toggleHidden document.getElementById('win-restore'), true
toggleHidden = (element, hidden) ->
return unless element
if hi... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 2202419a767411fe1c6b97e868c9fd53a3d8af86 | 3,762 | https://github.com/yakyak/yakyak/blob/2202419a767411fe1c6b97e868c9fd53a3d8af86/src/ui/views/convhead.coffee | 57 | 79 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 647a5d47f0d38fc8e225d4352b17e209c641c181 | 3,762 | https://github.com/yakyak/yakyak/blob/647a5d47f0d38fc8e225d4352b17e209c641c181/src/ui/views/convhead.coffee | 57 | 80 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | toggleHidden document.getElementById('win-restore'), false
mainWindow.on 'unmaximize', () ->
toggleHidden document.getElementById('win-maximize'), false
toggleHidden document.getElementById('win-restore'), true
toggleHidden = (element, hidden) ->
return unless element
if hidden... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 647a5d47f0d38fc8e225d4352b17e209c641c181 | 3,762 | https://github.com/yakyak/yakyak/blob/647a5d47f0d38fc8e225d4352b17e209c641c181/src/ui/views/convhead.coffee | 57 | 80 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 1cd02b8a904707b1a192846d12fbb38f93280269 | 3,762 | https://github.com/yakyak/yakyak/blob/1cd02b8a904707b1a192846d12fbb38f93280269/src/ui/views/convhead.coffee | 57 | 79 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | toggleHidden document.getElementById('win-maximize'), true
toggleHidden document.getElementById('win-restore'), false
mainWindow.on 'unmaximize', () ->
toggleHidden document.getElementById('win-maximize'), false
toggleHidden document.getElementById('win-restore'), true
toggleHidden = (... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 1cd02b8a904707b1a192846d12fbb38f93280269 | 3,762 | https://github.com/yakyak/yakyak/blob/1cd02b8a904707b1a192846d12fbb38f93280269/src/ui/views/convhead.coffee | 57 | 79 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 50cb47e4df280059dfeb24e0b17d10658cdfa9ba | 3,762 | https://github.com/yakyak/yakyak/blob/50cb47e4df280059dfeb24e0b17d10658cdfa9ba/src/ui/views/convhead.coffee | 7 | 56 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.is... | module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
if (!c) { // region cannot take undefined
retur... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 50cb47e4df280059dfeb24e0b17d10658cdfa9ba | 3,762 | https://github.com/yakyak/yakyak/blob/50cb47e4df280059dfeb24e0b17d10658cdfa9ba/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.selectedConv : void 0;
c = conv[conv_id];
return div({
class: 'headwrap'
}, function() {
var name;
... | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 50cb47e4df280059dfeb24e0b17d10658cdfa9ba | 3,762 | https://github.com/yakyak/yakyak/blob/50cb47e4df280059dfeb24e0b17d10658cdfa9ba/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:2:completion | completion | module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ->
if conv.isQuiet(c)
span class:'material-icons', 'notifi... | button id: "win-close"
, title:i18n.__('window.controls:Close')
, onclick: onclickaction('close')
div class:'button'
, title: i18n.__('conversation.options:Conversation Options')
, onclick:convoptions, -> span class:'material-icons', 'more_vert'
div class:'convoptions'
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 50cb47e4df280059dfeb24e0b17d10658cdfa9ba | 3,762 | https://github.com/yakyak/yakyak/blob/50cb47e4df280059dfeb24e0b17d10658cdfa9ba/src/ui/views/convhead.coffee | 7 | 56 |
yakyak/yakyak:src/ui/views/convhead.coffee:3:raw_corpus | raw_corpus | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 50cb47e4df280059dfeb24e0b17d10658cdfa9ba | 3,762 | https://github.com/yakyak/yakyak/blob/50cb47e4df280059dfeb24e0b17d10658cdfa9ba/src/ui/views/convhead.coffee | 57 | 79 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:3:completion | completion | div class:'option-label', i18n.__n('favorite.title:Favorite',1)
div class:'button'
, title:i18n.__('settings:Settings')
, onclick:onclickaction('convsettings')
, ->
span class:'material-icons', 'info_outline'
div class:'option-label', i18n.__('details:Details')
i... | toggleHidden document.getElementById('win-maximize'), true
toggleHidden document.getElementById('win-restore'), false
mainWindow.on 'unmaximize', () ->
toggleHidden document.getElementById('win-maximize'), false
toggleHidden document.getElementById('win-restore'), true
toggleHidden = (... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 50cb47e4df280059dfeb24e0b17d10658cdfa9ba | 3,762 | https://github.com/yakyak/yakyak/blob/50cb47e4df280059dfeb24e0b17d10658cdfa9ba/src/ui/views/convhead.coffee | 57 | 79 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus | raw_corpus | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 6e13e991a0eee2c0ed00ab09cef441562f904e53 | 3,762 | https://github.com/yakyak/yakyak/blob/6e13e991a0eee2c0ed00ab09cef441562f904e53/src/ui/views/convhead.coffee | 1 | 43 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take ... | var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewstate.se... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 6e13e991a0eee2c0ed00ab09cef441562f904e53 | 3,762 | https://github.com/yakyak/yakyak/blob/6e13e991a0eee2c0ed00ab09cef441562f904e53/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, viewstate;
({conv, viewstate} ... | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 6e13e991a0eee2c0ed00ab09cef441562f904e53 | 3,762 | https://github.com/yakyak/yakyak/blob/6e13e991a0eee2c0ed00ab09cef441562f904e53/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion | completion | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
div class:'headwrap', ->
return if not c # region cannot take undefined
name = nameofconv c
span class:'name', ... | div class:'button', title:'Toggle notifications', onclick:onclickaction('togglenotif'), ->
if conv.isQuiet(c)
span class:'material-icons', 'notifications_off'
else
span class:'material-icons', 'notifications'
div class:'option-label... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 6e13e991a0eee2c0ed00ab09cef441562f904e53 | 3,762 | https://github.com/yakyak/yakyak/blob/6e13e991a0eee2c0ed00ab09cef441562f904e53/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus | raw_corpus | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return null if not c # region cannot take undefined
name = nameofconv c
div class:'headwrap', ->
span class:'name',... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 17fb192bd8c2e47520167f757264eeaedb479fac | 3,762 | https://github.com/yakyak/yakyak/blob/17fb192bd8c2e47520167f757264eeaedb479fac/src/ui/views/convhead.coffee | 1 | 43 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return null if not c # region cannot take undefined
name = nameo... | var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewst... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 17fb192bd8c2e47520167f757264eeaedb479fac | 3,762 | https://github.com/yakyak/yakyak/blob/17fb192bd8c2e47520167f757264eeaedb479fac/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, views... | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return null if not c # region cannot take undefined
name = nameofconv c
div class:'headwrap', ->
span class:'name',... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 17fb192bd8c2e47520167f757264eeaedb479fac | 3,762 | https://github.com/yakyak/yakyak/blob/17fb192bd8c2e47520167f757264eeaedb479fac/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion | completion | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return null if not c # region cannot take undefined
name = nameofconv c
div class:'headwrap', ->
span class:'name',... | div class:'button', title:'Toggle notifications', onclick:onclickaction('togglenotif'), ->
if conv.isQuiet(c)
span class:'material-icons', 'notifications_off'
else
span class:'material-icons', 'notifications'
div class:'option-label... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 17fb192bd8c2e47520167f757264eeaedb479fac | 3,762 | https://github.com/yakyak/yakyak/blob/17fb192bd8c2e47520167f757264eeaedb479fac/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus | raw_corpus | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convhead.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
... | var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewst... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convhead.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, views... | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convhead.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion | completion | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | , ->
if conv.isQuiet(c)
span class:'material-icons', 'notifications_off'
else
span class:'material-icons', 'notifications'
div class:'option-label', i18n.__n('notification:Notification', 1)
div class:'button'
, title:i18n.__('favorite.s... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convhead.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus | raw_corpus | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/convhead.coffee | 1 | 43 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
... | var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewst... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, views... | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion | completion | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | div class:'button', title: i18n.__('menu.view.notification.toggle'), onclick:onclickaction('togglenotif'), ->
if conv.isQuiet(c)
span class:'material-icons', 'notifications_off'
else
span class:'material-icons', 'notifications'
div ... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus | raw_corpus | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/convhead.coffee | 1 | 43 | ||
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
... | var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, viewstate} = models);
conv_id = viewstate != null ? viewst... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/convhead.coffee | 1 | 43 |
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var convoptions, nameofconv, onclickaction;
({nameofconv} = require('../util'));
onclickaction = function(a) {
return function(ev) {
return action(a);
};
};
module.exports = view(function(models) {
var c, conv, conv_id, name, viewstate;
({conv, views... | {nameofconv} = require '../util'
onclickaction = (a) -> (ev) -> action a
module.exports = view (models) ->
{conv, viewstate} = models
conv_id = viewstate?.selectedConv
c = conv[conv_id]
return if not c
name = nameofconv c
div class:'headwrap', ->
span class:'name', ->
if conv.isQuiet(c)
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convhead.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/convhead.coffee | 1 | 43 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.