Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder / rename local pages #6

Open
TinyRaindrop opened this issue May 24, 2020 · 5 comments
Open

Reorder / rename local pages #6

TinyRaindrop opened this issue May 24, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@TinyRaindrop
Copy link

Original issue here

Right now there's no way of managing local pages apart from uploading them to client, modifying there, and saving again, which puts the page on the last place.

Would be nice to be able to reorder them, maybe rename too (latter is not a priority for me).

@Soundofdarkness Soundofdarkness added the enhancement New feature or request label May 24, 2020
@TinyRaindrop
Copy link
Author

Maybe stupid idea, but currently reordering pages is a minigame of its own.

Dragging can be implemented using SortableJS, for instance, or even manually, using HTML5 features. But how would I go about saving and restoring the order of pages? Pages are not saved in arrays, but rather in objects.

One way I can think of is putting numeric "index" key into each local page and kind of sort the pages by shuffling these keys, then feed the sorted thing into pagelist.tag (not sure how exactly)? Is there a simple way I'm not seeing here?

@jeske
Copy link

jeske commented Aug 11, 2020

Agreed.. though honestly, I'd be happy if I could just rename them in RuneBook...

@Turb0Hawk
Copy link

Hey guys im working oin this feature and i just want to know, are we ok with using external packages/libraries for stuff like prompt windows ? electron does not support the classic js prompt(message, defaultValue).......

@TinyRaindrop
Copy link
Author

TinyRaindrop commented Jan 12, 2022

@Turb0Hawk
Runebook uses SemanticUI CSS framewok, which has plenty of JS stuff in it.
Modals are might be what you're looking for.
Check out this modal example.

@Turb0Hawk
Copy link

thanks bud ! this is my first node/js project since HS sooooo im rusty and lost. I work front/back end in c# so all the help is appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants