diff options
| author | Lex Neva <github.com@lexneva.name> | 2020-08-19 14:53:01 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2020-08-19 14:53:01 -0400 |
| commit | 690ee0c416635f8d6d3dc07048be90bd0da7748f (patch) | |
| tree | 8351dd7ffa0aee40e6409d29fda7577bf1f04a95 /electron/src/renderer/components | |
| parent | 1631428ae44465ee96b7a283d7fec8cde1a68d73 (diff) | |
wip: move install extension to electron
Diffstat (limited to 'electron/src/renderer/components')
| -rw-r--r-- | electron/src/renderer/components/InstallPalettes.vue | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/electron/src/renderer/components/InstallPalettes.vue b/electron/src/renderer/components/InstallPalettes.vue new file mode 100644 index 00000000..73fd2865 --- /dev/null +++ b/electron/src/renderer/components/InstallPalettes.vue @@ -0,0 +1,49 @@ +<template> + <div> + <font-awesome-icon icon="palette" class="info-icon"/> + <p> + <translate>Ink/Stitch can install palettes for Inkscape matching the thread colors from popular machine embroidery thread manufacturers. + </translate> + </p> + <p> + <translate>Choose Inkscape directory</translate> + <input v-bind:value="path"/> + </p> + <button v-on:click="install"> + <translate>Install</translate> + </button> + <button v-on:click="cancel"> + <translate>Cancel</translate> + </button> + </div> +</template> + +<script> +const inkStitch = require("../../lib/api") + +export default { + name: "InstallPalettes", + data: function () { + return { + path: "", + } + }, + methods: { + install() { + alert("install button clicked") + }, + cancel() { + alert("cancel button clicked") + } + }, + created: function () { + inkStitch.get("/install/default-path").then(response => { + this.path = response.data + }) + } +} +</script> + +<style scoped> + +</style> |
