New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@min98/filemanager-react

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@min98/filemanager-react

Package FE FileManager for min98/laravel-filemanager

latest
npmnpm
Version
0.0.28
Version published
Maintainers
1
Created
Source

Package File Manager

Frontend Package File Manager for

  • min98/laravel-filemanager

Documentation

Use

import { Client, FileManagerAPI, FileManager } from "@min98/filemanager-react";
const token = LocalStorage.getItem("access_token");
const lang = LocalStorage.getItem("lang");
const client = new Client(
    "http://127.0.0.1:8000/api/v1/fm",
    true,
    token,
    "en"
);
const API = new FileManagerAPI(client);
<FileManager API={API} lang={lang} />
  • can customize the file manager if you not use API follow interface
  • example default file manager for
import { Client } from "./Client";
import { AbstractFileManagerAPI } from "./AbstractFileManagerAPI ";
export class FileManagerAPI extends AbstractFileManagerAPI {
    public client: Client;
    constructor(client: Client) {
        super(client,);
        this.client = client;
    }
    /**
     * api disk
     */
    initialize = (disk: string, path: string = "") => {
        return this.client.createRequest("get", "initialize", {
            params: {
                disk,
                path
            }
        });
    };
    content = (disk: string, path: string = "") => {
        return this.client.createRequest("get", "content", {
            params: {
                disk,
                path
            }
        });
    };
    // Continue method follow AbstractFileManagerAPI
}

Keywords

Laravel

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

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.

Install

Related posts