You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 28, 2018. It is now read-only.
Would be great to be able to share a link of a bin which focuses a specific file.
I was thinking we could add #filename.js or a /filename.js at the end.
@christianalfoni I"m willing to help if you could point me to where that URL logic should be written, I"m not familiar with the project.
In main.js the router needs to add property query: true, next to routes property. This will make the Cerebral router push queries into the signal payload
Then the app.binRouted signal needs a function that checks if props.file exists, and if so it will make it the selected file
This should happen after the bin is grabbed from firebase:
value(string`bins.${props`binKey`}`),{success: [when(props`value`),{true: [set(state`app.currentBinKey`,props`binKey`),setCurrentBin,// Here for example the current file is selected based on `props.file`, if exists :-)forceCodeUpdate,parallel([listenToBinStatsUpdates,whenLive,{owner: connectLiveBinAsOwner,participant: connectLiveBin,otherwise: updateSandbox([updateViewStats])}])],false: showSnackbar('This bin does not exist anymore, sorry',5000,'error')}],error: showSnackbar('Unable to get BIN',5000,'error')}
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm really excited about WebpackBin.
Would be great to be able to share a link of a bin which focuses a specific file.
I was thinking we could add
#filename.js
or a/filename.js
at the end.@christianalfoni I"m willing to help if you could point me to where that URL logic should be written, I"m not familiar with the project.
Old issue ref:
christianalfoni/webpack-bin#181
The text was updated successfully, but these errors were encountered: