Commit Graph

36411 Commits

Author SHA1 Message Date
Rohitt Vashishtha
bb579742a2 markdown: Move helper function to rendered_markdown.js. 2020-05-21 12:32:52 -07:00
Rohitt Vashishtha
fa9431c0a4 markdown: Extract rendered_markdown.js to update dynamic elements.
Previously, we handled this code only in message_list_view.js.
Now we support rendering stream descriptions and some dynamic
elements can be rendered in them, so we extract this new module
and use it in both the places.
2020-05-21 12:32:52 -07:00
Hemanth V. Alluri
ab03659095 webhooks/github: Provide more detailed info for unexpected events.
Signed-off-by: Hemanth V. Alluri <hdrive1999@gmail.com>
2020-05-21 12:31:43 -07:00
Rohitt Vashishtha
88367a129c markdown: Disable tex and latex for math rendering.
We now parse tex and latex as regular languages, highlighting them
with pygments. We only allow 'math' to trigger latex rendering,
which is in line with the documentation.
2020-05-21 12:30:27 -07:00
Mateusz Mandera
e2262b0b64 queue_processors: Log time spent getting data for url in embed_links. 2020-05-21 12:13:46 -07:00
Tim Abbott
e59a2a23c3 portico: Fix a few issues with /for/research. 2020-05-20 17:57:22 -07:00
Tim Abbott
ef1cdf87ce portico: Add first a quote to /for/research.
We'll add more later, at which point we'll need to add the carousel
widget, but this is the first one that came in.
2020-05-20 17:47:01 -07:00
Tim Abbott
39be75e06d portico: Add draft /for/research page.
Currently unlinked as this is pretty rough and needs feedback.
2020-05-20 17:20:27 -07:00
Siddharth Varshney
ad723f1ab4 settings: Fix settings sidebar list bug. 2020-05-20 14:37:11 -07:00
Rohitt Vashishtha
52c25a9301 markdown-timestamp: Use data-timestamp attribute.
This commit shifts our timestamp syntax to be of the form:

    <span class="timestamp data-timestamp="123456"></span>

since value is not a valid attribute of span elements.
2020-05-20 14:28:08 -07:00
Rohitt Vashishtha
b062e8332f markdown: Add timestamp syntax to markdown processors.
This adds support for syntax like: !time(Jun 7 2017, 6:30 PM) so that
everyone sees the time in their own local timezone. This can be used
when scheduling online meetings, etc.

This adds some hardcoded values for timezones, because of there
being no sureshot way of determining the timezone easily. However,
since the main way of using the feature should be a typeahead for
entering the time, this shouldn't be cause of much concern.

Fixes #5176.
2020-05-20 14:23:55 -07:00
Rohitt Vashishtha
22537602d2 minor: Update comment in feature_flags.
The earlier version of the comment implied that we want to remove
the features and not the flags that hide those features.
2020-05-20 13:51:54 -07:00
Tim Abbott
220620e7cf sharding: Add basic sharding configuration for Tornado.
This allows straight-forward configuration of realm-based Tornado
sharding through simply editing /etc/zulip/zulip.conf to configure
shards and running scripts/refresh-sharding-and-restart.

Co-Author-By: Mateusz Mandera <mateusz.mandera@zulip.com>
2020-05-20 13:47:20 -07:00
Tim Abbott
cdd3b7efbc tornado: Configure upstreams for TORNADO_PROCESSES. 2020-05-20 13:43:48 -07:00
Dinesh
2711619376 redis_utils: Extend put_dict_in_redis to accept token as param.
This extends `put_dict_in_redis` to take token as an argument
and return that with the as a `key` with following key format.

Also, edit regex for token to include uppercase letters as
a token sent during apple authentication contains uppercase
letters.

Useful for Adding "Sign in with Apple" support.
2020-05-20 13:30:44 -07:00
orientor
c7a2c48bb7 openapi: Add tests for checking presence of various attributes.
The swagger validator is a basic tool to check whether our
openapi specification file follows the basic syntax. But to ensure
that our zulip.yaml file is not only syntactically compatible but
also describes our API well, we need to add custom tests. This
commit currently checks whether each endpoint has an `operationId`
and a valid tag. It also makes it easier to check for custom rules
in the future.
2020-05-20 13:10:58 -07:00
Imran Iqbal
da084528db feat(travis): display emoji for Pending status
* Encountered `No emoji specified for status 'Pending'` when using `on_start: always`:

```yaml
notifications:
  webhooks:
    ...
    on_start: always    # default: never
```
2020-05-20 13:09:30 -07:00
Tim Abbott
deeed5c4c8 css: Move some styles out of zulip.scss.
settings_section belongs next to the rest of itself, and the loading
indicator is clearly a common reused component.
2020-05-20 11:42:59 -07:00
Tim Abbott
0340ec8a0a css: Remove duplicate #user_settings_avatar styling. 2020-05-20 11:41:55 -07:00
majordwarf
d816b3d46f css: Reorder media queries in settings.scss. 2020-05-20 11:31:34 -07:00
majordwarf
ddaed17e77 css: Use SCSS nesting for #settings_page in media queries. 2020-05-20 11:31:34 -07:00
majordwarf
96ff5f30d3 css: Use SCSS nesting in settings for .collapse-settings-btn. 2020-05-20 11:31:34 -07:00
majordwarf
0f09835625 css: Use SCSS nesting in settings.scss for .custom_user_field. 2020-05-20 11:31:34 -07:00
majordwarf
aa1971d44a css: Use SCSS nesting in settings.scss for .profile-field-choices. 2020-05-20 11:31:34 -07:00
majordwarf
fe4d2426b1 css: Reorder settings.scss to put .profile-field-choices in order. 2020-05-20 11:31:34 -07:00
majordwarf
c53847f5ae css: Merge #payload_url_inputbox and #service_name_list. 2020-05-20 11:31:34 -07:00
majordwarf
d83eed6b62 css: Use SCSS nesting in settings.scss for .required-text. 2020-05-20 11:31:34 -07:00
majordwarf
3f9ed37b0b css: Use SCSS nesting in settings.scss for #attachments_list. 2020-05-20 11:31:34 -07:00
majordwarf
204240d173 css: Reorder settings.scss to put #attachments_list alongside. 2020-05-20 11:31:34 -07:00
majordwarf
ec0c1722f0 css: Use SCSS nesting in settings.scss for #muted_topics_table. 2020-05-20 11:31:34 -07:00
majordwarf
280129abcd css: Remove ignored CSS property in settings.scss.
`margin-bottom` property is ignored due to the display.With
'display: inline', the width, height, margin-top, margin-bottom,and
float properties have no effect.
2020-05-20 11:31:34 -07:00
majordwarf
e2ef46d0fb css: Use SCSS nesting in settings.scss for .table. 2020-05-20 11:31:34 -07:00
majordwarf
83f68f6710 css: Reorder settings.scss to put .table next to each other. 2020-05-20 11:31:34 -07:00
majordwarf
f324298be2 css: Use SCSS nesting in settings.scss for .admin-realm-form. 2020-05-20 11:31:34 -07:00
majordwarf
3b5c7a27f4 css: Reorder settings.scss to put .admin-realm-form alongside. 2020-05-20 11:31:34 -07:00
majordwarf
ec709a715b css: Use SCSS nesting in settings.scss for emoji's input[type=text]. 2020-05-20 11:31:34 -07:00
majordwarf
fbed5b3853 css: Merge #emoji-file-name ruleset in settings.scss. 2020-05-20 11:31:34 -07:00
majordwarf
2ee5b282d6 css: Use SCSS nesting in settings.scss for button. 2020-05-20 11:31:34 -07:00
majordwarf
f4e8086fbd css: Use SCSS nesting for .control-label. 2020-05-20 11:31:34 -07:00
majordwarf
0b709f770b css: Use SCSS nesting for .edit-alert-word-buttons. 2020-05-20 11:31:34 -07:00
majordwarf
0aabd97900 css: Use SCSS nesting in settings.scss for .modal. 2020-05-20 11:31:34 -07:00
majordwarf
16e069a735 css: Reorder settings.scss to put .modal next to each other. 2020-05-20 11:31:34 -07:00
majordwarf
c47b21a1a7 css: Use SCSS nesting in settings.scss for #settings_page. 2020-05-20 11:31:34 -07:00
majordwarf
ca5da9c8f4 css: Reorder settings.scss to put #settings_page next to each other. 2020-05-20 11:30:12 -07:00
majordwarf
e4187f3abb css: Use SCSS nesting in settings.scss for #api_key_buttons. 2020-05-20 11:25:36 -07:00
majordwarf
2f2e3f4879 css: Use SCSS nesting in settings.scss for .emojiset_choices. 2020-05-20 11:25:36 -07:00
majordwarf
468efcf319 css: Use SCSS nesting in settings.scss for #alert_words_list. 2020-05-20 11:25:36 -07:00
majordwarf
d857437319 css: Reorder settings.scss to put #alert_word_list next to each other. 2020-05-20 11:25:36 -07:00
majordwarf
9008fbfc05 css: Use SCSS nesting in settings.scss for .edit_bot_form. 2020-05-20 11:25:36 -07:00
majordwarf
b85f587eac css: Use SCSS nesting in settings.scss for .bots_list. 2020-05-20 11:25:36 -07:00