Commit Graph

1931 Commits

Author SHA1 Message Date
Daniel Büchele
378638a451 website updates for TS
Summary: update website to use TS instead of JS

Reviewed By: passy

Differential Revision: D16986666

fbshipit-source-id: 969de3ffcdf4aa594d9811947e5b440e594838e7
2019-08-24 03:28:28 -07:00
Daniel Büchele
f69bfab0f4 npm
Summary:
Publishing flipper to npm via Sandcastle.
- NPM token added to secrets tool
- removing private flag from package JSON
- adding publish script

Reviewed By: passy

Differential Revision: D16984934

fbshipit-source-id: 334991381d4035928af9a9d98d3905280938736a
2019-08-23 09:33:56 -07:00
Daniel Büchele
853d80f182 headless
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16962733

fbshipit-source-id: 6583c5a4471b12f91895f6449ed9c510265a63e2
2019-08-23 09:33:56 -07:00
Daniel Büchele
7ed9e8e670 migrate workflow to TS
Summary: Updates scarf workflow to generate TypeScript plugins

Reviewed By: passy

Differential Revision: D16940711

fbshipit-source-id: 5005013512bad969833669c6b0b911d55ea5cd79
2019-08-23 09:33:56 -07:00
Alexander Blom
acf7eb1080 Initialize instance to nullptr
Summary:
In tests, the instance is never initialized and it's hard to guard against null when the
instance isn't initialized to nullptr (instead being random data).

Reviewed By: ximyu

Differential Revision: D16984717

fbshipit-source-id: 414539e1117abaad16df9f9b7d3b8dbb328e38d0
2019-08-23 08:15:06 -07:00
Daniel Büchele
651c9db5c4 seamammals plugin
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16936889

fbshipit-source-id: 68ec6a14e1ee4517d76816b4156f0eebaca27ab4
2019-08-23 07:19:12 -07:00
Pascal Hartig
f824329151 Upgrade to Node 11 in Travis (#525)
Summary:
I hope this fixes the obnoxious libuv IO error we see quite often.
Pull Request resolved: https://github.com/facebook/flipper/pull/525

Test Plan: Travis

Reviewed By: priteshrnandgaonkar

Differential Revision: D16984266

Pulled By: passy

fbshipit-source-id: 3e4c6ccd1f3e92a08875f7770202d8909e446ac8
2019-08-23 05:58:18 -07:00
Prathamesh Deshmukh
eb875845b5 Add missing imports in getting-started.md (#514)
Summary:
Added some missing imports in the Android getting started documentation.

By adding these imports, the compilation will not fail.
## Changelog

Updated the getting-started documentation for android
Pull Request resolved: https://github.com/facebook/flipper/pull/514

Test Plan: Add the imports and the build should run successfully

Reviewed By: passy

Differential Revision: D16919073

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 30144f440d312effec289b60af6ca537df344cd2
2019-08-23 04:47:36 -07:00
Chaiwat Ekkaewnumchai
f9fa80d93b Expand/Collapse Plugin Sidebar v1
Summary:
* Change the way to determine recently used plugins
* Show all plugins if there are just a few hidden plugins
  * Not all of plugins in client list can be showed, so checking happens when rendering
* Add action to clear the history internally (for testing) (not sure if needed)

Reviewed By: danielbuechele

Differential Revision: D16965302

fbshipit-source-id: 6efeedac8c0fad7e89a96e7fc5ba9101d3516fe7
2019-08-23 04:42:06 -07:00
Aditya Kumar
620383bae3 Add virtual destructor to class with virtual functions but non-virtual destructor
Reviewed By: jdthomas

Differential Revision: D16954508

fbshipit-source-id: 958118843687145c1147ac5beeb2857b21332702
2019-08-22 11:41:26 -07:00
Daniel Büchele
0ec48d4fc9 index
Summary:
This converts the index file to TypeScript which is used as an export for all plugins. Alongside, I had to fix a couple of errors in various files to make sure everything works correctly.

For plugins using flow, we define an interface which uses the type definition for FlipperPlugin and types all UI components as `any`.

Reviewed By: passy

Differential Revision: D16936890

fbshipit-source-id: dacd9a63a82b9f0bbb530b06072186874cba7b6f
2019-08-22 10:02:27 -07:00
Benjamin Elo
d962bbbfb9 Added screenshots to the navigation plugin
Summary:
Here I've attempted to add screenshots to the nav plugin. This isn't the most elegant solution, but it might have to do due to limitations on the event handler for navigation being fired when the navigation occurs, and not when all remote content on the view has loaded. With this in mind, I added a 1 second delay for the screenshot. This has its own issues such as navigating within a second away from the page will display the wrong view.

If anyone has some suggestions I am open.

Another issue faced here was that incoming nav events are now impure as I need to go take a screenshot on each nav event. Therefore, I have removed the the tests which no longer work for the NavPlugin.

Reviewed By: danielbuechele

Differential Revision: D16915859

fbshipit-source-id: 95db0d1ded2084441d49e1f2e4712c55acf9f1b8
2019-08-22 05:28:34 -07:00
Benjamin Elo
7def9bb681 Moved screenshot functions into Device's class.
Summary:
I have moved the screenshot functions from ScreenCaptureButtons to the Device classes. I have slightly rewritten them so that they return a Promise which resolves to a Buffer. The Buffer can then be saved to a file or converted to a data Blob.

I have removed streaming and simply loaded the image into memory. Once the image is in memory it can be manipulated for various tasks i.e. written to a file, or displayed in the app.

iOS screenshots had to be rewritten. I now save the image to a temp folder, load it into the apps memory, and then remove the temp image.

Reviewed By: jknoxville

Differential Revision: D16939901

fbshipit-source-id: 3e39a5aeda8d48829ac5a8ff912a98f110341c07
2019-08-22 05:28:33 -07:00
Pascal Hartig
263b47f82f Add x-platform update indicator
Summary: Use the new multi-platform update endpoint to indicate when new updates are available for Linux or Windows.

Reviewed By: danielbuechele

Differential Revision: D16939899

fbshipit-source-id: 11c1dc0d4fd19362a1163c613a7b7116c5edf996
2019-08-22 02:32:56 -07:00
Anatolii Shevchenko
e874e032c6 Remove ; from method implementation definition
Summary: Removing excessive semicolon ";" symbol from method implementation definition.

Reviewed By: adamjernst

Differential Revision: D16912006

fbshipit-source-id: 9c3e778a107e8fd0055f40a95ea9ca58d461e1c5
2019-08-21 15:49:04 -07:00
Chaiwat Ekkaewnumchai
ea7578aa16 Expand/Collapse Sidebar V0
Summary:
- Show all or show 5 LRU plugins
- Update when close/reopen app, collapse sidebar, or expand sidebar

Reviewed By: danielbuechele

Differential Revision: D16917950

fbshipit-source-id: 1e7edc86945162ea14e1cdaa89aa47d3defa4c7d
2019-08-21 08:50:34 -07:00
Chaiwat Ekkaewnumchai
007a29805a Setting up Persist Storage for LRU Plugins
Summary:
- Change policy to show plugins to LRU (least recently used)
- Add persist storage to store LRU plugins

Reviewed By: danielbuechele

Differential Revision: D16917951

fbshipit-source-id: 8ea7b2f15e06db51209953818f465a05e24c38c4
2019-08-21 08:50:34 -07:00
Chaiwat Ekkaewnumchai
afd7634fd6 Add Button to Expand or Collapse Left Panel
Summary:
- Add `show more` and `show less` button to expand and collapse
- The element to show depends on its usage rank from Flipper dashboard (manually copied)

Reviewed By: danielbuechele

Differential Revision: D16917952

fbshipit-source-id: fc37d5c640be33794694e302341fa08849b8f97f
2019-08-21 08:50:33 -07:00
Pascal Hartig
d1b17d3ecd Update jssetup for TypeScript
Reviewed By: jknoxville

Differential Revision: D16918664

fbshipit-source-id: 934ad08d60d882b013a3f1d9201d330a6c117bb1
2019-08-21 04:55:33 -07:00
Benjamin Elo
076087f0b2 Fix for button popup menus not rendering
Summary: The electron menu popup requires that the position be an integer. Somehow the y-position of the button in the title bar has been moved by half a pixel. Calling Math.floor on the returned values fixes this.

Reviewed By: passy

Differential Revision: D16936833

fbshipit-source-id: 6abb9add4288f1d64c051ba3e45519340ccbb56e
2019-08-21 04:13:01 -07:00
Sara Valderrama
8699d62b47 fix isTalkbackFocusable evaluation utils for flipper plugins
Summary: utils used by redblock and layout plugins were incorrectly checking node instead of childNode for listviews that have non-visible children

Reviewed By: nscoding

Differential Revision: D16897804

fbshipit-source-id: 8f62956c57568694db76030377552e43ce3a9216
2019-08-20 10:40:38 -07:00
John Knox
f1d0ca7edf Fix layout snapshot test
Summary:
The test didn't run when the sample app was updated with an extra button, so that change snuck in and caused subsequent runs to fail.

The stacked diff makes sure it will run all the time.

Reviewed By: passy

Differential Revision: D16898015

fbshipit-source-id: 0fd9ce7eaef293465d87b283b3c9bfe1fba928e5
2019-08-20 09:14:39 -07:00
James Harmon
20a96da071 Fixes for shared preferences viewer plugin (#521)
Summary:
Resolve issues for SharedPreferences Viewer

## Changelog

Fix issue https://github.com/facebook/flipper/issues/469 - Changed values for Booleans not displaying
Fix issue https://github.com/facebook/flipper/issues/499 - SharedPreference files names not sorted
Pull Request resolved: https://github.com/facebook/flipper/pull/521

Reviewed By: passy

Differential Revision: D16914831

Pulled By: jknoxville

fbshipit-source-id: de07e4f7dec85ac5a2c9bc7cab48f549313f38fd
2019-08-20 09:05:57 -07:00
Pritesh Nandgaonkar
d850f1ff43 Update the bump version script
Summary: Updates the bump_version script to update the flipperkit version in Tutorial's Podfile.

Reviewed By: passy

Differential Revision: D16916433

fbshipit-source-id: dd5cf24fbbe4e9ca322178632613caebe178cc17
2019-08-20 08:41:30 -07:00
Pritesh Nandgaonkar
6056e85f5d Update installation instruction for CP 1.7+ (#522)
Summary:
This PR updates the installation instruction for Cocoapods 1.7+ as the previous installation instruction was broken for the latest Cocoapods version

Solves https://github.com/facebook/flipper/issues/478 and https://github.com/facebook/flipper/issues/495

## Changelog

- Updated the Documentation
- Updated the sample app
Pull Request resolved: https://github.com/facebook/flipper/pull/522

Test Plan:
- Travis CI
- Also tested locally by building sample app.

Reviewed By: jknoxville

Differential Revision: D16902023

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 19cc01c842f93ab3565c302f8258ca88dbdecfb2
2019-08-20 07:02:18 -07:00
Pritesh Nandgaonkar
a2a288182d Migrate elementes-inspector files from js to tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D16772834

fbshipit-source-id: 4290c139ce66731b68433d54eda0d0e0207e9912
2019-08-20 06:26:53 -07:00
Pritesh Nandgaonkar
7f7e96b99f Move utils in data-inspector from js to tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D16772870

fbshipit-source-id: ac980accc22fc0cda011629cd5f56dca4021fc83
2019-08-20 06:26:52 -07:00
Pritesh Nandgaonkar
0c87a82804 Migrate DataDescription from js to tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D16770503

fbshipit-source-id: f8e4fddeb84aefef469a97f65dd65f951dd55e22
2019-08-20 06:26:52 -07:00
Pritesh Nandgaonkar
d84900aa8c Migrate DataPreview to tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D16764969

fbshipit-source-id: 8b8d7f7c92ee99dbbb8b7277e1f38f90da927003
2019-08-20 06:26:52 -07:00
Pritesh Nandgaonkar
9294bf0b82 Move ManagedDataInspector from js to tsx
Summary: As per the title

Reviewed By: danielbuechele

Differential Revision: D16764792

fbshipit-source-id: 6dd9953c3434c6e56b6ee50e3708f3be350c907f
2019-08-20 06:26:51 -07:00
Pritesh Nandgaonkar
709830c8d2 Move Data inspector files to tsx
Summary: As per the title

Reviewed By: danielbuechele

Differential Revision: D16764787

fbshipit-source-id: 5652ce4f317c694ccdf5938cb125e51006a6eef1
2019-08-20 06:26:51 -07:00
Daniel Büchele
4c4169063d table
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16807180

fbshipit-source-id: dcba794351eee69c0574dc224cf7bd2732bea447
2019-08-20 05:45:48 -07:00
Daniel Büchele
62a204bdbe Searchable
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16807182

fbshipit-source-id: 68bc8365bc5b0d8075d0a93d5963c824c0d66769
2019-08-20 05:45:48 -07:00
Daniel Büchele
c8c90ee413 Filter
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D16807179

fbshipit-source-id: b5de66d686394acba6552de139764bb65b3ac652
2019-08-20 05:45:47 -07:00
Daniel Büchele
1deb3c68f9 remove intro
Summary: Removing the Intro component. It's not used anywhere and wasn't even exported from the flipper package.

Reviewed By: passy

Differential Revision: D16807181

fbshipit-source-id: 87d4b92e275a364e478a6999a144eb66e3977c66
2019-08-20 05:45:47 -07:00
Daniel Büchele
5cb12c3b1f Button components
Summary: _typescript_

Reviewed By: passy, bnelo12

Differential Revision: D16830539

fbshipit-source-id: a44ad0914b2581648b06e421476e0ba31ae96992
2019-08-20 05:45:47 -07:00
Daniel Büchele
eaceddbb32 Block
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830542

fbshipit-source-id: 9bc5a3d7b9967b30537fb073383d3eb0aaf0d11e
2019-08-20 04:09:45 -07:00
Daniel Büchele
134a1d8a47 CodeBlock
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830550

fbshipit-source-id: 547cb13e8dffab6d2f82bef1135d27faa5730b43
2019-08-20 04:09:44 -07:00
Daniel Büchele
11f6b84b94 Checkbox
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830538

fbshipit-source-id: cb5c104edfd2318c73b6b32adcd86362fc965ec8
2019-08-20 04:09:44 -07:00
Daniel Büchele
4dd1a954c9 Box
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830543

fbshipit-source-id: f0ed2744186d8133bf551c6ed7165952a269ca68
2019-08-20 04:09:44 -07:00
Daniel Büchele
17675ec348 ContextMenu components
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16830535

fbshipit-source-id: 77e36626f722c64ab85ee6e176d0ba05a6849a99
2019-08-20 04:09:43 -07:00
Daniel Büchele
f63782c043 ErrorBlock
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830531

fbshipit-source-id: 600ff64959426a0f0ac75c76e28e639da15e6be3
2019-08-20 04:09:43 -07:00
Daniel Büchele
84092534ce ErrorBoundary
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830532

fbshipit-source-id: 482d16194cfe8547b9926a0b9b08cfc9e2b46972
2019-08-20 04:09:43 -07:00
Daniel Büchele
9159256a3c File components
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16830536

fbshipit-source-id: 979ee7d0ced339ff5c0d200c209d34656827e152
2019-08-20 04:09:42 -07:00
Daniel Büchele
c9260cca33 Flex components
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16830540

fbshipit-source-id: 43741df5844a9f33930af8846cfcb2b28c9c6278
2019-08-20 04:09:42 -07:00
Daniel Büchele
2520ad4cea Focusable Box
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830533

fbshipit-source-id: c7e9aa9c1e2086ca81754ef1e50aa0335fc57e7c
2019-08-20 04:09:42 -07:00
Daniel Büchele
4eff1dc073 Glyph
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830545

fbshipit-source-id: d2fbbe76e4aaf36d8558a2e793d782f184e1da54
2019-08-20 04:09:41 -07:00
Daniel Büchele
462c903380 Heading
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830534

fbshipit-source-id: e2e7f97c41892297fd4b65ab1e63ae3f40c06e39
2019-08-20 04:09:41 -07:00
Daniel Büchele
9eae871ac0 Horizontal Rule
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830551

fbshipit-source-id: 2e6cde92986278416caade40f6bbd2e0e1a15330
2019-08-20 04:09:41 -07:00
Daniel Büchele
e4c93791cd Input
Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830541

fbshipit-source-id: ee8b25fae3f553823d4b63e1a963a005f21df7a6
2019-08-20 04:09:41 -07:00