ProzillaOS/packages/apps/calculator
2024-08-08 10:38:46 +02:00
..
src chore: Fix backspace functionality in Calculator component 2024-07-13 21:36:40 +05:30
CHANGELOG.md Changed license to MIT 2024-08-08 10:38:46 +02:00
package.json Changed license to MIT 2024-08-08 10:38:46 +02:00
README.md Docs: Added separate packages pages 2024-07-17 20:13:17 +02:00
tsconfig.build.json Added calculator app and web-view apps 2024-06-28 17:41:22 +02:00
tsconfig.json Added calculator app and web-view apps 2024-06-28 17:41:22 +02:00
vite.config.ts Added calculator app and web-view apps 2024-06-28 17:41:22 +02:00


ProzillaOS

License Stars Forks NPM Version

About

@prozilla-os/calculator is a ProzillaOS application for making basic calculations.

Installation

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

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

Usage

Basic setup

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

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