bit of styling fixes

Orual 6eafc129 3c83bb11

+48 -877
+10
crates/weaver-app/.env-dev
··· 1 + WEAVER_APP_ENV="dev" 2 + WEAVER_APP_HOST="http://localhost" 3 + WEAVER_APP_DOMAIN="" 4 + WEAVER_PORT=8080 5 + WEAVER_APP_SCOPES="atproto transition:generic" 6 + WEAVER_CLIENT_NAME="Weaver" 7 + 8 + WEAVER_LOGO_URI="" 9 + WEAVER_TOS_URI="" 10 + WEAVER_PRIVACY_POLICY_URI=""
-10
crates/weaver-app/.env-prod
··· 1 - WEAVER_APP_ENV="prod" 2 - WEAVER_APP_HOST="https://alpha.weaver.sh" 3 - WEAVER_APP_DOMAIN="https://alpha.weaver.sh" 4 - WEAVER_PORT=8080 5 - WEAVER_APP_SCOPES="atproto transition:generic" 6 - WEAVER_CLIENT_NAME="Weaver" 7 - 8 - WEAVER_LOGO_URI="https://alpha.weaver.sh/favicon.ico" 9 - WEAVER_TOS_URI="" 10 - WEAVER_PRIVACY_POLICY_URI=""
+3 -2
crates/weaver-app/assets/styling/entry.css
··· 166 166 } 167 167 168 168 .entry-tag { 169 - padding: 0.25rem 0.5rem 0.25rem 0; 169 + padding: 0.25rem 0.5rem; 170 170 font-size: 0.85rem; 171 171 color: var(--color-subtle); 172 - border-bottom: 1px solid var(--color-border); 172 + background-color: var(--color-surface); 173 + border: 1px solid var(--color-border); 173 174 text-decoration: none; 174 175 transition: 175 176 color 0.2s ease,
+12 -646
crates/weaver-app/public/editor_worker.js
··· 17 17 ? { register: () => {}, unregister: () => {} } 18 18 : new FinalizationRegistry(state => state.dtor(state.a, state.b)); 19 19 20 - function debugString(val) { 21 - // primitive types 22 - const type = typeof val; 23 - if (type == 'number' || type == 'boolean' || val == null) { 24 - return `${val}`; 25 - } 26 - if (type == 'string') { 27 - return `"${val}"`; 28 - } 29 - if (type == 'symbol') { 30 - const description = val.description; 31 - if (description == null) { 32 - return 'Symbol'; 33 - } else { 34 - return `Symbol(${description})`; 35 - } 36 - } 37 - if (type == 'function') { 38 - const name = val.name; 39 - if (typeof name == 'string' && name.length > 0) { 40 - return `Function(${name})`; 41 - } else { 42 - return 'Function'; 43 - } 44 - } 45 - // objects 46 - if (Array.isArray(val)) { 47 - const length = val.length; 48 - let debug = '['; 49 - if (length > 0) { 50 - debug += debugString(val[0]); 51 - } 52 - for(let i = 1; i < length; i++) { 53 - debug += ', ' + debugString(val[i]); 54 - } 55 - debug += ']'; 56 - return debug; 57 - } 58 - // Test for built-in 59 - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); 60 - let className; 61 - if (builtInMatches && builtInMatches.length > 1) { 62 - className = builtInMatches[1]; 63 - } else { 64 - // Failed to match the standard '[object ClassName]' 65 - return toString.call(val); 66 - } 67 - if (className == 'Object') { 68 - // we're a user defined class or Object 69 - // JSON.stringify avoids problems with cycles, and is generally much 70 - // easier than looping through ownProperties of `val`. 71 - try { 72 - return 'Object(' + JSON.stringify(val) + ')'; 73 - } catch (_) { 74 - return 'Object'; 75 - } 76 - } 77 - // errors 78 - if (val instanceof Error) { 79 - return `${val.name}: ${val.message}\n${val.stack}`; 80 - } 81 - // TODO we could test for more things here, like `Set`s and `Map`s. 82 - return className; 83 - } 84 - 85 20 function getArrayU8FromWasm0(ptr, len) { 86 21 ptr = ptr >>> 0; 87 22 return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); ··· 232 167 233 168 let WASM_VECTOR_LEN = 0; 234 169 235 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) { 236 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2); 237 - } 238 - 239 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______3_(arg0, arg1) { 240 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______3_(arg0, arg1); 241 - } 242 - 243 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1) { 244 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1); 170 + function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) { 171 + wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2); 245 172 } 246 173 247 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1) { 248 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1); 174 + function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) { 175 + wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2); 249 176 } 250 177 251 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) { 252 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2); 253 - } 254 - 255 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent______1_(arg0, arg1, arg2) { 256 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent______1_(arg0, arg1, arg2); 257 - } 258 - 259 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______2_(arg0, arg1) { 260 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______2_(arg0, arg1); 261 - } 262 - 263 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent_____(arg0, arg1, arg2) { 264 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent_____(arg0, arg1, arg2); 265 - } 266 - 267 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3) { 268 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3); 269 - } 270 - 271 - const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"]; 272 - 273 - const __wbindgen_enum_ReadableStreamType = ["bytes"]; 274 - 275 - const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"]; 276 - 277 - const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"]; 278 - 279 - const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"]; 280 - 281 - const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined') 282 - ? { register: () => {}, unregister: () => {} } 283 - : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1)); 284 - 285 - const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined') 286 - ? { register: () => {}, unregister: () => {} } 287 - : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1)); 288 - 289 - const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined') 290 - ? { register: () => {}, unregister: () => {} } 291 - : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1)); 292 - 293 178 const JSOwnerFinalization = (typeof FinalizationRegistry === 'undefined') 294 179 ? { register: () => {}, unregister: () => {} } 295 180 : new FinalizationRegistry(ptr => wasm.__wbg_jsowner_free(ptr >>> 0, 1)); 296 181 297 - class IntoUnderlyingByteSource { 298 - __destroy_into_raw() { 299 - const ptr = this.__wbg_ptr; 300 - this.__wbg_ptr = 0; 301 - IntoUnderlyingByteSourceFinalization.unregister(this); 302 - return ptr; 303 - } 304 - free() { 305 - const ptr = this.__destroy_into_raw(); 306 - wasm.__wbg_intounderlyingbytesource_free(ptr, 0); 307 - } 308 - /** 309 - * @returns {number} 310 - */ 311 - get autoAllocateChunkSize() { 312 - const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr); 313 - return ret >>> 0; 314 - } 315 - /** 316 - * @param {ReadableByteStreamController} controller 317 - * @returns {Promise<any>} 318 - */ 319 - pull(controller) { 320 - const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); 321 - return ret; 322 - } 323 - /** 324 - * @param {ReadableByteStreamController} controller 325 - */ 326 - start(controller) { 327 - wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); 328 - } 329 - /** 330 - * @returns {ReadableStreamType} 331 - */ 332 - get type() { 333 - const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); 334 - return __wbindgen_enum_ReadableStreamType[ret]; 335 - } 336 - cancel() { 337 - const ptr = this.__destroy_into_raw(); 338 - wasm.intounderlyingbytesource_cancel(ptr); 339 - } 340 - } 341 - if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free; 342 - __exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource; 343 - 344 - class IntoUnderlyingSink { 345 - __destroy_into_raw() { 346 - const ptr = this.__wbg_ptr; 347 - this.__wbg_ptr = 0; 348 - IntoUnderlyingSinkFinalization.unregister(this); 349 - return ptr; 350 - } 351 - free() { 352 - const ptr = this.__destroy_into_raw(); 353 - wasm.__wbg_intounderlyingsink_free(ptr, 0); 354 - } 355 - /** 356 - * @param {any} reason 357 - * @returns {Promise<any>} 358 - */ 359 - abort(reason) { 360 - const ptr = this.__destroy_into_raw(); 361 - const ret = wasm.intounderlyingsink_abort(ptr, reason); 362 - return ret; 363 - } 364 - /** 365 - * @returns {Promise<any>} 366 - */ 367 - close() { 368 - const ptr = this.__destroy_into_raw(); 369 - const ret = wasm.intounderlyingsink_close(ptr); 370 - return ret; 371 - } 372 - /** 373 - * @param {any} chunk 374 - * @returns {Promise<any>} 375 - */ 376 - write(chunk) { 377 - const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); 378 - return ret; 379 - } 380 - } 381 - if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free; 382 - __exports.IntoUnderlyingSink = IntoUnderlyingSink; 383 - 384 - class IntoUnderlyingSource { 385 - __destroy_into_raw() { 386 - const ptr = this.__wbg_ptr; 387 - this.__wbg_ptr = 0; 388 - IntoUnderlyingSourceFinalization.unregister(this); 389 - return ptr; 390 - } 391 - free() { 392 - const ptr = this.__destroy_into_raw(); 393 - wasm.__wbg_intounderlyingsource_free(ptr, 0); 394 - } 395 - /** 396 - * @param {ReadableStreamDefaultController} controller 397 - * @returns {Promise<any>} 398 - */ 399 - pull(controller) { 400 - const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller); 401 - return ret; 402 - } 403 - cancel() { 404 - const ptr = this.__destroy_into_raw(); 405 - wasm.intounderlyingsource_cancel(ptr); 406 - } 407 - } 408 - if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free; 409 - __exports.IntoUnderlyingSource = IntoUnderlyingSource; 410 - 411 182 class JSOwner { 412 183 __destroy_into_raw() { 413 184 const ptr = this.__wbg_ptr; ··· 458 229 function __wbg_get_imports() { 459 230 const imports = {}; 460 231 imports.wbg = {}; 461 - imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) { 462 - const v = arg0; 463 - const ret = typeof(v) === 'boolean' ? v : undefined; 464 - return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; 465 - }; 466 - imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) { 467 - const ret = debugString(arg1); 468 - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 469 - const len1 = WASM_VECTOR_LEN; 470 - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 471 - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 472 - }; 473 232 imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) { 474 233 const ret = typeof(arg0) === 'function'; 475 234 return ret; ··· 487 246 const ret = arg0 === undefined; 488 247 return ret; 489 248 }; 490 - imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) { 491 - const obj = arg1; 492 - const ret = typeof(obj) === 'string' ? obj : undefined; 493 - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 494 - var len1 = WASM_VECTOR_LEN; 495 - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 496 - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 497 - }; 498 249 imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) { 499 250 throw new Error(getStringFromWasm0(arg0, arg1)); 500 251 }; 501 252 imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) { 502 253 arg0._wbg_cb_unref(); 503 254 }; 504 - imports.wbg.__wbg_abort_07646c894ebbf2bd = function(arg0) { 505 - arg0.abort(); 506 - }; 507 - imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) { 508 - arg0.abort(arg1); 509 - }; 510 - imports.wbg.__wbg_addEventListener_e792423147a80626 = function() { return handleError(function (arg0, arg1, arg2, arg3) { 511 - arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3); 512 - }, arguments) }; 513 - imports.wbg.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { 514 - arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); 515 - }, arguments) }; 516 - imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) { 517 - const ret = arg0.arrayBuffer(); 518 - return ret; 519 - }, arguments) }; 520 - imports.wbg.__wbg_body_947b901c33f7fe32 = function(arg0) { 521 - const ret = arg0.body; 522 - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 523 - }; 524 - imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) { 525 - const ret = arg0.buffer; 526 - return ret; 527 - }; 528 - imports.wbg.__wbg_byobRequest_f8e3517f5f8ad284 = function(arg0) { 529 - const ret = arg0.byobRequest; 530 - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 531 - }; 532 - imports.wbg.__wbg_byteLength_faa9938885bdeee6 = function(arg0) { 533 - const ret = arg0.byteLength; 534 - return ret; 535 - }; 536 - imports.wbg.__wbg_byteOffset_3868b6a19ba01dea = function(arg0) { 537 - const ret = arg0.byteOffset; 538 - return ret; 539 - }; 540 255 imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) { 541 256 const ret = arg0.call(arg1, arg2); 542 257 return ret; ··· 545 260 const ret = arg0.call(arg1); 546 261 return ret; 547 262 }, arguments) }; 548 - imports.wbg.__wbg_cancel_a65cf45dca50ba4c = function(arg0) { 549 - const ret = arg0.cancel(); 550 - return ret; 551 - }; 552 - imports.wbg.__wbg_catch_b9db41d97d42bd02 = function(arg0, arg1) { 553 - const ret = arg0.catch(arg1); 554 - return ret; 555 - }; 556 - imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) { 557 - const ret = clearTimeout(arg0); 558 - return ret; 559 - }; 560 - imports.wbg.__wbg_clearTimeout_f7a6c75a3d228439 = function() { return handleError(function (arg0, arg1) { 561 - arg0.clearTimeout(arg1); 562 - }, arguments) }; 563 - imports.wbg.__wbg_close_0af5661bf3d335f2 = function() { return handleError(function (arg0) { 564 - arg0.close(); 565 - }, arguments) }; 566 263 imports.wbg.__wbg_close_0b472ca2d13f54f7 = function(arg0) { 567 264 arg0.close(); 568 265 }; 569 - imports.wbg.__wbg_close_1db3952de1b5b1cf = function() { return handleError(function (arg0) { 570 - arg0.close(); 571 - }, arguments) }; 572 - imports.wbg.__wbg_close_3ec111e7b23d94d8 = function() { return handleError(function (arg0) { 573 - arg0.close(); 574 - }, arguments) }; 575 - imports.wbg.__wbg_code_85a811fe6ca962be = function(arg0) { 576 - const ret = arg0.code; 577 - return ret; 578 - }; 579 - imports.wbg.__wbg_code_c2a85f2863ec11b3 = function(arg0) { 580 - const ret = arg0.code; 581 - return ret; 582 - }; 583 266 imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) { 584 267 const ret = arg0.crypto; 585 268 return ret; ··· 588 271 const ret = arg0.data; 589 272 return ret; 590 273 }; 591 - imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) { 592 - const ret = arg0.done; 593 - return ret; 594 - }; 595 - imports.wbg.__wbg_enqueue_a7e6b1ee87963aad = function() { return handleError(function (arg0, arg1) { 596 - arg0.enqueue(arg1); 597 - }, arguments) }; 598 274 imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) { 599 275 let deferred0_0; 600 276 let deferred0_1; ··· 606 282 wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); 607 283 } 608 284 }; 609 - imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) { 610 - const ret = fetch(arg0); 611 - return ret; 612 - }; 613 - imports.wbg.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) { 614 - const ret = arg0.fetch(arg1); 615 - return ret; 616 - }; 617 - imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) { 618 - globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); 619 - }, arguments) }; 620 285 imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) { 621 286 arg0.getRandomValues(arg1); 622 287 }, arguments) }; 623 - imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) { 624 - const ret = arg0.getReader(); 625 - return ret; 626 - }, arguments) }; 627 - imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) { 628 - const ret = Reflect.get(arg0, arg1); 629 - return ret; 630 - }, arguments) }; 631 - imports.wbg.__wbg_get_done_f98a6e62c4e18fb9 = function(arg0) { 632 - const ret = arg0.done; 633 - return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; 634 - }; 635 - imports.wbg.__wbg_get_value_63e39884ef11812e = function(arg0) { 636 - const ret = arg0.value; 637 - return ret; 638 - }; 639 - imports.wbg.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) { 640 - const ret = Reflect.has(arg0, arg1); 641 - return ret; 642 - }, arguments) }; 643 - imports.wbg.__wbg_headers_654c30e1bcccc552 = function(arg0) { 644 - const ret = arg0.headers; 645 - return ret; 646 - }; 647 - imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) { 648 - let result; 649 - try { 650 - result = arg0 instanceof ArrayBuffer; 651 - } catch (_) { 652 - result = false; 653 - } 654 - const ret = result; 655 - return ret; 656 - }; 657 - imports.wbg.__wbg_instanceof_Blob_e9c51ce33a4b6181 = function(arg0) { 658 - let result; 659 - try { 660 - result = arg0 instanceof Blob; 661 - } catch (_) { 662 - result = false; 663 - } 664 - const ret = result; 665 - return ret; 666 - }; 667 - imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) { 668 - let result; 669 - try { 670 - result = arg0 instanceof Response; 671 - } catch (_) { 672 - result = false; 673 - } 674 - const ret = result; 675 - return ret; 676 - }; 677 288 imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) { 678 289 let result; 679 290 try { ··· 682 293 result = false; 683 294 } 684 295 const ret = result; 685 - return ret; 686 - }; 687 - imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() { 688 - const ret = Symbol.iterator; 689 296 return ret; 690 297 }; 691 298 imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) { ··· 733 340 wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); 734 341 } 735 342 }, arguments) }; 736 - imports.wbg.__wbg_message_a4e9a39ee8f92b17 = function(arg0, arg1) { 737 - const ret = arg1.message; 738 - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 739 - const len1 = WASM_VECTOR_LEN; 740 - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 741 - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 742 - }; 743 343 imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) { 744 344 const ret = arg0.msCrypto; 745 345 return ret; 746 346 }; 747 - imports.wbg.__wbg_new_1ba21ce319a06297 = function() { 748 - const ret = new Object(); 749 - return ret; 750 - }; 751 - imports.wbg.__wbg_new_25f239778d6112b9 = function() { 752 - const ret = new Array(); 753 - return ret; 754 - }; 755 - imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () { 756 - const ret = new Headers(); 757 - return ret; 758 - }, arguments) }; 759 - imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) { 760 - const ret = new Uint8Array(arg0); 761 - return ret; 762 - }; 763 - imports.wbg.__wbg_new_7c30d1f874652e62 = function() { return handleError(function (arg0, arg1) { 764 - const ret = new WebSocket(getStringFromWasm0(arg0, arg1)); 765 - return ret; 766 - }, arguments) }; 767 - imports.wbg.__wbg_new_881a222c65f168fc = function() { return handleError(function () { 768 - const ret = new AbortController(); 769 - return ret; 770 - }, arguments) }; 771 347 imports.wbg.__wbg_new_8a6f238a6ece86ea = function() { 772 348 const ret = new Error(); 773 349 return ret; 774 350 }; 775 - imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) { 776 - const ret = new Error(getStringFromWasm0(arg0, arg1)); 777 - return ret; 778 - }; 779 - imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) { 780 - try { 781 - var state0 = {a: arg0, b: arg1}; 782 - var cb0 = (arg0, arg1) => { 783 - const a = state0.a; 784 - state0.a = 0; 785 - try { 786 - return wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(a, state0.b, arg0, arg1); 787 - } finally { 788 - state0.a = a; 789 - } 790 - }; 791 - const ret = new Promise(cb0); 792 - return ret; 793 - } finally { 794 - state0.a = state0.b = 0; 795 - } 796 - }; 797 351 imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) { 798 352 const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); 799 353 return ret; ··· 802 356 const ret = new Function(getStringFromWasm0(arg0, arg1)); 803 357 return ret; 804 358 }; 805 - imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) { 806 - const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); 807 - return ret; 808 - }; 809 359 imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) { 810 360 const ret = new Uint8Array(arg0 >>> 0); 811 361 return ret; 812 362 }; 813 - imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) { 814 - const ret = new Request(getStringFromWasm0(arg0, arg1), arg2); 815 - return ret; 816 - }, arguments) }; 817 - imports.wbg.__wbg_new_with_str_sequence_073466a4a5387941 = function() { return handleError(function (arg0, arg1, arg2) { 818 - const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2); 819 - return ret; 820 - }, arguments) }; 821 - imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) { 822 - const ret = arg0.next; 823 - return ret; 824 - }; 825 - imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) { 826 - const ret = arg0.next(); 827 - return ret; 828 - }, arguments) }; 829 363 imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) { 830 364 const ret = arg0.node; 831 365 return ret; 832 366 }; 833 - imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) { 834 - const ret = arg0.now(); 835 - return ret; 836 - }; 837 - imports.wbg.__wbg_now_69d776cd24f5215b = function() { 838 - const ret = Date.now(); 839 - return ret; 840 - }; 841 367 imports.wbg.__wbg_now_8a87c5466cc7d560 = function() { 842 368 const ret = Date.now(); 843 369 return ret; ··· 846 372 const ret = arg0.now(); 847 373 return ret; 848 374 }; 849 - imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) { 850 - const ret = arg0.performance; 851 - return ret; 852 - }; 853 375 imports.wbg.__wbg_performance_c77a440eff2efd9b = function(arg0) { 854 376 const ret = arg0.performance; 855 377 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); ··· 864 386 imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) { 865 387 Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); 866 388 }; 867 - imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) { 868 - const ret = arg0.push(arg1); 869 - return ret; 870 - }; 871 389 imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) { 872 390 const ret = arg0.queueMicrotask; 873 391 return ret; ··· 878 396 imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) { 879 397 arg0.randomFillSync(arg1); 880 398 }, arguments) }; 881 - imports.wbg.__wbg_read_39c4b35efcd03c25 = function(arg0) { 882 - const ret = arg0.read(); 883 - return ret; 884 - }; 885 - imports.wbg.__wbg_readyState_9d0976dcad561aa9 = function(arg0) { 886 - const ret = arg0.readyState; 887 - return ret; 888 - }; 889 - imports.wbg.__wbg_reason_d4eb9e40592438c2 = function(arg0, arg1) { 890 - const ret = arg1.reason; 891 - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 892 - const len1 = WASM_VECTOR_LEN; 893 - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 894 - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 895 - }; 896 - imports.wbg.__wbg_releaseLock_a5912f590b185180 = function(arg0) { 897 - arg0.releaseLock(); 898 - }; 899 - imports.wbg.__wbg_removeEventListener_54bf92f4a849bd7d = function() { return handleError(function (arg0, arg1, arg2, arg3) { 900 - arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3); 901 - }, arguments) }; 902 399 imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () { 903 400 const ret = module.require; 904 401 return ret; ··· 907 404 const ret = Promise.resolve(arg0); 908 405 return ret; 909 406 }; 910 - imports.wbg.__wbg_respond_9f7fc54636c4a3af = function() { return handleError(function (arg0, arg1) { 911 - arg0.respond(arg1 >>> 0); 912 - }, arguments) }; 913 - imports.wbg.__wbg_send_7cc36bb628044281 = function() { return handleError(function (arg0, arg1, arg2) { 914 - arg0.send(getStringFromWasm0(arg1, arg2)); 915 - }, arguments) }; 916 - imports.wbg.__wbg_send_ea59e150ab5ebe08 = function() { return handleError(function (arg0, arg1, arg2) { 917 - arg0.send(getArrayU8FromWasm0(arg1, arg2)); 918 - }, arguments) }; 919 - imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) { 920 - const ret = setTimeout(arg0, arg1); 921 - return ret; 922 - }; 923 - imports.wbg.__wbg_setTimeout_ceaa8eadc563d26e = function() { return handleError(function (arg0, arg1, arg2) { 924 - const ret = arg0.setTimeout(arg1, arg2); 925 - return ret; 926 - }, arguments) }; 927 - imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) { 928 - arg0.set(getArrayU8FromWasm0(arg1, arg2)); 929 - }; 930 - imports.wbg.__wbg_set_binaryType_73e8c75df97825f8 = function(arg0, arg1) { 931 - arg0.binaryType = __wbindgen_enum_BinaryType[arg1]; 932 - }; 933 - imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) { 934 - arg0.body = arg1; 935 - }; 936 - imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) { 937 - arg0.cache = __wbindgen_enum_RequestCache[arg1]; 938 - }; 939 - imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) { 940 - arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; 941 - }; 942 - imports.wbg.__wbg_set_handle_event_14baa3949ef6909d = function(arg0, arg1) { 943 - arg0.handleEvent = arg1; 944 - }; 945 - imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) { 946 - arg0.headers = arg1; 947 - }; 948 - imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) { 949 - arg0.method = getStringFromWasm0(arg1, arg2); 950 - }; 951 - imports.wbg.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) { 952 - arg0.mode = __wbindgen_enum_RequestMode[arg1]; 953 - }; 954 - imports.wbg.__wbg_set_onclose_032729b3d7ed7a9e = function(arg0, arg1) { 955 - arg0.onclose = arg1; 956 - }; 957 - imports.wbg.__wbg_set_onerror_7819daa6af176ddb = function(arg0, arg1) { 958 - arg0.onerror = arg1; 959 - }; 960 407 imports.wbg.__wbg_set_onmessage_5fe29d0fb54cb575 = function(arg0, arg1) { 961 408 arg0.onmessage = arg1; 962 - }; 963 - imports.wbg.__wbg_set_onmessage_71321d0bed69856c = function(arg0, arg1) { 964 - arg0.onmessage = arg1; 965 - }; 966 - imports.wbg.__wbg_set_onopen_6d4abedb27ba5656 = function(arg0, arg1) { 967 - arg0.onopen = arg1; 968 - }; 969 - imports.wbg.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) { 970 - arg0.signal = arg1; 971 - }; 972 - imports.wbg.__wbg_signal_3c14fbdc89694b39 = function(arg0) { 973 - const ret = arg0.signal; 974 - return ret; 975 409 }; 976 410 imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) { 977 411 const ret = arg1.stack; ··· 996 430 const ret = typeof window === 'undefined' ? null : window; 997 431 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 998 432 }; 999 - imports.wbg.__wbg_status_9bfc680efca4bdfd = function(arg0) { 1000 - const ret = arg0.status; 1001 - return ret; 1002 - }; 1003 - imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) { 1004 - const ret = JSON.stringify(arg0); 1005 - return ret; 1006 - }, arguments) }; 1007 433 imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) { 1008 434 const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0); 1009 435 return ret; 1010 436 }; 1011 - imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) { 1012 - const ret = arg0.then(arg1, arg2); 1013 - return ret; 1014 - }; 1015 437 imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) { 1016 438 const ret = arg0.then(arg1); 1017 439 return ret; 1018 440 }; 1019 - imports.wbg.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) { 1020 - const ret = arg1.url; 1021 - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 1022 - const len1 = WASM_VECTOR_LEN; 1023 - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 1024 - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 1025 - }; 1026 - imports.wbg.__wbg_url_df28eef824b04410 = function(arg0, arg1) { 1027 - const ret = arg1.url; 1028 - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 1029 - const len1 = WASM_VECTOR_LEN; 1030 - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 1031 - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 1032 - }; 1033 - imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) { 1034 - const ret = arg0.value; 1035 - return ret; 1036 - }; 1037 441 imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) { 1038 442 const ret = arg0.versions; 1039 443 return ret; 1040 444 }; 1041 - imports.wbg.__wbg_view_788aaf149deefd2f = function(arg0) { 1042 - const ret = arg0.view; 1043 - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 1044 - }; 1045 - imports.wbg.__wbg_wasClean_4154a2d59fdb4dd7 = function(arg0) { 1046 - const ret = arg0.wasClean; 1047 - return ret; 1048 - }; 1049 - imports.wbg.__wbindgen_cast_0040fcf5dbb58dd5 = function(arg0, arg1) { 1050 - // Cast intrinsic for `Closure(Closure { dtor_idx: 5300, function: Function { arguments: [Externref], shim_idx: 5301, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 1051 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____); 1052 - return ret; 1053 - }; 1054 - imports.wbg.__wbindgen_cast_12196eb5081a2539 = function(arg0, arg1) { 1055 - // Cast intrinsic for `Closure(Closure { dtor_idx: 3492, function: Function { arguments: [], shim_idx: 3493, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. 1056 - const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_); 1057 - return ret; 1058 - }; 1059 - imports.wbg.__wbindgen_cast_19a2ac9a2d117d63 = function(arg0, arg1) { 1060 - // Cast intrinsic for `Closure(Closure { dtor_idx: 3436, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3437, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 1061 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent_____); 1062 - return ret; 1063 - }; 1064 445 imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { 1065 446 // Cast intrinsic for `Ref(String) -> Externref`. 1066 447 const ret = getStringFromWasm0(arg0, arg1); 1067 448 return ret; 1068 449 }; 1069 - imports.wbg.__wbindgen_cast_349b5f2a8c1e5597 = function(arg0, arg1) { 1070 - // Cast intrinsic for `Closure(Closure { dtor_idx: 3990, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3991, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 1071 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent______1_); 1072 - return ret; 1073 - }; 1074 - imports.wbg.__wbindgen_cast_82f5386d361eee3f = function(arg0, arg1) { 1075 - // Cast intrinsic for `Closure(Closure { dtor_idx: 441, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 442, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. 1076 - const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____); 1077 - return ret; 1078 - }; 1079 - imports.wbg.__wbindgen_cast_89505235e1110442 = function(arg0, arg1) { 1080 - // Cast intrinsic for `Closure(Closure { dtor_idx: 3469, function: Function { arguments: [], shim_idx: 3470, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 1081 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______); 1082 - return ret; 1083 - }; 1084 - imports.wbg.__wbindgen_cast_9ce2f96e3ea0b3c4 = function(arg0, arg1) { 1085 - // Cast intrinsic for `Closure(Closure { dtor_idx: 5120, function: Function { arguments: [], shim_idx: 5121, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 1086 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________2_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______3_); 1087 - return ret; 1088 - }; 1089 - imports.wbg.__wbindgen_cast_b5e2cf29d57ca6af = function(arg0, arg1) { 1090 - // Cast intrinsic for `Closure(Closure { dtor_idx: 5007, function: Function { arguments: [], shim_idx: 5008, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 1091 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________1_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______2_); 450 + imports.wbg.__wbindgen_cast_3fda284bdcf7704e = function(arg0, arg1) { 451 + // Cast intrinsic for `Closure(Closure { dtor_idx: 941, function: Function { arguments: [Externref], shim_idx: 942, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 452 + const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____); 1092 453 return ret; 1093 454 }; 1094 455 imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) { 1095 456 // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`. 1096 457 const ret = getArrayU8FromWasm0(arg0, arg1); 458 + return ret; 459 + }; 460 + imports.wbg.__wbindgen_cast_e969152242ffebd9 = function(arg0, arg1) { 461 + // Cast intrinsic for `Closure(Closure { dtor_idx: 104, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 105, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. 462 + const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____); 1097 463 return ret; 1098 464 }; 1099 465 imports.wbg.__wbindgen_init_externref_table = function() {
+16 -213
crates/weaver-app/public/embed_worker.js
··· 232 232 233 233 let WASM_VECTOR_LEN = 0; 234 234 235 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) { 236 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2); 235 + function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) { 236 + wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2); 237 237 } 238 238 239 239 function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1) { 240 240 wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1); 241 - } 242 - 243 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) { 244 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2); 245 241 } 246 242 247 243 function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1) { 248 244 wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1); 249 245 } 250 246 251 - function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3) { 252 - wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3); 247 + function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) { 248 + wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2); 253 249 } 254 - 255 - const __wbindgen_enum_ReadableStreamType = ["bytes"]; 256 250 257 251 const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"]; 258 252 ··· 260 254 261 255 const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"]; 262 256 263 - const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined') 264 - ? { register: () => {}, unregister: () => {} } 265 - : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1)); 266 - 267 - const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined') 268 - ? { register: () => {}, unregister: () => {} } 269 - : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1)); 270 - 271 - const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined') 272 - ? { register: () => {}, unregister: () => {} } 273 - : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1)); 274 - 275 257 const JSOwnerFinalization = (typeof FinalizationRegistry === 'undefined') 276 258 ? { register: () => {}, unregister: () => {} } 277 259 : new FinalizationRegistry(ptr => wasm.__wbg_jsowner_free(ptr >>> 0, 1)); 278 260 279 - class IntoUnderlyingByteSource { 280 - __destroy_into_raw() { 281 - const ptr = this.__wbg_ptr; 282 - this.__wbg_ptr = 0; 283 - IntoUnderlyingByteSourceFinalization.unregister(this); 284 - return ptr; 285 - } 286 - free() { 287 - const ptr = this.__destroy_into_raw(); 288 - wasm.__wbg_intounderlyingbytesource_free(ptr, 0); 289 - } 290 - /** 291 - * @returns {number} 292 - */ 293 - get autoAllocateChunkSize() { 294 - const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr); 295 - return ret >>> 0; 296 - } 297 - /** 298 - * @param {ReadableByteStreamController} controller 299 - * @returns {Promise<any>} 300 - */ 301 - pull(controller) { 302 - const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); 303 - return ret; 304 - } 305 - /** 306 - * @param {ReadableByteStreamController} controller 307 - */ 308 - start(controller) { 309 - wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); 310 - } 311 - /** 312 - * @returns {ReadableStreamType} 313 - */ 314 - get type() { 315 - const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); 316 - return __wbindgen_enum_ReadableStreamType[ret]; 317 - } 318 - cancel() { 319 - const ptr = this.__destroy_into_raw(); 320 - wasm.intounderlyingbytesource_cancel(ptr); 321 - } 322 - } 323 - if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free; 324 - __exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource; 325 - 326 - class IntoUnderlyingSink { 327 - __destroy_into_raw() { 328 - const ptr = this.__wbg_ptr; 329 - this.__wbg_ptr = 0; 330 - IntoUnderlyingSinkFinalization.unregister(this); 331 - return ptr; 332 - } 333 - free() { 334 - const ptr = this.__destroy_into_raw(); 335 - wasm.__wbg_intounderlyingsink_free(ptr, 0); 336 - } 337 - /** 338 - * @param {any} reason 339 - * @returns {Promise<any>} 340 - */ 341 - abort(reason) { 342 - const ptr = this.__destroy_into_raw(); 343 - const ret = wasm.intounderlyingsink_abort(ptr, reason); 344 - return ret; 345 - } 346 - /** 347 - * @returns {Promise<any>} 348 - */ 349 - close() { 350 - const ptr = this.__destroy_into_raw(); 351 - const ret = wasm.intounderlyingsink_close(ptr); 352 - return ret; 353 - } 354 - /** 355 - * @param {any} chunk 356 - * @returns {Promise<any>} 357 - */ 358 - write(chunk) { 359 - const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); 360 - return ret; 361 - } 362 - } 363 - if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free; 364 - __exports.IntoUnderlyingSink = IntoUnderlyingSink; 365 - 366 - class IntoUnderlyingSource { 367 - __destroy_into_raw() { 368 - const ptr = this.__wbg_ptr; 369 - this.__wbg_ptr = 0; 370 - IntoUnderlyingSourceFinalization.unregister(this); 371 - return ptr; 372 - } 373 - free() { 374 - const ptr = this.__destroy_into_raw(); 375 - wasm.__wbg_intounderlyingsource_free(ptr, 0); 376 - } 377 - /** 378 - * @param {ReadableStreamDefaultController} controller 379 - * @returns {Promise<any>} 380 - */ 381 - pull(controller) { 382 - const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller); 383 - return ret; 384 - } 385 - cancel() { 386 - const ptr = this.__destroy_into_raw(); 387 - wasm.intounderlyingsource_cancel(ptr); 388 - } 389 - } 390 - if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free; 391 - __exports.IntoUnderlyingSource = IntoUnderlyingSource; 392 - 393 261 class JSOwner { 394 262 __destroy_into_raw() { 395 263 const ptr = this.__wbg_ptr; ··· 487 355 const ret = arg0.arrayBuffer(); 488 356 return ret; 489 357 }, arguments) }; 490 - imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) { 491 - const ret = arg0.buffer; 492 - return ret; 493 - }; 494 - imports.wbg.__wbg_byobRequest_f8e3517f5f8ad284 = function(arg0) { 495 - const ret = arg0.byobRequest; 496 - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 497 - }; 498 - imports.wbg.__wbg_byteLength_faa9938885bdeee6 = function(arg0) { 499 - const ret = arg0.byteLength; 500 - return ret; 501 - }; 502 - imports.wbg.__wbg_byteOffset_3868b6a19ba01dea = function(arg0) { 503 - const ret = arg0.byteOffset; 504 - return ret; 505 - }; 506 - imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) { 507 - const ret = arg0.call(arg1, arg2); 508 - return ret; 509 - }, arguments) }; 510 358 imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) { 511 359 const ret = arg0.call(arg1); 512 360 return ret; ··· 518 366 const ret = clearTimeout(arg0); 519 367 return ret; 520 368 }; 521 - imports.wbg.__wbg_close_0af5661bf3d335f2 = function() { return handleError(function (arg0) { 522 - arg0.close(); 523 - }, arguments) }; 524 369 imports.wbg.__wbg_close_0b472ca2d13f54f7 = function(arg0) { 525 370 arg0.close(); 526 371 }; 527 - imports.wbg.__wbg_close_3ec111e7b23d94d8 = function() { return handleError(function (arg0) { 528 - arg0.close(); 529 - }, arguments) }; 530 372 imports.wbg.__wbg_data_8bf4ae669a78a688 = function(arg0) { 531 373 const ret = arg0.data; 532 374 return ret; ··· 535 377 const ret = arg0.done; 536 378 return ret; 537 379 }; 538 - imports.wbg.__wbg_enqueue_a7e6b1ee87963aad = function() { return handleError(function (arg0, arg1) { 539 - arg0.enqueue(arg1); 540 - }, arguments) }; 541 380 imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) { 542 381 let deferred0_0; 543 382 let deferred0_1; ··· 625 464 const ret = new Error(); 626 465 return ret; 627 466 }; 628 - imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) { 629 - const ret = new Error(getStringFromWasm0(arg0, arg1)); 630 - return ret; 631 - }; 632 - imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) { 633 - try { 634 - var state0 = {a: arg0, b: arg1}; 635 - var cb0 = (arg0, arg1) => { 636 - const a = state0.a; 637 - state0.a = 0; 638 - try { 639 - return wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(a, state0.b, arg0, arg1); 640 - } finally { 641 - state0.a = a; 642 - } 643 - }; 644 - const ret = new Promise(cb0); 645 - return ret; 646 - } finally { 647 - state0.a = state0.b = 0; 648 - } 649 - }; 650 467 imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) { 651 468 const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); 652 469 return ret; 653 470 }; 654 471 imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) { 655 472 const ret = new Function(getStringFromWasm0(arg0, arg1)); 656 - return ret; 657 - }; 658 - imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) { 659 - const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); 660 473 return ret; 661 474 }; 662 475 imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) { ··· 704 517 const ret = Promise.resolve(arg0); 705 518 return ret; 706 519 }; 707 - imports.wbg.__wbg_respond_9f7fc54636c4a3af = function() { return handleError(function (arg0, arg1) { 708 - arg0.respond(arg1 >>> 0); 709 - }, arguments) }; 710 520 imports.wbg.__wbg_setTimeout_4eb823e8b72fbe79 = function() { return handleError(function (arg0, arg1, arg2) { 711 521 const ret = arg0.setTimeout(arg1, arg2); 712 522 return ret; ··· 714 524 imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) { 715 525 const ret = setTimeout(arg0, arg1); 716 526 return ret; 717 - }; 718 - imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) { 719 - arg0.set(getArrayU8FromWasm0(arg1, arg2)); 720 527 }; 721 528 imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) { 722 529 arg0.body = arg1; ··· 800 607 const ret = arg0.value; 801 608 return ret; 802 609 }; 803 - imports.wbg.__wbg_view_788aaf149deefd2f = function(arg0) { 804 - const ret = arg0.view; 805 - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 806 - }; 807 610 imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { 808 611 // Cast intrinsic for `Ref(String) -> Externref`. 809 612 const ret = getStringFromWasm0(arg0, arg1); 810 613 return ret; 811 614 }; 812 - imports.wbg.__wbindgen_cast_b44cc294b43af732 = function(arg0, arg1) { 813 - // Cast intrinsic for `Closure(Closure { dtor_idx: 1192, function: Function { arguments: [], shim_idx: 1193, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 814 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______); 615 + imports.wbg.__wbindgen_cast_82f5386d361eee3f = function(arg0, arg1) { 616 + // Cast intrinsic for `Closure(Closure { dtor_idx: 441, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 442, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. 617 + const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____); 815 618 return ret; 816 619 }; 817 - imports.wbg.__wbindgen_cast_c8f3d1634b3b2a31 = function(arg0, arg1) { 818 - // Cast intrinsic for `Closure(Closure { dtor_idx: 335, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 336, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. 819 - const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____); 620 + imports.wbg.__wbindgen_cast_bc7590ff5cbfa2f9 = function(arg0, arg1) { 621 + // Cast intrinsic for `Closure(Closure { dtor_idx: 2214, function: Function { arguments: [Externref], shim_idx: 2215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 622 + const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____); 820 623 return ret; 821 624 }; 822 - imports.wbg.__wbindgen_cast_e60e2a067b8a256d = function(arg0, arg1) { 823 - // Cast intrinsic for `Closure(Closure { dtor_idx: 1452, function: Function { arguments: [], shim_idx: 1453, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 824 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________1_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_); 625 + imports.wbg.__wbindgen_cast_c2fcf804dba34eff = function(arg0, arg1) { 626 + // Cast intrinsic for `Closure(Closure { dtor_idx: 1186, function: Function { arguments: [], shim_idx: 1187, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 627 + const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______); 825 628 return ret; 826 629 }; 827 - imports.wbg.__wbindgen_cast_e76354026ca30a8f = function(arg0, arg1) { 828 - // Cast intrinsic for `Closure(Closure { dtor_idx: 2274, function: Function { arguments: [Externref], shim_idx: 2275, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 829 - const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____); 630 + imports.wbg.__wbindgen_cast_fbdf1c7b4b56bb43 = function(arg0, arg1) { 631 + // Cast intrinsic for `Closure(Closure { dtor_idx: 1446, function: Function { arguments: [], shim_idx: 1447, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 632 + const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________1_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_); 830 633 return ret; 831 634 }; 832 635 imports.wbg.__wbindgen_init_externref_table = function() {
+3 -2
crates/weaver-app/src/components/entry.rs
··· 402 402 #[props(default = false)] is_pinned: bool, 403 403 #[props(default = true)] show_author: bool, 404 404 /// Profile identity for context-aware author visibility (hides single author on their own profile) 405 - #[props(default)] profile_ident: Option<AtIdentifier<'static>>, 405 + #[props(default)] 406 + profile_ident: Option<AtIdentifier<'static>>, 406 407 #[props(default)] on_pinned_changed: Option<EventHandler<bool>>, 407 408 ) -> Element { 408 409 use crate::Route; ··· 597 598 // TODO: Parse tags structure 598 599 span { class: "meta-label", "Tags:" } 599 600 for tag in tags.iter() { 600 - span { class: "meta-label", "{tag}" } 601 + span { class: "entry-tag", "{tag}" } 601 602 } 602 603 } 603 604 }
+4 -4
crates/weaver-app/src/env.rs
··· 1 1 // This file is automatically generated by build.rs 2 2 3 3 #[allow(unused)] 4 - pub const WEAVER_APP_ENV: &'static str = "dev"; 4 + pub const WEAVER_APP_ENV: &'static str = "prod"; 5 5 #[allow(unused)] 6 - pub const WEAVER_APP_HOST: &'static str = "http://localhost"; 6 + pub const WEAVER_APP_HOST: &'static str = "https://alpha.weaver.sh"; 7 7 #[allow(unused)] 8 - pub const WEAVER_APP_DOMAIN: &'static str = ""; 8 + pub const WEAVER_APP_DOMAIN: &'static str = "https://alpha.weaver.sh"; 9 9 #[allow(unused)] 10 10 pub const WEAVER_PORT: &'static str = "8080"; 11 11 #[allow(unused)] ··· 13 13 #[allow(unused)] 14 14 pub const WEAVER_CLIENT_NAME: &'static str = "Weaver"; 15 15 #[allow(unused)] 16 - pub const WEAVER_LOGO_URI: &'static str = ""; 16 + pub const WEAVER_LOGO_URI: &'static str = "https://alpha.weaver.sh/favicon.ico"; 17 17 #[allow(unused)] 18 18 pub const WEAVER_TOS_URI: &'static str = ""; 19 19 #[allow(unused)]