Skip to content

Commit

Permalink
add themecolor
Browse files Browse the repository at this point in the history
  • Loading branch information
lu4p committed Jul 11, 2020
1 parent e1dca90 commit 1f9b96e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
6 changes: 3 additions & 3 deletions docs/app-worker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const cacheName = "app-" + "cf8ed8d8cb9e6268a9687222c5ff851ba3ca979f";
const cacheName = "app-" + "43852a0b5ead1be960c93d4d9d4d516e9e5795ba";

self.addEventListener("install", event => {
console.log("installing app worker cf8ed8d8cb9e6268a9687222c5ff851ba3ca979f");
console.log("installing app worker 43852a0b5ead1be960c93d4d9d4d516e9e5795ba");
self.skipWaiting();

event.waitUntil(
Expand Down Expand Up @@ -34,7 +34,7 @@ self.addEventListener("activate", event => {
);
})
);
console.log("app worker cf8ed8d8cb9e6268a9687222c5ff851ba3ca979f is activated");
console.log("app worker 43852a0b5ead1be960c93d4d9d4d516e9e5795ba is activated");
});

self.addEventListener("fetch", event => {
Expand Down
2 changes: 1 addition & 1 deletion docs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if ("serviceWorker" in navigator) {
// -----------------------------------------------------------------------------
// Init progressive app
// -----------------------------------------------------------------------------
const goappEnv = {"GOAPP_ROOT_PREFIX":"/astextract","GOAPP_STATIC_RESOURCES_URL":"/astextract","GOAPP_VERSION":"cf8ed8d8cb9e6268a9687222c5ff851ba3ca979f"};
const goappEnv = {"GOAPP_ROOT_PREFIX":"/astextract","GOAPP_STATIC_RESOURCES_URL":"/astextract","GOAPP_VERSION":"43852a0b5ead1be960c93d4d9d4d516e9e5795ba"};

function goappGetenv(k) {
return goappEnv[k];
Expand Down
9 changes: 5 additions & 4 deletions docs/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import (

func main() {
h := &app.Handler{
Name: "astextract",
Title: "astextract",
Author: "lu4p",
Styles: []string{"https://unpkg.com/spectre.css/dist/spectre.min.css"},
Name: "astextract",
Title: "astextract",
Author: "lu4p",
ThemeColor: "#ffffff",
Styles: []string{"https://unpkg.com/spectre.css/dist/spectre.min.css"},
}

fmt.Println("listening on http://localhost:7778")
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8">
<meta httpequiv="Content-Type" content="text/html; charset=utf-8">
<meta name="author" content="lu4p">
<meta name="description" content>
<meta content name="description">
<meta name="keywords" content>
<meta name="theme-color" content="#2d2c2c">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, viewport-fit=cover">
<title>
astextract
Expand All @@ -16,12 +16,12 @@
<link rel="manifest" href="/astextract/manifest.json">
<link type="text/css" rel="stylesheet" href="/astextract/app.css">
<script defer src="/astextract/wasm_exec.js"></script>
<script src="/astextract/app.js" defer></script>
<script defer src="/astextract/app.js"></script>
<link type="text/css" rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
</head>
<body>
<div id="app-wasm-layout" class="goapp-app-info">
<img id="app-wasm-loader-icon" class="goapp-logo goapp-spin" src="https://storage.googleapis.com/murlok-github/icon-192.png">
<img src="https://storage.googleapis.com/murlok-github/icon-192.png" id="app-wasm-loader-icon" class="goapp-logo goapp-spin">
<p id="app-wasm-loader-label" class="goapp-label">
Loading
</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"start_url": "/astextract/",
"background_color": "#2d2c2c",
"display": "standalone",
"theme_color": "#2d2c2c"
"theme_color": "#ffffff"
}
11 changes: 6 additions & 5 deletions docs/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import (
func main() {

h := &app.Handler{
Name: "astextract",
Title: "astextract",
Author: "lu4p",
Styles: []string{"https://unpkg.com/spectre.css/dist/spectre.min.css"},
Resources: app.GitHubPages("astextract"),
Name: "astextract",
Title: "astextract",
ThemeColor: "#ffffff",
Author: "lu4p",
Styles: []string{"https://unpkg.com/spectre.css/dist/spectre.min.css"},
Resources: app.GitHubPages("astextract"),
}

err := app.GenerateStaticWebsite("", h)
Expand Down

0 comments on commit 1f9b96e

Please sign in to comment.