Skip to content
Snippets Groups Projects
  1. Oct 27, 2018
    • chrisgarrity's avatar
      Restore IntlProvider for Internet Explorer · 03415086
      chrisgarrity authored
      GUI includes its own Intl provider (react-intl supports nested intl providers) that works within the www intl provider.
      
      Restore the app-state provider intl provider and app-stat-hoc for the stand-alone gui so that IE can function enough to put up the unsupported browser.
      03415086
  2. Oct 19, 2018
    • chrisgarrity's avatar
      Move IntlProvider into GUI to support integration with www · 8136ac4f
      chrisgarrity authored
      This is taking advantage of the fact that react-intl can support nested IntlProviders. GUI will use it’s own ConnectedIntlProvider, that maintains the translations in redux, while www will continue to have it’s own IntlProvider that is initialized when the page loads.
      
      Moving the IntlProvider into GUI meant that nothing in the playground can use injectIntl, so the default project name needed to move into the component instead of being in the reducer.
      
      The Localization HOC is added, it takes an optional onSetLanguage handler, so www can pass a function that will set the cookie that www needs.
      8136ac4f
  3. Sep 17, 2018
  4. Sep 05, 2018
  5. Jun 24, 2018
  6. Jun 20, 2018
    • chrisgarrity's avatar
      Locales cleanup · 60a3dc3a
      chrisgarrity authored
      * updated locales reducer to include current messages and messagesByLocale (the previous all messages)
      * moved locales out of gui
      * include locales in the things exported by gui (index.js)
      60a3dc3a
  7. Jun 19, 2018
    • chrisgarrity's avatar
      Initial version of loading or switching language. · a0455422
      chrisgarrity authored
      Add `?locale=<localecode>` to load in a new langage.
      Add `?enable=language` to enable the language selector
      Or combine the two: `?enable=language&locale=<localecode>`
      Still accepts a hash, but requires that the hash be a sequence of digits.
      
      Added new locales reducer to gui:
      - initializes default  react-intl/localeData
      - initializes default locale messages for all locales
      - default locale is ‘en’ (can be overridden by URL)
      
      Removed dependency on react-intl-redux, added ConnectedIntlProvider (uses correct locale messages from redux based on current locale)
      a0455422
  8. May 21, 2018
    • chrisgarrity's avatar
      Address review comments · a6d9dbb4
      chrisgarrity authored
      Move guiMiddleware to `reducers/gui.js`, and use it in `app-state-hoc`
      a6d9dbb4
    • chrisgarrity's avatar
      Combine GUI reducers · 44c76e57
      chrisgarrity authored
      * Export initial states for each reducer
      * combine all gui reducers (excludes scratchPaint and intl)
      * combine all initial states to create default guiState for preloading in www
      * expect all of the gui state to be accessible at `state.scratchGui`
      44c76e57
    • chrisgarrity's avatar
      Move creating the store into playground examples · c182c75c
      chrisgarrity authored
      GUI will export a reducer to be included in the enclosing component’s redux when GUI is used as a library. The app-state-hoc is moved into the playground examples to provide a store when GUI is being used stand-alone.
      c182c75c
  9. May 03, 2018
  10. May 02, 2018
  11. May 01, 2018
    • chrisgarrity's avatar
      Player mode (#1909) · be208ba1
      chrisgarrity authored
      * Player mode
      
      Add isPlayerOnly property on GUI. Move isFullScreen into mode reducer with isPlayerOnly.
      
      Full screen needs to be a separate prop so that GUI knows what to show when exiting full-screen (either player-only or full editor).
      
      - set `gui-body * {box-sizing: border-box;}` instead of expecting it to be set by the enclosing component/playground, and removed uses of content-box (adjusting sizes as needed) 
      - Added `!isPlayerOnly` to the conditions for draggable sprites
      - rewrote player example to use player mode.
      Unverified
      be208ba1
  12. Apr 19, 2018
  13. Jan 08, 2018
  14. Aug 16, 2017
Loading