flattentree
filip mertens 11 months ago
parent 9f2626ab9a
commit 77ebb1cb10
  1. 4
      apps/remixdesktop/src/plugins/compilerLoader.ts
  2. 2
      libs/remix-ui/workspace/src/lib/components/flat-tree.tsx

@ -129,14 +129,14 @@ class CompilerLoaderPluginClient extends ElectronBasePluginClient {
async getJsonBinData() {
const lists = await this.getLists()
console.log('getJsonBinData', Date.now())
this.solJsonBinData = {
baseURLWasm: 'http://localhost:' + (server.address() as any).port + '/compilers',
baseURLBin: 'http://localhost:' + (server.address() as any).port + '/compilers',
wasmList: lists.wasmData || [],
binList: lists.binData || [],
}
console.log('emit', Date.now())
const localCompilers = await this.listCompilers()
this.solJsonBinData.wasmList && (this.solJsonBinData.wasmList = this.solJsonBinData.wasmList.map((item) => {
localCompilers.includes(item.path) ? (item.wasmURL = 'http://localhost:' + (server.address() as any).port + '/compilers/') && (item.isDownloaded=true) : (item.wasmURL = baseURLWasm) && (item.isDownloaded = false)

@ -243,7 +243,7 @@ export const FlatTree = (props: FlatTreeProps) => {
{file.name}
</div>
{getFileStateIcons(file)}
{getFileStateIcons(file)}
</>
}
</div>

Loading…
Cancel
Save