Compare commits

..

10 Commits

4 changed files with 179 additions and 71 deletions

132
.gitignore vendored
View File

@@ -1,63 +1,113 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# how to include another gitignore?
# https://stackoverflow.com/questions/7005142/can-i-include-other-gitignore-file-in-a-gitignore-file-like-include-in-c-li
# https://github.com/github/gitignore
# https://github.com/SlideWave/gitignore-include?tab=readme-ov-file#examples
# https://gitignore.io
node_modules/ ### .gitignore.global.txt ###
/test/unit/coverage/
/test/e2e/reports/ # Self defined pattern to ignore
?*.gitignore
?*.gitignore/
?*.gitignore.*
?*.gitignore.*/
*.gitomit
*.gitomit.*
*.gitomit/
*.gitomit.*/
*.nogit
*.nogit.*
*.nogit/
*.nogit.*/
# 保留
!.gitignore
!.gitignore.*
!.gitkeep
# 通用
.svn/ .svn/
.deploy_git/
.idea/ .idea/
.sass-cache/ .sass-cache/
.deploy_git/ .wrangler
/test/unit/coverage/
/test/e2e/reports/
node_modules/
*.aab
*.apk
*.ipa
*.min.js
*.min.css
*.min.html
*.iml
*.njsproj
*.ntvs*
*.sw*
*.sln
*.suo
.gitattributes .gitattributes
_desktop.ini
.DS_Store
.thumbnails
Thumbs.db
thumbs.db
.umi .umi
.umi-production .umi-production
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
yarn.lock
selenium-debug.log selenium-debug.log
package-lock.json Thumbs.db
*.iml thumbs.db
*.njsproj _desktop.ini
*.ntvs*
*.sln
*.suo
._*
.$*
~$*
.bashrc_custom # vue-cli 项目
/dist/
# 来自 vue-cli 创建项目的 .gitignore
.project
# hexo # hexo
db.json /public/
# 客户端 uniapp 项目 # Hardhat
/unpackage/dist /artifacts/
/unpackage/release /cache/
/unpackage/cache
# seafile 临时文件
._*
.$*
# office 暂存文件
~$*
# 用户shell配置脚本
.bashrc_custom
# 苹果系统临时文件
.DS_Store
# 安卓缓存文件夹
.thumbnails
# local env files
.env.local
.env.*.local
# hexo
/db.json
# wo
# 服务端
/_archive/* /_archive/*
/_datastore/* /_datastore/*
/_logstore/*
/_filestore/* /_filestore/*
/_logstore/*
/_webroot/* /_webroot/*
/dist/ /_ssl/*
*.apk # uniapp 客户端
*.min.js /unpackage/*
*.min.css !/unpackage/res/
*.min.html package-lock.json
/pages4loader.json5 pages4loader.json5
envar-web-custom.js
envar-deploy-secret.js
# hexo 项目 ### .gitignore.local.txt ###
public/
# 服务端(server or uniapp-uniCloud)项目
envar-base-custom.js
envar-base-dynamic.js
envar-base-secret.js
!.gitkeep

View File

@@ -1,16 +1,14 @@
/* /* 对 VSCode Prettier 有效;建议一直要有本配置文件,否则不同版本的 Prettier 的默认配置会不同,例如 TrailingComma
对 VSCode Prettier 有效;建议一直要有本配置文件,否则不同版本的 Prettier 的默认配置会不同,例如 TrailingComma 对 VSCode Prettier Standard 无效,似乎是集成了不能修改的配置。 */
对 VSCode Prettier Standard 无效,似乎是集成了不能修改的配置。
*/
module.exports = { module.exports = {
printWidth: 160, // default 80 printWidth: 160, // default 80
tabWidth: 2, // default 2 tabWidth: 2, // default 2
useTabs: false, useTabs: false,
semi: false, // default true semi: false, // default true
singleQuote: true, // default false singleQuote: true, // default false
trailingComma: 'es5', // none (default in v 1.*), es5 (default in v2.0.0), all trailingComma: "es5", // none (default in v 1.*), es5 (default in v2.0.0), all
bracketSpacing: true, // default true bracketSpacing: true, // default true
jsxBracketSameLine: false, // default false bracketSameLine: true, // default false
arrowParens: 'always', // avoid (default in v1.9.0), always (default since v2.0.0) arrowParens: "always", // avoid (default in v1.9.0), always (default since v2.0.0)
quoteProps: 'as-needed', // as-needed (default), consistent, preserve quoteProps: "as-needed" // as-needed (default), consistent, preserve
} };

72
seafile-ignore.txt Normal file
View File

@@ -0,0 +1,72 @@
# https://help.seafile.com/syncing_client/excluding_files/
# 注释。通配符:* 匹配0到若干个字符包括代表目录的/。? 匹配1个字符包括/。
# seafile-ignore.txt 只能控制在客户端需要忽略哪些文件。你依然可以在 seahub 的 web 界面创建这些被客户端忽略的文件。
# 在这种情况下,
# 这些文件会被同步到客户端,但是用户在客户端对这些文件的后续修改会被忽略,不会被同步回服务器。
# 文件在服务器端的后续更改会被同步到客户端,如果客户端也同时修改了这些文件,系统会生成冲突文件。
# seafile-ignore.txt 只能忽略还没有被同步的文件。对于已经被同步的文件,如果后来把它添加到 seafile-ignore.txt 中,系统只会忽略后续更改,已经上传的版本不会受影响。
### seafile-ignore.global.txt ###
# 自定义的后缀名,凡有 sfignore 后缀的都不进行同步
*.sfignore
*.sfignore/
*.sfignore.*
*.sfignore.*/
*.sfomit
*.sfomit.*
*.sfomit/
*.sfomit.*/
*.nosf
*.nosf.*
*.nosf/
*.nosf.*/
.DS_Store
*/.DS_Store
.thumbnails
*/.thumbnails
Thumbs.db
*/Thumbs.db
thumbs.db
*/thumbs.db
_desktop.ini
*/_desktop.ini
._*
*/._*
.$*
*/.$*
~$*
*/~$*
node_modules/
*/node_modules/
package-lock.json
pages4loader.json5
.deploy_git/
*/.deploy_git/
# HBuilder 目录
unpackage/
*/unpackage/
Icon
OneDrive/Icon
# wrangler project
.dev.vars*
*/.dev.vars*
.wrangler/
*/.wrangler/
### seafile-ignore.local.txt ###

View File

@@ -85,7 +85,7 @@ export default {
if (this.storyContent.length > 1) { if (this.storyContent.length > 1) {
this.storyContent.splice(index, 1) this.storyContent.splice(index, 1)
} else { } else {
wo.showToast({ type: wo.YELLOW, title: this.$ll({ zhCN: '不能删除唯一的段落!', enUS: 'Cannot delete the last section!' }) }) wo.showToast({ type: wo.c2t.YELLOW, title: this.$ll({ zhCN: '不能删除唯一的段落!', enUS: 'Cannot delete the last section!' }) })
} }
} }
}, },
@@ -100,24 +100,10 @@ export default {
<draggable v-model="storyContent"> <draggable v-model="storyContent">
<!-- #endif --> <!-- #endif -->
<view v-for="(section, index) of storyContent" :key="index" style="margin: 5px; position: relative"> <view v-for="(section, index) of storyContent" :key="index" style="margin: 5px; position: relative">
<textarea <textarea v-if="section.text !== undefined" v-model="section.text" maxlength="-1" auto-height="true" style="width: inherit; min-height: 3em; line-height: 1.5em; padding: 5px; border: 1px solid #eee; background: white" :placeholder="$ll({zhCN:'新的段落', enUS:'New Section'})" placeholder-style="font-size:small"></textarea>
v-if="section.text !== undefined"
v-model="section.text"
maxlength="-1"
auto-height="true"
style="width: inherit; min-height: 3em; line-height: 1.5em; padding: 5px; border: 1px solid #eee; background: white"
:placeholder="$ll({zhCN:'新的段落', enUS:'New Section'})"
placeholder-style="font-size:small"
></textarea>
<img v-if="section.image" :src="section.image" style="width: 100%" /> <img v-if="section.image" :src="section.image" style="width: 100%" />
<video v-if="section.video" :src="section.video" style="width: 100%" autoplay :controls="true"></video> <video v-if="section.video" :src="section.video" style="width: 100%" autoplay :controls="true"></video>
<u-icon <u-icon class="sectionHandler" name="close-circle-fill" size="40" style="position: absolute; top: 0; right: 0; border-radius: 100%; cursor: pointer; color: #909399" @click="deleteSection(index)"></u-icon>
class="sectionHandler"
name="close-circle-fill"
size="40"
style="position: absolute; top: 0; right: 0; border-radius: 100%; cursor: pointer; color: #909399"
@click="deleteSection(index)"
></u-icon>
</view> </view>
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
</draggable> </draggable>
@@ -127,21 +113,23 @@ export default {
<view style="width: 100%; display: flex; flex-flow: column nowrap; align-items: flex-start; padding: 5px;"> <view style="width: 100%; display: flex; flex-flow: column nowrap; align-items: flex-start; padding: 5px;">
<view style="display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center; width: 100%"> <view style="display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center; width: 100%">
<view> <view>
<u-button shape="circle" size="mini" :type="wo.WHITE_BUTTON" @click="addText" v-if="allowText === true || allowText === 'true'" style="margin: 0 5px"> <u-button shape="circle" size="mini" :type="wo.c2t.uButton.WHITE" @click="addText" v-if="allowText === true || allowText === 'true'" style="margin: 0 5px">
<u-icon name="edit-pen-fill"></u-icon> <u-icon name="edit-pen-fill"></u-icon>
{{ $ll({ zhCN:'文字', enUS:'Text' }) || 'Text' }} {{ $ll({ zhCN:'文字', enUS:'Text' }) || 'Text' }}
</u-button> </u-button>
<u-button shape="circle" size="mini" :type="wo.WHITE_BUTTON" @click="addImage" v-if="allowImage === true || allowImage === 'true'" style="margin: 0 5px"> <u-button shape="circle" size="mini" :type="wo.c2t.uButton.WHITE" @click="addImage" v-if="allowImage === true || allowImage === 'true'" style="margin: 0 5px">
<u-icon name="camera-fill"></u-icon> <u-icon name="camera-fill"></u-icon>
{{ $ll({ zhCN:'照片', enUS:'Photo' }) || 'Photo' }} {{ $ll({ zhCN:'照片', enUS:'Photo' }) || 'Photo' }}
</u-button> </u-button>
<u-button shape="circle" size="mini" :type="wo.WHITE_BUTTON" @click="addVideo" v-if="allowVideo === true || allowVideo === 'true'" style="margin: 0 5px"> <u-button shape="circle" size="mini" :type="wo.c2t.uButton.WHITE" @click="addVideo" v-if="allowVideo === true || allowVideo === 'true'" style="margin: 0 5px">
<u-icon name="videocamera-fill" custom-prefix="custom-iconfont"></u-icon> <u-icon name="videocamera-fill" custom-prefix="custom-iconfont"></u-icon>
{{ $ll({ zhCN:'视频', enUS:'Video' }) || 'Video' }} {{ $ll({ zhCN:'视频', enUS:'Video' }) || 'Video' }}
</u-button> </u-button>
</view> </view>
<view v-if="showSubmitButton===true || showSubmitButton==='true'"> <view v-if="showSubmitButton===true || showSubmitButton==='true'">
<u-button size="mini" :type="wo.RED" @click="onClick"><u-icon name="checkbox-mark"></u-icon> {{ $ll({zhCN:'发表', enUS:'Publish'}) || 'Publish' }}</u-button> <u-button size="mini" :type="wo.c2t.RED" @click="onClick">
<u-icon name="checkbox-mark"></u-icon> {{ $ll({zhCN:'发表', enUS:'Publish'}) || 'Publish' }}
</u-button>
</view> </view>
</view> </view>
</view> </view>