From 2646d542f3431d58d5e072f37d943c50e1e1fbc7 Mon Sep 17 00:00:00 2001 From: Rex Zeng Date: Sat, 27 Jan 2024 13:40:40 +0800 Subject: [PATCH] docs: fix fork-me-on-github icon --- package.json | 1 + playground/docs.tsx | 9 ++------- pnpm-lock.yaml | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index dc0552e..c827490 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "cross-env": "^7.0.3", + "fork-me-on-github": "^1.0.6", "jest": "^27.4.7", "less": "^4.1.3", "prismjs": "^1.29.0", diff --git a/playground/docs.tsx b/playground/docs.tsx index 50a3eac..09266c6 100644 --- a/playground/docs.tsx +++ b/playground/docs.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import ForkMeOnGithub from 'fork-me-on-github'; import { Differ, Viewer } from '../src'; import type { DifferOptions } from '../src/differ'; @@ -316,13 +317,7 @@ const Docs: React.FC = props => {

Made with ♥ by Rex Zeng

- - Fork me on GitHub - + ); }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1228999..2186d77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + dependencies: fast-myers-diff: specifier: ^3.0.1 @@ -48,6 +52,9 @@ devDependencies: cross-env: specifier: ^7.0.3 version: 7.0.3 + fork-me-on-github: + specifier: ^1.0.6 + version: 1.0.6(react-dom@17.0.2)(react@17.0.2) jest: specifier: ^27.4.7 version: 27.4.7 @@ -1750,6 +1757,7 @@ packages: /debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + requiresBuild: true peerDependencies: supports-color: '*' peerDependenciesMeta: @@ -2112,6 +2120,16 @@ packages: semver-regex: 4.0.5 dev: true + /fork-me-on-github@1.0.6(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-5R9pXa2JvyBsewGPn8woZGNz5oOb9vi8j1mjMzleHSwBojj/D8O33OEeItIe9/wtRtD4bSU0Egs6Qzp5FU/adA==} + peerDependencies: + react: ^16.8.6 + react-dom: ^16.8.6 + dependencies: + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + dev: true + /form-data@3.0.1: resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} engines: {node: '>= 6'} @@ -2323,6 +2341,7 @@ packages: /iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} + requiresBuild: true dependencies: safer-buffer: 2.1.2 dev: true @@ -3572,6 +3591,7 @@ packages: /pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} + requiresBuild: true dev: true optional: true @@ -3960,6 +3980,7 @@ packages: /prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} + requiresBuild: true dev: true optional: true @@ -4226,6 +4247,7 @@ packages: /sax@1.2.4: resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} + requiresBuild: true dev: true optional: true @@ -4258,6 +4280,7 @@ packages: /semver@5.7.1: resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} hasBin: true + requiresBuild: true dev: true optional: true