weechatRN

Weechat relay client for iOS using websockets https://github.com/mhoran/weechatRN
git clone http://git.hanabi.in/repos/weechatRN.git
Log | Files | Refs | README | LICENSE

commit e39867096ca95e30b667541a88c301477717b947
parent 9e299b76751dddf1a3d2bb53f6238808ccbbeee9
Author: Matthew Horan <matt@matthoran.com>
Date:   Sat, 10 Nov 2018 19:56:30 -0500

Remove unused Messenger theme

Diffstat:
Msrc/usecase/buffers/ui/BufferLine.tsx | 1-
Dsrc/usecase/buffers/ui/themes/Messenger.js | 94-------------------------------------------------------------------------------
2 files changed, 0 insertions(+), 95 deletions(-)

diff --git a/src/usecase/buffers/ui/BufferLine.tsx b/src/usecase/buffers/ui/BufferLine.tsx @@ -1,7 +1,6 @@ import * as React from "react"; import Default from "./themes/Default"; -import Messenger from "./themes/Messenger"; interface Props { line: WeechatLine; diff --git a/src/usecase/buffers/ui/themes/Messenger.js b/src/usecase/buffers/ui/themes/Messenger.js @@ -1,94 +0,0 @@ -import React from "react"; -import { - StyleSheet, - Text, - Dimensions, - TouchableHighlight, - View -} from "react-native"; - -const highlightedViewStyles = line => {}; - -const getHighlightedTextStyles = line => {}; - -const messageIsFromMe = line => { - return line.nick === "Ndushi"; -}; - -export default class BufferLine extends React.Component { - render() { - const { line } = this.props; - return ( - <View style={[styles.container, highlightedViewStyles(line)]}> - <View style={styles.metaContainer}> - <View style={styles.userContainer}> - {messageIsFromMe(line) ? null : ( - <Text - style={[ - styles.text, - styles.meta, - getHighlightedTextStyles(line) - ]} - > - {line.nick} - </Text> - )} - </View> - </View> - <View style={messageIsFromMe(line) ? { alignItems: "flex-end" } : null}> - <TouchableHighlight - style={[ - styles.messageContainer, - messageIsFromMe(line) ? { backgroundColor: "#067FFF" } : null - ]} - underlayColor="#aaa" - > - <View style={highlightedViewStyles(line)}> - <Text - style={[ - styles.text, - messageIsFromMe(line) ? { color: "#FFF" } : null, - getHighlightedTextStyles(line) - ]} - > - {line.message} - </Text> - </View> - </TouchableHighlight> - </View> - </View> - ); - } -} - -const { width } = Dimensions.get("window"); - -const styles = StyleSheet.create({ - container: { - paddingTop: 4, - paddingBottom: 8, - paddingHorizontal: 7 - }, - metaContainer: { - flexDirection: "row", - paddingBottom: 2 - }, - userContainer: { - paddingHorizontal: 10, - flex: 1 - }, - messageContainer: { - paddingHorizontal: 10, - paddingVertical: 7, - width: width * 0.7, - backgroundColor: "#E5E5EA", - borderRadius: 15 - }, - text: { - color: "#000", - fontSize: 14 - }, - meta: { - fontSize: 9 - } -});