Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Dec 24, 2023
1 parent f2a360a commit 738d14b
Showing 1 changed file with 51 additions and 39 deletions.
90 changes: 51 additions & 39 deletions documentation/appdevt.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,54 @@

See [This Document](./templates/template.app/README.md) for instructions on how to set up a basic iFrame app.

<!-- Every application is a .app folder with an entry file called launchapp.js. In this file, a function called loadingScript is called with the path of the app -->
<!---->
<!-- take the python application loader for example. -->
<!-- ```js -->
<!-- function loadingScript(currentpath) { -->
<!-- let python = AliceWM.create("python") -->
<!---->
<!-- let iframe = document.createElement("iframe") -->
<!-- iframe.style = "top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0;" -->
<!-- iframe.setAttribute("src", currentpath +"/console.html") -->
<!-- console.log(document.currentScript); -->
<!-- python.content.appendChild(iframe) -->
<!-- } -->
<!-- ``` -->
<!---->
<!-- from here you can do a variety of things, Applications can directly interface with the x86 subsystem (anura.x86) or its filesystem (anura.x86fs) or use the anura filesystem. -->
<!---->
<!-- You can make a python app with the following logic, -->
<!-- ```js -->
<!-- function loadingScript(currentpath) { -->
<!-- let py = await anura.python('APP NAME') -->
<!-- py.runPython(` -->
<!-- print("Hello World") -->
<!-- win = AliceWM.create("Window") -->
<!-- win.content.innerText = "Python Application!" -->
<!-- `) -->
<!-- } -->
<!-- ``` -->
<!---->
<!-- you can make a JS app with the following logic, -->
<!-- ```js -->
<!-- function loadingScript(currentpath) { -->
<!-- console.log("Hello World") -->
<!-- let win = AliceWM.create("Window") -->
<!-- win.content.innerText = "Python Application!" -->
<!-- } -->
<!-- ``` -->

<!-- you can create a C app by crying -->
Every application is a .app folder with a manifest file called manifest.json. In this file, the basic properties of the app are defined.

## `name`

- **Type:** String
- **Description:** Defines the name of the application.

## `type`

- **Types:** auto, manual
- **Description:** Specifies if Anura should handle functions of this application or whether it will be done manually.

## `package`

- **Type:** String
- **Description:** Represents the package name for the application.

## `index`

- **Type:** String
- **Description:** Specifies the main entry point or the primary HTML file for the application.

## `icon`

- **Type:** String
- **Description:** Indicates the icon file used to represent the application.

## `handler`

- **Type:** String
- **Description:** Points to a javascript file contained in the app that handles the apps launch.

## `wininfo`

- **Type:** Object
- **Description:** Contains information specific to the application's window settings.

### `title`

- **Type:** String
- **Description:** Specifies the title or name of the application's window.

### `width`

- **Type:** String
- **Description:** Determines the width of the application's window.

### `height`

- **Type:** String
- **Description:** Determines the height of the application's window.

0 comments on commit 738d14b

Please sign in to comment.