-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 抽离题型枚举 * fix: 投放的链接加时间戳去掉ifream缓存 * feat: serve端的node engines
- Loading branch information
Showing
19 changed files
with
88 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,5 +97,9 @@ | |
"moduleNameMapper": { | ||
"^src/(.*)$": "<rootDir>/$1" | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=18.0.0", | ||
"npm": ">=8.6.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// 题型枚举 | ||
export enum QUESTION_TYPE { | ||
TEXT = 'text', | ||
TEXTAREA = 'textarea', | ||
RADIO = 'radio', | ||
CHECKBOX = 'checkbox', | ||
BINARY_CHOICE = 'binary-choice', | ||
RADIO_STAR = 'radio-star', | ||
RADIO_NPS = 'radio-nps', | ||
VOTE = 'vote', | ||
} | ||
|
||
// 题目类型标签映射对象 | ||
export const typeTagLabels: Record<QUESTION_TYPE, string> = { | ||
[QUESTION_TYPE.TEXT]: '单行输入框', | ||
[QUESTION_TYPE.TEXTAREA]: '多行输入框', | ||
[QUESTION_TYPE.RADIO]: '单选', | ||
[QUESTION_TYPE.CHECKBOX]: '多选', | ||
[QUESTION_TYPE.BINARY_CHOICE]: '判断', | ||
[QUESTION_TYPE.RADIO_STAR]: '评分', | ||
[QUESTION_TYPE.RADIO_NPS]: 'NPS评分', | ||
[QUESTION_TYPE.VOTE]: '投票' | ||
} | ||
|
||
// 输入类题型 | ||
export const INPUT = [ | ||
QUESTION_TYPE.TEXT, | ||
QUESTION_TYPE.TEXTAREA | ||
] | ||
|
||
// 选择类题型分类 | ||
export const NORMAL_CHOICES = [ | ||
QUESTION_TYPE.RADIO, | ||
QUESTION_TYPE.CHECKBOX | ||
] | ||
|
||
// 选择类题型分类 | ||
export const CHOICES = [ | ||
QUESTION_TYPE.RADIO, | ||
QUESTION_TYPE.CHECKBOX, | ||
QUESTION_TYPE.BINARY_CHOICE, | ||
QUESTION_TYPE.VOTE | ||
] | ||
|
||
// 评分题题型分类 | ||
export const RATES = [ | ||
QUESTION_TYPE.RADIO_STAR, | ||
QUESTION_TYPE.RADIO_NPS | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
web/src/management/utils/constant.js → web/src/management/utils/constant.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.