conzo 0.0.2

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 (94) hide show
  1. package/dist/AppLauncher.d.ts +2 -0
  2. package/dist/AppLauncher.js +5 -0
  3. package/dist/ApplicationsCacheContext.d.ts +8 -0
  4. package/dist/ApplicationsCacheContext.js +14 -0
  5. package/dist/Bookstack.d.ts +1 -0
  6. package/dist/Bookstack.js +4 -0
  7. package/dist/ChatGPT.d.ts +2 -0
  8. package/dist/ChatGPT.js +5 -0
  9. package/dist/ConfirmStatus.d.ts +4 -0
  10. package/dist/ConfirmStatus.js +19 -0
  11. package/dist/GoogleChrome.d.ts +11 -0
  12. package/dist/GoogleChrome.js +34 -0
  13. package/dist/ReloadInstalledApplications.d.ts +1 -0
  14. package/dist/ReloadInstalledApplications.js +12 -0
  15. package/dist/Script.d.ts +8 -0
  16. package/dist/Script.js +17 -0
  17. package/dist/Search.d.ts +8 -0
  18. package/dist/Search.js +109 -0
  19. package/dist/SelectBox.d.ts +7 -0
  20. package/dist/SelectBox.js +41 -0
  21. package/dist/UI.d.ts +8 -0
  22. package/dist/UI.js +17 -0
  23. package/dist/ViewContext.d.ts +13 -0
  24. package/dist/ViewContext.js +17 -0
  25. package/dist/WebinarGeek.d.ts +2 -0
  26. package/dist/WebinarGeek.js +14 -0
  27. package/dist/Webinars.d.ts +2 -0
  28. package/dist/Webinars.js +15 -0
  29. package/dist/Wizard.d.ts +7 -0
  30. package/dist/Wizard.js +18 -0
  31. package/dist/YouTube.d.ts +2 -0
  32. package/dist/YouTube.js +5 -0
  33. package/dist/app.d.ts +2 -0
  34. package/dist/app.js +40 -0
  35. package/dist/apps/ApplicationsCacheContext.d.ts +8 -0
  36. package/dist/apps/ApplicationsCacheContext.js +14 -0
  37. package/dist/apps/RefreshApps.d.ts +1 -0
  38. package/dist/apps/RefreshApps.js +13 -0
  39. package/dist/apps/ReloadInstalledApplications.d.ts +1 -0
  40. package/dist/apps/ReloadInstalledApplications.js +12 -0
  41. package/dist/backup.d.ts +2 -0
  42. package/dist/backup.js +5 -0
  43. package/dist/cli.d.ts +2 -0
  44. package/dist/cli.js +57 -0
  45. package/dist/config/ConfigContext.d.ts +11 -0
  46. package/dist/config/ConfigContext.js +12 -0
  47. package/dist/config/ConfigNotFound.d.ts +2 -0
  48. package/dist/config/ConfigNotFound.js +11 -0
  49. package/dist/config/parseAndValidate.d.ts +2 -0
  50. package/dist/config/parseAndValidate.js +18 -0
  51. package/dist/config/types.d.ts +14 -0
  52. package/dist/config/types.js +1 -0
  53. package/dist/config/validator.d.ts +1 -0
  54. package/dist/config/validator.js +3 -0
  55. package/dist/debugging/helpers.d.ts +1 -0
  56. package/dist/debugging/helpers.js +9 -0
  57. package/dist/debugging/useDebugger.d.ts +5 -0
  58. package/dist/debugging/useDebugger.js +11 -0
  59. package/dist/debugging/useExitAppRightAway.d.ts +1 -0
  60. package/dist/debugging/useExitAppRightAway.js +9 -0
  61. package/dist/helpers/tryCatch.d.ts +9 -0
  62. package/dist/helpers/tryCatch.js +11 -0
  63. package/dist/helpers.d.ts +1 -0
  64. package/dist/helpers.js +9 -0
  65. package/dist/items/items.d.ts +2 -0
  66. package/dist/items/items.js +42 -0
  67. package/dist/items/my-items.EXAMPLE.d.ts +1 -0
  68. package/dist/items/my-items.EXAMPLE.js +1 -0
  69. package/dist/items/my-items.d.ts +6 -0
  70. package/dist/items/my-items.js +62 -0
  71. package/dist/items/types.d.ts +14 -0
  72. package/dist/items/types.js +1 -0
  73. package/dist/items.d.ts +15 -0
  74. package/dist/items.js +94 -0
  75. package/dist/nmbrs.d.ts +1 -0
  76. package/dist/nmbrs.js +4 -0
  77. package/dist/passbolt.d.ts +1 -0
  78. package/dist/passbolt.js +4 -0
  79. package/dist/private/my-apps.d.ts +1 -0
  80. package/dist/private/my-apps.js +35 -0
  81. package/dist/private/my-chrome-profiles.EXAMPLE.d.ts +4 -0
  82. package/dist/private/my-chrome-profiles.EXAMPLE.js +12 -0
  83. package/dist/private/my-chrome-profiles.d.ts +4 -0
  84. package/dist/private/my-chrome-profiles.js +5 -0
  85. package/dist/private/my-items.EXAMPLE.d.ts +6 -0
  86. package/dist/private/my-items.EXAMPLE.js +47 -0
  87. package/dist/private/my-items.d.ts +5 -0
  88. package/dist/private/my-items.js +68 -0
  89. package/dist/private/my-secrets.d.ts +5 -0
  90. package/dist/private/my-secrets.js +6 -0
  91. package/dist/wireguard-vpn.d.ts +1 -0
  92. package/dist/wireguard-vpn.js +10 -0
  93. package/package.json +34 -0
  94. package/readme.md +18 -0
@@ -0,0 +1,68 @@
1
+ import { ChatGPT } from '../ChatGPT.js';
2
+ import { GoogleChrome, openChrome } from '../GoogleChrome.js';
3
+ import { RefreshApps } from '../apps/RefreshApps.js';
4
+ import { YouTube } from '../YouTube.js';
5
+ import { apps } from './my-apps.js';
6
+ export const excludeApps = [
7
+ 'Alfred 5',
8
+ 'Google Chrome',
9
+ 'Google Docs',
10
+ 'Google Drive',
11
+ 'Google Sheets',
12
+ 'Google Slides',
13
+ 'Kit',
14
+ 'WireGuard',
15
+ 'Loopback',
16
+ 'Utilities',
17
+ ];
18
+ const favoriteApps = ['GitHub Desktop', 'Visual Studio Code'];
19
+ export const appItems = apps
20
+ .filter((app) => !excludeApps.includes(app))
21
+ .map((app) => ({
22
+ name: app,
23
+ key: app,
24
+ type: 'app',
25
+ isFavorite: favoriteApps.includes(app),
26
+ }));
27
+ export const wizardItems = [
28
+ {
29
+ name: 'Google Chrome',
30
+ type: 'wizard',
31
+ isFavorite: true,
32
+ component: GoogleChrome,
33
+ },
34
+ {
35
+ name: 'YouTube',
36
+ type: 'wizard',
37
+ isFavorite: true,
38
+ component: YouTube,
39
+ },
40
+ {
41
+ name: 'ChatGPT',
42
+ type: 'wizard',
43
+ isFavorite: true,
44
+ component: ChatGPT,
45
+ },
46
+ {
47
+ name: 'Reload installed applications',
48
+ type: 'wizard',
49
+ component: RefreshApps,
50
+ },
51
+ ];
52
+ export const commandItems = [
53
+ {
54
+ name: 'BookStack',
55
+ type: 'command',
56
+ command: () => openChrome('WebinarGeek', 'https://bookstack.webinargeek.com'),
57
+ },
58
+ {
59
+ name: 'Nmbrs',
60
+ type: 'command',
61
+ command: () => openChrome('WebinarGeek', 'https://syfers.nmbrs.nl'),
62
+ },
63
+ {
64
+ name: 'Passbolt',
65
+ type: 'command',
66
+ command: () => openChrome('WebinarGeek', 'https://passbolt.webinargeek.com'),
67
+ },
68
+ ];
@@ -0,0 +1,5 @@
1
+ export declare const googleChromeProfiles: {
2
+ readonly WebinarGeek: "Default";
3
+ readonly bouwepuntnl: "Profile 1";
4
+ readonly 'intercom-development': "Profile 2";
5
+ };
@@ -0,0 +1,6 @@
1
+ // My Google Chrome profiles so that I can open Chrome with the desired profile.
2
+ export const googleChromeProfiles = {
3
+ WebinarGeek: 'Default',
4
+ bouwepuntnl: 'Profile 1',
5
+ 'intercom-development': 'Profile 2',
6
+ };
@@ -0,0 +1 @@
1
+ export declare const toggleWireGuardVPN: () => void;
@@ -0,0 +1,10 @@
1
+ // sudo wg-quick up /Users/bouwe/WireGuard/wg0.conf
2
+ // sudo wg-quick down /Users/bouwe/WireGuard/wg0.conf
3
+ import childProcess from 'node:child_process';
4
+ export const toggleWireGuardVPN = () => {
5
+ childProcess.spawn('sudo', [
6
+ 'wg-quick',
7
+ 'down',
8
+ '/Users/bouwe/WireGuard/wg0.conf',
9
+ ]);
10
+ };
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "conzo",
3
+ "version": "0.0.2",
4
+ "license": "MIT",
5
+ "bin": "dist/cli.js",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": ">=16"
9
+ },
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "dev": "tsc --watch"
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "dependencies": {
18
+ "ink": "^5.0.1",
19
+ "ink-text-input": "^6.0.0",
20
+ "meow": "^13.2.0",
21
+ "react": "^18.3.1"
22
+ },
23
+ "devDependencies": {
24
+ "@sindresorhus/tsconfig": "^6.0.0",
25
+ "@types/react": "^18.3.12",
26
+ "chalk": "^5.3.0",
27
+ "eslint-plugin-react": "^7.37.2",
28
+ "eslint-plugin-react-hooks": "^5.0.0",
29
+ "prettier": "^3.3.3",
30
+ "react-devtools-core": "^4.28.5",
31
+ "ts-node": "^10.9.2",
32
+ "typescript": "^5.6.3"
33
+ }
34
+ }
package/readme.md ADDED
@@ -0,0 +1,18 @@
1
+ # Conzo
2
+
3
+ An alternative to MacOS Spotlight, with added support for scripting and automation.
4
+
5
+ ## Development
6
+
7
+ Open a Terminal tab and run:
8
+
9
+ ```
10
+ npm run dev
11
+ ```
12
+
13
+ Open another Terminal, where after each code change, you run:
14
+
15
+ ```
16
+ node dist/cli.js
17
+ ```
18
+