Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate React & Material UI #115

Merged
merged 48 commits into from
Mar 5, 2020
Merged

integrate React & Material UI #115

merged 48 commits into from
Mar 5, 2020

Conversation

sheppard
Copy link
Member

@sheppard sheppard commented Oct 28, 2019

This is a work-in-progress branch for wq.app 1.3. See #111 and wq/wq#41.

References

Tasks

  • Integrate React
    • Isolate all jQuery-specific code into @wq/jquery-mobile
    • Create React integration module (@wq/react)
    • Allow any @wq/app plugin to define new components
    • Run plugin components in on-demand React root when using @wq/jquery-mobile
  • Material UI Views
    • Create Material UI integration module (@wq/material)
    • Header / Footer
    • Index
    • List
    • Detail
    • Edit (requires form components)
    • Login / Logout
    • Other / Fallback
  • Forms
    • Integrate form state library
    • Integrate MUI-compatible form components
  • Update @wq/map
    • Create generic React components for Map/Basemap/Overlay/etc.
    • Isolate Leaflet-specific code into @wq/leaflet
    • Create MapBox GL JS integration module (@wq/mapbox)
    • Restore/update geometry editing

Early Preview Instructions

  1. Install wq 1.2
  2. Start new project with npm enabled (but don't run npm install yet)
wq start --with-npm --skip-npm-install
cd $PROJECT
  1. Install latest development builds from bintray
cd app/
echo "@wq:registry=https://api.bintray.com/npm/wq/npm" > .npmrc
npm install @wq/app@latest \
            @wq/material@latest \
            @wq/mapbox@latest  # or @wq/leaflet@latest
  1. Update src/index.js
- import app, { patterns, photos } from '@wq/app';
- import map from '@wq/map';
+ import app from '@wq/app';
+ import material from '@wq/material';
+ import mapbox from '@wq/mapbox';  // or @wq/leaflet
  import config from './config';
  import * as serviceWorker from './serviceWorker';

- app.use(map);
- app.use(patterns);
- app.use(photos);
+ app.use([material, mapbox]);
  1. Preview in browser
npm start

@sheppard sheppard added this to the 1.3 - Material UI (Opt-In) milestone Oct 28, 2019
This was referenced Oct 28, 2019
@sheppard sheppard force-pushed the react branch 2 times, most recently from d53598e to 62c8592 Compare October 28, 2019 14:02
@sheppard sheppard force-pushed the react branch 7 times, most recently from 8193295 to c5dfda4 Compare November 19, 2019 14:36
@sheppard sheppard force-pushed the react branch 3 times, most recently from 9fd9e60 to 0614b87 Compare January 9, 2020 06:40
@sheppard sheppard force-pushed the react branch 2 times, most recently from e8fb811 to 7fb6cde Compare February 27, 2020 05:09
@sheppard sheppard marked this pull request as ready for review February 27, 2020 05:11
@sheppard sheppard force-pushed the react branch 2 times, most recently from 0d1d8af to 8a7acf5 Compare March 5, 2020 02:57
@sheppard sheppard force-pushed the react branch 3 times, most recently from 62a08dc to 2c822fb Compare March 5, 2020 05:37
@sheppard sheppard merged commit 7b03a05 into master Mar 5, 2020
@sheppard sheppard deleted the react branch March 5, 2020 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant