Coder Social home page Coder Social logo

wolfika / vue-playing-card Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 6.0 4.65 MB

๐Ÿƒ Simple Vue component for displaying playing cards from a standard 52-card French deck

License: MIT License

JavaScript 59.18% Vue 40.82%
playing-cards french-deck poker vuejs2 vuejs-components javascript

vue-playing-card's People

Contributors

dependabot[bot] avatar wolfika avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-playing-card's Issues

Smaller Sprite

Hi Mรกtรฉ,

Firstly, thanks for vue-playing-card. It has powered my Covid project which came to some level of maturity. (Had the idea of doing it only during Covid period. Since that period extending I kept building :) ) If you want to have a look check out https://kagitoyna.com/ Not in English but it is not text-rich anyway.

I am looking for ways to optimize this now and the sprite size is the biggest bottleneck I have. Tried reducing it by forking your project but to no avail. Can you provide an option for a smaller sprite or guide me how I can do it?

Error using Width/Height properties

Hi, I've got the error " Invalid prop: custom validator check failed for prop "width"."
I'm just using
<vue-playing-card class="card" :signature="signature" width="300"></vue-playing-card> What's the pb please ?

Can't get Card Component to Render

Having some trouble getting the component to render; just added <vue-playing-card cover /> as a first test, and am getting an error out of vue-playing-card.min.js:

TypeError: e.component is not a function
    at n (vue-playing-card.min.js?c183:6)
    at resolveAsyncComponent (vue.runtime.esm.js?2b0e:3686)
    at createComponent (vue.runtime.esm.js?2b0e:3200)
    at _createElement (vue.runtime.esm.js?2b0e:3422)
    at createElement (vue.runtime.esm.js?2b0e:3353)
    at vm._c (vue.runtime.esm.js?2b0e:3491)
    at Proxy.render (eval at ./node_modules/cache-loader/dist/cjs.js?
        {"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ec0d15-vue-loader-template"}!
        ./node_modules/vue-loader/lib/loaders/templateLoader.js?!
        ./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!
        ./src/components/CardFlip.vue?vue&type=template&id=9c661d66& (app.js:986), <anonymous>:8:21)
    at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3548)
    at VueComponent.updateComponent (vue.runtime.esm.js?2b0e:4066)
    at Watcher.get (vue.runtime.esm.js?2b0e:4479)

Am I doing something weird here? Any help would be appreciated!

<template>
    <div>
        <vue-playing-card cover />
    </div>
</template>

<script>
import VuePlayingCard from 'vue-playing-card';

export default {
    components: {
        VuePlayingCard,
    },
}
</script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.