1.0.1 • Published 2 months ago

@startinblox/component-conversation v1.0.1

Weekly downloads
213
License
MIT
Repository
-
Last release
2 months ago

SIB Conversation

<sib-conversation> displays a conversation similar to what can be found within Facebook groups. To associate the conversation to a containing resource, for instance an ActionGroup that would contain Conversations, one can do :

<sib-conversation
  id-suffix="conversations"
  bind-resources
></sib-conversation>

Installation

In your django project, add the djangoldp_conversation package:

# settings.py
DJANGOLDP_PACKAGES = [
  'djangoldp_conversation',
]

How to use

Once the package is installed, you can use the sib-conversation component:

<html>
<head>
  <!-- import the module in the head of the page -->
  <script type="module" src="https://unpkg.com/@startinblox/component-conversation"></script>
</head>

<body>
  <!-- use the component -->
  <sib-conversation
    data-src="[url]"
    nested-field="conversations">
  </sib-conversation>
</body>
</html>

Parameters

NameDefaultDescription
data-srcundefinedURL of the LDP conversation(s) to display.
nested-field""String added at the end of the data source URL. If you use the djangoldp_conversation package, leave it to conversations.
extra-context{}Custom extra context
date-format"DD/MM/YYYY - kk:mm"Format of the date displayed. For more informations about available formats, look at the moment.js doc.

Design

To customize your component, you can set the css variable --sib-conversation-theme anywhere in your stylesheet to the color you want. For example:

:root{
  --sib-conversation-theme: #1abba6;
}

Output

  • On the top, a textarea to create a conversation
  • Then, a list of conversations, or main posts, ordered anti chronologically
  • Each conversation is directly followed by a list of messages related to that conversation. These messages are also ordered chronologically
  • At the bottom of each list of comments, a textarea allows one to add a comment and participate to the discussion
  • For each conversation and message, sib-conversation displays the avatar of this author, her name as well as the amount of time since the info was posted
1.0.1

2 months ago

1.0.1-beta.2

2 months ago

1.0.2-beta.1

2 months ago

1.0.1-beta.6

2 months ago

1.0.1-beta.5

2 months ago

1.0.1-beta.4

2 months ago

1.0.1-beta.3

2 months ago

1.0.1-beta.7

2 months ago

1.0.1-beta.1

3 months ago

1.0.0

4 months ago

1.0.0-alpha.1

4 months ago

1.0.0-beta.1

4 months ago

0.11.1-alpha.7

4 months ago

0.11.1-alpha.3

4 months ago

0.11.1-alpha.4

4 months ago

0.11.1-alpha.5

4 months ago

0.11.1-alpha.6

4 months ago

0.11.1-alpha.2

4 months ago

0.11.0

3 years ago

0.10.0

3 years ago

0.9.1

3 years ago

0.9.0-beta.2

3 years ago

0.9.0

3 years ago

0.7.0-beta.2

3 years ago

0.7.0-beta.3

3 years ago

0.7.0-beta.4

3 years ago

0.8.0-beta.1

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.7.0-beta.1

4 years ago

0.6.0-beta.3

4 years ago

0.6.0

4 years ago

0.6.0-beta.2

4 years ago

0.6.0-beta.1

4 years ago

0.5.0

4 years ago

0.5.1

4 years ago

0.5.0-beta.2

4 years ago

0.5.0-beta.1

4 years ago

0.4.0

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.5

5 years ago

0.0.2

5 years ago