krstffr / matryoshka Goto Github PK
View Code? Open in Web Editor NEWA GUI for nesting and linking objects inside other objects.
A GUI for nesting and linking objects inside other objects.
!!!
Test this. Should work?
Nesting-something
Don't depend on Accounts package though, should be optional.
Add both on server (methods) and on client (routes mainly).
How to do this in a good way? Just add style: none
to styles which might "bleed" in to this app from other styles as I detect them? Or is there a better way?
Some kind of global inherit-thing or something?
How to handle users? Who can do stuff in Matryoshka?
Add som kind of "matyoskhaAdminRole": "editor"/"admin"/"none" property to users?
Who can add users and set previleges? Only "admin" or something?
Try to break the security, find insecure parts etc.
There's a lot of stuff being saved! Stop it!
Stupid
When clicking on .matryoshka__nestable__container__col--left
for triggering the visibility of it's "children", if you've went from:
then the click event will fire multipel times! Now protected by a stupid setTimeout. SUPER ANNOYING.
Probably due to Meteor/Blaze itself.
Now defaults to the name of the nestable part.
Maybe the best of all would be if you could chose both a value and a name like this: (NAME). That would be pretty fantastic.
Now it's stupid setTimeout() which fires in onAfterAction() for the route. This needs to actually wait for the DOM to load and then fire it ASAP.
Maybe set a notCreatable bool?
Maybe: start a time out for maybe 2 seconds on each keydown (and disable currently running ones of course). THEN save the stuff to the session after the two second pause. 2 seconds should be enough for anyone using this package.
For exampel: I'm building a CMS for a website. I want the pages' "slug" field to be unique, as I don't want multiple live pages with the same slug.
If you've got a lot of nestables and you want to find a specific, scrolling is not always the fastest method. We need a filter/search function!
DAMN.
Rename all of it.
So let's say I can nest two different types of nestables: gridParts and subpageParts. If I want to be able to put:
Like: a pagePart will get a gridPart (with just an empty [] Array as value) even if that's not one of it's nestables. I don't even want to think about how much bigger the DB would get if this was allowed any longer.
Where user can define global settings for the user to set.
Should not pollute apps using this package.
Probably right? Why have two different? Most ppl would prefer floats?
For example: if we have a tags-nestable with only a tagname field, then maybe those should not fill an entire row etc.
Right now it's not looking very cool.
For example:
I create a nestable with a foo-field. I later remove the foo field. The user can now no longer change (or see!) the value of foo, but it will still be saved to the DB for ever.
Maybe show all keys (which are not currently set by the user) in some way?
Maybe like "there are 4 extra field" and a "show" toggle. But how to handle arrays/object?
Like an eye-icon by the other icons which toggles visibility
Example: If the first nestable is visible and then remove, then the next nestable (which is now first) will be visible also.
A bit annoying.
Let's say I create a nested thing and I want three more which are basically the same. Shouldn't there be a duplicate button for this? Or is it feature overkill?
For previewing nestables.
This happened since changing the way the add-part-sub-menu works. Something with matryoshkaId?
:(
Yes, this needs to happen soon.
If you for example select among stored image URLs, then maybe you also want some name field which better describes the image (compared to only the URL).
Can this be removed?
Right now it's very bare bones. Create a method for adding stuff so we actually can do stuff to the pushes etc.
That sounds complicated, but it shouldn't be. What could be complicated is figuring out the flow. Something like:
For example, a main menu should only be able to nest menu parts, not all "page" type parts.
Use whatever collection you want, not restricted to MatryoskaNestables?
For example, let's say we have an "image" nestables. Here it would probably make a lot more sense if you could use an <img>
instead of the nestable name for the preview.
Kind of a lot to take in/messy right now.
in the actualNestablesInArray
helper for examle.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.