update npmextra.json: githost
This commit is contained in:
		| @@ -6,11 +6,11 @@ | ||||
|   "gitzone": { | ||||
|     "projectType": "npm", | ||||
|     "module": { | ||||
|       "githost": "gitlab.com", | ||||
|       "gitscope": "pushrocks", | ||||
|       "githost": "code.foss.global", | ||||
|       "gitscope": "push.rocks", | ||||
|       "gitrepo": "websetup", | ||||
|       "description": "setup basic page properties", | ||||
|       "npmPackagename": "@pushrocks/websetup", | ||||
|       "npmPackagename": "@push.rocks/websetup", | ||||
|       "license": "MIT" | ||||
|     } | ||||
|   } | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| { | ||||
|   "name": "@pushrocks/websetup", | ||||
|   "name": "@push.rocks/websetup", | ||||
|   "version": "3.0.19", | ||||
|   "private": false, | ||||
|   "description": "setup basic page properties", | ||||
| @@ -43,4 +43,4 @@ | ||||
|     "last 1 chrome versions" | ||||
|   ], | ||||
|   "type": "module" | ||||
| } | ||||
| } | ||||
| @@ -13,6 +13,7 @@ export class OpengraphTag extends Tag { | ||||
|  | ||||
|   public static createProductOgTags(productArg: plugins.tsclass.saas.IProduct) { | ||||
|     const tagArray: OpengraphTag[] = []; | ||||
|     tagArray.push(new OpengraphTag('og:type', 'product')); | ||||
|     tagArray.push(new OpengraphTag('og:url', globalThis.location.href)); | ||||
|     tagArray.push(new OpengraphTag('og:title', `${productArg.name} - ${productArg.slogan}`)); | ||||
|     tagArray.push(new OpengraphTag('og:site_name', productArg.name)) | ||||
| @@ -21,6 +22,17 @@ export class OpengraphTag extends Tag { | ||||
|     return tagArray; | ||||
|   } | ||||
|  | ||||
|   public static createCompanyOgTags(companyArg: plugins.tsclass.business.ICompany) { | ||||
|     const tagArray: OpengraphTag[] = []; | ||||
|     tagArray.push(new OpengraphTag('og:type', 'company')); | ||||
|     tagArray.push(new OpengraphTag('og:url', globalThis.location.href)); | ||||
|     tagArray.push(new OpengraphTag('og:title', `${companyArg.name} - ${companyArg.slogan}`)); | ||||
|     tagArray.push(new OpengraphTag('og:site_name', companyArg.name)) | ||||
|     tagArray.push(new OpengraphTag('og:description', companyArg.description)); | ||||
|     tagArray.push(new OpengraphTag('og:image', companyArg.logoLink)); | ||||
|     return tagArray; | ||||
|   } | ||||
|  | ||||
|   constructor(propertyNameArg: string, contentArg: string) { | ||||
|     super(); | ||||
|     const openGraphElement = document.createElement('meta'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user