Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Oct 18, 2021
1 parent 358681d commit 40f8cca
Show file tree
Hide file tree
Showing 23 changed files with 1,719 additions and 1,723 deletions.
194 changes: 97 additions & 97 deletions docs/actions.html

Large diffs are not rendered by default.

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-" + "54270b4350072755a3440d9d3630b93006c5a32a";
const cacheName = "app-" + "8e0f1317d923632879808cfe869d42560fd3eecd";

self.addEventListener("install", event => {
console.log("installing app worker 54270b4350072755a3440d9d3630b93006c5a32a");
console.log("installing app worker 8e0f1317d923632879808cfe869d42560fd3eecd");

event.waitUntil(
caches.open(cacheName).
Expand Down Expand Up @@ -44,7 +44,7 @@ self.addEventListener("activate", event => {
);
})
);
console.log("app worker 54270b4350072755a3440d9d3630b93006c5a32a is activated");
console.log("app worker 8e0f1317d923632879808cfe869d42560fd3eecd is activated");
});

self.addEventListener("fetch", event => {
Expand Down
12 changes: 5 additions & 7 deletions docs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if ("serviceWorker" in navigator) {
// -----------------------------------------------------------------------------
// Env
// -----------------------------------------------------------------------------
const goappEnv = {"GOAPP_INTERNAL_URLS":"null","GOAPP_ROOT_PREFIX":"","GOAPP_STATIC_RESOURCES_URL":"","GOAPP_VERSION":"54270b4350072755a3440d9d3630b93006c5a32a"};
const goappEnv = {"GOAPP_INTERNAL_URLS":"null","GOAPP_ROOT_PREFIX":"","GOAPP_STATIC_RESOURCES_URL":"","GOAPP_VERSION":"8e0f1317d923632879808cfe869d42560fd3eecd"};

function goappGetenv(k) {
return goappEnv[k];
Expand Down Expand Up @@ -103,9 +103,7 @@ async function initWebAssembly() {

let response = await fetch("/web/app.wasm");
const reader = response.body.getReader();
let contentLength = response.headers.get('Content-Length');

console.log(response.headers);
const contentLength = response.headers.get('Content-Length');

let chunks = [];
let len = 0;
Expand All @@ -115,13 +113,13 @@ async function initWebAssembly() {
if (done) {
break;
}
if (response.body.length > contentLength) {
contentLength = response.body.length;
}

chunks.push(value);
len += value.length;
let progress = (len * 100 / contentLength).toFixed(2)
if (progress > 100) {
progress = (100).toFixed(2);
}
loaderLabel.innerText = progress + "%";
}

Expand Down
184 changes: 92 additions & 92 deletions docs/architecture.html

Large diffs are not rendered by default.

192 changes: 96 additions & 96 deletions docs/components.html

Large diffs are not rendered by default.

188 changes: 94 additions & 94 deletions docs/concurrency.html

Large diffs are not rendered by default.

212 changes: 106 additions & 106 deletions docs/declarative-syntax.html

Large diffs are not rendered by default.

Binary file removed docs/documentation
Binary file not shown.
196 changes: 98 additions & 98 deletions docs/getting-started.html

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions docs/github-deploy.html

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions docs/index.html

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions docs/install.html

Large diffs are not rendered by default.

200 changes: 100 additions & 100 deletions docs/js.html

Large diffs are not rendered by default.

176 changes: 88 additions & 88 deletions docs/lifecycle.html

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions docs/migrate.html

Large diffs are not rendered by default.

194 changes: 97 additions & 97 deletions docs/privacy-policy.html

Large diffs are not rendered by default.

184 changes: 92 additions & 92 deletions docs/routing.html

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions docs/seo.html

Large diffs are not rendered by default.

194 changes: 97 additions & 97 deletions docs/states.html

Large diffs are not rendered by default.

202 changes: 101 additions & 101 deletions docs/static-resources.html

Large diffs are not rendered by default.

172 changes: 86 additions & 86 deletions docs/testing.html

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions pkg/app/gen/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ async function initWebAssembly() {

let response = await fetch("{{.Wasm}}");
const reader = response.body.getReader();
let contentLength = response.headers.get('Content-Length');

console.log(response.headers);
const contentLength = response.headers.get('Content-Length');

let chunks = [];
let len = 0;
Expand All @@ -115,13 +113,13 @@ async function initWebAssembly() {
if (done) {
break;
}
if (response.body.length > contentLength) {
contentLength = response.body.length;
}

chunks.push(value);
len += value.length;
let progress = (len * 100 / contentLength).toFixed(2)
if (progress > 100) {
progress = (100).toFixed(2);
}
loaderLabel.innerText = progress + "%";
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/app/scripts.go

Large diffs are not rendered by default.

0 comments on commit 40f8cca

Please sign in to comment.