Этот коммит содержится в:
=Corey Hulen
2015-12-08 13:02:33 -08:00
родитель 8b29404525 90791dd98e
Коммит 69ecfe4cb1
18 изменённых файлов: 91 добавлений и 41 удалений

Просмотреть файл

@@ -93,6 +93,9 @@ Outgoing webhooks use trigger words to fire new message events to external integ
##Display ##Display
Settings to configure clock and teammate name display preferences. Settings to configure clock and teammate name display preferences.
#### Display Font
Select what font is used.
#### Clock Display #### Clock Display
Choose a 12-hour or 24-hour time preference that appears on the time stamp for all posts. Choose a 12-hour or 24-hour time preference that appears on the time stamp for all posts.
@@ -104,3 +107,9 @@ Setting to configure when messages are sent.
#### Send Messages on Ctrl+Enter #### Send Messages on Ctrl+Enter
If enabled, press **Enter** to insert a new line and **Ctrl + Enter** posts the message. If disabled, **Shift + Enter** inserts a new line and **Enter** posts the message. If enabled, press **Enter** to insert a new line and **Ctrl + Enter** posts the message. If disabled, **Shift + Enter** inserts a new line and **Enter** posts the message.
#### Preview pre-release features
Turn on preview features to view them early, ahead of their official release:
- **Show markdown preview option in message input box:** Turning this on will show a "Preview" option when typing in the text input box. Pressing "Preview" shows what the Markdown formatting in the message looks like before the message is sent.
- **Show preview snippet of links below message:** Turning this on will show a preview snippet posted below links from select websites.

Просмотреть файл

@@ -88,7 +88,7 @@ and
## Emojis ## Emojis
Check out a full list of emojis [here](http://www.emoji-cheat-sheet.com/). Emoji provided free by [Emoji One](http://emojione.com/). Check out a full list of emojis [here](http://http://emoji.codes/).
``` ```
:smile: :+1: :sheep: :smile: :+1: :sheep:
@@ -132,6 +132,17 @@ Renders as:
1. Item one 1. Item one
2. Item two 2. Item two
Make a task list by including square brackets:
```
- [ ] Item one
- [ ] Item two
- [x] Completed item
```
Renders as:
- [ ] Item one
- [ ] Item two
- [x] Completed item
## Tables: ## Tables:
Create a table by placing a dashed line under the header row and separating the columns with a pipe `|`. (The columns dont need to line up exactly for it to work). Choose how to align table columns by including colons `:` within the header row. Create a table by placing a dashed line under the header row and separating the columns with a pipe `|`. (The columns dont need to line up exactly for it to work). Choose how to align table columns by including colons `:` within the header row.

Просмотреть файл

@@ -18,7 +18,8 @@ Mattermost messages are formatted using a standard called "markdown". Here are e
|`![embedded image](https://travis-ci.org/mattermost/platform.svg)`|![embedded image](https://travis-ci.org/mattermost/platform.svg)| |`![embedded image](https://travis-ci.org/mattermost/platform.svg)`|![embedded image](https://travis-ci.org/mattermost/platform.svg)|
|`:smile:` `:sheep:` `:alien:`|:smile: :sheep: :alien:| |`:smile:` `:sheep:` `:alien:`|:smile: :sheep: :alien:|
Check out a full list of Emojis [here](http://www.emoji-cheat-sheet.com/). Emojis provided free from [Emoji One](http://emojione.com/). Check out a full list of Emojis [here](http://emoji.codes/).
## Mentioning Teammates ## Mentioning Teammates
@@ -35,3 +36,12 @@ Which sends a special mention notification to **alice** to check your message.
To mention a teammate, press `@` and you should see a list of team members who can be messaged. You can either type their username or use the **Up** and **Down** arrow keys and then **ENTER** to select them to be mentioned. To mention a teammate, press `@` and you should see a list of team members who can be messaged. You can either type their username or use the **Up** and **Down** arrow keys and then **ENTER** to select them to be mentioned.
You can configure how you'd like to be alerted about mentions of your username, your first name, your nickname, or other keywords from **Account Settings** > **Notifications** and you can set channel-specific preferences from **[Channel Name]** > **Notification Preferences** You can configure how you'd like to be alerted about mentions of your username, your first name, your nickname, or other keywords from **Account Settings** > **Notifications** and you can set channel-specific preferences from **[Channel Name]** > **Notification Preferences**
## Messages Dropdown Menu
To get to the Messages Dropdown Menu, hover over a message and click on the [...] menu. This shows a dropdown list containing additional actions you can perform on a message:
- **Reply:** Opens up the sidebar so you can reply to a message in a comment thread.
- **Permalink:** Creates a link to the message. Sharing this link with other users in the channel lets them view the linked message in the Message Archives.
- **Delete:** Deletes the message so it is no longer visible. Team Administrators and System Administrators can also delete another user's message.
- **Edit:** Lets you edit your own message.

Просмотреть файл

@@ -227,7 +227,6 @@ export default class UserItem extends React.Component {
href='#' href='#'
className='dropdown-toggle theme' className='dropdown-toggle theme'
type='button' type='button'
id='channel_header_dropdown'
data-toggle='dropdown' data-toggle='dropdown'
aria-expanded='true' aria-expanded='true'
> >
@@ -237,7 +236,6 @@ export default class UserItem extends React.Component {
<ul <ul
className='dropdown-menu member-menu' className='dropdown-menu member-menu'
role='menu' role='menu'
aria-labelledby='channel_header_dropdown'
> >
{makeAdmin} {makeAdmin}
{makeMember} {makeMember}

Просмотреть файл

@@ -362,11 +362,11 @@ export default class CreateComment extends React.Component {
onClick={this.handleSubmit} onClick={this.handleSubmit}
/> />
{uploadsInProgressText} {uploadsInProgressText}
{preview}
{postError} {postError}
{serverError} {serverError}
</div> </div>
</div> </div>
{preview}
</form> </form>
); );
} }

Просмотреть файл

@@ -470,13 +470,13 @@ export default class CreatePost extends React.Component {
{tutorialTip} {tutorialTip}
</div> </div>
<div className={postFooterClassName}> <div className={postFooterClassName}>
{postError}
{serverError}
{preview}
<MsgTyping <MsgTyping
channelId={this.state.channelId} channelId={this.state.channelId}
parentId='' parentId=''
/> />
{preview}
{postError}
{serverError}
</div> </div>
</div> </div>
</form> </form>

Просмотреть файл

@@ -78,17 +78,15 @@ export default class MemberListItem extends React.Component {
href='#' href='#'
className='dropdown-toggle theme' className='dropdown-toggle theme'
type='button' type='button'
id='channel_header_dropdown'
data-toggle='dropdown' data-toggle='dropdown'
aria-expanded='true' aria-expanded='true'
> >
<span className='fa fa-pencil'></span>
<span className='text-capitalize'>{member.roles || 'Member'} </span> <span className='text-capitalize'>{member.roles || 'Member'} </span>
<span className='caret'></span>
</a> </a>
<ul <ul
className='dropdown-menu member-menu' className='dropdown-menu member-menu'
role='menu' role='menu'
aria-labelledby='channel_header_dropdown'
> >
{makeAdminOption} {makeAdminOption}
{handleRemoveOption} {handleRemoveOption}
@@ -96,7 +94,7 @@ export default class MemberListItem extends React.Component {
</div> </div>
); );
} else { } else {
invite = <div className='member-role text-capitalize'>{member.roles || 'Member'}<span className='caret hidden'></span></div>; invite = <div className='member-role text-capitalize'><span className='fa fa-pencil hidden'></span>{member.roles || 'Member'}</div>;
} }
return ( return (

Просмотреть файл

@@ -181,17 +181,15 @@ export default class MemberListTeamItem extends React.Component {
href='#' href='#'
className='dropdown-toggle theme' className='dropdown-toggle theme'
type='button' type='button'
id='channel_header_dropdown'
data-toggle='dropdown' data-toggle='dropdown'
aria-expanded='true' aria-expanded='true'
> >
<span className='fa fa-pencil'></span>
<span>{currentRoles} </span> <span>{currentRoles} </span>
<span className='caret'></span>
</a> </a>
<ul <ul
className='dropdown-menu member-menu' className='dropdown-menu member-menu'
role='menu' role='menu'
aria-labelledby='channel_header_dropdown'
> >
{makeAdmin} {makeAdmin}
{makeMember} {makeMember}

Просмотреть файл

@@ -272,7 +272,6 @@ export default class Navbar extends React.Component {
href='#' href='#'
className='dropdown-toggle theme' className='dropdown-toggle theme'
type='button' type='button'
id='channel_header_dropdown'
data-toggle='dropdown' data-toggle='dropdown'
aria-expanded='true' aria-expanded='true'
> >
@@ -282,7 +281,6 @@ export default class Navbar extends React.Component {
<ul <ul
className='dropdown-menu' className='dropdown-menu'
role='menu' role='menu'
aria-labelledby='channel_header_dropdown'
> >
{viewInfoOption} {viewInfoOption}
{addMembersOption} {addMembersOption}

Просмотреть файл

@@ -22,6 +22,11 @@ export default class SearchResultsItem extends React.Component {
e.preventDefault(); e.preventDefault();
EventHelpers.emitPostFocusEvent(this.props.post.id); EventHelpers.emitPostFocusEvent(this.props.post.id);
if ($(window).width() < 768) {
$('.sidebar--right').removeClass('move--left');
$('.inner__wrap').removeClass('move--left');
}
} }
handleFocusRHSClick(e) { handleFocusRHSClick(e) {
@@ -74,7 +79,7 @@ export default class SearchResultsItem extends React.Component {
className='search-item__jump' className='search-item__jump'
onClick={this.handleClick} onClick={this.handleClick}
> >
<i className='fa fa-mail-reply'></i> {'Jump'}
</a> </a>
</li> </li>
<li> <li>

Просмотреть файл

@@ -19,6 +19,7 @@
font-weight: 600; font-weight: 600;
text-decoration: none; text-decoration: none;
padding: 0 10px; padding: 0 10px;
font-family: 'Open Sans', sans-serif;
&:hover { &:hover {
color: #FFF; color: #FFF;
text-decoration: none; text-decoration: none;

Просмотреть файл

@@ -2,7 +2,7 @@
.preview-container { .preview-container {
position: relative; position: relative;
margin-top: 25px; margin: 1px 0 10px;
width: 100%; width: 100%;
max-height: 100px; max-height: 100px;
height: 100px; height: 100px;

Просмотреть файл

@@ -186,6 +186,7 @@
padding: 8px 15px 8px 8px; padding: 8px 15px 8px 8px;
width: 80px; width: 80px;
vertical-align: middle; vertical-align: middle;
position: relative;
&.lg { &.lg {
width: 110px; width: 110px;
} }

Просмотреть файл

@@ -319,13 +319,11 @@ body.ios {
@include clearfix; @include clearfix;
padding: 3px 0 0 0; padding: 3px 0 0 0;
font-size: 13px; font-size: 13px;
.has-error { .control-label {
.control-label { font-weight: normal;
height: 0; margin-bottom: 0;
display: block; top: -5px;
font-weight: normal; position: relative;
margin-bottom: 0;
}
} }
.msg-typing { .msg-typing {
min-height: 25px; min-height: 25px;

Просмотреть файл

@@ -44,6 +44,9 @@
.textarea-wrapper { .textarea-wrapper {
min-height: 100px; min-height: 100px;
} }
.btn {
margin-bottom: 10px;
}
.custom-textarea { .custom-textarea {
min-height: 100px; min-height: 100px;
} }
@@ -123,6 +126,11 @@
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
@include flex(1 1 auto); @include flex(1 1 auto);
.preview-container {
margin-top: 5px;
}
} }
.post-right-comment-time { .post-right-comment-time {

Просмотреть файл

@@ -377,10 +377,8 @@
.msg-typing { .msg-typing {
display: none; display: none;
} }
.has-error { .control-label {
.control-label { top: 0;
height: auto;
}
} }
} }
.post-create-body { .post-create-body {
@@ -409,8 +407,7 @@
} }
} }
.preview-container { .preview-container {
padding: 0px; margin: 5px 0 0;
margin-top: 5px;
.preview-div { .preview-div {
margin-top: 0; margin-top: 0;
} }

Просмотреть файл

@@ -111,13 +111,20 @@
.search-item__jump { .search-item__jump {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0px;
font-size: 13px;
@include opacity(0.8);
&:hover {
@include opacity(1);
}
} }
.search-item__comment { .search-item__comment {
position: absolute; position: absolute;
right: 0; right: 0;
margin-right: 20px; margin-right: 35px;
top: 0; top: 0;
} }

Просмотреть файл

@@ -135,9 +135,10 @@
.input-group-addon { .input-group-addon {
padding: 4px 5px; padding: 4px 5px;
width: 40px; width: 40px;
img { }
border: 1px solid rgba(black, 0.15); img {
} border: 1px solid rgba(black, 0.15);
width: 29px;
} }
} }
.premade-themes { .premade-themes {
@@ -325,12 +326,22 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
}
.member-role, .member-drop { .member-role, .member-drop {
position:absolute; position:absolute;
right: 15px; right: 15px;
top: 8px; top: 8px;
.fa {
margin-right: 5px;
} }
.member-menu {
top: -50%;
right: 110%;
}
} }
.member-invite { .member-invite {