Skip to content

Commit

Permalink
Added AudioBubble scafolding, stoped till grid system is implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
SrZorro committed Jun 22, 2018
1 parent 333ad66 commit b232b4c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [Future]
- Add a screen to chose the community to see.
- "private" messages add a profile image.
- Add a chat bubble to see users join and leave threads.
Expand All @@ -13,7 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Add thread name to the header of threads.
- Add a leave thread, maybe in header?
- Overhaul textbox in threads.
- Display correctly special syntax flavor [B]old [I]talic [C]enter [U]nderline [S]trikeout
- Display correctly special syntax flavor [B]old [I]talic [C]enter [U]nderline [S]trikeout.
- Migrate chat bubbles from float based to grid.
- Move chat bubble elements to his own components.

## [Unreleased]


## [1.0.6] - 2018-06-21
### Added
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/components/ChatBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { IAminoMessage } from "aminoclient/dist/AminoTypes";
import { Component } from "inferno";
import { style } from "typestyle";
import moment from "moment";
// import AudioBubble from "./bubbles/AudioBubble";

const classMain = style({
width: "100%",
Expand Down Expand Up @@ -162,6 +163,8 @@ export default class ChatBubble extends Component<any, any> {
case 110:
// ToDo - Add style from https://codepen.io/gregh/pen/NdVvbm
ctx.push(<audio controls><source src={this.props.aminoMessage.mediaValue} type="audio/aac" /></audio>);
// Stoped AudioBubble development till grid system is implemented
// ctx.push(<AudioBubble src={this.props.aminoMessage.mediaValue} />);
break;
}
}
Expand Down
24 changes: 24 additions & 0 deletions src/renderer/components/bubbles/AudioBubble.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Component } from "inferno";
import { style } from "typestyle";

const classMain = style({
height: 50
});

interface IAudioBubble {
src: string;
}

export default class ChatBubble extends Component<any, any> {
constructor(props: IAudioBubble, context) {
super(props, context);
}

public render() {
return (
<div class={classMain}>

</div >
);
}
}

0 comments on commit b232b4c

Please sign in to comment.