Compare commits
11 Commits
bcffe658b2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
949b2d29bf | ||
|
|
767057c259 | ||
|
|
56a01d1ed8 | ||
|
|
95ad670e21 | ||
|
|
e9ed3dc72d | ||
|
|
d7e1b20972 | ||
|
|
482a00daec | ||
|
|
c5e8b46ac6 | ||
|
|
6070588a07 | ||
|
|
cafe40bcc6 | ||
|
|
7bd9b2e833 |
132
.gitignore
vendored
132
.gitignore
vendored
@@ -1,63 +1,113 @@
|
||||
# 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/
|
||||
/test/unit/coverage/
|
||||
/test/e2e/reports/
|
||||
### .gitignore.global.txt ###
|
||||
|
||||
# Self defined pattern to ignore
|
||||
?*.gitignore
|
||||
?*.gitignore/
|
||||
?*.gitignore.*
|
||||
?*.gitignore.*/
|
||||
*.gitomit
|
||||
*.gitomit.*
|
||||
*.gitomit/
|
||||
*.gitomit.*/
|
||||
*.nogit
|
||||
*.nogit.*
|
||||
*.nogit/
|
||||
*.nogit.*/
|
||||
# 保留
|
||||
!.gitignore
|
||||
!.gitignore.*
|
||||
!.gitkeep
|
||||
|
||||
# 通用
|
||||
.svn/
|
||||
.deploy_git/
|
||||
.idea/
|
||||
.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
|
||||
_desktop.ini
|
||||
.DS_Store
|
||||
.thumbnails
|
||||
Thumbs.db
|
||||
thumbs.db
|
||||
.umi
|
||||
.umi-production
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
yarn.lock
|
||||
selenium-debug.log
|
||||
package-lock.json
|
||||
*.iml
|
||||
*.njsproj
|
||||
*.ntvs*
|
||||
*.sln
|
||||
*.suo
|
||||
._*
|
||||
.$*
|
||||
~$*
|
||||
Thumbs.db
|
||||
thumbs.db
|
||||
_desktop.ini
|
||||
|
||||
.bashrc_custom
|
||||
# vue-cli 项目
|
||||
/dist/
|
||||
|
||||
# 来自 vue-cli 创建项目的 .gitignore
|
||||
.project
|
||||
|
||||
# hexo
|
||||
db.json
|
||||
/public/
|
||||
|
||||
# 客户端 uniapp 项目
|
||||
/unpackage/dist
|
||||
/unpackage/release
|
||||
/unpackage/cache
|
||||
# Hardhat
|
||||
/artifacts/
|
||||
/cache/
|
||||
|
||||
# seafile 临时文件
|
||||
._*
|
||||
|
||||
.$*
|
||||
|
||||
# office 暂存文件
|
||||
~$*
|
||||
|
||||
# 用户shell配置脚本
|
||||
.bashrc_custom
|
||||
|
||||
# 苹果系统临时文件
|
||||
.DS_Store
|
||||
|
||||
# 安卓缓存文件夹
|
||||
.thumbnails
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# hexo
|
||||
/db.json
|
||||
|
||||
# wo
|
||||
# 服务端
|
||||
/_archive/*
|
||||
/_datastore/*
|
||||
/_logstore/*
|
||||
/_filestore/*
|
||||
/_logstore/*
|
||||
/_webroot/*
|
||||
/dist/
|
||||
*.apk
|
||||
*.min.js
|
||||
*.min.css
|
||||
*.min.html
|
||||
/pages4loader.json5
|
||||
envar-web-custom.js
|
||||
envar-deploy-secret.js
|
||||
/_ssl/*
|
||||
# uniapp 客户端
|
||||
/unpackage/*
|
||||
!/unpackage/res/
|
||||
package-lock.json
|
||||
pages4loader.json5
|
||||
|
||||
# hexo 项目
|
||||
public/
|
||||
### .gitignore.local.txt ###
|
||||
|
||||
# 服务端(server or uniapp-uniCloud)项目
|
||||
envar-base-custom.js
|
||||
envar-base-dynamic.js
|
||||
envar-base-secret.js
|
||||
|
||||
!.gitkeep
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
/*
|
||||
对 VSCode Prettier 有效;建议一直要有本配置文件,否则不同版本的 Prettier 的默认配置会不同,例如 TrailingComma
|
||||
对 VSCode Prettier Standard 无效,似乎是集成了不能修改的配置。
|
||||
*/
|
||||
/* 对 VSCode Prettier 有效;建议一直要有本配置文件,否则不同版本的 Prettier 的默认配置会不同,例如 TrailingComma
|
||||
对 VSCode Prettier Standard 无效,似乎是集成了不能修改的配置。 */
|
||||
module.exports = {
|
||||
printWidth: 160, // default 80
|
||||
tabWidth: 2, // default 2
|
||||
useTabs: false,
|
||||
semi: false, // default true
|
||||
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
|
||||
jsxBracketSameLine: false, // default false
|
||||
arrowParens: 'always', // avoid (default in v1.9.0), always (default since v2.0.0)
|
||||
quoteProps: 'as-needed', // as-needed (default), consistent, preserve
|
||||
}
|
||||
bracketSameLine: true, // default false
|
||||
arrowParens: "always", // avoid (default in v1.9.0), always (default since v2.0.0)
|
||||
quoteProps: "as-needed" // as-needed (default), consistent, preserve
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.faronear.org/npm/wo-user-part-uniapp"
|
||||
"url": "https://git.tic.cc/open/wo-user-part-uniapp"
|
||||
},
|
||||
"author": "luk.lu",
|
||||
"license": "ISC",
|
||||
|
||||
84
seafile-ignore.txt
Normal file
84
seafile-ignore.txt
Normal file
@@ -0,0 +1,84 @@
|
||||
# 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.*/
|
||||
|
||||
## everything 'git pull or fetch' will update `.git/FETCH_HEAD`, even if the content doesn't change. To avoid too many useless updates of this file in Seafile history:
|
||||
FETCH_HEAD
|
||||
*/FETCH_HEAD
|
||||
|
||||
.Trash/
|
||||
|
||||
.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
|
||||
*/package-lock.json
|
||||
|
||||
pages4loader.json5
|
||||
*/pages4loader.json5
|
||||
|
||||
.deploy_git/
|
||||
*/.deploy_git/
|
||||
|
||||
# next.js 项目
|
||||
.next/
|
||||
*/.next/
|
||||
|
||||
# HBuilder 目录
|
||||
unpackage/
|
||||
*/unpackage/
|
||||
|
||||
Icon
|
||||
OneDrive/Icon
|
||||
|
||||
# wrangler project
|
||||
|
||||
.dev.vars*
|
||||
*/.dev.vars*
|
||||
.wrangler/
|
||||
*/.wrangler/
|
||||
|
||||
### seafile-ignore.local.txt ###
|
||||
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
if (this.storyContent.length > 1) {
|
||||
this.storyContent.splice(index, 1)
|
||||
} 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">
|
||||
<!-- #endif -->
|
||||
<view v-for="(section, index) of storyContent" :key="index" style="margin: 5px; position: relative">
|
||||
<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>
|
||||
<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%" />
|
||||
<video v-if="section.video" :src="section.video" style="width: 100%" autoplay :controls="true"></video>
|
||||
<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>
|
||||
<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>
|
||||
<!-- #ifdef H5 -->
|
||||
</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="display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center; width: 100%">
|
||||
<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>
|
||||
{{ $ll({ zhCN:'文字', enUS:'Text' }) || 'Text' }}
|
||||
</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>
|
||||
{{ $ll({ zhCN:'照片', enUS:'Photo' }) || 'Photo' }}
|
||||
</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>
|
||||
{{ $ll({ zhCN:'视频', enUS:'Video' }) || 'Video' }}
|
||||
</u-button>
|
||||
</view>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user