|
|
|
@ -19,13 +19,18 @@ import actions from '../../../redux/actions';
|
|
|
|
|
import RightPane from './rightPane';
|
|
|
|
|
|
|
|
|
|
import MyIcon from "../../../common/components/MyIcon";
|
|
|
|
|
function clearSlct() {
|
|
|
|
|
if("getSelection" in window){
|
|
|
|
|
window.getSelection().removeAllRanges();
|
|
|
|
|
}else{
|
|
|
|
|
document.selection.empty();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
function jsCopy(s) {
|
|
|
|
|
var copyEle = document.getElementById(s);
|
|
|
|
|
const range = document.createRange(); // 创造range
|
|
|
|
|
window.getSelection().removeAllRanges(); //清除页面中已有的selection
|
|
|
|
|
range.selectNode(copyEle); // 选中需要复制的节点
|
|
|
|
|
window.getSelection().addRange(range); // 执行选中元素
|
|
|
|
|
const copyStatus = document.execCommand("Copy"); // 执行copy操作
|
|
|
|
|
clearSlct();
|
|
|
|
|
const copyEle = document.getElementById(s);
|
|
|
|
|
copyEle.select();
|
|
|
|
|
const copyStatus=document.execCommand("Copy");
|
|
|
|
|
// 对成功与否定进行提示
|
|
|
|
|
copyStatuss(copyStatus)
|
|
|
|
|
}
|
|
|
|
@ -66,7 +71,8 @@ function JupyterTPI (props) {
|
|
|
|
|
jupytertime,
|
|
|
|
|
active_with_tpi,
|
|
|
|
|
spinning,
|
|
|
|
|
updataspinning
|
|
|
|
|
updataspinning,
|
|
|
|
|
jupyter_folder_name
|
|
|
|
|
} = props;
|
|
|
|
|
|
|
|
|
|
const emptyCtx = (
|
|
|
|
@ -274,8 +280,8 @@ function JupyterTPI (props) {
|
|
|
|
|
mouseLeaveDelay={0.3}
|
|
|
|
|
>
|
|
|
|
|
<div className="sortinxdirection">
|
|
|
|
|
<Icon type="file-text" className="jupyter_icon fl lineheighttaj" />
|
|
|
|
|
<a className="jupyter_name ml10 maxnamewidth150 lineheighttaj colorlineheighttaj" title={item.title}>{item.title}</a>
|
|
|
|
|
<Icon type="file-text" className="jupyter_icon fl lineheighttaj filestyles" />
|
|
|
|
|
<a className="jupyter_name ml10 maxnamewidth181 lineheighttaj colorlineheighttaj" title={item.title}>{item.title}</a>
|
|
|
|
|
<a className={"fr color-blue lineheighttaj"}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
jsCopy("file_path"+i)
|
|
|
|
@ -382,11 +388,22 @@ function JupyterTPI (props) {
|
|
|
|
|
>
|
|
|
|
|
{/*<p className={"RightPaneDrawertop"}></p>*/}
|
|
|
|
|
<div className="jupyter_data_sets_area newjupyter_data_sets_area">
|
|
|
|
|
<h2 className="jupyter_h2_title">
|
|
|
|
|
<h2 className="jupyter_h2_title bortop17212F">
|
|
|
|
|
{/*<MyIcon type="iconwenti" className="jupyter_data_icon"/>*/}
|
|
|
|
|
<i className={"iconfont icon-base"}></i>数据集
|
|
|
|
|
{/* <span className="iconfont icon-java jupyter_data_icon"></span>数据集 */}
|
|
|
|
|
</h2>
|
|
|
|
|
<h2 className="borbottom17212F jupyterfilepaths">
|
|
|
|
|
<span className={"ml50"}>文件路径</span>
|
|
|
|
|
<div className="sortinxdirection">
|
|
|
|
|
<a className="jupyter_name ml50 maxnamewidth200 lineheighttaj colorlineheighttaj">{jupyter_folder_name}</a>
|
|
|
|
|
<a className={"fr color-blue lineheighttaj font-14"}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
jsCopy("jupyter_folder_name")
|
|
|
|
|
}}>复制地址</a>
|
|
|
|
|
</div>
|
|
|
|
|
<input id="jupyter_folder_name" className={"file_path_input"} value={jupyter_folder_name}/>
|
|
|
|
|
</h2>
|
|
|
|
|
{ renderCtx }
|
|
|
|
|
<div className='jupyter_pagination'>
|
|
|
|
|
{total<20?"":<Pagination
|
|
|
|
@ -413,6 +430,7 @@ const mapStateToProps = (state) => {
|
|
|
|
|
jupyter_data_set,
|
|
|
|
|
jupyter_tpi_url_state,
|
|
|
|
|
jupyter_data_set_count,
|
|
|
|
|
jupyter_folder_name,
|
|
|
|
|
jupyter_pagination,
|
|
|
|
|
jupyter_identifier
|
|
|
|
|
} = state.jupyterReducer;
|
|
|
|
@ -425,6 +443,7 @@ const mapStateToProps = (state) => {
|
|
|
|
|
jupyter_tpi_url_state,
|
|
|
|
|
total: jupyter_data_set_count,
|
|
|
|
|
pagination: jupyter_pagination,
|
|
|
|
|
jupyter_folder_name:jupyter_folder_name,
|
|
|
|
|
jupyter_identifier,
|
|
|
|
|
drawervisible,
|
|
|
|
|
jupytertime,
|
|
|
|
|