Skip to content

Commit

Permalink
Merge pull request #107 from ookami-kb/ookami-kb/issue106
Browse files Browse the repository at this point in the history
fix: reset knobs panel on story change
  • Loading branch information
ookami-kb authored Mar 19, 2023
2 parents cf929f8 + b0fc02b commit ce34908
Show file tree
Hide file tree
Showing 14 changed files with 12,016 additions and 11,597 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dart_tool/
.vscode/
2 changes: 1 addition & 1 deletion docs/.last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4500af9a5351c73a185bb670117c1453
7bae02c6e77f2e58ecd47af1b3306103
20 changes: 17 additions & 3 deletions docs/flutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ _flutter.loader = null;

(function () {
"use strict";

const baseUri = ensureTrailingSlash(getBaseURI());

function getBaseURI() {
const base = document.querySelector("base");
return (base && base.getAttribute("href")) || "";
}

function ensureTrailingSlash(uri) {
if (uri == "") {
return uri;
}
return uri.endsWith("/") ? uri : `${uri}/`;
}

/**
* Wraps `promise` in a timeout of the given `duration` in ms.
*
Expand Down Expand Up @@ -109,8 +124,7 @@ _flutter.loader = null;
}
const {
serviceWorkerVersion,
serviceWorkerUrl = "flutter_service_worker.js?v=" +
serviceWorkerVersion,
serviceWorkerUrl = `${baseUri}flutter_service_worker.js?v=${serviceWorkerVersion}`,
timeoutMillis = 4000,
} = settings;

Expand Down Expand Up @@ -228,7 +242,7 @@ _flutter.loader = null;
* Returns undefined when an `onEntrypointLoaded` callback is supplied in `options`.
*/
async loadEntrypoint(options) {
const { entrypointUrl = "main.dart.js", onEntrypointLoaded } =
const { entrypointUrl = `${baseUri}main.dart.js`, onEntrypointLoaded } =
options || {};

return this._loadEntrypoint(entrypointUrl, onEntrypointLoaded);
Expand Down
9 changes: 4 additions & 5 deletions docs/flutter_service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {
"version.json": "4e436155d544729791eb7183ce28ded9",
"index.html": "6db9cd5af0992f2f8be1bd059a58aa1d",
"/": "6db9cd5af0992f2f8be1bd059a58aa1d",
"main.dart.js": "f183195ef1c8fa6e3b9eff13f774df3a",
"flutter.js": "1cfe996e845b3a8a33f57607e8b09ee4",
"index.html": "21a409f522668321d98c95f91b4d03eb",
"/": "21a409f522668321d98c95f91b4d03eb",
"main.dart.js": "7ae18f68c1b1acfd27caf9afb1c14491",
"flutter.js": "a85fcf6324d3c4d3ae3be1ae4931e9c5",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-512.png": "96e752610906ba2a93c65f8abe1645f1",
Expand All @@ -16,7 +16,6 @@ const RESOURCES = {
"assets/NOTICES": "c4ef485bb3ff8d863d308d36f629aaec",
"assets/FontManifest.json": "7b2a36307916a9721811788013e65289",
"assets/packages/storybook_flutter/assets/README.md": "fbaed1ae60d80596d99545ef45d72803",
"assets/shaders/ink_sparkle.frag": "14a7aa637028141a03166ccc58a1eea1",
"assets/fonts/MaterialIcons-Regular.otf": "e7069dfd19b331be16bed984668fe080",
"canvaskit/canvaskit.js": "97937cb4c2c2073c968525a3e08c86a3",
"canvaskit/profiling/canvaskit.js": "c21852696bc1cc82e8894d851c01921a",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('flutter-first-frame', function () {
navigator.serviceWorker.register('flutter_service_worker.js?v=4022156075');
navigator.serviceWorker.register('flutter_service_worker.js?v=3176913590');
});
}
</script>
Expand Down
Loading

0 comments on commit ce34908

Please sign in to comment.