Skip to content

Commit

Permalink
bug: downgrade vue-tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
imzlh committed Dec 22, 2024
1 parent 4cd2efb commit 8a52136
Show file tree
Hide file tree
Showing 9 changed files with 2,026 additions and 27 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ coverage

*.tsbuildinfo
package-lock.json

**/__*
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,39 @@
},
"devDependencies": {
"@muyajs/core": ">=0.0.32",
"@petamoriken/float16": ">=3.8.7",
"@tldraw/assets": ">=2.4.6",
"@types/ini": ">=4.1.1",
"@types/node": ">=20.14.11",
"@vitejs/plugin-vue": ">=5.0.4",
"@vue/tsconfig": ">=0.5.1",
"@webtoon/psd": ">=0.4.0",
"artplayer": ">=5.2.1",
"@petamoriken/float16": "^3.8.7",
"@tldraw/assets": "^2.4.6",
"@types/ini": "^4.1.1",
"@types/node": "^20.14.11",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/tsconfig": "^0.5.1",
"@webtoon/psd": "^0.4.0",
"artplayer": ">=5.1.5",
"asciinema-player": ">=3.8.0",
"assjs": ">=0.1.0",
"docx-preview": ">=0.3.2",
"ini": ">=5.0.0",
"jssha": ">=3.3.1",
"docx-preview": "^0.3.2",
"ini": "^5.0.0",
"jssha": "^3.3.1",
"libmedia": "https://github.com/zhaohappy/libmedia.git",
"lrc-kit": ">=1.1.1",
"monaco-editor": "^0.50.0",
"npm-run-all2": ">=6.1.2",
"react-filerobot-image-editor": ">=4.8.1",
"sass": ">=1.77.4",
"tldraw": ">=2.4.6",
"typescript": ">=5.4.0",
"vite": ">=5.3.4",
"vite-plugin-pwa": ">=0.20.0",
"vue": ">=3.4.21",
"vue-reader": ">=1.2.15",
"vue-tsc": ">=2.0.11",
"lrc-kit": "^1.1.1",
"monaco-editor": "^0.51.0",
"npm-run-all2": "^6.1.2",
"react-filerobot-image-editor": "^4",
"sass": "^1.77.4",
"tldraw": "^3",
"typescript": "=5.6.3",
"vite": ">=6.0.3",
"vite-plugin-pwa": "^0.21.1",
"vue": "^3.5.13",
"vue-reader": "^1.2.15",
"vue-tsc": "=2.0.29",
"x-data-spreadsheet": ">=1.1.9"
},
"files": [
"dist/**"
],
"dependencies": {
"less": ">=4.2.0",
"less": "^4.2.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
}
}
4 changes: 2 additions & 2 deletions src/opener/avplayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@
margin-bottom: .5rem;
>input[type=checkbox]{
@include v-checkbox;
@include input.checkbox;
}
> .range{
Expand Down Expand Up @@ -927,7 +927,7 @@
left: 0;
width: 100%;
box-sizing: border-box;
@include v-winui-range;
@include input.winui-range;
}
}
Expand Down
28 changes: 28 additions & 0 deletions src/opener/office/docx-helper.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type Editor from "@hufe921/canvas-editor";
import { ListType, RowFlex } from "@hufe921/canvas-editor";

// 未完成

export default {
undo: session => session.command.executeUndo(),
redo: session => session.command.executeRedo(),
fontFamily: (session, value) => session.command.executeFont(value),
fontSize: (session, value) => session.command.executeSize(value),
addFontSize: session => session.command.executeSizeAdd(),
minFontSize: session => session.command.executeSizeMinus(),
bold: session => session.command.executeBold(),
italic: session => session.command.executeItalic(),
underline: session => session.command.executeUnderline(),
strikeout: session => session.command.executeStrikeout(),
superScript: session => session.command.executeSuperscript(),
subScript: session => session.command.executeSubscript(),
color: (session, value) => session.command.executeColor(value),
highlight: (session, value) => session.command.executeHighlight(value),
alignLeft: session => session.command.executeRowFlex(RowFlex.LEFT),
alignCenter: session => session.command.executeRowFlex(RowFlex.CENTER),
alignRight: session => session.command.executeRowFlex(RowFlex.RIGHT),
alignJustify: session => session.command.executeRowFlex(RowFlex.JUSTIFY),
addUList: session => session.command.executeList(ListType.UL),
addOList: session => session.command.executeList(ListType.OL),
// addTable: session => session.command.table(),
} as Record<string, (this: HTMLElement, editor: Editor, value?: any) => void>;
Loading

0 comments on commit 8a52136

Please sign in to comment.