@vuecs/gravatar 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/component.d.ts +5 -5
- package/dist/component.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @vuecs/gravatar 📷
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/@vuecs%2Fgravatar)
|
|
4
|
+
[](https://github.com/Tada5hi/vuecs/actions/workflows/main.yml)
|
|
5
5
|
|
|
6
6
|
A package containing a gravatar component.
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ A package containing a gravatar component.
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
$ npm i --save @
|
|
17
|
+
$ npm i --save @vuecs/gravatar
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
@@ -22,7 +22,7 @@ $ npm i --save @vue-layout/gravatar
|
|
|
22
22
|
Register the plugin.
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import install from '@
|
|
25
|
+
import install from '@vuecs/gravatar';
|
|
26
26
|
import { createApp } from 'vue'
|
|
27
27
|
|
|
28
28
|
const app = createApp({})
|
package/dist/component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VCGravatar: import("vue").DefineComponent<{
|
|
1
|
+
export declare const VCGravatar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
email: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -31,9 +31,9 @@ export declare const VCGravatar: import("vue").DefineComponent<{
|
|
|
31
31
|
type: StringConstructor;
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
|
-
}
|
|
34
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
35
|
[key: string]: any;
|
|
36
|
-
}>,
|
|
36
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
37
|
email: {
|
|
38
38
|
type: StringConstructor;
|
|
39
39
|
default: string;
|
|
@@ -66,7 +66,7 @@ export declare const VCGravatar: import("vue").DefineComponent<{
|
|
|
66
66
|
type: StringConstructor;
|
|
67
67
|
default: string;
|
|
68
68
|
};
|
|
69
|
-
}
|
|
69
|
+
}>> & Readonly<{}>, {
|
|
70
70
|
email: string;
|
|
71
71
|
hash: string;
|
|
72
72
|
size: number;
|
|
@@ -75,5 +75,5 @@ export declare const VCGravatar: import("vue").DefineComponent<{
|
|
|
75
75
|
alt: string;
|
|
76
76
|
protocol: string;
|
|
77
77
|
hostname: string;
|
|
78
|
-
}, {}>;
|
|
78
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
79
79
|
//# sourceMappingURL=component.d.ts.map
|
package/dist/component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAyDrB,CAAC"}
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/component.ts","../src/index.ts"],"sourcesContent":["import md5 from 'md5';\nimport { computed, defineComponent, h } from 'vue';\n\nexport const VCGravatar = defineComponent({\n inheritAttrs: false,\n props: {\n email: {\n type: String,\n default: '',\n },\n hash: {\n type: String,\n default: '',\n },\n size: {\n type: Number,\n default: 80,\n },\n defaultImg: {\n type: String,\n default: 'retro',\n },\n rating: {\n type: String,\n default: 'g',\n },\n alt: {\n type: String,\n default: 'Avatar',\n },\n protocol: {\n type: String,\n default: '',\n },\n hostname: {\n type: String,\n default: 'www.gravatar.com',\n },\n },\n setup(props, ctx) {\n const url = computed(() => {\n const protocol = props.protocol.slice(-1) === ':' ?\n props.protocol :\n `${props.protocol}:`;\n const img = [\n `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,\n props.hash || md5(props.email.trim().toLowerCase()),\n `?s=${props.size}`,\n `&d=${props.defaultImg}`,\n `&r=${props.rating}`,\n ];\n return img.join('');\n });\n\n return () => h('img', {\n src: url.value,\n alt: props.alt,\n ...ctx.attrs,\n });\n },\n});\n","import type { App, Plugin, Ref } from 'vue';\n\nimport './vue';\n\n// Import vue components\nimport {\n VCGravatar,\n} from './component';\nimport type { Options } from './type';\n\nexport * from './component';\nexport * from './type';\n\nexport function install(instance: App, options: Options = {}) : void {\n instance.component('VCGravatar', VCGravatar);\n}\n\nexport default {\n install,\n} satisfies Plugin<Options | undefined>;\n"],"names":["VCGravatar","defineComponent","inheritAttrs","props","email","type","String","default","hash","size","Number","defaultImg","rating","alt","protocol","hostname","setup","ctx","url","computed","slice","img","md5","trim","toLowerCase","join","h","src","value","attrs","install","instance","options","component"],"mappings":";;;;;;;AAGO,MAAMA,aAAaC,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/component.ts","../src/index.ts"],"sourcesContent":["import md5 from 'md5';\nimport { computed, defineComponent, h } from 'vue';\n\nexport const VCGravatar = defineComponent({\n inheritAttrs: false,\n props: {\n email: {\n type: String,\n default: '',\n },\n hash: {\n type: String,\n default: '',\n },\n size: {\n type: Number,\n default: 80,\n },\n defaultImg: {\n type: String,\n default: 'retro',\n },\n rating: {\n type: String,\n default: 'g',\n },\n alt: {\n type: String,\n default: 'Avatar',\n },\n protocol: {\n type: String,\n default: '',\n },\n hostname: {\n type: String,\n default: 'www.gravatar.com',\n },\n },\n setup(props, ctx) {\n const url = computed(() => {\n const protocol = props.protocol.slice(-1) === ':' ?\n props.protocol :\n `${props.protocol}:`;\n const img = [\n `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,\n props.hash || md5(props.email.trim().toLowerCase()),\n `?s=${props.size}`,\n `&d=${props.defaultImg}`,\n `&r=${props.rating}`,\n ];\n return img.join('');\n });\n\n return () => h('img', {\n src: url.value,\n alt: props.alt,\n ...ctx.attrs,\n });\n },\n});\n","import type { App, Plugin, Ref } from 'vue';\n\nimport './vue';\n\n// Import vue components\nimport {\n VCGravatar,\n} from './component';\nimport type { Options } from './type';\n\nexport * from './component';\nexport * from './type';\n\nexport function install(instance: App, options: Options = {}) : void {\n instance.component('VCGravatar', VCGravatar);\n}\n\nexport default {\n install,\n} satisfies Plugin<Options | undefined>;\n"],"names":["VCGravatar","defineComponent","inheritAttrs","props","email","type","String","default","hash","size","Number","defaultImg","rating","alt","protocol","hostname","setup","ctx","url","computed","slice","img","md5","trim","toLowerCase","join","h","src","value","attrs","install","instance","options","component"],"mappings":";;;;;;;AAGO,MAAMA,aAAaC,mBAAAA,CAAgB;IACtCC,YAAAA,EAAc,KAAA;IACdC,KAAAA,EAAO;QACHC,KAAAA,EAAO;YACHC,IAAAA,EAAMC,MAAAA;YACNC,OAAAA,EAAS;AACb,SAAA;QACAC,IAAAA,EAAM;YACFH,IAAAA,EAAMC,MAAAA;YACNC,OAAAA,EAAS;AACb,SAAA;QACAE,IAAAA,EAAM;YACFJ,IAAAA,EAAMK,MAAAA;YACNH,OAAAA,EAAS;AACb,SAAA;QACAI,UAAAA,EAAY;YACRN,IAAAA,EAAMC,MAAAA;YACNC,OAAAA,EAAS;AACb,SAA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,EAAKV,MAAMU,GAAG;AACd,gBAAA,GAAGI,IAAIY;AACX,aAAA,CAAA;AACJ,IAAA;AACJ,CAAA;;AC/CO,SAASC,OAAAA,CAAQC,QAAa,EAAEC,OAAAA,GAAmB,EAAE,EAAA;IACxDD,QAAAA,CAASE,SAAS,CAAC,YAAA,EAAcjC,UAAAA,CAAAA;AACrC;AAEA,YAAe;AACX8B,IAAAA;AACJ,CAAA;;;;;;;;;"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/component.ts","../src/index.ts"],"sourcesContent":["import md5 from 'md5';\nimport { computed, defineComponent, h } from 'vue';\n\nexport const VCGravatar = defineComponent({\n inheritAttrs: false,\n props: {\n email: {\n type: String,\n default: '',\n },\n hash: {\n type: String,\n default: '',\n },\n size: {\n type: Number,\n default: 80,\n },\n defaultImg: {\n type: String,\n default: 'retro',\n },\n rating: {\n type: String,\n default: 'g',\n },\n alt: {\n type: String,\n default: 'Avatar',\n },\n protocol: {\n type: String,\n default: '',\n },\n hostname: {\n type: String,\n default: 'www.gravatar.com',\n },\n },\n setup(props, ctx) {\n const url = computed(() => {\n const protocol = props.protocol.slice(-1) === ':' ?\n props.protocol :\n `${props.protocol}:`;\n const img = [\n `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,\n props.hash || md5(props.email.trim().toLowerCase()),\n `?s=${props.size}`,\n `&d=${props.defaultImg}`,\n `&r=${props.rating}`,\n ];\n return img.join('');\n });\n\n return () => h('img', {\n src: url.value,\n alt: props.alt,\n ...ctx.attrs,\n });\n },\n});\n","import type { App, Plugin, Ref } from 'vue';\n\nimport './vue';\n\n// Import vue components\nimport {\n VCGravatar,\n} from './component';\nimport type { Options } from './type';\n\nexport * from './component';\nexport * from './type';\n\nexport function install(instance: App, options: Options = {}) : void {\n instance.component('VCGravatar', VCGravatar);\n}\n\nexport default {\n install,\n} satisfies Plugin<Options | undefined>;\n"],"names":["VCGravatar","defineComponent","inheritAttrs","props","email","type","String","default","hash","size","Number","defaultImg","rating","alt","protocol","hostname","setup","ctx","url","computed","slice","img","md5","trim","toLowerCase","join","h","src","value","attrs","install","instance","options","component"],"mappings":";;;AAGO,MAAMA,aAAaC,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/component.ts","../src/index.ts"],"sourcesContent":["import md5 from 'md5';\nimport { computed, defineComponent, h } from 'vue';\n\nexport const VCGravatar = defineComponent({\n inheritAttrs: false,\n props: {\n email: {\n type: String,\n default: '',\n },\n hash: {\n type: String,\n default: '',\n },\n size: {\n type: Number,\n default: 80,\n },\n defaultImg: {\n type: String,\n default: 'retro',\n },\n rating: {\n type: String,\n default: 'g',\n },\n alt: {\n type: String,\n default: 'Avatar',\n },\n protocol: {\n type: String,\n default: '',\n },\n hostname: {\n type: String,\n default: 'www.gravatar.com',\n },\n },\n setup(props, ctx) {\n const url = computed(() => {\n const protocol = props.protocol.slice(-1) === ':' ?\n props.protocol :\n `${props.protocol}:`;\n const img = [\n `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,\n props.hash || md5(props.email.trim().toLowerCase()),\n `?s=${props.size}`,\n `&d=${props.defaultImg}`,\n `&r=${props.rating}`,\n ];\n return img.join('');\n });\n\n return () => h('img', {\n src: url.value,\n alt: props.alt,\n ...ctx.attrs,\n });\n },\n});\n","import type { App, Plugin, Ref } from 'vue';\n\nimport './vue';\n\n// Import vue components\nimport {\n VCGravatar,\n} from './component';\nimport type { Options } from './type';\n\nexport * from './component';\nexport * from './type';\n\nexport function install(instance: App, options: Options = {}) : void {\n instance.component('VCGravatar', VCGravatar);\n}\n\nexport default {\n install,\n} satisfies Plugin<Options | undefined>;\n"],"names":["VCGravatar","defineComponent","inheritAttrs","props","email","type","String","default","hash","size","Number","defaultImg","rating","alt","protocol","hostname","setup","ctx","url","computed","slice","img","md5","trim","toLowerCase","join","h","src","value","attrs","install","instance","options","component"],"mappings":";;;AAGO,MAAMA,aAAaC,eAAAA,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AC,GAAG,EAAErB,KAAAA,CAAMM,IAAI,CAAA,CAAE;AAClB,gBAAA,CAAC,GAAG,EAAEN,KAAAA,CAAMQ,UAAU,CAAA,CAAE;AACxB,gBAAA,CAAC,GAAG,EAAER,KAAAA,CAAMS,MAAM,CAAA;AACrB,aAAA;YACD,OAAOS,GAAAA,CAAII,IAAI,CAAC,EAAA,CAAA;AACpB,QAAA,CAAA,CAAA;QAEA,OAAO,IAAMC,EAAE,KAAA,EAAO;AAClBC,gBAAAA,GAAAA,EAAKT,IAAIU,KAAK;AACdf,gBAAAA,GAAAA,EAAKV,MAAMU,GAAG;AACd,gBAAA,GAAGI,IAAIY;AACX,aAAA,CAAA;AACJ,IAAA;AACJ,CAAA;;AC/CO,SAASC,OAAAA,CAAQC,QAAa,EAAEC,OAAAA,GAAmB,EAAE,EAAA;IACxDD,QAAAA,CAASE,SAAS,CAAC,YAAA,EAAcjC,UAAAA,CAAAA;AACrC;AAEA,YAAe;AACX8B,IAAAA;AACJ,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuecs/gravatar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A package containing a gravatar component.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./package.json": "./package.json",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/md5": "^2.3.5",
|
|
43
|
-
"vue": "^3.
|
|
43
|
+
"vue": "^3.5.28"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"vue": "^3.x"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"node": ">=
|
|
49
|
+
"node": ">=20"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"md5": "^2.3.0"
|