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
declare module 'virtualizedtableforantd4' { | |
export interface VtOpts { | |
id?: number | string; | |
/** | |
* @default 5 | |
*/ | |
overscanRowCount?: number; | |
/** | |
* this only needs the scroll.y |
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
<html lang="en" version="1.0.0"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, user-scalable=0, initial-scale=1.0, viewport-fit=cover" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | |
<title>React with Babel Standalone</title> | |
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script> | |
<script |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
cp1: 0, | |
promiseValue: null, | |
cpPromise: Ember.computed('cp1', function(){ | |
return new Ember.RSVP.Promise((resolve, reject) => { | |
resolve(Math.floor(Math.random() * 1000)) | |
}) | |
}), |
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
<html> | |
<head> | |
<title>MobX DOM Example</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<div id="videoControls"> | |
Duration: <span id="videoControlsDuration"></span> |
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 Ember from 'ember'; | |
const Mixin = Ember.Mixin.create({ | |
$ref(ref) { | |
return this.get('refMap.' + ref); | |
}, | |
_addRef(ref, component) { | |
this.set('refMap.' + ref, component); | |
}, | |
_removeRef(ref) { |
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 DS from 'ember-data'; | |
import Ember from 'ember'; | |
var get = Ember.get; | |
var indexOf = Array.prototype.indexOf && function(array, item) { | |
return array.indexOf(item); | |
} || Ember.EnumerableUtils.indexOf; | |
var map = Array.prototype.map && function(array, cb, binding) { | |
return array.map(cb, binding); |
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 Component from "ember-component"; | |
import service from "ember-service/inject"; | |
import getOwner from "ember-owner/get"; | |
export default Component.extend({ | |
routing: service("-routing"), | |
actions: { | |
refresh() { | |
const currentRouteName = this.get("routing.currentRouteName"); | |
const currentRouteInstance = getOwner(this).lookup(`route:${currentRouteName}`); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model() { | |
return new Promise((resolve) => { | |
setTimeout(resolve, 5000) | |
}); | |
} | |
}); |
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
/*eslint-disable */ | |
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |
/*eslint-enable */ | |
function getEnumClass(options = {}, _EnumSymbol){ | |
function EnumClass() { | |
_classCallCheck(this, EnumClass); |
NewerOlder