mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-06 04:42:36 +02:00
Add decaf webui
This commit is contained in:
parent
6b4c9bb531
commit
69c0388954
742 changed files with 608981 additions and 6 deletions
42
webui/node_modules/postcss/lib/result.js
generated
vendored
Normal file
42
webui/node_modules/postcss/lib/result.js
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
'use strict'
|
||||
|
||||
let Warning = require('./warning')
|
||||
|
||||
class Result {
|
||||
constructor(processor, root, opts) {
|
||||
this.processor = processor
|
||||
this.messages = []
|
||||
this.root = root
|
||||
this.opts = opts
|
||||
this.css = undefined
|
||||
this.map = undefined
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.css
|
||||
}
|
||||
|
||||
warn(text, opts = {}) {
|
||||
if (!opts.plugin) {
|
||||
if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
|
||||
opts.plugin = this.lastPlugin.postcssPlugin
|
||||
}
|
||||
}
|
||||
|
||||
let warning = new Warning(text, opts)
|
||||
this.messages.push(warning)
|
||||
|
||||
return warning
|
||||
}
|
||||
|
||||
warnings() {
|
||||
return this.messages.filter(i => i.type === 'warning')
|
||||
}
|
||||
|
||||
get content() {
|
||||
return this.css
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Result
|
||||
Result.default = Result
|
Loading…
Add table
Add a link
Reference in a new issue