-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
export default { | ||
name: "thats-the.name", | ||
description: "a simple static website hosting platform.", | ||
ver: 1.5, | ||
type: "process", | ||
exec: async function (Root) { | ||
let wrapper; // Lib.html | undefined | ||
let MyWindow; | ||
|
||
console.log("Hello from example package", Root.Lib); | ||
|
||
Root.Lib.setOnEnd((_) => MyWindow.close()); | ||
|
||
const Win = (await Root.Lib.loadLibrary("WindowSystem")).win; | ||
|
||
MyWindow = new Win({ | ||
title: "thats-the.name", | ||
content: '<iframe src="https://thats-the.name/login.html"></iframe>', | ||
pid: Root.PID, | ||
width: 800, | ||
height: 600, | ||
onclose: () => { | ||
Root.Lib.onEnd(); | ||
}, | ||
}); | ||
|
||
wrapper = MyWindow.window.querySelector(".win-content"); | ||
wrapper.style.padding = "0px"; | ||
|
||
return Root.Lib.setupReturns((m) => { | ||
/* This app has no message functionality... */ | ||
}); | ||
}, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,37 @@ | ||
// An example metadata file for an application | ||
{ | ||
// Name for your application | ||
name: "thats-the.name", | ||
// A simple description for your application | ||
shortDescription: "A simple website hosting service.", | ||
// Description for your application | ||
description: "yep! that's the name, a simple static website hosting service for people who want to host a website, but don't want to pay for a domain name. we'll give you a subdomain, and you can host your website on our servers. it's that simple!", | ||
// Who created this app? Should be the same as the folder name, or a localized string version. | ||
author: "Zeon", | ||
// The catergory of your app. Should be one of the following: | ||
// "Entertainment", "Work", "Play" | ||
category: "Work", | ||
// The minimum core version your app is compatible with. | ||
compatibleWith: 1.5, | ||
// App assets (shown in the app store) | ||
assets: { | ||
path: "app.js", | ||
icon: "assets/icon.svg", | ||
banner: null, | ||
}, | ||
// The version history of your app (descending). | ||
versions: [ | ||
{ | ||
ver: "1.0.0", | ||
cmp: 1.0, | ||
date: "2023-02-18T22:15:53.000Z", | ||
}, | ||
], | ||
// A long description (text only) of the details of the latest update. | ||
localization: { | ||
en_US: { | ||
name: "thats-the.name", | ||
description: "yep! that's the name, a simple static website hosting service for people who want to host a website, but don't want to pay for a domain name. we'll give you a subdomain, and you can host your website on our servers. it's that simple!", | ||
}, | ||
}, | ||
} |