Skip to content

Commit

Permalink
chore: start 0.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jan 29, 2023
1 parent 541c6cf commit ed4bd82
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
10 changes: 2 additions & 8 deletions layouts/default/DefaultFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@
isDark ? $t("theme.mode.light") : $t("theme.mode.dark")
}}</span>

<span class="text" v-if="!isInSiyuanEnv">.</span>
<span
class="text s-dark"
@click="changeSiyuanApi()"
v-if="!isInSiyuanEnv"
>
<span class="text">.</span>
<span class="text s-dark" @click="changeSiyuanApi()">
{{ $t("blog.change.siyuan.api") }}
</span>

Expand Down Expand Up @@ -298,8 +294,6 @@ const handleSiyuanApiSetting = async (formEl) => {
}
const initConf = () => {
isInSiyuanEnv.value = isInSiyuan()
v.value = version
const siyuanCfg = getSiyuanCfg()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"extChromeWin": "pwsh scripts/ext.ps1",
"extChromeDev": "bash scripts/extDev.sh",
"extFirefox": "bash scripts/extFV2.sh",
"newVersion": "cd scripts && python3 version.py 0.6.7 && cd ../",
"newVersion": "cd scripts && python3 version.py 0.6.8 && cd ../",
"dcfg": "bash scripts/devWidgetConfig.sh"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.dev.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "开发版 - 思源笔记发布辅助工具",
"version": "0.6.7",
"version": "0.6.8",
"manifest_version": 3,
"author": "terwer",
"description": "思源笔记发布辅助工具,支持博客式只读浏览,多平台文章发布。",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.prod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "思源笔记发布辅助工具",
"version": "0.6.7",
"version": "0.6.8",
"manifest_version": 3,
"author": "terwer",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion public/mv2/manifest-v2-for-firefox.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "开发版 - 思源笔记发布辅助工具",
"version": "0.6.7",
"version": "0.6.8",
"manifest_version": 2,
"author": "terwer",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion public/widget.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "sy-post-publisher",
"author": "terwer",
"url": "https://github.com/terwer/src-sy-post-publisher",
"version": "0.6.7"
"version": "0.6.8"
}
2 changes: 1 addition & 1 deletion scripts/devWidgetConfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
# 一些开发环境的额外配置

# 拷贝可用的PicGO配置
cp -r ./public/lib/picgo/picgo.cfg.dev.json ../my-note-docker/workspace/SiYuan/data/widgets/sy-post-publisher/lib/picgo/picgo.cfg.json
cp -r ./public/lib/picgo/picgo.cfg.dev.json ../SiYuanWorkspace/public/data/widgets/sy-post-publisher/lib/picgo/picgo.cfg.json
echo "dev config copy finished."
6 changes: 3 additions & 3 deletions scripts/widget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rm -rf ./dist/mv2
rm ./dist/lib/picgo/picgo.cfg.dev.json
# cp ./dist/lib/picgo/picgo.cfg.json.example ./dist/lib/picgo/picgo.cfg.json

rm -rf ../my-note-docker/workspace/SiYuan/data/widgets/sy-post-publisher/
mkdir ../my-note-docker/workspace/SiYuan/data/widgets/sy-post-publisher
cp -r ./dist/* ../my-note-docker/workspace/SiYuan/data/widgets/sy-post-publisher/
rm -rf ../SiYuanWorkspace/public/data/widgets/sy-post-publisher/
mkdir ../SiYuanWorkspace/public/data/widgets/sy-post-publisher
cp -r ./dist/* ../SiYuanWorkspace/public/data/widgets/sy-post-publisher/
echo "发布完毕."
8 changes: 7 additions & 1 deletion utils/deviceUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,20 @@ import { isInChromeExtension } from "~/utils/browserUtil"

export enum DeviceType {
/**
* 思源笔记新窗口
* 思源笔记新窗口(Sofill主题新窗口共用)
*/
DeviceType_Siyuan_NewWin,
/**
* 思源笔记挂件
*/
DeviceType_Siyuan_Widget,
/**
* Google Chrome浏览器插件
*/
DeviceType_Chrome_Extension,
/**
* Google Chrome浏览器(Docker浏览器共用)
*/
DeviceType_Chrome_Browser,
}

Expand Down

0 comments on commit ed4bd82

Please sign in to comment.