Changeset 35445 for main/trunk
- Timestamp:
- 2021-09-21T14:36:58+12:00 (3 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea/korero-maori-asr/src
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/App.vue
r35442 r35445 154 154 if (audioElement.currentTime !== lastTime) { 155 155 lastTime = audioElement.currentTime; 156 store.commit(" setCurrentPlaybackTime", lastTime);157 store.commit(" setCurrentlyPlaying", true);156 store.commit("playbackStateSetCurrentTime", lastTime); 157 store.commit("playbackStateSetIsPlaying", true); 158 158 } 159 159 else { 160 store.commit(" setCurrentlyPlaying", false);160 store.commit("playbackStateSetIsPlaying", false); 161 161 } 162 162 -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItem.vue
r35439 r35445 3 3 <!-- Header containing info and actions for the transcription --> 4 4 <div class="transcription__header"> 5 <button class="btn-fab" v-on:click="playAudio(0)" type="button" title="Play Audio"> 6 <span class="material-icons mdi-l">play_arrow</span> 5 <button class="btn-fab" v-on:click="playAudio(-1)" type="button" title="Play Audio"> 6 <span class="material-icons mdi-l play-button" v-if="!isPlaying">play_arrow</span> 7 <span class="material-icons mdi-l play-button" v-if="isPlaying">pause</span> 7 8 </button> 8 9 … … 113 114 }, 114 115 computed: mapState({ 115 translations: state => state.translations 116 translations: state => state.translations, 117 isPlaying: state => state.playbackState.isPlaying 116 118 }), 117 119 methods: { -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue
r35439 r35445 130 130 }, 131 131 set(value) { 132 this.$store.commit(" setCurrentPlaybackTime", value);132 this.$store.commit("playbackStateSetCurrentTime", value); 133 133 } 134 134 }, -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/main.js
r35439 r35445 1 1 import { createApp } from "vue"; 2 2 import { createStore } from "vuex" 3 import AudioPlayback from "./js/AudioPlaybackModule"; 3 4 import App from "./App.vue"; 4 5 import ToggleButton from "./components/ToggleButton.vue" … … 94 95 }, 95 96 97 playbackStateSetID(state, id) { 98 state.playbackState.id = id; 99 }, 100 playbackStateSetIsPlaying(state, isPlaying) { 101 state.playbackState.isPlaying = isPlaying; 102 }, 103 playbackStateSetCurrentTime(state, time) { 104 state.playbackState.currentTime = time; 105 }, 106 96 107 /** 97 108 * Sets the current playback state. … … 101 112 setPlaybackState(state, playbackState) { 102 113 state.playbackState = playbackState; 103 },104 setCurrentlyPlaying(state, isPlaying) {105 state.playbackState.isPlaying = isPlaying;106 },107 setCurrentPlaybackTime(state, time) {108 state.playbackState.currentTime = time;109 },110 setCurrentlyPlayingId(state, id) {111 state.playbackState.id = id;112 114 }, 113 115 setTranslations(state, translations) { … … 122 124 } 123 125 }); 126 127 AudioPlayback.initialise(store); 124 128 125 129 createApp(App) -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/styles/_material.scss
r35443 r35445 5 5 6 6 :root { 7 // Set these to adjust the colour palette 7 8 --primary-bg-color-l1: 36, 156, 207; 8 9 --primary-bg-color: 33, 145, 192; … … 25 26 --transition-duration: 0.15s; 26 27 27 28 // Default theme 28 29 @extend .theme-primary; 29 30 } -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/styles/theme.scss
r35431 r35445 14 14 15 15 :root { 16 --monospace-font: 1 6px'Roboto Mono', sans-serif;16 --monospace-font: 1rem 'Roboto Mono', sans-serif; 17 17 --page-bg-color: #f7f4f0; 18 18 } … … 21 21 background-color: var(--page-bg-color); 22 22 font-family: 'Roboto', sans-serif; 23 font-size: 16px;24 23 25 24 margin: 0;
Note:
See TracChangeset
for help on using the changeset viewer.