This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const _ = require('underscore'); | |
const Bb = require('backbone'); | |
const Mn = require('backbone.marionette'); | |
const morphdom = require('morphdom'); | |
const rowTemplate = function(data) { | |
//return `<td class="col-md-1">${ data.id }</td> | |
//<td class="col-md-4"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NextCompositeView = Marionette.NextCollectionView.extend({ | |
constructor: function(options) { | |
Marionette.NextCollectionView.call(this, options); | |
this.templateView = new Marionette.View(_.pick(this, ['el','template','ui','model'])); | |
}, | |
childView: function() { | |
return this.constructor; | |
}, | |
getChildViewContainer: function() { | |
var selector = _.result(this, 'childViewContainer'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MixinFromView = _.pick(Marionette.View.prototype, 'serializeModel', 'getTemplate', '_renderTemplate', 'mixinTemplateContext', 'attachElContent'); | |
var NextCompositeView = Marionette.NextCollectionView.extend({ | |
childView: function() { | |
return this.constructor; | |
}, | |
serializeData: function() { | |
return this.serializeModel(); | |
}, | |
getChildViewContainer: function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _ from 'underscore'; | |
import Marionette from 'marionette'; | |
import RadioMixin from './radio-mixin'; | |
const Obj = Marionette.Object.extend({ | |
constructor(options) { | |
this.options = _.extend({}, _.result(this, 'options'), options); | |
this._initRadio(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Backbone.Radio v1.0.3 | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('underscore'), require('backbone')) : | |
typeof define === 'function' && define.amd ? define(['underscore', 'backbone'], factory) : | |
(global.Backbone = global.Backbone || {}, global.Backbone.Radio = factory(global._,global.Backbone)); | |
}(this, function (_,Backbone) { 'use strict'; | |
_ = 'default' in _ ? _['default'] : _; | |
Backbone = 'default' in Backbone ? Backbone['default'] : Backbone; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); // Template Cache | |
// -------------- | |
var _underscore = require('underscore'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MarionetteJS (Backbone.Marionette) | |
// ---------------------------------- | |
// v3.0.0-pre.2 | |
// | |
// Copyright (c)2016 Derick Bailey, Muted Solutions, LLC. | |
// Distributed under MIT license | |
// | |
// http://marionettejs.com | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var data = [ copy/paste results of https://roundingwell.leankit.com/kanban/api/boards/193188337 ] | |
// Change this to get a different range | |
var ago = _.moment().subtract('month', 2); | |
var lanes = data.ReplyData[0].Lanes; | |
var cards = _.flatten(_.map(lanes, 'Cards'),true); | |
var oldCards = _.reject(cards, function(card){ return _.moment(card.LastMove).isAfter(ago); }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MarionetteJS (Backbone.Marionette) | |
// ---------------------------------- | |
// v2.4.1 | |
// | |
// Copyright (c)2015 Derick Bailey, Muted Solutions, LLC. | |
// Distributed under MIT license | |
// | |
// http://marionettejs.com | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='inline-preloader'> | |
<div class='inline-preloader__bullet'></div> | |
<div class='inline-preloader__bullet'></div> | |
<div class='inline-preloader__bullet'></div> | |
</div> |
NewerOlder