d3b92593d5
- Create Axios-based API client with sources, jobs, and dashboard endpoints - Add responsive Layout component with navigation sidebar - Set up React Router with Dashboard, Backups, and Settings routes - Configure TanStack Query provider with default options - Use lucide-react for navigation icons
27 lines
598 B
JavaScript
27 lines
598 B
JavaScript
let Selector = require('../selector')
|
|
let utils = require('../utils')
|
|
|
|
class FileSelectorButton extends Selector {
|
|
constructor(name, prefixes, all) {
|
|
super(name, prefixes, all)
|
|
|
|
if (this.prefixes) {
|
|
this.prefixes = utils.uniq(this.prefixes.map(() => '-webkit-'))
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Return different selectors depend on prefix
|
|
*/
|
|
prefixed(prefix) {
|
|
if (prefix === '-webkit-') {
|
|
return '::-webkit-file-upload-button'
|
|
}
|
|
return `::${prefix}file-selector-button`
|
|
}
|
|
}
|
|
|
|
FileSelectorButton.names = ['::file-selector-button']
|
|
|
|
module.exports = FileSelectorButton
|