mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
merge fix
This commit is contained in:
parent
ef20a0b9a5
commit
c7bca09dc6
2 changed files with 31 additions and 16 deletions
|
|
@ -9,13 +9,18 @@ import { PageUsersRepository } from './repositories/page-users.repository';
|
|||
import { PagePermissionsRepository } from './repositories/page-permissions.repository';
|
||||
import { PageUser } from '@entities/page_users.entity';
|
||||
import { PagePermission } from '@entities/page_permissions.entity';
|
||||
import { AppPermissionsController } from './controller';
|
||||
import { AppPermissionsService } from './service';
|
||||
import { AppPermissionsUtilService } from './util.service';
|
||||
|
||||
export class AppPermissionsModule {
|
||||
static async register(configs: { IS_GET_CONTEXT: boolean }): Promise<DynamicModule> {
|
||||
const importPath = await getImportPath(configs.IS_GET_CONTEXT);
|
||||
const { AppPermissionsController } = await import(`${importPath}/app-permissions/controller`);
|
||||
const { AppPermissionsService } = await import(`${importPath}/app-permissions/service`);
|
||||
const { AppPermissionsUtilService } = await import(`${importPath}/app-permissions/util.service`);
|
||||
// const { AppPermissionsController } = await import(`${importPath}/app-permissions/controller`);
|
||||
// const { AppPermissionsService } = await import(`${importPath}/app-permissions/service`);
|
||||
// const { AppPermissionsUtilService } = await import(`${importPath}/app-permissions/util.service`);
|
||||
|
||||
//Please create EE Files for the above imports and remove static imports
|
||||
|
||||
return {
|
||||
module: AppPermissionsModule,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,17 @@ type DefaultDataSourceName =
|
|||
| 'tooljetdbdefault'
|
||||
| 'workflowsdefault';
|
||||
|
||||
type NewRevampedComponent = 'Text' | 'TextInput' | 'PasswordInput' | 'NumberInput' | 'Table' | 'Button' | 'Checkbox' | 'Divider' | 'VerticalDivider' | 'Link';
|
||||
type NewRevampedComponent =
|
||||
| 'Text'
|
||||
| 'TextInput'
|
||||
| 'PasswordInput'
|
||||
| 'NumberInput'
|
||||
| 'Table'
|
||||
| 'Button'
|
||||
| 'Checkbox'
|
||||
| 'Divider'
|
||||
| 'VerticalDivider'
|
||||
| 'Link';
|
||||
|
||||
const DefaultDataSourceNames: DefaultDataSourceName[] = [
|
||||
'restapidefault',
|
||||
|
|
@ -84,7 +94,7 @@ export class AppImportExportService {
|
|||
protected usersUtilService: UsersUtilService,
|
||||
protected readonly entityManager: EntityManager,
|
||||
protected componentsService: ComponentsService
|
||||
) { }
|
||||
) {}
|
||||
|
||||
async export(user: User, id: string, searchParams: any = {}, organizationId?: string): Promise<{ appV2: App }> {
|
||||
// https://github.com/typeorm/typeorm/issues/3857
|
||||
|
|
@ -186,13 +196,13 @@ export class AppImportExportService {
|
|||
const components =
|
||||
pages.length > 0
|
||||
? await manager
|
||||
.createQueryBuilder(Component, 'components')
|
||||
.leftJoinAndSelect('components.layouts', 'layouts')
|
||||
.where('components.pageId IN(:...pageId)', {
|
||||
pageId: pages.map((v) => v.id),
|
||||
})
|
||||
.orderBy('components.created_at', 'ASC')
|
||||
.getMany()
|
||||
.createQueryBuilder(Component, 'components')
|
||||
.leftJoinAndSelect('components.layouts', 'layouts')
|
||||
.where('components.pageId IN(:...pageId)', {
|
||||
pageId: pages.map((v) => v.id),
|
||||
})
|
||||
.orderBy('components.created_at', 'ASC')
|
||||
.getMany()
|
||||
: [];
|
||||
|
||||
const events = await manager
|
||||
|
|
@ -1089,10 +1099,10 @@ export class AppImportExportService {
|
|||
const options =
|
||||
importingDataSource.kind === 'tooljetdb'
|
||||
? this.replaceTooljetDbTableIds(
|
||||
importingQuery.options,
|
||||
externalResourceMappings['tooljet_database'],
|
||||
organizationId
|
||||
)
|
||||
importingQuery.options,
|
||||
externalResourceMappings['tooljet_database'],
|
||||
organizationId
|
||||
)
|
||||
: importingQuery.options;
|
||||
|
||||
const newQuery = manager.create(DataQuery, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue