Skip to content

Commit

Permalink
release of 1.2.25 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlapao authored Sep 10, 2024
1 parent e4e47ae commit 29ca536
Show file tree
Hide file tree
Showing 20 changed files with 1,574 additions and 47 deletions.
13 changes: 13 additions & 0 deletions img/dark/remote_hosts_provider_orchestrator_resources_disk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions img/light/remote_hosts_provider_orchestrator_resources_disk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 29 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "/~https://github.com/Parallels/parallels-vscode-extension"
},
"icon": "img/logo/parallels_logo.png",
"version": "1.2.21",
"version": "1.2.25",
"engines": {
"vscode": "^1.90.0"
},
Expand All @@ -35,7 +35,10 @@
],
"homepage": "https://parallels.com",
"main": "./dist/extension.js",
"activationEvents": [],
"activationEvents": [
"onViewContainer:parallels-desktop",
"onCommand:parallels-desktop.openView"
],
"contributes": {
"chatParticipants": [
{
Expand Down Expand Up @@ -146,6 +149,10 @@
}
},
"commands": [
{
"command": "parallels-desktop.openView",
"title": "Activate Parallels Desktop"
},
{
"command": "parallels-desktop.tree-view.add-vm",
"title": "Parallels Desktop: Add VM",
Expand Down Expand Up @@ -960,7 +967,8 @@
{
"id": "parallels-desktop",
"title": "Parallels Desktop",
"icon": "img/logo/parallels_logo.svg"
"icon": "img/logo/parallels_logo.svg",
"command": "parallels-desktop.openView"
}
]
},
Expand Down Expand Up @@ -1352,7 +1360,7 @@
},
{
"command": "parallels-desktop.parallels-catalog.force-refresh",
"when": "view == parallels-desktop-catalog && parallels-desktop:parallels-catalog-has-tree-items == true",
"when": "view == parallels-desktop-catalog && parallels-desktop:show-catalog === true && parallels-desktop:is-licensed-show-catalog === true",
"group": "navigation@0"
}
],
Expand Down Expand Up @@ -1907,8 +1915,9 @@
"axios": "^1.4.0",
"clipboardy": "^4.0.0",
"clipboardy-ts": "^1.0.0",
"fast-xml-parser": "^4.5.0",
"jwt-decode": "^4.0.0",
"tailwindcss": "^3.3.2",
"uuid": "^9.0.0"
}
}
}
8 changes: 8 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ let autoRefreshInterval: NodeJS.Timeout | undefined;

export async function activate(context: vscode.ExtensionContext) {
console.log("Activating Parallels Desktop Extension");

// Register the command that activates the extension
const disposable = vscode.commands.registerCommand("parallels-desktop.openView", () => {
// This will trigger when the icon is clicked
vscode.window.showInformationMessage("Parallels Desktop init!");
});
context.subscriptions.push(disposable);

const provider = new Provider(context);
const os = Provider.getOs();
vscode.commands.executeCommand("setContext", FLAG_OS, os);
Expand Down
7 changes: 7 additions & 0 deletions src/models/devops/catalogManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface CatalogManifest {
last_downloaded_at?: string;
last_downloaded_user?: string;
download_count?: number;
minimum_requirements?: MinimumSpecsRequirements;
}

export interface PackContent {
Expand All @@ -53,3 +54,9 @@ export interface Meta {
region: string;
secret_key: string;
}

export interface MinimumSpecsRequirements {
cpu: number;
memory: number;
disk: number;
}
6 changes: 6 additions & 0 deletions src/models/devops/catalogPushRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {cp} from "fs";
export interface CatalogPushRequest {
catalog_id: string;
version: string;
Expand All @@ -7,5 +8,10 @@ export interface CatalogPushRequest {
local_path: string;
required_roles: string[];
required_claims: string[];
specs: {
cpu: number;
memory: number;
disk: number;
};
tags: string[];
}
8 changes: 8 additions & 0 deletions src/models/parallels/VirtuaMachineMetadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export interface VirtualMachineMetadata {
Data: VirtualMachineMetadataItem[];
}

export interface VirtualMachineMetadataItem {
Key: string;
Value: string;
}
Loading

0 comments on commit 29ca536

Please sign in to comment.