Skip to content

Commit

Permalink
Merge pull request #291 from Pictalk-speech-made-easy/feature-dexie-p…
Browse files Browse the repository at this point in the history
…erformance

Feature dexie performance
  • Loading branch information
Ratatinator97 authored Jun 11, 2024
2 parents b51ab51 + c4242f5 commit 77f5fcf
Show file tree
Hide file tree
Showing 35 changed files with 1,725 additions and 2,197 deletions.
27 changes: 0 additions & 27 deletions components/auth/account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,33 +135,6 @@
<installVoice></installVoice>
</div>
</div>
<!--
<b-button
v-if="!displayVoicesOrMultiLingual"
@click="displayVoices = !displayVoices"
type="is-ghost"
>{{ $t("SpeakMoreLanguage") }}</b-button
>
<b-field v-if="displayVoicesOrMultiLingual" :label="$t('Voices')">
<b-select
v-model="voiceURIs"
placeholder="Select language"
required
multiple
expanded
native-size="8"
:loading="loadingVoices"
>
<option
v-for="voice in loadedVoices"
:value="voice.voiceURI"
:key="voice.voiceURI"
>
{{ getEmoji(voice.lang) }} {{ voice.name }}
</option>
</b-select>
</b-field> -->
<hr />
</b-tab-item>
<b-tab-item style="width: 100%" icon="account-group">
Expand Down
17 changes: 11 additions & 6 deletions components/auth/signinModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</section>
<footer class="modal-card-foot">
<b-button data-cy="signin-signin" class="is-primary" :loading="loading" @click="onSubmit">{{
$t("LogIn")
$t("LogIn")
}}</b-button>
</footer>
</div>
Expand All @@ -29,7 +29,6 @@
</template>
<script>
import signup from "@/components/auth/signupModal";
import { SoundHelper } from "@/utils/sounds";
export default {
data() {
return {
Expand All @@ -51,18 +50,24 @@ export default {
if (res.status == 201) {
await this.$store.dispatch("getUser");
try {
if (process.client) {
const createDatabaseForUser = require("~/plugins/dexieDB").createDatabaseForUser;
createDatabaseForUser(this.$store.getters.getUser.username);
}
} catch (err) {
console.log(err);
}
this.$parent.close();
this.$router.push({
path: "/pictalk/" + this.$store.getters.getRootId,
path: "/pictalk",
query: { ...this.$route.query, fatherCollectionId: this.$store.getters.getRootId },
});
if (this.$store.getters.getUser.notifications.length != 0) {
SoundHelper.playNotification();
this.$buefy.notification.open({
message: this.$t("UnreadNotifications"),
type: "is-info",
});
} else {
SoundHelper.playAccountCreation();
}
}
} catch (error) {
Expand Down
Loading

0 comments on commit 77f5fcf

Please sign in to comment.