Skip to content

Commit 73177b1

Browse files
author
Guillaume Chau
committed
feat: event tab counter
1 parent aa97e62 commit 73177b1

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@
2828
"bugs": {
2929
"url": "https://github.com/vuejs/vue-devtools/issues"
3030
},
31+
"dependencies": {
32+
"@vue/ui": "^0.5.1",
33+
"circular-json-es6": "^2.0.1",
34+
"lodash.debounce": "^4.0.8",
35+
"lodash.groupby": "^4.6.0",
36+
"uglifyjs-webpack-plugin": "^1.1.4",
37+
"vue": "^2.5.13",
38+
"vue-router": "^3.0.1",
39+
"vuex": "^3.0.1"
40+
},
3141
"homepage": "https://github.com/vuejs/vue-devtools#readme",
3242
"devDependencies": {
3343
"buble": "^0.19.0",
@@ -54,15 +64,5 @@
5464
"webpack": "^3.10.0",
5565
"webpack-dev-server": "^2.9.7",
5666
"webpack-merge": "^4.1.2"
57-
},
58-
"dependencies": {
59-
"@vue/ui": "^0.5.0",
60-
"circular-json-es6": "^2.0.1",
61-
"lodash.debounce": "^4.0.8",
62-
"lodash.groupby": "^4.6.0",
63-
"uglifyjs-webpack-plugin": "^1.1.4",
64-
"vue": "^2.5.13",
65-
"vue-router": "^3.0.1",
66-
"vuex": "^3.0.1"
6767
}
6868
}

src/devtools/App.vue

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@
4040
Vuex
4141
</VueGroupButton>
4242
<VueGroupButton
43+
:tag="newEventCount > 0 ? newEventCount : null"
4344
:class="{
4445
'icon-button': !$responsive.wide
4546
}"
4647
value="events"
4748
icon-left="grain"
48-
class="flat"
49+
class="flat big-tag"
4950
v-tooltip="$t('App.events.tooltip')"
5051
>
5152
Events
@@ -239,23 +240,6 @@ export default {
239240
.vue-ui-group /deep/ > .indicator
240241
padding-bottom 0 !important
241242
242-
$event-count-bubble-size = 18px
243-
244-
.event-count
245-
background-color $active-color
246-
color #fff
247-
border-radius 50%
248-
width $event-count-bubble-size
249-
height $event-count-bubble-size
250-
text-align center
251-
padding-top 4px
252-
font-size $event-count-bubble-size * 0.5
253-
position absolute
254-
right 0
255-
top 12px
256-
.vue-ui-dark-mode &
257-
background-color $dark-background-color
258-
259243
.container
260244
overflow hidden
261245
flex 1

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
source-map "^0.5.6"
1717
vue-template-es2015-compiler "^1.6.0"
1818

19-
"@vue/ui@^0.5.0":
20-
version "0.5.0"
21-
resolved "https://registry.yarnpkg.com/@vue/ui/-/ui-0.5.0.tgz#05220e7e3a05e2254efdd5266852f6a471327e0a"
19+
"@vue/ui@^0.5.1":
20+
version "0.5.1"
21+
resolved "https://registry.yarnpkg.com/@vue/ui/-/ui-0.5.1.tgz#c1d9c7c2951d90ecb7d53c4cd29f3c9055eb521c"
2222
dependencies:
2323
focus-visible "^4.1.4"
2424
material-design-icons "^3.0.1"

0 commit comments

Comments
 (0)