add roadmap and stuff
parent
4efb4f2a53
commit
be68ebb24f
|
@ -3,7 +3,14 @@
|
||||||
[![community](https://img.shields.io/badge/community-forum-ff69b4.svg?style=flat-square)](https://forum.caddyserver.com)
|
[![community](https://img.shields.io/badge/community-forum-ff69b4.svg?style=flat-square)](https://forum.caddyserver.com)
|
||||||
[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hacdias/caddy-filemanager)
|
[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hacdias/caddy-filemanager)
|
||||||
|
|
||||||
This is just a concept of syntax:
|
## Roadmap
|
||||||
|
|
||||||
|
+ [ ] Rename files
|
||||||
|
+ [ ] Delete files
|
||||||
|
+ [ ] Show text files
|
||||||
|
+ [ ] Show pictures
|
||||||
|
+ [ ] Show videos
|
||||||
|
+ [ ] Show music
|
||||||
|
|
||||||
```
|
```
|
||||||
filemanager {
|
filemanager {
|
||||||
|
|
|
@ -240,8 +240,9 @@ func (f FileManager) formatAsJSON(listing *Listing, bc *Config) (*bytes.Buffer,
|
||||||
return buf, err
|
return buf, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f FileManager) formatAsHTML(listing *Listing, bc *Config) (*bytes.Buffer, error) {
|
func (f FileManager) formatAsHTML(listing *Listing, fmc *Config) (*bytes.Buffer, error) {
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
|
listing.StyleSheet = fmc.StyleSheet
|
||||||
err := Template.Execute(buf, listing)
|
err := Template.Execute(buf, listing)
|
||||||
return buf, err
|
return buf, err
|
||||||
}
|
}
|
||||||
|
|
2
setup.go
2
setup.go
|
@ -103,7 +103,7 @@ func fileManagerParse(c *caddy.Controller) ([]Config, error) {
|
||||||
}
|
}
|
||||||
fmc.StyleSheet = string(tplBytes)
|
fmc.StyleSheet = string(tplBytes)
|
||||||
} else {
|
} else {
|
||||||
tplBytes, err := assets.Asset("template.tmpl")
|
tplBytes, err := assets.Asset("styles.css")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return configs, err
|
return configs, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue