diff --git a/.eslintrc.yml b/.eslintrc.yml index 0a8e117c..f3cb69df 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -92,7 +92,7 @@ rules: vue/require-default-prop: off vue/no-v-html: off vue/no-use-v-if-with-v-for: off - vue/html-closing-bracket-newline: [error, {singleline: never, multiline: never}] + vue/html-closing-bracket-newline: error vue/multiline-html-element-content-newline: off vue/singleline-html-element-content-newline: off diff --git a/client/components/App.vue b/client/components/App.vue index 834598b2..74e27533 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -1,60 +1,72 @@ + role="tablist" + > @@ -62,31 +74,37 @@ + :channel="activeChannel.channel" + /> + aria-label="Sign-in" + /> + aria-label="Connect" + /> + aria-label="Settings" + /> + aria-label="Help" + /> + aria-label="Changelog" + /> diff --git a/client/components/Channel.vue b/client/components/Channel.vue index b3df786b..2c564378 100644 --- a/client/components/Channel.vue +++ b/client/components/Channel.vue @@ -2,12 +2,14 @@ + :active-channel="activeChannel" + > {{ channel.name }} {{ channel.unread | roundBadgeNumber }} + class="badge" + >{{ channel.unread | roundBadgeNumber }} + aria-label="Leave" + > + aria-label="Leave" + /> + aria-label="Close" + > + aria-label="Close" + /> diff --git a/client/components/ChannelWrapper.vue b/client/components/ChannelWrapper.vue index fd495eb2..93a461ad 100644 --- a/client/components/ChannelWrapper.vue +++ b/client/components/ChannelWrapper.vue @@ -14,11 +14,13 @@ :aria-controls="'#chan-' + channel.id" :aria-selected="activeChannel && channel === activeChannel.channel" class="chan" - role="tab"> + role="tab" + > + :activeChannel="activeChannel" + /> diff --git a/client/components/Chat.vue b/client/components/Chat.vue index 07d9915a..2fe4b856 100644 --- a/client/components/Chat.vue +++ b/client/components/Chat.vue @@ -1,7 +1,8 @@ + class="window" + > + }" + > + role="tabpanel" + > + aria-label="Toggle channel list" + /> {{ channel.name }} + class="topic" + > + aria-label="Open the context menu" + /> + aria-label="Toggle user list" + > + aria-label="Toggle user list" + /> + class="chat-content" + > + :channel="channel" + /> + class="chat-content" + > + @click="$refs.messageList.jumpToBottom()" + > + :channel="channel" + /> + :channel="channel" + /> {{ this.$root.currentUserVisibleError }} + @click="hideUserVisibleError" + >{{ this.$root.currentUserVisibleError }} + :channel="channel" + /> diff --git a/client/components/ChatInput.vue b/client/components/ChatInput.vue index c3695162..a7cf8e6c 100644 --- a/client/components/ChatInput.vue +++ b/client/components/ChatInput.vue @@ -3,7 +3,8 @@ id="form" method="post" action="" - @submit.prevent="onSubmit"> + @submit.prevent="onSubmit" + > {{ network.nick }} + @keypress.enter.exact.prevent="onSubmit" + /> + @click="openFileUpload" + > + multiple + > + :disabled="!this.$root.isConnected" + /> + aria-label="Send message" + > + :disabled="!this.$root.isConnected" + /> diff --git a/client/components/ChatUserList.vue b/client/components/ChatUserList.vue index 60240f0d..8fc72f03 100644 --- a/client/components/ChatUserList.vue +++ b/client/components/ChatUserList.vue @@ -2,7 +2,8 @@