diff options
author | Unknown | 2018-04-03 19:46:03 +0100 |
---|---|---|
committer | Unknown | 2018-04-03 19:46:03 +0100 |
commit | 46af5f559bcd28785772be30121f828bc8d00e18 (patch) | |
tree | d3776e123e38c266eb60c7424bfe6bafd6e21d21 /main-repo | |
parent | 70039c0242079c4914d3f62df9cdd9eb8adf9384 (diff) |
remove main-repo
Diffstat (limited to 'main-repo')
-rw-r--r-- | main-repo/helloworld/helloworld.js | 8 | ||||
-rw-r--r-- | main-repo/helloworld/package.json | 4 | ||||
-rw-r--r-- | main-repo/repo.json | 8 | ||||
-rw-r--r-- | main-repo/test/delet.js | 1 | ||||
-rw-r--r-- | main-repo/test/package.json | 5 | ||||
-rw-r--r-- | main-repo/test/rmtest.js | 1 | ||||
-rw-r--r-- | main-repo/wget93/package.json | 5 | ||||
-rw-r--r-- | main-repo/wget93/wget93.js | 52 |
8 files changed, 0 insertions, 84 deletions
diff --git a/main-repo/helloworld/helloworld.js b/main-repo/helloworld/helloworld.js deleted file mode 100644 index 40cd8bd..0000000 --- a/main-repo/helloworld/helloworld.js +++ /dev/null @@ -1,8 +0,0 @@ -le._apps.helloworld = { - exec: function () { - $log("Hello, World!"); - }, - icon: "/c/sys/skins/w93/apps/terminal.png", - terminal: true, - hascli: true -} diff --git a/main-repo/helloworld/package.json b/main-repo/helloworld/package.json deleted file mode 100644 index 10d8523..0000000 --- a/main-repo/helloworld/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "helloworld", - "inject": "helloworld.js" -} diff --git a/main-repo/repo.json b/main-repo/repo.json deleted file mode 100644 index c066956..0000000 --- a/main-repo/repo.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "pkg93 Default Repo", - "motd": "Hello, World!", - "packages": [ - "wget93", - "helloworld" - ] -} diff --git a/main-repo/test/delet.js b/main-repo/test/delet.js deleted file mode 100644 index f30b622..0000000 --- a/main-repo/test/delet.js +++ /dev/null @@ -1 +0,0 @@ -$log("ok y u hat me ok"); diff --git a/main-repo/test/package.json b/main-repo/test/package.json deleted file mode 100644 index e2164ab..0000000 --- a/main-repo/test/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "test", - "inject": "test.js", - "uninstall": "delet.js" -} diff --git a/main-repo/test/rmtest.js b/main-repo/test/rmtest.js deleted file mode 100644 index 81fdb66..0000000 --- a/main-repo/test/rmtest.js +++ /dev/null @@ -1 +0,0 @@ -$log("ok you just installed the test pacakge ok") diff --git a/main-repo/wget93/package.json b/main-repo/wget93/package.json deleted file mode 100644 index 11a6676..0000000 --- a/main-repo/wget93/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "wget93", - "version": "0.1.0", - "inject": "wget93.js" -} diff --git a/main-repo/wget93/wget93.js b/main-repo/wget93/wget93.js deleted file mode 100644 index 8734730..0000000 --- a/main-repo/wget93/wget93.js +++ /dev/null @@ -1,52 +0,0 @@ -le._apps.wget93 = {
- exec: function()
- {
- try {
- if (this.arg.arguments.length == 0) {
- $log(`wget93 v0.1.0 by 1024x2
-wget93 [url] [output]
-example: wget93 http://tobefa.ir/youhavetoha.ve /a/veryhightounderstand/rickandmor.ty
-
-NOTE: Downloading binary files doesn't work, only text.`);
- } else if (this.arg.arguments.length != 2) {
- throw new Error("missing url/destination");
- } else {
- $log.info("Downloading...");
- var url = this.arg.arguments[0];
- if (this.arg.arguments[1].startsWith("/a/")) {
- var output = this.arg.arguments[1].substring(3);
- } else {
- var output = this.arg.arguments[1];
- }
- var request = new XMLHttpRequest();
- request.addEventListener("load", function () {
- if (request.status != 200) {
- $log.error("❌ wget93: " + request.statusText);
- } else {
- $log.succes("✔️ Downloaded!");
- $log.info("Saving...");
- $store.set(output, request.responseText);
- $log.succes("✔️ Saved!");
- $explorer.refresh();
- }
- });
- request.addEventListener("error", function () {
- $log.error("❌ wget93: couldn't download file");
- if (!!window.chrome) {
- $log.info("This may be caused by \"Allow-Control-Allow-Origin\" garbage. <a target=\"_blank\" href=\"https://chrome.google.com/webstore/detail/nlfbmbojpeacfghkpbjhddihlkkiljbi\">Click here to download an extension that fixes this.</a>");
- } else if (navigator.userAgent.indexOf("Firefox") > 0) {
- $log.info("This may be caused by \"Allow-Control-Allow-Origin\" garbage. <a target=\"_blank\" href=\"https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/\">Click here to download an addon that fixes this.</a>");
- } else {
- $log.info("This may be caused by \"Allow-Control-Allow-Origin\" garbage.");
- }
- });
- request.open("GET", url);
- request.send();
- }
- } catch(error) {
- $log.error("❌ wget93: " + error.message);
- }
- },
- hascli: true,
- terminal: true
-};
\ No newline at end of file |