-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: solve some unreasonable remarks and some methods used incorrectly
- Loading branch information
xg15472
committed
Oct 30, 2024
1 parent
d460d4b
commit 48abdea
Showing
47 changed files
with
68 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@hyperse/pro-layout": patch | ||
"@hyperse/utils": patch | ||
"@hyperse/antd": patch | ||
--- | ||
|
||
Solve some unreasonable remarks and some methods used incorrectly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/antd/src/pdf-preview/navigation.tsx → ...td/src/_backup/pdf-preview/navigation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,10 @@ export type PdfPreviewProps = { | |
/** | ||
* pdf预览 | ||
* ``` | ||
* 使用方式:在cdn.ts中引入 '//file.40017.cn/tcsk/react/[email protected]/pdf.min.js' | ||
* 使用方式:在cdn.ts中引入 '//xx.com/react/[email protected]/pdf.min.js' | ||
* Git: https://github.com/mozilla/pdfjs-dist/tree/master | ||
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf | ||
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf-seal | ||
* Demo: https://xx.xx.com/docs/admin/main/file/pdf | ||
* Demo: https://xx.xx.com/docs/admin/main/file/pdf-seal | ||
* ``` | ||
*/ | ||
export const PdfPreview = (props: PdfPreviewProps) => { | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { type ReactElement, type ReactNode, useState } from 'react'; | ||
import { Result, Spin } from 'antd'; | ||
import { classNames } from '@dimjs/utils'; | ||
import { fbaHooks } from '../fba-hooks/index.js'; | ||
import { fbaHooks } from '../../fba-hooks/index.js'; | ||
import { CtxProvider } from './context.js'; | ||
import './style.less'; | ||
|
||
|
@@ -21,7 +21,7 @@ export const PdfDocument = (props: PdfProps) => { | |
fbaHooks.useEffectCustomAsync(async () => { | ||
const { pdfjsLib } = globalThis as any; | ||
pdfjsLib.GlobalWorkerOptions.workerSrc = | ||
'//file.40017.cn/tcsk/react/[email protected]/pdf.worker.min.js'; | ||
'//xx.com/react/[email protected]/pdf.worker.min.js'; | ||
try { | ||
const loadingTask = pdfjsLib.getDocument(props.pdfUrl); | ||
const pdfInstance = await loadingTask.promise; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ import { PdfPage } from './page.jsx'; | |
/** | ||
* pdf预览 | ||
* ``` | ||
* 使用方式:在cdn.ts中引入 '//file.40017.cn/tcsk/react/[email protected]/pdf.min.js' | ||
* 使用方式:在cdn.ts中引入 '//xx.com/react/[email protected]/pdf.min.js' | ||
* Git: https://github.com/mozilla/pdfjs-dist/tree/master | ||
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf | ||
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf-seal | ||
* Demo: https://xx.xx.com/docs/admin/main/file/pdf | ||
* Demo: https://xx.xx.com/docs/admin/main/file/pdf-seal | ||
* ``` | ||
*/ | ||
export const Pdf = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.../src/rich-text-editor/preview/preview.tsx → ...ckup/rich-text-editor/preview/preview.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,7 +151,7 @@ export const RichTextEditor = (props: RichTextEditorProps) => { | |
} | ||
); | ||
|
||
const tinymceBaseUrl = 'https://file.40017.cn/tcsk/[email protected]'; | ||
const tinymceBaseUrl = 'https://xx.com/tcsk/[email protected]'; | ||
|
||
const getImgRatio = (width: number) => { | ||
if (imgRatio.length === 0) return 1; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.