chore: 格式化

This commit is contained in:
LOG1997
2025-12-09 22:45:19 +08:00
parent fbb57e7d46
commit 932510f9db
3 changed files with 302 additions and 302 deletions

View File

@@ -1,153 +1,153 @@
export default { export default {
button: { button: {
enterLottery: 'Enter Lottery', enterLottery: 'Enter Lottery',
start: 'Start', start: 'Start',
selectLucky: 'Draw the Lucky', selectLucky: 'Draw the Lucky',
continue: 'Continue', continue: 'Continue',
confirm: 'Confirm', confirm: 'Confirm',
cancel: 'Cancel', cancel: 'Cancel',
setting: 'Setting', setting: 'Setting',
delete: 'Delete', delete: 'Delete',
allDelete: 'Delete All', allDelete: 'Delete All',
downloadTemplate: 'Download Template', downloadTemplate: 'Download Template',
importData: 'Import Data', importData: 'Import Data',
resetData: 'Reset Data', resetData: 'Reset Data',
exportResult: 'Export Result', exportResult: 'Export Result',
add: 'Add', add: 'Add',
resetDefault: 'Reset Default', resetDefault: 'Reset Default',
resetAllData: 'Reset All Data', resetAllData: 'Reset All Data',
clearPattern: 'Clear Pattern', clearPattern: 'Clear Pattern',
DefaultPattern: 'Default Pattern', DefaultPattern: 'Default Pattern',
upload: 'Upload', upload: 'Upload',
reset: 'Reset', reset: 'Reset',
play: 'Play', play: 'Play',
setLayout: 'Set Layout', setLayout: 'Set Layout',
close: 'Close', close: 'Close',
noInfoAndImport: 'No Info and import it', noInfoAndImport: 'No Info and import it',
useDefault: 'Use Default Data', useDefault: 'Use Default Data',
}, },
sidebar: { sidebar: {
personConfiguration: 'Person Configuration', personConfiguration: 'Person Configuration',
personList: 'Person List', personList: 'Person List',
winnerList: 'Winner List', winnerList: 'Winner List',
prizeConfiguration: 'Prize Configuration', prizeConfiguration: 'Prize Configuration',
globalSetting: 'Global Configuration', globalSetting: 'Global Configuration',
viewSetting: 'View Setting', viewSetting: 'View Setting',
imagesManagement: 'Images Management', imagesManagement: 'Images Management',
musicManagement: 'Music Management', musicManagement: 'Music Management',
operatingInstructions: 'Operating Instructions', operatingInstructions: 'Operating Instructions',
}, },
viewTitle: { viewTitle: {
personManagement: 'Person Management', personManagement: 'Person Management',
winnerManagement: 'Winner Management', winnerManagement: 'Winner Management',
prizeManagement: 'Prize Management', prizeManagement: 'Prize Management',
globalSetting: 'Global Setting', globalSetting: 'Global Setting',
operatingInstructions: 'Operating Instructions', operatingInstructions: 'Operating Instructions',
}, },
table: { table: {
// person configuration // person configuration
number: 'Number', number: 'Number',
name: 'Name', name: 'Name',
prizeName: 'Name', prizeName: 'Name',
department: 'Department', department: 'Department',
identity: 'Identity', identity: 'Identity',
isLucky: 'Is Lucky', isLucky: 'Is Lucky',
operation: 'Operation', operation: 'Operation',
setLuckyNumber: 'Set Lucky Number', setLuckyNumber: 'Set Lucky Number',
luckyPeopleNumber: 'Lucky People Number', luckyPeopleNumber: 'Lucky People Number',
detail: 'Detail', detail: 'Detail',
noneData: 'No Data', noneData: 'No Data',
// prize configuration // prize configuration
fullParticipation: 'FullParticipation', fullParticipation: 'FullParticipation',
numberParticipants: 'NumberParticipants', numberParticipants: 'NumberParticipants',
isDone: 'is Done', isDone: 'is Done',
image: 'Image', image: 'Image',
onceNumber: 'Once Number', onceNumber: 'Once Number',
time: 'Time', time: 'Time',
// view setting // view setting
title: 'Main Title', title: 'Main Title',
columnNumber: 'Column Number', columnNumber: 'Column Number',
theme: 'Theme', theme: 'Theme',
language: 'Language', language: 'Language',
cardColor: 'Card Color', cardColor: 'Card Color',
winnerColor: 'Winner Color', winnerColor: 'Winner Color',
textColor: 'Text Color', textColor: 'Text Color',
cardWidth: 'Card Width', cardWidth: 'Card Width',
cardHeight: 'Card Height', cardHeight: 'Card Height',
textSize: 'Text Size', textSize: 'Text Size',
highlightColor: 'HighLight Color', highlightColor: 'HighLight Color',
patternSetting: 'Pattern Setting', patternSetting: 'Pattern Setting',
alwaysDisplay: 'Always Display Prize List', alwaysDisplay: 'Always Display Prize List',
avatarDisplay: 'Show avatars or not', avatarDisplay: 'Show avatars or not',
selectPicture: 'Select a Picture', selectPicture: 'Select a Picture',
backgroundImage: 'Select Background Image', backgroundImage: 'Select Background Image',
}, },
dialog: { dialog: {
titleTip: 'Tip!', titleTip: 'Tip!',
titleTemporary: 'Add Temporary Activity', titleTemporary: 'Add Temporary Activity',
dialogPCWeb: 'Please use a PC browser to access for optimal display performance', dialogPCWeb: 'Please use a PC browser to access for optimal display performance',
dialogDelAllPerson: 'This operation will delete all personnel list data. Do you want to continue?', dialogDelAllPerson: 'This operation will delete all personnel list data. Do you want to continue?',
dialogResetWinner: 'This operation will clear the winning information of personnel. Do you want to continue?', dialogResetWinner: 'This operation will clear the winning information of personnel. Do you want to continue?',
dialogResetAllData: 'This operation will reset all data. Do you want to continue?', dialogResetAllData: 'This operation will reset all data. Do you want to continue?',
dialogSingleDrawLimit: 'Only 10 characters can be extracted in a single draw', dialogSingleDrawLimit: 'Only 10 characters can be extracted in a single draw',
dialogLatestBrowser: 'Please use the latest version of Chrome or Edge browser', dialogLatestBrowser: 'Please use the latest version of Chrome or Edge browser',
tipResetPrize: 'Performing operations may reset data, please proceed with caution', tipResetPrize: 'Performing operations may reset data and cant recover, please proceed with caution',
}, },
tooltip: { tooltip: {
settingConfiguration: 'Setting/Configuration', settingConfiguration: 'Setting/Configuration',
nextSong: 'Right Click to Next Song', nextSong: 'Right Click to Next Song',
noSongPlay: 'No Song to Play', noSongPlay: 'No Song to Play',
prizeList: 'Prize List', prizeList: 'Prize List',
addActivity: 'Add Activity', addActivity: 'Add Activity',
downloadTemplateTip: 'After downloading the file, please fill in the data in Excel and save it in xlsx format', downloadTemplateTip: 'After downloading the file, please fill in the data in Excel and save it in xlsx format',
uploadExcelTip: 'Upload the modified Excel file', uploadExcelTip: 'Upload the modified Excel file',
leftClick: 'Left Click to Slice', leftClick: 'Left Click to Slice',
toHome: 'to Home', toHome: 'to Home',
resetLayout: 'This item is time-consuming and performance intensive', resetLayout: 'This item is time-consuming and performance intensive',
defaultLayout: 'The default pattern setting is valid for 17 columns, please set the number of other columns yourself', defaultLayout: 'The default pattern setting is valid for 17 columns, please set the number of other columns yourself',
doneCount: 'Number of winners', doneCount: 'Number of winners',
edit: 'Edit', edit: 'Edit',
delete: 'Delete', delete: 'Delete',
}, },
error: { error: {
require: 'required field', require: 'required field',
requireNumber: 'please enter a number', requireNumber: 'please enter a number',
minNumber1: 'the minimum is 1', minNumber1: 'the minimum is 1',
maxNumber100: 'the maximum is 100', maxNumber100: 'the maximum is 100',
uploadSuccess: 'Upload Success', uploadSuccess: 'Upload Success',
uploadFail: 'Upload Failed', uploadFail: 'Upload Failed',
notImage: 'Not Image', notImage: 'Not Image',
personIsAllDone: 'All Person Is Done', personIsAllDone: 'All Person Is Done',
personNotEnough: 'Person Is Not Enough', personNotEnough: 'Person Is Not Enough',
startDraw: 'Now Draw {count} {leftover} people', startDraw: 'Now Draw {count} {leftover} people',
completeInformation: 'Please provide complete information', completeInformation: 'Please provide complete information',
}, },
placeHolder: { placeHolder: {
enterTitle: 'Enter Title', enterTitle: 'Enter Title',
name: 'Name', name: 'Name',
winnerCount: 'Lucky Person Count', winnerCount: 'Lucky Person Count',
}, },
data: { data: {
yes: 'Yes', yes: 'Yes',
no: 'No', no: 'No',
number: 'Number', number: 'Number',
isWin: 'isWin', isWin: 'isWin',
avatar: 'avatar', avatar: 'avatar',
department: 'Department', department: 'Department',
name: 'Name', name: 'Name',
identity: 'Identity', identity: 'Identity',
prizeName: 'Prize Name', prizeName: 'Prize Name',
prizeTime: 'Prize Time', prizeTime: 'Prize Time',
operation: 'Operation', operation: 'Operation',
delete: 'Delete', delete: 'Delete',
removePerson: 'Remove the Person', removePerson: 'Remove the Person',
defaultTitle: 'The Prelude to the Six Ministries of the Ming Dynasty Cabinet', defaultTitle: 'The Prelude to the Six Ministries of the Ming Dynasty Cabinet',
xlsxName: 'personListTemplate-en.xlsx', xlsxName: 'personListTemplate-en.xlsx',
readmeName: 'readme-en.md', readmeName: 'readme-en.md',
}, },
footer: { footer: {
'self-reflection': 'Turn inward and examine yourself when you encounter difficulties in life.', 'self-reflection': 'Turn inward and examine yourself when you encounter difficulties in life.',
'thiefEasy': 'Thief difficult mountain thief easily, breaking heart.', 'thiefEasy': 'Thief difficult mountain thief easily, breaking heart.',
}, },
} }

View File

@@ -1,153 +1,153 @@
export default { export default {
button: { button: {
enterLottery: '进入抽奖', enterLottery: '进入抽奖',
start: '开始', start: '开始',
selectLucky: '抽取幸运儿', selectLucky: '抽取幸运儿',
continue: '继续', continue: '继续',
confirm: '确认', confirm: '确认',
cancel: '取消', cancel: '取消',
setting: '设置', setting: '设置',
delete: '删除', delete: '删除',
allDelete: '删除全部', allDelete: '删除全部',
downloadTemplate: '下载模板', downloadTemplate: '下载模板',
importData: '导入数据', importData: '导入数据',
resetData: '重置数据', resetData: '重置数据',
exportResult: '导出结果', exportResult: '导出结果',
add: '添加', add: '添加',
resetDefault: '重置为默认', resetDefault: '重置为默认',
resetAllData: '重置所有数据', resetAllData: '重置所有数据',
clearPattern: '清除图案', clearPattern: '清除图案',
DefaultPattern: '默认图案', DefaultPattern: '默认图案',
upload: '上传', upload: '上传',
reset: '重置', reset: '重置',
play: '播放', play: '播放',
setLayout: '重设布局', setLayout: '重设布局',
close: '关闭', close: '关闭',
noInfoAndImport: '暂无人员信息,前往导入', noInfoAndImport: '暂无人员信息,前往导入',
useDefault: '使用默认数据', useDefault: '使用默认数据',
}, },
sidebar: { sidebar: {
personConfiguration: '人员配置', personConfiguration: '人员配置',
personList: '人员列表', personList: '人员列表',
winnerList: '中奖人员', winnerList: '中奖人员',
prizeConfiguration: '奖品配置', prizeConfiguration: '奖品配置',
globalSetting: '全局配置', globalSetting: '全局配置',
viewSetting: '界面设置', viewSetting: '界面设置',
imagesManagement: '图片管理', imagesManagement: '图片管理',
musicManagement: '音乐管理', musicManagement: '音乐管理',
operatingInstructions: '操作说明', operatingInstructions: '操作说明',
}, },
viewTitle: { viewTitle: {
personManagement: '人员管理', personManagement: '人员管理',
winnerManagement: '已中奖人员管理', winnerManagement: '已中奖人员管理',
prizeManagement: '奖项配置', prizeManagement: '奖项配置',
globalSetting: '全局配置', globalSetting: '全局配置',
operatingInstructions: '操作说明', operatingInstructions: '操作说明',
}, },
table: { table: {
// person configuration // person configuration
number: '编号', number: '编号',
name: '姓名', name: '姓名',
prizeName: '名称', prizeName: '名称',
department: '部门', department: '部门',
identity: '身份', identity: '身份',
isLucky: '是否中奖', isLucky: '是否中奖',
operation: '操作', operation: '操作',
setLuckyNumber: '设置中奖人数', setLuckyNumber: '设置中奖人数',
luckyPeopleNumber: '中奖人数', luckyPeopleNumber: '中奖人数',
detail: '详细信息', detail: '详细信息',
noneData: '暂无数据', noneData: '暂无数据',
// prize configuration // prize configuration
fullParticipation: '全员参加', fullParticipation: '全员参加',
numberParticipants: '抽奖人数', numberParticipants: '抽奖人数',
isDone: '已抽取', isDone: '已抽取',
image: '图片', image: '图片',
onceNumber: '单次抽取个数', onceNumber: '单次抽取个数',
time: '时间', time: '时间',
// view setting // view setting
title: '主标题', title: '主标题',
columnNumber: '列数', columnNumber: '列数',
theme: '主题', theme: '主题',
language: '语言', language: '语言',
cardColor: '卡片颜色', cardColor: '卡片颜色',
winnerColor: '中奖卡片颜色', winnerColor: '中奖卡片颜色',
textColor: '文字颜色', textColor: '文字颜色',
cardWidth: '卡片宽度', cardWidth: '卡片宽度',
cardHeight: '卡片高度', cardHeight: '卡片高度',
textSize: '文字大小', textSize: '文字大小',
highlightColor: '高亮颜色', highlightColor: '高亮颜色',
patternSetting: '图案设置', patternSetting: '图案设置',
alwaysDisplay: '常显奖项列表', alwaysDisplay: '常显奖项列表',
avatarDisplay: '是否显示头像', avatarDisplay: '是否显示头像',
selectPicture: '选择一张图片', selectPicture: '选择一张图片',
backgroundImage: '选择背景图片', backgroundImage: '选择背景图片',
}, },
dialog: { dialog: {
titleTip: '提示!', titleTip: '提示!',
titleTemporary: '增加临时抽奖', titleTemporary: '增加临时抽奖',
dialogPCWeb: '请使用PC进行访问以获得最佳显示效果', dialogPCWeb: '请使用PC进行访问以获得最佳显示效果',
dialogDelAllPerson: '该操作会删除所有人员数据,是否继续?', dialogDelAllPerson: '该操作会删除所有人员数据,是否继续?',
dialogResetWinner: '该操作会清空人员中奖信息,是否继续?', dialogResetWinner: '该操作会清空人员中奖信息,是否继续?',
dialogResetAllData: '该操作会重置所有数据,是否继续?', dialogResetAllData: '该操作会重置所有数据,是否继续?',
dialogSingleDrawLimit: '单次抽取只能抽取10位', dialogSingleDrawLimit: '单次抽取只能抽取10位',
dialogLatestBrowser: '请使用最新版Chrome或者Edge浏览器', dialogLatestBrowser: '请使用最新版Chrome或者Edge浏览器',
tipResetPrize: '进行操作可能会重置数据,请谨慎操作', tipResetPrize: '进行操作可能会重置数据并不可恢复,请谨慎操作',
}, },
tooltip: { tooltip: {
settingConfiguration: '设置/配置', settingConfiguration: '设置/配置',
nextSong: '右键点击下一首', nextSong: '右键点击下一首',
noSongPlay: '没有音乐可以播放', noSongPlay: '没有音乐可以播放',
prizeList: '奖项列表', prizeList: '奖项列表',
addActivity: '添加抽奖', addActivity: '添加抽奖',
downloadTemplateTip: '下载文件后请在excel中填写数据并保存为xlsx格式', downloadTemplateTip: '下载文件后请在excel中填写数据并保存为xlsx格式',
uploadExcelTip: '上传修改好的excel文件', uploadExcelTip: '上传修改好的excel文件',
leftClick: '左键切割', leftClick: '左键切割',
toHome: '主页', toHome: '主页',
resetLayout: '该项比较耗费时间和性能', resetLayout: '该项比较耗费时间和性能',
defaultLayout: '默认图案设置针对17列时有效其他列数请自行设置', defaultLayout: '默认图案设置针对17列时有效其他列数请自行设置',
doneCount: '已抽取', doneCount: '已抽取',
edit: '编辑', edit: '编辑',
delete: '删除', delete: '删除',
}, },
error: { error: {
require: '必填项', require: '必填项',
requireNumber: '请输入数字', requireNumber: '请输入数字',
minNumber1: '最小为1', minNumber1: '最小为1',
maxNumber100: '最大为100', maxNumber100: '最大为100',
uploadSuccess: '上传成功', uploadSuccess: '上传成功',
uploadFail: '上传失败', uploadFail: '上传失败',
notImage: '不是图片', notImage: '不是图片',
personIsAllDone: '抽奖抽完了', personIsAllDone: '抽奖抽完了',
personNotEnough: '抽奖人数不足', personNotEnough: '抽奖人数不足',
startDraw: '现在抽取{count}{leftover}人', startDraw: '现在抽取{count}{leftover}人',
completeInformation: '请填写完整信息', completeInformation: '请填写完整信息',
}, },
placeHolder: { placeHolder: {
enterTitle: '输入标题', enterTitle: '输入标题',
name: '名称', name: '名称',
winnerCount: '中奖人数', winnerCount: '中奖人数',
}, },
data: { data: {
yes: '是', yes: '是',
no: '否', no: '否',
number: '编号', number: '编号',
isWin: '是否中奖', isWin: '是否中奖',
avatar: '头像', avatar: '头像',
department: '部门', department: '部门',
name: '姓名', name: '姓名',
identity: '身份', identity: '身份',
prizeName: '获奖', prizeName: '获奖',
prizeTime: '获奖时间', prizeTime: '获奖时间',
operation: '操作', operation: '操作',
delete: '删除', delete: '删除',
removePerson: '移入未中奖名单', removePerson: '移入未中奖名单',
defaultTitle: '大明内阁六部御前奏对', defaultTitle: '大明内阁六部御前奏对',
xlsxName: '人口登记表-zhCn.xlsx', xlsxName: '人口登记表-zhCn.xlsx',
readmeName: 'readme-zhCn.md', readmeName: 'readme-zhCn.md',
}, },
footer: { footer: {
'self-reflection': '行有不得,反求诸己', 'self-reflection': '行有不得,反求诸己',
'thiefEasy': '破山中贼易,破心中贼难', 'thiefEasy': '破山中贼易,破心中贼难',
}, },
} }

View File

@@ -1,9 +1,9 @@
<script setup lang='ts'> <script setup lang='ts'>
import markdownit from 'markdown-it'
import { onMounted, ref, watch } from 'vue'
import readmeEn from '@/../public/readme-en.md?raw' import readmeEn from '@/../public/readme-en.md?raw'
import readmeZh from '@/../public/readme-zhCn.md?raw' import readmeZh from '@/../public/readme-zhCn.md?raw'
import i18n from '@/locales/i18n' import i18n from '@/locales/i18n'
import markdownit from 'markdown-it'
import { onMounted, ref, watch } from 'vue'
const md = markdownit() const md = markdownit()
const readmeHtml = ref('') const readmeHtml = ref('')