-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feature]: Restore Pinia Support #75
Comments
A lot of that isn't strictly Pinia-related, but it has been put to good use on Toodles:
Notably, have had to make use of Lodash's If we were adding client-to-server or client-to-client logic, I would want something more robust when defining these IDs... but that would also make identifying content from file a little trickier too (no ideal way to match a non-IDed file content to its IDed counterpart). Best solution is to store the ID inline, in-file with the content it identifies. For Toodles, that would probably be a case of Yeah, I think maybe on a server a standard table-based database solution makes the most sense still... despite this leaning towards custom document formats I've been going for. We already do store the document in memory as an object thanks to Pinia, so... we already have a means of handling document content items separately for communications with a server. The tricky part then is identifying the parts of the document to update when we request and receive updates from the server... 🤔 We could make use of document path and line number to identify contents... but line numbers may change. Heck, even document path may change. 'Tis better to have IDs for both... (Toodles could support a document ID by making use of its obsolete todo feature: For Toodles, it isn't necessarily too late to make Consider also, meta line need not be denoted by a single character but could begin |
Feature request
But to what layer?
It doesn't seem necessary for blogging websites, right? So you might think it ought to be omitted from tnt-content.
On the other hand, the obvious place for it right now is in the core module, meaning it would be inherited by all, including tnt-content.
It's certainly desirable for tnt-electron, as it will be for Ionic/Capacitor and web applications.
It's also desirable for an online shop... probably. Think shopping cart storage.
And an online shop would also benefit from tnt-content (in some cases) as a simple way to list items in an online store...
🤔
Consider modules/layers like:
What differentiates tnt-blog from tnt-content? Kind of nothing... I listed it as an example of an idea. tnt-blog would extend tnt-content, whereas tnt-shop would extend tnt-content AND tnt-pinia, creating a handy single layer with the features needed to publish product pages and host an interactive shopping cart.
This is an exercise in thinking about... is tnt-pinia the right call? Should the Pinia store functionality be on its own layer, extending the core module?
Still trying to figure that out.
As of now, I think it's so universally useful that it probably should exist on core... and can be ignored entirely if it isn't actually wanted. And at least that way if I were ever trying to call it from core or from any other layer, we would know it exists. It does seem that universally useful, yeah...
I think that's settled. Slap Pinia in TNT Core and figure out how to use it in the Toodle project, particularly how to use it in conjunction with the Electron module.
Code of Conduct
The text was updated successfully, but these errors were encountered: