Skip to content

Commit

Permalink
[Refactor][Web]Refactoring a new data development interface to enhanc…
Browse files Browse the repository at this point in the history
…e the user experience (DataLinkDC#3854)

Signed-off-by: Zzm0809 <[email protected]>
Co-authored-by: zackyoungh <[email protected]>
Co-authored-by: Zzm0809 <[email protected]>
Co-authored-by: gaoyan <[email protected]>
Co-authored-by: gaoyan1998 <[email protected]>
Co-authored-by: zhangyuhang <[email protected]>
Co-authored-by: LUOSHANGJIE\71826 <[email protected]>
Co-authored-by: 18216499322 <[email protected]>
Co-authored-by: Zzm0809 <[email protected]>
  • Loading branch information
9 people authored Nov 7, 2024
1 parent 258a2c1 commit e86841b
Show file tree
Hide file tree
Showing 106 changed files with 14,772 additions and 1,335 deletions.
2 changes: 0 additions & 2 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public LineageResult getLineage(StudioLineageDTO studioCADTO) {
}
} else {
TaskDTO taskDTO = taskService.getTaskInfoById(studioCADTO.getTaskId());
taskDTO.setStatement(taskService.buildEnvSql(taskDTO) + taskDTO.getStatement());
taskDTO.setStatement(taskService.buildEnvSql(taskDTO) + studioCADTO.getStatement());
JobConfig jobConfig = taskDTO.getJobConfig();
return LineageBuilder.getColumnLineageByLogicalPlan(taskDTO.getStatement(), jobConfig.getExecutorSetting());
}
Expand Down
2 changes: 1 addition & 1 deletion dinky-admin/src/main/java/org/dinky/ws/SqlGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

@Component
@Slf4j
@ServerEndpoint("/ws/sql-gateway/")
@ServerEndpoint("/api/ws/sql-gateway/")
public class SqlGateway {

private Session session;
Expand Down
13 changes: 11 additions & 2 deletions dinky-web/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import proxy from './proxy';
import routes from './routes';

const { REACT_APP_ENV = 'dev' } = process.env;

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
// @ts-ignore
export default defineConfig({
/**
Expand Down Expand Up @@ -196,5 +196,14 @@ export default defineConfig({
strategy: 'eager'
},
// requestRecord: {},
dva: {}
dva: {},

chainWebpack: (memo) => {
memo.plugin('monaco-editor-webpack-plugin').use(MonacoWebpackPlugin, [
// 按需配置
{ languages: ['shell', 'json', 'java', 'sql', 'python', 'scala', 'yaml'] }
]);

return memo;
}
});
7 changes: 7 additions & 0 deletions dinky-web/config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ export default [
footerRender: false,
component: './DataStudio'
},
{
path: '/datastudio-new',
name: 'datastudio',
icon: 'CodeOutlined',
footerRender: false,
component: './DataStudioNew'
},
{
path: '/devops',
name: 'devops',
Expand Down
Loading

0 comments on commit e86841b

Please sign in to comment.