2.2.1 • Published 8 months ago

@codeblitzjs/ide-code-api v2.2.1

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

code-api

English | 简体中文

Code Service Integration API

How to Develop

Github

GitLab

  • Provide basic code service API for self-integration. Modify the default configuration in packages/code-api/src/common/config.ts
  • GitLab API
  • Local Development

    # 1. start server
    npm run start
    
    # 2. open url
    http://localhost:9009/gitlab/${group}/${name}

AtomGit

  • Configure Private Token by yourself
  • API Reference: AtomGit API
  • Local Development

    # 1. start server
    npm run start
    # 2. set  AtomGit Token in packages/startup/src/startup/index.tsx 
    
      CodeServiceModule.Config({
        ...
        atomgit: {
          // atomgit token https://atomgit.com/-/profile/tokens
          token: 'your token'
        }
        ...
      })
    
    # 3. open url
    http://localhost:9009/atomgit/opensumi/codeblitz

GitLink

  • APIReference: GitLink API
  • Introduction: GitLink WebIDE
  • Local Development
    # 1. set .env file
    CODE_SERVICE_HOST=https://www.gitlink.org.cn
    # 2. set gitlnk cookie  
    set Cookie in packages/toolkit/webpack/config.dev.js from https://www.gitlink.org.cn response header
    # 3. start server
    npm run start
    # 3. open url
    http://localhost:9009/gitlink/opensumi/core

Gitee

  • APIReference: Gitee API
  • Example: WebIDE for Gitee
  • Local Development
    # 1. set Gitee Token in packages/startup/src/startup/index.tsx
        CodeServiceModule.Config({
          ...
          gitee: {
            ## set gitee file request  recursive: true
            recursive: true,
            ## gitee token https://gitee.com/profile/personal_access_tokens
            token: 'your token'
          },
          ...
      })
    # 3. start server
    npm run start
    # 3. open url
    http://localhost:9009/gitee/opensumi/codeblitz

Codeup

  • APIReference: Codeup API
  • Introduction: Codeup WebIDE
  • Local Development

    # 1. set .env file
    CODE_SERVICE_HOST=https://codeup.aliyun.com
    # 2. set codeup cookie   
    
    set Cookie in packages/toolkit/webpack/config.dev.js from https://codeup.aliyun.com response header
    
    # 3. set codeup projectId
      codeup: {
        owner: 'your owner',
        name: 'your name',
        projectId: 'your projectId', # require
      }
    
    # 3. start server
    npm run start
    # 3. open url
    http://localhost:9009/codeup/${owner}/${name}
2.2.1

8 months ago

2.2.0

8 months ago

2.1.1

8 months ago

2.0.3

10 months ago

2.0.2

10 months ago

2.0.4

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

2.1.0

10 months ago

1.2.0

11 months ago

1.3.0

11 months ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.3-next.5

2 years ago

1.0.3-next.4

2 years ago

1.0.3-next.3

2 years ago

1.0.3-next.2

2 years ago

1.0.3-next.1

2 years ago

1.0.3-next.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.1-next.0

2 years ago