A universal admin panel for Node.js apps just got version 2.0

栏目: IT技术 · 发布时间: 4年前

内容简介:One year ago, atOur goal was to build a tool which will allow javascript developers around the world to add advanced, beautiful and full-featured admin panels to their apps in a few minutes.Thus, we hoped that this tool would dramatically increase the adop

One year ago, at SoftwareBrothers , we started developing AdminBro — a universal admin panel for Node.js apps.

Our goal was to build a tool which will allow javascript developers around the world to add advanced, beautiful and full-featured admin panels to their apps in a few minutes.

Thus, we hoped that this tool would dramatically increase the adoption of Node.js, especially in the startup world.

Since then AdminBro has become quite popular and today we are happy to announce the release of long-awaited version two-point-O which looks like this:

A universal admin panel for Node.js apps just got version 2.0

What you can find in version 2.0

Design System — build your custom features with ease now

A universal admin panel for Node.js apps just got version 2.0

Now the entire User Interface of the admin panel and the components behind it follow the Atomic Design principles .

Long story short, you can now reuse all of the AdminBro UI components, which have been divided into 2 major groups: Atoms (like Badge , Button , Icon etc.) and Molecules (like DatePicker , DropZone , Pagination etc.).

The core of the Design System is the Theme object . With the help of styled-components and styled-system you can now build complicated components with a responsive layout easily

Let me give you a couple of examples:

<Button>Click me</Button><Button size="icon" variant="primary" rounded>
    <Icon icon="Save" />
</Button>

gives

A universal admin panel for Node.js apps just got version 2.0
<Box boxShadow="card" padding="xl">
    <H4>Card Title</H4>
    <Text>This is text below the title</Text>
</Box>

gives

A universal admin panel for Node.js apps just got version 2.0

All of the components can be found in our documentation . Make sure to check them out.

React Hooks and Smart Components

Design System components are not the only frontend update we made. Now you can reuse our Smart Components and React Hooks and build your entire application layer fast.

So let’s say you would like to build a custom form which creates new users in the system.

Now you can use useRecord hook with BasePropertyComponent to do that.

BasePropertyComponent will render all your fields like username, email etc. (whatever you want) where useRecord will send the data to the AdminBro backend and save/update the record. In case of any validation errors, they will be printed by BasePropertyComponent.

And everything without writing a single line of code on the backend.

Take a look at the example on the Documentation to see how that might work.

I18n

Since more non-English speaking people are using AdminBro, we added I18n support.

With the help of TranslateFunctions (accessible on both frontend and the backend), you can now translate an entire app to your language.

I18n also gives you the ability to change any arbitrary text in the UI.

Take a look at the documentation of the Locale file here and our default English translations

Firebase support

Along the way, we launched a separate plugin which allows you to run AdminBro instances on Firebase Cloud Functions . We hope that this will make AdminBro ideal choice for startups when costs and time of delivery are crucial.

Some other stuff

Since we rewrote the entire frontend — we added some tiny tweaks to the UI. Take a look at the example application to see how it looks right now.

What’s next

We also cleaned the Issue page on AdminBro GitHub repository and added some amazing new features. If you like the idea of AdminBro — an automated admin interface for Node.js apps — try it in your project and don’t forget to start the repo .


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

疯狂又脆弱  坚定又柔软

疯狂又脆弱 坚定又柔软

朱墨 / 湖南文艺出版社 / 2018-3 / 39.80元

《疯狂又脆弱 坚定又柔软》是朱墨的一部作品集,介绍了作者考研到北京,工作在华谊,以及留学去英国的经历,在这短短几年中她一路升职加薪,25岁升任华谊宣传总监,27岁赚到人生的第一笔100万,30岁却毅然离职去英国留学,在表面的光鲜亮丽之下,她也曾付出过外人所不知道的心血和努力。她的人生告诉我们,每一个身居高位或者肆意潇洒的人,都曾为梦想疯狂地倾尽全力,而那些心怀梦想的人也总是怀揣一颗坚定又柔软的内心......一起来看看 《疯狂又脆弱 坚定又柔软》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具