mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-26 00:19:41 -05:00
Build assets
Former-commit-id: 214feb63071053eaa9f225f55a587ca7178a3b0c [formerly 822b86489d897ea82bde838c86884dafea458460] [formerly ac96a6c6bef3802051daee871ee971031d254d3a [formerly ae2716af9692152eb083697b796a0c4055828629]] Former-commit-id: 19c8751923336aad5b4b6776f321b14bb175477e [formerly 70c94fd2159b71431945801798a2e9e53e9f0544] Former-commit-id: e8f4d5077723b1de3e6b80146baae680fd9bf0c5
This commit is contained in:
1 parent
7bd30c1026
commit
83c8df94f7
2 files changed
+3
-3
No files matched your search
@@ -25,8 +25,8 @@ func init() {
|
||||
}
|
||||
file5 := &embedded.EmbeddedFile{
|
||||
Filename: `rice-box.go`,
|
||||
FileModTime: time.Unix(1500389971, 0),
|
||||
Content: string("package hugo\n\nimport (\n\t\"github.com/GeertJohan/go.rice/embedded\"\n\t\"time\"\n)\n\nfunc init() {\n\n\t// define files\n\tfile2 := &embedded.EmbeddedFile{\n\t\tFilename: `README.md`,\n\t\tFileModTime: time.Unix(1500389874, 0),\n\t\tContent: string(\"# hugo - a caddy plugin\\n\\n[](https://caddy.community)\\n\\nhugo fills the gap between Hugo and the browser. [Hugo][6] is an easy and fast static website generator. This plugin fills the gap between Hugo and the end-user, providing you a web interface to manage the whole website.\\n\\nUsing this plugin, you won't need to have your own computer to edit posts, neither regenerate your static website, because you can do all of that just through your browser. It is an implementation of [hacdias/filemanager][1] library.\\n\\n**Requirements:** you need to have the hugo executable in your PATH. You can download it from its [official page][6].\\n\\n## Get Started\\n\\nTo start using this plugin you just need to go to the [download Caddy page][3] and choose `http.hugo` in the directives section. For further information on how Caddy works refer to [its documentation][4].\\n\\nThe default credentials are `admin` for both the user and the password. It is highy recommended to change them after logging in for the first time and to use HTTPS. You can create more users and define their own permissions using the web interface.\\n\\n## Syntax\\n\\n```\\nhugo [directory] [admin] {\\n database path\\n}\\n```\\n\\n+ `directory` is the path, relative or absolute to the directory of your Hugo files. Defaults to `./`.\\n+ `admin` is the URL path where you will access the admin interface. Defaults to `/admin`.\\n+ `path` is the database path where the settings will be stored. By default, the settings will be stored on [`.caddy`][5] folder.\\n\\n## Database\\n\\nBy default the database will be stored on [`.caddy`][5] directory, in a sub-directory called `hugo`. Each file name is an hash of the combination of the host and the base URL.\\n\\nIf you don't set a database path, you will receive a warning like this:\\n\\n> [WARNING] A database is going to be created for your File Manager instace at ~/.caddy/hugo/xxx.db. It is highly recommended that you set the 'database' option to 'xxx.db'\\n\\nWhy? If you don't set a database path and you change the host or the base URL, your settings will be reseted. So it is *highly* recommended to set this option.\\n\\nWhen you set a relative path, such as `xxxxxxxxxx.db`, it will always be relative to `.caddy/hugo` directory. Although, you may also use an absolute path if you wish to store the database in other place.\\n\\n## Examples\\n\\nManage the current working directory's Hugo website at `/admin` and display the ```public``` folder to the user.\\n\\n```\\nroot public\\nhugo {\\n database myinstance.db\\n}\\n```\\n\\nManage the Hugo website located at `/var/www/mysite` at `/admin` and display the ```public``` folder to the user.\\n\\n```\\nroot /var/www/mysite/public\\nhugo /var/www/mysite {\\n database myinstance.db\\n}\\n```\\n\\nManage the Hugo website located at `/var/www/mysite` at `/private` and display the ```public``` folder to the user.\\n\\n```\\nroot /var/www/mysite/public\\nhugo /var/www/mysite /private {\\n database myinstance.db\\n}\\n```\\n\\n## Known Issues\\n\\nIf you are having troubles **handling large files** you might need to check out the [`timeouts`][2] plugin, which can be used to change the default HTTP Timeouts.\\n\\n[1]:https://github.com/hacdias/filemanager\\n[2]:https://caddyserver.com/docs/timeouts\\n[3]:https://caddyserver.com/download\\n[4]:https://caddyserver.com/docs\\n[5]:https://caddyserver.com/docs/automatic-https#dot-caddy\\n[6]:http://gohugo.io\\n\"),\n\t}\n\tfile3 := &embedded.EmbeddedFile{\n\t\tFilename: `hugo.go`,\n\t\tFileModTime: time.Unix(1500387945, 0),\n\t\tContent: string(\"package hugo\\r\\n\\r\\nimport (\\r\\n\\t\\\"log\\\"\\r\\n\\t\\\"net/http\\\"\\r\\n\\t\\\"os\\\"\\r\\n\\t\\\"path/filepath\\\"\\r\\n\\t\\\"strings\\\"\\r\\n\\t\\\"time\\\"\\r\\n\\r\\n\\trice \\\"github.com/GeertJohan/go.rice\\\"\\r\\n\\t\\\"github.com/hacdias/filemanager\\\"\\r\\n\\t\\\"github.com/hacdias/filemanager/variables\\\"\\r\\n\\t\\\"github.com/robfig/cron\\\"\\r\\n)\\r\\n\\r\\ntype hugo struct {\\r\\n\\t// Website root\\r\\n\\tRoot string `description:\\\"The relative or absolute path to the place where your website is located.\\\"`\\r\\n\\t// Public folder\\r\\n\\tPublic string `description:\\\"The relative or absolute path to the public folder.\\\"`\\r\\n\\t// Hugo executable path\\r\\n\\tExe string `description:\\\"The absolute path to the Hugo executable or the command to execute.\\\"`\\r\\n\\t// Hugo arguments\\r\\n\\tArgs []string `description:\\\"The arguments to run when running Hugo\\\"`\\r\\n\\t// Indicates if we should clean public before a new publish.\\r\\n\\tCleanPublic boolLine truncated
|
||||
FileModTime: time.Unix(1500391072, 0),
|
||||
Content: string("package hugo\n\nimport (\n\t\"github.com/GeertJohan/go.rice/embedded\"\n\t\"time\"\n)\n\nfunc init() {\n\n\t// define files\n\tfile2 := &embedded.EmbeddedFile{\n\t\tFilename: `README.md`,\n\t\tFileModTime: time.Unix(1500389874, 0),\n\t\tContent: string(\"# hugo - a caddy plugin\\n\\n[](https://caddy.community)\\n\\nhugo fills the gap between Hugo and the browser. [Hugo][6] is an easy and fast static website generator. This plugin fills the gap between Hugo and the end-user, providing you a web interface to manage the whole website.\\n\\nUsing this plugin, you won't need to have your own computer to edit posts, neither regenerate your static website, because you can do all of that just through your browser. It is an implementation of [hacdias/filemanager][1] library.\\n\\n**Requirements:** you need to have the hugo executable in your PATH. You can download it from its [official page][6].\\n\\n## Get Started\\n\\nTo start using this plugin you just need to go to the [download Caddy page][3] and choose `http.hugo` in the directives section. For further information on how Caddy works refer to [its documentation][4].\\n\\nThe default credentials are `admin` for both the user and the password. It is highy recommended to change them after logging in for the first time and to use HTTPS. You can create more users and define their own permissions using the web interface.\\n\\n## Syntax\\n\\n```\\nhugo [directory] [admin] {\\n database path\\n}\\n```\\n\\n+ `directory` is the path, relative or absolute to the directory of your Hugo files. Defaults to `./`.\\n+ `admin` is the URL path where you will access the admin interface. Defaults to `/admin`.\\n+ `path` is the database path where the settings will be stored. By default, the settings will be stored on [`.caddy`][5] folder.\\n\\n## Database\\n\\nBy default the database will be stored on [`.caddy`][5] directory, in a sub-directory called `hugo`. Each file name is an hash of the combination of the host and the base URL.\\n\\nIf you don't set a database path, you will receive a warning like this:\\n\\n> [WARNING] A database is going to be created for your File Manager instace at ~/.caddy/hugo/xxx.db. It is highly recommended that you set the 'database' option to 'xxx.db'\\n\\nWhy? If you don't set a database path and you change the host or the base URL, your settings will be reseted. So it is *highly* recommended to set this option.\\n\\nWhen you set a relative path, such as `xxxxxxxxxx.db`, it will always be relative to `.caddy/hugo` directory. Although, you may also use an absolute path if you wish to store the database in other place.\\n\\n## Examples\\n\\nManage the current working directory's Hugo website at `/admin` and display the ```public``` folder to the user.\\n\\n```\\nroot public\\nhugo {\\n database myinstance.db\\n}\\n```\\n\\nManage the Hugo website located at `/var/www/mysite` at `/admin` and display the ```public``` folder to the user.\\n\\n```\\nroot /var/www/mysite/public\\nhugo /var/www/mysite {\\n database myinstance.db\\n}\\n```\\n\\nManage the Hugo website located at `/var/www/mysite` at `/private` and display the ```public``` folder to the user.\\n\\n```\\nroot /var/www/mysite/public\\nhugo /var/www/mysite /private {\\n database myinstance.db\\n}\\n```\\n\\n## Known Issues\\n\\nIf you are having troubles **handling large files** you might need to check out the [`timeouts`][2] plugin, which can be used to change the default HTTP Timeouts.\\n\\n[1]:https://github.com/hacdias/filemanager\\n[2]:https://caddyserver.com/docs/timeouts\\n[3]:https://caddyserver.com/download\\n[4]:https://caddyserver.com/docs\\n[5]:https://caddyserver.com/docs/automatic-https#dot-caddy\\n[6]:http://gohugo.io\\n\"),\n\t}\n\tfile3 := &embedded.EmbeddedFile{\n\t\tFilename: `hugo.go`,\n\t\tFileModTime: time.Unix(1500387945, 0),\n\t\tContent: string(\"package hugo\\r\\n\\r\\nimport (\\r\\n\\t\\\"log\\\"\\r\\n\\t\\\"net/http\\\"\\r\\n\\t\\\"os\\\"\\r\\n\\t\\\"path/filepath\\\"\\r\\n\\t\\\"strings\\\"\\r\\n\\t\\\"time\\\"\\r\\n\\r\\n\\trice \\\"github.com/GeertJohan/go.rice\\\"\\r\\n\\t\\\"github.com/hacdias/filemanager\\\"\\r\\n\\t\\\"github.com/hacdias/filemanager/variables\\\"\\r\\n\\t\\\"github.com/robfig/cron\\\"\\r\\n)\\r\\n\\r\\ntype hugo struct {\\r\\n\\t// Website root\\r\\n\\tRoot string `description:\\\"The relative or absolute path to the place where your website is located.\\\"`\\r\\n\\t// Public folder\\r\\n\\tPublic string `description:\\\"The relative or absolute path to the public folder.\\\"`\\r\\n\\t// Hugo executable path\\r\\n\\tExe string `description:\\\"The absolute path to the Hugo executable or the command to execute.\\\"`\\r\\n\\t// Hugo arguments\\r\\n\\tArgs []string `description:\\\"The arguments to run when running Hugo\\\"`\\r\\n\\t// Indicates if we should clean public before a new publish.\\r\\n\\tCleanPublic boolLine truncated
|
||||
}
|
||||
file6 := &embedded.EmbeddedFile{
|
||||
Filename: `setup.go`,
|
||||
|
||||
@@ -1 +1 @@
|
||||
7c28579ca6eca580689b9d8fe02b8a145a70dc24
|
||||
aacb4dd754007a2fc84060ad249cee167df77ae3
|
||||
Reference in new issue
Block a user