Unverified Commit d185cf82 authored by zhu-mingye's avatar zhu-mingye Committed by GitHub

[Refactor][web] refactor udf template && move to reg center (#1972)

* refactor ufd template && move to reg center * added editor buildAllSuggestions * change dir
parent 8ee93f9c
...@@ -23,6 +23,7 @@ import org.dinky.common.result.ProTableResult; ...@@ -23,6 +23,7 @@ import org.dinky.common.result.ProTableResult;
import org.dinky.common.result.Result; import org.dinky.common.result.Result;
import org.dinky.model.UDFTemplate; import org.dinky.model.UDFTemplate;
import org.dinky.service.UDFTemplateService; import org.dinky.service.UDFTemplateService;
import org.dinky.utils.MessageResolverUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
...@@ -30,13 +31,13 @@ import java.util.List; ...@@ -30,13 +31,13 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import javax.annotation.Resource; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
...@@ -44,17 +45,19 @@ import com.fasterxml.jackson.databind.JsonNode; ...@@ -44,17 +45,19 @@ import com.fasterxml.jackson.databind.JsonNode;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.lang.Dict; import cn.hutool.core.lang.Dict;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
/** @since 0.6.8 */ /** UDFController */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/api/udf") @RequestMapping("/api/udf/template")
@RequiredArgsConstructor
public class UDFController { public class UDFController {
@Resource UDFTemplateService udfTemplateService; private final UDFTemplateService udfTemplateService;
@PostMapping("/template/tree") @PostMapping("/tree")
public Result<List<Object>> listUdfTemplates() { public Result<List<Object>> listUdfTemplates() {
List<UDFTemplate> list = udfTemplateService.list(); List<UDFTemplate> list = udfTemplateService.list();
Map<String, Dict> one = new HashMap<>(3); Map<String, Dict> one = new HashMap<>(3);
...@@ -105,19 +108,38 @@ public class UDFController { ...@@ -105,19 +108,38 @@ public class UDFController {
return Result.succeed(CollUtil.newArrayList(result.values())); return Result.succeed(CollUtil.newArrayList(result.values()));
} }
@PostMapping("/template/list") /**
public ProTableResult<UDFTemplate> listUdfTemplates(@RequestBody JsonNode para) { * get udf template list
return udfTemplateService.selectForProTable(para); *
* @param params {@link JsonNode}
* @return {@link ProTableResult} <{@link UDFTemplate}>
*/
@PostMapping("/list")
public ProTableResult<UDFTemplate> listUdfTemplates(@RequestBody JsonNode params) {
return udfTemplateService.selectForProTable(params);
} }
@PutMapping("/template/") /**
public Result<String> addTemplate(@RequestBody UDFTemplate udfTemplate) { * save or update udf template
*
* @param udfTemplate {@link UDFTemplate}
* @return {@link Result} <{@link String}>
*/
@PutMapping
public Result<String> saveOrUpdate(@RequestBody UDFTemplate udfTemplate) {
return udfTemplateService.saveOrUpdate(udfTemplate) return udfTemplateService.saveOrUpdate(udfTemplate)
? Result.succeed("操作成功") ? Result.succeed(MessageResolverUtils.getMessage("save.success"))
: Result.failed("操作失败"); : Result.failed(MessageResolverUtils.getMessage("save.failed"));
} }
/**
* delete udf template by id, this method is deprecated, please use {@link #delete(Integer id)}
*
* @param para {@link JsonNode}
* @return {@link Result} <{@link String}>
*/
@DeleteMapping("/template/list") @DeleteMapping("/template/list")
@Deprecated
public Result deleteMul(@RequestBody JsonNode para) { public Result deleteMul(@RequestBody JsonNode para) {
if (para.size() > 0) { if (para.size() > 0) {
List<Integer> error = new ArrayList<>(); List<Integer> error = new ArrayList<>();
...@@ -137,4 +159,29 @@ public class UDFController { ...@@ -137,4 +159,29 @@ public class UDFController {
return Result.failed("请选择要删除的记录"); return Result.failed("请选择要删除的记录");
} }
} }
/**
* delete udf template by id
*
* @param id {@link Integer}
* @return {@link Result} <{@link Void}>
*/
@DeleteMapping("/delete")
@Transactional(rollbackFor = Exception.class)
public Result<Void> delete(@RequestParam Integer id) {
if (udfTemplateService.removeById(id)) {
return Result.succeed(MessageResolverUtils.getMessage("delete.success"));
} else {
return Result.failed(MessageResolverUtils.getMessage("delete.failed"));
}
}
@PutMapping("/enable")
public Result<Void> enable(@RequestParam Integer id) {
if (udfTemplateService.enable(id)) {
return Result.succeed(MessageResolverUtils.getMessage("modify.success"));
} else {
return Result.failed(MessageResolverUtils.getMessage("modify.failed"));
}
}
} }
...@@ -23,20 +23,7 @@ import org.dinky.db.mapper.SuperMapper; ...@@ -23,20 +23,7 @@ import org.dinky.db.mapper.SuperMapper;
import org.dinky.model.UDFTemplate; import org.dinky.model.UDFTemplate;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List; /** udf template mapper */
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/** @since 0.6.8 udf 模板mapper */
@Mapper @Mapper
public interface UDFTemplateMapper extends SuperMapper<UDFTemplate> { public interface UDFTemplateMapper extends SuperMapper<UDFTemplate> {}
@Override
@Select("select * from dinky_udf_template")
List<UDFTemplate> selectForProTable(
Page<UDFTemplate> page, Wrapper<UDFTemplate> queryWrapper, Map<String, Object> param);
}
...@@ -32,4 +32,12 @@ public interface UDFTemplateService extends ISuperService<UDFTemplate> { ...@@ -32,4 +32,12 @@ public interface UDFTemplateService extends ISuperService<UDFTemplate> {
* @return boolean * @return boolean
*/ */
boolean saveOrUpdate(UDFTemplate udfTemplate); boolean saveOrUpdate(UDFTemplate udfTemplate);
/**
* enable or disable udf template
*
* @param id udf template id {@link UDFTemplate#id}
* @return {@link Boolean}
*/
Boolean enable(Integer id);
} }
...@@ -51,4 +51,18 @@ public class UDFTemplateServiceImpl extends SuperServiceImpl<UDFTemplateMapper, ...@@ -51,4 +51,18 @@ public class UDFTemplateServiceImpl extends SuperServiceImpl<UDFTemplateMapper,
return updateById(udfTemplate); return updateById(udfTemplate);
} }
} }
/**
* @param id {@link Integer}
* @return {@link Boolean}
*/
@Override
public Boolean enable(Integer id) {
UDFTemplate udfTemplate = getById(id);
udfTemplate.setEnabled(!udfTemplate.getEnabled());
if (updateById(udfTemplate)) {
return true;
}
return false;
}
} }
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dinky.mapper.UDFTemplateMapper">
<select id="selectForProTable" resultType="org.dinky.model.UDFTemplate">
select
a.*
from
dinky_udf_template a
<where>
1=1
<if test='param.name!=null and param.name!=""'>
and `name` like '%${param.name}%'
</if>
<if test='param.codeType!=null and param.codeType!=""'>
and code_type = '${param.codeType}'
</if>
<if test='param.functionType!=null and param.functionType!=""'>
and function_type = '${param.functionType}'
</if>
<if test='param.templateCode!=null and param.templateCode!=""'>
and template_code like "%${param.templateCode}%"
</if>
<if test='param.createTime!=null and param.createTime!=""'>
and create_time <![CDATA[>=]]> str_to_date( #{param.createTime},'%Y-%m-%d %H:%i:%s')
</if>
<if test='ew.sqlSegment!=null and ew.sqlSegment!="" and !ew.sqlSegment.startsWith(" ORDER BY")'>
and
</if>
<if test='ew.sqlSegment!=null and ew.sqlSegment!=""'>
${ew.sqlSegment}
</if>
</where>
</select>
</mapper>
...@@ -155,13 +155,19 @@ export default [ ...@@ -155,13 +155,19 @@ export default [
icon: 'GithubOutlined', icon: 'GithubOutlined',
component: './RegCenter/GitProject', component: './RegCenter/GitProject',
}, },
{
path: '/registration/udf',
name: 'udf',
icon: 'ToolOutlined',
component: './RegCenter/UDF',
},
], ],
}, },
{ {
name: 'auth', name: 'auth',
icon: 'SafetyCertificateOutlined', icon: 'SafetyCertificateOutlined',
path: '/auth', path: '/auth',
// access: "canAdmin", access: "canAdmin",
routes: [ routes: [
{ {
path: '/auth', path: '/auth',
...@@ -209,12 +215,6 @@ export default [ ...@@ -209,12 +215,6 @@ export default [
icon: 'SettingOutlined', icon: 'SettingOutlined',
// component: './SettingCenter/FlinkSettings', // component: './SettingCenter/FlinkSettings',
}, },
{
path: '/settings/udf',
name: 'udf',
icon: 'ToolOutlined',
// component: './SettingCenter/UDFTemplate',
},
{ {
path: '/settings/system', path: '/settings/system',
name: 'system', name: 'system',
......
/*
* 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 type SqlMetaData = {
statement: string,
metaData: MetaData[],
};
export type MetaData = {
table: string,
connector: string,
columns: Column[],
};
export type Column = {
name: string,
type: string,
};
/**
* the editor's suggestions
*/
export type ISuggestions ={
label: string;
kind: any;
insertText: any;
insertTextRules: any;
detail?: any;
}
/*
* 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.
*/
import {monaco} from "react-monaco-editor";
import keyWordJsonData from "./keyword.json";
import {Document, GlobalVar} from "@/types/RegCenter/data.d";
import {Column, ISuggestions, MetaData} from "@/components/CustomEditor/CodeEdit/data";
// todo: get sqlMetaData from interface
const buildMetaDataSuggestions = () => {
let metaDataSuggestions: ISuggestions[] = [];
let metaData: [] = []; // temp
metaData.forEach((item: MetaData) => {
metaDataSuggestions.push({
label: item.table,
kind: monaco.languages.CompletionItemKind.Constant,
insertText: item.table,
insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
detail: "FlinkSQL Connector => " + item.connector
});
item.columns.forEach((column: Column) => {
metaDataSuggestions.push({
label: column.name,
kind: monaco.languages.CompletionItemKind.Field,
insertText: column.name,
insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
detail: "Column => " + column.type + " from " + item.table
});
});
});
return metaDataSuggestions;
};
// todo: get document from interface
const buildFullDocumentSuggestions = () => {
let fullDocumentSuggestions: ISuggestions[] = [];
let fillDocuments: [] = []; // temp
fillDocuments.forEach((item: Document) => {
fullDocumentSuggestions.push({
label: item.name,
kind: monaco.languages.CompletionItemKind.Snippet,
insertText: item.fillValue,
insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
detail: item.description
});
});
return fullDocumentSuggestions;
};
/**
* get keyWordJson from {@link ./keyword.json}
* @param type
*/
const parseKeyWordJson = (type: string) => {
return JSON.parse(JSON.stringify(keyWordJsonData))[type];
};
/**
* build keyWordJsonSuggestions from {@link ./keyword.json}
*/
const buildKeyWordJsonSuggestions = () => {
let keyWordJsonSuggestions: ISuggestions[] = [];
// get all keys from keyWordJsonData
Object.keys(keyWordJsonData).forEach((key: string) => {
// parse data of key
const array = parseKeyWordJson(key);
// build suggestions
array.forEach((item: string) => {
keyWordJsonSuggestions.push({
label: item,
kind: monaco.languages.CompletionItemKind.Keyword,
insertText: item,
insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
detail: key
});
});
});
return keyWordJsonSuggestions;
};
// todo: get globalVariable from interface
const buildGlobalVariableSuggestions = () => {
let globalVariableSuggestions: ISuggestions[] = [];
let globalVariables: [] = []; // temp
globalVariables.forEach((item: GlobalVar) => {
globalVariableSuggestions.push({
label: item.name,
kind: monaco.languages.CompletionItemKind.Variable,
insertText: item.fragmentValue,
insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
detail: item.note
});
});
return globalVariableSuggestions
};
/**
* build all suggestions
*/
export const buildAllSuggestions = () => {
let suggestions: ISuggestions[] = [];
suggestions = suggestions
.concat(buildMetaDataSuggestions()) // concat metaDataSuggestions
.concat(buildFullDocumentSuggestions()) // concat fullDocumentSuggestions
.concat(buildGlobalVariableSuggestions()) // concat globalVariableSuggestions
.concat(buildKeyWordJsonSuggestions()); // concat keyWordJsonSuggestions
return suggestions;
};
...@@ -20,9 +20,11 @@ ...@@ -20,9 +20,11 @@
import MonacoEditor, {monaco} from "react-monaco-editor"; import MonacoEditor, {monaco} from "react-monaco-editor";
import {MonacoEditorOptions} from "@/types/Public/data"; import {MonacoEditorOptions} from "@/types/Public/data";
import {convertCodeEditTheme} from "@/utils/function"; import {convertCodeEditTheme} from "@/utils/function";
import React from "react"; import React, {useState} from "react";
import EditorFloatBtn from "@/components/CustomEditor/EditorFloatBtn";
import {editor} from "monaco-editor";
type CodeEditFormProps = { type CodeEditFormProps = {
height?: string; height?: string;
width?: string; width?: string;
language?: string; language?: string;
...@@ -33,10 +35,12 @@ import React from "react"; ...@@ -33,10 +35,12 @@ import React from "react";
lineNumbers?: string; lineNumbers?: string;
theme?: string; theme?: string;
autoWrap?: string; autoWrap?: string;
showFloatButton?: boolean;
}; };
const CodeEdit = (props: CodeEditFormProps) => { const CodeEdit = (props: CodeEditFormProps) => {
const [editorRef, setEditorRef] = useState<any>();
/** /**
* 1. height: edit height * 1. height: edit height
...@@ -49,6 +53,7 @@ const CodeEdit = (props: CodeEditFormProps) => { ...@@ -49,6 +53,7 @@ const CodeEdit = (props: CodeEditFormProps) => {
* 8. lineNumbers: is show lineNumbers, value: on | off | relative | interval * 8. lineNumbers: is show lineNumbers, value: on | off | relative | interval
* 9. theme: edit theme , value: vs-dark | vs | hc-black * 9. theme: edit theme , value: vs-dark | vs | hc-black
* 10. autoWrap: is auto wrap, value: on | off | wordWrapColumn | bounded * 10. autoWrap: is auto wrap, value: on | off | wordWrapColumn | bounded
* 11. showFloatButton: is show float button, value: true | false (default: false)
*/ */
const { const {
height = "100%", // if null or undefined, set default value height = "100%", // if null or undefined, set default value
...@@ -63,42 +68,82 @@ const CodeEdit = (props: CodeEditFormProps) => { ...@@ -63,42 +68,82 @@ const CodeEdit = (props: CodeEditFormProps) => {
lineNumbers, // show lineNumbers lineNumbers, // show lineNumbers
theme, // edit theme theme, // edit theme
autoWrap = "on", // auto wrap autoWrap = "on", // auto wrap
showFloatButton = false,
} = props; } = props;
const {ScrollType} = editor;
/**
* editorDidMount
* @param {editor.IStandaloneCodeEditor} editor
*/
const editorDidMount = (editor: editor.IStandaloneCodeEditor) => {
setEditorRef(editor);
editor.layout();
editor.focus();
};
/**
* handle scroll to top
*/
const handleBackTop = () => {
editorRef.revealLine(1);
};
/**
* handle scroll to bottom
*/
const handleBackBottom = () => {
editorRef.revealLine(editorRef.getModel().getLineCount());
};
/**
* handle scroll to down
*/
const handleDownScroll = () => {
editorRef.setScrollPosition({scrollTop: editorRef.getScrollTop() + 500}, ScrollType.Smooth);
};
/**
* handle scroll to up
*/
const handleUpScroll = () => {
editorRef?.setScrollPosition({scrollTop: editorRef.getScrollTop() - 500}, ScrollType.Smooth);
};
// register TypeScript language service // register TypeScript language service
monaco.languages.register({ monaco.languages.register({
id: language || "typescript", id: language || "typescript",
}); });
// get monaco editor model const restEditBtnProps = {
const getModel = () => monaco.editor.getModels()[0]; handleBackTop,
handleBackBottom,
handleUpScroll,
handleDownScroll,
};
return (<> return (<>
<MonacoEditor <div className={"monaco-float"}>
width={width} <MonacoEditor
height={height} width={width}
value={code} height={height}
language={language} value={code}
options={{ language={language}
...options, options={{
readOnly, ...options,
wordWrap: autoWrap, readOnly,
autoDetectHighContrast: true, wordWrap: autoWrap,
lineNumbers, autoDetectHighContrast: true,
}} lineNumbers,
editorDidMount={(editor) => { }}
// 在编辑器加载完成后,设置自动布局和自动高亮显示 editorDidMount={editorDidMount}
editor.layout(); onChange={onChange}
editor.focus(); theme={theme ? theme : convertCodeEditTheme()}
getModel().updateOptions({ />
tabSize: 2, {showFloatButton && <EditorFloatBtn {...restEditBtnProps}/>}
}); </div>
}}
onChange={onChange}
theme={theme ? theme : convertCodeEditTheme()}
/>
</>); </>);
}; };
......
{
"_comment":"this is comments,按照数据库类型输入对应得关键字数组,如果想要函数提示也可,函数内得参数定位需要手动编写:eg:SUM(${1:}) 在输入后会将光标定位在括号内,多个参数列表 则数字依次向下+1, presto & phoenix & clickhouse 暂未整理",
"fragments": ["CASE WHEN ${1:} THEN ${2:} ELSE ${3:} END AS ${4:}","SELECT ${1:} FROM ${2:}","SELECT * FROM ${1:}"],
"mysql": [ "ALL", "ALTER", "ANALYZE", "AND", "AS", "ASC", "ASENSITIVE", "BEFORE", "BETWEEN", "BIGINT", "BINARY", "BLOB", "BOTH", "BY", "CALL", "CASCADE", "CASE", "CHANGE", "CHAR", "CHARACTER", "CHECK", "COLLATE", "COLUMN", "CONDITION", "CONNECTION", "CONSTRAINT", "CONTINUE", "CONVERT", "CREATE", "CROSS", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURSOR", "DATABASE", "DATABASES", "DAY_HOUR", "DAY_MICROSECOND", "DAY_MINUTE", "DAY_SECOND", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DELAYED", "DELETE", "DESC", "DESCRIBE", "DETERMINISTIC", "DISTINCT", "DISTINCTROW", "DIV", "DOUBLE", "DROP", "DUAL", "EACH", "ELSE", "ELSEIF", "ENCLOSED", "ESCAPED", "EXISTS", "EXIT", "EXPLAIN", "FALSE", "FETCH", "FLOAT", "FLOAT4", "FLOAT8", "FOR", "FORCE", "FOREIGN", "FROM", "FULLTEXT", "GOTO", "GRANT", "GROUP", "HAVING", "HIGH_PRIORITY", "HOUR_MICROSECOND", "HOUR_MINUTE", "HOUR_SECOND", "IF", "IGNORE", "IN", "INDEX", "INFILE", "INNER", "INOUT", "INSENSITIVE", "INSERT", "INT", "INT1", "INT2", "INT3", "INT4", "INT8", "INTEGER", "INTERVAL", "INTO", "IS", "ITERATE", "JOIN", "KEY", "KEYS", "KILL", "LABEL", "LEADING", "LEAVE", "LEFT", "LIKE", "LIMIT", "LINEAR", "LINES", "LOAD", "LOCALTIME", "LOCALTIMESTAMP", "LOCK", "LONG", "LONGBLOB", "LONGTEXT", "LOOP", "LOW_PRIORITY", "MATCH", "MEDIUMBLOB", "MEDIUMINT", "MEDIUMTEXT", "MIDDLEINT", "MINUTE_MICROSECOND", "MINUTE_SECOND", "MOD", "MODIFIES", "NATURAL", "NOT", "NO_WRITE_TO_BINLOG", "NULL", "NUMERIC", "ON", "OPTIMIZE", "OPTION", "OPTIONALLY", "OR", "ORDER", "OUT", "OUTER", "OUTFILE", "PRECISION", "PRIMARY", "PROCEDURE", "PURGE", "RAID0", "RANGE", "READ", "READS", "REAL", "REFERENCES", "REGEXP", "RELEASE", "RENAME", "REPEAT", "REPLACE", "REQUIRE", "RESTRICT", "RETURN", "REVOKE", "RIGHT", "RLIKE", "SCHEMA", "SCHEMAS", "SECOND_MICROSECOND", "SELECT", "SENSITIVE", "SEPARATOR", "SET", "SHOW", "SMALLINT", "SPATIAL", "SPECIFIC", "SQL", "SQLEXCEPTION", "SQLSTATE", "SQLWARNING", "SQL_BIG_RESULT", "SQL_CALC_FOUND_ROWS", "SQL_SMALL_RESULT", "SSL", "STARTING", "STRAIGHT_JOIN", "TABLE", "TERMINATED", "THEN", "TINYBLOB", "TINYINT", "TINYTEXT", "TO", "TRAILING", "TRIGGER", "TRUE", "UNDO", "UNION", "UNIQUE", "UNLOCK", "UNSIGNED", "UPDATE", "USAGE", "USE", "USING", "UTC_DATE", "UTC_TIME", "UTC_TIMESTAMP", "VALUES", "VARBINARY", "VARCHAR", "VARCHARACTER", "VARYING", "WHEN", "WHERE", "WHILE", "WITH", "WRITE", "X509", "XOR", "YEAR_MONTH", "ZEROFILL","SUM(${1:})"],
"postgresql": ["A","ABORT","ABS","ABSENT","ABSOLUTE","ACCESS","ACCORDING","ACTION","ADA","ADMIN","AFTER","AGGREGATE","ALL","ALLOCATE","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARE","ARRAY","ARRAY_AGG","ARRAY_MAX_CARDINALITY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTRIBUTE","ATTRIBUTES","AUTHORIZATION","AVG","BACKWARD","BASE64","BEFORE","BEGIN","BEGIN_FRAME","BEGIN_PARTITION","BERNOULLI","BETWEEN","BIGINT","BINARY","BIT","BIT_LENGTH","BLOB","BLOCKED","BOM","BOOLEAN","BOTH","BREADTH","BY","C","CACHE","CALL","CALLED","CARDINALITY","CASCADE","CASCADED","CASE","CAST","CATALOG","CATALOG_NAME","CEIL","CEILING","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHARACTERS","CHARACTER_LENGTH","CHARACTER_SET_CATALOG","CHARACTER_SET_NAME","CHARACTER_SET_SCHEMA","CHAR_LENGTH","CHECK","CHECKPOINT","CLASS","CLASS_ORIGIN","CLOB","CLOSE","CLUSTER","COALESCE","COBOL","COLLATE","COLLATION","COLLATION_CATALOG","COLLATION_NAME","COLLATION_SCHEMA","COLLECT","COLUMN","COLUMNS","COLUMN_NAME","COMMAND_FUNCTION","COMMAND_FUNCTION_CODE","COMMENT","COMMENTS","COMMIT","COMMITTED","CONCURRENTLY","CONDITION","CONDITION_NUMBER","CONFIGURATION","CONNECT","CONNECTION","CONNECTION_NAME","CONSTRAINT","CONSTRAINTS","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONSTRUCTOR","CONTAINS","CONTENT","CONTINUE","CONTROL","CONVERSION","CONVERT","COPY","CORR","CORRESPONDING","COST","COUNT","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CSV","CUBE","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_ROW","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATALINK","DATE","DATETIME_INTERVAL_CODE","DATETIME_INTERVAL_PRECISION","DAY","DB","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DEGREE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DEPTH","DEREF","DERIVED","DESC","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DICTIONARY","DISABLE","DISCARD","DISCONNECT","DISPATCH","DISTINCT","DLNEWCOPY","DLPREVIOUSCOPY","DLURLCOMPLETE","DLURLCOMPLETEONLY","DLURLCOMPLETEWRITE","DLURLPATH","DLURLPATHONLY","DLURLPATHWRITE","DLURLSCHEME","DLURLSERVER","DLVALUE","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","DYNAMIC","DYNAMIC_FUNCTION","DYNAMIC_FUNCTION_CODE","EACH","ELEMENT","ELSE","EMPTY","ENABLE","ENCODING","ENCRYPTED","END","END-EXEC","END_FRAME","END_PARTITION","ENFORCED","ENUM","EQUALS","ESCAPE","EVENT","EVERY","EXCEPT","EXCEPTION","EXCLUDE","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXP","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILE","FILTER","FINAL","FIRST","FIRST_VALUE","FLAG","FLOAT","FLOOR","FOLLOWING","FOR","FORCE","FOREIGN","FORTRAN","FORWARD","FOUND","FRAME_ROW","FREE","FREEZE","FROM","FS","FULL","FUNCTION","FUNCTIONS","FUSION","G","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HEX","HIERARCHY","HOLD","HOUR","ID","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMEDIATELY","IMMUTABLE","IMPLEMENTATION","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INDENT","INDEX","INDEXES","INDICATOR","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTANCE","INSTANTIABLE","INSTEAD","INT","INTEGER","INTEGRITY","INTERSECT","INTERSECTION","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","K","KEY","KEY_MEMBER","KEY_TYPE","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAKPROOF","LEAST","LEFT","LENGTH","LEVEL","LIBRARY","LIKE","LIKE_REGEX","LIMIT","LINK","LISTEN","LN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOWER","M","MAP","MAPPING","MATCH","MATCHED","MATERIALIZED","MAX","MAXVALUE","MAX_CARDINALITY","MEMBER","MERGE","MESSAGE_LENGTH","MESSAGE_OCTET_LENGTH","MESSAGE_TEXT","METHOD","MIN","MINUTE","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MORE","MOVE","MULTISET","MUMPS","NAME","NAMES","NAMESPACE","NATIONAL","NATURAL","NCHAR","NCLOB","NESTING","NEW","NEXT","NFC","NFD","NFKC","NFKD","NIL","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NTH_VALUE","NTILE","NULL","NULLABLE","NULLIF","NULLS","NUMBER","NUMERIC","OBJECT","OCCURRENCES_REGEX","OCTETS","OCTET_LENGTH","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPEN","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDERING","ORDINALITY","OTHERS","OUT","OUTER","OUTPUT","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","P","PAD","PARAMETER","PARAMETER_MODE","PARAMETER_NAME","PARAMETER_ORDINAL_POSITION","PARAMETER_SPECIFIC_CATALOG","PARAMETER_SPECIFIC_NAME","PARAMETER_SPECIFIC_SCHEMA","PARSER","PARTIAL","PARTITION","PASCAL","PASSING","PASSTHROUGH","PASSWORD","PATH","PERCENT","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PERIOD","PERMISSION","PLACING","PLANS","PLI","PORTION","POSITION","POSITION_REGEX","POWER","PRECEDES","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROGRAM","PUBLIC","QUOTE","RANGE","RANK","READ","READS","REAL","REASSIGN","RECHECK","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","REQUIRING","RESET","RESPECT","RESTART","RESTORE","RESTRICT","RESULT","RETURN","RETURNED_CARDINALITY","RETURNED_LENGTH","RETURNED_OCTET_LENGTH","RETURNED_SQLSTATE","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINE_CATALOG","ROUTINE_NAME","ROUTINE_SCHEMA","ROW","ROWS","ROW_COUNT","ROW_NUMBER","RULE","SAVEPOINT","SCALE","SCHEMA","SCHEMA_NAME","SCOPE","SCOPE_CATALOG","SCOPE_NAME","SCOPE_SCHEMA","SCROLL","SEARCH","SECOND","SECTION","SECURITY","SELECT","SELECTIVE","SELF","SENSITIVE","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SERVER_NAME","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SIZE","SMALLINT","SNAPSHOT","SOME","SOURCE","SPACE","SPECIFIC","SPECIFICTYPE","SPECIFIC_NAME","SQL","SQLCODE","SQLERROR","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQRT","STABLE","STANDALONE","START","STATE","STATEMENT","STATIC","STATISTICS","STDDEV_POP","STDDEV_SAMP","STDIN","STDOUT","STORAGE","STRICT","STRIP","STRUCTURE","STYLE","SUBCLASS_ORIGIN","SUBMULTISET","SUBSTRING","SUBSTRING_REGEX","SUCCEEDS","SUM","SYMMETRIC","SYSID","SYSTEM","SYSTEM_TIME","SYSTEM_USER","T","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TABLE_NAME","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOKEN","TOP_LEVEL_COUNT","TRAILING","TRANSACTION","TRANSACTIONS_COMMITTED","TRANSACTIONS_ROLLED_BACK","TRANSACTION_ACTIVE","TRANSFORM","TRANSFORMS","TRANSLATE","TRANSLATE_REGEX","TRANSLATION","TREAT","TRIGGER","TRIGGER_CATALOG","TRIGGER_NAME","TRIGGER_SCHEMA","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNDER","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLINK","UNLISTEN","UNLOGGED","UNNAMED","UNNEST","UNTIL","UNTYPED","UPDATE","UPPER","URI","USAGE","USER","USER_DEFINED_TYPE_CATALOG","USER_DEFINED_TYPE_CODE","USER_DEFINED_TYPE_NAME","USER_DEFINED_TYPE_SCHEMA","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VALUE_OF","VARBINARY","VARCHAR","VARIADIC","VARYING","VAR_POP","VAR_SAMP","VERBOSE","VERSION","VERSIONING","VIEW","VOLATILE","WHEN","WHENEVER","WHERE","WHITESPACE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLAGG","XMLATTRIBUTES","XMLBINARY","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDECLARATION","XMLDOCUMENT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLITERATE","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSCHEMA","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","YEAR","YES","ZONE"],
"sqlserver": ["EXCEPT","PERCENT","ALL","EXEC","PLAN","ALTER","EXECUTE","PRECISION","AND","EXISTS","PRIMARY","ANY","EXIT","PRINT","AS","FETCH","PROC","ASC","FILE","PROCEDURE","AUTHORIZATION","FILLFACTOR","PUBLIC","BACKUP","FOR","RAISERROR","BEGIN","FOREIGN","READ","BETWEEN","FREETEXT","READTEXT","BREAK","FREETEXTTABLE","RECONFIGURE","BROWSE","FROM","REFERENCES","BULK","FULL","REPLICATION","BY","FUNCTION","RESTORE","CASCADE","GOTO","RESTRICT","CASE","GRANT","RETURN","CHECK","GROUP","REVOKE","CHECKPOINT","HAVING","RIGHT","CLOSE","HOLDLOCK","ROLLBACK","CLUSTERED","IDENTITY","ROWCOUNT","COALESCE","IDENTITY_INSERT","ROWGUIDCOL","COLLATE","IDENTITYCOL","RULE","COLUMN","IF","SAVE","COMMIT","IN","SCHEMA","COMPUTE","INDEX","SELECT","CONSTRAINT","INNER","SESSION_USER","CONTAINS","INSERT","SET","CONTAINSTABLE","INTERSECT","SETUSER","CONTINUE","INTO","SHUTDOWN","CONVERT","IS","SOME","CREATE","JOIN","STATISTICS","CROSS","KEY","SYSTEM_USER","CURRENT","KILL","TABLE","CURRENT_DATE","LEFT","TEXTSIZE","CURRENT_TIME","LIKE","THEN","CURRENT_TIMESTAMP","LINENO","TO","CURRENT_USER","LOAD","TOP","CURSOR","NATIONAL","TRAN","DATABASE","NOCHECK","TRANSACTION","DBCC","NONCLUSTERED","TRIGGER","DEALLOCATE","NOT","TRUNCATE","DECLARE","NULL","TSEQUAL","DEFAULT","NULLIF","UNION","DELETE","OF","UNIQUE","DENY","OFF","UPDATE","DESC","OFFSETS","UPDATETEXT","DISK","ON","USE","DISTINCT","OPEN","USER","DISTRIBUTED","OPENDATASOURCE","VALUES","DOUBLE","OPENQUERY","VARYING","DROP","OPENROWSET","VIEW","DUMMY","OPENXML","WAITFOR","DUMP","OPTION","WHEN","ELSE","OR","WHERE","END","ORDER","WHILE","ERRLVL","OUTER","WITH","ESCAPE","OVER","WRITETEXT"],
"diris": ["ADMIN","AFTER","AGGREGATE","ALL","ALTER","AND","ANALYZE","ANTI","ARRAY","AS","ASC","AUTHORS","BACKEND","BACKUP","BETWEEN","BEGIN","BIGINT","BITMAP","BITMAP_UNION","BOOLEAN","BOTH","BROKER","BACKENDS","BY","BUILTIN","BUCKETS","CANCEL","CASE","CAST","CHAIN","CHAR","CHARSET","CHECK","CLUSTER","CLUSTERS","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED,CONFIG","CONNECTION","CONNECTION_ID","CONSISTENT","COSTS","COUNT","CREATE","CROSS","CUBE","CURRENT","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DECIMAL","DECIMALV2","DECIMAL32","DECIMAL64","DECIMAL128","DECOMMISSION","DEFAULT","DESC","DESCRIBE","DELETE","DISTINCT","DISTINCTPC","DISTINCTPCSA","DISTRIBUTED","DISTRIBUTION","DYNAMIC","DIV","DOUBLE","DROP","DROPP","DUAL","DUPLICATE","DENSE_RANK","ELSE","END","ENGINE","ENGINES","ENTER","ERRORS","EVENTS","EXCEPT","EXISTS","EXPORT","EXTERNAL","EXTRACT","EVERY","FALSE","FOLLOWER","FOLLOWING","FREE","FROM","FILE","FIRST","FLOAT","FOR","FORCE","FORMAT","FRONTEND","FRONTENDS","FULL","FN","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","HASH","HAVING","HELP","HLL","HLL_UNION","HOUR","HUB","IDENTIFIED","IF","IN","INDEX","INDEXES","INFILE","INSTALL","INNER","INSERT","INT","SIGNED","INTERMEDIATE","INTERSECT","INTERVAL","INTO","IGNORE","IS","ISNULL","ISOLATION","JOIN","JSON","KEY","KEYS","KILL","LABEL","LARGEINT","LAST","LEFT","LESS","LEVEL","LIKE","LIMIT","LINK","LOAD","LOCAL","LOCATION","LATERAL","LOGICAL","MATERIALIZED","MAX","MAX_VALUE","MERGE","MIN","MINUTE","MINUS","MIGRATE","MIGRATIONS","MODIFY","MONTH","NAME","NAMES","NEGATIVE","NO","NOT","NULL","NULLS","OBSERVER","OFFSET","ON","ONLY","OPEN","OR","ORDER","OUTER","OUTFILE","OVER","PARTITION","PARTITIONS","PASSWORD","PATH","PAUSE","PIPE","PRECEDING,PLUGIN","PLUGINS","PRIMARY","PROC","PROCEDURE,PROCESSLIST,PROPERTIES,PROPERTY","PERCENTILE","PERCENTILE_UNION","QUERY","QUOTA","RANDOM","RANGE","READ","RECOVER","REGEXP","RELEASE","RENAME","RANK,ROW_NUMBER","REPAIR","REPEATABLE","REPOSITORY","REPOSITORIES","REPLACE","REPLACE_IF_NOT_NULL","REPLICA","RESOURCE","RESOURCES","RESTORE","RETURNS","RESUME","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWS","REFRESH","SCHEMA","SCHEMAS","SECOND","SELECT","SEMI","SERIALIZABLE","SESSION","SET","SETS","SET_VAR","SHOW","SMALLINT","SNAPSHOT","SONAME","SPLIT","START","STATUS","STOP","STORAGE","STRING","SUM","SUPERUSER","SYNC","SYSTEM","SWAP","TABLE","TABLES","TABLET","TASK","TEMPORARY","TERMINATED","THAN","TIME","THEN","TIMESTAMP","TINYINT","TO","TRANSACTION","TRIGGERS","TRIM","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNBOUNDED","UNION","UNIQUE","UNSIGNED","USE","USER","USING","UNINSTALL","VALUE","VALUES","VARCHAR","VARIABLES","VERBOSE","VIEW","WARNINGS","WEEK","WHEN","SQLBLACKLIST","WHITELIST","WHERE","WITH","WORK","WRITE","YEAR"],
"hive": ["ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ARCHIVE","ARRAY","AS","ASC","AUTHORIZATION","BEFORE","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BUCKET","BUCKETS","BY","CASCADE","CASE","CAST","CHANGE","CHAR","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMN","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONF","CONTINUE","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DBPROPERTIES","DECIMAL","DEFERRED","DEFINED","DELETE","DELIMITED","DEPENDENCY","DESC","DESCRIBE","DIRECTORIES","DIRECTORY","DISABLE","DISTINCT","DISTRIBUTE","DOUBLE","DROP","ELEM_TYPE","ELSE","ENABLE","END","ESCAPED","EXCHANGE","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTENDED","EXTERNAL","FALSE","FETCH","FIELDS","FILE","FILEFORMAT","FIRST","FLOAT","FOLLOWING","FOR","FORMAT","FORMATTED","FROM","FULL","FUNCTION","FUNCTIONS","GRANT","GROUP","GROUPING","HAVING","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTDRIVER","INPUTFORMAT","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","ITEMS","JAR","JOIN","KEYS","KEY_TYPE","LATERAL","LEFT","LESS","LIKE","LIMIT","LINES","LOAD","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MACRO","MAP","MAPJOIN","MATERIALIZED","MINUS","MINUTE","MONTH","MORE","MSCK","NONE","NOSCAN","NOT","NO_DROP","NULL","OF","OFFLINE","ON","OPTION","OR","ORDER","OUT","OUTER","OUTPUTDRIVER","OUTPUTFORMAT","OVER","OVERWRITE","OWNER","PARTIALSCAN","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLUS","PRECEDING","PRESERVE","PRETTY","PRINCIPALS","PROCEDURE","PROTECTION","PURGE","RANGE","READ","READONLY","READS","REBUILD","RECORDREADER","RECORDWRITER","REDUCE","REGEXP","RELOAD","RENAME","REPAIR","REPLACE","RESTRICT","REVOKE","REWRITE","RIGHT","RLIKE","ROLE","ROLES","ROLLUP","ROW","ROWS","SCHEMA","SCHEMAS","SECOND","SELECT","SEMI","SERDE","SERDEPROPERTIES","SERVER","SET","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SMALLINT","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLE","TABLES","TABLESAMPLE","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TIMESTAMP","TINYINT","TO","TOUCH","TRANSACTIONS","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNDO","UNION","UNIONTYPE","UNIQUEJOIN","UNLOCK","UNSET","UNSIGNED","UPDATE","URI","USE","USER","USING","UTC","UTCTIMESTAMP","VALUES","VALUE_TYPE","VARCHAR","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","YEAR"],
"starrocks": ["ADMIN","AFTER","AGGREGATE","ALL","ALTER","AND","ANALYZE","ANTI","ARRAY","AS","ASC","AUTHORS","BACKEND","BACKUP","BETWEEN","BEGIN","BIGINT","BITMAP","BITMAP_UNION","BOOLEAN","BOTH","BROKER","BACKENDS","BY","BUILTIN","BUCKETS","CANCEL","CASE","CAST","CHAIN","CHAR","CHARSET","CHECK","CLUSTER","CLUSTERS","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED,CONFIG","CONNECTION","CONNECTION_ID","CONSISTENT","COSTS","COUNT","CREATE","CROSS","CUBE","CURRENT","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DECIMAL","DECIMALV2","DECIMAL32","DECIMAL64","DECIMAL128","DECOMMISSION","DEFAULT","DESC","DESCRIBE","DELETE","DISTINCT","DISTINCTPC","DISTINCTPCSA","DISTRIBUTED","DISTRIBUTION","DYNAMIC","DIV","DOUBLE","DROP","DROPP","DUAL","DUPLICATE","DENSE_RANK","ELSE","END","ENGINE","ENGINES","ENTER","ERRORS","EVENTS","EXCEPT","EXISTS","EXPORT","EXTERNAL","EXTRACT","EVERY","FALSE","FOLLOWER","FOLLOWING","FREE","FROM","FILE","FIRST","FLOAT","FOR","FORCE","FORMAT","FRONTEND","FRONTENDS","FULL","FN","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","HASH","HAVING","HELP","HLL","HLL_UNION","HOUR","HUB","IDENTIFIED","IF","IN","INDEX","INDEXES","INFILE","INSTALL","INNER","INSERT","INT","SIGNED","INTERMEDIATE","INTERSECT","INTERVAL","INTO","IGNORE","IS","ISNULL","ISOLATION","JOIN","JSON","KEY","KEYS","KILL","LABEL","LARGEINT","LAST","LEFT","LESS","LEVEL","LIKE","LIMIT","LINK","LOAD","LOCAL","LOCATION","LATERAL","LOGICAL","MATERIALIZED","MAX","MAX_VALUE","MERGE","MIN","MINUTE","MINUS","MIGRATE","MIGRATIONS","MODIFY","MONTH","NAME","NAMES","NEGATIVE","NO","NOT","NULL","NULLS","OBSERVER","OFFSET","ON","ONLY","OPEN","OR","ORDER","OUTER","OUTFILE","OVER","PARTITION","PARTITIONS","PASSWORD","PATH","PAUSE","PIPE","PRECEDING,PLUGIN","PLUGINS","PRIMARY","PROC","PROCEDURE,PROCESSLIST,PROPERTIES,PROPERTY","PERCENTILE","PERCENTILE_UNION","QUERY","QUOTA","RANDOM","RANGE","READ","RECOVER","REGEXP","RELEASE","RENAME","RANK,ROW_NUMBER","REPAIR","REPEATABLE","REPOSITORY","REPOSITORIES","REPLACE","REPLACE_IF_NOT_NULL","REPLICA","RESOURCE","RESOURCES","RESTORE","RETURNS","RESUME","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWS","REFRESH","SCHEMA","SCHEMAS","SECOND","SELECT","SEMI","SERIALIZABLE","SESSION","SET","SETS","SET_VAR","SHOW","SMALLINT","SNAPSHOT","SONAME","SPLIT","START","STATUS","STOP","STORAGE","STRING","SUM","SUPERUSER","SYNC","SYSTEM","SWAP","TABLE","TABLES","TABLET","TASK","TEMPORARY","TERMINATED","THAN","TIME","THEN","TIMESTAMP","TINYINT","TO","TRANSACTION","TRIGGERS","TRIM","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNBOUNDED","UNION","UNIQUE","UNSIGNED","USE","USER","USING","UNINSTALL","VALUE","VALUES","VARCHAR","VARIABLES","VERBOSE","VIEW","WARNINGS","WEEK","WHEN","SQLBLACKLIST","WHITELIST","WHERE","WITH","WORK","WRITE","YEAR"],
"presto": [ "ALL", "ALTER", "ANALYZE", "AND", "AS", "ASC", "ASENSITIVE", "BEFORE", "BETWEEN", "BIGINT"],
"clickhouse": ["ALL", "ALTER", "ANALYZE", "AND", "AS", "ASC", "ASENSITIVE", "BEFORE", "BETWEEN", "BIGINT"],
"phoenix": [ "ALL", "ALTER", "ANALYZE", "AND", "AS", "ASC", "ASENSITIVE", "BEFORE", "BETWEEN", "BIGINT"]
}
...@@ -23,14 +23,16 @@ import {MonacoEditorOptions} from "@/types/Public/data"; ...@@ -23,14 +23,16 @@ import {MonacoEditorOptions} from "@/types/Public/data";
import React, {useState} from "react"; import React, {useState} from "react";
import {editor} from "monaco-editor"; import {editor} from "monaco-editor";
import EditorFloatBtn from "@/components/CustomEditor/EditorFloatBtn"; import EditorFloatBtn from "@/components/CustomEditor/EditorFloatBtn";
import FullscreenBtn from "../FullscreenBtn";
/** /**
* props * props
* todo: * todo:
* 1. Realize full screen/exit full screen in the upper right corner of the editor (Visible after opening) * 1. Realize full screen/exit full screen in the upper right corner of the editor (Visible after opening)
* - The full screen button is done, but the full screen is not implemented
* 2. Callback for right-clicking to clear logs (optional, not required) * 2. Callback for right-clicking to clear logs (optional, not required)
*/ */
export type CodeShowFormProps = { type CodeShowFormProps = {
height?: string; height?: string;
width?: string; width?: string;
language?: string; language?: string;
...@@ -41,6 +43,7 @@ export type CodeShowFormProps = { ...@@ -41,6 +43,7 @@ export type CodeShowFormProps = {
autoWrap?: string; autoWrap?: string;
showFloatButton?: boolean; showFloatButton?: boolean;
refreshLogCallback?: () => void; refreshLogCallback?: () => void;
fullScreenBtn?: boolean;
}; };
const CodeShow = (props: CodeShowFormProps) => { const CodeShow = (props: CodeShowFormProps) => {
...@@ -69,6 +72,7 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -69,6 +72,7 @@ const CodeShow = (props: CodeShowFormProps) => {
autoWrap = "on", // auto wrap autoWrap = "on", // auto wrap
showFloatButton = false, showFloatButton = false,
refreshLogCallback, refreshLogCallback,
fullScreenBtn = false,
} = props; } = props;
const {ScrollType} = editor; const {ScrollType} = editor;
...@@ -77,10 +81,11 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -77,10 +81,11 @@ const CodeShow = (props: CodeShowFormProps) => {
const [loading, setLoading] = useState<boolean>(false); const [loading, setLoading] = useState<boolean>(false);
const [stopping, setStopping] = useState<boolean>(false); const [stopping, setStopping] = useState<boolean>(false);
const [autoRefresh, setAutoRefresh] = useState<boolean>(false); const [autoRefresh, setAutoRefresh] = useState<boolean>(false);
const [fullScreen, setFullScreen] = useState<boolean>(false);
const [editorRef, setEditorRef] = useState<any>(); const [editorRef, setEditorRef] = useState<any>();
const [timer, setTimer] = useState<NodeJS.Timer>(); const [timer, setTimer] = useState<NodeJS.Timer>();
// register TypeScript language service // register TypeScript language service, if language is not set default value is typescript!
monaco.languages.register({ monaco.languages.register({
id: language || "typescript", id: language || "typescript",
}); });
...@@ -113,7 +118,7 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -113,7 +118,7 @@ const CodeShow = (props: CodeShowFormProps) => {
/** /**
* handle stop auto refresh log * handle stop auto refresh log
*/ */
const handleStartAutoRefresh = () => { const handleStartAutoRefresh = async () => {
setAutoRefresh(true); setAutoRefresh(true);
const timerSync = setInterval(() => { const timerSync = setInterval(() => {
handleSyncLog(); handleSyncLog();
...@@ -147,7 +152,6 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -147,7 +152,6 @@ const CodeShow = (props: CodeShowFormProps) => {
* handle scroll to up * handle scroll to up
*/ */
const handleUpScroll = () => { const handleUpScroll = () => {
// @ts-ignore
editorRef?.setScrollPosition({scrollTop: editorRef.getScrollTop() - 500}, ScrollType.Smooth); editorRef?.setScrollPosition({scrollTop: editorRef.getScrollTop() - 500}, ScrollType.Smooth);
}; };
...@@ -158,7 +162,6 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -158,7 +162,6 @@ const CodeShow = (props: CodeShowFormProps) => {
*/ */
const editorDidMount = (editor: editor.IStandaloneCodeEditor) => { const editorDidMount = (editor: editor.IStandaloneCodeEditor) => {
setEditorRef(editor); setEditorRef(editor);
// 在编辑器加载完成后,设置自动布局和自动高亮显示
editor.layout(); editor.layout();
editor.focus(); editor.focus();
}; };
...@@ -176,8 +179,7 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -176,8 +179,7 @@ const CodeShow = (props: CodeShowFormProps) => {
handleBackBottom, handleBackBottom,
handleUpScroll, handleUpScroll,
handleDownScroll, handleDownScroll,
} };
/** /**
...@@ -185,6 +187,10 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -185,6 +187,10 @@ const CodeShow = (props: CodeShowFormProps) => {
*/ */
return (<> return (<>
<div className={"monaco-float"}> <div className={"monaco-float"}>
{/* fullScreen button */}
{fullScreenBtn && <FullscreenBtn isFullscreen={fullScreen} fullScreenCallBack={() => setFullScreen(!fullScreen)}/>}
{/* editor */}
<MonacoEditor <MonacoEditor
width={width} width={width}
height={height} height={height}
...@@ -203,6 +209,8 @@ const CodeShow = (props: CodeShowFormProps) => { ...@@ -203,6 +209,8 @@ const CodeShow = (props: CodeShowFormProps) => {
editorDidMount={editorDidMount} editorDidMount={editorDidMount}
theme={theme ? theme : convertCodeEditTheme()} theme={theme ? theme : convertCodeEditTheme()}
/> />
{/* float button */}
{showFloatButton && <EditorFloatBtn {...restEditBtnProps}/>} {showFloatButton && <EditorFloatBtn {...restEditBtnProps}/>}
</div> </div>
</>); </>);
......
/*
* 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.
*/
import React from "react";
import {FloatButton, Space} from "antd";
import {l} from "@/utils/intl";
import {DownCircleFilled, StopFilled, SyncOutlined, UpCircleFilled} from "@ant-design/icons";
import {PlayCircleFilled} from "@ant-design/icons/lib/icons";
/**
* props
*/
type EditFloatBtnProps = {
refreshLogCallback?: () => void; // refresh log callback
autoRefresh?: boolean; // auto refresh flag
stopping?: boolean; // stop auto refresh flag
loading?: boolean; // loading flag
handleSyncLog?: () => void; // sync log callback
handleStopAutoRefresh?: () => void; // stop auto refresh callback
handleStartAutoRefresh?: () => void; // start auto refresh callback
handleBackTop?: () => void; // back to top callback
handleBackBottom?: () => void; // back to bottom callback
handleUpScroll?: () => void; // up scroll callback
handleDownScroll?: () => void; // down scroll callback
}
const EditFloatBtn: React.FC<EditFloatBtnProps> = (props) => {
/**
* init props
*/
const {
refreshLogCallback,
autoRefresh,
stopping,
loading,
handleSyncLog,
handleStopAutoRefresh,
handleStartAutoRefresh,
handleBackTop,
handleBackBottom,
handleUpScroll,
handleDownScroll
} = props;
/**
* render
*/
return <>
<FloatButton.Group
shape="circle"
className={"float-button"}
>
<Space direction={"vertical"}>
{/* if refreshLogCallback is not null, then show sync button , auto refresh button and stop auto refresh button */}
{refreshLogCallback &&
<>
<FloatButton tooltip={l("button.refresh")} icon={<SyncOutlined spin={loading}/>} onClick={handleSyncLog}/>
{autoRefresh ?
<FloatButton icon={<StopFilled spin={stopping}/>} tooltip={l("button.stopRefresh")} onClick={handleStopAutoRefresh}/> :
<FloatButton icon={<PlayCircleFilled/>} tooltip={l("button.startRefresh")} onClick={handleStartAutoRefresh}/>
}
</>
}
{/* back top */}
<FloatButton.BackTop tooltip={l("button.backTop")} onClick={handleBackTop} visibilityHeight={0}/>
{/* go bottom */}
<FloatButton.BackTop className={"back-bottom"} tooltip={l("button.backBottom")} onClick={handleBackBottom}
visibilityHeight={0}/>
{/* scroll up */}
<FloatButton icon={<UpCircleFilled/>} tooltip={l("button.upScroll")} onClick={handleUpScroll}/>
{/* scroll down */}
<FloatButton icon={<DownCircleFilled/>} tooltip={l("button.downScroll")} onClick={handleDownScroll}/>
</Space>
</FloatButton.Group>
</>;
};
export default EditFloatBtn;
...@@ -69,23 +69,51 @@ const EditorFloatBtn: React.FC<EditFloatBtnProps> = (props) => { ...@@ -69,23 +69,51 @@ const EditorFloatBtn: React.FC<EditFloatBtnProps> = (props) => {
{/* if refreshLogCallback is not null, then show sync button , auto refresh button and stop auto refresh button */} {/* if refreshLogCallback is not null, then show sync button , auto refresh button and stop auto refresh button */}
{refreshLogCallback && {refreshLogCallback &&
<> <>
<FloatButton tooltip={l("button.refresh")} icon={<SyncOutlined spin={loading}/>} onClick={handleSyncLog}/> <FloatButton
{autoRefresh ? tooltip={l("button.refresh")}
<FloatButton icon={<StopFilled spin={stopping}/>} tooltip={l("button.stopRefresh")} onClick={handleStopAutoRefresh}/> : icon={<SyncOutlined spin={loading}/>}
<FloatButton icon={<PlayCircleFilled/>} tooltip={l("button.startRefresh")} onClick={handleStartAutoRefresh}/> onClick={handleSyncLog}
/>
{autoRefresh ?
<FloatButton
icon={<StopFilled spin={stopping}/>}
tooltip={l("button.stopRefresh")}
onClick={handleStopAutoRefresh}
/> :
<FloatButton
icon={<PlayCircleFilled/>}
tooltip={l("button.startRefresh")}
onClick={handleStartAutoRefresh}
/>
} }
</> </>
} }
{/* back top */} {/* back top */}
<FloatButton.BackTop tooltip={l("button.backTop")} onClick={handleBackTop} visibilityHeight={0}/> <FloatButton.BackTop
tooltip={l("button.backTop")}
onClick={handleBackTop}
visibilityHeight={0}
/>
{/* go bottom */} {/* go bottom */}
<FloatButton.BackTop className={"back-bottom"} tooltip={l("button.backBottom")} onClick={handleBackBottom} <FloatButton.BackTop
visibilityHeight={0}/> className={"back-bottom"}
tooltip={l("button.backBottom")}
onClick={handleBackBottom}
visibilityHeight={0}
/>
{/* scroll up */} {/* scroll up */}
<FloatButton icon={<UpCircleFilled/>} tooltip={l("button.upScroll")} onClick={handleUpScroll}/> <FloatButton
icon={<UpCircleFilled/>}
tooltip={l("button.upScroll")}
onClick={handleUpScroll}
/>
{/* scroll down */} {/* scroll down */}
<FloatButton icon={<DownCircleFilled/>} tooltip={l("button.downScroll")} onClick={handleDownScroll}/> <FloatButton
icon={<DownCircleFilled/>}
tooltip={l("button.downScroll")}
onClick={handleDownScroll}
/>
</Space> </Space>
</FloatButton.Group> </FloatButton.Group>
</>; </>;
......
/*
* 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.
*/
import React from "react";
import {FullscreenExitOutlined, FullscreenOutlined} from "@ant-design/icons";
import {l} from "@/utils/intl";
import {FloatButton} from "antd";
type FullscreenBtnProps = {
isFullscreen: boolean;
fullScreenCallBack: () => void;
}
const FullscreenBtn: React.FC<FullscreenBtnProps> = (props) => {
const {isFullscreen, fullScreenCallBack} = props;
return <>
<FloatButton
className={"full-screen"}
icon={isFullscreen ? <FullscreenExitOutlined/> : <FullscreenOutlined/>}
tooltip={isFullscreen ? l("global.fullScreen.exit") : l("global.fullScreen")}
onClick={fullScreenCallBack}/>
</>;
};
export default FullscreenBtn;
...@@ -33,6 +33,7 @@ body, ...@@ -33,6 +33,7 @@ body,
.content { .content {
padding: 32px 0 24px; padding: 32px 0 24px;
} }
.top { .top {
text-align: center; text-align: center;
} }
...@@ -53,7 +54,7 @@ body, ...@@ -53,7 +54,7 @@ body,
left: -30vw; left: -30vw;
top: -5vh; top: -5vh;
display: flex; display: flex;
flex: auto ; flex: auto;
flex-flow: column-reverse; flex-flow: column-reverse;
} }
...@@ -66,29 +67,32 @@ body, ...@@ -66,29 +67,32 @@ body,
} }
.loginformMain { .loginformMain {
display: flex; display: flex;
flex: auto; flex: auto;
max-height: max-content; max-height: max-content;
padding: 0vh 6vh 30vh 2vh; padding: 0vh 6vh 30vh 2vh;
justify-content: center ; justify-content: center;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
background-size: cover; background-size: cover;
background-position: left center; background-position: left center;
background-repeat: no-repeat; background-repeat: no-repeat;
z-index: 1; z-index: 1;
.form{
.form {
position: relative; position: relative;
height: 100%; height: 100%;
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.4); box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.4);
margin-left: 60vw; margin-left: 60vw;
margin-bottom: -15vh; margin-bottom: -15vh;
} }
.loginform { .loginform {
padding: 2vh 2vw; padding: 2vh 2vw;
} }
} }
// .login-form style --- end ---- // .login-form style --- end ----
...@@ -116,6 +120,7 @@ body, ...@@ -116,6 +120,7 @@ body,
::-webkit-scrollbar-corner { ::-webkit-scrollbar-corner {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
// scrollbar style --- end ---- // scrollbar style --- end ----
.colorWeak { .colorWeak {
...@@ -251,6 +256,15 @@ ol { ...@@ -251,6 +256,15 @@ ol {
transform: rotate(180deg); transform: rotate(180deg);
} }
} }
.full-screen {
position: absolute;
transform: translate(5%, 15%);
top: 0;
right: 2vw;
width: 40px;
height: 40px;
}
} }
......
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
'menu.registration.document': 'Document', 'menu.registration.document': 'Document',
'menu.registration.fragment': 'Global Variable', 'menu.registration.fragment': 'Global Variable',
'menu.registration.gitprojects': 'Git Project(Beta)', 'menu.registration.gitprojects': 'Git Project(Beta)',
'menu.registration.udf': 'UDF Template',
'menu.auth': 'Auth Center', 'menu.auth': 'Auth Center',
'menu.auth.user': 'User', 'menu.auth.user': 'User',
'menu.auth.role': 'Role', 'menu.auth.role': 'Role',
...@@ -59,7 +60,6 @@ export default { ...@@ -59,7 +60,6 @@ export default {
'menu.auth.tenant': 'Tenant', 'menu.auth.tenant': 'Tenant',
'menu.settings': 'Setting Center', 'menu.settings': 'Setting Center',
'menu.settings.flinksetting': 'Flink Settings', 'menu.settings.flinksetting': 'Flink Settings',
'menu.settings.udf': 'UDF Template',
'menu.settings.system': 'System Info', 'menu.settings.system': 'System Info',
'menu.settings.process': 'Process List', 'menu.settings.process': 'Process List',
'menu.settings.services': 'Servers List', 'menu.settings.services': 'Servers List',
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
export default { export default {
//-------------------------------- common --------------------------------
'layouts.userLayout.title': 'Dinky Real-time Computing Platform', 'layouts.userLayout.title': 'Dinky Real-time Computing Platform',
'login.error': 'Login failed, please try again! Reason:{msg}', 'login.error': 'Login failed, please try again! Reason:{msg}',
'login.result': '{msg}\t\t{time}', 'login.result': '{msg}\t\t{time}',
...@@ -50,107 +51,8 @@ export default { ...@@ -50,107 +51,8 @@ export default {
'about.communityRules.5': 'about.communityRules.5':
' Register who is using Dinky, and can enter the enterprise user group to provide technical support. ', ' Register who is using Dinky, and can enter the enterprise user group to provide technical support. ',
//-------------------------------- auth center --------------------------------
'datastudio.editor.execute.warn': 'The execution mode of this task is [{type}], which does not support SQL query, please save it manually and use the button on the right - job submission', // user
'datastudio.editor.submiting': 'The new task [{jobName}] is executing',
'datastudio.editor.exec.success': 'Execution succeeded',
'datastudio.editor.exec.error': 'Execution failed',
'datastudio.editor.async.submit': 'Submit jobs asynchronously',
'datastudio.editor.async.submiting': 'The task [{jobName}] is submitting asynchronously',
'datastudio.editor.async.submitConfirm': 'Are you sure to asynchronously submit the job [{jobName}] to its configured cluster? Please make sure your work has been saved! ',
'datastudio.editor.async.success': 'Asynchronous submission succeeded',
'datastudio.editor.async.error': 'Asynchronous submission failed',
'datastudio.editor.query.explan.error': 'Failed to get job execution plan, reason:\n{msg}',
'datastudio.editor.query.ds.error': 'Failed to get dolphin data, reason:\n{msg}',
'datastudio.editor.release.job': 'Release job',
'datastudio.editor.release.jobConfirm': 'Are you sure to release the job [{jobName}]? Please make sure your work has been saved! ',
'datastudio.editor.release.job.success': 'Release job [{jobName}] succeeded',
'datastudio.editor.release.job.error': 'Publish job [{jobName}] failed',
'datastudio.editor.edit.job': 'Maintenance job',
'datastudio.editor.edit.jobConfirm': 'Confirm the maintenance job [{jobName}]? ',
'datastudio.editor.edit.job.success': 'Maintenance job [{jobName}] succeeded',
'datastudio.editor.online.job': 'Online job',
'datastudio.editor.online.jobConfirm': 'Are you sure you want to go online with [{jobName}]? ',
'datastudio.editor.online.job.success': 'Online job [{jobName}] succeeded',
'datastudio.editor.online.job.error': 'Online job [{jobName}] failed, reason:\n {msg}',
'datastudio.editor.stop.job': 'Stop job',
'datastudio.editor.stop.jobConfirm': 'Are you sure to stop the job [{jobName}]? ',
'datastudio.editor.stop.job.success': 'Stop job [{jobName}] successfully',
'datastudio.editor.stop.job.error': 'Stop job [{jobName}] failed, reason:\n {msg}',
'datastudio.editor.offline.job': 'Offline job',
'datastudio.editor.offline.jobConfirm': 'Are you sure about offline job [{jobName}]? ',
'datastudio.editor.offline.job.success': 'Offline job [{jobName}] succeeded',
'datastudio.editor.offline.job.error': 'Offline job [{jobName}] failed, reason:\n {msg}',
'datastudio.editor.delete.job': 'Delete job',
'datastudio.editor.delete.jobConfirm': 'Are you sure to cancel the job [{jobName}]? ',
'datastudio.editor.delete.job.success': 'Logout job [{jobName}] succeeded',
'datastudio.editor.delete.job.error': 'Delete job [{jobName}] failed, reason:\n {msg}',
'datastudio.editor.recovery.job': 'Recovery Job',
'datastudio.editor.recovery.jobConfirm': 'Are you sure to restore job [{jobName}]? ',
'datastudio.editor.recovery.job.success': 'The recovery job [{jobName}] succeeded',
'datastudio.editor.api.doc': 'API Manual',
'datastudio.editor.usehelp': 'Use help',
'datastudio.editor.clearConsole': 'Clear Console',
'datastudio.editor.fullScreen': 'FullScreen Development',
'datastudio.editor.fullScreen.exit': 'Exit FullScreen',
'datastudio.editor.save': 'Save the current FlinkSql and Config',
'datastudio.editor.export': 'Export the current Sql and Config',
'datastudio.editor.check': 'Check current FlinkSql',
'datastudio.editor.explan': 'Get the current FlinkSql execution graph',
'datastudio.editor.explan.tip': 'JobPlan for FlinkSQL',
'datastudio.editor.exec': 'Execute the current SQL',
'datastudio.editor.exec.tip': 'Submit the current job to the cluster, please save it manually before submitting',
'datastudio.editor.push.ds': 'Push to dolphin scheduler',
'datastudio.editor.push.ds.query.error': 'Failed to get dolphin task definition set, reason:\n{msg}',
'datastudio.editor.push.ds.timeout.strategy': 'Timeout strategy',
'datastudio.editor.push.ds.timeout.Alert': 'Timeout warning',
'datastudio.editor.push.ds.timeout.error': 'Timeout failed',
'datastudio.editor.push.ds.timeout.strategy.tip': 'A timeout strategy must be selected',
'datastudio.editor.push.ds.add.job.error': 'Failed to create job, reason:\n{msg}',
'datastudio.editor.push.ds.prejob': 'Pre-job',
'datastudio.editor.push.ds.prejob.tip': 'Select prejob task',
'datastudio.editor.push.ds.job.priority': 'Priority',
'datastudio.editor.push.ds.errortry.count': 'Number of failed retries',
'datastudio.editor.push.ds.errortry.min': 'Failure retry interval (minutes)',
'datastudio.editor.push.ds.delayed.time': 'Delayed execution time (minutes)',
'datastudio.editor.push.ds.timeout.min': 'Timeout Alert duration (minutes)',
'datastudio.editor.push.ds.running.tag': 'running flag',
'datastudio.editor.stop': 'Stop',
'datastudio.editor.release': 'Release, will not be able to modify after release',
'datastudio.editor.edit': 'Maintenance, click to enter the editing state',
'datastudio.editor.online': 'Online, automatic recovery, Alerts, etc. will take effect after online',
'datastudio.editor.offline': 'Offline, will enter the latest release status',
'datastudio.editor.delete': 'Logout, will enter the recycle bin',
'datastudio.editor.recovery': 'Recovery, will enter maintenance mode',
'datastudio.editor.api': 'View API',
'datastudio.editor.help': 'View usage help',
'datastudio.sql.query': 'SQL query',
'datastudio.submit.job': 'Submit job',
'devops.jobstatus.SUCCESS': 'Success',
'devops.jobstatus.CREATED': 'Created',
'devops.jobstatus.INITIALIZING': 'Initialize',
'devops.jobstatus.RUNNING': 'Running',
'devops.jobstatus.FINISHED': 'Finished',
'devops.jobstatus.FAILING': 'Abnormal',
'devops.jobstatus.FAILED': 'Failed',
'devops.jobstatus.SUSPENDED': 'Paused',
'devops.jobstatus.CANCELLING': 'Canceling',
'devops.jobstatus.CANCELED': 'Canceled',
'devops.jobstatus.RESTARTING': 'Restarting',
'devops.jobstatus.UNKNOWN': 'Unknown',
'devops.jobstatus.ALL': 'ALL',
'devops.LastUpdateTime': 'LastUpdateTime',
'settings.UserManagement': 'User Management',
'settings.Flink': 'Flink Setting',
'settings.FlinkRestAPI': 'Using Rest API',
'settings.FlinkURLSplit': 'FlinkSQL Statement Separator',
'settings.FlinkJobID': 'Maximum Waiting Time For Getting A Job ID (seconds)',
'settings.FlinkNoSetting': 'Not Setting',
'settings.FlinkNoUseSetting': 'After The Flink Task Is Enabled, Operations Such As Savepoint And Stop Are Performed Through The RestAPI Of JobManager',
'user.manager': 'User Management', 'user.manager': 'User Management',
'user.username': 'User Name', 'user.username': 'User Name',
'user.jobnumber': 'Job Number', 'user.jobnumber': 'Job Number',
...@@ -173,7 +75,7 @@ export default { ...@@ -173,7 +75,7 @@ export default {
'user.repeatpwdPlaceholder': 'Please enter repeat new password', 'user.repeatpwdPlaceholder': 'Please enter repeat new password',
'user.oldNewPwdNoMatch': 'The new passwords do not match', 'user.oldNewPwdNoMatch': 'The new passwords do not match',
// tenant
'tenant.TenantManager': 'Tenant Management', 'tenant.TenantManager': 'Tenant Management',
'tenant.TenantCode': 'Tenant Code', 'tenant.TenantCode': 'Tenant Code',
'tenant.AssignUser': 'Assign Users', 'tenant.AssignUser': 'Assign Users',
...@@ -185,7 +87,7 @@ export default { ...@@ -185,7 +87,7 @@ export default {
'tenant.delete': 'Delete Tenant', 'tenant.delete': 'Delete Tenant',
'tenant.deleteConfirm': 'Are you sure you want to delete this Tenant?', 'tenant.deleteConfirm': 'Are you sure you want to delete this Tenant?',
// role
'role.roleManagement': 'Role Management', 'role.roleManagement': 'Role Management',
'role.roleCode': 'Role Code', 'role.roleCode': 'Role Code',
'role.roleName': 'Role Name', 'role.roleName': 'Role Name',
...@@ -200,7 +102,7 @@ export default { ...@@ -200,7 +102,7 @@ export default {
'role.delete': 'Delete Role', 'role.delete': 'Delete Role',
'role.deleteConfirm': 'Are you sure you want to delete this Role?', 'role.deleteConfirm': 'Are you sure you want to delete this Role?',
// rowPermissions
'rowPermissions.management': 'Row Permissions Management', 'rowPermissions.management': 'Row Permissions Management',
'rowPermissions.tableName': 'Table name', 'rowPermissions.tableName': 'Table name',
'rowPermissions.tableNamePlaceholder': 'Please enter table name', 'rowPermissions.tableNamePlaceholder': 'Please enter table name',
...@@ -213,310 +115,8 @@ export default { ...@@ -213,310 +115,8 @@ export default {
'rowPermissions.update': 'Update Row Permissions', 'rowPermissions.update': 'Update Row Permissions',
'metadata.NoDatabaseSelected': 'No database selected', //-------------------------------- register center --------------------------------
'metadata.Application': 'Application', // alert instance
'metadata.TableInfo': 'Table Info',
'metadata.Description': 'Description',
'metadata.DataSearch': 'Data Search',
'metadata.GenerateSQL': 'Generate SQL',
'metadata.FieldInformation': 'Field Info',
'metadata.catalogSelect': 'Select Catalog & Database',
'metadata.catalogRefresh': 'Refresh Catalog',
'metadata.catalogRefreshSuccess': 'Refresh Catalog Success',
'metadata.selectDatabase': 'Select Database',
'TableData.QueryConditions': 'Query Conditions',
'TableData.sorting': 'Sorting',
'TableData.data': 'Data',
'TableData.search': 'Search',
'datastudio.label.info': 'Console',
'datastudio.label.result': 'Result',
'datastudio.label.result.query.latest.data': 'Get the latest data',
'datastudio.explain.validate.msg': 'FlinkSql Syntax and logic check',
'datastudio.explain.validate': 'Validating...',
'datastudio.explain.validate.allright': 'All Right',
'datastudio.explain.validate.error': 'There are errors, a total of {errorCount}',
'datastudio.explain.validate.grammar.right': 'Grammar Right',
'datastudio.explain.validate.grammar.error': 'Grammar Error',
'datastudio.explain.validate.logic.right': 'Logical Right',
'datastudio.explain.validate.logic.error': 'Logical Error',
'datastudio.label.lineage': 'Lineage',
'datastudio.label.lineage.export': 'Export StreamGraphPlan',
'datastudio.label.lineage.streamplan': 'of StreamGraphPlan',
'datastudio.label.lineage.query.error': 'Failed to get job lineage, reason:\n {msg}',
'datastudio.label.lineage.recalculate': 'Recalculate Lineage',
'datastudio.label.lineage.calculate': 'Calculate Lineage',
'datastudio.label.lineage.expand.field': 'Expand Field',
'datastudio.label.lineage.collapse.field': 'Collapse Field',
'datastudio.label.lineage.expand.lineage': 'Expand Lineage',
'datastudio.label.lineage.collapse.lineage': 'Collapse Lineage',
'metadata.Console': 'SQL Console',
'metadata.help.noSqlSelect': 'No Sql Select!',
'metadata.help.selectSql': 'please choose sql in editor',
'metadata.help.exec': 'exec sql',
'metadata.exec.result.msg': 'Execution Time: {time} s, Row count: {rowCount}',
'metadata.exec.result.msghelp': 'row count more than 500, only show top 500',
'datastudio.label.process': 'Process',
'datastudio.label.process.detail': 'Detail',
'datastudio.label.process.savepoint': 'SavePoint',
'datastudio.label.process.trigger': 'Trigger',
'datastudio.label.process.cancel': 'Cancel',
'datastudio.label.process.stop': 'Stop',
'datastudio.label.process.stopconfirm': 'Are you sure to stop [{jobid}]?',
'datastudio.label.process.stopsuccess': 'Stop Succeeded',
'datastudio.label.process.stopfailed': 'Stop Failed',
'datastudio.label.process.switchcluster': 'Select Flink cluster',
'datastudio.label.history': 'History',
'datastudio.label.history.exec': 'Execution history',
'datastudio.label.history.delete': 'Delete execution records',
'datastudio.label.history.deleteConfirm': 'Are you sure to delete this execution record? ',
'datastudio.label.history.execConfig': 'Execution Config',
'datastudio.label.history.statement': 'FlinkSql Statement',
'datastudio.label.history.result': 'Preview Data',
'datastudio.label.history.error': 'Exception Info',
'datastudio.label.history.jobId': 'Job ID',
'datastudio.label.history.jobName': 'Job name',
'datastudio.label.history.runningCluster': 'Running Cluster',
'datastudio.label.history.session': 'Shared Session',
'datastudio.label.history.taskType': 'Task Type',
'datastudio.label.history.clusterId': 'Cluster ID',
'datastudio.label.history.clusterConfigId': 'Cluster Config ID',
'datastudio.label.history.changelog': 'Print ChangeLog',
'datastudio.label.history.maxRow': 'Max Rows',
'datastudio.label.history.autoStop': 'Auto Stop',
'datastudio.label.history.useSqlFragment': 'Global Variables',
'datastudio.label.history.useStatementSet': 'StatementSet',
'datastudio.label.history.parallelism': 'Parallelism',
'datastudio.label.history.checkpoint': 'Checkpoint',
'datastudio.label.history.savePointStrategy': 'SavePoint Strategy',
'datastudio.label.history.savePointPath': 'SavePoint Path',
'datastudio.label.function': 'Function',
'datastudio.label.directory': 'Directory',
'datastudio.label.structure': 'Structure',
'datastudio.label.session': 'Session',
'datastudio.label.cluster': 'Cluster',
'datastudio.label.datasource': 'Data Source',
'datastudio.label.meta': 'Meta Data',
'datastudio.label.globalvariable': 'Global Variable',
'datastudio.label.guidepage': 'Guide Page',
'datastudio.label.jobConfig': 'Job Config',
'datastudio.label.jobConfig.cluster': 'Flink cluster',
'datastudio.label.jobConfig.cluster.tip': 'Select Flink cluster',
'datastudio.label.jobConfig.clusterConfig': 'Flink cluster Config',
'datastudio.label.jobConfig.clusterConfig.tip1': 'Select Flink cluster Config for remote submission tasks in [{type}] mode',
'datastudio.label.jobConfig.clusterConfig.tip2': 'Select Flink cluster Config',
'datastudio.label.jobConfig.jar': 'Executable Jar',
'datastudio.label.jobConfig.jar.tip1': 'Select executable Jar for remote submission of Jar tasks in [{type}] mode. When the parameter item has a value, only the executable Jar will be submitted.',
'datastudio.label.jobConfig.jar.tip2': 'Select executable Jar, not required',
'datastudio.label.jobConfig.execmode.tip': 'Specify the execution mode of the Flink task, the default is Local',
'datastudio.label.jobConfig.execmode.k8s.tip': 'Specify the execution mode of the Flink task, the default is KUBERNETES_APPLICATION',
'datastudio.label.jobConfig.flinksql.env': 'FlinkSQL environment',
'datastudio.label.jobConfig.flinksql.env.tip1': 'Select the FlinkSQL execution environment of the current task, and the environment statement will be executed in advance. The default is none. ',
'datastudio.label.jobConfig.flinksql.env.tip2': 'Select FlinkSQL environment, optional',
'datastudio.label.jobConfig.parallelism': 'Parallelism',
'datastudio.label.jobConfig.parallelism.tip': 'Set the parallelism of Flink tasks, the minimum is 1',
'datastudio.label.jobConfig.insert': 'Insert StatementSet',
'datastudio.label.jobConfig.insert.tip': '[Enhanced Features] Enable the statement set mechanism, multiple Insert statements will be combined into one JobGraph before submission, and the Select statement is invalid',
'datastudio.label.jobConfig.fragment': 'Global variables',
'datastudio.label.jobConfig.fragment.tip': '[Enhanced Features] Enable FlinkSql global variables, use ":=" to define (end with ";"), "${}" to call',
'datastudio.label.jobConfig.batchmode': 'Batch Mode',
'datastudio.label.jobConfig.batchmode.tip': 'Use batch mode',
'datastudio.label.jobConfig.checkPoint': 'Checkpoint interval',
'datastudio.label.jobConfig.checkPoint.tip': 'Set the checkpoint step size of the Flink task, 0 means not enabled',
'datastudio.label.jobConfig.savePointStrategy': 'SavePointStrategy',
'datastudio.label.jobConfig.savePointStrategy.tip': 'Specify the SavePoint strategy, the default is disabled',
'datastudio.label.jobConfig.savePointpath': 'SavePointpath',
'datastudio.label.jobConfig.savePointpath.tip1': 'Restore Flink task from SavePointPath',
'datastudio.label.jobConfig.savePointpath.tip2': 'hdfs://...',
'datastudio.label.jobConfig.alertGroup': 'Alert Group',
'datastudio.label.jobConfig.alertGroup.tip': 'Select alert group',
'datastudio.label.jobConfig.other': 'Other Config',
'datastudio.label.jobConfig.other.tip': 'Other Config items will be applied to the execution environment, such as pipeline.name',
'datastudio.label.jobConfig.addConfig': 'Add Config item',
'datastudio.label.jobConfig.addConfig.params': 'parameters',
'datastudio.label.jobConfig.addConfig.value': 'value',
'datastudio.label.execConfig': 'Execution Config',
'datastudio.label.execConfig.selectDatabase': 'Select DataSource',
'datastudio.label.execConfig.selectDatabase.tip': 'Select the data source for Sql statement execution',
'datastudio.label.execConfig.preview.result': 'Preview Result',
'datastudio.label.execConfig.preview.result.tip': 'Open the preview result, it will run synchronously and return the data result',
'datastudio.label.execConfig.changelog': 'Print ChangeLog',
'datastudio.label.execConfig.changelog.tip': 'Open the print stream, it will run synchronously and return the ChangeLog containing op information, it is not enabled by default and returns the final result Table',
'datastudio.label.execConfig.maxrow': 'Maximum number of rows',
'datastudio.label.execConfig.maxrow.tip': 'The maximum number of rows of preview data',
'datastudio.label.execConfig.autostop': 'AutoStop',
'datastudio.label.execConfig.autostop.tip': 'Enable autostop, it will automatically stop the task after capturing the maximum number of records',
'datastudio.label.savepoint': 'Savepoint',
'datastudio.label.version': 'Version History',
'datastudio.label.version.id': 'Version ID',
'datastudio.label.version.diff': 'Version Diff',
'datastudio.label.version.rollback': 'Rollback',
'datastudio.label.version.rollback.flinksql': 'Rollback Flink SQL Version',
'datastudio.label.version.rollback.flinksqlConfirm': 'Are you sure to RollBack the Flink SQL version to [{versionId}]? ',
'datastudio.label.version.diff.tip': 'Only compare with the content in the current editor',
'datastudio.label.version.leftTitle': 'Version number: [{versionId}] Creation time: [{createTime}]',
'datastudio.label.version.rightTitle': 'Version number: [current edited version] creation time: [{createTime}] last update time: [{updateTime}]',
'datastudio.label.jobInfo': 'Job Info',
'datastudio.label.jobInfo.id': 'Job ID',
'datastudio.label.jobInfo.name': 'job name',
'datastudio.label.jobInfo.dialect': 'Dialect',
'datastudio.label.jobInfo.versionId': 'version number',
'datastudio.label.udfInfo': 'UDF Info',
'datastudio.label.udfInfo.classname': 'class name',
'datastudio.label.udfInfo.auto': 'Automatic recognition',
'datastudio.label.registcluster': 'Regist Flink Cluster',
'datastudio.label.registclusterconfig': 'Regist Cluster Config',
'datastudio.label.registjar': 'Regist Jar',
'datastudio.label.registdatasource': 'Regist Datasource',
'datastudio.label.metadata': 'Metadata',
'datastudio.label.alertInstance': 'Registration Alert Instance',
'datastudio.label.alertGroup': 'Alert Group',
'datastudio.label.val': 'Register Global Variables',
'datastudio.label.udfTemplate': 'UDF Template',
'datastudio.label.systemInfo': 'System Info',
'datastudio.label.registdocument': 'Regist Document',
'datastudio.label.configsystemconfig': 'Config System Config',
'datastudio.label.officialdocumentation': 'Official Documentation',
'datastudio.label.quickguide': 'Quick Guide',
'datastudio.label.welcomeuse': 'Welcome to Use Dinky v{version}',
'datastudio.label.dinkydescribe': 'Real Time is the Future,Dinky is the best partner of Flink, making Flink SQL easier to use, and is committed to the construction of stream batch integrated development platform',
'datastudio.label.maxrows': 'Max Rows',
'devops.result.success': 'Successful',
'devops.lable.allonline': 'One-Click-Online',
'devops.lable.alloffline': 'One-Click-Offline',
'devops.lable.onlinelist': 'Online List',
'devops.lable.offlinelist': 'Offline List',
'devops.lable.instance': 'Instance',
'devops.lable.online': 'Online',
'devops.lable.offline': 'Offline',
'devops.lable.pleaseSelect': 'Please Select',
'devops.lable.online.list': 'Online Detail List',
'devops.lable.offline.list': 'Offline Detail List',
'devops.lable.line.name': 'Name',
'devops.lable.line.status': 'Status',
'devops.lable.line.code': 'Result',
'devops.lable.line.message': 'Message',
'devops.lable.line.piontConfig': 'Point Config Selection',
'devops.lable.line.piontConfig.default': 'Default SavePoint',
'devops.lable.line.piontConfig.last': 'Latest SavePoint',
'rc.clusterManagement': 'Cluster Instance Management',
'rc.cluster.instanceName': 'Instance name',
'rc.cluster.aliasPlaceholder': 'Please enter alias!',
'rc.cluster.alias': 'Instance alias',
'rc.cluster.type': 'Type',
'rc.cluster.jobManagerAddress': 'JobManger Address',
'rc.cluster.version': 'Version',
'rc.cluster.jobManagerHaAddress': 'JobManger HA address',
'rc.cluster.instanceId': 'Instance Id',
'rc.cluster.create': 'Create cluster',
'rc.cluster.modify': 'Modify Cluster Instance',
'rc.cluster.delete': 'Delete Flink Instance',
'rc.cluster.deleteConfirm': 'Are you sure you want to delete this Flink instance? ',
'rc.cluster.recycle': 'Recycle Flink instance',
'rc.cluster.recycleConfirm': 'Are you sure to recycle all automatically created and expired Flink instances? ',
'rc.cluster.recycle.success' : 'Total Of {total} Flink instances were successfully recycled',
'rc.cluster.enable': 'Enable Flink instance',
'rc.cluster.enableConfirm': 'Are you sure you want to enable this Flink instance? ',
'rc.cluster.disable': 'Disable Flink instance',
'rc.cluster.disableConfirm': 'Are you sure you want to disable this Flink instance? ',
'rc.cluster.disableTotalOf': 'Total Of {total} Flink instances Is Disabled',
'rc.cluster.jobManagerHaAddress.validate.slash': 'No rules! Cannot contain /',
'rc.cluster.jobManagerHaAddress.validate.port': 'Does not meet the rules! Port number range [0-65535]',
'rc.cluster.jobManagerHaAddressPlaceholderText': 'Add the RestApi address of the JobManager of the Flink cluster. In HA mode, the addresses are separated by commas, for example: 192.168.123.101:8081,192.168.123.102:8081,192.168.123.103:8081',
'rc.cluster.jobManagerHaAddressPlaceholder': 'Please enter the JobManager HA address!',
'rc.cluster.typePlaceholder': 'Please select cluster type!',
'rc.cluster.namePlaceholder': 'Please enter name!',
'rc.clusterConfigManagement': 'Cluster Config Management',
'rc.clusterConfig.name': 'Cluster Config Name',
'rc.clusterConfig.id': 'Cluster Config ID',
'rc.clusterConfig.type': 'Type',
'rc.clusterConfig.hadoopConfigPath': 'Hadoop Config file path',
'rc.clusterConfig.flinkConfigPath': 'Flink Config file path',
'rc.clusterConfig.libPath': 'lib path',
'rc.clusterConfig.sqlSubmitJarPath': 'Jar FilePath',
'rc.clusterConfig.FlinkSQLJarMainParameter': "Jar's Input Params",
'rc.clusterConfig.FlinkSQLJarMainClass': "Jar's Mian Class",
'rc.clusterConfig.isAvailable': 'Is Available',
'rc.clusterConfig.available': 'Available',
'rc.clusterConfig.notAvailable': 'Not Available',
'rc.clusterConfig.create': 'Create Cluster Config',
'rc.clusterConfig.modify': 'Modify Cluster Config',
'rc.clusterConfig.delete': 'Delete Cluster Config',
'rc.clusterConfig.deleteConfirm': 'Are you sure you want to delete this Cluster Config? ',
'rc.clusterConfig.start': 'Start Session Cluster',
'rc.clusterConfig.startConfirm': 'Are you sure you want to start session cluster by this cluster config? ',
'rc.clusterConfig.enable': 'Enable Cluster Config',
'rc.clusterConfig.enableConfirm': 'Are you sure you want to enable this Cluster Config? ',
'rc.clusterConfig.disable': 'Disable Cluster Config',
'rc.clusterConfig.disableConfirm': 'Are you sure you want to disable this Cluster Config? ',
'rc.clusterConfig.disableTotalOf': 'There are {total} of disabled Cluster Config',
'rc.clusterConfig.baseConfig': 'Basic Config',
'rc.clusterConfig.otherConfig': 'Other Config',
'rc.clusterConfig.addDefineConfig': 'Add a Custom Item',
'rc.clusterConfig.typePlaceholder': 'Please select cluster type!',
'rc.clusterConfig.namePlaceholder': 'Please enter Name!',
'rc.clusterConfig.hadoopConfigPathPlaceholder': 'Please enter the hadoop Config file path, the value is /etc/hadoop/conf! ',
'rc.clusterConfig.hadoopConfigPathHelp': 'Specify the Config file path (without / at the end), the following files need to be included: core-site.xml, hdfs-site.xml, yarn-site.xml! ',
'rc.clusterConfig.defineConfig.highPriority': 'Custom Config (high priority)',
'rc.clusterConfig.flinkConfig': 'Flink Config',
'rc.clusterConfig.submitSqlConfig': 'Submit FlinkSQL Config (Required in Application mode)',
'rc.clusterConfig.hadoopConfig': 'Hadoop Config',
'rc.clusterConfig.k8sConfig': 'Kubernetes Config',
'rc.clusterConfig.libPathPlaceholder': 'Please enter the hdfs path of lib! Values such as hdfs:///flink/lib',
'rc.clusterConfig.libPathHelp': 'Specify the hdfs path of lib (without / at the end), which needs to include Flink runtime dependencies',
'rc.clusterConfig.flinkConfigPathPlaceholder': 'Please enter the flink-conf.yaml path! Values like /opt/module/flink/conf ',
'rc.clusterConfig.flinkConfigPathHelp': 'Please enter the flink-conf.yaml path! Values like /opt/module/flink/conf ',
// kubernets page
'rc.clusterConfig.appConfig': 'App Config',
'rc.clusterConfig.kubernets.version': 'Flink Version',
'rc.clusterConfig.kubernets.unsupportBatch': 'Not support batch',
'rc.clusterConfig.submit.type': 'Deploy mode',
'rc.clusterConfig.jar.path': 'jar path in image',
'rc.clusterConfig.jar.class': 'main class',
'rc.clusterConfig.jar.args': 'app args',
'rc.clusterConfig.help.kubernets.namespace': 'kubernets namespace',
'rc.clusterConfig.help.kubernets.image': 'Flink image',
'rc.clusterConfig.help.kubernets.jmcpu': 'jobmanager cpu config',
'rc.clusterConfig.help.kubernets.tmcpu': 'taskmanager cpu config',
'rc.clusterConfig.help.kubernetes.configfile': 'The default ~/.kube/config, fill in the kube file path, which can be used as a remote connection',
'rc.clusterConfig.help.kubernets.account': 'kubernets account,default is default',
'rc.clusterConfig.help.kubernets.defaultTemplate': 'Optional,default JobManager,TaskManager template conf!',
'rc.clusterConfig.help.kubernets.jobManagerTemplate': 'Optional,JobManager template ',
'rc.clusterConfig.help.kubernets.taskManagerTemplate': 'Optional,TaskManager template',
'rc.clusterConfig.help.kubernets.jobManagerMemory': 'Optional,JobManager memory',
'rc.clusterConfig.help.kubernets.taskManagerMemory': 'Optional,taskManagerMemory memory',
'rc.ai.management': 'Alert Instance Management', 'rc.ai.management': 'Alert Instance Management',
'rc.ai.name': 'Name', 'rc.ai.name': 'Name',
'rc.ai.namePleaseHolder': 'please enter Alert instance name', 'rc.ai.namePleaseHolder': 'please enter Alert instance name',
...@@ -529,7 +129,6 @@ export default { ...@@ -529,7 +129,6 @@ export default {
'rc.ai.email': 'Email Config', 'rc.ai.email': 'Email Config',
'rc.ai.feishu': 'FeiShu Config', 'rc.ai.feishu': 'FeiShu Config',
'rc.ai.wechat': 'WeChat Config', 'rc.ai.wechat': 'WeChat Config',
'rc.ai.webhookPleaseHolder': 'please enter webhook url', 'rc.ai.webhookPleaseHolder': 'please enter webhook url',
'rc.ai.keywordPleaseHolder': 'please enter keyword', 'rc.ai.keywordPleaseHolder': 'please enter keyword',
'rc.ai.secretPleaseHolder': 'please enter secret', 'rc.ai.secretPleaseHolder': 'please enter secret',
...@@ -553,8 +152,6 @@ export default { ...@@ -553,8 +152,6 @@ export default {
'rc.ai.emailPasswordPleaseHolder': 'Please enter the email password! Note: the password is the authorization code', 'rc.ai.emailPasswordPleaseHolder': 'Please enter the email password! Note: the password is the authorization code',
'rc.ai.smtpSslTrustPleaseHolder': 'Please enter a trusted domain', 'rc.ai.smtpSslTrustPleaseHolder': 'Please enter a trusted domain',
'rc.ai.xls.file.pathPleaseHolder': 'Please enter the XLS storage directory! The default is /tmp/xls', 'rc.ai.xls.file.pathPleaseHolder': 'Please enter the XLS storage directory! The default is /tmp/xls',
'rc.ai.webhook': 'WebHook Url', 'rc.ai.webhook': 'WebHook Url',
'rc.ai.keyword': 'KeyWord', 'rc.ai.keyword': 'KeyWord',
'rc.ai.secret': 'Secret', 'rc.ai.secret': 'Secret',
...@@ -582,7 +179,6 @@ export default { ...@@ -582,7 +179,6 @@ export default {
'rc.ai.smtpSslTrust': 'Smtp Ssl Trust', 'rc.ai.smtpSslTrust': 'Smtp Ssl Trust',
'rc.ai.xls.file.path': 'XLS storage directory', 'rc.ai.xls.file.path': 'XLS storage directory',
'rc.ai.msgtype': 'Send Message Type', 'rc.ai.msgtype': 'Send Message Type',
'rc.ai.sendType.app': 'Application', 'rc.ai.sendType.app': 'Application',
'rc.ai.sendType.wechat': 'WeChat', 'rc.ai.sendType.wechat': 'WeChat',
'rc.ai.markdown': 'MarkDown', 'rc.ai.markdown': 'MarkDown',
...@@ -592,6 +188,7 @@ export default { ...@@ -592,6 +188,7 @@ export default {
'rc.ai.attachment': 'Attachment', 'rc.ai.attachment': 'Attachment',
'rc.ai.tableAttachment': 'Table And Attachment', 'rc.ai.tableAttachment': 'Table And Attachment',
// alert group
'rc.ag.management': 'Alert Group Management ', 'rc.ag.management': 'Alert Group Management ',
'rc.ag.name': 'Alert Group Name', 'rc.ag.name': 'Alert Group Name',
'rc.ag.groupid': 'Alert group ID ', 'rc.ag.groupid': 'Alert group ID ',
...@@ -604,45 +201,7 @@ export default { ...@@ -604,45 +201,7 @@ export default {
'rc.ag.deleteConfirm': 'Are you sure to delete this Alert group? ', 'rc.ag.deleteConfirm': 'Are you sure to delete this Alert group? ',
'rc.ag.alertCount': 'Alert Count: {count}', 'rc.ag.alertCount': 'Alert Count: {count}',
// doc
'rc.db.Management': 'DataSource',
'rc.db.name': 'Name',
'rc.db.groupName': 'Group Type',
'rc.db.url': 'Database Connection URL',
'rc.db.username': 'Username',
'rc.db.password': 'Password',
'rc.db.flinkConfig': 'Flink Connection Config',
'rc.db.flinkTemplate': 'Flink Connection Template',
'rc.db.create': 'Create DataSource',
'rc.db.modify': 'Modify DataSource',
'rc.db.delete': 'Delete DataSource',
'rc.db.deleteConfirm': 'Are you sure you want to delete this data source {dbName}? ',
'rc.db.namePlaceholder': 'Please enter name!',
'rc.db.urlPlaceholder': 'Please enter a properly formatted url connection!',
'rc.db.flinkConfigPlaceholder': 'Please specify the default Config of Flink With!',
'rc.db.flinkTemplatePlaceholder': 'Please specify the generated template of Flink With!',
'rc.db.copyDatabase': 'Copying!',
'rc.db.source': 'Source',
'rc.db.warehouse': 'Data WareHouse',
'rc.db.application': 'Application',
'rc.db.backup': 'Backup',
'rc.db.other': 'Other',
'rc.db.no': 'Number',
'rc.db.columnName': 'Field name',
'rc.db.comment': 'Comment',
'rc.db.type': 'type',
'rc.db.primarykey': 'Primary Key',
'rc.db.autoIncrement': 'AutoIncrement',
'rc.db.isNull': 'Not Null',
'rc.db.null': 'Nullable',
'rc.db.default': 'Default',
'rc.db.length': 'Length',
'rc.db.precision': 'Precision',
'rc.db.decimalDigits': 'Decimal Digits',
'rc.db.character': 'Character Set',
'rc.db.collationRule': 'Collation Rule',
'rc.db.javaType': 'Java Type',
'rc.doc.management': 'Document Management', 'rc.doc.management': 'Document Management',
'rc.doc.name': 'Name', 'rc.doc.name': 'Name',
'rc.doc.id': 'Document ID', 'rc.doc.id': 'Document ID',
...@@ -665,6 +224,7 @@ export default { ...@@ -665,6 +224,7 @@ export default {
'rc.doc.subTypePlaceholder': 'Please select the function type this Document belongs to!', 'rc.doc.subTypePlaceholder': 'Please select the function type this Document belongs to!',
'rc.doc.categoryPlaceholder': 'Please select the type of this Document!', 'rc.doc.categoryPlaceholder': 'Please select the type of this Document!',
// global variable
'rc.gv.Management': 'Global Variable Management', 'rc.gv.Management': 'Global Variable Management',
'rc.gv.id': 'Global Variable ID', 'rc.gv.id': 'Global Variable ID',
'rc.gv.name': 'Name', 'rc.gv.name': 'Name',
...@@ -676,6 +236,7 @@ export default { ...@@ -676,6 +236,7 @@ export default {
'rc.gv.namePlaceholder': 'Please enter a name!', 'rc.gv.namePlaceholder': 'Please enter a name!',
'rc.gv.valuePlaceholder': 'Please enter the Global Variable value', 'rc.gv.valuePlaceholder': 'Please enter the Global Variable value',
// git project
'rc.gp.management': 'GitProject Management(Beta)', 'rc.gp.management': 'GitProject Management(Beta)',
'rc.gp.id': 'ID', 'rc.gp.id': 'ID',
'rc.gp.name': 'Name', 'rc.gp.name': 'Name',
...@@ -712,7 +273,6 @@ export default { ...@@ -712,7 +273,6 @@ export default {
'rc.gp.codeTree': 'Show Code', 'rc.gp.codeTree': 'Show Code',
'rc.gp.codeTree.clickShow': 'Click left file to view code', 'rc.gp.codeTree.clickShow': 'Click left file to view code',
'rc.gp.codeTree.unSupportView': 'This file type does not support viewing', 'rc.gp.codeTree.unSupportView': 'This file type does not support viewing',
'rc.gp.build.step.0': 'No Build', 'rc.gp.build.step.0': 'No Build',
'rc.gp.build.step.1': 'Check Env', 'rc.gp.build.step.1': 'Check Env',
'rc.gp.build.step.2': 'Git Clone', 'rc.gp.build.step.2': 'Git Clone',
...@@ -720,70 +280,32 @@ export default { ...@@ -720,70 +280,32 @@ export default {
'rc.gp.build.step.4': 'Get Jars', 'rc.gp.build.step.4': 'Get Jars',
'rc.gp.build.step.5': 'Analysis UDF', 'rc.gp.build.step.5': 'Analysis UDF',
'rc.gp.build.step.6': 'Finish', 'rc.gp.build.step.6': 'Finish',
'rc.gp.buildSuccess': 'Build successfully', 'rc.gp.buildSuccess': 'Build successfully',
'rc.gp.buildFail': 'Build failed', 'rc.gp.buildFail': 'Build failed',
'rc.gp.building': 'Building', 'rc.gp.building': 'Building',
'rc.gp.notBuild': 'Not built', 'rc.gp.notBuild': 'Not built',
'rc.gp.buildingTip': 'Building, please wait...', 'rc.gp.buildingTip': 'Building, please wait...',
// udf template
'rc.udf.management': 'UDF Template Management',
'rc.template.name' : 'Template Name',
'rc.template.namePlaceholder' : 'Please enter the template name! ',
'task.api.job.async' : 'Asynchronous submit', 'rc.template.codeType' : 'Code Type',
'task.api.job.stop' : 'Stop job', 'rc.template.codeTypePlaceholder' : 'Please select code type! ',
'task.api.job.restart' : 'Restart job', 'rc.template.functionType' : 'Function Type',
'task.api.job.instance' : 'Job instance', 'rc.template.functionTypePlaceholder' : 'Please select function type! ',
'task.api.savepoint.trigger' : 'SavePoint trigger', 'rc.template.templateCodeLabel' : 'Template Code( {language} )',
'task.api.savepoint.stop' : 'SavePoint stop', 'rc.template.templateCode' : 'Template Code',
'task.api.job.online' : 'Online job', 'rc.template.templateCodePlaceholder' : 'Please edit the template code! ',
'task.api.job.offline' : 'Offline job', 'rc.template.delete' : 'Delete Template! ',
'task.api.job.reonline' : 'Re-online job', 'rc.template.deleteConfirm' : 'Are you sure you want to delete this template?',
'rc.template.create': 'Create UDF Template',
'task.add.job' : 'Add Task', 'rc.template.modify': 'Modify UDF Template',
'task.management' : 'Task Management',
'task.name' : 'Job Name',
'task.namePlaceHolder' : 'Please Enter Task Name',
'task.id' : 'Task ID', //-------------------------------- setting center --------------------------------
'task.type' : 'Type', // process
'task.checkPoint' : 'CheckPoint',
'task.savePointPath' : 'SavePoint Path',
'task.parallelism' : 'Parallelism',
'task.fragment' : 'Fragment',
'task.clusterId' : 'Cluster Id',
'task.clusterName' : 'Cluster Name',
'task.delete' : 'Delete Task',
'task.deleteConfirm' : 'Are you sure to delete this task? ',
'task.exec' : 'Execute Task',
'task.execConfirm' : 'Are you sure to execute this Task? ',
'task.placeHolder' : 'Please Enter ...',
'task.edit' : 'Edit Task',
'flinkColumns.position': 'Position',
'flinkColumns.name': 'Column Name',
'flinkColumns.type': 'Type',
'flinkColumns.key': 'Primary Key',
'flinkColumns.key.true': 'Primary Key',
'flinkColumns.key.other': 'Other',
'flinkColumns.isnull': 'Is Null',
'flinkColumns.isnotnull': 'Is Not Null',
'flinkColumns.extras': 'Extras',
'flinkColumns.watermark': 'Watermark',
'sys.udf.template.name' : 'Template Name',
'sys.udf.template.namePlaceholder' : 'Please enter the template name! ',
'sys.udf.template.codeType' : 'Code Type',
'sys.udf.template.codeTypePlaceholder' : 'Please select code type! ',
'sys.udf.template.functionType' : 'Function Type',
'sys.udf.template.functionTypePlaceholder' : 'Please select function type! ',
'sys.udf.template.templateCode' : 'Template Code',
'sys.udf.template.templateCodePlaceholder' : 'Please edit the template code! ',
'sys.udf.template.delete' : 'Delete Template! ',
'sys.udf.template.deleteConfirm' : 'Are you sure you want to delete this template?',
'sys.udf.template.create': 'Create UDF Template',
'sys.udf.template.modify': 'Modify UDF Template',
'sys.process.id':'Process ID', 'sys.process.id':'Process ID',
'sys.process.name': 'Process Name', 'sys.process.name': 'Process Name',
'sys.process.taskId':'Job ID', 'sys.process.taskId':'Job ID',
...@@ -798,110 +320,9 @@ export default { ...@@ -798,110 +320,9 @@ export default {
'sys.process.subStep.status':'Step Status', 'sys.process.subStep.status':'Step Status',
'sys.process.subStep.info':'Step Info', 'sys.process.subStep.info':'Step Info',
'sys.process.subStep.error':'Step Error', 'sys.process.subStep.error':'Step Error',
'sys.info.logList.tips': 'Click left log file to viewing',
'devops.jobinfo.alert.title': 'Title',
'devops.jobinfo.alert.content':'Body',
'devops.jobinfo.alert.status': 'Status',
'devops.jobinfo.alert.status.success': 'Success',
'devops.jobinfo.alert.status.failed': 'Failed',
'devops.jobinfo.alert.log': 'Log',
'devops.jobinfo.alert.createTime':'Alert Time',
'devops.jobinfo.ck.id':'ID',
'devops.jobinfo.ck.taskid':'Task ID',
'devops.jobinfo.ck.status': 'Status',
'devops.jobinfo.ck.name':'Name',
'devops.jobinfo.ck.duration': 'Duration',
'devops.jobinfo.ck.checkpoint_type': 'Type',
'devops.jobinfo.ck.external_path':'Storage Location',
'devops.jobinfo.ck.latest_ack_timestamp': 'Last Response Time',
'devops.jobinfo.ck.state_size': 'State Size',
'devops.jobinfo.ck.trigger_timestamp': 'Trigger Time',
'devops.jobinfo.ck.recovery' : 'Recovering from Checkpoint! ',
'devops.jobinfo.ck.recoveryConfirm' : 'Are you sure to Recover from Checkpoint [{path}]?',
'devops.jobinfo.ck.recovery.success' : 'Recovery job succeeded',
'devops.jobinfo.ck.recovery.failed' : 'Recovery job failed',
'devops.jobinfo.lineage' :'Lineage Analysis',
'devops.jobinfo.version.id' : 'Job ID',
'devops.jobinfo.version.name' : 'Job Name',
'devops.jobinfo.version.alias' : 'Job aAlias',
'devops.jobinfo.version.dialect' : 'Job Dialect',
'devops.jobinfo.version.type' : 'Job Type',
'devops.jobinfo.version.versionId' : 'Version Number',
'devops.jobinfo.version.sql' : 'Job Content',
'devops.jobinfo.version.sql.showdetail' : 'View Job Details',
'devops.jobinfo.version.sql.title' : 'Job Execute SQL',
'devops.jobinfo.version.diff' : 'Version Diff',
'devops.jobinfo.version.list' :'Version List',
'devops.jobinfo.version.timeline' :'Version TimeLine',
'devops.jobinfo.version.timeline.left' : 'Left',
'devops.jobinfo.version.timeline.right' : 'Right',
'devops.jobinfo.version.timeline.alternate' : 'Alternate',
'devops.jobinfo.version.timeline.developing' : ' Developing...',
'devops.jobinfo.version.timeline.top' :'Top',
'devops.jobinfo.overview': 'Job Overview',
'devops.jobinfo.cluster':'Cluster Info',
'devops.jobinfo.snapshot': 'Job Snapshot',
'devops.jobinfo.exception': 'Exception Info',
'devops.jobinfo.log':'Job Log',
'devops.jobinfo.optimize':'Automatic Tuning',
'devops.jobinfo.config':'Config Info',
'devops.jobinfo.flinksql':'FlinkSQL',
'devops.jobinfo.datamap': 'Data Map',
'devops.jobinfo.olap': 'Adhoc Query',
'devops.jobinfo.version': 'History Version',
'devops.jobinfo.alert':'Alert Record',
'devops.jobinfo.savepoint.trigger':'SavePoint Triggers',
'devops.jobinfo.savepoint.stop':'SavePoint Pause',
'devops.jobinfo.savepoint.cancel': 'SavePoint Stop',
'devops.jobinfo.savepoint.canceljob': 'Normal Stop',
'devops.jobinfo.localenv': 'Local Environment',
'devops.jobinfo.offline': 'Offline',
'devops.jobinfo.smart_stop': 'Smart Stop',
'devops.jobinfo.reonline': 'Re-Online',
'devops.jobinfo.reonlineJob': 'Re-online Job',
'devops.jobinfo.reonlineJobConfirm': 'Are you sure you want to re-launch this job? ',
'devops.jobinfo.reonline.success': 'Re-online successfully',
'devops.jobinfo.reonline.failed': 'Failed to re-online',
'devops.jobinfo.restart': 'Restart',
'devops.jobinfo.stopJob': 'Stop job',
'devops.jobinfo.stopJobConfirm': 'Are you sure to just stop this job without SavePoint operation? ',
'devops.jobinfo.canceljob.success': 'Normal stop succeeded',
'devops.jobinfo.canceljob.failed': 'Normal stop failed',
'devops.jobinfo.job.key':'{key} Job',
'devops.jobinfo.job.key.success':'{key} Success',
'devops.jobinfo.job.key.failed':'{key} Failed , reason: {msg}',
'devops.jobinfo.job.keyConfirm': 'Are you sure {key} this job?',
'devops.baseinfo.taskid': 'Task Id',
'devops.baseinfo.name': 'Job Name',
'devops.baseinfo.status': 'Status',
'devops.baseinfo.readbytes': 'Receive Bytes',
'devops.baseinfo.readrecords': 'Receive Records',
'devops.baseinfo.writebytes': 'Send Bytes',
'devops.baseinfo.writerecords': 'Send Records',
'devops.baseinfo.parallelism': 'Parallelism',
'devops.baseinfo.tasks': 'Operator',
'devops.baseinfo.restart_number': 'Number of Restarts',
'devops.config.exec.mode': 'Execution Mode',
'devops.config.alias': 'Cluster Instance',
'devops.config.clusterConfiguration': 'Cluster Config',
'devops.config.session': 'Shared Session',
'devops.config.useSqlFragment': 'Statement Set',
'devops.config.isJarTask': 'Task Type',
'devops.config.useBatchModel': 'Batch Mode',
'devops.config.checkpoint': 'CheckPoint Interval',
'devops.config.savePointStrategy': 'SavePoint Strategy',
'devops.config.savePointPath': 'SavePoint Path',
'devops.config.jarpath': 'Jar Path',
'devops.config.jarmainclass': 'Jar Main Class',
'devops.config.jarparams': 'Jar Parameters',
// system info of log
'sys.info.logList.tips': 'Click left log file to viewing',
}; };
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
'menu.registration.document': '文档', 'menu.registration.document': '文档',
'menu.registration.fragment': '全局变量', 'menu.registration.fragment': '全局变量',
'menu.registration.gitprojects': 'Git 项目(Beta)', 'menu.registration.gitprojects': 'Git 项目(Beta)',
'menu.registration.udf': 'UDF 模板',
'menu.auth': '认证中心', 'menu.auth': '认证中心',
'menu.auth.user': '用户', 'menu.auth.user': '用户',
'menu.auth.role': '角色', 'menu.auth.role': '角色',
...@@ -59,7 +60,6 @@ export default { ...@@ -59,7 +60,6 @@ export default {
'menu.auth.tenant': '租户', 'menu.auth.tenant': '租户',
'menu.settings': '配置中心', 'menu.settings': '配置中心',
'menu.settings.flinksetting': 'Flink 配置', 'menu.settings.flinksetting': 'Flink 配置',
'menu.settings.udf': 'UDF 模板',
'menu.settings.system': '系统信息', 'menu.settings.system': '系统信息',
'menu.settings.process': '进程列表', 'menu.settings.process': '进程列表',
'menu.settings.services': '服务器列表', 'menu.settings.services': '服务器列表',
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
export default { export default {
//-------------------------------- common --------------------------------
'layouts.userLayout.title': 'Dinky 实时计算平台', 'layouts.userLayout.title': 'Dinky 实时计算平台',
'login.error': '登录失败,请重试! 原因:{msg}', 'login.error': '登录失败,请重试! 原因:{msg}',
'login.result': '{msg}\t\t{time}', 'login.result': '{msg}\t\t{time}',
...@@ -46,106 +47,8 @@ export default { ...@@ -46,106 +47,8 @@ export default {
'about.communityRules.4': '群提问题请礼貌并且说明【版本、执行模式、操作描述、截图】。', 'about.communityRules.4': '群提问题请礼貌并且说明【版本、执行模式、操作描述、截图】。',
'about.communityRules.5': ' 登记谁在使用 Dinky,可进入企业用户群提供技术支持。', 'about.communityRules.5': ' 登记谁在使用 Dinky,可进入企业用户群提供技术支持。',
'datastudio.editor.execute.warn': '该任务执行模式为【{type}】,不支持 SQL 查询,请手动保存后使用右侧按钮——作业提交', //-------------------------------- auth center --------------------------------
'datastudio.editor.submiting': '新任务【{jobName}】正在执行', // user
'datastudio.editor.exec.success': '执行成功',
'datastudio.editor.exec.error': '执行失败',
'datastudio.editor.async.submit': '异步提交作业',
'datastudio.editor.async.submiting': '任务【{jobName}】正在异步提交',
'datastudio.editor.async.submitConfirm': '确定异步提交作业【{jobName}】到其配置的集群吗?请确认您的作业是否已经被保存!',
'datastudio.editor.async.success': '异步提交成功',
'datastudio.editor.async.error': '异步提交失败',
'datastudio.editor.query.explan.error': '获取作业执行计划失败,原因:\n{msg}',
'datastudio.editor.query.ds.error': '获取海豚数据失败,原因:\n{msg}',
'datastudio.editor.release.job': '发布作业',
'datastudio.editor.release.jobConfirm': '确定发布作业【{jobName}】吗?请确认您的作业是否已经被保存!',
'datastudio.editor.release.job.success': '发布作业【{jobName}】成功',
'datastudio.editor.release.job.error': '发布作业【{jobName}】失败',
'datastudio.editor.edit.job': '维护作业',
'datastudio.editor.edit.jobConfirm': '确定维护作业【{jobName}】吗?',
'datastudio.editor.edit.job.success': '维护作业【{jobName}】成功',
'datastudio.editor.online.job': '上线作业',
'datastudio.editor.online.jobConfirm': '确定上线作业【{jobName}】吗?',
'datastudio.editor.online.job.success': '上线作业【{jobName}】成功',
'datastudio.editor.online.job.error': '上线作业【{jobName}】失败,原因:\n {msg}',
'datastudio.editor.stop.job': '停止作业',
'datastudio.editor.stop.jobConfirm': '确定停止作业【{jobName}】吗?',
'datastudio.editor.stop.job.success': '停止作业【{jobName}】成功',
'datastudio.editor.stop.job.error': '停止作业【{jobName}】失败,原因:\n {msg}',
'datastudio.editor.offline.job': '下线作业',
'datastudio.editor.offline.jobConfirm': '确定下线作业【{jobName}】吗?',
'datastudio.editor.offline.job.success': '下线作业【{jobName}】成功',
'datastudio.editor.offline.job.error': '下线作业【{jobName}】失败,原因:\n {msg}',
'datastudio.editor.delete.job': '注销作业',
'datastudio.editor.delete.jobConfirm': '确定注销作业【{jobName}】吗?',
'datastudio.editor.delete.job.success': '注销作业【{jobName}】成功',
'datastudio.editor.delete.job.error': '注销作业【{jobName}】失败,原因:\n {msg}',
'datastudio.editor.recovery.job': '恢复作业',
'datastudio.editor.recovery.jobConfirm': '确定恢复作业【{jobName}】吗?',
'datastudio.editor.recovery.job.success': '恢复作业【{jobName}】成功',
'datastudio.editor.api.doc': ' API 手册',
'datastudio.editor.usehelp': '使用帮助',
'datastudio.editor.clearConsole': '清空控制台',
'datastudio.editor.fullScreen': '全屏开发',
'datastudio.editor.fullScreen.exit': '退出全屏',
'datastudio.editor.save': '保存当前的 FlinkSql 及配置',
'datastudio.editor.export': '导出当前的 Sql 及配置',
'datastudio.editor.check': '检查当前的 FlinkSql',
'datastudio.editor.explan': '获取当前的 FlinkSql 的执行图',
'datastudio.editor.explan.tip': 'FlinkSQL 的 JobPlan',
'datastudio.editor.exec': '执行当前的 SQL',
'datastudio.editor.exec.tip': '提交当前的作业到集群,提交前请手动保存',
'datastudio.editor.push.ds': '推送到海豚调度',
'datastudio.editor.push.ds.query.error': '获取海豚任务定义集合失败,原因:\n{msg}',
'datastudio.editor.push.ds.timeout.strategy': '超时策略',
'datastudio.editor.push.ds.timeout.alarm': '超时警告',
'datastudio.editor.push.ds.timeout.error': '超时失败',
'datastudio.editor.push.ds.timeout.strategy.tip': '超时策略必须选一个',
'datastudio.editor.push.ds.add.job.error': '创建任务失败,原因:\n{msg}',
'datastudio.editor.push.ds.prejob': '前置任务',
'datastudio.editor.push.ds.prejob.tip': '选择前置任务',
'datastudio.editor.push.ds.job.priority': '优先级',
'datastudio.editor.push.ds.errortry.count': '失败重试次数',
'datastudio.editor.push.ds.errortry.min': '失败重试间隔(分钟)',
'datastudio.editor.push.ds.delayed.time': '延时执行时间(分钟)',
'datastudio.editor.push.ds.timeout.min': '超时告警时长(分钟)',
'datastudio.editor.push.ds.running.tag': '运行标志',
'datastudio.editor.stop': '停止',
'datastudio.editor.release': '发布,发布后将无法修改',
'datastudio.editor.edit': '维护,点击进入编辑状态',
'datastudio.editor.online': '上线,上线后自动恢复、告警等将生效',
'datastudio.editor.offline': '下线,将进入最新发布状态',
'datastudio.editor.delete': '注销,将进入回收站',
'datastudio.editor.recovery': '恢复,将进入维护模式',
'datastudio.editor.api': '查看 API',
'datastudio.editor.help': '查看使用帮助',
'datastudio.sql.query': 'SQL 查询',
'datastudio.submit.job': '提交作业',
'devops.jobstatus.SUCCESS': '成功',
'devops.jobstatus.CREATED': '已创建',
'devops.jobstatus.INITIALIZING': '初始化',
'devops.jobstatus.RUNNING': '运行中',
'devops.jobstatus.FINISHED': '已完成',
'devops.jobstatus.FAILING': '异常中',
'devops.jobstatus.FAILED': '已异常',
'devops.jobstatus.SUSPENDED': '已暂停',
'devops.jobstatus.CANCELLING': '停止中',
'devops.jobstatus.CANCELED': '停止',
'devops.jobstatus.RESTARTING': '重启中',
'devops.jobstatus.UNKNOWN': '未知',
'devops.jobstatus.ALL': '所有',
'devops.LastUpdateTime': '最后更新时间',
'settings.UserManagement': '用户管理',
'settings.Flink': 'Flink 设置',
'settings.FlinkRestAPI': '使用 Rest API',
'settings.FlinkURLSplit': 'FlinkSQL 语句分隔符',
'settings.FlinkJobID': '获取 Job ID 的最大等待时间(秒)',
'settings.FlinkNoSetting': '未设置',
'settings.FlinkNoUseSetting': '启用后,Flink 任务的 savepoint、停止等操作将通过 JobManager 的 RestAPI 进行',
'user.manager': '用户管理', 'user.manager': '用户管理',
'user.username': '用户名', 'user.username': '用户名',
'user.jobnumber': '工号', 'user.jobnumber': '工号',
...@@ -168,7 +71,7 @@ export default { ...@@ -168,7 +71,7 @@ export default {
'user.repeatpwdPlaceholder': '请重复输入新密码', 'user.repeatpwdPlaceholder': '请重复输入新密码',
'user.oldNewPwdNoMatch': '两次输入的新密码不一致', 'user.oldNewPwdNoMatch': '两次输入的新密码不一致',
// tenant
'tenant.TenantManager': '租户管理', 'tenant.TenantManager': '租户管理',
'tenant.TenantCode': '租户编码', 'tenant.TenantCode': '租户编码',
'tenant.AssignUser': '分配用户', 'tenant.AssignUser': '分配用户',
...@@ -179,6 +82,7 @@ export default { ...@@ -179,6 +82,7 @@ export default {
'tenant.delete': '删除租户', 'tenant.delete': '删除租户',
'tenant.deleteConfirm': '您确定要删除此租户吗?', 'tenant.deleteConfirm': '您确定要删除此租户吗?',
// role
'role.roleManagement': '角色管理', 'role.roleManagement': '角色管理',
'role.roleCode': '角色编码', 'role.roleCode': '角色编码',
'role.roleName': '角色名称', 'role.roleName': '角色名称',
...@@ -193,6 +97,7 @@ export default { ...@@ -193,6 +97,7 @@ export default {
'role.deleteConfirm': '您确定要删除此角色吗?', 'role.deleteConfirm': '您确定要删除此角色吗?',
// rowPermissions
'rowPermissions.management': '行权限管理', 'rowPermissions.management': '行权限管理',
'rowPermissions.tableName': '表名', 'rowPermissions.tableName': '表名',
'rowPermissions.tableNamePlaceholder': '请输入表名', 'rowPermissions.tableNamePlaceholder': '请输入表名',
...@@ -205,314 +110,8 @@ export default { ...@@ -205,314 +110,8 @@ export default {
'rowPermissions.update': '修改行权限', 'rowPermissions.update': '修改行权限',
'metadata.NoDatabaseSelected': '未选择数据源', //-------------------------------- register center --------------------------------
'metadata.Application': 'Application', // alert instance
'metadata.TableInfo': '表信息',
'metadata.Description': '描述',
'metadata.DataSearch': '数据查询',
'metadata.GenerateSQL': 'SQL 生成',
'metadata.FieldInformation': '字段信息',
'metadata.catalogSelect': '选择 Catalog & Database',
'metadata.catalogRefresh': '刷新 Catalog',
'metadata.catalogRefreshSuccess': '刷新 Catalog 成功',
'metadata.selectDatabase': '选择数据源',
'metadata.Console': '控制台',
'metadata.help.noSqlSelect': '未选择任何sql!',
'metadata.help.selectSql': '请在编辑器内选择你要执行的sql',
'metadata.help.exec': '执行选中sql',
'metadata.exec.result.msg': '执行时间: {time} 秒, 总行数: {rowCount}',
'metadata.exec.result.msghelp': '行数超过500,仅显示前500',
'TableData.QueryConditions': '查询条件',
'TableData.sorting': '排序',
'TableData.data': '数据',
'TableData.search': '搜索',
'datastudio.label.info': '控制台',
'datastudio.label.result': '结果',
'datastudio.label.result.query.latest.data': '获取最新数据',
'datastudio.explain.validate.msg': 'FlinkSql 语法和逻辑检查',
'datastudio.explain.validate': '正在校验中...',
'datastudio.explain.validate.allright': '全部正确',
'datastudio.explain.validate.error': '存在错误,共计{errorCount}个',
'datastudio.explain.validate.grammar.right': '语法正确',
'datastudio.explain.validate.grammar.error': '语法有误',
'datastudio.explain.validate.logic.right': '逻辑正确',
'datastudio.explain.validate.logic.error': '逻辑有误',
'datastudio.label.lineage': '血缘',
'datastudio.label.lineage.export': '导出 StreamGraphPlan',
'datastudio.label.lineage.streamplan': '的 StreamGraphPlan',
'datastudio.label.lineage.query.error': '获取作业血缘失败,原因:\n {msg}',
'datastudio.label.lineage.recalculate': '重新计算血缘',
'datastudio.label.lineage.calculate': '计算血缘',
'datastudio.label.lineage.expand.field': '展开字段',
'datastudio.label.lineage.collapse.field': '收起字段',
'datastudio.label.lineage.expand.lineage': '收起血缘',
'datastudio.label.lineage.collapse.lineage': '展开血缘',
'datastudio.label.process': '进程',
'datastudio.label.process.detail': '详情',
'datastudio.label.process.savepoint': '保存点',
'datastudio.label.process.trigger': '触发',
'datastudio.label.process.cancel': 'Cancel',
'datastudio.label.process.stop': '停止',
'datastudio.label.process.stopconfirm': '确定停止 【{jobid}】?',
'datastudio.label.process.stopsuccess': '停止成功',
'datastudio.label.process.stopfailed': '停止失败',
'datastudio.label.process.switchcluster': '选择Flink集群',
'datastudio.label.history': '历史',
'datastudio.label.history.exec': '执行历史',
'datastudio.label.history.delete': '删除执行记录',
'datastudio.label.history.deleteConfirm': '确定删除该执行记录吗?',
'datastudio.label.history.execConfig': '执行配置',
'datastudio.label.history.statement': 'FlinkSql语句',
'datastudio.label.history.result': '预览数据',
'datastudio.label.history.error': '异常信息',
'datastudio.label.history.jobId': '作业ID',
'datastudio.label.history.jobName': '任务名名',
'datastudio.label.history.runningCluster': '运行集群',
'datastudio.label.history.session': '共享会话',
'datastudio.label.history.taskType': '任务类型',
'datastudio.label.history.clusterId': '集群ID',
'datastudio.label.history.clusterConfigId': '集群配置ID',
'datastudio.label.history.changelog': '打印流',
'datastudio.label.history.maxRow': '最大行数',
'datastudio.label.history.autoStop': '自动停止',
'datastudio.label.history.useSqlFragment': '全局变量',
'datastudio.label.history.useStatementSet': '语句集',
'datastudio.label.history.parallelism': '并行度',
'datastudio.label.history.checkpoint': '检查点',
'datastudio.label.history.savePointStrategy': 'SavePoint 策略',
'datastudio.label.history.savePointPath': 'SavePoint 路径',
'datastudio.label.function': '函数',
'datastudio.label.directory': '目录',
'datastudio.label.structure': '结构',
'datastudio.label.session': '会话',
'datastudio.label.cluster': '集群',
'datastudio.label.datasource': '数据源',
'datastudio.label.meta': '元数据',
'datastudio.label.globalvariable': '全局变量',
'datastudio.label.guidepage': '引导页',
'datastudio.label.jobConfig': '作业配置',
'datastudio.label.jobConfig.cluster': 'Flink集群',
'datastudio.label.jobConfig.cluster.tip': '选择Flink集群',
'datastudio.label.jobConfig.clusterConfig': 'Flink集群配置',
'datastudio.label.jobConfig.clusterConfig.tip1': '选择Flink集群配置进行【{type}】模式的远程提交任务',
'datastudio.label.jobConfig.clusterConfig.tip2': '选择Flink集群配置',
'datastudio.label.jobConfig.jar': '可执行 Jar',
'datastudio.label.jobConfig.jar.tip1': '选择可执行 Jar 进行 【{type}】模式的远程提交 Jar 任务。当该参数项存在值时,将只提交可执行 Jar.',
'datastudio.label.jobConfig.jar.tip2': '选择可执行Jar,非必填',
'datastudio.label.jobConfig.execmode.tip': '指定 Flink 任务的执行模式,默认为 Local',
'datastudio.label.jobConfig.execmode.k8s.tip': '指定 Flink 任务的执行模式,默认为 KUBERNETES_APPLICATION',
'datastudio.label.jobConfig.flinksql.env': 'FlinkSQL 环境',
'datastudio.label.jobConfig.flinksql.env.tip1': '选择当前任务的 FlinkSQL 执行环境,会提前执行环境语句,默认无。',
'datastudio.label.jobConfig.flinksql.env.tip2': '选择 FlinkSQL 环境,非必填',
'datastudio.label.jobConfig.parallelism': '任务并行度',
'datastudio.label.jobConfig.parallelism.tip': '设置Flink任务的并行度,最小为 1',
'datastudio.label.jobConfig.insert': 'Insert语句集',
'datastudio.label.jobConfig.insert.tip': '【增强特性】 开启语句集机制,将把多个 Insert 语句合成一个 JobGraph 再进行提交,Select 语句无效',
'datastudio.label.jobConfig.fragment': '全局变量',
'datastudio.label.jobConfig.fragment.tip': '【增强特性】 开启FlinkSql全局变量,使用“:=”进行定义(以“;”结束),“${}”进行调用',
'datastudio.label.jobConfig.batchmode': '批模式',
'datastudio.label.jobConfig.batchmode.tip': '使用批模式',
'datastudio.label.jobConfig.checkPoint': '检查点间隔',
'datastudio.label.jobConfig.checkPoint.tip': '设置Flink任务的检查点步长,0 代表不启用',
'datastudio.label.jobConfig.savePointStrategy': 'SavePoint策略',
'datastudio.label.jobConfig.savePointStrategy.tip': '指定 SavePoint策略,默认为禁用',
'datastudio.label.jobConfig.savePointpath': 'SavePoint路径',
'datastudio.label.jobConfig.savePointpath.tip1': '从SavePointPath恢复Flink任务',
'datastudio.label.jobConfig.savePointpath.tip2': 'hdfs://...',
'datastudio.label.jobConfig.alertGroup': '告警组',
'datastudio.label.jobConfig.alertGroup.tip': '选择告警组',
'datastudio.label.jobConfig.other': '其他配置',
'datastudio.label.jobConfig.other.tip': '其他配置项,将被应用于执行环境,如 pipeline.name',
'datastudio.label.jobConfig.addConfig': '添加配置项',
'datastudio.label.jobConfig.addConfig.params': '参数',
'datastudio.label.jobConfig.addConfig.value': '值',
'datastudio.label.execConfig': '执行配置',
'datastudio.label.execConfig.selectDatabase': '选择数据源',
'datastudio.label.execConfig.selectDatabase.tip': '选择 Sql 语句执行的数据源',
'datastudio.label.execConfig.preview.result': '预览结果',
'datastudio.label.execConfig.preview.result.tip': '开启预览结果,将同步运行并返回数据结果',
'datastudio.label.execConfig.changelog': '打印流',
'datastudio.label.execConfig.changelog.tip': '开启打印流,将同步运行并返回含有 op 信息的 ChangeLog,默认不开启且返回最终结果 Table',
'datastudio.label.execConfig.maxrow': '最大行数',
'datastudio.label.execConfig.maxrow.tip': '预览数据的最大行数',
'datastudio.label.execConfig.autostop': '自动停止',
'datastudio.label.execConfig.autostop.tip': '开启自动停止,将在捕获最大行数记录后自动停止任务',
'datastudio.label.savepoint': '保存点',
'datastudio.label.version': '版本历史',
'datastudio.label.version.id': '版本ID',
'datastudio.label.version.diff': '版本对比',
'datastudio.label.version.rollback': '回滚',
'datastudio.label.version.rollback.flinksql': '回滚Flink SQL版本',
'datastudio.label.version.rollback.flinksqlConfirm': '确定回滚Flink SQL版本至【{versionId}】吗?',
'datastudio.label.version.diff.tip': '只和当前编辑器内的内容对比',
'datastudio.label.version.leftTitle': '版本号:【{versionId}】 创建时间: 【{createTime}】',
'datastudio.label.version.rightTitle': '版本号:【当前编辑版本】 创建时间: 【{createTime}】 最后更新时间: 【{updateTime}】',
'datastudio.label.jobInfo': '作业信息',
'datastudio.label.jobInfo.id': '任务ID',
'datastudio.label.jobInfo.name': '任务名称',
'datastudio.label.jobInfo.dialect': '方言',
'datastudio.label.jobInfo.versionId': '版本号',
'datastudio.label.udfInfo': 'UDF信息',
'datastudio.label.udfInfo.classname': '类名',
'datastudio.label.udfInfo.auto': '自动识别',
'datastudio.label.registcluster': '注册 Flink 集群实例',
'datastudio.label.registclusterconfig': '注册集群配置',
'datastudio.label.registjar': '注册 Jar',
'datastudio.label.registdatasource': '注册数据源',
'datastudio.label.metadata': '元数据',
'datastudio.label.alarmInstance': '注册告警实例',
'datastudio.label.alarmGroup': '告警组',
'datastudio.label.val': '注册全局变量',
'datastudio.label.udfTemplate': 'UDF 模板',
'datastudio.label.systemInfo': '系统信息',
'datastudio.label.registdocument': '注册文档',
'datastudio.label.configsystemconfig': '修改系统配置',
'datastudio.label.officialdocumentation': '官网文档',
'datastudio.label.quickguide': '快捷引导',
'datastudio.label.welcomeuse': '欢迎使用 Dinky v{version}',
'datastudio.label.dinkydescribe': '实时即未来,Dinky 为 Apache Flink 而生,让 Flink SQL 纵享丝滑,并致力于实时计算平台建设。',
'datastudio.label.maxrows': '最大行数',
'devops.result.success': '操作成功',
'devops.lable.allonline': '一键上线',
'devops.lable.alloffline': '一键下线',
'devops.lable.onlinelist': '上线明细',
'devops.lable.offlinelist': '下线明细',
'devops.lable.instance': '实例',
'devops.lable.online': '上线',
'devops.lable.offline': '下线',
'devops.lable.pleaseSelect': '请选择',
'devops.lable.online.list': '上线明细列表',
'devops.lable.offline.list': '下线明细列表',
'devops.lable.line.name': '名称',
'devops.lable.line.status': '状态',
'devops.lable.line.code': '结果',
'devops.lable.line.message': '信息',
'devops.lable.line.piontConfig': '点位配置选择',
'devops.lable.line.piontConfig.default': '默认保存点',
'devops.lable.line.piontConfig.last': '最新保存点',
'rc.clusterManagement': '集群实例管理',
'rc.cluster.instanceName': '实例名称',
'rc.cluster.alias': '实例别名',
'rc.cluster.aliasPlaceholder': '请输入别名!',
'rc.cluster.type': '类型',
'rc.cluster.jobManagerAddress': 'JobManger 地址',
'rc.cluster.version': '版本',
'rc.cluster.jobManagerHaAddress': 'JobManger 高可用地址',
'rc.cluster.instanceId': '实例 Id',
'rc.cluster.create': '创建集群',
'rc.cluster.modify': '修改集群',
'rc.cluster.delete': '删除 Flink 实例',
'rc.cluster.stop': '停止 Flink 实例',
'rc.cluster.deleteConfirm': '确定删除该 Flink 实例吗?',
'rc.cluster.stopConfirm': '确定停止该 Flink 实例吗?',
'rc.cluster.recycle': '回收 Flink 实例',
'rc.cluster.recycleConfirm': '确定回收所有自动创建且过期的 Flink 实例吗?',
'rc.cluster.recycle.success' : '成功回收{total}个 Flink 实例',
'rc.cluster.enable': '启用 Flink 实例',
'rc.cluster.enableConfirm': '您确定要启用此 Flink 实例吗?',
'rc.cluster.disable': '禁用 Flink 实例',
'rc.cluster.disableConfirm': '您确定要禁用此 Flink 实例吗?',
'rc.cluster.disableTotalOf': '被禁用的 Flink 实例共 {total} 个',
'rc.cluster.jobManagerHaAddress.validate.slash': '不符合规则! 不能包含/',
'rc.cluster.jobManagerHaAddress.validate.port': '不符合规则! 端口号区间[0-65535]',
'rc.cluster.jobManagerHaAddressPlaceholderText': '添加 Flink 集群的 JobManager 的 RestApi 地址。当 HA 模式时,地址间用英文逗号分隔,例如:192.168.123.101:8081,192.168.123.102:8081,192.168.123.103:8081',
'rc.cluster.jobManagerHaAddressPlaceholder': '请输入 JobManager HA 地址!',
'rc.cluster.typePlaceholder': '请选择集群类型!',
'rc.cluster.namePlaceholder': '请输入名称!',
'rc.clusterConfigManagement': '集群配置管理',
'rc.clusterConfig.name': '集群配置名称',
'rc.clusterConfig.id': '集群配置ID',
'rc.clusterConfig.type': '类型',
'rc.clusterConfig.hadoopConfigPath': 'Hadoop 配置文件路径',
'rc.clusterConfig.flinkConfigPath': 'Flink 配置文件路径',
'rc.clusterConfig.libPath': 'lib 路径',
'rc.clusterConfig.sqlSubmitJarPath': 'Jar 文件路径',
'rc.clusterConfig.FlinkSQLJarMainParameter': 'Jar 的主类入参',
'rc.clusterConfig.FlinkSQLJarMainClass': 'Jar 的主类',
'rc.clusterConfig.isAvailable': '是否可用',
'rc.clusterConfig.available': '可用',
'rc.clusterConfig.notAvailable': '不可用',
'rc.clusterConfig.create': '创建集群',
'rc.clusterConfig.modify': '修改集群',
'rc.clusterConfig.delete': '删除集群配置',
'rc.clusterConfig.deleteConfirm': '确定删除该集群配置吗?',
'rc.clusterConfig.start': '启动 Session 集群',
'rc.clusterConfig.startConfirm': '确定通过该集群配置启动 Session 集群吗?',
'rc.clusterConfig.enable': '启用集群配置',
'rc.clusterConfig.enableConfirm': '您确定要启用此集群配置吗?',
'rc.clusterConfig.disable': '禁用集群配置',
'rc.clusterConfig.disableConfirm': '您确定要禁用此集群配置吗?',
'rc.clusterConfig.disableTotalOf': '被禁用的集群配置共 {total} 个',
'rc.clusterConfig.baseConfig': '基本配置',
'rc.clusterConfig.otherConfig': '其他配置',
'rc.clusterConfig.addDefineConfig': '添加一个自定义项',
'rc.clusterConfig.typePlaceholder': '请选择集群类型!',
'rc.clusterConfig.aliasPlaceholder': '请输入别名!',
'rc.clusterConfig.namePlaceholder': '请输入名称!',
'rc.clusterConfig.hadoopConfigPathPlaceholder': '请输入 hadoop 配置文件路径 ,值如 /etc/hadoop/conf!',
'rc.clusterConfig.hadoopConfigPathHelp': '指定配置文件路径(末尾无/),需要包含以下文件:core-site.xml,hdfs-site.xml,yarn-site.xml !',
'rc.clusterConfig.defineConfig.highPriority': '自定义配置(高优先级)',
'rc.clusterConfig.flinkConfig': 'Flink 配置',
'rc.clusterConfig.submitSqlConfig': '提交 FlinkSQL 配置项 (Application 模式必填)',
'rc.clusterConfig.hadoopConfig': 'Hadoop 配置',
'rc.clusterConfig.k8sConfig': 'Kubernetes 配置',
'rc.clusterConfig.libPathPlaceholder': '请输入 lib 的 hdfs 路径!值如 hdfs:///flink/lib',
'rc.clusterConfig.libPathHelp': '指定 lib 的 hdfs 路径(末尾无/),需要包含 Flink 运行时的依赖',
'rc.clusterConfig.flinkConfigPathPlaceholder': '请输入 flink-conf.yaml 路径!值如 /opt/module/flink/conf ',
'rc.clusterConfig.flinkConfigPathHelp': '请输入 flink-conf.yaml 路径!值如 /opt/module/flink/conf ',
// K8s页面相关
'rc.clusterConfig.appConfig': 'App 配置',
'rc.clusterConfig.kubernets.version': 'Flink 版本',
'rc.clusterConfig.kubernets.unsupportBatch': '不支持批任务',
'rc.clusterConfig.submit.type': '部署方式',
'rc.clusterConfig.jar.path': '镜像内Jar路径',
'rc.clusterConfig.jar.class': '启动类',
'rc.clusterConfig.jar.args': '启动参数',
'rc.clusterConfig.help.kubernets.namespace': 'kubernets命名空间',
'rc.clusterConfig.help.kubernets.image': 'Flink镜像地址',
'rc.clusterConfig.help.kubernets.jmcpu': 'jobmanager cpu配置',
'rc.clusterConfig.help.kubernets.tmcpu': 'taskmanager cpu配置',
'rc.clusterConfig.help.kubernetes.configfile': '默认~/.kube/config, 填写kube文件路径,可用作远程连接',
'rc.clusterConfig.help.kubernets.account': 'kubernets 提交使用的账号,默认default',
'rc.clusterConfig.help.kubernets.defaultTemplate': '可选,默认JobManager,TaskManager 的template配置!',
'rc.clusterConfig.help.kubernets.jobManagerTemplate': '可选,JobManager 的template配置! 会覆盖kubernetes.pod-template配置',
'rc.clusterConfig.help.kubernets.taskManagerTemplate': '可选,TaskManager 的template配置!会覆盖kubernetes.pod-template配置',
'rc.clusterConfig.help.kubernets.jobManagerMemory': '可选,JobManager 的内存配置',
'rc.clusterConfig.help.kubernets.taskManagerMemory': '可选,taskManagerMemory 的内存配置',
// alert
'rc.ai.management': '告警实例管理', 'rc.ai.management': '告警实例管理',
'rc.ai.type': '类型', 'rc.ai.type': '类型',
'rc.ai.name': '名称', 'rc.ai.name': '名称',
...@@ -584,6 +183,7 @@ export default { ...@@ -584,6 +183,7 @@ export default {
'rc.ai.attachment': '附件', 'rc.ai.attachment': '附件',
'rc.ai.tableAttachment': '表格和附件', 'rc.ai.tableAttachment': '表格和附件',
// alert group
'rc.ag.management': '告警组管理', 'rc.ag.management': '告警组管理',
'rc.ag.name': '告警组名称', 'rc.ag.name': '告警组名称',
'rc.ag.groupid': '告警组ID', 'rc.ag.groupid': '告警组ID',
...@@ -596,45 +196,7 @@ export default { ...@@ -596,45 +196,7 @@ export default {
'rc.ag.deleteConfirm': '确定删除该告警组吗?', 'rc.ag.deleteConfirm': '确定删除该告警组吗?',
'rc.ag.alertCount': '告警实例数: {count}', 'rc.ag.alertCount': '告警实例数: {count}',
// doc
'rc.db.Management': '数据源',
'rc.db.name': '名称',
'rc.db.groupName': '分组类型',
'rc.db.url': '数据库连接 URL',
'rc.db.username': '用户名',
'rc.db.password': '密码',
'rc.db.flinkConfig': 'Flink 连接配置',
'rc.db.flinkTemplate': 'Flink 连接模板',
'rc.db.create': '创建数据源',
'rc.db.modify': '修改数据源',
'rc.db.delete': '删除数据源',
'rc.db.deleteConfirm': '确定删除该数据源{dbName}吗?',
'rc.db.namePlaceholder': '请输入名称!',
'rc.db.urlPlaceholder': '请输入格式正确的 url 连接!',
'rc.db.flinkConfigPlaceholder': '请指定 Flink With 的默认配置!',
'rc.db.flinkTemplatePlaceholder': '请指定 Flink With 的生成模板!',
'rc.db.copyDatabase': '正在复制!',
'rc.db.source': '来源',
'rc.db.warehouse': '数仓',
'rc.db.application': '应用',
'rc.db.backup': '备份',
'rc.db.other': '其他',
'rc.db.no': '序号',
'rc.db.columnName': '字段名称',
'rc.db.comment': '注释',
'rc.db.type': '类型',
'rc.db.primarykey': '主键',
'rc.db.autoIncrement': '自增',
'rc.db.isNull': '非空',
'rc.db.null': '可为空',
'rc.db.default': '默认值',
'rc.db.length': '长度',
'rc.db.precision': '精度',
'rc.db.decimalDigits': '小数范围',
'rc.db.character': '字符集',
'rc.db.collationRule': '排序规则',
'rc.db.javaType': 'Java 类型',
'rc.doc.management': '文档管理', 'rc.doc.management': '文档管理',
'rc.doc.name': '名称', 'rc.doc.name': '名称',
'rc.doc.id': '文档 ID', 'rc.doc.id': '文档 ID',
...@@ -657,7 +219,7 @@ export default { ...@@ -657,7 +219,7 @@ export default {
'rc.doc.subTypePlaceholder': '请选择该文档所属函数类型!', 'rc.doc.subTypePlaceholder': '请选择该文档所属函数类型!',
'rc.doc.categoryPlaceholder': '请选择该文档所属类型!', 'rc.doc.categoryPlaceholder': '请选择该文档所属类型!',
// global variable
'rc.gv.Management': '全局变量管理', 'rc.gv.Management': '全局变量管理',
'rc.gv.id': '全局变量 ID', 'rc.gv.id': '全局变量 ID',
'rc.gv.name': '名称', 'rc.gv.name': '名称',
...@@ -669,7 +231,7 @@ export default { ...@@ -669,7 +231,7 @@ export default {
'rc.gv.namePlaceholder': '请输入名称!', 'rc.gv.namePlaceholder': '请输入名称!',
'rc.gv.valuePlaceholder': '请输入全局变量值', 'rc.gv.valuePlaceholder': '请输入全局变量值',
// git project
'rc.gp.management': 'Git 项目管理(Beta)', 'rc.gp.management': 'Git 项目管理(Beta)',
'rc.gp.id': '项目 ID', 'rc.gp.id': '项目 ID',
'rc.gp.name': '项目名称', 'rc.gp.name': '项目名称',
...@@ -706,7 +268,6 @@ export default { ...@@ -706,7 +268,6 @@ export default {
'rc.gp.codeTree': '查看代码', 'rc.gp.codeTree': '查看代码',
'rc.gp.codeTree.clickShow': '点击左侧文件查看代码', 'rc.gp.codeTree.clickShow': '点击左侧文件查看代码',
'rc.gp.codeTree.unSupportView': '不支持查看该文件类型', 'rc.gp.codeTree.unSupportView': '不支持查看该文件类型',
'rc.gp.build.step.0': '未构建', 'rc.gp.build.step.0': '未构建',
'rc.gp.build.step.1': '环境检查', 'rc.gp.build.step.1': '环境检查',
'rc.gp.build.step.2': '克隆项目', 'rc.gp.build.step.2': '克隆项目',
...@@ -714,70 +275,31 @@ export default { ...@@ -714,70 +275,31 @@ export default {
'rc.gp.build.step.4': '获取 Jar 包', 'rc.gp.build.step.4': '获取 Jar 包',
'rc.gp.build.step.5': '分析 UDF', 'rc.gp.build.step.5': '分析 UDF',
'rc.gp.build.step.6': '完成', 'rc.gp.build.step.6': '完成',
'rc.gp.buildSuccess': '构建成功', 'rc.gp.buildSuccess': '构建成功',
'rc.gp.buildFail': '构建失败', 'rc.gp.buildFail': '构建失败',
'rc.gp.building': '构建中', 'rc.gp.building': '构建中',
'rc.gp.notBuild': '未构建', 'rc.gp.notBuild': '未构建',
'rc.gp.buildingTip': '构建中,请稍后...', 'rc.gp.buildingTip': '构建中,请稍后...',
// udf template
'rc.udf.management': 'UDF 模板管理',
'rc.template.name' :'模板名',
'task.api.job.async' : '异步提交', 'rc.template.namePlaceholder' :'请输入模板名!',
'task.api.job.stop' : '停止作业', 'rc.template.codeType' :'代码类型',
'task.api.job.restart' : '重启作业', 'rc.template.codeTypePlaceholder' :'请选择代码类型!',
'task.api.job.instance' : '作业实例', 'rc.template.functionType' :'函数类型',
'task.api.savepoint.trigger' : 'SavePoint 触发', 'rc.template.functionTypePlaceholder' :'请选择函数类型!',
'task.api.savepoint.stop' : 'SavePoint 停止', 'rc.template.templateCodeLabel' :'模板代码({language})',
'task.api.job.online' : '上线作业', 'rc.template.templateCode' :'模板代码',
'task.api.job.offline' : '下线作业', 'rc.template.templateCodePlaceholder' :'请编辑模板代码!',
'task.api.job.reonline' : '重新上线作业', 'rc.template.delete' :'删除模板!',
'rc.template.deleteConfirm' :'确定删除该模板吗?',
'task.add.job' : '添加任务', 'rc.template.create': '创建 UDF 模板',
'task.management' : '任务管理', 'rc.template.modify': '修改 UDF 模板',
'task.name' : '任务名称',
'task.namePlaceHolder' : '请输入任务名称',
'task.id' : '任务ID', //-------------------------------- setting center --------------------------------
'task.alias' : '别名', // process
'task.type' : '类型',
'task.checkPoint' : 'CheckPoint',
'task.savePointPath' : '保存点路径',
'task.parallelism' : '并行d度',
'task.fragment' : '全局变量',
'task.clusterId' : '集群 ID',
'task.clusterName' : '集群名称',
'task.delete' : '删除任务',
'task.deleteConfirm' : '你确定要删除这个任务吗? ',
'task.exec' : '执行任务',
'task.execConfirm' : '你确定要执行这个任务吗? ',
'task.placeHolder' : '请输入...',
'task.edit' : '编辑任务',
'flinkColumns.position': '序号',
'flinkColumns.name': '列名',
'flinkColumns.type': '类型',
'flinkColumns.key': '主键',
'flinkColumns.key.true': '主键',
'flinkColumns.key.other': '其他',
'flinkColumns.isnull': '为空',
'flinkColumns.isnotnull': '不为空',
'flinkColumns.extras': '扩展',
'flinkColumns.watermark': '水印',
'sys.udf.template.name' :'模板名',
'sys.udf.template.namePlaceholder' :'请输入模板名!',
'sys.udf.template.codeType' :'代码类型',
'sys.udf.template.codeTypePlaceholder' :'请选择代码类型!',
'sys.udf.template.functionType' :'函数类型',
'sys.udf.template.functionTypePlaceholder' :'请选择函数类型!',
'sys.udf.template.templateCode' :'模板代码',
'sys.udf.template.templateCodePlaceholder' :'请编辑模板代码!',
'sys.udf.template.delete' :'删除模板!',
'sys.udf.template.deleteConfirm' :'确定删除该模板吗?',
'sys.udf.template.create': '创建 UDF 模板',
'sys.udf.template.modify': '修改 UDF 模板',
'sys.process.id':'进程ID', 'sys.process.id':'进程ID',
'sys.process.name':'进程名', 'sys.process.name':'进程名',
'sys.process.taskId':'任务ID', 'sys.process.taskId':'任务ID',
...@@ -792,114 +314,8 @@ export default { ...@@ -792,114 +314,8 @@ export default {
'sys.process.subStep.status':'步骤状态', 'sys.process.subStep.status':'步骤状态',
'sys.process.subStep.info':'步骤 Info 日志', 'sys.process.subStep.info':'步骤 Info 日志',
'sys.process.subStep.error':'步骤 Error 日志', 'sys.process.subStep.error':'步骤 Error 日志',
'sys.info.logList.tips': '点击左侧日志文件查看',
'devops.jobinfo.alert.title':'标题',
'devops.jobinfo.alert.content':'正文',
'devops.jobinfo.alert.status':'状态',
'devops.jobinfo.alert.status.success':'成功',
'devops.jobinfo.alert.status.failed':'失败',
'devops.jobinfo.alert.log':'日志',
'devops.jobinfo.alert.createTime':'告警时间',
'devops.jobinfo.ck.id':'ID',
'devops.jobinfo.ck.taskid':'任务ID',
'devops.jobinfo.ck.status':'状态',
'devops.jobinfo.ck.name':'名称',
'devops.jobinfo.ck.duration':'耗时',
'devops.jobinfo.ck.checkpoint_type':'类型',
'devops.jobinfo.ck.external_path':'存储位置',
'devops.jobinfo.ck.latest_ack_timestamp':'最后响应时间',
'devops.jobinfo.ck.state_size':'状态大小',
'devops.jobinfo.ck.trigger_timestamp':'触发时间',
'devops.jobinfo.ck.recovery' :'从检查点恢复!',
'devops.jobinfo.ck.recoveryConfirm' :'确定从检查点【{path}】恢复吗?',
'devops.jobinfo.ck.recovery.success' :'恢复作业成功',
'devops.jobinfo.ck.recovery.failed' :'恢复作业失败',
'devops.jobinfo.lineage' :'血缘分析',
'devops.jobinfo.version.id' :'作业ID',
'devops.jobinfo.version.name' :'作业名称',
'devops.jobinfo.version.alias' :'作业别名',
'devops.jobinfo.version.dialect' :'作业方言',
'devops.jobinfo.version.type' :'作业类型',
'devops.jobinfo.version.versionId' :'版本号',
'devops.jobinfo.version.sql' :'作业内容',
'devops.jobinfo.version.sql.showdetail' :'查看作业详情',
'devops.jobinfo.version.sql.title' :'作业执行 SQL',
'devops.jobinfo.version.diff' :'版本对比',
'devops.jobinfo.version.list' :'版本列表',
'devops.jobinfo.version.timeline' :'版本时间轴',
'devops.jobinfo.version.timeline.left' :'居左',
'devops.jobinfo.version.timeline.right' :'居右',
'devops.jobinfo.version.timeline.alternate' :'居中',
'devops.jobinfo.version.timeline.developing' :' 开发中...',
'devops.jobinfo.version.timeline.top' :'返回顶部',
'devops.jobinfo.overview':'作业总览',
'devops.jobinfo.cluster':'集群信息',
'devops.jobinfo.snapshot':'作业快照',
'devops.jobinfo.exception':'异常信息',
'devops.jobinfo.log':'作业日志',
'devops.jobinfo.optimize':'自动调优',
'devops.jobinfo.config':'配置信息',
'devops.jobinfo.flinksql':'FlinkSQL',
'devops.jobinfo.datamap':'数据地图',
'devops.jobinfo.olap':'即席查询',
'devops.jobinfo.version':'历史版本',
'devops.jobinfo.alert':'告警记录',
'devops.jobinfo.savepoint.trigger':'SavePoint 触发',
'devops.jobinfo.savepoint.stop':'SavePoint 暂停',
'devops.jobinfo.savepoint.cancel':'SavePoint 停止',
'devops.jobinfo.savepoint.canceljob':'普通停止',
'devops.jobinfo.localenv':'本地环境',
'devops.jobinfo.offline':'下线',
'devops.jobinfo.smart_stop':'智能停止',
'devops.jobinfo.reonline':'重新上线',
'devops.jobinfo.reonlineJob':'重新上线任务',
'devops.jobinfo.reonlineJobConfirm':'确定重新上线该作业吗?',
'devops.jobinfo.reonline.success':'重新上线成功',
'devops.jobinfo.reonline.failed':'重新上线失败',
'devops.jobinfo.restart':'重新启动',
'devops.jobinfo.stopJob':'停止任务',
'devops.jobinfo.stopJobConfirm':'确定只停止该作业,不进行 SavePoint 操作吗?',
'devops.jobinfo.canceljob.success':'普通停止成功',
'devops.jobinfo.canceljob.failed':'普通停止失败',
'devops.jobinfo.job.key':'{key} 任务',
'devops.jobinfo.job.key.success':'{key} 成功',
'devops.jobinfo.job.key.failed':'{key} 失败,原因:{msg}',
'devops.jobinfo.job.keyConfirm':'确定{key} 该作业吗?',
'devops.baseinfo.taskid': '任务ID',
'devops.baseinfo.name': '任务名称',
'devops.baseinfo.status': '状态',
'devops.baseinfo.readbytes': '接收字节',
'devops.baseinfo.readrecords': '接收记录',
'devops.baseinfo.writebytes': '发送字节',
'devops.baseinfo.writerecords': '发送记录',
'devops.baseinfo.parallelism': '并行度',
'devops.baseinfo.tasks': '算子',
'devops.baseinfo.restart_number': '重启次数',
'devops.config.exec.mode': '执行模式',
'devops.config.alias': '集群实例',
'devops.config.clusterConfiguration': '集群配置',
'devops.config.session': '共享会话',
'devops.config.useSqlFragment': '语句集',
'devops.config.isJarTask': '任务类型',
'devops.config.useBatchModel': '批处理模式',
'devops.config.checkpoint': '检查点间隔',
'devops.config.savePointStrategy': '保存点策略',
'devops.config.savePointPath': '保存点路径',
'devops.config.jarpath': 'Jar 路径',
'devops.config.jarmainclass': 'Jar 主类',
'devops.config.jarparams': 'Jar 参数',
// system info of log
'sys.info.logList.tips': '点击左侧日志文件查看',
}; };
...@@ -25,7 +25,7 @@ type GlobalVarDescProps = { ...@@ -25,7 +25,7 @@ type GlobalVarDescProps = {
values: Partial<GlobalVar>; values: Partial<GlobalVar>;
columns: any; columns: any;
} }
const DocumentDesc: React.FC<GlobalVarDescProps> = (props) => { const GlobalVarDesc: React.FC<GlobalVarDescProps> = (props) => {
const {values, columns} = props; const {values, columns} = props;
return <> return <>
<ProDescriptions<GlobalVar> <ProDescriptions<GlobalVar>
...@@ -41,4 +41,4 @@ const DocumentDesc: React.FC<GlobalVarDescProps> = (props) => { ...@@ -41,4 +41,4 @@ const DocumentDesc: React.FC<GlobalVarDescProps> = (props) => {
</> </>
} }
export default DocumentDesc; export default GlobalVarDesc;
...@@ -28,7 +28,7 @@ type GlobalVarDrawerProps = { ...@@ -28,7 +28,7 @@ type GlobalVarDrawerProps = {
modalVisible: boolean; modalVisible: boolean;
columns: any; columns: any;
} }
const DocumentDrawer: React.FC<GlobalVarDrawerProps> = (props) => { const GlobalVarDrawer: React.FC<GlobalVarDrawerProps> = (props) => {
const {onCancel: handleCancel, values, modalVisible, columns} = props; const {onCancel: handleCancel, values, modalVisible, columns} = props;
...@@ -44,4 +44,4 @@ const DocumentDrawer: React.FC<GlobalVarDrawerProps> = (props) => { ...@@ -44,4 +44,4 @@ const DocumentDrawer: React.FC<GlobalVarDrawerProps> = (props) => {
} }
export default DocumentDrawer; export default GlobalVarDrawer;
\ No newline at end of file
/*
* 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.
*/
import {ProForm, ProFormSelect, ProFormText} from "@ant-design/pro-components";
import {UDFTemplate} from "@/types/RegCenter/data";
import {FormInstance} from "antd/es/form/hooks/useForm";
import {Values} from "async-validator";
import React, {useState} from "react";
import {l} from "@/utils/intl";
import CodeEdit from "@/components/CustomEditor/CodeEdit";
import {renderLanguage} from "@/utils/function";
import {Select} from "antd";
import {CODE_TYPE, FUNCTION_TYPE_FILTER} from "@/pages/RegCenter/UDF/constants";
import {lowerCase, toLower} from "lodash";
import { DefaultOptionType } from "antd/es/select";
/**
* code edit props
*/
const CodeEditProps = {
height: "40vh",
width: "40vw",
lineNumbers: "on",
language: "java",
showFloatButton: true,
};
/**
* props
*/
type TemplateFormProps = {
values: Partial<UDFTemplate>;
form: FormInstance<Values>
}
const {Option} = Select;
const TemplateProFrom: React.FC<TemplateFormProps> = (props) => {
const {values, form} = props;
const [codeValue, setCodeValue] = useState<string>(values.templateCode || "");
const [codeLanguage, setCodeLanguage] = useState<string>(lowerCase(values.codeType) || "java");
const handleCodeTypeChange = (value: string) => {
setCodeLanguage(renderLanguage(toLower(value), ""));
};
const renderFunctionType = () => {
let functionTypes: DefaultOptionType[] =[];
FUNCTION_TYPE_FILTER.map(item => {
return functionTypes.push({
value: item.value,
label: item.text
});
});
return functionTypes;
};
const renderCodeEdit = () => {
return <>
<ProForm.Group>
<ProFormText
width={"xl"}
name="name"
label={l("rc.template.name")}
placeholder={l("rc.template.namePlaceholder")}
rules={[{required: true, message: l("rc.template.namePlaceholder")}]}
/>
</ProForm.Group>
<ProForm.Group>
<ProForm.Item
name="codeType"
label={l("rc.template.codeType")}
rules={[{required: true, message: l("rc.template.codeTypePlaceholder")}]}
>
<Select onSelect={handleCodeTypeChange}
style={{width: 280}}
placeholder={l("rc.template.codeTypePlaceholder")}
>
<Option value={CODE_TYPE.JAVA}>{CODE_TYPE.JAVA}</Option>
<Option value={CODE_TYPE.SCALA}>{CODE_TYPE.SCALA}</Option>
<Option value={CODE_TYPE.PYTHON}>{CODE_TYPE.PYTHON}</Option>
</Select>
</ProForm.Item>
<ProFormSelect
width={"md"}
name="functionType"
label={l("rc.template.functionType")}
rules={[{required: true, message: l("rc.template.functionTypePlaceholder")}]}
placeholder={l("rc.template.functionTypePlaceholder")}
options={renderFunctionType()}
/>
</ProForm.Group>
<ProForm.Group>
<ProForm.Item
name="templateCode"
label={l("rc.template.templateCodeLabel", "", {language: codeLanguage})}
rules={[{required: true, message: l("rc.template.templateCodePlaceholder")}]}
>
<CodeEdit
{...CodeEditProps}
code={codeValue}
onChange={(value) => setCodeValue(value)}
language={codeLanguage}
/>
</ProForm.Item>
</ProForm.Group>
</>;
};
return <>
<ProForm
form={form}
initialValues={{...values, codeType: values.codeType || CODE_TYPE.JAVA}}
submitter={false}
>
{renderCodeEdit()}
</ProForm>
</>;
};
export default TemplateProFrom;
/*
* 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.
*/
import TemplateProFrom from "@/pages/RegCenter/UDF/components/TemplateModal/TemplateProFrom";
import React, {useEffect} from "react";
import {Button, Form} from "antd";
import {GitProject, UDFTemplate} from "@/types/RegCenter/data";
import {l} from "@/utils/intl";
import {ModalForm} from "@ant-design/pro-components";
import {FormContextValue} from "@/components/Context/FormContext";
type TemplateModalProps = {
visible: boolean;
onCancel: () => void;
onSubmit: (values: Partial<UDFTemplate>) => void;
values: Partial<UDFTemplate>;
}
const TemplateModal: React.FC<TemplateModalProps> = (props) => {
const {visible, onCancel, onSubmit, values} = props;
const [submitting, setSubmitting] = React.useState<boolean>(false);
/**
* init form
*/
const [form] = Form.useForm();
/**
* init form context
*/
const formContext = React.useMemo<FormContextValue>(() => ({
resetForm: () => form.resetFields(), // 定义 resetForm 方法
}), [form]);
/**
* when modalVisible or values changed, set form values
*/
useEffect(() => {
form.setFieldsValue(values);
}, [visible, values, form]);
/**
* handle cancel
*/
const handleCancel = () => {
onCancel();
setSubmitting(false);
formContext.resetForm();
};
/**
* submit form
*/
const submitForm = async () => {
const fieldsValue = await form.validateFields();
setSubmitting(true);
await onSubmit({...values, ...fieldsValue});
onCancel();
};
/**
* render footer
* @returns {[JSX.Element, JSX.Element]}
*/
const renderFooter = () => {
return [
<Button key={"cancel"} onClick={() => handleCancel()}>{l("button.cancel")}</Button>,
<Button key={"finish"} loading={submitting} type="primary"
onClick={() => submitForm()}>{l("button.finish")}</Button>,
];
};
return <>
<ModalForm<GitProject>
title={values.id ? l("rc.template.modify") : l("rc.template.create")}
open={visible}
form={form}
submitter={{render: () => [...renderFooter()]}}
initialValues={values}
>
<TemplateProFrom form={form} values={values}/>
</ModalForm>
</>;
};
export default TemplateModal;
/*
* 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.
*/
import {ProTable} from "@ant-design/pro-components";
import React, {useRef, useState} from "react";
import {l} from "@/utils/intl";
import {API_CONSTANTS, PROTABLE_OPTIONS_PUBLIC} from "@/services/constants";
import {ActionType, ProColumns} from "@ant-design/pro-table";
import {UDFTemplate} from "@/types/RegCenter/data";
import {queryList} from "@/services/api";
import {
CODE_TYPE_ENUM,
CODE_TYPE_FILTER,
FUNCTION_TYPE_ENUM,
FUNCTION_TYPE_FILTER
} from "@/pages/RegCenter/UDF/constants";
import {CreateBtn} from "@/components/CallBackButton/CreateBtn";
import {EditBtn} from "@/components/CallBackButton/EditBtn";
import {PopconfirmDeleteBtn} from "@/components/CallBackButton/PopconfirmDeleteBtn";
import {handleAddOrUpdate, handleRemoveById, updateEnabled} from "@/services/BusinessCrud";
import {EnableSwitchBtn} from "@/components/CallBackButton/EnableSwitchBtn";
import TemplateModal from "@/pages/RegCenter/UDF/components/TemplateModal";
import UDFTemplateDrawer from "../UDFTemplateDrawer";
import CodeShow from "@/components/CustomEditor/CodeShow";
const CodeShowProps = {
height: "40vh",
width: "40vw",
lineNumbers: "on",
language: "java",
};
const TemplateTable: React.FC = () => {
const actionRef = useRef<ActionType>();
const [loading, setLoading] = useState<boolean>(false);
const [modalVisible, handleModalVisible] = useState<boolean>(false);
const [updateModalVisible, handleUpdateModalVisible] = useState<boolean>(false);
const [drawer, setDrawer] = useState<boolean>(false);
const [formValues, setFormValues] = useState<Partial<UDFTemplate>>({});
/**
* execute and callback function
* @param {() => void} callback
* @returns {Promise<void>}
*/
const executeAndCallback = async (callback: () => void) => {
setLoading(true);
await callback();
setLoading(false);
actionRef.current?.reload?.();
};
/**
* cancel all status
*/
const handleCancel = () => {
setFormValues({});
handleModalVisible(false);
handleUpdateModalVisible(false);
setDrawer(false);
actionRef.current?.reload?.();
};
/**
* change ModalVisible
* @param value
*/
const handleEdit = async (value: Partial<UDFTemplate>) => {
setFormValues(value);
handleUpdateModalVisible(true);
};
/**
* added or update submit
* @param {Partial<UDFTemplate>} value
* @returns {Promise<void>}
*/
const handleAddOrUpdateSubmit = async (value: Partial<UDFTemplate>) => {
await handleAddOrUpdate(API_CONSTANTS.UDF_TEMPLATE_ADD_UPDATE, value);
handleCancel();
};
/**
* update enabled
* @param {Partial<GitProject>} value
* @returns {Promise<void>}
*/
const handleChangeEnable = async (value: Partial<UDFTemplate>) => {
await executeAndCallback(async () => await updateEnabled(API_CONSTANTS.UDF_TEMPLATE_ENABLE, {id: value.id}));
};
/**
* delete udf template by id
* @param {number} id
* @returns {Promise<void>}
*/
const handleDeleteSubmit = async (id: number) => {
await executeAndCallback(async () => await handleRemoveById(API_CONSTANTS.UDF_TEMPLATE_DELETE, id));
};
/**
* handle open drawer
* @param {Partial<UDFTemplate>} record
*/
const handleOpenDrawer = (record: Partial<UDFTemplate>) => {
setFormValues(record)
setDrawer(true)
}
const columns: ProColumns<UDFTemplate>[] = [
{
title: l("rc.template.name"),
dataIndex: "name",
render: (dom, record) => {
return <a onClick={() => handleOpenDrawer(record)}>{dom}</a>;
} },
{
title: l("rc.template.codeType"),
dataIndex: "codeType",
filters: CODE_TYPE_FILTER,
valueEnum: CODE_TYPE_ENUM,
filterMultiple: false,
onFilter: false,
},
{
title: l("rc.template.functionType"),
dataIndex: "functionType",
filters: FUNCTION_TYPE_FILTER,
valueEnum: FUNCTION_TYPE_ENUM,
filterMultiple: false,
onFilter: false,
},
{
title: l("rc.template.templateCode"),
dataIndex: "templateCode",
filters: FUNCTION_TYPE_FILTER,
valueEnum: FUNCTION_TYPE_ENUM,
hideInTable: true,
filterMultiple: false,
onFilter: false,
render : (dom, record) => {
return <CodeShow {...CodeShowProps} code={record.templateCode} showFloatButton />;
}
},
{
title: l("global.table.isEnable"),
dataIndex: "enabled",
hideInSearch: true,
render: (_, record) => {
return <EnableSwitchBtn key={`${record.id}_enable`} disabled={drawer} record={record}
onChange={() => handleChangeEnable(record)}/>;
},
},
{
title: l("global.table.createTime"),
dataIndex: "createTime",
valueType: "dateTime",
sorter: true,
hideInSearch: true,
},
{
title: l("global.table.updateTime"),
dataIndex: "updateTime",
valueType: "dateTime",
sorter: true,
hideInSearch: true,
},
{
title: l("global.table.operate"),
width: "10vh",
hideInSearch: true,
hideInDescriptions: true,
render: (text, record) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)}/>,
<PopconfirmDeleteBtn key={`${record.id}_delete`} onClick={() => handleDeleteSubmit(record.id)}
description={l("rc.template.deleteConfirm")}/>,
]
}
];
return <>
<ProTable<UDFTemplate>
{...PROTABLE_OPTIONS_PUBLIC}
loading={loading}
actionRef={actionRef}
headerTitle={l("rc.udf.management")}
toolBarRender={() => [<CreateBtn key={"template"} onClick={() => handleModalVisible(true)}/>]}
request={(params, sorter, filter: any) => queryList(API_CONSTANTS.UDF_TEMPLATE, {...params, sorter, filter})}
columns={columns}
/>
{/* added */}
{modalVisible && <TemplateModal values={formValues} visible={modalVisible} onCancel={handleCancel}
onSubmit={(value: Partial<UDFTemplate>) => handleAddOrUpdateSubmit(value)}/>}
{/* modify */}
{updateModalVisible && <TemplateModal values={formValues} visible={updateModalVisible} onCancel={handleCancel}
onSubmit={(value: Partial<UDFTemplate>) => handleAddOrUpdateSubmit(value)}/>}
{/* drawer */}
{drawer &&
<UDFTemplateDrawer
onCancel={() => handleCancel()}
values={formValues}
modalVisible={drawer}
columns={columns}
/>}
</>;
};
export default TemplateTable;
/*
*
* 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.
*
*/
import React from "react";
import {GlobalVar, UDFTemplate} from "@/types/RegCenter/data";
import { ProDescriptions } from "@ant-design/pro-components";
type UDFTemplateDescProps = {
values: Partial<UDFTemplate>;
columns: any;
}
const UDFTemplateDesc: React.FC<UDFTemplateDescProps> = (props) => {
const {values, columns} = props;
return <>
<ProDescriptions<GlobalVar>
column={1}
loading={values && Object.keys(values).length === 0}
title={values.name}
request={async () => ({
data: values,
})}
params={{id: values.id}}
columns={columns}
/>
</>;
};
export default UDFTemplateDesc;
/*
*
* 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.
*
*/
import {UDFTemplate} from "@/types/RegCenter/data";
import React from "react";
import {Drawer} from "antd";
import UDFTemplateDesc from "./UDFTemplateDesc";
type UDFTemplateDrawerProps = {
onCancel: (flag?: boolean) => void;
values: Partial<UDFTemplate>;
modalVisible: boolean;
columns: any;
}
const UDFTemplateDrawer: React.FC<UDFTemplateDrawerProps> = (props) => {
const {onCancel: handleCancel, values, modalVisible, columns} = props;
return <>
<Drawer
width={"45%"}
open={modalVisible}
onClose={() => handleCancel(false)}
>
<UDFTemplateDesc values={values} columns={columns}/>
</Drawer>
</>;
};
export default UDFTemplateDrawer;
/*
* 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.
*/
/**
* code type
*/
export const CODE_TYPE = {
JAVA: 'Java',
PYTHON: 'Python',
SCALA: 'Scala',
}
/**
* code type filter
*/
export const CODE_TYPE_FILTER = [
{
value: CODE_TYPE.JAVA,
text: CODE_TYPE.JAVA,
}, {
value: CODE_TYPE.PYTHON,
text: CODE_TYPE.PYTHON,
},{
value: CODE_TYPE.SCALA,
text: CODE_TYPE.SCALA,
},
];
/**
* code type enum
*/
export const CODE_TYPE_ENUM = {
JAVA: {
text: "Java",
},
PYTHON: {
text: "Python",
},
SCALA: {
text: "Scala",
}
}
/**
* function type
*/
export const FUNCTION_TYPE = {
UDF: 'UDF',
UDAF: 'UDAF',
UDTF: 'UDTF',
}
/**
* function type enum
*/
export const FUNCTION_TYPE_ENUM = {
UDF: {
text: "UDF",
},
UDAF: {
text: "UDAF",
},
UDTF: {
text: "UDTF",
}
}
/**
* function type filter
*/
export const FUNCTION_TYPE_FILTER = [
{
value: FUNCTION_TYPE.UDF,
text: FUNCTION_TYPE.UDF,
}, {
value: FUNCTION_TYPE.UDAF,
text: FUNCTION_TYPE.UDAF,
},{
value: FUNCTION_TYPE.UDTF,
text: FUNCTION_TYPE.UDTF,
},
];
/*
* 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.
*/
import {PageContainer} from "@ant-design/pro-components";
import TemplateTable from "@/pages/RegCenter/UDF/components/TemplateTable";
export default ()=>{
return <PageContainer title={false}>
<TemplateTable/>
</PageContainer>
}
...@@ -126,6 +126,16 @@ export const API_CONSTANTS = { ...@@ -126,6 +126,16 @@ export const API_CONSTANTS = {
// ---- get project all build logs ---- // ---- get project all build logs ----
GIT_PROJECT_BUILD_ALL_LOGS: "/api/git/getAllBuildLog", GIT_PROJECT_BUILD_ALL_LOGS: "/api/git/getAllBuildLog",
// UDF template
UDF_TEMPLATE: "/api/udf/template/list",
// UDF template add or update
UDF_TEMPLATE_ADD_UPDATE: "/api/udf/template",
// UDF template delete
UDF_TEMPLATE_DELETE: "/api/udf/template/delete",
// UDF template enable or disable
UDF_TEMPLATE_ENABLE: "/api/udf/template/enable",
// system config center // system config center
//-- system root logs //-- system root logs
...@@ -281,6 +291,7 @@ export const DIALECT = { ...@@ -281,6 +291,7 @@ export const DIALECT = {
MARKDOWN: "markdown", MARKDOWN: "markdown",
SCALA: "scala", SCALA: "scala",
PYTHON: "py", PYTHON: "py",
PYTHON_LONG: "python",
YML: "yml", YML: "yml",
YAML: "yaml", YAML: "yaml",
SH: "sh", SH: "sh",
......
...@@ -210,3 +210,9 @@ export type GitProjectTreeNode = { ...@@ -210,3 +210,9 @@ export type GitProjectTreeNode = {
leaf: boolean; leaf: boolean;
children: GitProjectTreeNode[]; children: GitProjectTreeNode[];
} }
export type UDFTemplate = BaseBeanColumns & {
codeType: string,
functionType: string,
templateCode: string
}
...@@ -188,6 +188,8 @@ export const getLanguage = (type: string): string => { ...@@ -188,6 +188,8 @@ export const getLanguage = (type: string): string => {
return DIALECT.SCALA; return DIALECT.SCALA;
case DIALECT.PYTHON: case DIALECT.PYTHON:
return DIALECT.PYTHON; return DIALECT.PYTHON;
case DIALECT.PYTHON_LONG:
return DIALECT.PYTHON_LONG;
case DIALECT.SQL: case DIALECT.SQL:
return DIALECT.SQL; return DIALECT.SQL;
default: default:
...@@ -252,7 +254,7 @@ export const renderIcon = (type: string, splitChar: string, isLeft: boolean) => ...@@ -252,7 +254,7 @@ export const renderIcon = (type: string, splitChar: string, isLeft: boolean) =>
*/ */
export const renderLanguage = (type: string, splitChar: string) => { export const renderLanguage = (type: string, splitChar: string) => {
if (trim(splitChar).length === 0) { if (trim(splitChar).length === 0) {
getLanguage(type); return getLanguage(type);
} else { } else {
let suffixOfType = type.toString().split(splitChar).reverse()[0]; let suffixOfType = type.toString().split(splitChar).reverse()[0];
return getLanguage(suffixOfType); return getLanguage(suffixOfType);
......
...@@ -785,9 +785,9 @@ INSERT INTO `dinky_tenant` VALUES (1, 'DefaultTenant', 0, 'DefaultTenant', '2022 ...@@ -785,9 +785,9 @@ INSERT INTO `dinky_tenant` VALUES (1, 'DefaultTenant', 0, 'DefaultTenant', '2022
DROP TABLE IF EXISTS `dinky_udf`; DROP TABLE IF EXISTS `dinky_udf`;
CREATE TABLE `dinky_udf` ( CREATE TABLE `dinky_udf` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'udf name', `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'udf name',
`class_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Complete class name', `class_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Complete class name',
`source_code` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'source code', `source_code` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'source code',
`compiler_code` binary(255) NULL DEFAULT NULL COMMENT 'compiler product', `compiler_code` binary(255) NULL DEFAULT NULL COMMENT 'compiler product',
`version_id` int(11) NULL DEFAULT NULL COMMENT 'version', `version_id` int(11) NULL DEFAULT NULL COMMENT 'version',
`version_description` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'version description', `version_description` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'version description',
...@@ -798,9 +798,9 @@ CREATE TABLE `dinky_udf` ( ...@@ -798,9 +798,9 @@ CREATE TABLE `dinky_udf` (
`dialect` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'dialect', `dialect` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'dialect',
`type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'type', `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'type',
`step` int(11) NULL DEFAULT NULL COMMENT 'job lifecycle step', `step` int(11) NULL DEFAULT NULL COMMENT 'job lifecycle step',
`enable` tinyint(1) NULL DEFAULT NULL COMMENT 'is enable', `enable` tinyint(1) NULL DEFAULT 1 COMMENT 'is enable',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time', `create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT 'update time', `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT 'update time',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'udf' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'udf' ROW_FORMAT = Dynamic;
...@@ -814,13 +814,13 @@ CREATE TABLE `dinky_udf` ( ...@@ -814,13 +814,13 @@ CREATE TABLE `dinky_udf` (
DROP TABLE IF EXISTS `dinky_udf_template`; DROP TABLE IF EXISTS `dinky_udf_template`;
CREATE TABLE `dinky_udf_template` ( CREATE TABLE `dinky_udf_template` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板名称', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'template name',
`code_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '代码类型', `code_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'code type',
`function_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '函数类型', `function_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'function type',
`template_code` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '模板代码', `template_code` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'code',
`enabled` tinyint(1) NULL DEFAULT NULL COMMENT 'is enable', `enabled` tinyint(1) NULL DEFAULT 1 COMMENT 'is enable',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time', `create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT 'update time', `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT 'update time',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'udf template' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'udf template' ROW_FORMAT = Dynamic;
......
...@@ -30,4 +30,18 @@ UPDATE dinky_cluster_configuration SET config_json =( SELECT JSON_SET( config_js ...@@ -30,4 +30,18 @@ UPDATE dinky_cluster_configuration SET config_json =( SELECT JSON_SET( config_js
-- Fix spelling error -- Fix spelling error
update dinky_task set dialect = 'KubernetesApplication' where dialect = 'KubernetesApplaction'; update dinky_task set dialect = 'KubernetesApplication' where dialect = 'KubernetesApplaction';
\ No newline at end of file
-- change dinky_udf_template table structure
alter table dinky_udf_template alter column `enabled` set default 1;
alter table dinky_udf_template modify column `name` varchar(100);
alter table dinky_udf_template modify column `template_code` longtext;
-- change dinky_udf table structure
alter table dinky_udf modify column `name` varchar(200);
alter table dinky_udf modify column `class_name` varchar(200);
alter table dinky_udf modify column `class_name` varchar(200);
alter table dinky_udf alter column `enable` set default 1;
alter table dinky_udf modify column `source_code` longtext;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment