diff --git a/public/react/src/components/mini-pagination/index.jsx b/public/react/src/components/mini-pagination/index.jsx index 5a940ad68..1caa65973 100644 --- a/public/react/src/components/mini-pagination/index.jsx +++ b/public/react/src/components/mini-pagination/index.jsx @@ -24,8 +24,8 @@ export default ({ current, defaultCurrent, total, pageSize, onChange = noop }) = return (
- 上一页 - 下一页 + 上一页 + 下一页
) diff --git a/public/react/src/modules/home/shixunsHome.js b/public/react/src/modules/home/shixunsHome.js index fa96cab54..e1e2eb8b3 100644 --- a/public/react/src/modules/home/shixunsHome.js +++ b/public/react/src/modules/home/shixunsHome.js @@ -1,19 +1,10 @@ import React, { Component } from 'react'; - - import { Link } from "react-router-dom"; - import axios from 'axios'; - import TPMIndexHOC from '../tpm/TPMIndexHOC'; - - import UpgradeModals from '../modals/UpgradeModals'; - import { SnackbarHOC, getImageUrl, configShareForIndex } from 'educoder'; - import './home.css'; - import { Tooltip, Spin, Slider, Rate } from 'antd'; const $ = window.$; @@ -246,7 +237,7 @@ class ShixunsHome extends Component { {homedatalist === undefined ? "" : homedatalist.subjects.map((item, key) => { if (key < 8) return ( -
+
{item.excellent === false ? "" :
@@ -364,7 +355,7 @@ class ShixunsHome extends Component { {homedatalist === undefined ? "" : homedatalist.shixuns.map((item, key) => { return ( -
+
{item.tag_name} diff --git a/public/react/src/modules/page/component/CheckBoxGroup.js b/public/react/src/modules/page/component/CheckBoxGroup.js index 8c981b217..2e0aeac15 100644 --- a/public/react/src/modules/page/component/CheckBoxGroup.js +++ b/public/react/src/modules/page/component/CheckBoxGroup.js @@ -29,9 +29,6 @@ class CheckBoxGroup extends Component { this.options = options; return ( - - - {options.map((option, index) => { const val = itemValueFunction ? itemValueFunction(option, index) : option[newItemValueName]; return (itemLabelFunction ? itemLabelFunction(option, index) : option[newItemLabelName]) + >{itemLabelFunction ? itemLabelFunction(option, index) : option[newItemLabelName]}) }) } diff --git a/public/react/src/modules/tpm/jupyter/rightPane/index.js b/public/react/src/modules/tpm/jupyter/rightPane/index.js index 042c39e0b..161dc5442 100644 --- a/public/react/src/modules/tpm/jupyter/rightPane/index.js +++ b/public/react/src/modules/tpm/jupyter/rightPane/index.js @@ -8,7 +8,6 @@ */ import './index.less'; import React, { useEffect, useState } from 'react'; -import { Spin, Button } from 'antd'; function RightPane(props) { const { status, @@ -18,17 +17,17 @@ function RightPane(props) { loading } = props; + const loadInit = ( +
+ {/**/} +
+ ) const [renderCtx, setRenderCtx] = useState(() => loadInit); // 重新获取 url const handleClickReload = () => { onReloadUrl && onReloadUrl(); } - const loadInit = ( -
- {/**/} -
- ); const loadError = (
@@ -66,13 +65,6 @@ function RightPane(props) { className='jupyter_iframe_style' >
- {/*
*/} - {/* 保存*/} - {/*
*/}
)); diff --git a/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx b/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx index e2ae6e5bc..43b970fde 100644 --- a/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx +++ b/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx @@ -61,8 +61,8 @@ export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist }) => { function overlayMenu(item, id) { return { - item.map((list, k) => -
+ item.map((list, k) => +
{list.name}
{ @@ -110,7 +110,7 @@ export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist }) => {
筛选:
- {DiffObject.map(item => )} + {DiffObject.map(item => )}