Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
copyVar() {
const vars = this.genVars();
const copyContent = Object.keys(vars)
.map(key => `${key}: ${vars[key]};`)
.join('\n');
copy(copyContent);
this.msg.success('Copy success');
}
}
onCopy(value: string) {
copy(value).then(() => {
this.msg.success(this.i18n.fanyi('app.demo.copied'));
this.copied = true;
setTimeout(() => (this.copied = false), 1000);
});
}
onCopy(value: string) {
copy(value).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
}
onCopy(value: string) {
copy(value).then(() =>
this.msg.success(this.i18n.fanyi('app.demo.copied')),
);
}
}
copyVar() {
const vars = this.genVars();
const copyContent = Object.keys(vars)
.map(key => `${key}: ${vars[key]};`)
.join('\n');
copy(copyContent);
this.msg.success('Copy success');
}
}
onCopy(value: string) {
copy(value).then(() =>
this.msg.success(this.i18n.fanyi('app.demo.copied')),
);
}
onCopy() {
copy(this.schema).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
}
onCopy(value: string) {
copy(value).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
}
onCopy(value: string) {
copy(value).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
}
onCopy() {
copy(this.schema).then(() =>
this.msg.success(this.i18n.fanyi('app.demo.copied')),
);
}