/* UI DEV * * This is a utility module. * It initializes a minimalist browserifiable project * that contains the Metamask UI, with a mocked state. * * Includes a state menu for switching between different * mocked states, along with query param support, * so those states are preserved when live-reloading. * * This is a convenient way to develop on the UI * without having to re-enter your password * every time the plugin rebuilds. * * To use, run `npm run ui`. */ const render = require('react-dom').render const h = require('react-hyperscript') const Root = require('./ui/app/root') const configureStore = require('./development/uiStore') const states = require('./development/states') const Selector = require('./development/selector') // logger const log = require('loglevel') window.log = log log.setDefaultLevel(1) // Query String const qs = require('qs') let queryString = qs.parse(window.location.href.split('#')[1]) let selectedView = queryString.view || 'first time' const firstState = states[selectedView] updateQueryParams(selectedView) // CSS const MetaMaskUiCss = require('./ui/css') const injectCss = require('inject-css') function updateQueryParams(newView) { queryString.view = newView const params = qs.stringify(queryString) window.location.href = window.location.href.split('#')[0] + `#${params}` } const actions = { _setBackgroundConnection(){}, update: function(stateName) { selectedView = stateName updateQueryParams(stateName) const newState = states[selectedView] return { type: 'GLOBAL_FORCE_UPDATE', value: newState, } }, } var css = MetaMaskUiCss() injectCss(css) const container = document.querySelector('#app-content') // parse opts var store = configureStore(states[selectedView]) // start app render( h('.super-dev-container', [ h(Selector, { actions, selectedKey: selectedView, states, store }), h('.mock-app-root', { style: { height: '500px', width: '360px', boxShadow: 'grey 0px 2px 9px', margin: '20px', }, }, [ h(Root, { store: store, }), ]), ] ), container) it/gsoc2013-evolution/stats/?h=GTKHTML_1_0_1'>stats
Commit message (Expand)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagGTKHTML_1_0_1nobody2001-10-252855-1234379/+0
* do a test that is not only always false, but works with autoconf 2.52 andjacob berkman2001-10-252-1/+7
* updated the SIMULATE_FLAKY_NETWORK codeJeffrey Stedfast2001-10-251-10/+12
* Ref the BonoboUIComponent that we are holding. (gvm_destroy): Unref ourJon Trowbridge2001-10-252-0/+18
* Same as in the TcpStreamRaw code. (stream_write): And again here...Jeffrey Stedfast2001-10-253-77/+139
* when iterating over the subcomponents, use 'subcomp' rather thanDamon Chaplin2001-10-255-43/+150
* New. (async_xfer_folder_callback): Use it so we get the right errorEttore Perazzoli2001-10-252-7/+30
* Same.42001-10-254-10/+18
* track the spacer vbox (e_meeting_time_selector_style_set): make sure theJP Rosevear2001-10-256-21/+127
* Fixed some weird casting crack that got in here somehow, removedJon Trowbridge2001-10-252-3/+8
* Updated Polish translation by GNOME PL Team <translators@gnome.pl>Chyla Zbigniew2001-10-252-109/+115
* Fixes bug #5282.Federico Mena Quintero2001-10-2514-79/+334
* Updated Ukrainian TranslationYuri Syrota2001-10-241-18/+15
* Updated Ukrainian TranslationYuri Syrota2001-10-241-593/+449
* Updated Slovak translation.Stanislav Visnovsky2001-10-242-665/+668
* Correct fix for 12236. Stops the crashing and leaves the summary in a usable ...Iain Holmes2001-10-242-4/+6
* Removed key_press handler here since delete and backspace are now handledChristopher James Lahey2001-10-242-27/+6
* ChangeLog fix.Chris Lahey2001-10-241-1/+1
* Added Delete and BackSpace keybindings here.Christopher James Lahey2001-10-242-0/+10
* Add a changed signal. Emits if the order changes or if you add or remove a42001-10-244-10/+109
* fixed changelogJeffrey Stedfast2001-10-241-1/+0
* Unref the global search_context. (owner_set_cb): create the globalJeffrey Stedfast2001-10-243-19/+43
* Don't add the menu item here, do this in the context_changed signalJeffrey Stedfast2001-10-243-28/+115
* update ja.poTakuro Kitame2001-10-24