finished up caching of website icons
This commit is contained in:
parent
3396109e00
commit
3fd6ab5675
10
README.md
10
README.md
@ -20,7 +20,7 @@ To configure this new tab page as website, you can install the firefox extension
|
|||||||
|
|
||||||
## Config and Profiles
|
## Config and Profiles
|
||||||
|
|
||||||
This tool works with profiles. The default profile is `startpage`. If you want to load another profile just write it as command line arg after the command. To write a config File you can create the files here:
|
This tool works with profiles. The default profile is `default`. If you want to load another profile just write it as command line arg after the command. To write a config File you can create the files here:
|
||||||
|
|
||||||
- `{profile}.toml`
|
- `{profile}.toml`
|
||||||
- `.{profile}.toml`
|
- `.{profile}.toml`
|
||||||
@ -43,8 +43,12 @@ air dev
|
|||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- implement fetching website logos, to run at the start of the program and serve it from the temp directory
|
- implementing proper command line args
|
||||||
|
- clear cache
|
||||||
|
- use `os.UserConfigDir()` instead of the current library
|
||||||
- implement fetching in intervals
|
- implement fetching in intervals
|
||||||
|
- host this website on a demo page
|
||||||
- implement ctl
|
- implement ctl
|
||||||
- writing documentation
|
|
||||||
- implement autocomplete with a nice go backend and fast communication. Since it all runs locally nobody should have privacy concerns NEEDS TO BE ABLE TO TOGGLED OFF FOR DEMO PAGE
|
- implement autocomplete with a nice go backend and fast communication. Since it all runs locally nobody should have privacy concerns NEEDS TO BE ABLE TO TOGGLED OFF FOR DEMO PAGE
|
||||||
|
|
||||||
|
WRITE DOCUMENTATION
|
||||||
|
@ -139,7 +139,7 @@ func (rc *Config) LoadConfigFile(file string) error {
|
|||||||
|
|
||||||
func (c *Config) Init() error {
|
func (c *Config) Init() error {
|
||||||
fmt.Print("downloading website icons")
|
fmt.Print("downloading website icons")
|
||||||
for i, _ := range c.Template.Websites {
|
for i := range c.Template.Websites {
|
||||||
fmt.Print(".")
|
fmt.Print(".")
|
||||||
c.Template.Websites[i].Cache()
|
c.Template.Websites[i].Cache()
|
||||||
}
|
}
|
||||||
|
6
main.go
6
main.go
@ -61,13 +61,11 @@ func getFileSystem() http.FileSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("running transfem startpage")
|
profile := "default"
|
||||||
|
|
||||||
profile := "startpage"
|
|
||||||
if len(os.Args) > 1 {
|
if len(os.Args) > 1 {
|
||||||
profile = os.Args[1]
|
profile = os.Args[1]
|
||||||
}
|
}
|
||||||
fmt.Println("loading profile " + profile + "...")
|
fmt.Println("loading profile " + profile)
|
||||||
|
|
||||||
err := CurrentConfig.ScanForConfigFile(profile)
|
err := CurrentConfig.ScanForConfigFile(profile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1 +1 @@
|
|||||||
exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1
|
exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1
|
Loading…
x
Reference in New Issue
Block a user