Skip to content

Commit

Permalink
fix: some stories doesnt work
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyri1 committed Feb 20, 2023
1 parent d2ca2fe commit 03dc6af
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 6 deletions.
2 changes: 0 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
platforms:
android:
versionName: 0.3.9
incrementVersionCode: true
manifest:
- file: AndroidManifest.xml
target: manifest/application
Expand Down
21 changes: 21 additions & 0 deletions src/composables/handleSlideClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ export function detectTypeOfStageNode(actionNode) {
actionNode.controlSettings.ok === true &&
actionNode.controlSettings.pause === false &&
actionNode.controlSettings.wheel === false &&
actionNode.image !== null) ||
(actionNode.audio === null && // test purpose
actionNode.controlSettings.autoplay === false &&
actionNode.controlSettings.home === true &&
actionNode.controlSettings.ok === true &&
actionNode.controlSettings.pause === false &&
actionNode.controlSettings.wheel === true &&
actionNode.image !== null) ||
(actionNode.audio !== null && // test purpose
actionNode.controlSettings.autoplay === true &&
actionNode.controlSettings.home === false &&
actionNode.controlSettings.ok === false &&
actionNode.controlSettings.pause === false &&
actionNode.controlSettings.wheel === false &&
actionNode.image !== null)
) {
return { type: 'displaySlideSet', okTransition: actionNode.okTransition };
Expand Down Expand Up @@ -111,6 +125,13 @@ export function detectTypeOfStageNode(actionNode) {
actionNode.controlSettings.ok === true &&
actionNode.controlSettings.pause === true &&
actionNode.controlSettings.wheel === false &&
actionNode.image === null) ||
(actionNode.audio !== null && // test purpose
actionNode.controlSettings.autoplay === true &&
actionNode.controlSettings.home === false &&
actionNode.controlSettings.ok === true &&
actionNode.controlSettings.pause === false &&
actionNode.controlSettings.wheel === false &&
actionNode.image === null)
) {
return { type: 'audioStory', okTransition: actionNode.okTransition };
Expand Down
27 changes: 23 additions & 4 deletions src/views/PrefTab3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ion-select>
</ion-item>
</ion-list>
<ion-button v-show="false" slot="start" @click="activeSleepMode">Activer le mode dodo</ion-button>
<ion-button v-show="false" slot="start" @click="setOpen(true)">Activer le mode sommeil</ion-button>
</ion-card-content>
</ion-card>
<ion-card>
Expand All @@ -37,12 +37,34 @@
</ion-list>
</ion-card-content>
</ion-card>
<ion-modal :is-open="isOpen">
<ion-header>
<ion-toolbar>
<ion-title>Mode sommeil</ion-title>
<ion-buttons slot="end">
<ion-button @click="setOpen(false)">Fermer</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content class="ion-padding">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni illum quidem recusandae ducimus quos
reprehenderit. Veniam, molestias quos, dolorum consequuntur nisi deserunt omnis id illo sit cum qui. Eaque,
dicta.
</p>
</ion-content>
</ion-modal>
</ion-content>
</ion-page>
</template>

<script setup>
import {
IonModal,
IonHeader,
IonToolbar,
IonTitle,
IonButtons,
IonContent,
IonPage,
IonCard,
Expand Down Expand Up @@ -98,8 +120,5 @@ function activeTimeline(event) {
storyStore.timelineVisible = event.detail.checked
}
function activeSleepMode() {
}
</script>

0 comments on commit 03dc6af

Please sign in to comment.