Skip to content

Commit

Permalink
refactor of linkis-web
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderSerio authored and casionone committed Oct 27, 2023
1 parent a66ec80 commit 4f2565a
Show file tree
Hide file tree
Showing 177 changed files with 38,169 additions and 0 deletions.
45 changes: 45 additions & 0 deletions linkis-web-next/.commitlintrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export default {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
],
],
"type-case": [0],
"type-empty": [0],
"scope-empty": [0],
"scope-case": [0],
"subject-full-stop": [0, "never"],
"subject-case": [0, "never"],
"header-max-length": [0, "always", 72],
},
};
20 changes: 20 additions & 0 deletions linkis-web-next/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

VITE_VUE_APP_HOST=
VITE_BACKEND_URL=
VITE_VUE_APP_MN_CONFIG_PREFIX=
VITE_VUE_APP_MN_CONFIG_SOCKET=
VITE_VUE_APP_VERSION=
17 changes: 17 additions & 0 deletions linkis-web-next/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

node_modules
dist
39 changes: 39 additions & 0 deletions linkis-web-next/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"overrides": [],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"parser": "@typescript-eslint/parser"
},
"settings": {
"import/resolver": {
"typescript": {},
"alias": {
"map": ["@", "./src"],
"extentions": [".js", ".ts", ".vue"]
}
}
},
"plugins": ["vue", "@typescript-eslint"],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"vue/multi-word-component-names": 0,
"quotes": ["error", "double"],
"vue/html-quotes": ["error", "double"],
"import/extensions": "off"
}
}
9 changes: 9 additions & 0 deletions linkis-web-next/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* text=auto
* text eol=lf
*.png binary
*.gif binary
*.ttf binary
*.woff binary
*.eot binary
*.woff binary
*.otf binary
12 changes: 12 additions & 0 deletions linkis-web-next/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DS_Store
.vscode
.cache
.idea/

node_modules/
dist/

package-lock.json
apache-linkis-*.tar.gz
./cn.json
.env.*
19 changes: 19 additions & 0 deletions linkis-web-next/.husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
19 changes: 19 additions & 0 deletions linkis-web-next/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

. "$(dirname "$0")/_/husky.sh"

npx lint-staged
29 changes: 29 additions & 0 deletions linkis-web-next/.prettierrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export default {
trailingComma: "all",
tabWidth: 4,
semi: true,
singleQuote: true,
overrides: [
{
files: [".prettierrc.js", ".commitlintrc.ts"],
// options: { "parser": "json" }
},
],
};
129 changes: 129 additions & 0 deletions linkis-web-next/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<h2 align="center">
Apache Linkis Web
</h2>

<p align="center">
<strong> Linkis builds a computation middleware layer to facilitate connection,
governance and orchestration between the upper applications and the underlying data engines. </strong>
</p>
<p align="center">
<a href="https://linkis.apache.org/">https://linkis.apache.org/</a>
</p>

<p align="center">
<a href="https://linkis.apache.org/docs/latest/introduction/" >
<img src="https://img.shields.io/badge/document-English-blue.svg" alt="EN docs" />
</a>
<a href="https://linkis.apache.org/zh-CN/docs/latest/introduction/">
<img src="https://img.shields.io/badge/文档-简体中文-blue.svg" alt="简体中文文档" />
</a>
</p>

<p align="center">
<a target="_blank" href="https://search.maven.org/search?q=g:org.apache.linkis%20AND%20a:linkis">
<img src="https://img.shields.io/maven-central/v/org.apache.linkis/linkis.svg?label=maven%20central" />
</a>
<a target="_blank" href="https://github.com/apache/linkis/blob/master/LICENSE">
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg?label=license" />
</a>
<a target="_blank" href="https://www.oracle.com/technetwork/java/javase/downloads/index.html">
<img src="https://img.shields.io/badge/JDK-8-green.svg" />
</a>
<a target="_blank" href="https://github.com/apache/linkis/actions">
<img src="https://github.com/apache/linkis/actions/workflows//build-backend.yml/badge.svg" />
</a>

<a target="_blank" href='https://github.com/apache/linkis'>
<img src="https://img.shields.io/github/forks/apache/linkis.svg" alt="github forks"/>
</a>
<a target="_blank" href='https://github.com/apache/linkis'>
<img src="https://img.shields.io/github/stars/apache/linkis.svg" alt="github stars"/>
</a>
<a target="_blank" href='https://github.com/apache/linkis'>
<img src="https://img.shields.io/github/contributors/apache/linkis.svg" alt="github contributors"/>
</a>
<a target="_blank" href="https://badges.toozhao.com/stats/01G7TRNN1PH9PMSCYWDF3EK4QT">
<img src="https://badges.toozhao.com/badges/01G7TRNN1PH9PMSCYWDF3EK4QT/green.svg" />
</a>

</p>
<br/>

---
[English](README.md) | [中文](README_CN.md)

# Introduction

Linkis builds a layer of computation middleware between upper applications and underlying engines. By using standard interfaces such as REST/WS/JDBC provided by Linkis, the upper applications can easily access the underlying engines such as MySQL/Spark/Hive/Presto/Flink, etc., and achieve the intercommunication of user resources like unified variables, scripts, UDFs, functions and resource files at the same time.

Linkis Web provides a management system for easy management of user resources.

# Start

```shell
# configure the project basic information in the `src/.env` firstly
cd linkis/linkis-web-next
npm install
npm run dev

# build
npm run build
```

# File Structure

> ├── README.md
> ├── README_CN.md
> ├── index.html
> ├── node_modules
> ├── package-lock.json
> ├── package.json
> ├── pom.xml
> ├── public
> │ ├── favicon.ico`
> │ ├── sidebar
> │ └── vite.svg
> ├── release-docs
> │ ├── LICENSE
> │ ├── NOTICE
> │ └── licenses
> ├── src
> │ ├── App.vue
> │ ├── assets
> │ ├── components
> │ ├── config
> │ ├── dss
> │ ├── env.d.ts
> │ ├── helper
> │ ├── index.d.ts
> │ ├── layout.vue
> │ ├── locales
> │ ├── main.ts
> │ ├── pages
> │ ├── router
> │ ├── scriptis
> │ ├── service
> │ ├── style
> │ ├── util
> │ └── vite-env.d.ts
> ├── tsconfig.json
> ├── tsconfig.node.json
> └── vite.config.ts
# Contributing

Contributions are always welcomed, we need more contributors to build Linkis together. either code, or doc, or other supports that could help the community.
For code and documentation contributions, please follow the [contribution guide](https://linkis.apache.org/community/how-to-contribute).

# Contact Us

- Any questions or suggestions please kindly submit an [issue](https://github.com/apache/linkis/issues).
- By mail [dev@linkis.apache.org](mailto:dev@linkis.apache.org)
- You can scan the QR code below to join our WeChat group to get more immediate response

<img src="https://linkis.apache.org/Images/wedatasphere_contact_01.png" width="256"/>

# Who is Using Linkis

We opened an issue [[Who is Using Linkis]](https://github.com/apache/linkis/issues/23) for users to feedback and record who is using Linkis.
Since the first release of Linkis in 2019, it has accumulated more than **700** trial companies and **1000+** sandbox trial users, which involving diverse industries, from finance, banking, tele-communication, to manufactory, internet companies and so on.
Loading

0 comments on commit 4f2565a

Please sign in to comment.