discourse/app/assets/javascripts/float-kit/addon/components
Jan Cernik 8dd883d4e5
DEV: Refactor topic admin menu to use <DMenu> (#26678)
* DEV: Refactor topic admin menu to use `<DMenu>`

This PR also introduces a new plugin API to add buttons to the topic admin menu

```javascript
api.addTopicAdminMenuButton((topic) => {
  return {
    action: () => {
      alert('Sunrise!');
    },
    icon: 'sun',
    className: 'sunrise-button',
    label: 'actions.rise',
  };
});
```

The plugins that needed to be updated are:

- [discourse-zoom](https://github.com/discourse/discourse-zoom/pull/73)
- [discourse-salesforce](https://github.com/discourse/discourse-salesforce/pull/74)
- [discourse-topic-noindex](https://github.com/discourse/discourse-topic-noindex/pull/11)
2024-04-29 12:44:38 -03:00
..
d-button-tooltip.gjs DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
d-default-toast.gjs FEATURE: add swipe up to close toast notification (#26659) 2024-04-19 09:49:50 +02:00
d-float-body.gjs DEV: Rename modifier import to avoid overwriting template keyword 2024-04-19 10:06:08 +01:00
d-float-portal.gjs DEV: Move gjs <template> to bottom of class definitions 2023-10-10 21:46:54 +01:00
d-inline-float.gjs DEV: Refactor topic admin menu to use <DMenu> (#26678) 2024-04-29 12:44:38 -03:00
d-inline-menu.gjs DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
d-inline-tooltip.gjs DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
d-menu.gjs DEV: Refactor topic admin menu to use <DMenu> (#26678) 2024-04-29 12:44:38 -03:00
d-popover.gjs DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
d-toast.gjs FEATURE: add swipe up to close toast notification (#26659) 2024-04-19 09:49:50 +02:00
d-toasts.gjs FEATURE: add progress bar to toast notifications (#26483) 2024-04-05 18:29:11 +08:00
d-tooltip.gjs UX: Fix alignment issues around user status (#26491) 2024-04-09 11:10:12 +02:00