-
Notifications
You must be signed in to change notification settings - Fork 67
Move Dapps files from @parity/shared ; display icons of builtin dapps from filesystem #114
Conversation
They were previously outdated in @parity/shared. Removed the test "saved views keeps non-specified disabled keys" because we don't have any dapp to test against in dappsBuiltin.json (no builtin dapp with a defined id and with visible set to false)
943e56a
to
2983ca4
Compare
Build is failing for some strange reason. I don't have the rights to relaunch the build. This being said Uses parity-js/ui#9. Waiting for it to be merged so that I can update the |
@axelchalon I sent you an invite for gitlab on [email protected] |
I have one question: if I use DappIcon inside a dapp (dapp-visible or dapp-methods use it), will this still work? For the window.require, maybe try if isElectron(), then window.require or else require. |
👍 Thanks for the tip, tests work fine now! Good question! It seems to be broken inside the dapps at the moment; I'll look into this. |
dapp-visible and dapp-methods should work fine now; a bit tricky to test locally because dev dapps are served through http and don't have access to the fs -- but as far as I tested they work fine. We'll just have to update their Edit: and update the dependency to dapp-visible and dapp-methods in the package-lock.json of the shell |
Had to specify the exact rev in package.json because npm somehow couldn't properly update the dependencies otherwise: dapp-dapp-methods would overwrite dapp-dapp-visible in package-lock and vice versa.
f82ba79
to
6529354
Compare
dapp-visible and dapp-methods work fine here! PR ready for review/merge |
src/util/dapps.js
Outdated
// path.join in Windows would handle everything for us, but after some time | ||
// I realized that even in Windows path.join here bahaves like POSIX (maybe | ||
// it's electron, maybe browser env?). Switching to '/'. -Amaury 12.03.2018 | ||
const posixDirName = basePath.replace(/\\/g, '/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This piece of code is now in 2 places. We could add another file inside util/
to factorize that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, works perfectly. I tried with parity --chain dev
, all the icons now show.
@parity/shared
to the shell