v1.0.1
parent
fbda311e00
commit
e9af91c756
@ -0,0 +1,38 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
//"os"
|
||||
)
|
||||
|
||||
const css = `
|
||||
body {
|
||||
background-color: #222;
|
||||
color: #aaa;
|
||||
font-size: 1rem;
|
||||
font-family: "Source Sans Pro", 'JetBrains Mono', 'Fira Code', "Segoe UI"
|
||||
}
|
||||
|
||||
.main-title {
|
||||
color: teal;
|
||||
margin-top: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
margin-left: 8px;
|
||||
margin-right: 8px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.server {
|
||||
color: darkcyan;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.server:hover {
|
||||
text-decoration: underline;
|
||||
color: cyan;
|
||||
}
|
||||
|
||||
`
|
@ -0,0 +1,8 @@
|
||||
module servers
|
||||
|
||||
go 1.22.0
|
||||
|
||||
require (
|
||||
github.com/estebangarcia21/subprocess v0.0.0-20230526204252-a1a6de4773be
|
||||
github.com/webview/webview_go v0.0.0-20230901181450-5a14030a9070
|
||||
)
|
@ -0,0 +1,4 @@
|
||||
github.com/estebangarcia21/subprocess v0.0.0-20230526204252-a1a6de4773be h1:Mf6Xc0DgENbsDgKn10KNCNmW9FYSTcMr2bFsJ9uzvX0=
|
||||
github.com/estebangarcia21/subprocess v0.0.0-20230526204252-a1a6de4773be/go.mod h1:PlHe6+WP6t7m4ghYrX6GBzB0KZLdOKWz2Ih3h0nusAY=
|
||||
github.com/webview/webview_go v0.0.0-20230901181450-5a14030a9070 h1:imZLWyo1ondeQjqfb/eHuYgFiOAYg6ugSMCnGfPTPmg=
|
||||
github.com/webview/webview_go v0.0.0-20230901181450-5a14030a9070/go.mod h1:yE65LFCeWf4kyWD5re+h4XNvOHJEXOCOuJZ4v8l5sgk=
|
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
//"os"
|
||||
)
|
||||
|
||||
const js = `
|
||||
|
||||
function start_server(name){
|
||||
const e = document.getElementById(name)
|
||||
e.innerHTML = "работает.."
|
||||
let result = server(name)
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
noop();
|
||||
}
|
||||
`
|
Loading…
Reference in New Issue