Skip to content

Commit c955db5

Browse files
committed
init
0 parents  commit c955db5

File tree

151 files changed

+4485866
-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.

151 files changed

+4485866
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
node_modules
3+
.DS_Store

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "odc-parser",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"keywords": [
7+
"sql",
8+
"parser"
9+
],
10+
"author": "xiaokang",
11+
"license": "ISC",
12+
"scripts": {
13+
"preinstall": "npx only-allow pnpm",
14+
"build": "pnpm --filter './packages/**' build"
15+
}
16+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
.DS_Store
4+
.vscode
5+
worker-dist

packages/monaco-plugin-ob/.npmignore

Whitespace-only changes.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
##########################################################
2+
# OBFlow Secret Scan Ignore List #
3+
##########################################################
4+
# Above the segmentation lines there are suspected privacy information #
5+
# Please use the file name as the first line and the igored information #
6+
# should be started with tab. #
7+
# Under the segmentation lines there are the folders which you need to ignore #
8+
##########################################################
9+
**
10+
odcsupport@service.alipay.com
11+
https://www.oceanbase.com*
12+
https://github.com/*
13+
https://lodash.com*
14+
https://help.aliyun.com/*
15+
https://mozilla.github.io*
16+
https://stackoverflow.com*
17+
http://www.w3.org*
18+
https://ant.design*
19+
https://859452cf23044aeda8677a8bdcc53081@obc-sentry.oceanbase.com/3
20+
https://electronjs.org*
21+
https://www.aliyun.com*
22+
https://datatracker.ietf.org/*
23+
https://momentjs.com/*
24+
https://developer.apple.com*
25+
https://www.google.com/*
26+
https://www.microsoft.com/*
27+
https://support.apple.com/*
28+
https://www.mozilla.org*
29+
https://ur.alipay.com*
30+
http://editorconfig.org*
31+
https://github.com/prometheusresearch/react-grid
32+
http://go.microsoft.com/fwlink/?LinkId=827846
33+
https://developer.mozilla.org/*
34+
https://reactjs.org*
35+
https://babeljs.io*
36+
https://docs.npmjs.com*
37+
https://eslint.org*
38+
https://www.npmjs.com*
39+
https://facebook.github.io*
40+
https://jestjs.io*
41+
http://editorconfig.org
42+
https://help.github.com*
43+
https://dict.youdao.com*
44+
https://res.cloudinary.com*
45+
https://dev.to*
46+
http://stackoverflow.com*
47+
48+
--------------------------------------------------------
49+
# Should use GLOB wildcard to config and analysis the ignored folder
50+
# The root patch should start with '/'
51+
/docs/**
52+
/*.md
53+
/*.yml
54+
/libraries/**
55+
/.npmrc
56+
/yarn.lock
57+
/node_modules/**
58+
/src/.umi/**
59+
/.vscode/**
60+
/package.json
61+
/.git/**
62+
63+
--------------------------------------------------------
64+
# Config the ignored fold to escape the Chinese scan by GLOB wildcard
65+
--------------------------------------------------------
66+
# Set md5 of pemFile string to filter
67+
# This section must be end up with '--------------------------------------------------------'!!!
68+
69+
--------------------------------------------------------

packages/monaco-plugin-ob/LEGAL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Legal Disclaimer
2+
3+
Within this source code, the comments in Chinese shall be the original, governing version. Any comment in other languages are for reference only. In the event of any conflict between the Chinese language version comments and other language version comments, the Chinese language version shall prevail.
4+
5+
法律免责声明
6+
7+
关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# OceanBase Monaco Plugin
2+
3+
提供 OB_MySQL 和 OB_Oracle 的语法高亮,代码补全等能力
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const path = require('path');
2+
const webpack = require('webpack');
3+
const HtmlWebPackPlugin = require('html-webpack-plugin');
4+
5+
6+
module.exports = {
7+
entry: {
8+
mysql: path.resolve(__dirname, '../dist/obmysql/worker/index'),
9+
oracle: path.resolve(__dirname, '../dist/oboracle/worker/index')
10+
},
11+
resolve: {
12+
extensions: ['.ts', '.tsx', '.js', '.jsx'],
13+
fallback: {
14+
fs: false,
15+
module: false
16+
}
17+
},
18+
target: 'webworker',
19+
module: {
20+
rules: [
21+
{
22+
test: /\.tsx?$/,
23+
use: [
24+
// { loader: 'babel-loader' },
25+
{ loader: 'ts-loader', options: { transpileOnly: true } },
26+
],
27+
exclude: /node_modules/,
28+
}
29+
],
30+
},
31+
devServer: {
32+
hot: true
33+
},
34+
mode: 'development',
35+
};
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
const path = require('path');
2+
3+
4+
5+
module.exports = {
6+
entry: {
7+
mysql: path.resolve(__dirname, '../dist/obmysql/worker/index'),
8+
oracle: path.resolve(__dirname, '../dist/oboracle/worker/index')
9+
},
10+
resolve: {
11+
extensions: ['.ts', '.tsx', '.js', '.jsx'],
12+
fallback: {
13+
fs: false,
14+
module: false
15+
}
16+
},
17+
output: {
18+
path: path.resolve(__dirname, '../worker-dist')
19+
},
20+
module: {
21+
rules: [
22+
{
23+
test: /\.tsx?$/,
24+
use: [
25+
// { loader: 'babel-loader' },
26+
{ loader: 'ts-loader', options: { transpileOnly: true } },
27+
],
28+
exclude: /node_modules/,
29+
}
30+
],
31+
},
32+
mode: 'production',
33+
};
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
const path = require('path');
2+
const webpack = require('webpack');
3+
const HtmlWebPackPlugin = require('html-webpack-plugin');
4+
5+
6+
module.exports = {
7+
entry: path.resolve(__dirname, '../src/index.tsx'),
8+
resolve: {
9+
extensions: ['.ts', '.tsx', '.js', '.jsx'],
10+
fallback: {
11+
fs: false,
12+
module: false
13+
}
14+
},
15+
module: {
16+
rules: [
17+
{
18+
test: /\.tsx?$/,
19+
use: [
20+
// { loader: 'babel-loader' },
21+
{ loader: 'ts-loader', options: { transpileOnly: true } },
22+
],
23+
exclude: /node_modules/,
24+
},
25+
{
26+
test: /\.css$/,
27+
use: ['style-loader', 'css-loader'],
28+
},
29+
{
30+
test: /\.less$/,
31+
use: ['style-loader', 'css-loader', 'less-loader'],
32+
},
33+
],
34+
},
35+
plugins: [
36+
new HtmlWebPackPlugin({
37+
template:path.resolve(__dirname, '../src/index.html')
38+
}),
39+
new webpack.DefinePlugin({
40+
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
41+
})
42+
],
43+
devServer: {
44+
hot: true
45+
},
46+
mode: 'development',
47+
};

0 commit comments

Comments
 (0)