diff --git a/audon-fe/.eslintrc.cjs b/audon-fe/.eslintrc.cjs index 05077e7..dba6d34 100644 --- a/audon-fe/.eslintrc.cjs +++ b/audon-fe/.eslintrc.cjs @@ -1,14 +1,14 @@ /* eslint-env node */ -require('@rushstack/eslint-patch/modern-module-resolution') +require("@rushstack/eslint-patch/modern-module-resolution"); module.exports = { root: true, - 'extends': [ - 'plugin:vue/vue3-essential', - 'eslint:recommended', - '@vue/eslint-config-prettier' + extends: [ + "plugin:vue/vue3-essential", + "eslint:recommended", + "@vue/eslint-config-prettier", ], parserOptions: { - ecmaVersion: 'latest' - } -} + ecmaVersion: "latest", + }, +}; diff --git a/audon-fe/.gitignore b/audon-fe/.gitignore index ad551b8..abee633 100644 --- a/audon-fe/.gitignore +++ b/audon-fe/.gitignore @@ -13,7 +13,7 @@ dist dist-ssr coverage *.local -/index.html +index.html /cypress/videos/ /cypress/screenshots/ diff --git a/audon-fe/src/App.vue b/audon-fe/src/App.vue index 3bda4f8..1500ad8 100644 --- a/audon-fe/src/App.vue +++ b/audon-fe/src/App.vue @@ -3,6 +3,10 @@ import { RouterView, RouterLink } from "vue-router"; import locales from "./locales"; export default { + components: { + RouterView, + RouterLink, + }, setup() { return { locales, diff --git a/audon-fe/src/components/Participant.vue b/audon-fe/src/components/Participant.vue index caf27b2..1c54b79 100644 --- a/audon-fe/src/components/Participant.vue +++ b/audon-fe/src/components/Participant.vue @@ -8,15 +8,19 @@ export default { data: Object, muted: Boolean, }, - data () { + data() { return { mdiMicrophone, - mdiMicrophoneOff - } + mdiMicrophoneOff, + }; }, computed: { canSpeak() { - return this.type === "host" || this.type === "cohost" || this.type === "speaker"; + return ( + this.type === "host" || + this.type === "cohost" || + this.type === "speaker" + ); }, badgeProps() { switch (this.type) { @@ -33,8 +37,8 @@ export default { case "speaker": return { content: "Speaker", - colour: "" - } + colour: "", + }; default: return { content: "", @@ -44,8 +48,8 @@ export default { }, }, methods: { - webfinger - } + webfinger, + }, }; @@ -69,8 +73,13 @@ export default {

- - {{ data?.displayName ?? webfinger(data) }} + + {{ + data?.displayName ?? webfinger(data) + }}

diff --git a/audon-fe/src/locales/en.yaml b/audon-fe/src/locales/en.yaml index 7b49e97..ab453af 100644 --- a/audon-fe/src/locales/en.yaml +++ b/audon-fe/src/locales/en.yaml @@ -19,7 +19,7 @@ connecting: "Connecting" server: "Your Mastodon instance" addressRequired: "Enter your instance address" createNewRoom: "Create a New Room" -editRoom: "Edit the Room" +editRoom: "Room Edit" comingFuture: "Coming with future update!" form: title: "Title" diff --git a/audon-fe/src/stores/counter.js b/audon-fe/src/stores/counter.js index b6757ba..374b4d0 100644 --- a/audon-fe/src/stores/counter.js +++ b/audon-fe/src/stores/counter.js @@ -1,12 +1,12 @@ -import { ref, computed } from 'vue' -import { defineStore } from 'pinia' +import { ref, computed } from "vue"; +import { defineStore } from "pinia"; -export const useCounterStore = defineStore('counter', () => { - const count = ref(0) - const doubleCount = computed(() => count.value * 2) +export const useCounterStore = defineStore("counter", () => { + const count = ref(0); + const doubleCount = computed(() => count.value * 2); function increment() { - count.value++ + count.value++; } - return { count, doubleCount, increment } -}) + return { count, doubleCount, increment }; +}); diff --git a/audon-fe/src/stores/mastodon.js b/audon-fe/src/stores/mastodon.js index 8e526db..19e6bd6 100644 --- a/audon-fe/src/stores/mastodon.js +++ b/audon-fe/src/stores/mastodon.js @@ -32,7 +32,7 @@ export const useMastodonStore = defineStore("mastodon", { const client = await login({ url: this.oauth.url, accessToken: this.oauth.token, - disableVersionCheck: true + disableVersionCheck: true, }); this.client = client; this.userinfo = await client.accounts.verifyCredentials(); diff --git a/audon-fe/src/stores/view.js b/audon-fe/src/stores/view.js index d0e59a2..00fa415 100644 --- a/audon-fe/src/stores/view.js +++ b/audon-fe/src/stores/view.js @@ -3,7 +3,7 @@ import { defineStore } from "pinia"; export const useViewStore = defineStore("view", { state() { return { - mainArea: null - } - } -}) + mainArea: null, + }; + }, +}); diff --git a/audon-fe/src/views/HomeView.vue b/audon-fe/src/views/HomeView.vue index 3667e99..3515f5e 100644 --- a/audon-fe/src/views/HomeView.vue +++ b/audon-fe/src/views/HomeView.vue @@ -37,12 +37,8 @@ export default { diff --git a/audon-fe/src/views/NotFoundView.vue b/audon-fe/src/views/NotFoundView.vue index 5279a23..13181ac 100644 --- a/audon-fe/src/views/NotFoundView.vue +++ b/audon-fe/src/views/NotFoundView.vue @@ -1,5 +1,4 @@ - + - +