小编Som*_*ade的帖子

单击选项卡上的角度完整日历初始化问题

我正在开发 Angular7 项目,并遇到完整日历的问题。我想在选项卡上显示日历,但角度完整日历未在选项卡活动时初始化。请参考下面的截图 在此输入图像描述

我正在使用材质选项卡https://material.angular.io/components/tabs/overview,对于完整日历,我已经集成了https://github.com/fullcalendar/fullcalendar-example-projects/tree/master/angular这个。

代码

约会-Calendar.Component.ts

 export class AppointmentCalendarComponent implements OnInit {

        @ViewChild('calendar', {static: true}) calendarComponent: FullCalendarComponent; // the #calendar in the template


        calendarPlugins = [dayGridPlugin, timeGrigPlugin, interactionPlugin];
        calendarWeekends = true;

       calendarEvents: EventInput[] = [{"title":"Dr. Helen Jones 07:20 PM","start":"2019-07-31 19:20:00"},{"title":"Dr. Jonathan 07:20 PM","start":"2019-08-07 19:20:00"}];


      constructor() { }

       ngOnInit() {}


    }
Run Code Online (Sandbox Code Playgroud)

约会.component.ts

<mat-tab-group [selectedIndex]="selectedTab" [disableRipple]="true" animationDuration="0ms">
        <mat-tab label = "List View"> 
             <app-appointment-listing (selectTab)="getOutputval($event)" ></app-appointment-listing>
        </mat-tab>
        <mat-tab label = "Calendar">
           <app-appointment-calendar (selectTab)="getOutputval($event)"></app-appointment-calendar> 
        </mat-tab>
    </mat-tab-group>
Run Code Online (Sandbox Code Playgroud)

约会-calendar.component.html

<div class="card card-box"> …
Run Code Online (Sandbox Code Playgroud)

fullcalendar angular angular7

5
推荐指数
1
解决办法
1178
查看次数

AWS 自定义验证电子邮件模板

我正在研究 AWS Cognito,下面是有关消息自定义的两个问题。

1) 我正在使用“链接”验证类型在 AWS Cognito 上处理“电子邮件验证消息”。我遇到了“电子邮件消息”使其动态化的问题。

2)如何根据用户组或有条件发送不同的“邮件消息”内容?

请建议。

谢谢

amazon-web-services amazon-cognito aws-lambda

5
推荐指数
1
解决办法
7331
查看次数

如何使用 basic-ftp 模块连接到节点中的 FTPS 服务器

我正在使用https://www.npmjs.com/package/basic-ftp基本 ftp 包连接到 ftps 服务器。我尝试了其他扩展,但无法连接到 ftps 服务器,下面是我的代码

const ftp = require("basic-ftp")

example();

async function example() {
    const client = new ftp.Client()
    client.ftp.verbose = true
    try {
        await client.access({
            host: "ftp.xxxx.xxxxx",
            user: "xxxx@xxxx.xx",
            password: "xxxxxxx",
            secure :true
        })
        await client.ensureDir("/my/remote/directory")
        console.log(await client.list())
        await client.uploadFrom("temp/readme.txt", "readme.txt")
       // await client.downloadTo("README_COPY.md", "README_FTP.md")
    }
    catch(err) {
        console.log(err)
    }
    client.close()
}
Run Code Online (Sandbox Code Playgroud)

但给我一个错误

Connected to xxx.xxx.xx.xxx:21
< 220 Service ready for new user.
Login security: No encryption
> USER xx@xxx.xx
< 331 User name okay, …
Run Code Online (Sandbox Code Playgroud)

ftps node.js ftp-server

3
推荐指数
1
解决办法
1万
查看次数