Gathering detailed insights and metrics for vue-d-media
Gathering detailed insights and metrics for vue-d-media
Gathering detailed insights and metrics for vue-d-media
Gathering detailed insights and metrics for vue-d-media
npm install vue-d-media
Typescript
Module System
Vue (62.85%)
TypeScript (18.18%)
Sass (14.94%)
JavaScript (3.36%)
HTML (0.67%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
27 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Oct 11, 2022
Latest Version
0.8.32
Package Id
vue-d-media@0.8.32
Unpacked Size
3.22 MB
Size
814.16 kB
File Count
32
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
28
Vue components that can help you to add upload fields and media manager for your project.
Symfony Bundle: vue-d-media
Usage example: symfony-d-media-bundle-example
Usage example demo: demo
Vue components:
Opportunities:
1npm install vue-d-media
1import Vue from 'vue' 2import VueDMedia from 'vue-d-media' 3 4Vue.use(VueDMedia)
1import { 2 Manager, 3 ManagerPopup, 4 SingleUploader, 5 MultiUploader, 6} from 'vue-d-media' 7 8export default { 9 components: { 10 Manager, 11 ManagerPopup, 12 SingleUploader, 13 MultiUploader, 14 } 15}
Copy dist/vue-d-media.umd.js to you public directory and add script tag
1<script src="https://unpkg.com/vue/dist/vue.js"></script> 2<script src="https://unpkg.com/vue-i18n/dist/vue-i18n.js"></script> 3<script src="/your-path/vue-d-media.umd.js"/>
1npm install vue-i18n
1import Vue from 'vue' 2import VueI18n from 'vue-i18n' 3 4import en from 'vue-d-media/lib/lang/en' 5import ru from 'vue-d-media/lib/lang/ru' 6 7const i18n = new VueI18n({ 8 locale: 'en', 9 fallbackLocale: 'en', 10 messages: { 11 en, 12 ru, 13 }, 14}) 15 16new Vue({ 17 ..., 18 i18n 19}).$mount('#app')
See install example
See i18n docs
1<template> 2<!-- Single Uploader Field --> 3<single-uploader v-model="singleMedias" :config="config"></single-uploader> 4<!-- Single Uploader Field --> 5<multi-uploader v-model="multiMedias" :config="config"></multi-uploader> 6<!-- Manager Popup --> 7<button @click="$refs.managerPopup.open()">Open Manager Popup</button> 8<manager-popup ref="managerPopup" :config="config"></manager-popup> 9<!-- Manager Popup Field --> 10<manager bordered :config="config"></manager> 11</template> 12<script> 13import 'vue-d-media/dist/vue-d-media.css' 14export default { 15 data() { 16 return { 17 singleMedias: [ 18 // initial media (ignores more than one) 19 ], 20 multiMedias: [ 21 // initial medias 22 ], 23 config: { 24 // ... 25 } 26 } 27 } 28} 29</script>
No parameters required.
Supports v-model
or :value
+ @input
.
maxFiles
(number) [value from config] - how much files can select
canSubmit
(boolean) [false] - can select medias?
canUpload
(boolean) [true] - if false upload zone is hidden
bordered
(boolean) [false] - add border to manager (for example for inline usage)
entities
(Entity[]) [value from config] - filters
hiddenEntities
(FilterEntities) [value from config] - hidden filters to send with getList request
types
(string[]) [value from config] - active tabs (Images, Files)
No parameters required.
Supports v-model
or :value
+ @input
.
maxFiles
and types
similar to Manager
No parameters required.
Supports v-model
or :value
+ @input
.
enableManager
(boolean) [true] - add Media Manager button that opens ManagerPopuptype
(string) ['images'] - type of uploading mediaaccept
(string) [value from config] - string like '.svg, .jpg, .jpeg, .gif, .png, .webp' with extension/mime type enumerationshiddenEntities
similar to Managerconstraints
(string[]) [autogenerated depends on other props] - list of constraints, just for displayingmaxFilesize
(number) [value from config] - max uploading file size in MBminWidth
(number) [value from config] - minimum image width in pxminHeight
(number) [value from config] - minimum image height in pxNo parameters required.
Supports v-model
or :value
+ @input
.
All props from SingleUploader and:
addText
(string) ['ADD'] - add media button textmaxFiles
(number) [value from config] - maximum allowed number of filesSee sources types
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
60 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More