Skip to content

Commit

Permalink
Published version 2.2.49
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Aug 16, 2023
1 parent fced575 commit b050108
Show file tree
Hide file tree
Showing 220 changed files with 411 additions and 762 deletions.
48 changes: 24 additions & 24 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/html/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Wed, 26 Jul 2023 11:52:00 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Wed, 16 Aug 2023 14:03:13 GMT -->
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -62,7 +62,7 @@
</style>
</head>
<body>
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Wed, 26 Jul 2023 11:52:00 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Wed, 16 Aug 2023 14:03:13 GMT

<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>
Expand Down
144 changes: 1 addition & 143 deletions apps/react/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,77 +281,6 @@ export function App() {





if(typeof LitJsSdk_blsSdk === 'undefined') {
console.error("LitJsSdk_blsSdk:", LitJsSdk_blsSdk);
}else{
console.warn("LitJsSdk_blsSdk:", LitJsSdk_blsSdk);
window.LitJsSdk_blsSdk = LitJsSdk_blsSdk;
}
window.addEventListener('load', function() {

var root = document.getElementById('root');
var result = document.getElementById('result');
var entries = Object.entries(LitJsSdk_blsSdk);
var lis = entries.map(([key, value]) => `
<li>
<div id="LitJsSdk_blsSdk_${key}" class="key" onClick="(async (e) => {
var fn = LitJsSdk_blsSdk['${key}'];
var fnType = typeof fn;
console.warn('[${key}] is type of [' + fnType + ']');
if ( fnType === 'string' ) return;
if( fnType === 'function' ){
try{
console.log('params:', globalThis.params);
var res;
try{
res = new fn(globalThis.params);
}catch{
res = await fn(globalThis.params);
}
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
}catch(e){
console.error('Please set the [params] variable in the console then click again');
console.log(e);
}
return;
}
if( fnType === 'object' ){
var res = await fn;
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
return;
}
})();">${key}</div>
<pre class="code">
<code>${(typeof value === 'function' ? value : JSON.stringify(value, null, 2))}</code>
</pre>
</li>`);
lis = lis.join(' ');
var template = `
<div class="cat">
<h1>LitJsSdk_blsSdk has ${entries.length} functions</h1>
<ul>
${ lis }
</ul>
</div>
`;
root.insertAdjacentHTML('beforeend', template);
});





Expand Down Expand Up @@ -1721,77 +1650,6 @@ export function App() {





if(typeof LitJsSdk_types === 'undefined') {
console.error("LitJsSdk_types:", LitJsSdk_types);
}else{
console.warn("LitJsSdk_types:", LitJsSdk_types);
window.LitJsSdk_types = LitJsSdk_types;
}
window.addEventListener('load', function() {

var root = document.getElementById('root');
var result = document.getElementById('result');
var entries = Object.entries(LitJsSdk_types);
var lis = entries.map(([key, value]) => `
<li>
<div id="LitJsSdk_types_${key}" class="key" onClick="(async (e) => {
var fn = LitJsSdk_types['${key}'];
var fnType = typeof fn;
console.warn('[${key}] is type of [' + fnType + ']');
if ( fnType === 'string' ) return;
if( fnType === 'function' ){
try{
console.log('params:', globalThis.params);
var res;
try{
res = new fn(globalThis.params);
}catch{
res = await fn(globalThis.params);
}
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
}catch(e){
console.error('Please set the [params] variable in the console then click again');
console.log(e);
}
return;
}
if( fnType === 'object' ){
var res = await fn;
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
return;
}
})();">${key}</div>
<pre class="code">
<code>${(typeof value === 'function' ? value : JSON.stringify(value, null, 2))}</code>
</pre>
</li>`);
lis = lis.join(' ');
var template = `
<div class="cat">
<h1>LitJsSdk_types has ${entries.length} functions</h1>
<ul>
${ lis }
</ul>
</div>
`;
root.insertAdjacentHTML('beforeend', template);
});





Expand Down Expand Up @@ -1944,7 +1802,7 @@ pre {
`,
}}
/>
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Wed, 26 Jul 2023 11:52:01 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Wed, 16 Aug 2023 14:03:13 GMT
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
2 changes: 1 addition & 1 deletion doc/assets/search.js

Large diffs are not rendered by default.

Loading

1 comment on commit b050108

@vercel
Copy link

@vercel vercel bot commented on b050108 Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.