Migrate user

Summary: Migrate user and introduce a global declarations file.

Reviewed By: danielbuechele

Differential Revision: D16690480

fbshipit-source-id: be4e5218715dcae4b403b24cdbc2f3e89728dd59
This commit is contained in:
Pascal Hartig
2019-08-09 10:32:36 -07:00
committed by Facebook Github Bot
parent 4afc417ea5
commit e56d3a4c6d
6 changed files with 27 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ import {
} from '../reducers/application.tsx';
import type {Logger} from '../fb-interfaces/Logger.js';
import {Idler} from '../utils/Idler';
import {shareFlipperData} from '../fb-stubs/user';
import {shareFlipperData} from '../fb-stubs/user.tsx';
import {exportStore, EXPORT_FLIPPER_TRACE_EVENT} from '../utils/exportData.js';
import PropTypes from 'prop-types';
import {clipboard} from 'electron';

View File

@@ -17,8 +17,8 @@ import {
Link,
colors,
} from 'flipper';
import {writeKeychain, getUser} from '../fb-stubs/user';
import {login} from '../reducers/user.tsx';
import {writeKeychain, getUser} from '../fb-stubs/user.tsx';
import {connect} from 'react-redux';
const Container = styled(FlexColumn)({

View File

@@ -21,20 +21,20 @@ export async function shareFlipperData(
trace: string,
): Promise<
| {
id: string,
os: 'string',
deviceType: string,
plugins: string[],
fileUrl: string,
flipperUrl: string,
id: string;
os: 'string';
deviceType: string;
plugins: string[];
fileUrl: string;
flipperUrl: string;
}
| {
error: string,
error_class: string,
stacktrace: string,
},
error: string;
error_class: string;
stacktrace: string;
}
> {
new window.Notification('Feature not implemented');
new Notification('Feature not implemented');
return Promise.reject();
}

View File

@@ -10,7 +10,7 @@ export * from './ui/index.js';
export * from './utils/index.js';
export {default as GK} from './fb-stubs/GK.tsx';
export {default as createPaste} from './fb-stubs/createPaste.tsx';
export {graphQLQuery} from './fb-stubs/user.js';
export {graphQLQuery} from './fb-stubs/user.tsx';
export {
FlipperBasePlugin,
FlipperPlugin,