初始化足球投注平台 MVP Monorepo

包含 NestJS 后端、三端前端、Prisma 数据模型、结算引擎测试与 PRD 文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-02 14:35:48 +08:00
commit 14e49374ac
118 changed files with 15944 additions and 0 deletions

34
apps/player/src/main.ts Normal file
View File

@@ -0,0 +1,34 @@
import { createApp } from 'vue';
import { createPinia } from 'pinia';
import { createI18n } from 'vue-i18n';
import App from './App.vue';
import router from './router';
import './styles.css';
const i18n = createI18n({
legacy: false,
locale: localStorage.getItem('locale') || 'zh-CN',
fallbackLocale: 'en-US',
messages: {
'zh-CN': {
nav: { home: '首页', football: '足球', my_bets: '我的投注', profile: '我的' },
auth: { login: '登录', username: '账号', password: '密码' },
wallet: { balance: '余额' },
bet: { bet_slip: '投注单', stake: '投注金额', place_bet: '确认下注', parlay: '串关' },
},
'en-US': {
nav: { home: 'Home', football: 'Football', my_bets: 'My Bets', profile: 'Profile' },
auth: { login: 'Login', username: 'Username', password: 'Password' },
wallet: { balance: 'Balance' },
bet: { bet_slip: 'Bet Slip', stake: 'Stake', place_bet: 'Place Bet', parlay: 'Parlay' },
},
'ms-MY': {
nav: { home: 'Laman Utama', football: 'Bola Sepak', my_bets: 'Pertaruhan Saya', profile: 'Profil' },
auth: { login: 'Log Masuk', username: 'Nama Pengguna', password: 'Kata Laluan' },
wallet: { balance: 'Baki' },
bet: { bet_slip: 'Slip Pertaruhan', stake: 'Jumlah', place_bet: 'Letak Pertaruhan', parlay: 'Berganda' },
},
},
});
createApp(App).use(createPinia()).use(router).use(i18n).mount('#app');