Skip to content

Commit

Permalink
feat: toolset for send email
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Dec 10, 2024
1 parent c29226c commit adb0e0e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="truncate" [title]="provider().label | i18n">{{provider().label | i18n}}</div>
</div>
<div class="flex items-center text-[10px] leading-[18px] text-gray-500 font-medium">
<div class="truncate">By&nbsp;{{provider().author}}</div>
<div class="truncate">{{'PAC.KEY_WORDS.By' | translate: {Default: 'By'} }}&nbsp;{{provider().author}}</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { CommonModule } from '@angular/common'
import { Component, computed, input, output } from '@angular/core'
import { NgmI18nPipe } from '@metad/ocap-angular/core'
import { TranslateModule } from '@ngx-translate/core'
import { upperFirst } from 'lodash-es'
import { injectHelpWebsite, ITag, IToolProvider, TagCategoryEnum } from '../../../@core'
import { EmojiAvatarComponent } from '../../avatar'

@Component({
standalone: true,
imports: [CommonModule, EmojiAvatarComponent, NgmI18nPipe],
imports: [CommonModule, TranslateModule, EmojiAvatarComponent, NgmI18nPipe],
selector: 'xpert-tool-provider-card',
templateUrl: 'provider.component.html',
styleUrls: ['provider.component.scss']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="truncate" [title]="toolset().name">{{toolset().name}}</div>
</div>
<div class="flex items-center text-xs leading-[18px] text-gray-500 font-medium">
<div class="truncate">By&nbsp;{{toolset().createdBy | user}}</div>
<div class="truncate">{{'PAC.KEY_WORDS.By' | translate: {Default: 'By'} }}&nbsp;{{toolset().createdBy | user}}</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { CommonModule } from '@angular/common'
import { booleanAttribute, Component, computed, input } from '@angular/core'
import { NgmI18nPipe } from '@metad/ocap-angular/core'
import { TranslateModule } from '@ngx-translate/core'
import { injectHelpWebsite, IXpertToolset } from '../../../@core'
import { EmojiAvatarComponent } from '../../avatar'
import { UserPipe } from '../../pipes'
import { TagComponent } from '../../tag'

@Component({
standalone: true,
imports: [CommonModule, EmojiAvatarComponent, NgmI18nPipe, TagComponent, UserPipe],
imports: [CommonModule, TranslateModule, EmojiAvatarComponent, NgmI18nPipe, TagComponent, UserPipe],
selector: 'xpert-toolset-card',
templateUrl: 'toolset.component.html',
styleUrls: ['toolset.component.scss'],
styleUrls: ['toolset.component.scss']
})
export class ToolsetCardComponent {
readonly helpWebsite = injectHelpWebsite()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function createTransporter(params: EmailToolCredentials) {
tls: {
rejectUnauthorized: false
}
})
} as nodemailer.SendMailOptions)

return transporter
}
Expand Down

0 comments on commit adb0e0e

Please sign in to comment.