{"_id":"@chenghuichao/vue-components","_rev":"2-ec6e30a729985ab52c62928f0d9bda6c","name":"@chenghuichao/vue-components","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@chenghuichao/vue-components","version":"1.0.0","description":"Vue components for website development.","main":"dist/huichao-vue-components.ssr.js","browser":"dist/huichao-vue-components.esm.js","module":"dist/huichao-vue-components.esm.js","unpkg":"dist/huichao-vue-components.min.js","keywords":["vue","nuxt","component","scroll to top","i18n","lang switcher"],"sideEffects":false,"scripts":{"serve":"vue-cli-service serve dev/serve.js","prebuild":"rimraf ./dist","build":"cross-env NODE_ENV=production rollup --config build/rollup.config.js","build:ssr":"cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs","build:es":"cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es","build:unpkg":"cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"},"dependencies":{},"devDependencies":{"@babel/core":"^7.14.6","@babel/preset-env":"^7.14.7","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^14.0.0","@rollup/plugin-node-resolve":"^9.0.0","@rollup/plugin-replace":"^2.4.2","@vue/cli-plugin-babel":"^4.5.13","@vue/cli-service":"^4.5.13","cross-env":"^7.0.3","minimist":"^1.2.5","rimraf":"^3.0.2","rollup":"^2.52.8","rollup-plugin-terser":"^7.0.2","rollup-plugin-vue":"^5.1.9","vue":"^2.6.14","vue-template-compiler":"^2.6.14"},"peerDependencies":{"vue":"^2.6.14"},"engines":{"node":">=12"},"_id":"@chenghuichao/vue-components@1.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-gcNOUuuKf5zYY10agtBW6Vd/7+A4Llnwcb8Zpfz9xi2kF3UrUSmB5uYlpLJQNBRdyP+sb72nVFCbzlpvOM8kPA==","shasum":"60e05e0b103d79cd0079f7093e937f64541f67ac","tarball":"https://registry.npmjs.org/@chenghuichao/vue-components/-/vue-components-1.0.0.tgz","fileCount":7,"unpackedSize":34197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/MoNAgJCeKgG5b0btye8SVLI2/+mwCK2jXDCfBho6pwIgBo48xtPvEGbi1mjj8GhuG5Mc/dukfcWcAbOSX6lqRcs="}]},"_npmUser":{"name":"chenghuichao","email":"cheng.huichao@yahoo.com"},"directories":{},"maintainers":[{"name":"chenghuichao","email":"cheng.huichao@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-components_1.0.0_1634792569698_0.06522374699512556"},"_hasShrinkwrap":false},"1.0.1":{"name":"@chenghuichao/vue-components","version":"1.0.1","description":"Vue components for website development.","main":"dist/huichao-vue-components.ssr.js","browser":"dist/huichao-vue-components.esm.js","module":"dist/huichao-vue-components.esm.js","unpkg":"dist/huichao-vue-components.min.js","keywords":["vue","nuxt","component","scroll to top","i18n","lang switcher"],"sideEffects":false,"scripts":{"serve":"vue-cli-service serve dev/serve.js","prebuild":"rimraf ./dist","build":"cross-env NODE_ENV=production rollup --config build/rollup.config.js","build:ssr":"cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs","build:es":"cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es","build:unpkg":"cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"},"dependencies":{},"devDependencies":{"@babel/core":"^7.14.6","@babel/preset-env":"^7.14.7","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^14.0.0","@rollup/plugin-node-resolve":"^9.0.0","@rollup/plugin-replace":"^2.4.2","@vue/cli-plugin-babel":"^4.5.13","@vue/cli-service":"^4.5.13","cross-env":"^7.0.3","minimist":"^1.2.5","rimraf":"^3.0.2","rollup":"^2.52.8","rollup-plugin-terser":"^7.0.2","rollup-plugin-vue":"^5.1.9","vue":"^2.6.14","vue-template-compiler":"^2.6.14"},"peerDependencies":{"vue":"^2.6.14"},"engines":{"node":">=12"},"_id":"@chenghuichao/vue-components@1.0.1","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-L8Ou1d7VRbnvYznAQEj2vDq5DcqB9t43BuvhYNgAXGSxiYrbBY4928+zx50HGRbDbCf1iTV7ecPv0vx+UeWh6A==","shasum":"48c36e7f0ba1d33ff91591e6bc00bf03b5acb192","tarball":"https://registry.npmjs.org/@chenghuichao/vue-components/-/vue-components-1.0.1.tgz","fileCount":7,"unpackedSize":34269,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmaLGuouhwYEw8GP4e4ea20juz9b5SLJ6XVLMX6bcfnAiEAjjTWhsQoG3Ei/RFRlgGARGHtnY4vlnRKE+P9zLYdY00="}]},"_npmUser":{"name":"chenghuichao","email":"cheng.huichao@yahoo.com"},"directories":{},"maintainers":[{"name":"chenghuichao","email":"cheng.huichao@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-components_1.0.1_1634793241220_0.027164011818656686"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-21T05:02:49.647Z","1.0.0":"2021-10-21T05:02:50.259Z","modified":"2022-04-04T22:39:02.418Z","1.0.1":"2021-10-21T05:14:01.436Z"},"maintainers":[{"name":"chenghuichao","email":"cheng.huichao@yahoo.com"}],"description":"Vue components for website development.","keywords":["vue","nuxt","component","scroll to top","i18n","lang switcher"],"readme":"# @huichao/vue-components\n\nVue components for vue & nuxt.\n\nmore components are coming soon.\n\n## 1. w-scroll-to-top\n\n```vue\n# defaults: offset = 100px\n# at bottom right\n<w-scroll-to-top></w-scroll-to-top>\n```\n\n```vue\n# 1. change the offset from top\n# 2. add custom css classes to `cssCls`\n<w-scroll-to-top offset=\"200\" cssCls=\"fixed bottom-10 right-10 z-10\"></w-scroll-to-top>\n```\n\n```vue\n# user slot, put your code inside the tag.\n\n<w-scroll-to-top>\n  <span>Top</span>\n</w-scroll-to-top>\n\n<w-scroll-to-top>\n  <img src=\"/myimage.svg\" width=\"10px\" height=\"10px\">\n</w-scroll-to-top>\n```\n\n## 2. w-lang-switcher\nnuxt-i18n installed and configed.\n\n```js\n  modules: [\n    'nuxt-i18n',\n    '@nuxtjs/gtm',\n  ],\n  i18n: {\n    locales: [\n      {\n        code: 'en',\n        iso: 'en-US',\n        name: 'Eng',\n        file: 'en.json',\n      },\n      {\n        code: 'ch',\n        iso: 'zh-CN',\n        name: '中文',\n        file: 'ch.json',\n      },\n      {\n        code: 'ind',\n        iso: 'id-ID',\n        name: 'BH',\n        file: 'ind.json',\n      },\n    ],\n    defaultLocale: 'en',\n    lazy: true,\n    langDir: 'lang/',\n    baseUrl: 'https://domain',\n    detectBrowserLanguage: {\n      onlyOnRoot: true,\n      redirectOn: 'root',\n    },\n    seo: true,\n\n  }\n\n```\n\n```vue\n<w-lang-switcher :label=\"$t('global.lang')\"/>\n```\n\n```vue\nadd css classes.\n<w-lang-switcher :label=\"$t('global.lang')\"\n    css-wrapper=\"flex items-center space-x-4 text-black\" \n    css-languages=\"flex items-center space-x-4 divide-x divide-white\"\n    css-lang-active=\"text-bold underline\"\n/>\n```\n\n","readmeFilename":"readme.md"}