ma-ha / easy-web-app Goto Github PK
View Code? Open in Web Editor NEWCreate web applications easily -- a Node.js integration of "rest-web-gui" framework.
License: MIT License
Create web applications easily -- a Node.js integration of "rest-web-gui" framework.
License: MIT License
Hi,
I would like to know more about the architecture of this. Will you able to guide?
The table formatting is really neat, however I have a use case for some really simple data formatting. In this case, I just have a single JSON object as a result that I would like to display its properties. Problem is that I cannot see a module that can do this cleanly for me. I can see that there is the markdown one that I have done a simple display like this:
app.get('/md/:page', async function (req, res) {
switch(req.params.page) {
case 'info':
var sts = new aws.STS();
sts.getCallerIdentity().promise().then(callerIdentity => {
res.send(
`# Connection Information
Account: ${callerIdentity.Account}
ARN: ${callerIdentity.Arn}
User: ${callerIdentity.UserId}
# Current Configuration
${JSON.stringify(currconfig)}
`
)
})
break;
}
})
annoyingly though, i have had to change the resftul response to be the markdown I want displayed, instead of the original JSON based response that i originally had. It is okay, but it would be nicer if there was a module that allowed me to define how to format this kind of stuff, perhaps even being markdown itself?
My main challenge is that I am now going to implement a POST method that will hit a different service and get its response, but that response could be anything, and it definitely won't be an array of results. Most likely, I am going to handle the call to this other API by using the neat logic here with an "app.post" to hit it and I can have that deal with the response that might come back, but (at least in my head) that response i would format would be a JSON response, and i would like to have a neat way to present that data in a similar way that I did with that markdown.
Do you already have some kind of capability in place for what I am trying to achieve here, or is this something that a new "module" would be needed for?
execute and look at result of example/nav-embed/
I'm starting to ramp up my efforts in using this and it is working to provide a UI my restful functions which is great! The problem I'm starting to hit is that it is getting confusing understanding how the layout works so i can get it looking a bit nicer. An example of what I am trying to achieve is this:
I have a page with two views: a form and a table. I have successfully got it working so that the form queries an API, gets the results and shows it. Problem is that the view is very restrictive and i want it so that the entire view enlarges to fit the contents (so the page scrolls rather than the smaller view). It seems I am stuck with fixed pixel sizing. My attempts to do things like setting the "height" of the table to 100% does now work as while I can see this directive in the css class correctly, it gets overidden by a specific "style" that is being applied to the object that sets the height to something like 22px and i cannot find a way to override this behaviour.
It would be great if you could provide some more detailed guides on how to adjust the layouts with various examples. I'm sure there are ways I could hack the CSS to get it to behave the way I need it to, but I am intentionally trying to avoid mucking around with UI stuff so I can just write the functions I need and get on with my day.
I've been watching this project for a while and I am really impressed with it. I am keen to try and make use of it, but I need to validate its viability first. One thing I am trying to achieve is to get some kind of authorization going. I don't want to manage my own username/password stuff and would love if we could easily do something like github authentication or something.
Do you have any thoughts or examples on how I might implement that? My current alternative is to hide it in our cluster and restrict access using kube proxying, but if we can get something a bit slicker than that, it would make things a lot easier.
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.