2
2
3
3
![ logo] ( ./readme-assets/social-logo-small.png )
4
4
5
- [ ![ Build Status] ( https://dev.azure.com/prabhummurthy/vue-dock-menu/_apis/build/status/prabhuignoto.vue-dock-menu?branchName=master )] ( https://dev.azure.com/prabhummurthy/vue-dock-menu/_build/latest?definitionId=8&branchName=master )
6
- [ ![ DeepScan grade] ( https://deepscan.io/api/teams/10074/projects/13372/branches/223016/badge/grade.svg )] ( https://deepscan.io/dashboard#view=project&tid=10074&pid=13372&bid=223016 )
7
- [ ![ DeepSource] ( https://deepsource.io/gh/prabhuignoto/vue-dock-menu.svg/?label=active+issues )] ( https://deepsource.io/gh/prabhuignoto/vue-dock-menu/?ref=repository-badge )
8
- [ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/65c2863c31644d5a98ae5bb83c1bd104 )] ( https://www.codacy.com/manual/prabhuignoto/vue-dock-menu/dashboard?utm_source=github.com& ; utm_medium=referral& ; utm_content=prabhuignoto/vue-dock-menu& ; utm_campaign=Badge_Grade )
9
- [ ![ Language grade: JavaScript] ( https://img.shields.io/lgtm/grade/javascript/g/prabhuignoto/vue-dock-menu.svg?logo=lgtm&logoWidth=18 )] ( https://lgtm.com/projects/g/prabhuignoto/vue-dock-menu/context:javascript )
10
- [ ![ Depfu] ( https://badges.depfu.com/badges/f3a16c4fe1fcbd36df15d6949d9846bc/overview.svg )] ( https://depfu.com/github/prabhuignoto/vue-dock-menu?project_id=16495 )
11
- [ ![ Known Vulnerabilities] ( https://snyk.io/test/github/prabhuignoto/vue-dock-menu/badge.svg?targetFile=package.json )] ( https://snyk.io/test/github/prabhuignoto/vue-dock-menu?targetFile=package.json )
12
- ![ https://badgen.net/bundlephobia/minzip/vue-dock-menu ] ( https://badgen.net/bundlephobia/minzip/vue-dock-menu )
5
+ [ ![ ci] ( https://github.com/vinayakkulkarni/v-dock-menu/actions/workflows/ci.yml/badge.svg )] ( https://github.com/vinayakkulkarni/v-dock-menu/actions/workflows/ci.yml )
6
+ [ ![ DeepScan grade] ( https://deepscan.io/api/teams/9055/projects/17446/branches/399662/badge/grade.svg )] ( https://deepscan.io/dashboard#view=project&tid=9055&pid=17446&bid=399662 )
7
+ [ ![ DeepSource] ( https://deepsource.io/gh/vinayakkulkarni/v-dock-menu.svg/?label=active+issues )] ( https://deepsource.io/gh/vinayakkulkarni/v-dock-menu/?ref=repository-badge )
8
+ [ ![ Language grade: JavaScript] ( https://img.shields.io/lgtm/grade/javascript/g/vinayakkulkarni/v-dock-menu.svg?logo=lgtm&logoWidth=18 )] ( https://lgtm.com/projects/g/vinayakkulkarni/v-dock-menu/context:javascript )
9
+ [ ![ Known Vulnerabilities] ( https://snyk.io/test/github/vinayakkulkarni/v-dock-menu/badge.svg?targetFile=package.json )] ( https://snyk.io/test/github/vinayakkulkarni/v-dock-menu?targetFile=package.json )
10
+ ![ https://badgen.net/bundlephobia/minzip/v-dock-menu ] ( https://badgen.net/bundlephobia/minzip/v-dock-menu )
13
11
14
12
![ demo] ( ./readme-assets/demo.gif )
15
13
21
19
- π€   ; Dock the Menubar by dragging and dropping to the edges of the screen.
22
20
- π   ; Touch support.
23
21
- π   ; Support for nested menus up to any levels.
24
- - π  ; The Menus adjust to any docked position and enables an intuitive menu navigation.
25
- - β¨  ; Keyboard Accessible.
26
- - π¨  ; Icon support.
27
- - β‘  ; Zero dependencies.
28
- - πͺ  ; Built with [ Typescript ] ( https://www.typescriptlang.org/ ) .
29
- - π§°  ; Intuitive [ API] ( #props ) with data driven behavior.
30
- - π   ; Built with the all new [ Vue 3 ] ( https://v3. vuejs.org/ ) .
22
+ - π   ; The Menus adjust to any docked position and enables an intuitive menu navigation.
23
+ - β¨   ; Keyboard Accessible.
24
+ - π¨   ; Icon support.
25
+ - β‘   ; Zero dependencies.
26
+ - πͺ   ; Built with [ TypeScript ] ( https://www.typescriptlang.org/ ) .
27
+ - π§°   ; Intuitive [ API] ( #props ) with data driven behavior.
28
+ - π   ; Built with the all new [ Composition API ] ( https://github.com/ vuejs/composition-api ) for [ Vue 2 ] ( https://vuejs .org/v2/guide/ )
31
29
32
30
<h2 >Table of Contents</h2 >
33
31
43
41
- [ π¦ Build Setup] ( #-build-setup )
44
42
- [ π¨ Contributing] ( #-contributing )
45
43
- [ π§± Built with] ( #-built-with )
46
- - [ π Notes] ( #-notes )
44
+ - [ π Notes] ( #-notes )
47
45
- [ Meta] ( #meta )
48
46
49
47
## β‘ Installation
50
48
51
49
``` sh
52
- yarn install vue -dock-menu
50
+ npm install v -dock-menu
53
51
```
54
52
55
53
## π Getting Started
56
54
57
- ` vue -dock-menu` has some great defaults. Please check the [ prop] ( #Props ) section for all available options.
55
+ ` v -dock-menu` has some great defaults. Please check the [ prop] ( #Props ) section for all available options.
58
56
59
57
The following snippet creates a simple Menubar and docks it to the ` top ` of the page.
60
58
61
59
``` sh
62
60
< template>
63
- < vue -dock-menu :items=" items" >
64
- < /vue -dock-menu>
61
+ < v -dock-menu :items=" items" >
62
+ < /v -dock-menu>
65
63
< /template>
66
64
67
65
< script>
68
- import { DockMenu } from " vue -dock-menu" ;
69
- import " vue -dock-menu/dist/vue -dock-menu.css" ;
66
+ import { DockMenu } from " v -dock-menu" ;
67
+ import " v -dock-menu/dist/v -dock-menu.css" ;
70
68
71
69
export default {
72
70
name: " example" ,
@@ -101,7 +99,7 @@ export default {
101
99
| on-selected | Callback that will be called on a menu item selection | |
102
100
| items | Data for the Menu bar | [] |
103
101
| theme | prop to customize the color theme | |
104
- | draggable | enables/disbales dragging on the menubar. | True |
102
+ | draggable | enables/disbales dragging on the menubar. | false |
105
103
106
104
# ## β Dock
107
105
@@ -110,10 +108,10 @@ use the `dock` prop to dock the menubar to your preferred position. The prop can
110
108
Here we dock the Menu bar to the right side of the screen.
111
109
112
110
` ` ` sh
113
- < vue -dock-menu>
111
+ < v -dock-menu>
114
112
:items=" items"
115
113
dock=" RIGHT"
116
- < /vue -dock-menu>
114
+ < /v -dock-menu>
117
115
` ` `
118
116
119
117
# ## π‘ on-selected
@@ -169,10 +167,10 @@ const items = [
169
167
` ` `
170
168
171
169
` ` ` sh
172
- < vue -dock-menu>
170
+ < v -dock-menu>
173
171
:items=" items"
174
172
dock=" BOTTOM"
175
- < /vue -dock-menu>
173
+ < /v -dock-menu>
176
174
` ` `
177
175
178
176
# ## π¨ Custom color scheme
@@ -267,51 +265,45 @@ export default defineComponent({
267
265
268
266
# # What's coming next
269
267
270
- - support for react.
271
- - accordion style rendering on sidebar mode.
268
+ - Ability to position individual Menu Items
269
+ - Refactor using tailwind v2.x and remove all custom-css
272
270
273
271
# # π¦ Build Setup
274
272
275
273
` ` ` bash
276
274
# install dependencies
277
- yarn install
275
+ npm install
278
276
279
277
# start dev
280
- yarn run dev
278
+ npm run dev
281
279
282
280
# package lib
283
281
npm run rollup
284
282
285
283
# run css linting
286
- yarn run lint:css
284
+ npm run lint:css
287
285
` ` `
288
286
289
287
# # π¨ Contributing
290
288
291
- 1. Fork it ( [https://github.com/prabhuignoto/vue -dock-menu/fork](https://github.com/prabhuignoto/vue -dock-menu/fork) )
289
+ 1. Fork it ( [https://github.com/vinayakkulkarni/v -dock-menu/fork](https://github.com/vinayakkulkarni/v -dock-menu/fork) )
292
290
2. Create your feature branch (` git checkout -b new-feature` )
293
291
3. Commit your changes (` git commit -am ' Add feature' ` )
294
292
4. Push to the branch (` git push origin new-feature` )
295
293
5. Create a new Pull Request
296
294
297
295
# # π§± Built with
298
296
299
- - [Typescript](typescript ).
297
+ - [TypeScript](https://www.typescriptlang.org/ ).
300
298
301
- # # π Notes
302
-
303
- - The project uses [vite](vite) instead of @vue/cli. I choose vite for speed and i also believe [vite](vite) will be the future.
299
+ # # π Notes
304
300
301
+ This is a fork of the original [vue-dock-menu](https://github.com/prabhuignoto/vue-dock-menu) by [prabhuignoto](https://github.com/prabhuignoto) which supports Vue 2.
305
302
# # Meta
306
303
307
- Prabhu Murthy β [@prabhumurthy2](https://twitter.com/prabhumurthy2) β prabhu.m.murthy@gmail.com
308
-
309
- [https://www.prabhumurthy.com](https://www.prabhumurthy.com)
310
-
311
304
Distributed under the MIT license. See ` LICENSE` for more information.
312
305
313
- [https://github.com/prabhuingoto /](https://github.com/prabhuignoto /)
306
+ [https://github.com/vinayakkulkarni /](https://github.com/vinayakkulkarni /)
314
307
315
308
[vue]: https://vuejs.org
316
309
[typescript]: https://typescriptlang.org
317
- [vite]: https://github.com/vitejs/vite
0 commit comments