Files
hedena_gold/apps/user-app-v2/src/utils/validator.ts
T
s.esmaeiliandClaude Opus 5.5 7bb5c2e00f chore(apps): remove unused code and packages (DEAD-01, DEAD-02, DEAD-03)
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>
2026-10-08 16:40:10 +03:30

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} را وارد کنید ` })