-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature][scaleph-ui-react] prevent monaco-editor load loader.js from…
… cdn (#750) * feature: upgrade seatunnel to 2.3.7 * feature: upgrade carp to 0.0.10 * feature: cancel scaleph-ui-react2 build --------- Co-authored-by: wangqi <[email protected]>
- Loading branch information
Showing
26 changed files
with
178 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
scaleph-datasource/src/main/java/cn/sliew/scaleph/ds/service/DataSourceResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package cn.sliew.scaleph.ds.service; | ||
|
||
import cn.sliew.carp.module.datasource.service.dto.DsInfoDTO; | ||
import cn.sliew.scaleph.resource.service.ResourceDescriptor; | ||
|
||
public interface DataSourceResource extends ResourceDescriptor<DsInfoDTO> { | ||
|
||
} |
59 changes: 59 additions & 0 deletions
59
...eph-datasource/src/main/java/cn/sliew/scaleph/ds/service/impl/DataSourceResourceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package cn.sliew.scaleph.ds.service.impl; | ||
|
||
import cn.sliew.carp.framework.common.dict.datasource.DataSourceType; | ||
import cn.sliew.carp.framework.common.model.PageResult; | ||
import cn.sliew.carp.module.datasource.service.CarpDsInfoService; | ||
import cn.sliew.carp.module.datasource.service.dto.DsInfoDTO; | ||
import cn.sliew.carp.module.datasource.service.param.DsInfoListParam; | ||
import cn.sliew.scaleph.common.util.BeanUtil; | ||
import cn.sliew.scaleph.ds.service.DataSourceResource; | ||
import cn.sliew.scaleph.resource.service.enums.ResourceType; | ||
import cn.sliew.scaleph.resource.service.param.ResourceListParam; | ||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class DataSourceResourceImpl implements DataSourceResource { | ||
|
||
@Autowired | ||
private CarpDsInfoService carpDsInfoService; | ||
|
||
@Override | ||
public ResourceType getResourceType() { | ||
return ResourceType.DATASOURCE; | ||
} | ||
|
||
@Override | ||
public Page<DsInfoDTO> list(ResourceListParam param) { | ||
DsInfoListParam target = BeanUtil.copy(param, new DsInfoListParam()); | ||
target.setDsType(DataSourceType.of(param.getLabel())); | ||
PageResult<DsInfoDTO> pageResult = carpDsInfoService.list(target); | ||
Page<DsInfoDTO> page = new Page<>(pageResult.getCurrent(), pageResult.getSize(), pageResult.getTotal()); | ||
page.setRecords(pageResult.getRecords()); | ||
return page; | ||
} | ||
|
||
@Override | ||
public DsInfoDTO getRaw(Long id) { | ||
return carpDsInfoService.selectOne(id, true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...act/src/pages/Project/Workspace/DataIntegration/SeaTunnel/Dag/components/menubar/json.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
...es/Project/Workspace/Artifact/Sql/CodeEditor/EditorRightResult/EditorRightResultTable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.