Skip to content

Commit 971e9c1

Browse files
committed
working calculator
1 parent 2a15c78 commit 971e9c1

File tree

6 files changed

+43
-42
lines changed

6 files changed

+43
-42
lines changed

.icarukTime.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"idleHeartbeats": 15229,
3-
"navigatingHeartbeats": 3444,
4-
"totalCodingHeartbeats": 20757,
2+
"idleHeartbeats": 15245,
3+
"navigatingHeartbeats": 3487,
4+
"totalCodingHeartbeats": 20838,
55
"languageHeartbeats": {
66
"jsonc": 47,
77
"toml": 3790,
8-
"markdown": 12203,
9-
"html": 3210,
8+
"markdown": 12277,
9+
"html": 3217,
1010
"scminput": 1111,
1111
"yaml": 17,
1212
"plaintext": 169,
@@ -55,7 +55,8 @@
5555
"layouts/shortcodes/qr.html": 92,
5656
"content/posts/constructor_in_rust/index.md": 841,
5757
"extension-output-mkxml.vscode-filesize-#1-filesize": 210,
58-
"content/test/calculator/index.md": 777,
59-
"Untitled-1": 121
58+
"content/test/calculator/index.md": 851,
59+
"Untitled-1": 121,
60+
"content/test/calculator/index.html": 7
6061
}
6162
}

content/test/calculator/iced_test-b5aab44a424fdba5.js renamed to content/test/calculator/dist/iced_test-d2cc32930241cf04.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,52 +2329,52 @@ function __wbg_get_imports() {
23292329
return ret;
23302330
},
23312331
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
2332-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2028, function: Function { arguments: [Externref], shim_idx: 2029, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2332+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2024, function: Function { arguments: [Externref], shim_idx: 2025, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23332333
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__wasm_bindgen_6103bb449ceb317f___JsValue____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___wasm_bindgen_6103bb449ceb317f___JsValue_____);
23342334
return ret;
23352335
},
23362336
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
2337-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 597, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2337+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 593, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23382338
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array__web_sys_bbced23fc1678b8e___features__gen_ResizeObserver__ResizeObserver_____);
23392339
return ret;
23402340
},
23412341
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
2342-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 591, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2342+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 587, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23432343
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array_____);
23442344
return ret;
23452345
},
23462346
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
2347-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("Event")], shim_idx: 591, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2347+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("Event")], shim_idx: 587, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23482348
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array_____);
23492349
return ret;
23502350
},
23512351
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
2352-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 591, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2352+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 587, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23532353
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array_____);
23542354
return ret;
23552355
},
23562356
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
2357-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 591, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2357+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 587, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23582358
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array_____);
23592359
return ret;
23602360
},
23612361
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
2362-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 591, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2362+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 587, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23632363
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array_____);
23642364
return ret;
23652365
},
23662366
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
2367-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 591, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2367+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 587, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23682368
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array_____);
23692369
return ret;
23702370
},
23712371
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
2372-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 591, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2372+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 587, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23732373
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke___js_sys_ce078e9d950eeb60___Array_____);
23742374
return ret;
23752375
},
23762376
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
2377-
// Cast intrinsic for `Closure(Closure { dtor_idx: 588, function: Function { arguments: [], shim_idx: 589, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2377+
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [], shim_idx: 585, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23782378
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6103bb449ceb317f___closure__destroy___dyn_core_af451bd84d0ec2a4___ops__function__FnMut__core_af451bd84d0ec2a4___option__Option_web_sys_bbced23fc1678b8e___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6103bb449ceb317f___convert__closures_____invoke______);
23792379
return ret;
23802380
},

content/test/calculator/iced_test-b5aab44a424fdba5_bg.wasm renamed to content/test/calculator/dist/iced_test-d2cc32930241cf04_bg.wasm

5.76 MB
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" content="text/html; charset=utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>Iced_test - Iced</title>
7+
<base href="/" />
8+
<link rel="modulepreload" href="/iced_test-d2cc32930241cf04.js" crossorigin="anonymous" integrity="sha384-5Dm28XsjHkj0TGCi7hgpDKF16l9Bxqe14/spgyJ7eIbYN7a9mqB2kU4wSMOyrJoV"><link rel="preload" href="/iced_test-d2cc32930241cf04_bg.wasm" crossorigin="anonymous" integrity="sha384-Ufxl1QhgfORBwmutIHQxbtTVyqW2pRg3Hxca0Vnt3WNmv5ccrUMkgkTPZ448voIS" as="fetch" type="application/wasm"></head>
9+
<body>
10+
11+
<script type="module">
12+
import init, * as bindings from '/iced_test-d2cc32930241cf04.js';
13+
const wasm = await init({ module_or_path: '/iced_test-d2cc32930241cf04_bg.wasm' });
14+
15+
16+
window.wasmBindings = bindings;
17+
18+
19+
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
20+
21+
</script>
22+
</body>
23+
</html>

content/test/calculator/index.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

content/test/calculator/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ image = "thumbnail.png"
1212
<div id="calculator-frame" style="width: 400px; height: 500px; border: 2px solid #ddd; border-radius: 8px; margin: 20px auto; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); background: white;"></div>
1313

1414
<script type="module">
15-
import init, * as bindings from './iced_test-7afbea151ae2bbad.js';
15+
import init, * as bindings from './dist/iced_test-d2cc32930241cf04.js';
1616

1717
// Initialize calculator immediately
1818
try {
19-
const wasm = await init({ module_or_path: './iced_test-7afbea151ae2bbad_bg.wasm' });
19+
const wasm = await init({ module_or_path: './dist/iced_test-d2cc32930241cf04_bg.wasm' });
2020
window.wasmBindings = bindings;
2121
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
2222

0 commit comments

Comments
 (0)