Skip to content
Permalink
Browse files

wip

  • Loading branch information...
freekmurze committed Aug 21, 2019
1 parent b546bad commit 253cf4b9066ac2757e6ebc825563061947d971dd
Showing with 2 additions and 6 deletions.
  1. +1 −3 resources/js/components/Tinker.vue
  2. +1 −3 resources/js/components/TinkerInput.vue
@@ -1,6 +1,6 @@
<template>
<main :class="['layout', { 'layout-columns': needsColumnLayout }]" :style="gridStyle">
<tinker-input v-model="input" :path="path" @execute="handleExecute"></tinker-input>
<tinker-input v-model="input" @execute="handleExecute"></tinker-input>
<hr ref="gutter" class="layout-gutter" />
<tinker-output :value="output"></tinker-output>
</main>
@@ -17,8 +17,6 @@ export default {
TinkerOutput,
},
props: ['path'],
data: () => ({
windowWidth: window.innerWidth,
gutterWidth: 9,
@@ -14,8 +14,6 @@ export default {
codeEditor: null,
}),
props: ['path'],
mounted() {
const config = {
autofocus: true,
@@ -59,7 +57,7 @@ export default {
return;
}
axios.post(this.path, { code }).then(({ data }) => {
axios.post('/tinker', { code }).then(({ data }) => {
this.$emit('execute', data);
});
},

0 comments on commit 253cf4b

Please sign in to comment.
You can’t perform that action at this time.