Skip to content

Commit

Permalink
style: 更新导入文件弹窗样式
Browse files Browse the repository at this point in the history
  • Loading branch information
hsingyin committed Dec 30, 2024
1 parent 6db759c commit 397b8e1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 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.318",
"version": "2.14.319",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
1 change: 1 addition & 0 deletions src/assets/icons/file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export default {
"If you are seeing this, it is probably due to a routing interception issue on the front end of your browser. You can force a refresh to see it or use the link directly without affecting the use of this link.",
},
filePage: {
addFileTitle: "Add File",
importFileTitle: "Import Sub-Store file data",
importFileTips: "On the File Management page, click the Export icon button in the More items section of a file.",
deleteFile: {
succeedNotify: "Successfully deleted!",
},
Expand Down
3 changes: 3 additions & 0 deletions src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ export default {
backendDesc: '如果你看到这个 可能是因为浏览器前端路由拦截的问题 可以强制刷新查看或直接使用该链接 不影响此链接的使用',
},
filePage: {
addFileTitle: '创建文件',
importFileTitle: '导入 Sub-Store 文件数据',
importFileTips: '文件管理页面, 在某个文件左滑/右滑的更多项中, 点击导出图标按钮',
deleteFile: {
succeedNotify: '删除文件成功',
},
Expand Down
16 changes: 7 additions & 9 deletions src/views/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@touchmove="onTouchMove"
@touchend="onTouchEnd"
>
<!-- 添加订阅弹窗 -->
<!-- 添加订阅弹窗 -->
<!-- lock-scroll -->
<div>
<nut-popup
Expand All @@ -22,8 +22,7 @@
round
>
<div class="title-btn">
<!-- <p class="add-sub-panel-title">{{ $t(`subPage.addSubTitle`) }}</p> -->
<p class="add-sub-panel-title">创建文件</p>
<p class="add-sub-panel-title">{{ $t(`filePage.addFileTitle`) }}</p>
<p class="add-sub-panel-title or">{{ $t(`specificWord.or`) }}</p>
<input type="file" ref="fileInput" accept="application/json,text/json,.json" @change="fileChange" style="display: none">
<nut-button
Expand All @@ -46,9 +45,8 @@
<ul class="add-sub-panel-list">
<li>
<router-link to="/edit/files/UNTITLED" class="router-link">
<svg-icon name="singleSubs" />
<!-- <span>{{ $t(`specificWord.singleSub`) }}</span> -->
<span>文件</span>
<svg-icon name="file" />
<span>{{ $t(`specificWord.file`) }}</span>
</router-link>
</li>
<!-- <li>
Expand Down Expand Up @@ -394,8 +392,8 @@ const fileChange = async (event) => {
const importTips = () => {
addSubBtnIsVisible.value = false
Dialog({
title: '导入 Sub-Store 文件数据',
content: '文件管理页面, 在某个文件左滑/右滑的更多项中, 点击导出图标按钮',
title: t(`filePage.importFileTitle`),
content: t(`filePage.importFileTips`),
popClass: 'auto-dialog',
okText: 'OK',
noCancelBtn: true,
Expand Down Expand Up @@ -486,7 +484,7 @@ const importTips = () => {
color: var(--second-text-color);
> li {
width: 50%;
flex: 1;
display: flex;
justify-content: center;
Expand Down

0 comments on commit 397b8e1

Please sign in to comment.