discourse/plugins/styleguide
Jarek Radosz 36a9b5d0fa
DEV: Introduce a helper for handling events (#25433)
Instead of

```hbs
{{on "input" (action this.foo value="target.value")}}
{{on "input" (action (mut this.bar) value="target.value")}}
```

you can use:

```hbs
{{on "input" (with-event-value this.foo)}}
{{on "input" (with-event-value (fn (mut this.bar)))}}
```

or in gjs:

```gjs
import { fn } from "@ember/helper";
import { on } from "@ember/modifier";
import withEventValue from "discourse/helpers/with-event-value";
…
{{on "input" (withEventValue (fn (mut this.bar)))}}
```
2024-02-28 14:00:53 +01:00
..
app/controllers/styleguide DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
assets DEV: Introduce a helper for handling events (#25433) 2024-02-28 14:00:53 +01:00
config Update translations (#25659) 2024-02-13 16:11:30 +01:00
db/post_migrate DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
lib/styleguide
public/images
spec/integration DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
plugin.rb FEATURE: Admin plugin list redesign (#24363) 2023-11-21 09:37:11 +10:00
README.md
screenshot.png

styleguide

Adds a URL of /styleguide to discourse that renders widgets in various
configurations to aid in styling.

Screenshot