metrage
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-02-17 16:05:52 +03:30
parent 67086b91ff
commit 269afb075b
4 changed files with 16 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
VITE_TOKEN_NAME = 'dzone_token' VITE_TOKEN_NAME = 'dzone_token'
VITE_REFRESH_TOKEN_NAME = 'dzone_refresh_token' VITE_REFRESH_TOKEN_NAME = 'dzone_refresh_token'
VITE_BASE_URL = 'https://api-dzone.danakcorp.com' VITE_BASE_URL = 'https://api-dzone.danakcorp.com'
# VITE_BASE_URL = 'http://172.28.231.88:4000'
# VITE_BASE_URL = 'https://nhrq9m1d-4000.eun1.devtunnels.ms' # VITE_BASE_URL = 'https://nhrq9m1d-4000.eun1.devtunnels.ms'
VITE_SLUG_ID = 'slug_id' VITE_SLUG_ID = 'slug_id'
+1 -1
View File
@@ -5263,7 +5263,7 @@
"version": "5.6.3", "version": "5.6.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
"devOptional": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
+13
View File
@@ -59,6 +59,7 @@ const Request: FC = () => {
coverImageUrl: '', coverImageUrl: '',
industryId: '', industryId: '',
chiefExecutiveOfficer: '', chiefExecutiveOfficer: '',
metrage: undefined,
products: [], products: [],
services: [], services: [],
}, },
@@ -73,6 +74,7 @@ const Request: FC = () => {
description: Yup.string().required(t('errors.required')), description: Yup.string().required(t('errors.required')),
websiteUrl: Yup.string().url(t('errors.invalid_url')).required(t('errors.required')), websiteUrl: Yup.string().url(t('errors.invalid_url')).required(t('errors.required')),
industryId: Yup.string().required(t('errors.required')), industryId: Yup.string().required(t('errors.required')),
metrage: Yup.number().optional(),
}), }),
onSubmit: async (values) => { onSubmit: async (values) => {
values.dateOfEstablishment = moment(values.dateOfEstablishment, 'jYYYY-jMM-jDD').format('YYYY-MM-DD') values.dateOfEstablishment = moment(values.dateOfEstablishment, 'jYYYY-jMM-jDD').format('YYYY-MM-DD')
@@ -213,6 +215,7 @@ const Request: FC = () => {
coverImageUrl: companyData.coverImageUrl || '', coverImageUrl: companyData.coverImageUrl || '',
industryId: companyData.industry?.id || '', industryId: companyData.industry?.id || '',
chiefExecutiveOfficer: companyData.user?.fullName || '', chiefExecutiveOfficer: companyData.user?.fullName || '',
metrage: companyData.metrage ?? undefined,
products: [], products: [],
services: [], services: [],
}) })
@@ -285,6 +288,15 @@ const Request: FC = () => {
/> />
</div> </div>
<Input
type='number'
label='متراژ'
name='metrage'
value={formik.values.metrage ?? ''}
onChange={(e) => formik.setFieldValue('metrage', e.target.value === '' ? undefined : Number(e.target.value))}
error_text={formik.touched.metrage && formik.errors.metrage ? formik.errors.metrage : ''}
/>
<div className='grid grid-cols-1 md:grid-cols-2 gap-6'> <div className='grid grid-cols-1 md:grid-cols-2 gap-6'>
<Input <Input
label={t('company.phone_number')} label={t('company.phone_number')}
@@ -325,6 +337,7 @@ const Request: FC = () => {
items={industries?.data?.industries?.map((industry: IndustryItemType) => ({ label: industry.title, value: industry.id })) || []} items={industries?.data?.industries?.map((industry: IndustryItemType) => ({ label: industry.title, value: industry.id })) || []}
onChange={formik.handleChange} onChange={formik.handleChange}
error_text={formik.touched.industryId && formik.errors.industryId ? formik.errors.industryId : ''} error_text={formik.touched.industryId && formik.errors.industryId ? formik.errors.industryId : ''}
placeholder='انتخاب صنعت'
/> />
<Input <Input
+1
View File
@@ -20,4 +20,5 @@ export type CreateCompanyType = {
imageUrl: string; imageUrl: string;
}[]; }[];
chiefExecutiveOfficer: string; chiefExecutiveOfficer: string;
metrage?: number;
}; };