1.1.16 • Published 1 year ago

@prozilla-os/file-explorer v1.1.16

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

About

@prozilla-os/file-explorer is a standard ProzillaOS application for browsing files.

Installation

@prozilla-os/core is required to run this application.

npm install @prozilla-os/core @prozilla-os/file-explorer
yarn add @prozilla-os/core @prozilla-os/file-explorer
pnpm add @prozilla-os/core @prozilla-os/file-explorer

Usage

Basic setup

import { Desktop, ModalsView, ProzillaOS, Taskbar, WindowsView, AppsConfig } from "@prozilla-os/core";
import { fileExplorer } from "@prozilla-os/file-explorer";

function App() {
  return (
    <ProzillaOS
      systemName="Example"
      tagLine="Powered by ProzillaOS"
      config={{
        apps: new AppsConfig({
          apps: [ fileExplorer ]
        })
      }}
    >
      <Taskbar/>
      <WindowsView/>
      <ModalsView/>
      <Desktop/>
    </ProzillaOS>
  );
}

Window options

/**
 * Initial path that the app will open
 * @default "~" - Home directory
 */
path: string;

/**
 * Defines in which mode the application is running
 * 0: None
 * 1: Single
 * 2: Multiple
 * @default 0
 */
selectorMode: number;

/**
 * Footer component that will be displayed when `selectorMode` != 0
 * Can be used to display a list of selected files for example
 */
Footer: React.FC;

/**
 * Gets called each time the selection changes if `selectorMode` != 0
 */
onSelectionChange: (params: OnSelectionChangeParams) => void;

/**
 * Gets called when the selection is finished if `selectorMode` != 0
 */
onSelectionFinish: Function;

Links

1.1.9

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago