Merge pull request #1711 from asaadmahmoodspin/code-themes
Multiple UI Improvements
Этот коммит содержится в:
@@ -1,18 +1,18 @@
|
|||||||
# Messaging
|
# Messaging
|
||||||
|
|
||||||
## Writing Messages
|
### Writing Messages
|
||||||
|
|
||||||
You can write messages using the input box with the text "Write a message..." at the bottom of Mattermost.
|
You can write messages using the input box with the text "Write a message..." at the bottom of Mattermost.
|
||||||
|
|
||||||
Press **ENTER** to send a message. Use **Shift+ENTER** to create a new line without sending a message.
|
Press **ENTER** to send a message. Use **Shift+ENTER** to create a new line without sending a message.
|
||||||
|
|
||||||
## Formatting Messages
|
### Formatting Messages
|
||||||
|
|
||||||
Mattermost messages are formatted using a standard called "markdown". Here are examples:
|
Mattermost messages are formatted using a standard called "markdown". Here are examples:
|
||||||
|
|
||||||
| Text Entered | How it appears |
|
| Text Entered | How it appears |
|
||||||
|:---------------|:---------------|
|
|:---------------|:---------------|
|
||||||
|`**bold**`| **bold** |
|
|`**bold**`| **bold** |
|
||||||
| `_italic_`|_italic_|
|
| `_italic_`|_italic_|
|
||||||
|`[hyperlink](http://mattermost.org)`|[hyperlink](http://mattermost.org)|
|
|`[hyperlink](http://mattermost.org)`|[hyperlink](http://mattermost.org)|
|
||||||
|``||
|
|``||
|
||||||
@@ -21,27 +21,27 @@ Mattermost messages are formatted using a standard called "markdown". Here are e
|
|||||||
Emojis provided free from [Emoji One](http://emojione.com/). Check out a full list of Emojis [here](http://emoji.codes/).
|
Emojis provided free from [Emoji One](http://emojione.com/). Check out a full list of Emojis [here](http://emoji.codes/).
|
||||||
|
|
||||||
|
|
||||||
## Mentioning Teammates
|
### Mentioning Teammates
|
||||||
|
|
||||||
You can mention a teammate by using the `@` symbol plus their username to send them a special notification to draw their attention.
|
You can mention a teammate by using the `@` symbol plus their username to send them a special notification to draw their attention.
|
||||||
|
|
||||||
For example, you might write:
|
For example, you might write:
|
||||||
|
|
||||||
```
|
```
|
||||||
@alice how did your interview go with the new candidate?
|
@alice how did your interview go with the new candidate?
|
||||||
```
|
```
|
||||||
|
|
||||||
Which sends a special mention notification to **alice** to check your message.
|
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
|
### 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:
|
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.
|
- **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.
|
- **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.
|
- **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.
|
- **Edit:** Lets you edit your own message.
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
import Constants from '../../utils/constants.jsx';
|
import Constants from '../../utils/constants.jsx';
|
||||||
|
|
||||||
|
const OverlayTrigger = ReactBootstrap.OverlayTrigger;
|
||||||
|
const Popover = ReactBootstrap.Popover;
|
||||||
|
|
||||||
export default class CustomThemeChooser extends React.Component {
|
export default class CustomThemeChooser extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
@@ -72,6 +75,19 @@ export default class CustomThemeChooser extends React.Component {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var popoverContent = (
|
||||||
|
<Popover
|
||||||
|
bsStyle='info'
|
||||||
|
id='code-popover'
|
||||||
|
className='code-popover'
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
width='200'
|
||||||
|
src={'/static/images/themes/code_themes/' + theme[element.id] + 'Large.png'}
|
||||||
|
/>
|
||||||
|
</Popover>
|
||||||
|
);
|
||||||
|
|
||||||
elements.push(
|
elements.push(
|
||||||
<div
|
<div
|
||||||
className='col-sm-4 form-group'
|
className='col-sm-4 form-group'
|
||||||
@@ -90,11 +106,17 @@ export default class CustomThemeChooser extends React.Component {
|
|||||||
>
|
>
|
||||||
{codeThemeOptions}
|
{codeThemeOptions}
|
||||||
</select>
|
</select>
|
||||||
|
<OverlayTrigger
|
||||||
|
placement='top'
|
||||||
|
overlay={popoverContent}
|
||||||
|
ref='headerOverlay'
|
||||||
|
>
|
||||||
<span className='input-group-addon'>
|
<span className='input-group-addon'>
|
||||||
<img
|
<img
|
||||||
src={'/static/images/themes/code_themes/' + theme[element.id] + '.png'}
|
src={'/static/images/themes/code_themes/' + theme[element.id] + '.png'}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
</OverlayTrigger>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -166,29 +166,6 @@ export default {
|
|||||||
UPDATE_TYPING_MS: 5000,
|
UPDATE_TYPING_MS: 5000,
|
||||||
THEMES: {
|
THEMES: {
|
||||||
default: {
|
default: {
|
||||||
type: 'Mattermost',
|
|
||||||
sidebarBg: '#fafafa',
|
|
||||||
sidebarText: '#333333',
|
|
||||||
sidebarUnreadText: '#333333',
|
|
||||||
sidebarTextHoverBg: '#e6f2fa',
|
|
||||||
sidebarTextActiveBorder: '#378FD2',
|
|
||||||
sidebarTextActiveColor: '#111111',
|
|
||||||
sidebarHeaderBg: '#2389d7',
|
|
||||||
sidebarHeaderTextColor: '#ffffff',
|
|
||||||
onlineIndicator: '#7DBE00',
|
|
||||||
mentionBj: '#2389d7',
|
|
||||||
mentionColor: '#ffffff',
|
|
||||||
centerChannelBg: '#ffffff',
|
|
||||||
centerChannelColor: '#333333',
|
|
||||||
newMessageSeparator: '#FF8800',
|
|
||||||
linkColor: '#2389d7',
|
|
||||||
buttonBg: '#2389d7',
|
|
||||||
buttonColor: '#FFFFFF',
|
|
||||||
mentionHighlightBg: '#fff2bb',
|
|
||||||
mentionHighlightLink: '#2f81b7',
|
|
||||||
codeTheme: 'github'
|
|
||||||
},
|
|
||||||
organization: {
|
|
||||||
type: 'Organization',
|
type: 'Organization',
|
||||||
sidebarBg: '#2071a7',
|
sidebarBg: '#2071a7',
|
||||||
sidebarText: '#fff',
|
sidebarText: '#fff',
|
||||||
@@ -211,6 +188,29 @@ export default {
|
|||||||
mentionHighlightLink: '#2f81b7',
|
mentionHighlightLink: '#2f81b7',
|
||||||
codeTheme: 'github'
|
codeTheme: 'github'
|
||||||
},
|
},
|
||||||
|
mattermost: {
|
||||||
|
type: 'Mattermost',
|
||||||
|
sidebarBg: '#fafafa',
|
||||||
|
sidebarText: '#333333',
|
||||||
|
sidebarUnreadText: '#333333',
|
||||||
|
sidebarTextHoverBg: '#e6f2fa',
|
||||||
|
sidebarTextActiveBorder: '#378FD2',
|
||||||
|
sidebarTextActiveColor: '#111111',
|
||||||
|
sidebarHeaderBg: '#2389d7',
|
||||||
|
sidebarHeaderTextColor: '#ffffff',
|
||||||
|
onlineIndicator: '#7DBE00',
|
||||||
|
mentionBj: '#2389d7',
|
||||||
|
mentionColor: '#ffffff',
|
||||||
|
centerChannelBg: '#ffffff',
|
||||||
|
centerChannelColor: '#333333',
|
||||||
|
newMessageSeparator: '#FF8800',
|
||||||
|
linkColor: '#2389d7',
|
||||||
|
buttonBg: '#2389d7',
|
||||||
|
buttonColor: '#FFFFFF',
|
||||||
|
mentionHighlightBg: '#fff2bb',
|
||||||
|
mentionHighlightLink: '#2f81b7',
|
||||||
|
codeTheme: 'github'
|
||||||
|
},
|
||||||
mattermostDark: {
|
mattermostDark: {
|
||||||
type: 'Mattermost Dark',
|
type: 'Mattermost Dark',
|
||||||
sidebarBg: '#1B2C3E',
|
sidebarBg: '#1B2C3E',
|
||||||
|
|||||||
19
web/sass-files/sass/partials/_docs.scss
Обычный файл
19
web/sass-files/sass/partials/_docs.scss
Обычный файл
@@ -0,0 +1,19 @@
|
|||||||
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
.docs__page {
|
||||||
|
line-height: 1.7;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
|
||||||
|
> div {
|
||||||
|
width: 1170px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 15px;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1.markdown__heading {
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
margin: 1em 0 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,6 +10,10 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.code-popover .popover-content {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.user-popover__image {
|
.user-popover__image {
|
||||||
margin: 0 0 10px;
|
margin: 0 0 10px;
|
||||||
@include border-radius(128px);
|
@include border-radius(128px);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@include single-transition(transform, 0.5s, ease);
|
@include single-transition(transform, 0.5s, ease);
|
||||||
right: -320px;
|
right: -400px;
|
||||||
|
|
||||||
&.move--left {
|
&.move--left {
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|||||||
@@ -49,6 +49,9 @@
|
|||||||
// Responsive Css
|
// Responsive Css
|
||||||
@import "partials/responsive";
|
@import "partials/responsive";
|
||||||
|
|
||||||
|
// Docs Css
|
||||||
|
@import "partials/docs";
|
||||||
|
|
||||||
// Standalone Css
|
// Standalone Css
|
||||||
@import "partials/oauth";
|
@import "partials/oauth";
|
||||||
|
|
||||||
|
|||||||
Двоичные данные
web/static/images/themes/code_themes/githubLarge.png
Обычный файл
Двоичные данные
web/static/images/themes/code_themes/githubLarge.png
Обычный файл
Двоичный файл не отображается.
|
После Ширина: | Высота: | Размер: 81 KiB |
Двоичные данные
web/static/images/themes/code_themes/monokaiLarge.png
Обычный файл
Двоичные данные
web/static/images/themes/code_themes/monokaiLarge.png
Обычный файл
Двоичный файл не отображается.
|
После Ширина: | Высота: | Размер: 81 KiB |
Двоичные данные
web/static/images/themes/code_themes/solarized_darkLarge.png
Обычный файл
Двоичные данные
web/static/images/themes/code_themes/solarized_darkLarge.png
Обычный файл
Двоичный файл не отображается.
|
После Ширина: | Высота: | Размер: 80 KiB |
Двоичные данные
web/static/images/themes/code_themes/solarized_lightLarge.png
Обычный файл
Двоичные данные
web/static/images/themes/code_themes/solarized_lightLarge.png
Обычный файл
Двоичный файл не отображается.
|
После Ширина: | Высота: | Размер: 81 KiB |
@@ -7,7 +7,7 @@
|
|||||||
<div class="inner__wrap">
|
<div class="inner__wrap">
|
||||||
<div class="row content">
|
<div class="row content">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div id="docs"></div>
|
<div class="docs__page" id="docs"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-push"></div>
|
<div class="footer-push"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user