diff --git a/.babelrc b/.babelrc deleted file mode 100644 index b76bd21..0000000 --- a/.babelrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "presets": [ - ["@babel/preset-env",{ - "modules": false, - "loose": true - }] - ], - "plugins": [ - "transform-vue-jsx" - ] -} diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..5e1f81e --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: egoist +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b2095be --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "semi": false, + "singleQuote": true +} diff --git a/.storybook/config.js b/.storybook/config.js deleted file mode 100644 index e79b8fd..0000000 --- a/.storybook/config.js +++ /dev/null @@ -1,8 +0,0 @@ -import { configure } from '@storybook/vue' - -function loadStories() { - // You can require as many stories as you need. - require('../stories') -} - -configure(loadStories, module) diff --git a/.storybook/manager.ejs b/.storybook/manager.ejs deleted file mode 100644 index 516d83a..0000000 --- a/.storybook/manager.ejs +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (htmlWebpackPlugin.options.description) { %> - - <% } %> - - - - - -
- - - diff --git a/.storybook/poi.config.js b/.storybook/poi.config.js deleted file mode 100644 index 6971069..0000000 --- a/.storybook/poi.config.js +++ /dev/null @@ -1,15 +0,0 @@ -const path = require('path') - -// poi.config.js -module.exports = { - // Use your storybook config as entry - entry: '.storybook/config.js', - outDir: '.storybook/dist', - // If you want storybook addons: - // entry: ['.storybook/config.js', '.storybook/addons.js'] - plugins: [ - require('@poi/plugin-storybook')({ - managerTemplate: path.join(__dirname, 'manager.ejs') - }) - ] -} diff --git a/README.md b/README.md index 9a633ea..51fb868 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ SVG component to create placeholder loading, like Facebook cards loading. This is a Vue port for [react-content-loader](https://github.com/danilowoz/react-content-loader). - Completely customizable: you can change the colors, speed and sizes. -- Create your own loading: use the [online tool](https://danilowoz.github.io/create-react-content-loader/) to create your custom loader easily. +- Create your own loading: use the [online tool](https://create-content-loader.now.sh/) to create your custom loader easily. - You can use it right now: there are a lot of presets already. - Performance: - Tree-shakable and highly optimized bundle. @@ -20,6 +20,16 @@ This is a Vue port for [react-content-loader](https://github.com/danilowoz/react ## Install +⚠️ **The latest version is compatible with Vue 3 only.** For Vue 2 & Nuxt 2, use `vue-content-loader@^0.2` instead. + +With npm: + +```bash +npm i vue-content-loader +``` + +Or with yarn: + ```bash yarn add vue-content-loader ``` @@ -28,7 +38,7 @@ CDN: [UNPKG](https://unpkg.com/vue-content-loader/) | [jsDelivr](https://cdn.jsd ## Usage -👀👉 Demos: [Storybook](https://vue-content-loader.egoist.moe) | [with Nuxt.js](https://glitch.com/edit/#!/vue-content-loader) +👀👉 Demo: [CodeSandbox](https://codesandbox.io/s/vue-content-loader-igfyf?file=/src/App.vue) ```vue