Commit Graph

3076 Commits

Author SHA1 Message Date
Anton Nikolaev
74d8da7c4b VSCode settings
Summary:
1) Add VSCode settings to the source control, so users won't need to configure them
2) Copy VSCode settings to both "sonar" and "sonar/desktop" folders so both folders can be opened for development

Reviewed By: passy

Differential Revision: D20594643

fbshipit-source-id: 4331659008e4dbf9dfcc44a3723ab0612a3bd333
2020-03-23 04:29:08 -07:00
Anton Nikolaev
3cbeaf2642 Fix Github build (#914)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/914

Fixed Github build I accidentaly broke by a previous diff

Reviewed By: mweststrate

Differential Revision: D20581935

fbshipit-source-id: c14d7e0fe83af79069f8fef432833babf04c59f8
2020-03-21 15:31:20 -07:00
Alexander Kawrykow
0b6b5a0582 Add basic tabbed layout
Summary: Adding a marketplace icon

Differential Revision: D20459204

fbshipit-source-id: 2c76e34c7911209b71be0c7194e27655f4a48dde
2020-03-20 17:35:36 -07:00
Anton Nikolaev
863f89351e Yarn workspaces
Summary:
1) moved "sonar/desktop/src" to "sonar/desktop/app/src", so "app" is now a separate package containing the core Flipper app code
2) Configured yarn workspaces with the root in "sonar/desktop": app, static, pkg, doctor, headless-tests. Plugins are not included for now, I plan to do this later.

Reviewed By: jknoxville

Differential Revision: D20535782

fbshipit-source-id: 600b2301960f37c7d72166e0d04eba462bec9fc1
2020-03-20 13:37:41 -07:00
Michel Weststrate
676d7bbd24 Hide timeline by default
Summary:
See the linked task. The QPL can literally freeze Flipper. Initial testing showed that the cause is primary the timeline view.

It was already suggested in the past to hide the timeline by default, as it is not that useful. So did.

Will try to unbreak the timeline in the future, but this at least unblocks the linked task.

Reviewed By: jknoxville

Differential Revision: D20538421

fbshipit-source-id: 8f5cd18c89322e94da5ab055e1913b6434eacf8a
2020-03-19 15:33:55 -07:00
John Knox
be5c76d27c Disable logs plugin for physical iOS devices
Summary:
This has never worked due to historic problems with idb log: https://fb.workplace.com/groups/idb.users/permalink/875711589527983/

It sounds like they have been fixed though, so I'll look into getting it going. But for now, disabling it until it's working to hide a broken experience.

Reviewed By: passy

Differential Revision: D20534205

fbshipit-source-id: 3a39c9930fa195562d946bcfe9fd3388e3329be3
2020-03-19 14:30:00 -07:00
Michel Weststrate
93bf7ced77 Fix sidebar (and content) height
Summary: When expanding the sidebar, sometimes the sign in / profile button would disappear, as the main content would be to height

Reviewed By: passy

Differential Revision: D20534482

fbshipit-source-id: 6248df501afcefc4afb6df3a6fd864462f8290e4
2020-03-19 08:43:45 -07:00
greenkeeper[bot]
969b1edb58 Update @types/recharts in group plugins to the latest version � (#899)
Summary:
***
☝️ **Important announcement:** Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! [Find out how to migrate to Snyk and more at greenkeeper.io](https://greenkeeper.io)
***
## The devDependency [types/recharts](https://github.com/DefinitelyTyped/DefinitelyTyped) was updated from `1.8.6` to `1.8.8`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [types](https://www.npmjs.com/~types)
**License:** MIT

[Find out more about this release](https://github.com/DefinitelyTyped/DefinitelyTyped).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/899

Reviewed By: mweststrate

Differential Revision: D20520128

Pulled By: passy

fbshipit-source-id: fb7b58663a117f7b2c43835ab5030a84d25fe1e0
2020-03-19 07:44:38 -07:00
Michel Weststrate
068f19461a Use http://localhost for origin instead of https
Summary:
Follow up of D20454562

We now set an origin header, but use https instead of http, which is currently not supported by the public RN version (for the internal RN version support was added in D20526486).

However, not promoting ourselves as running on a secured connection seems like the more trustworthy thing to do, and better reflects reality.

Reviewed By: nikoant

Differential Revision: D20534363

fbshipit-source-id: e26fabd77013920e4c58fdbf552bb909f0499cae
2020-03-19 06:26:01 -07:00
Chaiwat Ekkaewnumchai
a624b064a8 (Server) Fix Naming
Summary: per title

Reviewed By: mweststrate

Differential Revision: D20489140

fbshipit-source-id: 8678c1bfed578c5ec7138e0ccb25777942d5ed4c
2020-03-19 05:18:25 -07:00
Chaiwat Ekkaewnumchai
d60125bd5e (Server) Fix Unresponsive Header Input
Summary:
Before this diff, the input bar is unresponsive to the user input; when one typed fast enough the input doesn't reflect that as shown in the before video (the console printed the log directly when `onChange` was fired).

This diff tried to store value locally and use that to render. When the component is closed, the state update will take place. This tried to solve too many state update.

Reviewed By: mweststrate

Differential Revision: D20489142

fbshipit-source-id: c118adc61d9234daec17782e4bbf8e4ea3dd369f
2020-03-19 05:18:25 -07:00
Michel Weststrate
ddf5df98c7 Track flipper crashes / restarts
Summary:
In this diff we persist data about the state of the app when exiting, and to make sure we capture it in crashes, do that as part of track-usage events as well.

with the exit data we also capture what kind of device and plugin the user was using, so that we can detect anomalies like flipper needing restarting more often for certain plugins

during startup, we will always send an event how long it was since the last startup, including the above information

Reviewed By: passy

Differential Revision: D20515200

fbshipit-source-id: ead971e05542e0ef58ed5e5b204af70b51a15b9b
2020-03-19 02:50:48 -07:00
Pritesh Nandgaonkar
cfb82ad8c8 Fix the broken export of layout plugin in android(not easily reproducible)
Summary:
There was a bug reported recently where the fetching all the nodes failed and the error is pasted [here](https://our.intern.facebook.com/intern/paste/P127476330/). From the paste we can see this `android.content.res.Resources$NotFoundException: Unable to find resource ID #0x0`.

Reported bug is [here](https://fb.workplace.com/groups/flippersupport/permalink/830359447444715/)

I was able to repro this luckily

{F231474948}

Reviewed By: xiphirx

Differential Revision: D20441839

fbshipit-source-id: 9e9bfd15422c0f6c6f7a71aa22e9b1c8d640ec4a
2020-03-18 21:11:13 -07:00
Pritesh Nandgaonkar
90ad50f714 Back out "Refactor oss ios job to not use pod install"
Summary:
Original commit changeset: 41028c11da6c

I will use mitmproxy for offline support, but till then lets back out the diff and make our tests work for all cases

Reviewed By: passy

Differential Revision: D20514538

fbshipit-source-id: c081baba0a0c7189ae862a66b6116f26b1401177
2020-03-18 21:07:15 -07:00
Pascal Hartig
c88553e00e Fix security vuln in acorn (#898)
Summary:
Resolves https://github.com/facebook/flipper/pull/886 which doesn't
rebase.
Pull Request resolved: https://github.com/facebook/flipper/pull/898

Test Plan: hopeitwork

Reviewed By: mweststrate

Differential Revision: D20510909

Pulled By: passy

fbshipit-source-id: c1525e65a98520d7dd9d3248d2a4e40aee3ae65d
2020-03-18 08:18:22 -07:00
Michel Weststrate
805a911c08 Show recent changes automatically at startup
Summary:
This shows a changelog as popup at startup, but only if it wasn't shown before, and only if there are new items in the changelog.

The full changelog can still be accessed through the menu

Changelog: From this release onward we will show important update messages through this dialog.

Reviewed By: passy

Differential Revision: D20492594

fbshipit-source-id: 4663979c8781b468430b9f8b628c4f506578b461
2020-03-18 06:47:57 -07:00
Michel Weststrate
3da7552779 Add 'show changelog' menu item [3/n]
Summary:
Added a menu option to show the current changelog.

Automatically showing it will be done in a next diff.

Reviewed By: passy

Differential Revision: D20219725

fbshipit-source-id: 96727d2e4b2280a814f28298e7440db5e4dd7870
2020-03-18 06:47:57 -07:00
John Knox
048cfe27d9 Fix update loop in PluginInstaller
Summary:
This is especially noticable on a slow internet connection.

If you type the search query quickly, it gets into a state update loop where:
* You type a character, it starts searching
* You type another character, it starts searching
* The first search finishes, updates the results and also updates the query
* This query change kicks off a new search...
* The second search finishes, updates the results... etc.

Fixed by never updating the query after searching. Instead, just discard search results if they come back after the component has changed. Use the cleanup feature of the effect hook for this.

Video of loop:
https://our.intern.facebook.com/intern/px/p/13Qc5

Reviewed By: mweststrate

Differential Revision: D20510360

fbshipit-source-id: 69ca39368fcfefc37b8f7251e059695ae738ddc0
2020-03-18 06:36:54 -07:00
John Knox
85abad2daf Strip flipper-plugin prefix when listing public plugins
Summary:
Stripping the common prefix when displaying plugin names.
Prior art for this is Jest, Babel, and ESlint.

Only altering it at the presentation level so we still work with the full name under the hood everywhere.

Reviewed By: mweststrate

Differential Revision: D20509786

fbshipit-source-id: ec6b3b064cdaa4d8dd32324fc19131c0bacd5c73
2020-03-18 06:36:54 -07:00
Pascal Hartig
9eea885a2d Prefix unused vars (#897)
Summary:
Just need a recent diff to run some tests on, tbh.
Pull Request resolved: https://github.com/facebook/flipper/pull/897

Reviewed By: mweststrate

Differential Revision: D20490753

Pulled By: passy

fbshipit-source-id: cb7336becfc694cb99f8d0a70f3bee4b7a639c2a
2020-03-17 11:39:56 -07:00
dependabot[bot]
b61d2aff26 Bump acorn from 5.7.3 to 5.7.4 in /desktop/doctor (#887)
Summary:
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
<details>
<summary>Commits</summary>
<ul>
<li><a href="6370e90067"><code>6370e90</code></a> Mark version 5.7.4</li>
<li><a href="fbc15b1344"><code>fbc15b1</code></a> More rigorously check surrogate pairs in regexp validator</li>
<li>See full diff in <a href="https://github.com/acornjs/acorn/compare/5.7.3...5.7.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=acorn&package-manager=npm_and_yarn&previous-version=5.7.3&new-version=5.7.4)](https://help.github.com/articles/configuring-automated-security-fixes)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/887

Reviewed By: mweststrate

Differential Revision: D20490717

Pulled By: passy

fbshipit-source-id: 623d10ed4bf6579469f29c3e5bb47112173ce3d1
2020-03-17 11:35:43 -07:00
Chaiwat Ekkaewnumchai
76bf2f3603 (Server) Add Removing Route Button
Summary:
- Add a close button when hovering over the component
- Remove the route corresponding to it when clicking on closing

Note:
- This is a part of this PR: https://github.com/facebook/flipper/pull/488

Reviewed By: mweststrate

Differential Revision: D20444419

fbshipit-source-id: 5ebe112c542b033a3e10ed10f23d6a04a730c657
2020-03-17 10:09:14 -07:00
Chaiwat Ekkaewnumchai
1d23b5418a (Server) Include Mock Component to Main Files
Summary:
- Add mock button if a client supports the function
- Open the dialog when clicking the button

Note:
- This is a part of this PR: https://github.com/facebook/flipper/pull/488

Reviewed By: mweststrate

Differential Revision: D20440145

fbshipit-source-id: 750099020e0b2d6ed10bb20e883f6b3be664ae79
2020-03-17 10:09:13 -07:00
Chaiwat Ekkaewnumchai
84f36cd0ce (Server) Add MockResponseDialog
Summary:
per title

Note:
- This is a part of this PR: https://github.com/facebook/flipper/pull/488

Reviewed By: mweststrate

Differential Revision: D20440146

fbshipit-source-id: 0a3ade1e78e62d3bc0d98ef9fb6c3f258b34af23
2020-03-17 10:09:13 -07:00
Chaiwat Ekkaewnumchai
adb1d6e976 (Server) Add ManageMockResponsePanel
Summary:
- Add ManageMockResponsePanel to add, modify and remove mocked route

Note:
- This is a part of this PR: https://github.com/facebook/flipper/pull/488

Reviewed By: mweststrate

Differential Revision: D20440147

fbshipit-source-id: 3af127c4b091f288c13b41b74d78c07b4eb0e52f
2020-03-17 10:09:13 -07:00
Chaiwat Ekkaewnumchai
95376a17b9 (Server) Add MockResponseDetail and Package Used Inside
Summary:
- Add MockResponseDetail component to show and edit mocked route
- Add `immer` package which will be used for internal state handler

Change from PR
- Change to functional component

Note:
- This is a part of this PR: https://github.com/facebook/flipper/pull/488

Reviewed By: mweststrate

Differential Revision: D20440149

fbshipit-source-id: d7c35600b9a22cb62c2bdae7e19abe5c767e3670
2020-03-17 10:09:12 -07:00
Chaiwat Ekkaewnumchai
59c821db8d (Server) Add Context to Manipulate Route State
Summary:
This diff added dummy state handler for route, which appeared in the next diffs. Routes will be used to render components for mocking handler and determine data on the client side.

State and other variables will appear on the next diffs.

Note:
- This is a part of this PR: https://github.com/facebook/flipper/pull/488

Reviewed By: mweststrate

Differential Revision: D20440150

fbshipit-source-id: d441ae1d53caf7280bef78d937aaa71617e2da9f
2020-03-17 10:09:12 -07:00
Chaiwat Ekkaewnumchai
f3eb695fa6 (Server) Add a New Type to Capture Mocking
Summary:
per title

Note:
- This is a part of this PR: https://github.com/facebook/flipper/pull/488

Reviewed By: mweststrate

Differential Revision: D20440148

fbshipit-source-id: 9365f0b83449f295e819cccc2fa622d866dca129
2020-03-17 10:09:11 -07:00
generatedunixname89002005306973
4297b3061f Flipper Snapshot Bump: v0.34.1-SNAPSHOT
Summary: Releasing snapshot version 0.34.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D20480418

fbshipit-source-id: 401706e76326e3af8e9b48f3f4aa1ebc264d3d8e
2020-03-17 05:31:04 -07:00
generatedunixname89002005306973
afa8d6274a Flipper Release: v0.34.0
Summary: Releasing version 0.34.0

Reviewed By: nikoant

Differential Revision: D20480419

fbshipit-source-id: e83a532690c6df8e781683b3dcc2418b8744c961
2020-03-17 05:31:04 -07:00
Michel Weststrate
f919a0d1a3 fixed issue where install script errors were not properly propagated
Summary:
Our post install scripts didn't propagate installation errors in CI (or locally), leading to problems only appearing later in time, causing a lot of lost time {emoji:1f605}

Also moved printing what package is installing to _before_ running the script, so that you have actual useful info in case it fails.

Compilation errors of pkg and doctor were printed in our CI, but never threw exceptions.

Fixed the cause of those compilation errors as well using `skipLibCheck` like done in the root tsconfig

Reviewed By: jknoxville

Differential Revision: D20470985

fbshipit-source-id: 1b13d4d2c096f253cc9c1f0aac06982fc4aedf55
2020-03-16 16:52:31 -07:00
Michel Weststrate
f83a088f0d Dependency bumps [3/n]
Summary:
allow-large-files

Bumped dependencies using yarn upgrade-interactive. Closes a lot of GH issues / PR's

Reviewed By: passy

Differential Revision: D20446667

fbshipit-source-id: 59acc77dde36600e0479f1e180b8b5ee7b01d801
2020-03-16 11:22:45 -07:00
Michel Weststrate
353c0657d0 Bump several dependencies
Summary:
Bumped several dependencies. For operational efficiency doing this in one diff.

Lands GH diffs #747, #826, #839, #875, #876

Reviewed By: passy

Differential Revision: D20419326

fbshipit-source-id: 2378d66362d754e0345f129097b22c52b44b7879
2020-03-16 11:22:44 -07:00
Pascal Hartig
28e735a4c5 Fix prettier error (#893)
Summary:
^
Pull Request resolved: https://github.com/facebook/flipper/pull/893

Test Plan: eyes

Reviewed By: nikoant

Differential Revision: D20469555

Pulled By: passy

fbshipit-source-id: 70e3ebbc8a65de5f2fc407b9435d5b249f158f00
2020-03-16 11:00:57 -07:00
Anton Nikolaev
e091c21fba Fix prepare-release.sh script
Summary: Fixed paths after moving js code to "desktop" subfolder

Reviewed By: jknoxville, mweststrate

Differential Revision: D20469775

fbshipit-source-id: 4df963550012905dff4c1ddf6e8b6cd2693b8fbe
2020-03-16 09:59:51 -07:00
Adam Ernst
70d417b62b Tweak docs for [SKNodeDescriptor -identifierForInvalidation:]
Summary: It took me a few tries to understand what this was for.

Reviewed By: jknoxville

Differential Revision: D20462208

fbshipit-source-id: f6dac7836409c8d4ec1ffb90a74f632624fb68f7
2020-03-16 07:29:23 -07:00
Adam Ernst
89d6dfcf95 Simplify invalidate batching in Layout plugin
Summary:
- Avoid holding lock while calling out to `send:withParams:`; it's hard to reason about whether we could trigger deadlock.
- Remove unnecessary `lastInvalidateMessage` ivar; we already ensure that we send at most one invalidate batch per 500ms by using `invalidateMessageQueued`.
- Misc code style items

Reviewed By: Andrey-Mishanin

Differential Revision: D20462193

fbshipit-source-id: 80f61e5a7ce5021e16ebc19a2ec40adfc46f9b92
2020-03-16 07:29:23 -07:00
Pritesh Nandgaonkar
4784c45778 Make view scrollable if error message is long
Summary:
Bug:

{F231521873}

Reviewed By: mweststrate

Differential Revision: D20460428

fbshipit-source-id: 1ea7cbef2bd7c173defd0b056641abc87e66f93c
2020-03-16 05:23:16 -07:00
Pritesh Nandgaonkar
f889dc5e40 Refactor Plugin Selection sheet and add snapshot test
Summary:
This diff fixes a UI bug in export data sheet where the plugin names are stuck to the left and also the bottom buttons are stuck together with no padding. I have also added snapshot test for the same. In order to write test and reduce the complexity I changed the `ExportDataPluginSheet`'s connect method.

Bug:

{F231521086}

Reviewed By: mweststrate

Differential Revision: D20459692

fbshipit-source-id: 1047d6b38738691d682ad6e4ccec45c05e14cbbe
2020-03-16 05:23:16 -07:00
Pritesh Nandgaonkar
18915ba43c Fix the bug where flipper tried to fetch meta data from archived device after importing from same device
Summary:
This diff fixes an issue where when one imports an archived device and tries to export again through the same device with which the initial import was made then the export functionality tries to also fetch metadata from the archived device, it waits for the metadata till it timeouts.

Also this diff fixes an issue where if the selected plugin is not present in the `selectedClient` then it will also ignore that plugin from the other clients even if it was supported by those clients.

Unit test cases for all the above cases are added.

Bug:

{F231519408}

Reviewed By: mweststrate

Differential Revision: D20459179

fbshipit-source-id: 4f0d8c40bec875e3cc43cd6aa70061c8b8da7b05
2020-03-16 05:23:15 -07:00
Pritesh Nandgaonkar
d75be90522 Fix the graph API failures
Summary:
Currenty in the prod version of Flipper the endpoints of media upload and flipper trace fail with status code 400. Reason being different origin and refferer as compared to the dev version. This diff matches the origin and the refferer with the dev one.

I referenced Anton's diff D20278701.

Reviewed By: nikoant

Differential Revision: D20454562

fbshipit-source-id: 20f80a731878fb491d08a208d64fc9260e442fa3
2020-03-16 05:23:15 -07:00
Pritesh Nandgaonkar
148f90de7f Catch DataExportError from shareFlipperData
Summary:
There was a bug where if the `shareFlipperData` returned an `error` with a status code of less than 400 then it will be ignored. If the status code was of greater than or equal to 400 then `shareFlipperData` throws an error and it is caught and logged appropriately.

This diff fixes the above issue where if the return type from shareFlipperData is of type DataExportError then it is checked and not ignored. Also this fixes an issue where if DataExportError happens the loader is replaced with an error message.

Basically the bug mentioned here, T55169042. Also this diff logs the metadata of result, so that we can debug the exact error through scuba.

Reviewed By: mweststrate

Differential Revision: D20450159

fbshipit-source-id: 95b1f384886c16fe444ae0cd6f6d9b2251c29005
2020-03-16 05:23:15 -07:00
Anton Nikolaev
0e920e8558 Few fixes in docs after folders re-arrangements
Summary: Few fixes in docs after folders re-arrangements

Reviewed By: mweststrate

Differential Revision: D20465905

fbshipit-source-id: f65a154731a9956cd0cb6ab66a42eaeecaaf8af0
2020-03-16 03:29:04 -07:00
Adam Ernst
d9a2167019 Refactor SKSubDescriptor
Reviewed By: d16r

Differential Revision: D20458337

fbshipit-source-id: e8ea848c6e2f7521c5a6c6eb4110bba0bfe25593
2020-03-15 19:42:39 -07:00
Adam Ernst
19876273a3 Refactor SKComponentLayoutDescriptor
Reviewed By: Andrey-Mishanin

Differential Revision: D20458227

fbshipit-source-id: 1723043d6b217323a1c70a455042b28eaf5218a0
2020-03-15 19:42:38 -07:00
Adam Ernst
1725fd6bf1 Simplify CKComponentHostingViewProtocol
Summary: All current implementations of `CKComponentHostingViewProtocol` *contain* a `CKInspectableView`, so there is no need for the hosting view itself to conform. This also simplifies the Flipper plugin.

Reviewed By: d16r

Differential Revision: D20457822

fbshipit-source-id: 472f80f5bb2ee507862487d076cfb0e3de6416fa
2020-03-15 19:42:38 -07:00
Anton Nikolaev
952cb7783a Allow direct references of doctor and pkg from the main bundle
Summary: This diff allows direct referencing pkg and doctor packages from the main bundle so they can be changed and used in the main app without publishing to npm

Reviewed By: mweststrate

Differential Revision: D20390416

fbshipit-source-id: af625a8b7cead4481743a88aec198493d363ce76
2020-03-14 15:59:22 -07:00
Anton Nikolaev
10d990c32c Move plugins to "sonar/desktop/plugins"
Summary:
Plugins moved from "sonar/desktop/src/plugins" to "sonar/desktop/plugins".

Fixed all the paths after moving.

New "desktop" folder structure:
- `src` - Flipper desktop app JS code executing in Electron Renderer (Chrome) process.
- `static` - Flipper desktop app JS code executing in Electron Main (Node.js) process.
- `plugins` - Flipper desktop JS plugins.
- `pkg` - Flipper packaging lib and CLI tool.
- `doctor` - Flipper diagnostics lib and CLI tool.
- `scripts` - Build scripts for Flipper desktop app.
- `headless` - Headless version of Flipper desktop app.
- `headless-tests` - Integration tests running agains Flipper headless version.

Reviewed By: mweststrate

Differential Revision: D20344186

fbshipit-source-id: d020da970b2ea1e001f9061a8782bfeb54e31ba0
2020-03-14 14:35:18 -07:00
Anton Nikolaev
beb5c85e69 Enable eslint import checks and fixed the reported errors (#878)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/878

1) Enabled eslint error reporting for unresolved imports and fixed all the errors
2) Enabled eslint for typings (d.ts) and fixed all the errors

Reviewed By: passy

Differential Revision: D20335151

fbshipit-source-id: 7b142281a406b32df0f02a5cd0d7d05eba941acd
2020-03-14 14:35:18 -07:00
Anton Nikolaev
85c13bb1f3 Move desktop-related code to "desktop" subfolder (#872)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/872
Move all the JS code related to desktop app to "desktop" subfolder.

The structure of "desktop" folder:
- `src` - JS code of Flipper desktop app executing in Electron Renderer (Chrome) process. This folder also contains all the Flipper plugins in subfolder "src/plugins".
- `static` - JS code of Flipper desktop app bootstrapping executing in Electron Main (Node.js) process
- `pkg` - Flipper packaging lib and CLI tool
- `doctor` - Flipper diagnostics lib and CLI tool
- `scripts` - Build scripts for Flipper desktop app
- `headless` - Headless version of Flipper app
- `headless-tests` - Integration tests running agains Flipper headless version

Reviewed By: passy

Differential Revision: D20249304

fbshipit-source-id: 9a51c63b51b92b758a02fc8ebf7d3d116770efe9
2020-03-14 14:35:17 -07:00