Skip to content

Commit

Permalink
chore: 优化了部分代码
Browse files Browse the repository at this point in the history
  • Loading branch information
dlzmoe committed Aug 30, 2024
1 parent edc7745 commit fb6aaf2
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 33 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
重新发版,无更新。
- 优化了 UI 的部分代码
- 检测版本直接跳转到商店
19 changes: 8 additions & 11 deletions dist/linuxdo-scripts.user.js

Large diffs are not rendered by default.

19 changes: 8 additions & 11 deletions linuxdo-scripts.user.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linuxdo-scripts",
"version": "0.3.3",
"version": "0.3.4",
"author": "dlzmoe",
"description": "An enhanced script for the linux.do forum",
"type": "module",
Expand All @@ -12,7 +12,6 @@
"preview": "vite preview"
},
"dependencies": {
"element-plus": "^2.8.1",
"vue": "^3.4.27"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<a
class="btn"
style="background: #979797"
href="https://update.greasyfork.org/scripts/501827/linuxdo%20%E5%A2%9E%E5%BC%BA%E6%8F%92%E4%BB%B6.user.js"
href="https://greasyfork.org/zh-CN/scripts/501827-linuxdo-%E5%A2%9E%E5%BC%BA%E6%8F%92%E4%BB%B6"
>检测新版本</a
>
<button class="btn import" @click="triggerFileInput">导入</button>
Expand Down
6 changes: 4 additions & 2 deletions src/components/Updates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="item">
<div class="tit">
当前版本:{{ version }}
<a href="https://github.com/dlzmoe/linuxdo-scripts" target="_blank">Github源码</a>
<a href="https://github.com/dlzmoe/linuxdo-scripts" target="_blank">Github 源码</a>
<a href="https://linuxdo-scripts-docs.netlify.app/" target="_blank">使用文档</a>
</div>
</div>
Expand All @@ -16,10 +16,12 @@ export default {
version: packageJson.version,
};
},
created() {},
};
</script>
<style lang="less" scoped>
a {
margin-left: 10px;
}
a:hover {
text-decoration: underline;
}
Expand Down
5 changes: 5 additions & 0 deletions version-log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.3.4

- 优化了 UI 的部分代码
- 检测版本直接跳转到商店

## 0.3.3

重新发版,无更新。
Expand Down
6 changes: 1 addition & 5 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@ export default defineConfig({
icon: 'https://cdn.linux.do/uploads/default/optimized/3X/9/d/9dd49731091ce8656e94433a26a3ef36062b3994_2_32x32.png',
name: "linuxdo 增强插件",
namespace: 'https://github.com/dlzmoe/linuxdo-scripts',
description: "linux.do 增强插件,话题列表显示创建时间,显示楼层数,新标签页打开话题,强制 block(拉黑屏蔽)某人的话题,话题快捷回复(支持自定义),优化签名图显示防止图裂,在话题列表可直接预览详情及评论,功能设置面板导入导出,楼层抽奖,用户自定义标签,只看楼主,自动滚动阅读,支持自定义 css 样式,中英文混排优化,等级信息查询,AI 总结话题功能等,功能持续更新,欢迎提出新想法!",
description: "linux.do 增强插件,功能持续更新,欢迎提出新想法!",
version: pkg.version,
match: ['*://*.linux.do/*'],
},
build: {
externalGlobals: {
vue: cdn.unpkg('Vue', 'dist/vue.global.prod.js'),
'element-plus': cdn.unpkg('ElementPlus', 'dist/index.full.min.js'),
},
externalResource: {
'element-plus/dist/index.css': cdn.unpkg(),
},
minify: false, // 不混淆
},
Expand Down

0 comments on commit fb6aaf2

Please sign in to comment.