Skip to content

Commit

Permalink
🔖 v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Oct 12, 2024
1 parent 2392983 commit cb03503
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ index.css
index.js
/i18n
release.sh

/assets
#pnpm
pnpm-lock.yaml
25 changes: 14 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
# Changelog

## v1.1.0 / 2024.10.12
- 🐛 更改webpack.config.js,修复index.css和assets没有被打包的问题

## v1.0.9 / 2024.10.11
- 当格式刷启动时候,dock底栏最右侧添加一个按钮,按钮图案渐变闪烁,点击该按钮可以退出格式刷模式([pull request](https://github.com/Achuan-2/siyuan-plugin-formatPainter/pull/1)
- 当格式刷启动时候,dock底栏最右侧添加一个按钮,按钮图案渐变闪烁,点击该按钮可以退出格式刷模式([pull request](https://github.com/Achuan-2/siyuan-plugin-formatPainter/pull/1)

## v1.0.8 / 2024.10.11
- 排除对超链接、块引的格式刷
- 支持公式的格式刷
- 排除对超链接、块引的格式刷
- 支持公式的格式刷

## v1.0.5 / 2024.10.10
- 支持镂空和投影样式
- 支持镂空和投影样式

## v1.0.4 / 2024.10.10
- 更改逻辑,添加样式前,先清除所有样式
- 启动格式刷更改鼠标光标
- 启动格式刷自动关闭工具栏
- 更改逻辑,添加样式前,先清除所有样式
- 启动格式刷更改鼠标光标
- 启动格式刷自动关闭工具栏
## v1.0.3 / 2024.10.10
- 完善README
- 📝 完善README
## v1.0.2 / 2024.10.10
- 支持格式刷字体大小
- 支持格式刷字体大小

## v1.0.0 / 2024.10.10 🎉 第一次提交
- 支持格式刷功能
- 已知bug:不支持数学公式格式刷
- 支持格式刷功能
- 🐛 已知bug:不支持数学公式格式刷

2 changes: 1 addition & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## ✨功能介绍

- **进入格式刷模式**:选中文字,在悬浮工具栏点击「格式刷」按钮即可复制样式(支持叠加的样式),之后选中其他文字后自动快速添加复制的样式
- **进入格式刷模式**:选中文字,在悬浮工具栏点击「格式刷」按钮即可复制样式(支持叠加的样式),之后选中其他文字后,可以自动快速添加复制的样式
- **支持复制的行内样式**:字体大小、背景色、文字颜色、镂空、投影、加粗、行内代码、键盘样式、下划线、删除线、上标、下标、高亮等
- **支持复制无样式用来清空选中的文本样式**
- **退出格式刷模式**
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-formatPainter",
"author": "Achuan-2",
"url": "https://github.com/Achuan-2/siyuan-plugin-formatPainter",
"version": "1.0.9",
"version": "1.1.0",
"minAppVersion": "3.0.12",
"backends": [
"windows",
Expand Down
Binary file added src/assets/formatPainter_mouse2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {




export default class PluginSample extends Plugin {
private isMobile: boolean;
private formatPainterEnable = false;
Expand Down
20 changes: 13 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require("path");
const fs = require("fs");
const webpack = require("webpack");
const {EsbuildPlugin} = require("esbuild-loader");
const { EsbuildPlugin } = require("esbuild-loader");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const ZipPlugin = require("zip-webpack-plugin");
Expand All @@ -26,12 +26,15 @@ module.exports = (env, argv) => {
},
}));
plugins.push(new CopyPlugin({
// 用途:把文件放在dist,用来打包
patterns: [
{from: "preview.png", to: "./dist/"},
{from: "icon.png", to: "./dist/"},
{from: "README*.md", to: "./dist/"},
{from: "plugin.json", to: "./dist/"},
{from: "src/i18n/", to: "./dist/i18n/"},
{ from: "preview.png", to: "./dist/" },
{ from: "icon.png", to: "./dist/" },
{ from: "README*.md", to: "./dist/" },
{ from: "plugin.json", to: "./dist/" },
{ from: "src/i18n/", to: "./dist/i18n/" },
{ from: "src/index.css", to: "./dist/" }, // Add this line
{ from: "src/assets/", to: "./dist/assets/" } // Add this line
],
}));
plugins.push(new ZipPlugin({
Expand All @@ -44,8 +47,11 @@ module.exports = (env, argv) => {
}));
} else {
plugins.push(new CopyPlugin({
// 用途:run dev的时候放在当前目录,可以直接运行
patterns: [
{from: "src/i18n/", to: "./i18n/"},
{ from: "src/i18n/", to: "./i18n/" },
{ from: "src/index.css", to: "./" }, // Add this line
{ from: "src/assets/", to: "./assets/" } // Add this line
],
}));
}
Expand Down

0 comments on commit cb03503

Please sign in to comment.