ProzillaOS/packages/apps/text-editor
2024-07-14 22:26:57 +02:00
..
src Added application roles 2024-06-20 21:13:16 +02:00
CHANGELOG.md feat: Added skins 2024-07-14 22:26:57 +02:00
package.json feat: Added skins 2024-07-14 22:26:57 +02:00
README.md Changed branch in urls in package READMEs to main 2024-07-06 20:48:21 +02:00
tsconfig.build.json Updated app build process + updated docs 2024-06-23 15:12:54 +02:00
tsconfig.json Updated app build process + updated docs 2024-06-23 15:12:54 +02:00
vite.config.ts Updated app build process + updated docs 2024-06-23 15:12:54 +02:00


ProzillaOS

License Stars Forks NPM Version

About

@prozilla-os/text-editor is a text editor application for ProzillaOS.

Installation

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

$ npm install @prozilla-os/core @prozilla-os/text-editor
$ yarn add @prozilla-os/core @prozilla-os/text-editor
$ pnpm add @prozilla-os/core @prozilla-os/text-editor

Usage

Basic setup

import { Desktop, ModalsView, ProzillaOS, Taskbar, WindowsView, AppsConfig } from "@prozilla-os/core";
import { textEditor } from "@prozilla-os/text-editor";

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

Window options

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

/**
 * Virtual file to open the app with
 */
file: VirtualFile;

/**
 * Mode in which to run the app
 * "view" - Renders markdown files and renders syntax highlighting of other file formats, disables text editing
 * "edit" - Raw text editor
 */
mode: "view" | "edit";