lint
This commit is contained in:
parent
70291cdefc
commit
cfbe804d77
|
@ -1,12 +1,19 @@
|
||||||
/* eslint-disable no-bitwise */
|
/* eslint-disable no-bitwise */
|
||||||
import { NativeSyntheticEvent } from 'react-native';
|
import { NativeSyntheticEvent } from 'react-native';
|
||||||
// import KeyCommands, { constants, KeyCommand } from 'react-native-keycommands';
|
|
||||||
|
|
||||||
const constants = {};
|
|
||||||
const KeyCommands = {};
|
|
||||||
const KeyCommand = {};
|
|
||||||
|
|
||||||
import I18n from './i18n';
|
import I18n from './i18n';
|
||||||
|
// import KeyCommands, { constants, KeyCommand } from 'react-native-keycommands';
|
||||||
|
|
||||||
|
const constants = { keyModifierCommand: 0, keyModifierAlternate: 0, keyInputUpArrow: '', keyInputDownArrow: '' };
|
||||||
|
const KeyCommands = {
|
||||||
|
setKeyCommands: (args: any) => {
|
||||||
|
console.log(args);
|
||||||
|
},
|
||||||
|
deleteKeyCommands: (args: any) => {
|
||||||
|
console.log(args);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const KeyCommand = {};
|
||||||
|
|
||||||
const KEY_TYPING = '\t';
|
const KEY_TYPING = '\t';
|
||||||
const KEY_PREFERENCES = 'p';
|
const KEY_PREFERENCES = 'p';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import database from '../database';
|
||||||
import { encryptionInit } from '../../actions/encryption';
|
import { encryptionInit } from '../../actions/encryption';
|
||||||
import { store } from '../store/auxStore';
|
import { store } from '../store/auxStore';
|
||||||
import sdk from '../services/sdk';
|
import sdk from '../services/sdk';
|
||||||
import { CERTIFICATE_KEY, TOKEN_KEY } from '../constants';
|
import { TOKEN_KEY } from '../constants';
|
||||||
import { setCustomEmojis } from './getCustomEmojis';
|
import { setCustomEmojis } from './getCustomEmojis';
|
||||||
import { Services } from '../services';
|
import { Services } from '../services';
|
||||||
import { parseSettings } from './parseSettings';
|
import { parseSettings } from './parseSettings';
|
||||||
|
@ -18,7 +18,7 @@ export async function shareExtensionInit(server: string) {
|
||||||
database.setShareDB(server);
|
database.setShareDB(server);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const certificate = UserPreferences.getString(`${CERTIFICATE_KEY}-${server}`);
|
// const certificate = UserPreferences.getString(`${CERTIFICATE_KEY}-${server}`);
|
||||||
// if (SSLPinning && certificate) {
|
// if (SSLPinning && certificate) {
|
||||||
// await SSLPinning.setCertificate(certificate, server);
|
// await SSLPinning.setCertificate(certificate, server);
|
||||||
// }
|
// }
|
||||||
|
|
|
@ -240,7 +240,7 @@ class NewServerView extends React.Component<INewServerViewProps, INewServerViewS
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
chooseCertificate = async () => {
|
chooseCertificate = () => {
|
||||||
try {
|
try {
|
||||||
// const certificate = await SSLPinning?.pickCertificate();
|
// const certificate = await SSLPinning?.pickCertificate();
|
||||||
// this.setState({ certificate });
|
// this.setState({ certificate });
|
||||||
|
|
Loading…
Reference in New Issue