Owner approved the deletions. Found by walking imports from each app's main.ts; sw.ts stays (the PWA plugin's entry). - user-app: 8 unreachable components, loadingStore. - user-app-v2: 11 unreachable components, loadingStore. - both: the unused validators and price helpers, and the gsap and @ant-design/icons-vue packages. - the stray root user-app-v2/ folder (an old package.json and vite.config.ts that nothing referenced). Both apps type-check clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
482 B
TypeScript
10 lines
482 B
TypeScript
// Ported from legacy henza_pwa/src/Mixins/validator/index.ts — same rules,
|
|
// same messages, verbatim. Only the rules the app uses are kept (DEAD-01/02).
|
|
export const message = (field: string) => ` مقدار ${field} نا معتبر است `
|
|
|
|
export const mobile = (field: string) => ({
|
|
pattern: /^(\+98|0098|98|0)?9\d{9}$/g,
|
|
message: message(field),
|
|
})
|
|
export const required = (field: string) => ({ required: true, message: ` لطفا ${field} را وارد کنید ` })
|