diff --git a/src/components/AppNavigationCounter/AppNavigationCounter.vue b/src/components/AppNavigationCounter/AppNavigationCounter.vue index c7e5ef0499..29b091a549 100644 --- a/src/components/AppNavigationCounter/AppNavigationCounter.vue +++ b/src/components/AppNavigationCounter/AppNavigationCounter.vue @@ -20,63 +20,14 @@ - --> - + -### Normal Counter - -``` -314+ -``` - -### Highlighted Counter (i.e. mentions) - -``` -@admin -314+ -``` + Deprecated. See CounterBubble. - - - - diff --git a/src/components/CounterBubble/CounterBubble.vue b/src/components/CounterBubble/CounterBubble.vue new file mode 100644 index 0000000000..e7580207eb --- /dev/null +++ b/src/components/CounterBubble/CounterBubble.vue @@ -0,0 +1,82 @@ + + + + +### Normal Counter + +``` +314+ +``` + +### Highlighted Counter (i.e. mentions) + +``` +@admin +314+ +``` + + + + + + + + diff --git a/src/components/CounterBubble/index.js b/src/components/CounterBubble/index.js new file mode 100644 index 0000000000..94dac19298 --- /dev/null +++ b/src/components/CounterBubble/index.js @@ -0,0 +1,25 @@ +/** + * @copyright Copyright (c) 2021 Vincent Petry + * + * @author Vincent Petry + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +import CounterBubble from './CounterBubble' + +export default CounterBubble diff --git a/src/components/index.js b/src/components/index.js index 0334e587c4..eaeed45100 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -54,6 +54,7 @@ import Breadcrumbs from './Breadcrumbs' import CheckboxRadio from './CheckboxRadio' import ColorPicker from './ColorPicker' import Content from './Content' +import CounterBubble from './CounterBubble' import DatetimePicker from './DatetimePicker' import EmptyContent from './EmptyContent' import ListItem from './ListItem' @@ -100,6 +101,7 @@ export { CheckboxRadio, ColorPicker, Content, + CounterBubble, DatetimePicker, EmptyContent, ListItem,