-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Created a separate simplyfied kernel
- Loading branch information
1 parent
10d009d
commit 5f90a74
Showing
43 changed files
with
4,595 additions
and
2,871 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import Registry from './core/Registry'; | ||
import FileSystem from './core/FileSystem'; | ||
import IKernelProvider from './interfaces/IKernelProvider'; | ||
import VirtualMachine from './core/VirtualMachine'; | ||
import Encryption from './core/Encryption'; | ||
|
||
class Kernel { | ||
registry: Registry; | ||
|
||
fs: FileSystem; | ||
|
||
vm: VirtualMachine; | ||
|
||
encryption: Encryption; | ||
|
||
privateSeed: string; | ||
|
||
provider: IKernelProvider; | ||
|
||
constructor(privateSeed: string, provider: IKernelProvider) { | ||
this.privateSeed = privateSeed; | ||
this.provider = provider; | ||
} | ||
|
||
/** | ||
* "Boots" the kernel. This sets everything up (fs, vm, enc, etc) | ||
* | ||
* @memberof Kernel | ||
*/ | ||
async boot() { | ||
this.registry = new Registry({}, this.provider); | ||
this.encryption = new Encryption(this.privateSeed); | ||
|
||
this.provider.setKeys(this.encryption.createKey('provider')); | ||
|
||
this.fs = await FileSystem.create(this.registry, this.provider); | ||
this.vm = new VirtualMachine(); | ||
} | ||
} | ||
|
||
export default Kernel; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 📀 PlayOS Kernel | ||
|
||
The kernel for PlayOS is used across platforms for file storing and handling files. It can be used for different situations such as a headless version of PlayOS. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"id": "AppId", | ||
"name": "Airhorner", | ||
"short_name": "Airhorner", | ||
"display": "standalone", | ||
"background_color": "#2196F3", | ||
"theme_color": "#2196F3", | ||
"icons": [ | ||
{ | ||
"sizes": "512x512", | ||
"src": "/images/touch/android-launchericon-512-512.png", | ||
"type": "image/png" | ||
} | ||
], | ||
"scope": "/", | ||
"start_url": "/?homescreen=1", | ||
"manifest_url": "https://airhorner.com/manifest.json", | ||
"playos": { | ||
"isPwa": true, | ||
"isWasm": false, | ||
"showTerminal": false | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"id": "AppId", | ||
"name": "Terminal", | ||
"short_name": "Terminal", | ||
"display": "standalone", | ||
"background_color": "#2196F3", | ||
"theme_color": "#2196F3", | ||
"icons": [ | ||
{ | ||
"sizes": "512x512", | ||
"src": "/images/touch/android-launchericon-512-512.png", | ||
"type": "image/png" | ||
} | ||
], | ||
"scope": "/", | ||
"start_url": "/?homescreen=1", | ||
"manifest_url": "https://airhorner.com/manifest.json", | ||
"playos": { | ||
"isPwa": true, | ||
"isWasm": false, | ||
"showTerminal": false | ||
} | ||
} |
Oops, something went wrong.