refactor: rename the project as devstar
This commit is contained in:
		
							
								
								
									
										28
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								package.json
									
									
									
									
									
								
							@@ -1,12 +1,12 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "superide",
 | 
					  "name": "devstar",
 | 
				
			||||||
  "version": "0.1.0",
 | 
					  "version": "0.2.0",
 | 
				
			||||||
  "publisher": "mengning",
 | 
					  "publisher": "mengning",
 | 
				
			||||||
  "engines": {
 | 
					  "engines": {
 | 
				
			||||||
    "vscode": "^1.65.0"
 | 
					    "vscode": "^1.65.0"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "license": "Apache-2.0",
 | 
					  "license": "Apache-2.0",
 | 
				
			||||||
  "displayName": "SuperIDE",
 | 
					  "displayName": "DevStar",
 | 
				
			||||||
  "description": "",
 | 
					  "description": "",
 | 
				
			||||||
  "categories": [],
 | 
					  "categories": [],
 | 
				
			||||||
  "keywords": [],
 | 
					  "keywords": [],
 | 
				
			||||||
@@ -20,18 +20,18 @@
 | 
				
			|||||||
    "url": "https://gitee.com/SuperIDE/superide.git"
 | 
					    "url": "https://gitee.com/SuperIDE/superide.git"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "activationEvents": [
 | 
					  "activationEvents": [
 | 
				
			||||||
    "onView:superide.quickAccess",
 | 
					    "onView:devstar.quickAccess",
 | 
				
			||||||
    "onCommand:superide.showHome"
 | 
					    "onCommand:devstar.showHome"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "contributes": {
 | 
					  "contributes": {
 | 
				
			||||||
    "commands": [
 | 
					    "commands": [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "superide.showHome",
 | 
					        "command": "devstar.showHome",
 | 
				
			||||||
        "title": "SuperIDE Home",
 | 
					        "title": "SuperIDE Home",
 | 
				
			||||||
        "category": "Super IDE"
 | 
					        "category": "Super IDE"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "superide.connectRemoteContainer",
 | 
					        "command": "devstar.connectRemoteContainer",
 | 
				
			||||||
        "title": "Connect to a Remote Container",
 | 
					        "title": "Connect to a Remote Container",
 | 
				
			||||||
        "category": "Super IDE"
 | 
					        "category": "Super IDE"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@@ -39,7 +39,7 @@
 | 
				
			|||||||
    "menus": {
 | 
					    "menus": {
 | 
				
			||||||
      "file/newFile": [
 | 
					      "file/newFile": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "command": "superide.showHome",
 | 
					          "command": "devstar.showHome",
 | 
				
			||||||
          "group": "navigation"
 | 
					          "group": "navigation"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
@@ -48,16 +48,16 @@
 | 
				
			|||||||
    "viewsContainers": {
 | 
					    "viewsContainers": {
 | 
				
			||||||
      "activitybar": [
 | 
					      "activitybar": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "id": "superide",
 | 
					          "id": "devstar",
 | 
				
			||||||
          "title": "SuperIDE",
 | 
					          "title": "SuperIDE",
 | 
				
			||||||
          "icon": "assets/icons/si-activity-icon.svg"
 | 
					          "icon": "assets/icons/si-activity-icon.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "views": {
 | 
					    "views": {
 | 
				
			||||||
      "superide": [
 | 
					      "devstar": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "id": "superide.quickAccess",
 | 
					          "id": "devstar.quickAccess",
 | 
				
			||||||
          "name": "Quick Access",
 | 
					          "name": "Quick Access",
 | 
				
			||||||
          "type": "tree"
 | 
					          "type": "tree"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -65,13 +65,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "viewsWelcome": [
 | 
					    "viewsWelcome": [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "view": "superide.quickAccess",
 | 
					        "view": "devstar.quickAccess",
 | 
				
			||||||
        "contents": "welcome SuperIDE..."
 | 
					        "contents": "welcome SuperIDE..."
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "walkthroughs": [
 | 
					    "walkthroughs": [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "id": "superide.welcome",
 | 
					        "id": "devstar.welcome",
 | 
				
			||||||
        "title": "Get started with Super IDE",
 | 
					        "title": "Get started with Super IDE",
 | 
				
			||||||
        "description": "",
 | 
					        "description": "",
 | 
				
			||||||
        "steps": []
 | 
					        "steps": []
 | 
				
			||||||
@@ -81,7 +81,7 @@
 | 
				
			|||||||
      "type": "object",
 | 
					      "type": "object",
 | 
				
			||||||
      "title": "SuperIDE",
 | 
					      "title": "SuperIDE",
 | 
				
			||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "superide.disableSuperIDEHomeStartup": {
 | 
					        "devstar.disableSuperIDEHomeStartup": {
 | 
				
			||||||
          "type": "boolean",
 | 
					          "type": "boolean",
 | 
				
			||||||
          "default": false,
 | 
					          "default": false,
 | 
				
			||||||
          "description": "Disable showing SuperIDE Home at startup"
 | 
					          "description": "Disable showing SuperIDE Home at startup"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import * as vscode from 'vscode';
 | 
				
			|||||||
import RemoteContainer from './remote-container';
 | 
					import RemoteContainer from './remote-container';
 | 
				
			||||||
import fetch from './fetch'
 | 
					import fetch from './fetch'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class SIHome {
 | 
					export default class DSHome {
 | 
				
			||||||
  private context: vscode.ExtensionContext;
 | 
					  private context: vscode.ExtensionContext;
 | 
				
			||||||
  private remoteContainer: RemoteContainer;
 | 
					  private remoteContainer: RemoteContainer;
 | 
				
			||||||
  static defaultUrl = 'http://localhost:8080/tmp/index.html';
 | 
					  static defaultUrl = 'http://localhost:8080/tmp/index.html';
 | 
				
			||||||
@@ -12,7 +12,7 @@ export default class SIHome {
 | 
				
			|||||||
    this.remoteContainer = new RemoteContainer()
 | 
					    this.remoteContainer = new RemoteContainer()
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async toggle(url: string = SIHome.defaultUrl) {
 | 
					  async toggle(url: string = DSHome.defaultUrl) {
 | 
				
			||||||
    console.log(url);
 | 
					    console.log(url);
 | 
				
			||||||
    const panel = vscode.window.createWebviewPanel(
 | 
					    const panel = vscode.window.createWebviewPanel(
 | 
				
			||||||
      'myWebview',
 | 
					      'myWebview',
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/main.ts
									
									
									
									
									
								
							@@ -1,16 +1,16 @@
 | 
				
			|||||||
import * as vscode from 'vscode';
 | 
					import * as vscode from 'vscode';
 | 
				
			||||||
import QuickAccessTreeProvider from './views/quick-access-tree';
 | 
					import QuickAccessTreeProvider from './views/quick-access-tree';
 | 
				
			||||||
import SIHome from './home';
 | 
					import DSHome from './home';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class SuperIDEExtension {
 | 
					export class SuperIDEExtension {
 | 
				
			||||||
  siHome: SIHome;
 | 
					  dsHome: DSHome;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(private context: vscode.ExtensionContext) {
 | 
					  constructor(private context: vscode.ExtensionContext) {
 | 
				
			||||||
    this.siHome = new SIHome(context);
 | 
					    this.dsHome = new DSHome(context);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    context.subscriptions.push(
 | 
					    context.subscriptions.push(
 | 
				
			||||||
      vscode.window.registerTreeDataProvider(
 | 
					      vscode.window.registerTreeDataProvider(
 | 
				
			||||||
        'superide.quickAccess',
 | 
					        'devstar.quickAccess',
 | 
				
			||||||
        new QuickAccessTreeProvider()
 | 
					        new QuickAccessTreeProvider()
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
@@ -21,14 +21,14 @@ export class SuperIDEExtension {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async startSuperIDEHome() {
 | 
					  async startSuperIDEHome() {
 | 
				
			||||||
    vscode.commands.executeCommand('superide.showHome');
 | 
					    vscode.commands.executeCommand('devstar.showHome');
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  registerGlobalCommands(context: vscode.ExtensionContext) {
 | 
					  registerGlobalCommands(context: vscode.ExtensionContext) {
 | 
				
			||||||
    context.subscriptions.push(
 | 
					    context.subscriptions.push(
 | 
				
			||||||
      vscode.commands.registerCommand('superide.showHome', (url: string) =>
 | 
					      vscode.commands.registerCommand('devstar.showHome', (url: string) =>
 | 
				
			||||||
        this.siHome.toggle(url)
 | 
					        this.dsHome.toggle(url)
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,14 +28,14 @@ export default class QuickAccessTreeProvider {
 | 
				
			|||||||
        undefined,
 | 
					        undefined,
 | 
				
			||||||
        undefined,
 | 
					        undefined,
 | 
				
			||||||
        vscode.TreeItemCollapsibleState.Expanded,
 | 
					        vscode.TreeItemCollapsibleState.Expanded,
 | 
				
			||||||
        [new QuickItem('Open', 'superide.showHome')]
 | 
					        [new QuickItem('Open', 'devstar.showHome')]
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
      // new QuickItem(
 | 
					      // new QuickItem(
 | 
				
			||||||
      //   'Miscellaneous',
 | 
					      //   'Miscellaneous',
 | 
				
			||||||
      //   undefined,
 | 
					      //   undefined,
 | 
				
			||||||
      //   undefined,
 | 
					      //   undefined,
 | 
				
			||||||
      //   vscode.TreeItemCollapsibleState.Expanded,
 | 
					      //   vscode.TreeItemCollapsibleState.Expanded,
 | 
				
			||||||
      //   [new QuickItem('Connect Remote Container', 'superide.connectRemoteContainer')]
 | 
					      //   [new QuickItem('Connect Remote Container', 'devstar.connectRemoteContainer')]
 | 
				
			||||||
      // ),
 | 
					      // ),
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user