-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1584 from undb-xyz/release/v0.10.1
- Loading branch information
Showing
102 changed files
with
1,717 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
## v0.10.1 | ||
|
||
## v0.10.0 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
apps/backend/src/base/commands/create-base.command-handler.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import { CommandHandler } from '@nestjs/cqrs' | ||
import { type BaseRepository, type ITableRepository } from '@undb/core' | ||
import type { ClsStore, IClsService } from '@undb/core' | ||
import { type BaseRepository, type IRecordRepository, type ITableRepository } from '@undb/core' | ||
import { CreateBaseCommand, CreateBaseCommandHandler } from '@undb/cqrs' | ||
import { ClsService } from 'nestjs-cls' | ||
import { InjectRecordRepository } from '../../core/table/adapters/sqlite/record-sqlite.repository.js' | ||
import { InjectTableRepository } from '../../core/table/adapters/sqlite/table-sqlite.repository.js' | ||
import { InjectBaseRepository } from '../adapters/base-sqlite.repository.js' | ||
|
||
@CommandHandler(CreateBaseCommand) | ||
export class NestCreateBaseCommandHandler extends CreateBaseCommandHandler { | ||
constructor( | ||
cls: ClsService<ClsStore>, | ||
@InjectBaseRepository() | ||
repo: BaseRepository, | ||
@InjectTableRepository() | ||
tableRepo: ITableRepository, | ||
@InjectRecordRepository() | ||
recordRepo: IRecordRepository, | ||
) { | ||
super(repo, tableRepo) | ||
super(cls as IClsService<ClsStore>, repo, tableRepo, recordRepo) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/backend/src/template/commands/export-base-template.command-handler.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { CommandHandler } from '@nestjs/cqrs' | ||
import { ExportBaseTemplateCommand, ExportBaseTemplateCommandHandler } from '@undb/cqrs' | ||
import { NestTemplateService } from '../template.service.js' | ||
|
||
@CommandHandler(ExportBaseTemplateCommand) | ||
export class NestExportBaseTemplateCommandHandler extends ExportBaseTemplateCommandHandler { | ||
constructor(svc: NestTemplateService) { | ||
super(svc) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/backend/src/template/commands/export-table-template.command-handler.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { CommandHandler } from '@nestjs/cqrs' | ||
import { ExportTableTemplateCommand, ExportTableTemplateCommandHandler } from '@undb/cqrs' | ||
import { NestTemplateService } from '../template.service.js' | ||
|
||
@CommandHandler(ExportTableTemplateCommand) | ||
export class NestExportTableTemplateCommandHandler extends ExportTableTemplateCommandHandler { | ||
constructor(svc: NestTemplateService) { | ||
super(svc) | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
apps/backend/src/template/commands/export-template.command-handler.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import { NestExportTemplateCommandHandler } from './export-template.command-handler.js' | ||
import { NestExportBaseTemplateCommandHandler } from './export-base-template.command-handler.js' | ||
import { NestExportTableTemplateCommandHandler } from './export-table-template.command-handler.js' | ||
import { NestImportTemplateCommandHandler } from './import-template.command-handler.js' | ||
|
||
export const commandHandlers = [NestExportTemplateCommandHandler, NestImportTemplateCommandHandler] | ||
export const commandHandlers = [ | ||
NestExportTableTemplateCommandHandler, | ||
NestImportTemplateCommandHandler, | ||
NestExportBaseTemplateCommandHandler, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script lang="ts"> | ||
import { Button } from '$components/ui/button' | ||
import * as DropdownMenu from '$components/ui/dropdown-menu' | ||
import { t } from '$lib/i18n' | ||
import ConfirmExportBaseAsTemplate from './ConfirmExportBaseAsTemplate.svelte' | ||
import { confirmDeleteBase, confirmExportBaseTemplate } from '$lib/store/modal' | ||
</script> | ||
|
||
<DropdownMenu.Root> | ||
<DropdownMenu.Trigger asChild let:builder> | ||
<Button variant="ghost" size="icon" builders={[builder]}> | ||
<i class="ti ti-dots"></i> | ||
</Button> | ||
</DropdownMenu.Trigger> | ||
<DropdownMenu.Content class="w-56"> | ||
<DropdownMenu.Item class="text-xs gap-2" on:click={() => confirmExportBaseTemplate.open()}> | ||
<i class="ti ti-file-export"></i> | ||
<span> | ||
{$t('Export Base Template', { ns: 'base' })} | ||
</span> | ||
</DropdownMenu.Item> | ||
<DropdownMenu.Item class="text-red-500 text-xs gap-2" on:click={() => ($confirmDeleteBase = true)}> | ||
<i class="ti ti-trash"></i> | ||
<span> | ||
{$t('Delete Base', { ns: 'base' })} | ||
</span> | ||
</DropdownMenu.Item> | ||
</DropdownMenu.Content> | ||
</DropdownMenu.Root> | ||
|
||
<ConfirmExportBaseAsTemplate /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.