Skip to content

Commit

Permalink
add method feature for file read/write
Browse files Browse the repository at this point in the history
  • Loading branch information
龚德伟 committed Dec 5, 2019
1 parent f2ba271 commit d950b79
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions flare-server/static/simpleui/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ let method_features = [{
name: 'Net',
style: 'rpc',
includes: ['java.net','org.apache.tomcat.util.net']
},{
name: 'File',
style: 'rpc',
includes: ['FileOutputStream','FileInputStream']
},{
name: 'IO',
style: 'rpc',
includes: ['.read()','.doRead()','readFully()','.write()','.doWrite()','.writeAndFlush()','.flush']
includes: ['.read()','.doRead()','readFully()','.write()','.doWrite()','.writeAndFlush()','.flush','PrintStream']
},{
name: 'Redis',
style: 'db',
Expand Down Expand Up @@ -82,7 +86,7 @@ let method_features = [{
excludes: ['doFilter()']
}];

let excluded_methods = ['doFilter()'];
let excluded_methods = ['doFilter()','doFilterInternal()'];

/* 如下所示,当前配置key、 配置菜单中configCode、本地存储key 此三项需要保持一致,默认配置key = 当前配置key + '_source'*/
var configs = {
Expand All @@ -91,8 +95,8 @@ var configs = {
excluded_methods: excluded_methods,
excluded_methods_source: excluded_methods,
configMenuList: [
{ configId: 1, configName: 'method_features', configCode:'method_features' }, // 设置中左侧菜单栏,根据configCode匹配配置项以及设置本地存储
{ configId: 2, configName: 'excluded_methods', configCode:'excluded_methods' }, // 设置中左侧菜单栏,根据configCode匹配配置项以及设置本地存储
{ configId: 1, configName: 'Method Features', configCode:'method_features' }, // 设置中左侧菜单栏,根据configCode匹配配置项以及设置本地存储
{ configId: 2, configName: 'Excluded Methods', configCode:'excluded_methods' }, // 设置中左侧菜单栏,根据configCode匹配配置项以及设置本地存储
],
/* 本地存储key */
keys: {
Expand Down

0 comments on commit d950b79

Please # to comment.