mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-25 05:04:25 +00:00
Add favicon
This commit is contained in:
parent
e79e78a323
commit
ee77ec1b3a
7
Makefile
7
Makefile
@ -3,7 +3,7 @@ gotty: app/resource.go main.go app/*.go
|
|||||||
|
|
||||||
resource: app/resource.go
|
resource: app/resource.go
|
||||||
|
|
||||||
app/resource.go: bindata/static/js/hterm.js bindata/static/js/gotty.js bindata/static/index.html
|
app/resource.go: bindata/static/js/hterm.js bindata/static/js/gotty.js bindata/static/index.html bindata/static/favicon.png
|
||||||
go-bindata -prefix bindata -pkg app -ignore=\\.gitkeep -o app/resource.go bindata/...
|
go-bindata -prefix bindata -pkg app -ignore=\\.gitkeep -o app/resource.go bindata/...
|
||||||
gofmt -w app/resource.go
|
gofmt -w app/resource.go
|
||||||
|
|
||||||
@ -16,8 +16,11 @@ bindata/static: bindata
|
|||||||
bindata/static/index.html: bindata/static resources/index.html
|
bindata/static/index.html: bindata/static resources/index.html
|
||||||
cp resources/index.html bindata/static/index.html
|
cp resources/index.html bindata/static/index.html
|
||||||
|
|
||||||
|
bindata/static/favicon.png: bindata/static resources/favicon.png
|
||||||
|
cp resources/favicon.png bindata/static/favicon.png
|
||||||
|
|
||||||
bindata/static/js: bindata/static
|
bindata/static/js: bindata/static
|
||||||
mkdir bindata/static/js
|
mkdir -p bindata/static/js
|
||||||
|
|
||||||
bindata/static/js/hterm.js: bindata/static/js libapps/hterm/js/*.js
|
bindata/static/js/hterm.js: bindata/static/js libapps/hterm/js/*.js
|
||||||
cd libapps && \
|
cd libapps && \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# GoTTY - Share your terminal as a web application
|
# ![](https://raw.githubusercontent.com/yudai/gotty/master/resources/favicon.png) GoTTY - Share your terminal as a web application
|
||||||
|
|
||||||
[![GitHub release](http://img.shields.io/github/release/yudai/gotty.svg?style=flat-square)][release]
|
[![GitHub release](http://img.shields.io/github/release/yudai/gotty.svg?style=flat-square)][release]
|
||||||
[![Wercker](http://img.shields.io/wercker/ci/55d0eeff7331453f0801982c.svg?style=flat-square)][wercker]
|
[![Wercker](http://img.shields.io/wercker/ci/55d0eeff7331453f0801982c.svg?style=flat-square)][wercker]
|
||||||
|
@ -190,6 +190,7 @@ func (app *App) Run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
siteMux.Handle(path+"/js/", http.StripPrefix(path+"/", staticHandler))
|
siteMux.Handle(path+"/js/", http.StripPrefix(path+"/", staticHandler))
|
||||||
|
siteMux.Handle(path+"/favicon.png", http.StripPrefix(path+"/", staticHandler))
|
||||||
siteMux.Handle(path+"/ws", wsHandler)
|
siteMux.Handle(path+"/ws", wsHandler)
|
||||||
|
|
||||||
siteHandler := http.Handler(siteMux)
|
siteHandler := http.Handler(siteMux)
|
||||||
|
File diff suppressed because one or more lines are too long
BIN
favicon.psd
Executable file
BIN
favicon.psd
Executable file
Binary file not shown.
BIN
resources/favicon.png
Normal file
BIN
resources/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 863 B |
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>GoTTY</title>
|
<title>GoTTY</title>
|
||||||
<style>body, #terminal {position: absolute; height: 100%; width: 100%; margin: 0px;}</style>
|
<style>body, #terminal {position: absolute; height: 100%; width: 100%; margin: 0px;}</style>
|
||||||
|
<link rel="icon" type="image/png" href="favicon.png">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="terminal"></div>
|
<div id="terminal"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user