
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@ngochipx/nhfinder
Advanced tools
NHFinder is a simple photo manager. Can integrate with CKEditor (has been customized).
Source includes:
yarn add @ngochipx/nhfinder
module.exports = {
ROOTDIR: __ROOTDIR__, //The absolute path to the root directory.
UPLOAD_PATH: __ROOTDIR__ + '/public/uploads/', //The absolute path to the upload folder.
PUBLIC_PATH: '/uploads', //public path. For example, http: // localhost: 3000 / uploads / then enter: / uploads
DOMAIN: 'http://localhost:3000', //Domain used for image links.
ALLOW_EXTENSIONS: ['.jpg','.jpeg', '.png', '.bmp', '.gif','.txt'], //Extensions are allowed to uploads.
API_KEY: "123456" //API Key uses security between client and server.
};
...
const nhfinderConfig = require('config/nhfinder.js')
const nhfinderRoutes = require('@ngochipx/nhfinder/nodejs/routes')(nhfinderConfig)
....
Route.use('/nhfinder', nhfinderRoutes) //You can change the link finder if you want.
...
mkdir ./public/uploads chmod 0777 ./public/uploads
....
import NHFinder from '@ngochipx/nhfinder/reactjs'
...
initEditor = async () => {
this.CKEditor = require("@ckeditor/ckeditor5-react");
this.InlineEditor = require("@ngochipx/nhfinder/build-inline");
}
...
render(){
return ... <this.CKEditor editor={this.InlineEditor}
data="<b>Click here to insert content ...</b>"
onInit={editor => { this.editor = editor}}
config={{
imageManagement: {
component: this.refNHFinder,
options: {
apiUrl: "http://localhost:3333/api/v1/nhfinder",
apiKey: "123456" //should match the backend ApiKey.
}}
/>
...
<NHFinder ref={ref => this.refNHFinder = ref} />
}
...
import NHFinder from '@ngochipx/nhfinder/reactjs'
...
showNHFinder(){
this.refNHFinder.show()
}
render(){
return
...
<NHFinder
ref={ref => this.refNHFinder = ref}
options ={{
apiKey: "123456", //API KEY
directorySelected: "/", //Default selected folder
apiUrl: "http://localhost:3333/api/v1/nhfinder"
onChooseImages: (images) => { console.log(images); } //Callback function every time you select images.
}}
/>
}
ngochip
FAQs
nhfinder for ckeditor
The npm package @ngochipx/nhfinder receives a total of 0 weekly downloads. As such, @ngochipx/nhfinder popularity was classified as not popular.
We found that @ngochipx/nhfinder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.