django-command-palette icon indicating copy to clipboard operation
django-command-palette copied to clipboard

[Question] how to use palette outside of regular Django admin panel?

Open simkimsia opened this issue 2 years ago • 5 comments

Is there a way to use the command palette outside regular Django admin panel?

simkimsia avatar Sep 04 '23 13:09 simkimsia

Will get there one day. I mean does Django render the documentation sites? Probably not right? So that's the reason maybe I implemented it on the Admin panel. What are the use cases that you can think of if we implemented it?

rajasimon avatar Sep 06 '23 18:09 rajasimon

I was thinking of using the command palette in admin panels or dashboards that are not django admin based

Was curious when I saw this by chance

simkimsia avatar Sep 11 '23 14:09 simkimsia

Or I can simply fork the palette.js and css?

I like the fact that you use vanilla javascript unlike most implementations which are strictly react only

By the way while searching for alternatives, I found this https://github.com/stefanjudis/awesome-command-palette

You should add a PR to include your implementation to the readme

And here https://www.commandpalette.org/

The contacts at the bottom

simkimsia avatar Sep 11 '23 14:09 simkimsia

Hi KimSia, Thanks for your suggestions. I will include my project in the awesome command palette. But before that, I have a lot of things to do with this extension. For example, there are a few interactions I'm planning on the admin panel that easily navigates to the edit or delete screen.

You're right about the Javascript I chose plain old instead of a reactive framework which is very overkill and because of this js file, we have much cleaner and easily modifiable code that can extend into any matter.

I am planning an updated version that can export beyond the admin panel and directly plug into base.html and we will see about that.

rajasimon avatar Sep 16 '23 05:09 rajasimon

Rooting for ya

simkimsia avatar Sep 16 '23 14:09 simkimsia