Commit Graph

76 Commits

Author SHA1 Message Date
JC Brand ad53a3c9a1 Message styling fix
Don't parse text that falls within XEP-0372 references ranges for
message styling hints.
2021-05-13 11:20:03 +02:00
JC Brand 2b12f8e257 Use lodash-es everywhere 2021-05-12 12:14:28 +02:00
JC Brand 1fc44b9d8e Turn caps plugin into folder.
Move more test files to plugins
2021-05-11 16:18:34 +02:00
JC Brand 18e3b618b4 Some light chat views refactoring
- Move `showModeratorToolsModal` method from view to utils
- Move `getNicknameRequiredTemplate` method from view to utils
- Move common `close` code to base class
2021-05-07 11:23:52 +02:00
JC Brand fdc81fa4ea Use `.conversejs` instead of `.converse-root`
as the class that designates standalone Converse components.
2021-05-06 12:21:35 +02:00
JC Brand 9c11e0dc32 Use `.converse-root` class instead of `#conversejs` id 2021-04-30 17:36:42 +02:00
JC Brand 4bdafb8ea3 Break Sass up into more files
And import where appropriate to allow for custom builds that are still styled properly
2021-04-30 17:36:40 +02:00
Shaun Wu 9ea8653ef7 Upgrade to Webpack 3
Had to make various other changes due to incompatibilities.

- Use the new `lit` package instead of `lit-html` or `lit-element`
- Drop `haunted` since it breaks the rules by specifying `type: module`
  but then doesn't import with file extensions
- Use Sass Dart instead of node-sass (fixes #2445)
- Upgrade Karma
2021-04-30 13:50:50 +02:00
Shaun Wu 1cb2b1f7a9 Adding configurable url history changing 2021-04-29 11:59:28 +02:00
JC Brand 57ccf4c20e Batched writes to IndexedDB
- Update to the latest @converse/skeletor (which uses mergebounce to batch writes)
- Flush storage before logging out
- Flush when reloading the tab
- Create initStorage method
2021-04-28 16:53:50 +02:00
JC Brand 1f7fecab21 Make `show_images` a prop of `converse-chat-mesage-body`
That way, when the setting changes and we call `requestUpdate` on
`converse-chat-message`, the body will rerender.
2021-04-26 12:08:16 +02:00
JC Brand b2445d36d1 Bugfix. `pretty_time` was undefined 2021-04-23 10:59:50 +02:00
JC Brand 3558936b46 Refactor message component to require less attributes 2021-04-16 13:11:30 +02:00
ubermanu 649e813ee8 Fixes an endless loop when styling code blocks with a bad format 2021-04-16 09:44:40 +02:00
JC Brand 65742d32ec Move icons template to shared folder 2021-03-29 13:16:32 +02:00
JC Brand ccd60f76c3 Cleanup
- Move top-level functinos to utils files
- Get rid of unused/obsolete overrides
- Only import components there where they're used
- Bump version in package.json
2021-03-26 10:58:51 +01:00
JC Brand c2a6b09a25 Use `converse-rich-text` component to render unfurl descriptions 2021-03-24 12:41:17 +01:00
JC Brand f897596215 Move files around to try and create some consistency and order 2021-03-24 12:41:17 +01:00
JC Brand 7f5a1d205e Rename `MessageText` to `RichText`
since it's now used to render more than just messages
2021-03-24 12:41:17 +01:00
JC Brand b31eaadfab Add option to `converse-rich-text` for /me messages 2021-03-24 12:41:17 +01:00
JC Brand bd8a57e0c3 Use the `converse-rich-text` component to render the topic 2021-03-24 12:41:17 +01:00
JC Brand 65efe5ad43 Let the message body be rendered with the rich-text directive 2021-03-24 11:27:19 +01:00
JC Brand 41d82a54b6 Create rich text component and directive 2021-03-24 11:13:11 +01:00
JC Brand 1fd3e3676a Update the MesageText class to not require a Model object
This allows us to use it to transform any piece of text and not just
text from a chat message.
2021-03-24 10:42:22 +01:00
JC Brand b28594a976 Import toolbar styles in the component 2021-03-19 15:10:57 +01:00
JC Brand fde371b90f Remove apparently unnecessary tooltip bootstrap scss 2021-03-19 12:47:32 +01:00
JC Brand 453b993cfb Split up CSS into more files 2021-03-19 12:47:32 +01:00
JC Brand 90ab412628 Move fullscreen styles into relevant plugin 2021-03-19 12:47:32 +01:00
JC Brand 1b91d9b69e Move roster, bookmarks and minimize styles to plugin folders 2021-03-19 11:53:22 +01:00
JC Brand 79a4006a61 Move headlines scss to plugin folder 2021-03-19 11:48:48 +01:00
JC Brand 73c4c21533 Move MUC styles to plugin folder 2021-03-19 11:47:13 +01:00
JC Brand b189fc83b0 Move chatbox styles to plugin folder 2021-03-19 11:43:16 +01:00
JC Brand 005cf4dc96 Move controlbox styles to plugin folder 2021-03-19 11:36:19 +01:00
JC Brand f805f0d1ef Move sass files into src and closer to the relevant components 2021-03-19 11:28:35 +01:00
JC Brand e896361b2f Remove the `No message history available` message
It's misleading because it shows before MAM has finished (which also causes
flashing)

Showing it only after MAM has finished would be preferable but too much
work, so I'm removing it for now.
2021-03-17 12:36:56 +01:00
JC Brand bd452a04e8 Fix more mangled i18n strings 2021-03-17 10:12:55 +01:00
JC Brand 001fe37059 Fix i18n message
Got mangled via search-and-replace
2021-03-17 09:48:16 +01:00
JC Brand 69a9adb459 Rename and move some files around 2021-03-12 09:58:17 +01:00
JC Brand 4646956922 Don't render hidden chats 2021-03-11 13:05:03 +01:00
JC Brand 4ca30c4b93 Create `converse-muc-chatarea` component 2021-03-11 10:26:09 +01:00
JC Brand d3ab68011a Split core.js file into multiple smaller ones
Update storing of app settings. Store settings in a closured
`app_settings` object inside `@converse/headless/shared/settings`

Remove the `_converse.settings` object.
2021-03-09 14:11:28 +01:00
JC Brand 68d461bd42 Add the ability to show/hide unfurls 2021-03-05 18:42:14 +01:00
JC Brand 698ad90c43 Move `insertIntoTextarea` methods from view to bottom panel component
That way we further decouple the various components and make it easier
to use them indepenent of one another.
2021-03-04 15:53:04 +01:00
JC Brand a778f3866a Show URL in unfurl card 2021-03-02 13:50:40 +01:00
JC Brand c90b7a9691 Only render unfurl images from allowed domains
as specified by `show_images_inline` when it's set to an array of
domains.
2021-03-02 11:03:35 +01:00
JC Brand 8dd8c7d1dd Don't show unfurl card if there's nothing to show 2021-03-02 11:03:35 +01:00
JC Brand 68ca5dd279 Unfurl: JID wasn't defined 2021-03-01 22:21:45 +01:00
JC Brand f4bcfa5c44 Move various template files into plugin folders 2021-02-22 20:37:13 +01:00
JC Brand 16edc2954d Add support for rendering unfurls via Prosody's mod_ogp
See here: https://modules.prosody.im/mod_ogp.html
2021-02-22 17:55:20 +01:00
JC Brand a8a2bb4681 Componentize the chat headings 2021-02-12 14:32:55 +01:00