Skip to content

Commit a5040ed

Browse files
committed
chore: 目录结构调整
1 parent 562bcb6 commit a5040ed

File tree

106 files changed

+12
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+12
-16
lines changed

.eslintignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ yarn.lock
66
/node_modules
77
docs/
88

9-
archives/
10-
dict/
11-
weeks/
9+
data/

.prettierignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ node_modules
77
docs/
88
docs-raw/
99

10-
archives/
11-
dict/
12-
weeks/
10+
data

README.md

+3-3
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs-raw/first-class.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
},
138138
created () {
139139
axios
140-
.get(`${context}/dict/user.json?v=${+new Date()}`)
140+
.get(`${context}/data/common/user.json?v=${+new Date()}`)
141141
.then(({ data }) => {
142142
this.allUsers = data;
143143
this.computeFirstClass()

docs-raw/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ <h1>
294294
},
295295
created () {
296296
axios
297-
.get(`${context}/dict/user.json?v=${+new Date()}`)
297+
.get(`${context}/data/common/user.json?v=${+new Date()}`)
298298
.then(({ data }) => {
299299
this.allUsers = data;
300300
this.displayUsers = data;

docs-raw/week.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
queryWeekRollup () {
220220
this.weekFileContent = '查询中...';
221221
axios
222-
.get(`${context}/weeks/${weekRollupFileName}.md?v=${+new Date()}`)
222+
.get(`${context}/data/weeks/${weekRollupFileName}.md?v=${+new Date()}`)
223223
.then(({ data }) => {
224224
this.weekFileContent = md.render(data);
225225
this.$nextTick(() => {

scripts/ac_record.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { weekRollup } from './week_rollup';
55
import type { IUser } from './typings';
66

77
const dayjs = require('dayjs');
8-
const users = require('../dict/user.json');
8+
const users = require('../data/common/user.json');
99

1010
const day = dayjs();
1111

scripts/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { AsyncResultArrayCallback } from 'async';
77
const dayjs = require('dayjs');
88
const isoWeekPlugin = require('dayjs/plugin/isoWeek');
99
const isBetween = require('dayjs/plugin/isBetween');
10-
const lcusAllQuestionsMap = require('../dict/lcus_all_questions_map.json');
10+
const lcusAllQuestionsMap = require('../data/common/lcus_all_questions_map.json');
1111

1212
dayjs.extend(isoWeekPlugin).extend(isBetween);
1313

scripts/week_rollup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getISOWeekNumber, getToday, getWeekStartAndEnd, getYesterday } from './
55
import type { IArchivesLog } from './typings';
66

77
const dayjs = require('dayjs');
8-
const users = require('../dict/user.json');
8+
const users = require('../data/common/user.json');
99

1010
// 当天日期
1111
const now = dayjs();
@@ -74,7 +74,7 @@ export const weekRollup = () => {
7474
summary.ranking = rankNumber;
7575
}
7676

77-
const weekFilePath = path.resolve(__dirname, `../weeks/${weekRollupFileName}.md`);
77+
const weekFilePath = path.resolve(__dirname, `../data/weeks/${weekRollupFileName}.md`);
7878

7979
// 创建文件
8080
fs.writeFileSync(

0 commit comments

Comments
 (0)