()
| 122 | } |
| 123 | |
| 124 | private async populateBuiltins() { |
| 125 | const builtins = (await this.fetchBuiltins()).filter(entry => this.currentLanguage?.id === entry.lang); |
| 126 | LoadSave.populate( |
| 127 | unwrap(this.modal).find('.examples'), |
| 128 | builtins.map(elem => { |
| 129 | return { |
| 130 | name: elem.name, |
| 131 | load: () => this.doLoad(elem), |
| 132 | }; |
| 133 | }), |
| 134 | ); |
| 135 | } |
| 136 | |
| 137 | private populateLocalStorage() { |
| 138 | const files = LoadSave.getLocalFiles(); |