This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
yarn add vue-client-only
```
> __This branch is for latest version, switch to [1.x](https://github.com/egoist/vue-client-only/tree/1.x) branch for the `vue-no-ssr` docs.__
> __This project is previously known as *vue-no-ssr*, switch to [1.x](https://github.com/egoist/vue-client-only/tree/1.x) branch for the old docs.__
## Usage
+2 -2
View File
@@ -1,6 +1,6 @@
/*!
* vue-client-only v2.0.0
* (c) 2019-present egoist <0x142857@gmail.com>
* vue-client-only v0.0.0-semantic-release
* (c) 2021-present egoist <0x142857@gmail.com>
* Released under the MIT License.
*/
'use strict';
+2 -2
View File
@@ -1,6 +1,6 @@
/*!
* vue-client-only v2.0.0
* (c) 2019-present egoist <0x142857@gmail.com>
* vue-client-only v0.0.0-semantic-release
* (c) 2021-present egoist <0x142857@gmail.com>
* Released under the MIT License.
*/
(function (global, factory) {
+2 -2
View File
@@ -1,6 +1,6 @@
/*!
* vue-client-only v2.0.0
* (c) 2019-present egoist <0x142857@gmail.com>
* vue-client-only v0.0.0-semantic-release
* (c) 2021-present egoist <0x142857@gmail.com>
* Released under the MIT License.
*/
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.ClientOnly=n()}(this,function(){"use strict";return{name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,n){var o=n.parent,t=n.slots,l=n.props,r=t(),d=r.default;void 0===d&&(d=[]);var a=r.placeholder;return o._isMounted?d:(o.$once("hook:mounted",function(){o.$forceUpdate()}),l.placeholderTag&&(l.placeholder||a)?e(l.placeholderTag,{class:["client-only-placeholder"]},l.placeholder||a):d.length>0?d.map(function(){return e(!1)}):e(!1))}}});
+21 -14
View File
@@ -1,32 +1,32 @@
{
"_args": [
[
"vue-client-only@2.0.0",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"vue-client-only@2.1.0",
"/home/node/nuxt"
]
],
"_from": "vue-client-only@2.0.0",
"_id": "vue-client-only@2.0.0",
"_from": "vue-client-only@2.1.0",
"_id": "vue-client-only@2.1.0",
"_inBundle": false,
"_integrity": "sha512-arhk1wtWAfLsJyxGMoEYhoBowM87/i6HLSG2LH/03Yog6i2d9JEN1peMP0Ceis+/n9DxdenGYZZTxbPPJyHciA==",
"_integrity": "sha512-vKl1skEKn8EK9f8P2ZzhRnuaRHLHrlt1sbRmazlvsx6EiC3A8oWF8YCBrMJzoN+W3OnElwIGbVjsx6/xelY1AA==",
"_location": "/vue-client-only",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "vue-client-only@2.0.0",
"raw": "vue-client-only@2.1.0",
"name": "vue-client-only",
"escapedName": "vue-client-only",
"rawSpec": "2.0.0",
"rawSpec": "2.1.0",
"saveSpec": null,
"fetchSpec": "2.0.0"
"fetchSpec": "2.1.0"
},
"_requiredBy": [
"/@nuxt/vue-app"
],
"_resolved": "https://registry.npmjs.org/vue-client-only/-/vue-client-only-2.0.0.tgz",
"_spec": "2.0.0",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/vue-client-only/-/vue-client-only-2.1.0.tgz",
"_spec": "2.1.0",
"_where": "/home/node/nuxt",
"author": {
"name": "egoist",
"email": "0x142857@gmail.com"
@@ -38,12 +38,17 @@
"description": "Vue component to wrap non SSR friendly components",
"devDependencies": {
"bili": "^0.16.0-rc.1",
"dtslint": "^4.1.0",
"eslint-config-rem": "^3.0.0",
"poi": "^9.3.1",
"tsd": "^0.16.0",
"typescript": "^4.3.2",
"vue": "^2.6.13",
"xo": "^0.18.0"
},
"files": [
"dist"
"dist",
"types/index.d.ts"
],
"homepage": "https://github.com/egoist/vue-client-only#readme",
"license": "MIT",
@@ -64,10 +69,12 @@
"example": "poi",
"lint": "xo",
"prepublish": "npm run build",
"test": "echo 'no tests!' && npm run lint"
"test": "echo 'no tests!' && npm run lint",
"types": "dtslint --localTs node_modules/typescript/lib types"
},
"types": "types/index.d.ts",
"unpkg": "dist/vue-client-only.min.js",
"version": "2.0.0",
"version": "2.1.0",
"xo": {
"extends": "rem/prettier",
"ignores": [
+10
View File
@@ -0,0 +1,10 @@
import { FunctionalComponentOptions } from 'vue';
export interface ClientOnlyProps {
placeholder?: string;
placeholderTag?: string;
}
declare const ClientOnly: FunctionalComponentOptions<ClientOnlyProps>;
export default ClientOnly;