:camera: Tiny little component for input type=file (css free! style it as you want!)

Overview

v-image 📷

github release npm version Build Status npm downloads Travis (.org) Netlify Status Total alerts codebeat badge

  • This is on GitHub so let me know if I've b0rked it somewhere, give me a star if you like it 🍻
  • Demo here -> v-image

Install 👌

npm i v-image
// or
yarn add v-image

CDN: UNPKG | jsDelivr (available as window.VImage)

Usage 🎓

Register the component globally:

Vue.component('vImage', require('v-image'));

Or use locally

import vImage from 'v-image';

Example 🍀

<template>
  <v-image
    wrapper="flex justify-center items-center content-center w-full h-full"
    :place-holder="placeholder"
    :uploaded="uploaded"
    @load-image="saveImage"
    @remove-image="removeImage"
  />
</template>
/* Used Tailwind Utility classes, checkout the example dir */
import vImage from 'v-image';
export default {
  components: { vImage },
  data: () => ({
    placeholder: {
      wrapper: 'p-4 max-w-xs w-full border border-gray-400 border-dotted',
      image: 'https://picsum.photos/1000/1000',
      alt: 'Placeholder Image',
      imgClass: 'block rounded object-contain object-center max-w-xs',
      btnClass: 'block btn cursor-pointer text-center',
      form: {
        name: 'myImage',
        label: 'Select an Image',
        accept: 'image/jpg',
      },
    },
    uploaded: {
      wrapper: 'p-4 max-w-xs w-full border border-gray-400 border-dotted',
      alt: 'User uploaded dope image',
      imgClass: 'block rounded object-contain object-center max-w-xs',
      btnClass: 'block btn cursor-pointer text-center w-full',
      removeBtnText: 'Remove image',
    },
    image: '',
  }),
  methods: {
    saveImage(imageSentFromComponent) {
      this.image = imageSentFromComponent;
    },
    removeImage() {
      this.image = null;
    },
  },
};

API

📖 Props:

Name Type Required? Default Description
wrapper String No '' The wrapper classes for the top level <div>
placeHolder Object No - The placeholder image & input related code
placeHolder.wrapper String No '' Any wrapper classes for the placeholder <div>
placeHolder.image String No 'https://picsum.photos/200x200' The placeholder image
placeHolder.alt String No 'Placeholder Image' The placeholder image alt attribute
placeHolder.imgClass String No '' Any placeholder image classes
placeHolder.btnClass String No '' Select Image button classes
placeHolder.form Object No - The placeholder input form
placeHolder.form.name String No 'v-image' Enable the label to interact with the <input />
placeHolder.form.label String No 'Select Image' The label/button text
placeHolder.form.accept String No 'image/*' Abilty to accept file types
uploaded Object No - The user uploaded image related Object
uploaded.wrapper String No '' Any wrapper classes for the uploaded image <div>
uploaded.alt String No 'Very Interesting Image' The actual uploaded image alt attribute
uploaded.imgClass String No '' Uploaded image classes
uploaded.btnClass String No '' Remove Image button classes
uploaded.removeBtnText String No 'Remove Image' Remove Image button text

👂 Events:

  • @load-image (load the base64 to your custom component's variable (see example))
  • @remove-image (let the parent know the remove label was clicked)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

v-image © Vinayak, Released under the MIT License.
Authored and maintained by Vinayak Kulkarni with help from contributors (list).

vinayakkulkarni.dev · GitHub @vinayakkulkarni · Twitter @_vinayak_k

Comments
  • fix(deps): bump actions/stale from 3 to 4.1.0

    fix(deps): bump actions/stale from 3 to 4.1.0

    Bumps actions/stale from 3 to 4.1.0.

    Release notes

    Sourced from actions/stale's releases.

    v4.1.0

    Features

    v4.0.0

    ⚠️ This version contains breaking changes ⚠️

    Features

    Bug Fixes

    • dry-run: forbid mutations in dry-run (#500) (f1017f3), closes #499
    • logs: coloured logs (#465) (5fbbfba)
    • operations: fail fast the current batch to respect the operations limit (#474) (5f6f311), closes #466
    • label comparison: make label comparison case insensitive #517, closes #516
    • filtering comments by actor could have strange behavior: "stale" comments are now detected based on if the message is the stale message not who made the comment(#519), fixes #441, #509, #518

    Breaking Changes

    • The options skip-stale-issue-message and skip-stale-pr-message were removed. Instead, setting the options stale-issue-message and stale-pr-message will be enough to let the stale workflow add a comment. If the options are unset, a comment will not be added which was the equivalent of setting skip-stale-issue-message to true.
    • The operations-per-run option will be more effective. After migrating, you could face a failed-fast process workflow if you let the default value (30) or set it to a small number. In that case, you will see a warning at the end of the logs (if enabled) indicating that the workflow was stopped sooner to avoid consuming too much API calls. In most cases, you can just increase this limit to make sure to process everything in a single run.

    v3.0.19

    • Enhance logs to provide more detailed output
    • Split certain options to be more granular for Pull Requests vs Issues:
      • any-of-issue-labels
      • any-of-pr-labels
      • remove-issue-stale-when-updated
      • remove-pr-stale-when-updated
    • Dependency updates

    v3.0.18

    • Add any-of-labels option
    • Add only-issue-labels, only-pr-labels
    • Clean up, testing and dependency version bumps

    v3.0.17

    • Bug fixes, refactoring and milestone exemption

    v3.0.16

    • Minor bugfixes and logging improvements

    v3.0.15

    • Add milestone exemption
    • Add start date filtering

    ... (truncated)

    Changelog

    Sourced from actions/stale's changelog.

    4.1.0 (2021-07-14)

    Features

    4.0.0 (2021-07-14)

    Features

    Bug Fixes

    • dry-run: forbid mutations in dry-run (#500) (f1017f3), closes #499
    • logs: coloured logs (#465) (5fbbfba)
    • operations: fail fast the current batch to respect the operations limit (#474) (5f6f311), closes #466
    • label comparison: make label comparison case insensitive #517, closes #516
    • filtering comments by actor could have strange behavior: "stale" comments are now detected based on if the message is the stale message not who made the comment(#519), fixes #441, #509, #518

    Breaking Changes

    • The options skip-stale-issue-message and skip-stale-pr-message were removed. Instead, setting the options stale-issue-message and stale-pr-message will be enough to let the stale workflow add a comment. If the options are unset, a comment will not be added which was the equivalent of setting skip-stale-issue-message to true.
    • The operations-per-run option will be more effective. After migrating, you could face a failed-fast process workflow if you let the default value (30) or set it to a small number. In that case, you will see a warning at the end of the logs (if enabled) indicating that the workflow was stopped sooner to avoid consuming too much API calls. In most cases, you can just increase this limit to make sure to process everything in a single run.
    Commits
    • 7fb802b Bump release to 4.1.0
    • 54197c7 Merge pull request #602 from actions/revert-breaking-change
    • 3a971ae Revert "Merge pull request #586 from C0ZEN/feature/split-pr-and-issue-options"
    • fc4a5ff Merge pull request #595 from actions/dependabot/npm_and_yarn/types/jest-27.0.2
    • db699ab Merge pull request #586 from C0ZEN/feature/split-pr-and-issue-options
    • f8e08de build(deps-dev): bump @​types/jest from 27.0.1 to 27.0.2
    • b83d488 Update dependencies (#592)
    • 1ff6cd7 build(deps): bump tmpl from 1.0.4 to 1.0.5 (#575)
    • 86fed0e build(deps-dev): bump jest-silent-reporter from 0.4.0 to 0.5.0 (#573)
    • 6700440 docs(readme): split the options between common, issues and prs
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions stale 
    opened by dependabot[bot] 3
  • Update Readme to show Nuxt implementation

    Update Readme to show Nuxt implementation

    Hi, thanks for this beautiful component.

    Just wanted to say, if you could you please update the readme file to show how we can implement this component using Nuxt.js. It would really help the beginners who want to learn or try out this component in their Nuxt applications without any hassle.

    Thanks!

    opened by palashmon 3
  • Possibility to pass label value as a prop

    Possibility to pass label value as a prop

    Hi, great component! I'd love to pass the label value as a prop, something like:

    <v-image alt="alt" :name="name" :img-style="myStyle" :label="'Choose'"></v-image>

    enhancement 
    opened by andreasvirkus 3
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.38.0 to 5.38.1

    chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.38.0 to 5.38.1

    Bumps @typescript-eslint/eslint-plugin from 5.38.0 to 5.38.1.

    Release notes

    Sourced from @​typescript-eslint/eslint-plugin's releases.

    v5.38.1

    5.38.1 (2022-09-26)

    Note: Version bump only for package @​typescript-eslint/typescript-eslint

    Changelog

    Sourced from @​typescript-eslint/eslint-plugin's changelog.

    5.38.1 (2022-09-26)

    Note: Version bump only for package @​typescript-eslint/eslint-plugin

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 2
  • chore(deps-dev): bump rollup-plugin-vue from 5.1.9 to 6.0.0

    chore(deps-dev): bump rollup-plugin-vue from 5.1.9 to 6.0.0

    Bumps rollup-plugin-vue from 5.1.9 to 6.0.0.

    Changelog

    Sourced from rollup-plugin-vue's changelog.

    6.0.0 (2020-11-25)

    Features

    6.0.0-beta.11 (2020-11-02)

    Bug Fixes

    • add language fallback for template code (#407) (e334e8c)
    • avoid adding render function when no template in an SFC (#387) (6960203)
    • avoid conflicting filename for sourcemaps (#375) (4ec1315)
    • default render function name for ssr (#402) (714afd7)
    • support options for template block preprocessor render (#377) (3222451)

    Features

    • add watchers to imports within vue files (#385) (cd41410)

    6.0.0-beta.9 (2020-07-16)

    Features

    • distinguish options for different CSS preprocessing languages (#366) (860595e)

    6.0.0-beta.8 (2020-07-15)

    Bug Fixes

    • backwards compat with older versions of compiler-sfc (7cb9fa4)

    6.0.0-beta.7 (2020-07-15)

    Features

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 2
  • fix(deps): bump actions/stale from 3 to 4

    fix(deps): bump actions/stale from 3 to 4

    Bumps actions/stale from 3 to 4.

    Release notes

    Sourced from actions/stale's releases.

    v4.0.0

    ⚠️ This version contains breaking changes ⚠️

    Features

    Bug Fixes

    • dry-run: forbid mutations in dry-run (#500) (f1017f3), closes #499
    • logs: coloured logs (#465) (5fbbfba)
    • operations: fail fast the current batch to respect the operations limit (#474) (5f6f311), closes #466
    • label comparison: make label comparison case insensitive #517, closes #516
    • filtering comments by actor could have strange behavior: "stale" comments are now detected based on if the message is the stale message not who made the comment(#519), fixes #441, #509, #518

    Breaking Changes

    • The options skip-stale-issue-message and skip-stale-pr-message were removed. Instead, setting the options stale-issue-message and stale-pr-message will be enough to let the stale workflow add a comment. If the options are unset, a comment will not be added which was the equivalent of setting skip-stale-issue-message to true.
    • The operations-per-run option will be more effective. After migrating, you could face a failed-fast process workflow if you let the default value (30) or set it to a small number. In that case, you will see a warning at the end of the logs (if enabled) indicating that the workflow was stopped sooner to avoid consuming too much API calls. In most cases, you can just increase this limit to make sure to process everything in a single run.

    v3.0.19

    • Enhance logs to provide more detailed output
    • Split certain options to be more granular for Pull Requests vs Issues:
      • any-of-issue-labels
      • any-of-pr-labels
      • remove-issue-stale-when-updated
      • remove-pr-stale-when-updated
    • Dependency updates

    v3.0.18

    • Add any-of-labels option
    • Add only-issue-labels, only-pr-labels
    • Clean up, testing and dependency version bumps

    v3.0.17

    • Bug fixes, refactoring and milestone exemption

    v3.0.16

    • Minor bugfixes and logging improvements

    v3.0.15

    • Add milestone exemption
    • Add start date filtering
    • Add conditional days before close to different types of issues
    • Better logging and updated dependencies

    v3.0.14

    ... (truncated)

    Changelog

    Sourced from actions/stale's changelog.

    4.0.0 (2021-07-14)

    Features

    Bug Fixes

    • dry-run: forbid mutations in dry-run (#500) (f1017f3), closes #499
    • logs: coloured logs (#465) (5fbbfba)
    • operations: fail fast the current batch to respect the operations limit (#474) (5f6f311), closes #466
    • label comparison: make label comparison case insensitive #517, closes #516
    • filtering comments by actor could have strange behavior: "stale" comments are now detected based on if the message is the stale message not who made the comment(#519), fixes #441, #509, #518

    Breaking Changes

    • The options skip-stale-issue-message and skip-stale-pr-message were removed. Instead, setting the options stale-issue-message and stale-pr-message will be enough to let the stale workflow add a comment. If the options are unset, a comment will not be added which was the equivalent of setting skip-stale-issue-message to true.
    • The operations-per-run option will be more effective. After migrating, you could face a failed-fast process workflow if you let the default value (30) or set it to a small number. In that case, you will see a warning at the end of the logs (if enabled) indicating that the workflow was stopped sooner to avoid consuming too much API calls. In most cases, you can just increase this limit to make sure to process everything in a single run.
    Commits
    • cdf15f6 Prep for v4 (#510)
    • a78d0b7 Make label comparison case insensitive (#517)
    • d901397 Filter comments by content instead of actor (#519)
    • 678bfc7 docs(readme): update the permissions docs to reflect the requirements of the ...
    • d3bfc50 Revert "feat(options): add new options to avoid stale base on comments (#494)...
    • f2ae27a build(deps-dev): bump @​typescript-eslint/parser from 4.22.1 to 4.26.1 (#496)
    • 4d1e45b build(deps-dev): bump typescript from 4.2.4 to 4.3.2 (#490)
    • 92d4fc6 📝 Add requested permissions (#492)
    • 1efddcb feat(options): add new options to avoid stale base on comments (#494)
    • f1017f3 fix(dry-run): forbid mutations in dry-run (#500)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions stale 
    opened by dependabot[bot] 2
  • chore(deps-dev): bump husky from 4.3.8 to 5.0.9

    chore(deps-dev): bump husky from 4.3.8 to 5.0.9

    Bumps husky from 4.3.8 to 5.0.9.

    Release notes

    Sourced from husky's releases.

    v5.0.9

    • fix(install): do not fail if not inside a Git directory (closes #851)

    See https://github.com/typicode/husky/releases/tag/v5.0.0 for v5 release notes

    v5.0.8

    • fix(install): better handle Git <2.9 (#846) closes #844

    v5.0.7

    • fix(shell): double quote params (#824)

    v5.0.6

    • Remove unused files

    v5.0.5

    • Fix custom directory support #827

    v5.0.0

    👉 See https://typicode.github.io/husky for breaking changes and new installation instructions.

    Note about the license

    Husky 5 is released under The Parity Public License.

    It doesn't affect you if you're using husky in an Open Source project or if you're a sponsor. You're free to use it as usual and I hope you'll enjoy this new release ❤️

    If you're using husky in a commercial project, you may want to consider becoming a sponsor to support the project. You can also try it for 30 days.

    This is only for a limited time, husky will be MIT again later.

    Migrating

    Important Husky v5 brings a lot of improvements but is also very different from v4. Git hooks won't work if you only upgrade husky dependency, existing config needs to be migrated too.

    The best way to switch to v5 is to follow the new installation instructions and migrate existing hooks command using husky add.

    v5.0.0-alpha.5

    No release notes provided.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
  • chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.17 in /example

    chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.17 in /example

    Bumps vue-tsc from 1.0.14 to 1.0.17.

    Changelog

    Sourced from vue-tsc's changelog.

    1.0.17 (2022/12/26)

    • feat: support syntax highlighting for lang="json5" (#2244)
    • feat: support for generating virtual file from multiple sources (#2253)
    • feat: display mapping data on hover for virtual document
    • feat: re-support component semantic token (#2252)
    • fix(vue-tsc): cannot resolve hook path from extends options
    • fix: fixed workspace configs caching not working edge case (#2062)
    • fix: cannot find volar.config.js for sub folder tsconfig project
    • fix: emmet abbreviation suggestion keeps disappearing every third letter (#2240)
    • fix: {{ }} colorizedBracketPairs not working (#1759)
    • fix: fixed volar-base language servers executePluginCommand duplicate registration error
    • fix: avoid throw on un-exist workspace folder (#2039)
    • fix: ignore class, style attrs when v-bind exist (#2166)
    • fix: functional component type check not working when return type includes props property (#2206)
    • fix: v-slot error when noPropertyAccessFromIndexSignature is enabled (#2236)
    • fix: skipTemplateCodegen should ignore template slots emit (#2237)
    • fix: recursive closing of html tag edge cases (#2238) (#2247)
    • fix: double quotes not allowed in attribute value (#2250)
    • perf: embedded files on demand calculation not working

    Out Gold Sponsors

    Out Silver Sponsors

    1.0.16 (2022/12/20)

    • feat(component-meta): make schema.ignore accept functions (#2232)
    • feat: add volar.icon.splitEditors setting (#2163)
    • feat: support twoslash queries in .ts when using takeover mode
    • fix: fixed typescript-vue-plugin performance regression (#2228)
    • fix: deleting space for {{ |}} become {{ | }} (#2222)
    • fix: dynamic slot name type <slot :name="(name as 'a' | 'b')" /> not working (#2233)
    • fix: typed template slots missing when template only exist dynamic slots (#2233)
    • fix: fixed template Type 'void' has no call signatures errors (#2225)
    • fix(vue-tsc): shim vue-tsc/out/proxy.js for vite-plugin-checker (fi3ework/vite-plugin-checker#193)
    • perf: rewrite typescript-vue-plugin for much better performance and fixed path resolve edge case (#2137)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.17

    chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.17

    Bumps vue-tsc from 1.0.14 to 1.0.17.

    Changelog

    Sourced from vue-tsc's changelog.

    1.0.17 (2022/12/26)

    • feat: support syntax highlighting for lang="json5" (#2244)
    • feat: support for generating virtual file from multiple sources (#2253)
    • feat: display mapping data on hover for virtual document
    • feat: re-support component semantic token (#2252)
    • fix(vue-tsc): cannot resolve hook path from extends options
    • fix: fixed workspace configs caching not working edge case (#2062)
    • fix: cannot find volar.config.js for sub folder tsconfig project
    • fix: emmet abbreviation suggestion keeps disappearing every third letter (#2240)
    • fix: {{ }} colorizedBracketPairs not working (#1759)
    • fix: fixed volar-base language servers executePluginCommand duplicate registration error
    • fix: avoid throw on un-exist workspace folder (#2039)
    • fix: ignore class, style attrs when v-bind exist (#2166)
    • fix: functional component type check not working when return type includes props property (#2206)
    • fix: v-slot error when noPropertyAccessFromIndexSignature is enabled (#2236)
    • fix: skipTemplateCodegen should ignore template slots emit (#2237)
    • fix: recursive closing of html tag edge cases (#2238) (#2247)
    • fix: double quotes not allowed in attribute value (#2250)
    • perf: embedded files on demand calculation not working

    Out Gold Sponsors

    Out Silver Sponsors

    1.0.16 (2022/12/20)

    • feat(component-meta): make schema.ignore accept functions (#2232)
    • feat: add volar.icon.splitEditors setting (#2163)
    • feat: support twoslash queries in .ts when using takeover mode
    • fix: fixed typescript-vue-plugin performance regression (#2228)
    • fix: deleting space for {{ |}} become {{ | }} (#2222)
    • fix: dynamic slot name type <slot :name="(name as 'a' | 'b')" /> not working (#2233)
    • fix: typed template slots missing when template only exist dynamic slots (#2233)
    • fix: fixed template Type 'void' has no call signatures errors (#2225)
    • fix(vue-tsc): shim vue-tsc/out/proxy.js for vite-plugin-checker (fi3ework/vite-plugin-checker#193)
    • perf: rewrite typescript-vue-plugin for much better performance and fixed path resolve edge case (#2137)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.16 in /example

    chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.16 in /example

    Bumps vue-tsc from 1.0.14 to 1.0.16.

    Changelog

    Sourced from vue-tsc's changelog.

    1.0.16 (2022/12/20)

    • feat(component-meta): make schema.ignore accept functions (#2232)
    • feat: add volar.icon.splitEditors setting (#2163)
    • feat: support twoslash queries in .ts when using takeover mode
    • fix: fixed typescript-vue-plugin performance regression (#2228)
    • fix: deleting space for {{ |}} become {{ | }} (#2222)
    • fix: dynamic slot name type <slot :name="(name as 'a' | 'b')" /> not working (#2233)
    • fix: typed template slots missing when template only exist dynamic slots (#2233)
    • fix: fixed template Type 'void' has no call signatures errors (#2225)
    • fix(vue-tsc): shim vue-tsc/out/proxy.js for vite-plugin-checker (fi3ework/vite-plugin-checker#193)
    • perf: rewrite typescript-vue-plugin for much better performance

    Special Sponsor

    Out Gold Sponsors

    Out Silver Sponsors

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.16

    chore(deps-dev): bump vue-tsc from 1.0.14 to 1.0.16

    Bumps vue-tsc from 1.0.14 to 1.0.16.

    Changelog

    Sourced from vue-tsc's changelog.

    1.0.16 (2022/12/20)

    • feat(component-meta): make schema.ignore accept functions (#2232)
    • feat: add volar.icon.splitEditors setting (#2163)
    • feat: support twoslash queries in .ts when using takeover mode
    • fix: fixed typescript-vue-plugin performance regression (#2228)
    • fix: deleting space for {{ |}} become {{ | }} (#2222)
    • fix: dynamic slot name type <slot :name="(name as 'a' | 'b')" /> not working (#2233)
    • fix: typed template slots missing when template only exist dynamic slots (#2233)
    • fix: fixed template Type 'void' has no call signatures errors (#2225)
    • fix(vue-tsc): shim vue-tsc/out/proxy.js for vite-plugin-checker (fi3ework/vite-plugin-checker#193)
    • perf: rewrite typescript-vue-plugin for much better performance

    Special Sponsor

    Out Gold Sponsors

    Out Silver Sponsors

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 1
Releases(v3.0.2)
  • v3.0.2(Nov 8, 2022)

  • v3.0.1(Nov 1, 2022)

  • v3.0.0(Nov 1, 2022)

    3.0.0 (2022-11-01)

    Bug Fixes

    • deps: bump actions/checkout from 2 to 3 (ab90cad)
    • deps: bump actions/setup-node from 2.5.1 to 3 (61efb5c)
    • deps: bump ejs from 3.1.6 to 3.1.7 (caba698)
    • deps: bump follow-redirects from 1.14.7 to 1.14.8 (c5693d7)
    • deps: bump minimist from 1.2.5 to 1.2.6 (553d053)
    • deps: bump terser from 5.10.0 to 5.14.2 (ef9da91)
    • deps: bump wearerequired/lint-action from 1 to 2 (c45744f)
    • remove old types directory (db42abc)
    • update vscode settings (fbe81be)

    Features

    Source code(tar.gz)
    Source code(zip)
  • v2.6.1(Jan 30, 2022)

    2.6.1 (2022-01-30)

    Bug Fixes

    • add support for stylelint with Vue (94ae13a)
    • builds use package.json defined config(s) (042ea89)
    • deps: bump actions/setup-node from 2.3.0 to 2.4.0 (2291947)
    • deps: bump actions/setup-node from 2.4.0 to 2.4.1 (0443f10)
    • deps: bump actions/setup-node from 2.4.1 to 2.5.0 (90b62f9)
    • deps: bump actions/setup-node from 2.5.0 to 2.5.1 (e93cc25)
    • deps: bump axios from 0.21.1 to 0.21.4 (82691e3)
    • deps: bump follow-redirects from 1.14.1 to 1.14.7 (c899184)
    • deps: bump nanoid from 3.1.23 to 3.2.0 (e897bf6)
    • deps: bump node-fetch from 2.6.1 to 2.6.7 (505a19b)
    Source code(tar.gz)
    Source code(zip)
  • v2.6.0(Jul 31, 2021)

  • v2.5.1(Jul 21, 2021)

  • v2.5.0(Jul 20, 2021)

    2.5.0 (2021-07-20)

    Bug Fixes

    • add support for eslint-plugin-prettier (5193427)
    • add vue shims for TS intellisense (f4a58d7)
    • deps: bump browserslist from 4.16.3 to 4.16.6 (d859b90)
    • deps: bump elliptic from 6.5.2 to 6.5.3 (b966237)
    • deps: bump elliptic from 6.5.3 to 6.5.4 (7b89f5b)
    • deps: bump hosted-git-info from 2.8.8 to 2.8.9 (732dbbd)
    • deps: bump ini from 1.3.5 to 1.3.7 (c08c0f4)
    • deps: bump lodash from 4.17.15 to 4.17.19 (a683425)
    • deps: bump lodash from 4.17.19 to 4.17.21 (d068634)
    • deps: bump node-fetch from 2.6.0 to 2.6.1 (873b045)
    • deps: bump pug-code-gen from 2.0.2 to 2.0.3 (b73e5a1)
    • deps: bump serialize-javascript from 3.0.0 to 3.1.0 (f920adf)
    • deps: bump socket.io from 2.3.0 to 2.4.1 (19da8c1)
    • deps: bump ws from 7.4.4 to 7.4.6 (1942045)
    • deps: bump y18n from 4.0.0 to 4.0.1 (d31f5e3)
    • remove example (1051175)
    • update ESLint config file 👨‍🔧 (c7ea33b)

    Features

    • add ship.config.js 🥳 (077158d)
    • add stylelint config 🥳 (b202e3f)
    • make it a plugin alongside a component (b244de3)
    • ts: export typings for VImage (21fa4b5)
    • ts: init ts using tsconfig.json ✨ (1ab2985)

    Source code(tar.gz)
    Source code(zip)
  • v2.0.2(May 25, 2020)

  • v2.0.1(Apr 12, 2020)

  • v2.0.0(Apr 11, 2020)

  • v1.3.0(Apr 6, 2020)

  • 1.1.0(Mar 17, 2019)

  • 1.0.10(Sep 27, 2017)

    • [x] RemoveImage event responsible for notifying user the image is removed.
    • [x] placeholder prop added so a developer can use whatever prop he/she wants to use instead of the hard-coded one.

    All credits to @andreasvirkus for this updated version.

    Source code(tar.gz)
    Source code(zip)
  • 1.0.9(Sep 25, 2017)

  • 1.0.8(Sep 22, 2017)

    V-Image :camera: github release npm version Build Status npm downloads

    • This is on GitHub so let me know if I've b0rked it somewhere, give me a star :star: if you like it :beers:
    • Demo here -> v-image

    :white_check_mark: Install :ok_hand:

    npm i v-image
    // or 
    yarn add v-image
    

    :white_check_mark: Usage :mortar_board:

    Register the component globally:

    Vue.component('vImage', require('v-image'));
    

    Or use locally

    import vImage from 'v-image';
    

    :white_check_mark: Example :four_leaf_clover:

      <v-image alt="Alt Text for the Image" :name="'my-awesome-image'" :img-style="myStyle" @load-image="localVariable"></v-image>
    
    import vImage from 'v-image';
    export default {
      components: { vImage },
      methods: {
        localVariable(imageSentFromComponent) {
          this.image = imageSentFromComponent;
        },
      },
      data() {
        return {
          image: '',
          myStyle: {
            height: '200px',
            width: '200px',
          },
        };
      },
    };
    

    :white_check_mark: :book: Props:

    | Name | Type | Required? | Description | | --- | --- | --- | --- | | name | String | Yes | For name attribute for the input field. | | alt | String | No | For alt attribute for the input field, mostly for proper SEO. | | imgStyle | Object | No | Styling for the img tag. | | buttonStyle | Object | No | Styling for the button & label tag. |

    :white_check_mark: :ear: Events:

    • load-image (load the base64 to your custom component's variable (see example)) [default: ""]

    NPM :octocat:

    NPM

    Source code(tar.gz)
    Source code(zip)
Owner
Vinayak Kulkarni
Never stop learning, cause life never stops teaching. ❤️ FOSS
Vinayak Kulkarni
:bookmark: Vue.js 2.0 Input Tag Component

vue-input-tag A Vue.js 2.0 input tag component inspired in react-tagsinput Installation NPM / Yarn npm install vue-input-tag --save yarn add vue-input

Mati Tucci 542 Oct 9, 2022
An image input preview component in vuejs2

Vue-img-preview This is a minimal image preview implementation that does only one thing; give users feedback by showing image chosen from a file input

Dammy 18 Nov 24, 2022
A versetile tag input component built with Vue 3 Composition API

TagInput A versetile tag input component built with Vue 3 Composition API. live demo Please checkout our Vue JS course Use code HAPPY_LEARNING or get

Mayank 12 Oct 12, 2022
A simple tags input with typeahead (autocomplete) built with Vue.js 2.

Voerro Vue Tags Input v2 A simple tags input with typeahead built with Vue.js 2. Live Demo Installation via NPM npm i @voerro/vue-tagsinput --save-dev

Voerro 454 Dec 24, 2022
A simple tag selector as a vue component.

Vue-tag-selector is a component for vuejs for tag type fields. Light (6.3kb gzipped) and customizable. Offering regex validation. Check out the demo I

Tom Quinonero 13 Nov 24, 2022
A simple to use, but extensive, camera component for Vue 3 with Typescript support to create great camera experiences.

A simple to use, but extensive, camera component for Vue 3 with Typescript support to create great camera experiences.

Bastiaan Jansen 28 Jan 2, 2023
This project allows each person to write down their goals. You can add multiple lists that you want to run. After you complete a goal from the list, you can delete it.

This project allows each person to write down their goals. You can add multiple lists that you want to run. After you complete a goal from the list, you can delete it.

null 2 May 22, 2021
Iconic is a free “do wtf you want with” set of pixel-perfect icons. Available as basic SVG icons and via first-party React and Vue libraries.

Iconic is a free “do wtf you want with” set of pixel-perfect icons. Available as basic SVG icons and via first-party React and Vue libraries.

Make Lemonade 289 Dec 31, 2022
vue-props-type - Helps to define the props type.

Vue Props Type (Translated by DeepL The Vue Props Type helps to define the props type in Vue.js. Why If you want to use composition-api, you need to w

null 20 Jun 22, 2022
Alex Vipond 3 Jan 31, 2022
The same features you expect from `input type="text"` but in a `contenteditable` Vue component

vue-input-contenteditable Make beautiful inputs without the restrictions of input[type='text']. A Vue component wrapper for contenteditable with all t

Cobertos / Samantha 19 Oct 12, 2022
Vue2 component, that allows you to drag object wherever you want

vue-drag-it-dude Vue2 component, that allows you to drag object wherever you want What this can do Drag and drop DOM elements inside parent (or docume

Max Novikov 74 Nov 24, 2022
A visualizer for pathfinding algorithms in 3D with maze generation, first-person view and device camera input.

Pathfinding Visualizer ThreeJS ?? Software Engineering Project Contest winner on AlgoExpert ?? A Visualizer for pathfinding algorithms in 3D. Live Dem

Dhruv Misra 365 Dec 14, 2022
Tiny (2k gzipped) and dependency free mask input for Vue.js

The Mask A lightweight (2KB gzipped) and dependency free mask input created specific for Vue.js Docs and Demo JsFiddle Install yarn add vue-the-mask o

Vue.js Tips 1.6k Dec 29, 2022
My personal website. Base on Vite 2.0 and Vue 3.0. If you want to know how to use Vite to develop a project, you can refer to this repository.

chengpeiquan.com My personal website. Base on Vite 2.0 and Vue 3.0. You can see Rewrite in vite to learn more. Architecture License MIT License © 2021

chengpeiquan 39 Dec 11, 2022
Send your loved ones a vibe with a lovely sound, so they know you miss them. Anytime you want to, anywhere they are.

An app to send your loved one a vibration with a lovely sound, so they know you miss them. Anytime you want to, anywhere they are.

fotiecodes 32 Aug 6, 2022
Shamim Hossain 53 Dec 21, 2022
It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.

jQuery Version ES6 Version Web Components Version Angular Version -- the most space-saving solution React Version Foreword First of all, thanks a lot

Xuebin Dong 256 Dec 26, 2022
webpack loader, loads the .md file and returns the webpack loader that contains the content string in the file to achieve the function of making webpack load the .md file

webpack loader, loads the .md file and returns the webpack loader that contains the content string in the file to achieve the function of making webpack load the .md file

socialuni 0 Dec 28, 2020
A Vue.js (>= 3.2) web component that wraps around an html input of type 'range' with label and styling options.

range-comp range-comp is Vue.js (>= 3.2) web component that wraps around an html input of type 'range' with label and styling options. range-comp can

null 0 May 9, 2022