diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 5949c2fb5..322b95ce0 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -45,16 +45,9 @@ export function initAxiosInterceptors(props) { // https://github.com/axios/axios/issues/1497 // TODO 读取到package.json中的配置? - var //proxy = "http://localhost:3000" - //proxy = "http://testbdweb.trustie.net" - //proxy = "http://testbdweb.educoder.net" - // proxy = "https://testeduplus2.educoder.net" - //proxy="http://47.96.87.25:48080" - // proxy="https://pre-newweb.educoder.net" - // proxy="https://test-newweb.educoder.net" - //proxy="https://test-jupyterweb.educoder.net" - //proxy="http://192.168.2.63:3001" - proxy="http://123.59.135.93:56666" + var + // proxy="http://123.59.135.93:56666" + proxy="http://localhost:3000" // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; // 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制 diff --git a/public/react/src/forge/Images/1.png b/public/react/src/forge/Images/1.png new file mode 100644 index 000000000..e288da625 Binary files /dev/null and b/public/react/src/forge/Images/1.png differ diff --git a/public/react/src/forge/Images/2.png b/public/react/src/forge/Images/2.png new file mode 100644 index 000000000..0e764579c Binary files /dev/null and b/public/react/src/forge/Images/2.png differ diff --git a/public/react/src/forge/Images/3.png b/public/react/src/forge/Images/3.png new file mode 100644 index 000000000..f268c0c6a Binary files /dev/null and b/public/react/src/forge/Images/3.png differ diff --git a/public/react/src/forge/Images/4.png b/public/react/src/forge/Images/4.png new file mode 100644 index 000000000..b1f053398 Binary files /dev/null and b/public/react/src/forge/Images/4.png differ diff --git a/public/react/src/forge/Images/5.png b/public/react/src/forge/Images/5.png new file mode 100644 index 000000000..7ee439832 Binary files /dev/null and b/public/react/src/forge/Images/5.png differ diff --git a/public/react/src/forge/Images/6.png b/public/react/src/forge/Images/6.png new file mode 100644 index 000000000..d0f295a53 Binary files /dev/null and b/public/react/src/forge/Images/6.png differ diff --git a/public/react/src/forge/Images/array.png b/public/react/src/forge/Images/array.png new file mode 100644 index 000000000..077e61337 Binary files /dev/null and b/public/react/src/forge/Images/array.png differ diff --git a/public/react/src/forge/Images/banner_list.png b/public/react/src/forge/Images/banner_list.png new file mode 100644 index 000000000..9bc449d63 Binary files /dev/null and b/public/react/src/forge/Images/banner_list.png differ diff --git a/public/react/src/forge/Images/banner_sub.png b/public/react/src/forge/Images/banner_sub.png new file mode 100644 index 000000000..ecc293183 Binary files /dev/null and b/public/react/src/forge/Images/banner_sub.png differ diff --git a/public/react/src/forge/Images/banner_team.png b/public/react/src/forge/Images/banner_team.png new file mode 100644 index 000000000..f0ca667f6 Binary files /dev/null and b/public/react/src/forge/Images/banner_team.png differ diff --git a/public/react/src/forge/Images/dir.png b/public/react/src/forge/Images/dir.png new file mode 100644 index 000000000..5172862c9 Binary files /dev/null and b/public/react/src/forge/Images/dir.png differ diff --git a/public/react/src/forge/Images/focus.png b/public/react/src/forge/Images/focus.png new file mode 100644 index 000000000..4dd123719 Binary files /dev/null and b/public/react/src/forge/Images/focus.png differ diff --git a/public/react/src/forge/Images/focused.png b/public/react/src/forge/Images/focused.png new file mode 100644 index 000000000..414f168a2 Binary files /dev/null and b/public/react/src/forge/Images/focused.png differ diff --git a/public/react/src/forge/Images/fork.png b/public/react/src/forge/Images/fork.png new file mode 100644 index 000000000..768bd8b50 Binary files /dev/null and b/public/react/src/forge/Images/fork.png differ diff --git a/public/react/src/forge/Images/item.png b/public/react/src/forge/Images/item.png new file mode 100644 index 000000000..ecb532c65 Binary files /dev/null and b/public/react/src/forge/Images/item.png differ diff --git a/public/react/src/forge/Images/new.png b/public/react/src/forge/Images/new.png new file mode 100644 index 000000000..9255fe828 Binary files /dev/null and b/public/react/src/forge/Images/new.png differ diff --git a/public/react/src/forge/Images/parise.png b/public/react/src/forge/Images/parise.png new file mode 100644 index 000000000..6f95cbf96 Binary files /dev/null and b/public/react/src/forge/Images/parise.png differ diff --git a/public/react/src/forge/Images/parised.png b/public/react/src/forge/Images/parised.png new file mode 100644 index 000000000..58d889a57 Binary files /dev/null and b/public/react/src/forge/Images/parised.png differ diff --git a/public/react/src/forge/Images/type.png b/public/react/src/forge/Images/type.png new file mode 100644 index 000000000..4b860f712 Binary files /dev/null and b/public/react/src/forge/Images/type.png differ diff --git a/public/react/src/forge/Main/Detail.js b/public/react/src/forge/Main/Detail.js index 9e007c18a..3556cd681 100644 --- a/public/react/src/forge/Main/Detail.js +++ b/public/react/src/forge/Main/Detail.js @@ -8,6 +8,17 @@ import Loadable from 'react-loadable'; import Loading from '../../Loading'; import axios from 'axios'; + +import img_1 from '../Images/1.png'; +import img_2 from '../Images/2.png'; +import img_3 from '../Images/3.png'; +import img_4 from '../Images/4.png'; +import img_6 from '../Images/6.png'; +import img_parise from '../Images/parise.png'; +import img_focus from '../Images/focus.png'; +import img_parised from '../Images/parised.png'; +import img_focused from '../Images/focused.png'; +import img_fork from '../Images/fork.png'; const FileNew = Loadable({ loader: () => import('../Newfile/Index'), loading: Loading, @@ -277,43 +288,49 @@ class Detail extends Component{ return(
{projectDetail && projectDetail.author && projectDetail.author.name} / { projectDetail && projectDetail.identifier }
- - - - this.focusFunc(projectDetail && projectDetail.watched)}> - - {projectDetail && projectDetail.watched ? '取消关注':'关注'} - - {watchers_count} - - - this.pariseFunc(projectDetail && projectDetail.praised)}> - - {projectDetail && projectDetail.praised ? '取消点赞':'点赞'} - - {praises_count} ++ {projectDetail && projectDetail.author && projectDetail.author.name} + | + { projectDetail && projectDetail.identifier } +
++ {item.name} + {item.projects_count} +
+ {item.name} + {item.projects_count} +
{item.description}
- { item.forked_count ? { item.forked_count}:"" } - { item.praises_count } + {/* { item.forked_count ? { item.forked_count}:"" } */} +{item.description}
-