This file contains 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
{ | |
"type": "object", | |
"properties": { | |
"collection": { | |
"type": "array", | |
"items": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/model" | |
} |
This file contains 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
module.exports = { | |
resolve: { | |
alias: { | |
react: 'haunted' | |
} | |
} | |
} |
This file contains 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
const ref = directive((refInstance) => (part) => { | |
if (!(part instanceof AttributePart)) { | |
throw new Error('ref directive can only be used as an attribute'); | |
} | |
refInstance.current = part.committer.element; | |
}); |
This file contains 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
useEffect(() => { | |
const handleNewMessages = snap => { | |
// avoid updating messages when there are no changes | |
const changes = snap.docChanges() | |
if (changes.length) { | |
setMessages(snap.docs.map(doc => doc.data())) | |
} | |
} | |
const unsubscribe = chatRoomMessages.onSnapshot(handleNewMessages); | |
return unsubscribe; |
This file contains 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
const messagesRef = useRef(); | |
useEffect(() => { | |
if (messagesRef.current) { | |
messagesRef.current.scrollTop = messagesRef.current.scrollHeight; | |
} | |
}, [messages]); |
This file contains 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
test('click on input opens but do not closes the dropdown', function (assert) { | |
var $container = $('#qunit-fixture .event-container'); | |
var container = new MockContainer(); | |
var CustomSelection = Utils.Decorate(MultipleSelection, InlineSearch); | |
var $element = $('#qunit-fixture .multiple'); | |
var selection = new CustomSelection($element, options); | |
var $selection = selection.render(); |
This file contains 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
// helper function | |
const registerDelegatedEvent = (ctor, eventName, selector, listener) => { | |
const classEvents = ctor.__events || (ctor.__events = []); | |
classEvents.push({ eventName, selector, listener }); | |
}; | |
// old dynamic spec | |
const event = (eventName, selector) => (protoOrDescriptor, methodName, propertyDescriptor) => { | |
if (typeof methodName !== 'string') { | |
const { kind, key, placement, descriptor, initializer } = protoOrDescriptor; |
This file contains 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
[ | |
{ | |
"name": "add", | |
"size": 5918, | |
"ownSize": 350, | |
"ownPercent": 5.91, | |
"dependencies": [ | |
{ | |
"name": "getTag", | |
"size": 1579, |
This file contains 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="page-content"> | |
<div class="content-block-title">Welcome</div> | |
<div class="content-block"> | |
<p>Enjoy using Backbone/Marionette with the awesome Framework7!</p> | |
</div> | |
<div class="content-block-title">Examples</div> | |
<div class="list-block"> | |
<ul> | |
<li class="item-content"> |
This file contains 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 {createApp, showView} from 'marionette.f7' | |
import HomeView from './home/view' | |
import Tab2View from './tab2/view' | |
createApp({ | |
options: { | |
material: false | |
}, | |
views: { |
NewerOlder