mirror of
https://gitee.com/ShopeX/ECShopX_admin-frontend
synced 2026-08-09 22:15:57 +08:00
Sidebar/header: add utils/menuI18n.js (getMenuDisplayName) so menu labels use route meta.title via $t when available; update layout-sidebar and layout DOM matching. Invoice: constants use i18nKey; list.vue computed invoiceStatusTabItems/invoiceSourceOptions; listSchema options; pointmall orderList uses $t(i18nKey) and invoiceStatusText. Other: saleCategory PLATFORM-only switches; order detail show section for suppliers; store-shop, goods, decorate, wxapp, merchant, mallList, sp-picker, sellers route, datacube order, params; locale JSON updates. Repo: stop ignoring .cursor (track skills/commit-summary/agents); minor package.json/lock and i18n lang index. Made-with: Cursor
27 lines
806 B
JavaScript
27 lines
806 B
JavaScript
// .cursor/hooks/continue-translate.js
|
||
// 作为 Cursor stop hook 运行时:从 stdin 读入 stop 的 input,向 stdout 输出 { followup_message } 后 Cursor 会自动把该消息作为下一条用户消息提交,继续会话。
|
||
|
||
const fs = require('fs')
|
||
|
||
function main() {
|
||
let input = { status: 'completed', loop_count: 0 }
|
||
try {
|
||
const raw = fs.readFileSync(0, 'utf-8')
|
||
if (raw && raw.trim()) {
|
||
input = JSON.parse(raw)
|
||
}
|
||
} catch (e) {
|
||
// 非 hook 调用时 stdin 可能为空,忽略
|
||
}
|
||
|
||
// Cursor stop hook 约定:输出 { "followup_message": "..." } 时,会自动将该内容作为下一条用户消息提交,继续会话
|
||
const response = {
|
||
followup_message: '请继续翻译。'
|
||
}
|
||
|
||
console.log(JSON.stringify(response))
|
||
process.exit(0)
|
||
}
|
||
|
||
main()
|