Skip to content

Commit

Permalink
thats-the.name app
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsLap committed Feb 18, 2024
1 parent 5ca4682 commit 7b11c27
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/zeon/thats-the.name/app.js
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... */
});
},
};
5 changes: 5 additions & 0 deletions pkgs/zeon/thats-the.name/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions pkgs/zeon/thats-the.name/meta.json5
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!",
},
},
}

0 comments on commit 7b11c27

Please sign in to comment.