From 0c1eadc654a27ee5874d83b8bcabbbae47d8302d Mon Sep 17 00:00:00 2001
From: Yannick Guern
Date: Fri, 9 Sep 2022 10:09:43 +0200
Subject: [PATCH 01/21] fix: Lower console message level
---
src/bc-datalog-editor.js | 4 ++--
src/wasm.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bc-datalog-editor.js b/src/bc-datalog-editor.js
index 2410b7f..0e3a509 100644
--- a/src/bc-datalog-editor.js
+++ b/src/bc-datalog-editor.js
@@ -205,8 +205,8 @@ export class BcDatalogEditor extends LitElement {
}
updated(changedProperties) {
- console.log("updated");
- console.log(changedProperties);
+ console.debug("updated");
+ console.debug(changedProperties);
super.updated(changedProperties);
if (changedProperties.has("datalog")) {
if (this.datalog != this._cm.state.doc.toString()) {
diff --git a/src/wasm.js b/src/wasm.js
index 8cfe6ab..9f395d5 100644
--- a/src/wasm.js
+++ b/src/wasm.js
@@ -3,10 +3,10 @@ import init from "@biscuit-auth/biscuit-wasm-support";
let loadPromise = null;
export async function initialize() {
if (loadPromise == null) {
- console.log("will create wasm promise");
+ console.debug("will create wasm promise");
loadPromise = init();
}
- console.log("returning wasm promise");
+ console.debug("returning wasm promise");
return loadPromise;
}
From 0dc823a40a04524ce65e3e041cd86bf0a5de8875 Mon Sep 17 00:00:00 2001
From: Yannick Guern
Date: Fri, 9 Sep 2022 10:35:19 +0200
Subject: [PATCH 02/21] feat: Add webcomponent taking data from hash value
---
.gitignore | 1 +
demo/index.html | 1 +
demo/playground-b64.html | 26 ++++
src/bc-datalog-playground-base64.ts | 211 ++++++++++++++++++++++++++++
src/index.ts | 1 +
5 files changed, 240 insertions(+)
create mode 100644 demo/playground-b64.html
create mode 100644 src/bc-datalog-playground-base64.ts
diff --git a/.gitignore b/.gitignore
index f06235c..82ee25a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
node_modules
dist
+.idea
diff --git a/demo/index.html b/demo/index.html
index 7936388..9d9ef74 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -16,6 +16,7 @@ demo biscuit
Token printer
Authorizer editor
Datalog playground
+ Datalog playground from base64
Token generator
+demo biscuit
+
+
+
+
+
+
+
+
+
diff --git a/demo/playground-b64.html b/demo/playground-b64.html
new file mode 100644
index 0000000..a9f5c79
--- /dev/null
+++ b/demo/playground-b64.html
@@ -0,0 +1,26 @@
+
+
+