blob: a3f4fd1d0a382840840040df2838c3abcada2964 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export default Object.freeze([{
rule: /\.(bi)$/i,
executable: false,
logo: 'fi-bi',
color: '#9771E7',
isCanBeNew: false,
isCanBeOpen: true
},
{
rule: /\.(sql)$/i,
lang: 'hql',
executable: true,
application: 'spark',
runType: 'sql',
ext: '.sql',
scriptType: 'hive',
abbr: 'sql',
logo: 'fi-spark',
color: '#FF9900',
isCanBeNew: true,
label: 'Sql',
isCanBeOpen: true,
flowType: 'sql'
},
{
rule: /\.(hql)$/i,
lang: 'hql',
executable: true,
application: 'hive',
runType: 'hql',
ext: '.hql',
scriptType: 'hql',
abbr: 'hql',
logo: 'fi-hive',
color: '#F4CF38',
isCanBeNew: true,
label: 'Hive',
isCanBeOpen: true,
flowType: 'hql'
},
{
rule: /\.(out)$/i,
lang: 'out',
executable: true,
application: 'pipeline',
runType: 'pipeline',
ext: '.out',
scriptType: 'storage',
abbr: 'stor',
logo: 'fi-storage',
color: '#4DB091',
isCanBeNew: true,
label: 'Storage',
isCanBeOpen: true
},
{
rule: /\.scala$/i,
lang: 'java',
executable: true,
application: 'spark',
runType: 'scala',
ext: '.scala',
scriptType: 'scala',
abbr: 'scala',
logo: 'fi-scala',
color: '#ED4014',
isCanBeNew: true,
label: 'Scala',
isCanBeOpen: true,
flowType: 'scala'
},
{
rule: /\.scala$/i,
lang: 'java',
executable: true,
application: 'spark',
runType: 'function.mdq',
ext: '.scala',
scriptType: 'scala',
abbr: 'scala',
logo: 'fi-scala',
color: '#ED4014',
isCanBeNew: false,
label: 'Scala',
isCanBeOpen: true
},
{
rule: /\.jdbc$/i,
lang: 'hql',
executable: true,
application: 'jdbc',
runType: 'jdbc',
ext: '.jdbc',
scriptType: 'jdbc',
abbr: 'jdbc',
logo: 'fi-jdbc',
color: '#444444',
isCanBeNew: true,
label: 'JDBC',
isCanBeOpen: true
},
{
rule: /\.python$/i,
lang: 'python',
executable: true,
application: 'python',
runType: 'python',
ext: '.python',
scriptType: 'python',
abbr: 'py',
logo: 'fi-python',
color: '#3573A6',
isCanBeNew: true,
label: 'Python',
isCanBeOpen: true,
flowType: 'python'
},
{
rule: /\.py$/i,
lang: 'python',
executable: true,
application: 'spark',
runType: 'py',
ext: '.py',
scriptType: 'pythonSpark',
abbr: 'py',
logo: 'fi-spark-python',
color: '#3573A6',
isCanBeNew: true,
label: 'PythonSpark',
isCanBeOpen: true,
flowType: 'pyspark'
},
{
rule: /\.r$/i,
lang: 'r',
executable: true,
application: 'spark',
runType: 'r',
ext: '.r',
scriptType: 'r',
abbr: 'r',
logo: 'fi-r',
color: '#2D8CF0',
isCanBeNew: true,
label: 'R',
isCanBeOpen: true
},
{
rule: /\.sh$/i,
lang: 'sh',
executable: true,
application: 'shell',
runType: 'shell',
ext: '.sh',
scriptType: 'shell',
abbr: 'shell',
logo: 'fi-scriptis',
color: '#444444',
isCanBeNew: false,
label: 'Shell',
isCanBeOpen: true,
flowType: 'shell'
},
{
rule: /\.sh$/i,
lang: 'sh',
executable: true,
application: 'shell',
runType: 'sh',
ext: '.sh',
scriptType: 'shell',
abbr: 'shell',
logo: 'fi-scriptis',
color: '#444444',
isCanBeNew: true,
label: 'Shell',
isCanBeOpen: true,
flowType: 'shell'
},
{
rule: /\.qmlsql$/i,
lang: 'hql',
executable: false,
application: 'spark',
runType: 'sql',
ext: '.qmlsql',
scriptType: 'qmlsql',
abbr: 'qmlsql',
logo: 'fi-spark',
color: '#FF9900',
isCanBeNew: false,
label: 'QMLSQL',
isCanBeOpen: true
},
{
rule: /\.qmlpy$/i,
lang: 'python',
executable: false,
application: 'spark',
runType: 'python',
ext: '.qmlpy',
scriptType: 'qmlpy',
abbr: 'qmlpy',
logo: 'fi-python',
color: '#3573A6',
isCanBeNew: false,
label: 'QMLPy',
isCanBeOpen: true
},
{
rule: /\.txt$/i,
lang: 'text',
executable: false,
application: null,
runType: null,
ext: '.txt',
scriptType: 'txt',
abbr: '',
logo: 'fi-txt',
color: '#444444',
isCanBeNew: false,
isCanBeOpen: true
},
{
rule: /\.log$/i,
lang: 'text',
executable: false,
application: null,
runType: null,
ext: '.log',
scriptType: 'txt',
abbr: '',
logo: 'fi-log',
color: '#444444',
isCanBeNew: false,
isCanBeOpen: true
},
{
rule: /\."flowexecution"$/i,
lang: 'text',
executable: false,
application: 'flowexecution',
runType: 'json',
ext: '.txt',
scriptType: 'json',
abbr: '',
logo: 'fi-workflow',
color: '#444444',
isCanBeNew: false,
isCanBeOpen: true
},
{
rule: /\."appjoint"$/i,
lang: 'text',
executable: false,
application: 'appjoint',
runType: null,
ext: '.txt',
scriptType: 'json',
abbr: '',
logo: 'fi-workflow',
color: '#444444',
isCanBeNew: false,
isCanBeOpen: true
},
{
rule: /\.xls$/i,
logo: 'fi-xls',
color: '#36AF47',
isCanBeNew: false,
isCanBeOpen: false
},
{
rule: /\.xlsx$/i,
logo: 'fi-xlsx',
color: '#36AF47',
isCanBeNew: false,
isCanBeOpen: false
},
{
rule: /\.csv$/i,
logo: 'fi-csv',
color: '#36AF47',
isCanBeNew: false,
isCanBeOpen: false
},
{
rule: /\.jar$/i,
logo: 'fi-jar',
color: '#E45F3D',
isCanBeNew: false,
isCanBeOpen: false
},
{
rule: /\.ngql$/i,
lang: 'hql',
executable: true,
application: 'nebula',
runType: 'nebula',
ext: '.ngql',
scriptType: 'Nebula',
abbr: 'nebula',
logo: 'fi-txt',
color: '#3573A6',
isCanBeNew: true,
label: 'Nebula',
isCanBeOpen: true
},
{
rule: /(表详情)|(Table\sdetails)/,
executable: false,
isCanBeOpen: true
},
{
rule: /(建表向导)|(Table\screation\sguide)/,
executable: false,
isCanBeOpen: true
},
{
rule: /(库详情)|(Db\sdetails)/,
executable: false,
isCanBeOpen: true
},
])