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

Migrate Redux to Mobx #118

Draft
wants to merge 37 commits into
base: dev
Choose a base branch
from
Draft

Migrate Redux to Mobx #118

wants to merge 37 commits into from

Conversation

ewc340
Copy link
Collaborator

@ewc340 ewc340 commented Jun 17, 2021

Related to issue #111

@ewc340 ewc340 marked this pull request as draft June 17, 2021 04:53
import { RootStore } from './root';

export class ConsoleStore {
rootStore: typeof RootStore;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a better way to declare the type of RootStore but we'll just leave it like this for now.

consoleUnread = false;

constructor(rootStore: typeof RootStore) {
makeAutoObservable(this);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makeAutoObservable will automatically make fields defined in the class observable


constructor() {
this.console = new ConsoleStore(this);
/** Initialize more stores here (try to keep it in alphabetical order) */
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After defining a Store, make sure to create an instance of it in the RootStore here.

@ewc340 ewc340 mentioned this pull request Jun 17, 2021
@ewc340 ewc340 self-assigned this Jun 17, 2021
lancejackson and others added 15 commits June 23, 2021 19:55
* Bootstrap version updated to 1.5.2

* what am i doing

* Changed Graph to Container and smPush/smPull to xs

* replaced Label with Badge, Navbar.header with Navbar, and Navbar.Form pullRight with Navbar

* ConsoleOutput done. Fixing typescript errors on ConfigBox

* straight up removed smPush and smPull

* Fixed bsStyle for button and changed to variant in UpdateBox

* upgrade bootstrap in Editor, upgrade glyphs to FA

* ConsoleOutput done. ConfigBox has one more error

* ConsoleOutput done. ConfigBox almost done (validation error left)

* updated Gamepad.tsx and GamepadList.tsx

* Working on Formik, added isValid props to Form.Control

* add PeripheralGroup component w collapse hook

* rid leftover old bootstrap

* last second bootstrap fixes

* fix bootstrap mostly

* Fixed editor bsSize, fixed swapped editor/peripherals, added margin to peripherals

* add default font value

* Added margin to gamepadlist, ordered peripherals/gamepad/editor correctly

* Dnav background

* Added margin to top of App

* look, a dark theme!

Co-authored-by: meshankhosla <[email protected]>
Co-authored-by: Thomas Lee <[email protected]>
Co-authored-by: Andrew Dacayanan <[email protected]>
Co-authored-by: Saketh Panchumarthy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants