mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Remove early sample "greet" code
This commit is contained in:
@@ -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)
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user