JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q58079F
  • License MIT

nodebb-plugin-hashtag

Package Exports

  • nodebb-plugin-hashtag

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nodebb-plugin-hashtag) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

HashTag Plugin for NodeBB

[FUNZIONALITA']

Permette la gestione degli hashtags all'interno di un topic. In particolare:

  • è possibile inserire degli "hashtag" attraverso il "#" in stile Twitter
  • è possibile specificare nella pagina dell'amministrazione il numero massimo di hastags che possono essere inseriti all'interno di un post.



Inserimento numero hashtags massimo nella pagina dell'amministrazione:

alt text



Inserimento hashtags in un post:

alt text



Visualizzazione topic contenenti l'hashtags:

alt text

[TEST]
Per testare il plugin bisogna:

  1. andare in admin->plugins->HashTag(GT) e inserire il numero massimo di hashtags per posts
  2. scrivere un post e creare i vari hashtags. Per verificare il corretto funzionamento del plugin bisogna creare dei post particolari per esempio:
  • bisogna verificare che il numero di hashtags all'interno del post sia minore uguale al numero massimo di hashtags inserito da admin precedentemente.
  • bisogna verificare che i "#" all'interno dei link (https://github.com/NodeBB-Community/nodebb-plugin-shortcuts#readme) non vengano interpretati come hastags.
  • bisogna verificare che se ci stanno hashtags che sono sotto-hashtags (sotto-hashtag inteso come sotto-stringa) di altri hashtags, essi vengono considerati come hashtags separati.

Per esempio,sapendo che il numero massimo di hashtags in un post è 3, un post che verifica tutte le condizioni potrebbe essere:

"Ciaooo Mondo #ciaoo#ciao https://github.com/NodeBB-Community/nodebb-plugin-shortcuts#readme"