File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { ReactElement } from 'react' ;
2- import awardsData from './awards.json' ;
2+ import awardsData from './json_data/ awards.json' ;
33
44export function Awards ( ) : ReactElement {
55 return (
Original file line number Diff line number Diff line change 11import { ReactElement } from 'react' ;
22import { Carousel } from 'react-bootstrap' ;
3- import publicationData from './publication.json' ;
4- import awardsData from './awards.json' ;
5- import studentsData from './students.json' ;
6- import facultyData from './faculty.json' ;
7- import newsData from './news.json' ;
3+ import publicationData from './json_data/ publication.json' ;
4+ import awardsData from './json_data/ awards.json' ;
5+ import studentsData from './json_data/ students.json' ;
6+ import facultyData from './json_data/ faculty.json' ;
7+ import newsData from './json_data/ news.json' ;
88
99export function Home ( ) : ReactElement {
1010 return (
Original file line number Diff line number Diff line change 11import { ReactElement } from 'react' ;
22
33// 导入新闻JSON数据
4- import newsData from './news.json' ;
4+ import newsData from './json_data/ news.json' ;
55
66export function News ( ) : ReactElement {
77 return (
Original file line number Diff line number Diff line change 11import { ReactElement } from 'react' ;
2- import faculty from './faculty.json' ;
3- import students from './students.json' ;
2+ import faculty from './json_data/ faculty.json' ;
3+ import students from './json_data/ students.json' ;
44
55export function People ( ) : ReactElement {
66 const renderPerson = ( person : any ) => (
Original file line number Diff line number Diff line change 11import { ReactElement } from 'react' ;
2- import projectsData from './project.json' ;
2+ import projectsData from './json_data/ project.json' ;
33
44
55export function Projects ( ) : ReactElement {
Original file line number Diff line number Diff line change 77 LiteratureAuthor ,
88} from 'react-paper-list' ;
99
10- import publicationData from './publication.json' ;
10+ import publicationData from './json_data/ publication.json' ;
1111
1212export function Publication ( ) : ReactElement {
1313 // 静态构造papers数据
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments