Skip to content

Commit f30f77a

Browse files
committed
集中json
1 parent 7e6c80e commit f30f77a

12 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/pages/Awards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactElement } from 'react';
2-
import awardsData from './awards.json';
2+
import awardsData from './json_data/awards.json';
33

44
export function Awards(): ReactElement {
55
return (

src/pages/Home.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { ReactElement } from 'react';
22
import { 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

99
export function Home(): ReactElement {
1010
return (

src/pages/News.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ReactElement } from 'react';
22

33
// 导入新闻JSON数据
4-
import newsData from './news.json';
4+
import newsData from './json_data/news.json';
55

66
export function News(): ReactElement {
77
return (

src/pages/People.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { 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

55
export function People(): ReactElement {
66
const renderPerson = (person: any) => (

src/pages/Projects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactElement } from 'react';
2-
import projectsData from './project.json';
2+
import projectsData from './json_data/project.json';
33

44

55
export function Projects(): ReactElement {

src/pages/Publication.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
LiteratureAuthor,
88
} from 'react-paper-list';
99

10-
import publicationData from './publication.json';
10+
import publicationData from './json_data/publication.json';
1111

1212
export function Publication(): ReactElement {
1313
// 静态构造papers数据

0 commit comments

Comments
 (0)