Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Jun 27, 2023
1 parent ae6abf8 commit 9b47482
Show file tree
Hide file tree
Showing 27 changed files with 10,908 additions and 14,771 deletions.
1,094 changes: 409 additions & 685 deletions docs/actions.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/app-worker.js
@@ -1,8 +1,8 @@
const cacheName = "app-" + "0073f083c41452feba77b44bfafd4dd99f549cfc";
const resourcesToCache = ["/","/app.css","/app.js","/manifest.webmanifest","/wasm_exec.js","/web/app.wasm","/web/css/docs.css","/web/css/prism.css","/web/documents/home-next.md","/web/documents/home.md","/web/documents/updates.md","/web/documents/what-is-go-app.md","/web/js/prism.js","https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500\u0026display=swap","https://storage.googleapis.com/murlok-github/icon-192.png","https://storage.googleapis.com/murlok-github/icon-512.png"];
const cacheName = "app-" + "c70df206f81d79312548f4edc88cad79e000a3bd";
const resourcesToCache = ["/","/app.css","/app.js","/manifest.webmanifest","/wasm_exec.js","/web/app.wasm","/web/css/docs.css","/web/css/prism.css","/web/documents/home-next.md","/web/documents/home.md","/web/documents/updates.md","/web/documents/what-is-go-app.md","/web/icon.png","/web/js/prism.js","https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500\u0026display=swap","https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1013306768105236"];

self.addEventListener("install", (event) => {
console.log("installing app worker 0073f083c41452feba77b44bfafd4dd99f549cfc");
console.log("installing app worker c70df206f81d79312548f4edc88cad79e000a3bd");

event.waitUntil(
caches
Expand All @@ -28,7 +28,7 @@ self.addEventListener("activate", (event) => {
);
})
);
console.log("app worker 0073f083c41452feba77b44bfafd4dd99f549cfc is activated");
console.log("app worker c70df206f81d79312548f4edc88cad79e000a3bd is activated");
});

self.addEventListener("fetch", (event) => {
Expand Down
20 changes: 5 additions & 15 deletions docs/app.css
@@ -1,7 +1,11 @@
/*------------------------------------------------------------------------------
Loader
------------------------------------------------------------------------------*/
.goapp-app-info {
.app-wasm-loader-hidden {
display: none;
}

.app-wasm-loader {
position: fixed;
top: 0;
left: 0;
Expand Down Expand Up @@ -73,17 +77,3 @@
font-size: 65pt;
font-weight: 100;
}

/*------------------------------------------------------------------------------
Widget Layout
------------------------------------------------------------------------------*/
.goapp-shell-hamburger-button-default {
font-size: 24px;
padding: 12px 18px;
color: currentColor;
}

.goapp-shell-hamburger-button-default:hover {
color: dodgerblue;
cursor: pointer;
}
18 changes: 13 additions & 5 deletions docs/app.js
Expand Up @@ -5,7 +5,7 @@ var goappNav = function () {};
var goappOnUpdate = function () {};
var goappOnAppInstallChange = function () {};

const goappEnv = {"GOAPP_INTERNAL_URLS":"null","GOAPP_ROOT_PREFIX":"","GOAPP_STATIC_RESOURCES_URL":"","GOAPP_VERSION":"0073f083c41452feba77b44bfafd4dd99f549cfc"};
const goappEnv = {"GOAPP_INTERNAL_URLS":"null","GOAPP_ROOT_PREFIX":"","GOAPP_STATIC_RESOURCES_URL":"","GOAPP_VERSION":"c70df206f81d79312548f4edc88cad79e000a3bd"};
const goappLoadingLabel = "go-app documentation {progress}%";
const goappWasmContentLengthHeader = "";

Expand Down Expand Up @@ -190,8 +190,10 @@ function goappKeepBodyClean() {
// Web Assembly
// -----------------------------------------------------------------------------
async function goappInitWebAssembly() {
const loader = document.getElementById("app-wasm-loader");

if (!goappCanLoadWebAssembly()) {
document.getElementById("app-wasm-loader").style.display = "none";
loader.remove();
return;
}

Expand Down Expand Up @@ -219,6 +221,7 @@ async function goappInitWebAssembly() {
);

go.run(wasm.instance);
loader.remove();
} catch (err) {
loaderIcon.className = "goapp-logo";
loaderLabel.innerText = err;
Expand All @@ -227,9 +230,14 @@ async function goappInitWebAssembly() {
}

function goappCanLoadWebAssembly() {
return !/bot|googlebot|crawler|spider|robot|crawling/i.test(
navigator.userAgent
);
if (
/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent)
) {
return false;
}

const urlParams = new URLSearchParams(window.location.search);
return urlParams.get("wasm") !== "false";
}

async function fetchWithProgress(url, progess) {
Expand Down
1,126 changes: 434 additions & 692 deletions docs/architecture.html

Large diffs are not rendered by default.

1,324 changes: 612 additions & 712 deletions docs/components.html

Large diffs are not rendered by default.

1,145 changes: 459 additions & 686 deletions docs/concurrency.html

Large diffs are not rendered by default.

1,412 changes: 682 additions & 730 deletions docs/declarative-syntax.html

Large diffs are not rendered by default.

1,186 changes: 486 additions & 700 deletions docs/getting-started.html

Large diffs are not rendered by default.

1,067 changes: 386 additions & 681 deletions docs/github-deploy.html

Large diffs are not rendered by default.

1,277 changes: 457 additions & 820 deletions docs/index.html

Large diffs are not rendered by default.

1,090 changes: 399 additions & 691 deletions docs/install.html

Large diffs are not rendered by default.

1,173 changes: 475 additions & 698 deletions docs/js.html

Large diffs are not rendered by default.

1,083 changes: 398 additions & 685 deletions docs/lifecycle.html

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions docs/manifest.webmanifest
Expand Up @@ -4,19 +4,24 @@
"description": "A package for building progressive web apps (PWA) with the Go programming language (Golang) and WebAssembly (Wasm). It uses a declarative syntax that allows creating and dealing with HTML elements only by using Go, and without writing any HTML markup.",
"icons": [
{
"src": "https://storage.googleapis.com/murlok-github/icon-192.png",
"type": "image/png",
"sizes": "192x192"
"src": "",
"type": "image/svg+xml",
"sizes": "any"
},
{
"src": "https://storage.googleapis.com/murlok-github/icon-512.png",
"src": "",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "/web/icon.png",
"type": "image/png",
"sizes": "192x192"
}
],
"scope": "/",
"start_url": "/",
"background_color": "#2e343a",
"theme_color": "#2e343a",
"display": "standalone"
}
}

0 comments on commit 9b47482

Please sign in to comment.