agentejo / layoutcomponents Goto Github PK
View Code? Open in Web Editor NEWManage global layout-builder components - Cockpit addon
Manage global layout-builder components - Cockpit addon
Since the component param sent to server is deemed to be falsy as it is empty, the controller does not write to the components.json. Since the code checks if the file exists at one point, I guess it is better to delete it when there are no layout components.
@aheinze I have already created a pull request
Hi,
I just discovered cockpit and really love it. It has everything required for a project I am working on. One of the last hurdles is a UX issue with this add-on. Is there a way to visualize something of the content of a component? Like a small thumbnail for an image, the first sentence of a text element, ... Currently the UI is sober, which I personally like, but the people I work with will need a more visual reference.
I know the components can be named, but showing the actual content will make it a bit better. :)
UPDATE:
If this is not something you plan or want to implement, could you at least give me some pointers on how to approach if I want to implement it myself?
When defining custom components and using options (e.g. required, default inside a set) they seem to be ignored:
{
"fields": [
{
"name": "autoplay",
"type": "boolean",
"label": "Autoplay",
"options": {"default": true}
},
{
"name": "title",
"type": "text",
"label": "Title",
"options": {"default": "default title"}
}
]
}
Initially was thinking that was an issue on cockpit core but then realized that was working for collection fields (the reason that I opened agentejo/cockpit#965 and then closed - the PR changes make it work)!
Any ideas?
As the title already states ... 😁
Would be nice if it was possible to use this with Cockpit v2.
Currently I get HTTP 500's when adding this to /addons
😕
Is this addon licensed under MIT, like all other cockpit sources?
I used some code from this addon to override the settings page in the BlockEditor addon to provide more options. While updating the readme to list the credits I noticed the missing license file.
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.