this.me 2.2.7 → 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/atom.js +9 -30
  2. package/main.js +2 -11
  3. package/package.json +1 -5
  4. package/tab.js +29 -0
package/atom.js CHANGED
@@ -1,32 +1,11 @@
1
1
  //atom.js
2
- const { app, BrowserWindow, ipcMain } = require('electron');
3
-
4
- let win;
5
-
6
- app.on('ready', () => {
7
- win = new BrowserWindow({
8
- width: 377,
9
- height: 244,
10
- webPreferences: {
11
- nodeIntegration: true,
12
- contextIsolation: false, // Add this line
13
- },
14
- frame: false,
15
- transparent: true,
16
- //opacity: 0.5
17
- });
18
-
19
- win.on('closed', () => {
20
- win = null;
21
- });
22
-
23
- win.loadFile('./atom/view.html');
24
- });
25
-
26
- ipcMain.on('minimize-window', () => {
27
- win.minimize();
28
- });
29
-
30
- ipcMain.on('close-window', () => {
31
- win.close();
2
+ const { exec } = require("child_process");
3
+ const command = "electron tab.js";
4
+ exec(command, (error, stdout, stderr) => {
5
+ if (error) {
6
+ console.error(`Could not start Electron: ${error}`);
7
+ return;
8
+ }
9
+ console.log(`stdout: ${stdout}`);
10
+ console.error(`stderr: ${stderr}`);
32
11
  });
package/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const { exec } = require("child_process");
2
+ //main.js
3
3
  console.log(`
4
4
  ___________
5
5
  [------------]
@@ -15,15 +15,6 @@ console.log(`
15
15
  [---------------------------------.me-----------]
16
16
  -^^^^^^^^zzzz...
17
17
  Welcome to .me - Your AI Playground
18
+ give me one sec please...
18
19
  `);
19
20
 
20
- const command = "electron atom.js";
21
-
22
- exec(command, (error, stdout, stderr) => {
23
- if (error) {
24
- console.error(`Could not start Electron: ${error}`);
25
- return;
26
- }
27
- console.log(`stdout: ${stdout}`);
28
- console.error(`stderr: ${stderr}`);
29
- });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "this.me",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "description": "CLI for managing the .me suite.",
5
5
  "bin": {
6
6
  ".me": "./main.js"
@@ -20,12 +20,8 @@
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
22
  "cleaker": "^2.2.9",
23
- "electron": "^25.4.0",
24
- "monadlisa": "^2.1.1",
25
23
  "netget": "^2.1.6",
26
24
  "neurons.me": "^2.5.7",
27
- "this.haiku": "1.2.2",
28
- "this.mlearning": "2.1.6",
29
25
  "this.pixels": "3.2.6",
30
26
  "v.path": "^2.1.7"
31
27
  }
package/tab.js ADDED
@@ -0,0 +1,29 @@
1
+ const { app, BrowserWindow, ipcMain } = require('electron');
2
+ let win;
3
+ app.on('ready', () => {
4
+ win = new BrowserWindow({
5
+ width: 377,
6
+ height: 244,
7
+ webPreferences: {
8
+ nodeIntegration: true,
9
+ contextIsolation: false, // Add this line
10
+ },
11
+ frame: false,
12
+ transparent: true,
13
+ //opacity: 0.5
14
+ });
15
+
16
+ win.on('closed', () => {
17
+ win = null;
18
+ });
19
+
20
+ win.loadFile('./atom/view.html');
21
+ });
22
+
23
+ ipcMain.on('minimize-window', () => {
24
+ win.minimize();
25
+ });
26
+
27
+ ipcMain.on('close-window', () => {
28
+ win.close();
29
+ });