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 Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
import { inject as service } from '@ember/service'; | |
export default class extends Component { | |
@service router; | |
@action async unload() { | |
const a = this.args.a; | |
const b = a.b; |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
db: Ember.computed('refreshDb', function() { | |
let dump = window.server.schema.db.dump(); | |
return JSON.stringify(dump, null, 2); | |
}), |
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 Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
} |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
db: Ember.computed('refreshDb', function() { | |
let dump = window.server.schema.db.dump(); | |
return JSON.stringify(dump, null, 2); | |
}), |
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
# when sourced from another script, causes that script to be run at most once concurrently | |
if [[ $BASH_VERSION ]]; then | |
script=$(realpath ${BASH_SOURCE[1]}) | |
else | |
script=$(realpath ${funcfiletrace[1]%:*}) | |
fi | |
[[ $FLOCKER ]] || exec env FLOCKER="$script" flock -en "$script" "$script" "$@" |
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
javascript:(function(){var inputId='plex-season-title-hack';var input=document.getElementById(inputId);if(!input){var html= '<label for="'+inputId+'">Title</label><div class="input-group"><input type="text" name="title" id="'+inputId+'"></div></div></div>';document.getElementById('lockable-summary').parentElement.insertAdjacentHTML('afterend', html);}})(); |