Skip to content

Commit

Permalink
chore: 内部文件调用路径的说明; 更新说明
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 11, 2024
1 parent 10d7396 commit 93ec166
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.36",
"version": "2.14.37",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
25 changes: 25 additions & 0 deletions src/changelogs/2024-01-12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
date: 2024-01-12
---

### 阶段性更新汇总

- 同步配置支持文件(后端 > 2.14.144)

- 新增文件功能

- 默认隐藏悬浮刷新按钮(可在设置中切换)

- 支持 Surfboard

- 节点操作中的正则支持拖拽排序

- 支持忽略失败的远程订阅

- 手动下载备份文件和使用备份上传恢复

- 支持按顺序合并本地和远程订阅

- 远程订阅支持换行输入多个订阅

- 预览节点时增加 JSON 数据便于查看复制
5 changes: 3 additions & 2 deletions src/components/FileListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,15 @@
const { currentUrl: host } = useHostAPI();
const onClickCopyLink = async () => {
const url = `${host.value}/api/file/${encodeURIComponent(name)}`;
const path = `/api/file/${encodeURIComponent(name)}`;
const url = `${host.value}${path}`;
if (isSupported) {
await copy(url);
} else {
await copyFallback(url);
}
showNotify({ title: t('filePage.copyNotify.succeed') });
showNotify({ title: t('filePage.copyNotify.succeed', { path }) });
};
Expand Down
6 changes: 5 additions & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export default {
content: {
placeholder: 'The content of the file'
},
copyNotify: {
succeed: 'Successfully copied link!\nIf you use it internally, just {path}',
failed: 'Failed to copy file link!\n{e}',
},
emptySub: {
title: 'You have no File yet',
desc: 'After adding you can enjoy the love of YM Peng',
Expand Down Expand Up @@ -357,7 +361,7 @@ export default {
label: 'Script Filter',
options: ['Link', 'Script'],
des: ['Type', 'Content'],
placeholder: 'Input Script Link',
placeholder: 'Input Script Link or Internal File like /api/file/name',
openEditorBtn: 'Open Code Editor',
tipsTitle: 'Script Filter Tips',
tipsDes: '脚本操作操作说明',
Expand Down
4 changes: 2 additions & 2 deletions src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
placeholder: '填入文件内容'
},
copyNotify: {
succeed: '复制文件链接成功',
succeed: '复制文件链接成功\n如果你只在内部使用, 仅需 {path}',
failed: '复制文件链接失败\n{e}',
},
emptySub: {
Expand Down Expand Up @@ -270,7 +270,7 @@ export default {
label: '脚本操作',
options: ['链接', '脚本'],
des: ['类型', '内容'],
placeholder: '填入脚本链接',
placeholder: '填入完整远程脚本链接 或 类似 /api/file/name 的内部文件调用路径',
openEditorBtn: '打开脚本编辑器',
tipsTitle: '脚本操作操作提示',
tipsDes: '使用一段 JavaScript 脚本来修改节点信息',
Expand Down

0 comments on commit 93ec166

Please sign in to comment.