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
| const zipFolder = require('zip-folder'); | |
| const fs = require('fs'); | |
| let folder = 'dist'; | |
| let zipName = 'extension.zip'; | |
| // credentials and IDs from gitlab-ci.yml file (your appropriate config file) | |
| let REFRESH_TOKEN = process.env.REFRESH_TOKEN; | |
| let EXTENSION_ID = process.env.EXTENSION_ID; | |
| let CLIENT_SECRET = process.env.CLIENT_SECRET; |
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
| const timeout = 1000; | |
| async function disableRules(params) { | |
| const ruleDisableButtons = document.querySelectorAll( | |
| 'button[title="Disable rule"]' | |
| ); | |
| for await (const ruleDisableButton of ruleDisableButtons) { | |
| ruleDisableButton.click(); | |
| await wait(timeout); |
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 '@glimmer/component'; | |
| import { action } from '@ember/object'; | |
| import { tracked } from '@glimmer/tracking'; | |
| export default class extends Component { | |
| @tracked selected = false; | |
| @action | |
| handleClick(event) { | |
| if(event.shiftKey) { |
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 { tracked } from '@glimmer/tracking'; | |
| console.clear(); | |
| export default class ApplicationController extends Controller { | |
| appName = 'Ember Twiddle'; | |
| @tracked amount; |
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'; | |
| export default class ApplicationController extends Controller { | |
| 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
| license: mit |
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'; | |
| export default class ApplicationController extends Controller { | |
| 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 Component from '@glimmer/component'; | |
| export default class extends Component { | |
| } |
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'; | |
| export default class ApplicationController extends Controller { | |
| appName = 'Ember Twiddle'; | |
| constructor() { | |
| super(...arguments); | |
| // this.newMethod = this.method.bind(this); | |
| } |
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'; | |
| export default class ApplicationController extends Controller { | |
| appName = 'Ember Twiddle'; | |
| val=true; | |
| test(a,b,c) { | |
| console.log(a,b,c); |
NewerOlder