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
| [ | |
| [ | |
| "1997-May", | |
| "2002-May" | |
| ], | |
| [ | |
| "1997-Jun", | |
| "2002-Jun" | |
| ], | |
| [ |
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 Controller from '@ember/controller'; | |
| import { action } from '@ember/object'; | |
| import { inject as service } from '@ember/service'; | |
| export default class ApplicationController extends Controller { | |
| appName = 'Ember Twiddle'; | |
| @service store; | |
| get numberOfComments() { |
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 { useEffect, useRef, useCallback } from 'react'; | |
| export default function useOnElementResize(didResize) { | |
| const ro = useRef(null); | |
| const ref = useCallback( | |
| (element) => { | |
| if (element) { | |
| if (ro.current) { | |
| ro.current.disconnect(); |
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 { modifier } from 'ember-modifier'; | |
| import { run } from '@ember/runloop'; | |
| export default modifier(function onElementResize(element, [fn]) { | |
| const observer = new window.ResizeObserver(() => { | |
| run(() => { | |
| fn(element); | |
| }); | |
| }); | |
| observer.observe(element); |
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 { task, waitForProperty } from 'ember-concurrency'; | |
| import EmberObject from '@ember/object'; | |
| function waitForPropertyChange(object, prop) { | |
| const curValue = object.get(prop); | |
| return waitForProperty(object, prop, (newValue) => { | |
| return newValue !== curValue; | |
| }); | |
| } |
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 Adapter from "ember-data/adapters/json-api"; | |
| export default Adapter.extend(); |
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 Adapter from "ember-data/adapters/json-api"; | |
| export default Adapter.extend(); |
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.Component.extend({ | |
| init() { | |
| this._super(...arguments); | |
| this.set('step', 'source-selector'); | |
| }, | |
| isSourceSelector: Ember.computed.equal('step', 'source-selector'), |
NewerOlder