forked from RocketChat/Rocket.Chat.ReactNative
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RocketChat:develop' into develop
- Loading branch information
Showing
558 changed files
with
20,933 additions
and
22,885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BUNDLE_PATH: "vendor/bundle" | ||
BUNDLE_FORCE_RUBY_PLATFORM: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
module.exports = { | ||
bracketSpacing: true, | ||
jsxBracketSameLine: true, | ||
singleQuote: true, | ||
jsxSingleQuote: true, | ||
trailingComma: 'none', | ||
printWidth: 130, | ||
useTabs: true, | ||
arrowParens: 'avoid' | ||
arrowParens: 'avoid', | ||
bracketSameLine: true | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { getStorybookUI } from '@storybook/react-native'; | ||
import './storybook.requires'; | ||
|
||
import RNBootSplash from 'react-native-bootsplash'; | ||
|
||
import { selectServerRequest } from '../app/actions/server'; | ||
import { mockedStore as store } from '../app/reducers/mockedStore'; | ||
import database from '../app/lib/database'; | ||
import { setUser } from '../app/actions/login'; | ||
|
||
RNBootSplash.hide(); | ||
|
||
const baseUrl = 'https://open.rocket.chat'; | ||
store.dispatch(selectServerRequest(baseUrl)); | ||
store.dispatch(setUser({ id: 'abc', username: 'rocket.cat', name: 'Rocket Cat' })); | ||
database.setActiveDB(baseUrl); | ||
|
||
const StorybookUIRoot = getStorybookUI({}); | ||
export default StorybookUIRoot; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
stories: ['../app/**/*.stories.?(ts|tsx|js|jsx)'], | ||
addons: [] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
import { Provider } from 'react-redux'; | ||
|
||
import { themes } from '../app/lib/constants'; | ||
import MessageContext from '../app/containers/message/Context'; | ||
import { selectServerRequest } from '../app/actions/server'; | ||
import { mockedStore as store } from '../app/reducers/mockedStore'; | ||
import { setUser } from '../app/actions/login'; | ||
|
||
const baseUrl = 'https://open.rocket.chat'; | ||
store.dispatch(selectServerRequest(baseUrl)); | ||
store.dispatch(setUser({ id: 'abc', username: 'rocket.cat', name: 'Rocket Cat' })); | ||
|
||
export const decorators = [ | ||
Story => ( | ||
<Provider store={store}> | ||
<MessageContext.Provider | ||
value={{ | ||
user: { | ||
id: 'y8bd77ptZswPj3EW8', | ||
username: 'diego.mello', | ||
token: 'abc' | ||
}, | ||
baseUrl, | ||
onPress: () => {}, | ||
onLongPress: () => {}, | ||
reactionInit: () => {}, | ||
onErrorPress: () => {}, | ||
replyBroadcast: () => {}, | ||
onReactionPress: () => {}, | ||
onDiscussionPress: () => {}, | ||
onReactionLongPress: () => {}, | ||
threadBadgeColor: themes.light.tunreadColor | ||
}} | ||
> | ||
<Story /> | ||
</MessageContext.Provider> | ||
</Provider> | ||
) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* do not change this file, it is auto generated by storybook. */ | ||
|
||
import { | ||
configure, | ||
addDecorator, | ||
addParameters, | ||
addArgsEnhancer, | ||
} from "@storybook/react-native"; | ||
|
||
import { decorators, parameters } from "./preview"; | ||
|
||
if (decorators) { | ||
decorators.forEach((decorator) => addDecorator(decorator)); | ||
} | ||
|
||
if (parameters) { | ||
addParameters(parameters); | ||
} | ||
|
||
const getStories = () => { | ||
return [ | ||
require("../app/containers/Avatar/Avatar.stories.tsx"), | ||
require("../app/containers/BackgroundContainer/index.stories.tsx"), | ||
require("../app/containers/Button/Button.stories.tsx"), | ||
require("../app/containers/Chip/Chip.stories.tsx"), | ||
require("../app/containers/HeaderButton/HeaderButtons.stories.tsx"), | ||
require("../app/containers/List/List.stories.tsx"), | ||
require("../app/containers/LoginServices/LoginServices.stories.tsx"), | ||
require("../app/containers/markdown/Markdown.stories.tsx"), | ||
require("../app/containers/markdown/new/NewMarkdown.stories.tsx"), | ||
require("../app/containers/message/Components/CollapsibleQuote/CollapsibleQuote.stories.tsx"), | ||
require("../app/containers/message/Message.stories.tsx"), | ||
require("../app/containers/ReactionsList/ReactionsList.stories.tsx"), | ||
require("../app/containers/RoomHeader/RoomHeader.stories.tsx"), | ||
require("../app/containers/RoomItem/RoomItem.stories.tsx"), | ||
require("../app/containers/SearchBox/SearchBox.stories.tsx"), | ||
require("../app/containers/ServerItem/ServerItem.stories.tsx"), | ||
require("../app/containers/TextInput/TextInput.stories.tsx"), | ||
require("../app/containers/UIKit/UiKitMessage.stories.tsx"), | ||
require("../app/containers/UIKit/UiKitModal.stories.tsx"), | ||
require("../app/containers/UnreadBadge/UnreadBadge.stories.tsx"), | ||
require("../app/views/CannedResponsesListView/CannedResponseItem.stories.tsx"), | ||
require("../app/views/CreateChannelView/RoomSettings/SwitchItem.stories.tsx"), | ||
require("../app/views/DiscussionsView/Item.stories.tsx"), | ||
require("../app/views/RoomView/LoadMore/LoadMore.stories.tsx"), | ||
require("../app/views/ThreadMessagesView/Item.stories.tsx"), | ||
]; | ||
}; | ||
|
||
configure(getStories, module, false); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby '2.7.4' | ||
gem 'cocoapods', '~> 1.11', '>= 1.11.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export class MMKVLoader { | ||
constructor() { | ||
console.log('MMKVLoader constructor mock'); | ||
} | ||
|
||
setProcessingMode = jest.fn().mockImplementation(() => ({ | ||
withEncryption: jest.fn().mockImplementation(() => ({ | ||
initialize: jest.fn().mockImplementation(() => {}) | ||
})) | ||
})); | ||
} | ||
|
||
export const ProcessingModes = { | ||
MULTI_PROCESS: '' | ||
}; | ||
|
||
export const create = jest.fn(); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.