Преглед изворни кода

chore: 清理未使用API + 字体CDN回退

wangkangyjy пре 2 недеља
родитељ
комит
0ed768233b
2 измењених фајлова са 4 додато и 5 уклоњено
  1. 0 3
      frontend/src/api/index.js
  2. 4 2
      frontend/src/styles/theme.css

+ 0 - 3
frontend/src/api/index.js

@@ -93,7 +93,6 @@ export const okrApi = {
   getSubordinates: periodId => api.get(`/okr/period/${periodId}/subordinates`).then(r => r.data),
   getPendingReviews: periodId => api.get(`/okr/period/${periodId}/pending-reviews`).then(r => r.data),
   getAllOkrs: periodId => api.get(`/okr/period/${periodId}/all`).then(r => r.data),
-  getWorkbench: periodId => api.get('/okr/workbench', { params: { periodId } }).then(r => r.data),
   getDetail: id => api.get(`/okr/${id}`).then(r => r.data),
   getTree: periodId => api.get(`/okr/period/${periodId}/tree`).then(r => r.data),
   getOrphans: periodId => api.get(`/okr/period/${periodId}/orphans`).then(r => r.data),
@@ -123,8 +122,6 @@ export const scoreApi = {
   getPage: (periodId, userId) => api.get('/scores/page', { params: { periodId, userId } }).then(r => r.data),
   getMyResult: periodId => api.get('/scores/my', { params: { periodId } }).then(r => r.data),
   getSubordinates: periodId => api.get('/scores/subordinates', { params: { periodId } }).then(r => r.data),
-  getReviewQueue: periodId => api.get('/scores/review-queue', { params: { periodId } }).then(r => r.data),
-  getHistory: () => api.get('/scores/history').then(r => r.data)
 }
 
 export const scoreAppealApi = {

+ 4 - 2
frontend/src/styles/theme.css

@@ -131,7 +131,8 @@
 /* IBM Plex Sans: https://github.com/IBM/plex */
 @font-face {
   font-family: 'Source Han Sans SC';
-  src: local('Source Han Sans SC'), local('Noto Sans CJK SC');
+  src: local('Source Han Sans SC'), local('Noto Sans CJK SC'),
+       url('https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-sc/files/noto-sans-sc-chinese-simplified-400-normal.woff2') format('woff2');
   font-weight: 400;
   font-style: normal;
   font-display: swap;
@@ -145,7 +146,8 @@
 }
 @font-face {
   font-family: 'IBM Plex Sans';
-  src: local('IBM Plex Sans');
+  src: local('IBM Plex Sans'),
+       url('https://cdn.jsdelivr.net/npm/@fontsource/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
   font-weight: 400;
   font-style: normal;
   font-display: swap;