Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
added placeholder and updated py version
Browse files Browse the repository at this point in the history
  • Loading branch information
ciansen committed Dec 19, 2023
1 parent a5cd543 commit 6e08e62
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/CodeTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<Confirm :select="confirmSelect" :text="log.text" :title="log.title" :cancel="log.cancel" :imageURL="log.image" :key="log.key" :entry="log"></Confirm>
</div>
<div v-else-if="log.type === 'input'">
<Input :useTime="log.use_time" :type="log.input_type" :select="sendInput" :text="log.text" :title="log.title" :empty="log.empty" :imageURL="log.image" :key="log.key" :entry="log"></Input>
<Input :useTime="log.use_time" :type="log.input_type" :select="sendInput" :text="log.text" :title="log.title" :empty="log.empty" :imageURL="log.image" :key="log.key" :placeholder="log.placeholder" :entry="log"></Input>
</div>
<div v-else-if="log.type === 'select'">
<Select :select="sendSelect" :text="log.text" :title="log.title" :multiple="log.multiple" :options="log.choices" :imageURL="log.image" :key="log.key" :entry="log"></Select>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Interaction/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
v-model="value"
:readonly="!props.entry.render"
@keypress.enter="send"
:placeholder="props.placeholder"
></sl-input>
<sl-textarea
v-else
class="label-on-left"
v-model="value"
:readonly="!props.entry.render"
:placeholder="props.placeholder"

></sl-textarea>

<div slot="footer">
Expand All @@ -55,7 +58,7 @@
useTime: Boolean;
imageURL: String;
entry: {},
placeholder: String
}
import { onMounted, ref, watch } from "vue";
Expand Down
2 changes: 1 addition & 1 deletion src/stores/PythonStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const usePythonStore = defineStore('python', () => {

async function loadPython() {
isLoading.value = true;
const zipUrl2 = new URL("../assets/viur_scriptor_api-0.0.2-py3-none-any.whl", import.meta.url).href
const zipUrl2 = new URL("../assets/viur_scriptor_api-0.0.3-py3-none-any", import.meta.url).href

await py.load([zipUrl2]);

Expand Down

0 comments on commit 6e08e62

Please sign in to comment.