Remove early sample "greet" code
This commit is contained in:
parent
3079223db3
commit
ffb83b06c1
|
|
@ -76,18 +76,7 @@ img {
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
import MainWindow from "./components/window/MainWindow.vue";
|
import MainWindow from "./components/window/MainWindow.vue";
|
||||||
|
|
||||||
const wasm = import("../wasm/pkg");
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: { MainWindow },
|
components: { MainWindow },
|
||||||
created() {
|
|
||||||
this.greet();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
async greet() {
|
|
||||||
const { greet } = await wasm;
|
|
||||||
greet("Graphite");
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,3 @@ extern "C" {
|
||||||
#[wasm_bindgen(catch)]
|
#[wasm_bindgen(catch)]
|
||||||
fn handleResponse(responseType: String, responseData: JsValue) -> Result<(), JsValue>;
|
fn handleResponse(responseType: String, responseData: JsValue) -> Result<(), JsValue>;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[wasm_bindgen]
|
|
||||||
pub fn greet(name: &str) -> String {
|
|
||||||
format!("Hello, {}!", name)
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue