
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@youngbeen/angle-ctrl
Advanced tools
[TOC]
引用
import { timeCtrl } from '@youngbeen/angle-ctrl'
countDowntimeCtrl.countDown({
total: 60,
step: 1000
}, tick: <function>, end: <function>)
timeCtrl.countDown({
total: 30,
step: 2000
}, tick (data) {
console.log('ticking')
console.log(data) // { leftCount: 30 }
}, end (data) {
console.log('ticking end')
console.log(data) // { leftCount: 0 }
})
countUptimeCtrl.countUp({
start: 0,
total: 60,
step: 1000
}, tick: <function>, end: <function>)
timeCtrl.countUp({
start: 10,
total: 30
},tick (data) {
console.log('counting')
console.log(data) // { count: 10 }
}, end (data) {
console.log('counting end')
console.log(data) // { count: 30 }
})
引用
import { debugCtrl } from '@youngbeen/angle-ctrl'
logdebugCtrl.log(info, {
isSave: false,
line: '',
compName: '',
funcName: '',
attach: ''
})
该方法始终会在控制台打印出信息,并且当前如果开启了严格调试模式,则会使用弹框方式显示信息
debugCtrl.log('一条普通的消息,不会记录到日志中', {
isSave: false
})
debugCtrl.log('这条信息会被记录到前端日志', {
isSave: true,
line: 211,
compName: 'HelloWorld',
funcName: 'showMsg',
attach: 'just a tag'
})
warndebugCtrl.warn(info, {
line: '',
compName: '',
funcName: '',
attach: ''
})
该方法始终会在控制台打印出警告信息,并且当前如果开启了调试模式,则会使用弹框方式显示信息。另外,该方法打印信息始终会记录到前端日志中。
debugCtrl.warn('发生了一个XXX错误')
debugCtrl.warn('这条警告包含了一些详细信息', {
line: 211,
compName: 'HelloWorld',
funcName: 'showMsg',
attach: '后台数据缺失'
})
errordebugCtrl.error(info, {
line: '',
compName: '',
funcName: '',
attach: ''
})
该方法始终会在控制台打印出警告信息,并且当前如果开启了调试模式,则会使用弹框方式显示信息。另外,该方法打印信息始终会记录到前端日志中,并随后上报发送所有已记录的前端日志
debugCtrl.error('发生了一个XXX严重错误')
debugCtrl.error('这条错误包含了一些详细信息', {
line: 211,
compName: 'HelloWorld',
funcName: 'showMsg',
attach: '后台无响应'
})
debugOndebugCtrl.debugOn(mode)
debugCtrl.debugOn() // 开启了普通debug模式
debugCtrl.debugOn(2) // 开启了严格debug模式
debugOffdebugCtrl.debugOff() // 关闭debug模式
autoReportOndebugCtrl.autoReportOn()
autoReportOffdebugCtrl.autoReportOff() // 关闭错误自动上报
getLoglet logs = debugCtrl.getLog()
cheatDebugClickdebugCtrl.cheatDebugClick(count, interval)
if (debugCtrl.cheatDebugClick(10)) {
// 目标被连续点击10次触发开启调试
debugCtrl.debugOn(2)
}
if (debugCtrl.cheatDebugClick(5, 1000)) {
// 目标被连续点击5次触发开启调试
}
引用
import { clipboard } from '@youngbeen/angle-ctrl'
copyclipboard.copy(content: string): boolean
clipboard.copy('hello world!')
FAQs
The controllers used in angle-FE team
The npm package @youngbeen/angle-ctrl receives a total of 8 weekly downloads. As such, @youngbeen/angle-ctrl popularity was classified as not popular.
We found that @youngbeen/angle-ctrl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.