From dfe2739bf38ee7d253747cf7ecddcd69988150c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?CN32479-=E8=A9=B9=E7=BA=A2=E6=9F=B1?= <1337608148@qq.com> Date: Thu, 28 Apr 2022 08:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .browserslistrc | 2 +- .editorconfig | 2 +- .eslintrc.js | 2 +- .gitignore | 2 +- LICENSE | 4 +--- README.md | 6 +----- package-lock.json | 2 +- package.json | 2 +- public/index.html | 3 +-- src/Api/common.js | 2 -- src/Api/user.js | 2 -- src/App.vue | 2 -- src/assets/Json/印象笔记.js | 2 +- src/components/Dialog.vue | 22 ++++++++++------------ src/components/Login.vue | 13 +++++++++---- src/main.js | 2 -- vue.config.js | 3 +-- 17 files changed, 30 insertions(+), 43 deletions(-) diff --git a/.browserslistrc b/.browserslistrc index 214388f..59cf4dd 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -1,3 +1,3 @@ > 1% last 2 versions -not dead +not dead \ No newline at end of file diff --git a/.editorconfig b/.editorconfig index 7053c49..c58a670 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,4 +2,4 @@ indent_style = space indent_size = 2 trim_trailing_whitespace = true -insert_final_newline = true +insert_final_newline = true \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index 3293675..9a87784 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,4 +16,4 @@ module.exports = { 'space-before-function-paren': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'object-curly-spacing': process.env.NODE_ENV === 'production' ? 'warn' : 'off' } -} +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index acc47ae..e14ad86 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,4 @@ pnpm-debug.log* *.ntvs* *.njsproj *.sln -*.sw? +*.sw? \ No newline at end of file diff --git a/LICENSE b/LICENSE index 29f81d8..c4d250b 100644 --- a/LICENSE +++ b/LICENSE @@ -3,9 +3,7 @@ http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - + 1. Definitions "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. diff --git a/README.md b/README.md index 1bfcce1..e84abf5 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,7 @@ theme: v-green --- # Part1用Vue3.0 开发一款导入浏览器书签的在线书签 - ## 🤵介绍(取名) - 👉👉👉【红隼书签】是一款简洁的在线书签导航网站。 名字的由来其实是,本着保护动物,爱护动物的初心,想到起一个鸟类的名称,其实最开始想了很多名字,小詹书签,麻雀书签等。 ![红隼-kestrel](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ace153ff51d04a4da78f3616c08c58c0~tplv-k3u1fbpfcp-zoom-1.image) @@ -275,15 +273,13 @@ export const updateObject = (className, params) => { 需要什么新的需求或者设计,可以给我提[issue](https://gitee.com/zhanhongzhu/kestrel-bookmark/issues),感谢,喜欢的也可以点个赞。 ## 💯 致谢 - 第一次做一个开源的东西,只想把这个小项目做好,感谢 【空白i】 的打赏 【66.6】,太激动啦;继续加油,希望可以做出更多更精致开源的作品处理。继续加油。😀 😀 😀 ## 😀 其他链接 - - [我的博客(收集各类大神的学习笔记及官方文档,强烈推荐)](https:/zhanhongzhu.top) - [红隼书签](http://bookmark.zhanhongzhu.top) - [掘金](https://juejin.im/user/5cc6757ce51d456e5238ca23) - [思否](https://segmentfault.com/u/huixiaodeyanjingzhenmei) - [CSDN](https://blog.csdn.net/weixin_43779957) - [简书](https://www.jianshu.com/u/b8d251f62b08) -- [语雀(超过430多篇开发笔记)](https://www.yuque.com/zhanhongzhu) +- [语雀(超过430多篇开发笔记)](https://www.yuque.com/zhanhongzhu) \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d79f52f..0d628b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14836,4 +14836,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 8b66a1b..bbf7ba5 100644 --- a/package.json +++ b/package.json @@ -34,4 +34,4 @@ "vue-loader-v16": "^16.0.0-beta.5.4", "vue-style-loader": "^4.1.2" } -} +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 442be9d..79638d6 100644 --- a/public/index.html +++ b/public/index.html @@ -25,7 +25,6 @@
- @@ -70,4 +69,4 @@ - + \ No newline at end of file diff --git a/src/Api/common.js b/src/Api/common.js index b275e92..48dd759 100644 --- a/src/Api/common.js +++ b/src/Api/common.js @@ -14,7 +14,6 @@ export const saveObject = (className, params) => { }) }) } - // 获取对象列表 export const getObject = (className, params) => { return new Promise((resolve, reject) => { @@ -45,7 +44,6 @@ export const deleteObject = (className, id) => { }) }) } - // 更新对象 export const updateObject = (className, params) => { return new Promise((resolve, reject) => { diff --git a/src/Api/user.js b/src/Api/user.js index f9c2440..25bcac4 100644 --- a/src/Api/user.js +++ b/src/Api/user.js @@ -9,7 +9,6 @@ const login = (username, password) => { }) }) } - // 用户登录 const loginEmail = (email, password) => { return new Promise((resolve, reject) => { @@ -28,7 +27,6 @@ const logout = (username, password) => { }) }) } - // 用户注册 const register = (username, password) => { return new Promise((resolve, reject) => { diff --git a/src/App.vue b/src/App.vue index 85d8155..361206c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -203,12 +203,10 @@ export default { } data.isDetailVisible = true } - // 用户登录 const handleUserLogin = () => { data.isLoginVisible = true } - // 关闭弹窗事件 const closeViews = (v) => (data.isDetailVisible = v) const closeLoginViews = (v) => (data.isLoginVisible = v) diff --git a/src/assets/Json/印象笔记.js b/src/assets/Json/印象笔记.js index 4393ca7..beb764e 100644 --- a/src/assets/Json/印象笔记.js +++ b/src/assets/Json/印象笔记.js @@ -1206,4 +1206,4 @@ export const myData = [{ logo: 'https://cdn.docschina.org/home/logo/antdesign.svg', title: 'react-component' }] -}] +}] \ No newline at end of file diff --git a/src/components/Dialog.vue b/src/components/Dialog.vue index 9eec8ed..004b75f 100644 --- a/src/components/Dialog.vue +++ b/src/components/Dialog.vue @@ -46,21 +46,21 @@ import { ElMessage } from 'element-plus' export default { model: { value: 'isDetailVisible', - events: 'closeViews', + events: 'closeViews' }, props: { isDetailVisible: { type: Boolean, - default: false, + default: false }, selectType: { type: Number, - default: 0, + default: 0 }, detail: { type: Object, - default: () => {}, - }, + default: () => {} + } }, setup(props, context) { const isBOOKMARK = JSON.parse(localStorage.getItem('BOOKMARK')) @@ -71,13 +71,13 @@ export default { type: '', desc: '', url: '', - logo: '', - }, + logo: '' + } }) // 定义校验规则 表单代码中必须以 :rules 接收 const rules = { title: [{ required: true, message: '请输入书签名称', trigger: 'blur' }], - type: [{ required: true, message: '请选择书签类别', trigger: 'change' }], + type: [{ required: true, message: '请选择书签类别', trigger: 'change' }] } const refruleForm = ref(null) // 确定按钮的格式 @@ -150,13 +150,11 @@ export default { submitForm, refruleForm, rules, - BOOKMARK, + BOOKMARK } - }, - methods: {}, + } } -