From 6647e9389e0f2e179eb79fc3910296b152c25d59 Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Tue, 12 May 2020 13:01:04 +0200 Subject: [PATCH] Add material design icons Signed-off-by: Marco Ambrosini --- package-lock.json | 10 +++++----- package.json | 2 +- src/components/CallView/shared/Video.vue | 5 +++++ src/components/TopBar/TopBar.vue | 7 +++++-- webpack.common.js | 1 - 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 966e387b5..835b99045 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2520,11 +2520,6 @@ } } }, - "@mdi/font": { - "version": "5.1.45", - "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.1.45.tgz", - "integrity": "sha512-7H1UMwUpEp8mthdPlpAi7bhEyvTbvtK1TlA89scc0cXMpQy0UFygdkaf+6fveIxpBcRNgw0gnGSEonlsfYocXg==" - }, "@mrmlnc/readdir-enhanced": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", @@ -20920,6 +20915,11 @@ "vue-style-loader": "^4.1.0" } }, + "vue-material-design-icons": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/vue-material-design-icons/-/vue-material-design-icons-4.6.0.tgz", + "integrity": "sha512-b0Js/C4WHFnpcuH8goxl0bM7mjuSNClAYvsijUwfMfWXjW663ZvcQj3Int5H9rgRwZjPXPTJVxbFn+4sWJKMVA==" + }, "vue-multiselect": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/vue-multiselect/-/vue-multiselect-2.1.6.tgz", diff --git a/package.json b/package.json index ebed6edf2..f96e7669e 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ }, "dependencies": { "@juliushaertl/vue-richtext": "^0.3.1", - "@mdi/font": "^5.1.45", "@nextcloud/auth": "^1.2.3", "@nextcloud/axios": "^1.3.2", "@nextcloud/dialogs": "^1.3.0", @@ -44,6 +43,7 @@ "vue-browser-detect-plugin": "^0.1.8", "vue-clipboard2": "^0.3.1", "vue-fragment": "^1.5.1", + "vue-material-design-icons": "^4.6.0", "vue-observe-visibility": "^0.4.6", "vue-prevent-unload": "^0.2.3", "vue-router": "^3.1.6", diff --git a/src/components/CallView/shared/Video.vue b/src/components/CallView/shared/Video.vue index 7c9ea07b6..044ee53ff 100644 --- a/src/components/CallView/shared/Video.vue +++ b/src/components/CallView/shared/Video.vue @@ -48,6 +48,9 @@ class="avatar guest"> {{ firstLetterOfGuestName }} +
+ +
@@ -98,6 +101,7 @@ import SHA1 from 'crypto-js/sha1' import Hex from 'crypto-js/enc-hex' import video from './video.js' import VideoBackground from './VideoBackground' +import Crown from 'vue-material-design-icons/Crown' export default { @@ -106,6 +110,7 @@ export default { components: { Avatar, VideoBackground, + Crown, }, directives: { diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index b560acbda..300959c8c 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -24,8 +24,7 @@ @@ -165,6 +164,7 @@ import { setConversationPassword, } from '../../services/conversationsService' import { generateUrl } from '@nextcloud/router' +import AccountVoice from 'vue-material-design-icons/AccountVoice' export default { name: 'TopBar', @@ -178,6 +178,7 @@ export default { CallButton, Popover, ActionSeparator, + AccountVoice, }, props: { @@ -509,6 +510,8 @@ export default { &__button { margin: 0 2px; align-self: center; + display: flex; + align-items: center; } } diff --git a/webpack.common.js b/webpack.common.js index 83c98e9a6..93c5db520 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -37,7 +37,6 @@ module.exports = { { test: /\.vue$/, loader: 'vue-loader', - exclude: /node_modules/, }, { test: /\.js$/,