mirror of
https://github.com/discourse/discourse-signatures.git
synced 2026-01-25 07:56:43 +00:00
This updates the signature preferences connector to use modern Ember patterns and the new plugin API.
Changes:
- Convert to Glimmer component with `@service` injection
- Replace classic `<Input>` with native `<input>` and `{{on}}` modifier
- Use new `api.addSaveableCustomFields("profile")` API instead of `modifyClass save()` override
- Remove dead `@showUploadModal` argument from `DEditor`
- Add CSS to hide preview panel and match bio editor width
The `modifyClass` pattern for saving `custom_fields` was broken because `saveAttrNames` is now a getter that returns a fresh array on each call, so pushing to it in `save()` had no effect. The new `addSaveableCustomFields` API uses value transformers to properly add "`custom_fields`" to the save attributes.
cf. https://github.com/discourse/discourse/pull/36757
Discourse Signatures
https://meta.discourse.org/t/discourse-signatures/42263
Felling nostalgic of old VBulletin days? Wanna spam and flame like it's 2000?
Install Discourse Signatures!
Installation
Proceed with a normal installation of a plugin.
After Installation
You need to enable the plugins options for all users on Settings -> Plugins:
And each user need to enable and select a signature on his/her profile:
and thats it!
Advanced Mode
You can now enable advanced mode on the plugin settings and use a full blow post editor to create your signature! With text, multiple images, etc.
About
This is a work in progress! Feel free to use and ask questions here, or on Discourse Meta.
TODO
- Figure out a way so the user doesn't have to refresh te browser to change the
see signaturesoptions - Cache the cooked signatures
Description
Languages
Ruby
62.5%
JavaScript
35.4%
SCSS
2.1%


