Skip to content

[WIP] Migrating buttons module to ESModules - #232

Merged
megoth merged 2 commits into
masterfrom
buttons-cleanup
Mar 4, 2020
Merged

[WIP] Migrating buttons module to ESModules#232
megoth merged 2 commits into
masterfrom
buttons-cleanup

Conversation

@megoth

@megoth megoth commented Mar 2, 2020

Copy link
Copy Markdown
Contributor

For some reasons tests start breaking in add-agent-buttons

@megoth
megoth requested a review from michielbdejong March 2, 2020 09:33

@michielbdejong michielbdejong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Sorry, I should have done this as part of the widgets/buttons cleanup. Will use this as a reference of how to do it in the future, thanks a lot!

Comment thread src/widgets/buttons.ts Outdated
@@ -1,4 +1,9 @@
import { IndexedFormula, NamedNode } from 'rdflib'
import { IndexedFormula, NamedNode, st, sym, uri, Util } from 'rdflib'
import icons from '../iconBase'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually you could even do:

import { iconBase, originalIconBase } from '../iconBase'

and search/replace icon.iconBase -> iconBase

@megoth
megoth merged commit 98796c4 into master Mar 4, 2020
@megoth
megoth deleted the buttons-cleanup branch March 4, 2020 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants