sp-dev-fx-webparts/samples/js-advanced-commenting/README.md

3.8 KiB

Advanced Comments Box

Summary

This component is developed for the advanced usage of commenting the page or article etc. Page Comments lists will be created to store the comments. Following are some of the features of this component.

  • Can be used in the modern page with the existing comments disabled.
  • Classification of comments by Popular, Newest, Oldest and Attachments
  • Ability to refer files as a comment.
  • Edit, Reply (nested comments), Like & Delete options are available based on the configuration.
  • Hashtag & Ping Users are also available.
  • Document Preview is also available for all office documents and videos based on the configuration.
  • Display of New icon for the current day comments.

Properties

  1. DateTime format on when the comments were added or modified

  2. Profile Picture style, whether it has to be rounded or square

  3. Enable or Disable Navigation whether to display the comments classification

  4. Enable or disable Attachments. Following properties are required when attachments are enabled.

    • Library to store the files uploaded.
    • Allowed File Formats in the comments box.
    • Maximum File Size allowed.
  5. Ping Users will allow to mention the users. The users are pulled from the Site Users.

  6. Edit comments can be enabled or disabled to allow the users to edit the comments. Files added can be deleted not edited.

    • Delete option can be enabled or disabled to allow the users to delete the comments. Comments with no-replies are allowed to delete. Delete is allowed only if Edit is allowed.
  7. Upvoting of comments to like or dislike the comments.

  8. Hashtags

  9. Document Preview can be enabled or disabled for the office files and videos.

Preview

Advanced-Comments-Box

Used SharePoint Framework Version

1.9.1

Applies to

Prerequisites

@microsoft/generator-sharepoint - 1.9.1

Solution

Solution Author(s)
SPFxPageComments Sudharsan K.(@sudharsank, Know More)

Version history

Version Date Comments
1.0.0.0 Feb 05 2020 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

Minimal Path to Awesome

  • Clone this repository
  • in the command line run:
    • npm install
    • gulp bundle --ship && gulp package-solution --ship
  • Add the .sppkg file to the app catalog and add the Page Comments web part to the page.

Features

Local Mode

This solution doesn't work on local mode.

SharePoint Mode

If you want to try on a real environment, open: O365 Workbench