mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-01 01:51:19 +08:00
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
20 lines
429 B
JavaScript
20 lines
429 B
JavaScript
import postcss from 'postcss'
|
|
import postcssNested from 'postcss-nested'
|
|
import postcssJs from 'postcss-js'
|
|
|
|
export default function parseObjectStyles(styles) {
|
|
if (!Array.isArray(styles)) {
|
|
return parseObjectStyles([styles])
|
|
}
|
|
|
|
return styles.flatMap((style) => {
|
|
return postcss([
|
|
postcssNested({
|
|
bubble: ['screen'],
|
|
}),
|
|
]).process(style, {
|
|
parser: postcssJs,
|
|
}).root.nodes
|
|
})
|
|
}
|