Each of these now has an add button at the top of its own list page, so the nav entry duplicated it: - 'اضافه کردن شخص' (/customer/add) - 'افزودن شعب' (/branch/add) - 'افزودن کارگاه' (/workshop/add) - 'افزودن مدیر' (/user/create) Only the adminMenu tree is touched; branchMenu keeps its own /customer/add entry, since the branch build has no converted add-modal. All four routes still exist and still work as a direct-link fallback, and the parent submenus keep their remaining children (including 'دسترسی ها' under مدیران). Verified in a real browser: menu items 30 -> 26, none of the four labels render, all four parent submenus still present with their list children, icons unchanged at 16, no console errors. Committed dist/ artifact rebuilt to match (force-added, as it is gitignored but deliberately tracked for Dokploy). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
import{m}from"./index-BqcdSAlR.js";import{d as _,w as V,o as r,f as Y,g as h,c as D,i as j,t as M,j as b,r as i,p as x,e as d}from"./index-Cv1Zmfn4.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const g={key:0,class:"hint"},k=_({__name:"DateInput",props:{label:{},modelValue:{},placeholder:{default:"مثال: ۱۴۰۳/۰۵/۱۲"}},emits:["update:modelValue"],setup(o,{emit:p}){const n=o,u=p,t=i(void 0),a=i(""),f=x(()=>{if(t.value!==void 0)return t.value;if(!n.modelValue)return"";const e=m(n.modelValue);return e.isValid()?e.format("jYYYY/jMM/jDD"):""});V(()=>n.modelValue,()=>{t.value=void 0});function v(e){if(t.value=e,!e){a.value="",u("update:modelValue",void 0);return}const c=e.replace(/[۰-۹]/g,s=>String("۰۱۲۳۴۵۶۷۸۹".indexOf(s))),l=m(c,"jYYYY/jMM/jDD");l.isValid()?(a.value="",u("update:modelValue",l.format("YYYY-MM-DD"))):a.value="تاریخ معتبر نیست"}return(e,c)=>{const l=d("a-input"),s=d("a-form-item");return r(),Y(s,{label:o.label},{default:h(()=>[D(l,{value:f.value,placeholder:o.placeholder,"allow-clear":"","onUpdate:value":v},null,8,["value","placeholder"]),a.value?(r(),j("small",g,M(a.value),1)):b("",!0)]),_:1},8,["label"])}}}),w=y(k,[["__scopeId","data-v-42b77d70"]]);export{w as D};
|