
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@knovator/masters-admin
Advanced tools
Package for integrating Masters, Submasters functionality in React projects
ReactJS package to integrate masters/submasters functionality to ReactJS/NextJS application.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
@knovator/masters-admin
is built with intent to faster web app development cycle by providing plug & play facility for masters/submasters, that is used almost on every project.
@knovator/masters-admin
is designed to be used in ReactJS/NextJS project.
Following packages are required to exists/installed to use @knovator/masters-admin
in the project.
npm install @knovator/masters-admin
# or
yarn add @knovator/masters-admin
@knovator/masters-admin
uses Context API, to support communication between components. So, Masters
/Submaster
should be wraped by Provider
.
import { Provider } from '@knovator/masters-admin`;
function App() {
return (
<Provider
...
>
...
</Provider>
)
}
Props
token
baseUrl
https://api.xy000z.in
dataGetter
(optional)
// default
(response) => response.data.docs
paginationGetter
(optional)
// default
(response) => response.data
onError(callback_code, code, message)
(optional)
onSuccess(callback_code, code, message)
(optional)
onLogout
(optional)
unauthorized
code in bodyPlease check in masters.md
Plase check in submasters.md
Image Upload
component to use in FormsProps
className
(optional) => stringtext
=> string
| JSX.Element
to show inside componentmaxSize
=> number
Max size for image to uploadimgId
=> string
| ImageObjectProps
ImageObjectProps
mentioned in data-formatssetImgId
=> (value?: string | null) => void
clearError
(optional) => () => void
onError
=> (msg: string) => void
onImageUpload
=> (file: File) => Promise<{ fileUrl: string; fileId: string } | void>
fileUrl
and fileId
onImageRemove
(optional) => (id: string) => Promise<void>
baseUrl
=> string
error
(optional) => string@knovator/masters
is combination of two packages @knovator/masters-admin
and @knovator/masters-admin
. It is designed plug and play masters module in your project. It is useful in following cases:
state
with city
, experiences
with skills
, categories
with subcategories
etc.If you have any other usecase, please open an issue with tag usecase
. We will try to add it in our roadmap.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE.txt
for more information.
Knovator Technologies
Project Link: https://github.com/knovator/masters-admin
FAQs
Package for integrating Masters, Submasters functionality in React projects
The npm package @knovator/masters-admin receives a total of 15 weekly downloads. As such, @knovator/masters-admin popularity was classified as not popular.
We found that @knovator/masters-admin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.