[zanata/zanata-platform] f02ce4: chore(frontend watch): change from global config t...

GitHub noreply at github.com
Fri Jun 2 03:08:36 UTC 2017


  Branch: refs/heads/damason/separate-frontend-urls/ZNTA-2004
  Home:   https://github.com/zanata/zanata-platform
  Commit: f02ce42dc83abc18973641f6985375246f3222f2
      https://github.com/zanata/zanata-platform/commit/f02ce42dc83abc18973641f6985375246f3222f2
  Author: David Mason <drdmason at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M server/zanata-frontend/src/frontend/app/actions/common-actions.js
    M server/zanata-frontend/src/frontend/app/actions/explore-actions.js
    M server/zanata-frontend/src/frontend/app/actions/glossary-actions.js
    M server/zanata-frontend/src/frontend/app/actions/languages-actions.js
    M server/zanata-frontend/src/frontend/app/actions/profile-actions.js
    M server/zanata-frontend/src/frontend/app/components/Nav/index.jsx
    A server/zanata-frontend/src/frontend/app/config.js
    M server/zanata-frontend/src/frontend/app/containers/App.js
    M server/zanata-frontend/src/frontend/app/containers/Explore/GroupTeaser.jsx
    M server/zanata-frontend/src/frontend/app/containers/Explore/LanguageTeamTeaser.jsx
    M server/zanata-frontend/src/frontend/app/containers/Explore/ProjectTeaser.jsx
    M server/zanata-frontend/src/frontend/app/containers/Root.js
    M server/zanata-frontend/src/frontend/app/containers/UserProfile/index.jsx
    M server/zanata-frontend/src/frontend/app/history.js
    M server/zanata-frontend/src/frontend/app/index.js
    M server/zanata-frontend/src/frontend/app/legacy.js
    M server/zanata-frontend/src/frontend/app/utils/UrlHelper.js
    M server/zanata-frontend/src/frontend/index.html
    M server/zanata-war/src/main/webapp/a/index.xhtml

  Log Message:
  -----------
  chore(frontend watch): change from global config to config component

This replaces access to window.config with an config component that
can be mocked. This will allow much easier changes to how we pass
config into the app.
This also splits the base URL config into 3 separate URLs to allow
finer control, such as allowing search and navigation in the watch
mode (`make watch`) by passing in the relevant URLs.




More information about the zanata-commits mailing list