Skip to content

Commit 6514a59

Browse files
committed
init
0 parents  commit 6514a59

File tree

156 files changed

+67763
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+67763
-0
lines changed

.gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
**/*.bk
3+
**/*.ts.bk
4+
node_modules
5+
lerna-debug.log
6+
/coverage
7+
/built
8+
/tmp
9+
.awcache
10+
.DS_Store
11+
.env
12+
tests/apis
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
lena-debug.log*
17+
services/
18+
lib/services/
19+
.mocks/
20+
.idea/
21+
test/services/
22+
lib/
23+
scripts/dev/
24+
yarn-error.log
25+
out/
26+
.vscode-test/
27+
tsconfig.tsbuildinfo
28+
*.tsbuildinfo
29+
package-lock.json
30+
dist
31+
media/dist/
32+
media/node_modules
33+
media/assets/
34+
media/out
35+
36+
# next.js
37+
media/.next/
38+
media/out/
39+
media/dist/assets
40+
41+
*.local.js

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"printWidth": 120,
5+
"singleQuote": false
6+
}

.vscode/lauch.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.0.1",
3+
"configurations": [
4+
{
5+
"name": "Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
10+
"stopOnEntry": false,
11+
"sourceMaps": true,
12+
"outFiles": ["${workspaceRoot}/out/**/*.js"]
13+
},
14+
{
15+
"name": "Extension Tests",
16+
"type": "extensionHost",
17+
"request": "launch",
18+
"runtimeExecutable": "${execPath}",
19+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test"],
20+
"stopOnEntry": false,
21+
"sourceMaps": true
22+
}
23+
]
24+
}

.vscode/launch.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.0.1",
3+
"configurations": [
4+
{
5+
"name": "Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
10+
"stopOnEntry": false,
11+
"sourceMaps": true,
12+
"outFiles": ["${workspaceRoot}/dist/**/*.js"]
13+
},
14+
{
15+
"name": "Extension Tests",
16+
"type": "extensionHost",
17+
"request": "launch",
18+
"runtimeExecutable": "${execPath}",
19+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test"],
20+
"stopOnEntry": false,
21+
"sourceMaps": true
22+
}
23+
]
24+
}

.vscodeignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.vscode/
2+
.vscode-test/
3+
out/
4+
src/
5+
.gitignore
6+
media
7+
!media/lib
8+
!media/dist
9+
node_modules
10+
!node_modules/@vscode/codicons/dist/
11+
**/*.map
12+
tsconfig.json
13+
*.d.ts
14+
*.md
15+
!README.md

README.en-US.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Alibaba Cloud API Toolkit
2+
3+
The Alibaba Cloud API Toolkit for VSCode makes it easier to access Alibaba Cloud services.
4+
5+
## Features
6+
7+
* **Alicloud Product subscription:** You can search for Alicloud products and subscribe to its APIs you want to use.
8+
9+
* **API Searching:** You can search the Open API of Alibaba Cloud products to which you are subscribed.
10+
11+
* **API Document View:** Clicking on an API can navigate you to a new tab which displays the corresponding API document,
12+
including descriptions, request parameters, response parameters and error codes.
13+
Click to debug, you can link to Aliyun OpenAPI portal for online API trial.
14+
15+
* More features are under development, please stay tuned.
16+
17+
## Extension UI Guide
18+
19+
![VSCode Extension Guide](https://img.alicdn.com/imgextra/i2/O1CN01VJNeqk1NKrbDtTotP_!!6000000001552-0-tps-2310-1524.jpg)
20+
21+
* Product Searching `ctrl+cmd+k`
22+
23+
![Product Searching](https://img.alicdn.com/imgextra/i1/O1CN01bcJ5DM1RpmnlOjDHK_!!6000000002161-0-tps-1202-798.jpg)
24+
25+
* API Searching `ctrl+cmd+l`
26+
27+
![API Serching](https://img.alicdn.com/imgextra/i1/O1CN01KaWkBF1UfCUkY0N3v_!!6000000002544-0-tps-1286-518.jpg)
28+

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Alibaba Cloud API Toolkit
2+
3+
The Alibaba Cloud API Toolkit for VSCode makes it easier to access Alibaba Cloud services.
4+
5+
简体中文 | [English]()
6+
7+
## Features
8+
9+
* **阿里云产品订阅:** 插件提供了一键订阅阿里云产品的功能,你可以通过 `ctrl+cmd+o` 搜索和订阅阿里云产品。
10+
11+
* **API 搜索:** 你可以通过 `ctrl+cmd+p` 搜索并查看已订阅的 API 文档。
12+
13+
* **API 文档预览:** 点击 API 可以打开一个新的标签页,并显示对应的 API 文档,包括描述、请求参数、响应参数和错误码。在文档中点击调试按钮,可以链接到阿里云 OpenAPI 门户进行在线 API 试用。
14+
15+
* 更多功能正在开发中,敬请期待...
16+
17+
## 插件 UI 导览
18+
19+
![VSCode Extension Guide](https://img.alicdn.com/imgextra/i2/O1CN01VJNeqk1NKrbDtTotP_!!6000000001552-0-tps-2310-1524.jpg)
20+
21+
* 产品搜索 `ctrl+cmd+k`
22+
23+
![Product Searching](https://img.alicdn.com/imgextra/i1/O1CN01bcJ5DM1RpmnlOjDHK_!!6000000002161-0-tps-1202-798.jpg)
24+
25+
* API 搜索 `ctrl+cmd+l`
26+
27+
![API Serching](https://img.alicdn.com/imgextra/i1/O1CN01KaWkBF1UfCUkY0N3v_!!6000000002544-0-tps-1286-518.jpg)
28+

asset_source_loader.d.ts

Whitespace-only changes.

media/config/webpack.config.js

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
const nodeExternals = require("webpack-node-externals");
2+
const path = require("path");
3+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4+
5+
module.exports = {
6+
// target: "node",
7+
// externals: [nodeExternals()],
8+
// mode: "production",
9+
entry: path.resolve(__dirname, "..", "src/server.ts"),
10+
output: {
11+
path: path.resolve(__dirname, "..", "lib"),
12+
publicPath: "/lib/",
13+
library: "app",
14+
libraryTarget: "commonjs",
15+
},
16+
resolve: {
17+
extensions: [".ts", ".tsx", ".js"],
18+
alias: {},
19+
},
20+
module: {
21+
rules: [
22+
{
23+
test: /\.tsx?$/,
24+
use: [
25+
{
26+
loader: "ts-loader",
27+
options: {
28+
happyPackMode: true,
29+
reportFiles: ["!src/scripts/**", "./src/**/*.{ts,tsx}"],
30+
configFile: path.resolve(__dirname, "../tsconfig.json"),
31+
},
32+
},
33+
],
34+
},
35+
{
36+
test: /\.less$/,
37+
include: [
38+
// path.resolve(__dirname, "../node_modules/pontx-ui/lib"),
39+
path.resolve(__dirname, "../src"),
40+
],
41+
use: [
42+
{ loader: MiniCssExtractPlugin.loader },
43+
"css-loader",
44+
{
45+
loader: "less-loader",
46+
options: {
47+
lessOptions: {
48+
sourceMap: true,
49+
javascriptEnabled: true,
50+
},
51+
},
52+
},
53+
],
54+
},
55+
{
56+
test: /\.css$/,
57+
include: [
58+
// path.resolve(__dirname, "../node_modules/pontx-ui/lib"),
59+
path.resolve(__dirname, "../src"),
60+
],
61+
use: [{ loader: MiniCssExtractPlugin.loader }, "css-loader"],
62+
},
63+
{
64+
test: /\.(ttf|eot|otf|svg|png)$/,
65+
use: "file-loader",
66+
},
67+
{
68+
test: /\.(woff|woff2)$/,
69+
use: "url-loader",
70+
},
71+
],
72+
},
73+
plugins: [
74+
new MiniCssExtractPlugin({
75+
filename: "[name].css",
76+
}),
77+
],
78+
};

media/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Pont UI</title>
7+
</head>
8+
<body>
9+
<!-- <input type="hidden" value="%7B%22modName%22:%22main%22,%22name%22:%22AbolishResourceDeployment%22,%22pageType%22:%22document%22,%22schemaType%22:%22api%22%7D" id="router-meta-data" /> -->
10+
<div id="root"></div>
11+
<script>let acquireVsCodeApi = () => {}</script>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

media/next-env.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

media/next.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('next').NextConfig} */
2+
3+
const path = require("node:path");
4+
5+
module.exports = {
6+
transpilePackages: ["semix-table"],
7+
sassOptions: {
8+
includePaths: [path.join(__dirname, "src")],
9+
},
10+
experimental: { esmExternals: "loose" },
11+
};

media/package.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"private": "true",
3+
"name": "vscode-pontx-media",
4+
"module": "esnext",
5+
"main": "lib/server.js",
6+
"scripts": {
7+
"start": "vite --mode browser",
8+
"build:client": "NODE_ENV=production vite build",
9+
"build:server": "ncc build src/server.ts -o lib -m -e *.css",
10+
"build": "npm run build:client && npm run build:server",
11+
"preview": "vite preview",
12+
"dev": "next dev"
13+
},
14+
"dependencies": {
15+
"@alicloud/console-components": "^1.6.2",
16+
"@monaco-editor/react": "^4.6.0",
17+
"@vercel/ncc": "^0.38.1",
18+
"antd": "^5.12.3",
19+
"intl-format": "^1.2.0",
20+
"load-script": "^2.0.0",
21+
"next": "^14.0.4",
22+
"pontx-ui": "latest",
23+
"react": "^18.2.0",
24+
"react-copy-to-clipboard": "^5.1.0",
25+
"react-dom": "^18.2.0",
26+
"sass": "^1.69.5",
27+
"semix-schema-table": "^0.1.3",
28+
"styled-components": "^6.1.1",
29+
"xml2js": "^0.6.2",
30+
"lodash": "^4.17.20"
31+
},
32+
"resolutions": {
33+
"semix-schema-table": "^0.1.3"
34+
},
35+
"version": "0.3.70",
36+
"repository": "[email protected]:aliyun/alibabacloud-api-vscode-toolkit.git",
37+
"devDependencies": {
38+
"less": "^4.2.0",
39+
"@vitejs/plugin-react": "^1.3.2",
40+
"vite": "^2.9.7",
41+
"@types/fs-extra": "^5.1.0",
42+
"@types/lodash": "^4.14.182",
43+
"@types/react": "^18.0.8",
44+
"@types/react-dom": "^18.0.3",
45+
"@types/vscode": "^1.47.0",
46+
"@types/vscode-webview": "^1.57.0",
47+
"@types/blueimp-md5":"^2.7.0"
48+
}
49+
}

media/public/favicon.ico

25.3 KB
Binary file not shown.

media/public/next.svg

+1
Loading

media/public/vercel.svg

+1
Loading

media/src/Icon/Icon.scss

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.oa-iconfont.svg-icon {
2+
width: 1em;
3+
height: 1em;
4+
vertical-align: -0.15em;
5+
fill: currentColor;
6+
overflow: hidden;
7+
}

media/src/Icon/Icon.tsx

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/**
2+
* @author 奇阳
3+
* @description Icon
4+
*/
5+
import classNames from 'classnames';
6+
import * as React from 'react';
7+
// import './Icon.scss';
8+
9+
export class WorkbenchIconProps {
10+
type = '';
11+
12+
style? = {} as React.CSSProperties;
13+
14+
color? = undefined;
15+
16+
className? = '';
17+
18+
useSVG? = false;
19+
}
20+
21+
export const WorkbenchIcon: React.FC<WorkbenchIconProps> = props => {
22+
let { style } = props;
23+
const { className } = props;
24+
25+
if (props.color) {
26+
style = {
27+
...style,
28+
color: props.color,
29+
};
30+
}
31+
32+
const classes = classNames('oa-iconfont', `icon-${props.type}`, className, { 'svg-icon': props.useSVG });
33+
34+
if (props.useSVG) {
35+
return (
36+
<svg className={classes} aria-hidden="true" style={style}>
37+
<use xlinkHref={`#icon-${props.type}`} />
38+
</svg>
39+
);
40+
}
41+
42+
return <i className={classes} style={style}></i>;
43+
};
44+
45+
WorkbenchIcon.defaultProps = new WorkbenchIconProps();

0 commit comments

Comments
 (0)