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
| class Immutable { | |
| constructor(val) { | |
| this._val = val; | |
| } | |
| get val() { | |
| return this._val; | |
| } | |
| } | |
| function of(val) { |
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
| class Singleton { | |
| constructor() { | |
| this.init(); | |
| } | |
| init() { | |
| // fetch values | |
| this._showHeader = true; | |
| this._pattern = 101; | |
| } | |
| get isShowHeader() { |
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
| [{ | |
| "key": "alt+left", | |
| "command": "workbench.action.navigateBack" | |
| },{ | |
| "key": "alt+right", | |
| "command": "workbench.action.navigateForward" | |
| } | |
| ] |
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 ModuleBuilder, { Handlers } from './ModuleBuilder'; | |
| /** | |
| * Module | |
| */ | |
| class Config { | |
| constructor() { | |
| this._fetchConfig((result) => { | |
| this._accountId = result.accountId; | |
| this._name = result.name; |
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 ModuleBuilder, { Handlers } from './ModuleBuilder'; | |
| /** | |
| * Module | |
| */ | |
| class Datetime { | |
| constructor(datetimeString) { | |
| this._source = datetimeString; | |
| this._datetime = this.to(datetimeString); | |
| } |
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
| export default class { | |
| constructor() { | |
| this._moduleClass = {}; | |
| this._handler = {}; | |
| } | |
| class(moduleClass) { | |
| this._moduleClass = moduleClass; | |
| return this; | |
| } | |
| handler(handler) { |
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
| class SampleModule { | |
| constructor() { | |
| this._a = 'private'; | |
| this.a = 'public'; | |
| } | |
| } | |
| const handler = { | |
| construct(target, args) { | |
| return new Proxy(Reflect.construct(target, args), handler); |
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
| export default class { | |
| constructor() { | |
| this._obj; | |
| } | |
| object(obj) { | |
| this._obj = obj; | |
| return this; | |
| } | |
| keyValuePair(key, value) { | |
| if (!this._obj) { |
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
| <template src="./_index.html"></template> | |
| <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
| { | |
| "scripts": { | |
| "production": "NODE_ENV=production webpack", | |
| "build": "NODE_ENV=development webpack" | |
| } | |
| } |
NewerOlder