from host import js_call
js_call("print", "Hello world!")
Extensions and Apps have access to similar system resources.
The only difference is that Apps have access to more stuff than Extensions.
Apps can draw to the Canvas for example, while Extensions cannot.
However, as for creating side panels, adding widgets, etc. Extensions have access to those.
An App can have many Extensions and an Extension can be appropriate for many Apps.
FS:
- Open [ path ]
- Create
- Write
- Read
- Execute
- Delete
HTTP(EVENTS):
Current Method
type SessionOpenTab = {
id: string;
userId: string;
tabId: string;
focus: boolean;
order: number;
}
└── workspaces
└── unreachable
├── api
│ └── v1
│ ├── body_json
│ │ ├── api.yaml
│ │ └── index.js
│ ├── static
│ │ ├── api.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main() { | |
const { log } = Tera; | |
log.info(">>> authenticating ..."); | |
return true; | |
})() // Close the parens prematurely. | |
// Do globally things. | |
var leak = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{cell::RefCell, convert::Infallible, net::SocketAddr, rc::Rc, thread}; | |
use tokio::{ | |
net::{TcpListener, TcpStream}, | |
runtime::Builder, | |
sync::mpsc::{self, Receiver, Sender}, | |
task::LocalSet, | |
}; | |
use utilities::hyper::{ | |
rt::Executor, server::conn::Http, service::service_fn, Body, Request, Response, | |
}; |
- Check error for no subscriber connected
- code /Users/appcypher/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.15/src/body/to_bytes.rs
- worspaces - v1.run_surl.workspaces.9ccec027-68a3-47a2-bd3d-85a9c6faebfb
- directives - ovsJHJmrsxbs6GaQw1JtRe