vite config içerisine tüm subdomainler dahil
This commit is contained in:
parent
880329d3ae
commit
97ac5fb235
2 changed files with 62 additions and 62 deletions
|
|
@ -455,11 +455,11 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
},
|
},
|
||||||
new() { Order=2, ColCount=1, ColSpan=2, ItemType="group", Items =
|
new() { Order=2, ColCount=1, ColSpan=2, ItemType="group", Items =
|
||||||
[
|
[
|
||||||
new EditingFormItemDto { Order=1, DataField="Address", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order=1, DataField="Country", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions="{ \"showClearButton\" : true }" },
|
||||||
new EditingFormItemDto { Order=2, DataField="Address2", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order=2, DataField="City", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order=3, DataField="Country", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions="{ \"showClearButton\" : true }" },
|
new EditingFormItemDto { Order=3, DataField="District", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order=4, DataField="City", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order=4, DataField="Address", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order=5, DataField="District", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order=5, DataField="Address2", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order=6, DataField="PostalCode", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order=6, DataField="PostalCode", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order=7, DataField="Email", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order=7, DataField="Email", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order=8, DataField="Website", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order=8, DataField="Website", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
||||||
|
|
@ -663,60 +663,6 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
IsPivot = true
|
IsPivot = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
new ListFormField
|
|
||||||
{
|
|
||||||
ListFormCode = listFormTenants.ListFormCode,
|
|
||||||
RoleId = null,
|
|
||||||
UserId = null,
|
|
||||||
CultureName = LanguageCodes.En,
|
|
||||||
SourceDbType = DbType.String,
|
|
||||||
FieldName = "Address",
|
|
||||||
Width = 150,
|
|
||||||
ListOrderNo = 7,
|
|
||||||
Visible = true,
|
|
||||||
IsActive = true,
|
|
||||||
IsDeleted = false,
|
|
||||||
AllowSearch = true,
|
|
||||||
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
|
||||||
{
|
|
||||||
C = TenantManagementPermissions.Tenants.Create,
|
|
||||||
R = TenantManagementPermissions.Tenants.Default,
|
|
||||||
U = TenantManagementPermissions.Tenants.Update,
|
|
||||||
E = true,
|
|
||||||
Deny = false
|
|
||||||
}),
|
|
||||||
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto
|
|
||||||
{
|
|
||||||
IsPivot = true
|
|
||||||
})
|
|
||||||
},
|
|
||||||
new ListFormField
|
|
||||||
{
|
|
||||||
ListFormCode = listFormTenants.ListFormCode,
|
|
||||||
RoleId = null,
|
|
||||||
UserId = null,
|
|
||||||
CultureName = LanguageCodes.En,
|
|
||||||
SourceDbType = DbType.String,
|
|
||||||
FieldName = "Address2",
|
|
||||||
Width = 150,
|
|
||||||
ListOrderNo = 8,
|
|
||||||
Visible = true,
|
|
||||||
IsActive = true,
|
|
||||||
IsDeleted = false,
|
|
||||||
AllowSearch = true,
|
|
||||||
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
|
||||||
{
|
|
||||||
C = TenantManagementPermissions.Tenants.Create,
|
|
||||||
R = TenantManagementPermissions.Tenants.Default,
|
|
||||||
U = TenantManagementPermissions.Tenants.Update,
|
|
||||||
E = true,
|
|
||||||
Deny = false
|
|
||||||
}),
|
|
||||||
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto
|
|
||||||
{
|
|
||||||
IsPivot = true
|
|
||||||
})
|
|
||||||
},
|
|
||||||
new ListFormField
|
new ListFormField
|
||||||
{
|
{
|
||||||
ListFormCode = listFormTenants.ListFormCode,
|
ListFormCode = listFormTenants.ListFormCode,
|
||||||
|
|
@ -726,7 +672,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Country",
|
FieldName = "Country",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 9,
|
ListOrderNo = 7,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
|
|
@ -760,7 +706,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "City",
|
FieldName = "City",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 10,
|
ListOrderNo = 8,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
|
|
@ -787,6 +733,60 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "District",
|
FieldName = "District",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
|
ListOrderNo = 9,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = TenantManagementPermissions.Tenants.Create,
|
||||||
|
R = TenantManagementPermissions.Tenants.Default,
|
||||||
|
U = TenantManagementPermissions.Tenants.Update,
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto
|
||||||
|
{
|
||||||
|
IsPivot = true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
new ListFormField
|
||||||
|
{
|
||||||
|
ListFormCode = listFormTenants.ListFormCode,
|
||||||
|
RoleId = null,
|
||||||
|
UserId = null,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Address",
|
||||||
|
Width = 150,
|
||||||
|
ListOrderNo = 10,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = TenantManagementPermissions.Tenants.Create,
|
||||||
|
R = TenantManagementPermissions.Tenants.Default,
|
||||||
|
U = TenantManagementPermissions.Tenants.Update,
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto
|
||||||
|
{
|
||||||
|
IsPivot = true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
new ListFormField
|
||||||
|
{
|
||||||
|
ListFormCode = listFormTenants.ListFormCode,
|
||||||
|
RoleId = null,
|
||||||
|
UserId = null,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Address2",
|
||||||
|
Width = 150,
|
||||||
ListOrderNo = 11,
|
ListOrderNo = 11,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import { VitePWA } from 'vite-plugin-pwa'
|
||||||
export default defineConfig(async ({ mode }) => {
|
export default defineConfig(async ({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd(), '')
|
const env = loadEnv(mode, process.cwd(), '')
|
||||||
const apiUrl = env.VITE_API_URL
|
const apiUrl = env.VITE_API_URL
|
||||||
const baseDomains = ['sozsoft.com', 'dev.sozsoft.com']
|
const baseDomains = ['sozsoft.com', 'dev.sozsoft.com', '.sozsoft.com']
|
||||||
|
|
||||||
// const tenantNames = (await fetchTenantNames(apiUrl)).map((n) => n.trim().toLowerCase())
|
// const tenantNames = (await fetchTenantNames(apiUrl)).map((n) => n.trim().toLowerCase())
|
||||||
// const tenantHosts = tenantNames.map((t) => `${t}.sozsoft.com`)
|
// const tenantHosts = tenantNames.map((t) => `${t}.sozsoft.com`)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue