From 2a1590172e24801c1557e962104642344ecf336f Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 25 Feb 2022 11:17:16 +0800 Subject: [PATCH] =?UTF-8?q?uni-modules=E7=BB=84=E4=BB=B6=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=EF=BC=8Cu-icon=E7=BB=84=E4=BB=B6=E6=9B=BF=E6=8D=A2uni-icons,?= =?UTF-8?q?=E5=89=8D=E9=9D=A2=E7=9A=84=E9=82=A3=E4=B8=AA=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E4=B8=8D=E5=A5=BD=E7=9A=84=E6=97=B6=E5=80=99=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=B8=8D=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/im/components/groupUserList.vue | 30 +- pages/im/components/show/messageState.vue | 16 +- pages/im/components/show/showCall.vue | 14 +- uni_modules/onemue-USQLite/changelog.md | 11 +- uni_modules/onemue-USQLite/js_sdk/usqlite.js | 177 ++++++++-- .../onemue-USQLite/js_sdk/usqlite.js.zip | Bin 0 -> 4225 bytes uni_modules/onemue-USQLite/package.json | 2 +- uni_modules/onemue-USQLite/readme.md | 4 +- uni_modules/uni-icons/changelog.md | 6 + .../uni-icons/components/uni-icons/icons.js | 54 +++ .../components/uni-icons/uni-icons.vue | 13 +- uni_modules/uni-icons/package.json | 2 +- uni_modules/uni-id/changelog.md | 10 + uni_modules/uni-id/package.json | 2 +- .../cloudfunctions/common/uni-id/index.js | 2 +- .../cloudfunctions/common/uni-id/package.json | 2 +- uni_modules/uni-scss/changelog.md | 10 +- uni_modules/uni-scss/index.scss | 2 +- uni_modules/uni-scss/package.json | 164 ++++----- uni_modules/uni-scss/styles/index.scss | 14 +- .../uni-scss/styles/setting/_border.scss | 4 +- .../uni-scss/styles/setting/_color.scss | 132 +++---- .../uni-scss/styles/setting/_radius.scss | 110 +++--- .../uni-scss/styles/setting/_space.scss | 110 +++--- .../uni-scss/styles/setting/_styles.scss | 334 +++++++++--------- .../uni-scss/styles/setting/_text.scss | 48 +-- .../uni-scss/styles/setting/_variables.scss | 286 +++++++-------- .../uni-scss/styles/tools/functions.scss | 38 +- uni_modules/uni-scss/theme.scss | 62 ++-- uni_modules/uni-scss/variables.scss | 124 +++---- 30 files changed, 986 insertions(+), 797 deletions(-) create mode 100644 uni_modules/onemue-USQLite/js_sdk/usqlite.js.zip diff --git a/pages/im/components/groupUserList.vue b/pages/im/components/groupUserList.vue index 034f8cf..03d8e72 100644 --- a/pages/im/components/groupUserList.vue +++ b/pages/im/components/groupUserList.vue @@ -18,9 +18,8 @@ - - + + 查看更多群成员 diff --git a/pages/im/components/show/messageState.vue b/pages/im/components/show/messageState.vue index 0d9b6aa..7abab99 100644 --- a/pages/im/components/show/messageState.vue +++ b/pages/im/components/show/messageState.vue @@ -1,19 +1,13 @@ diff --git a/pages/im/components/show/showCall.vue b/pages/im/components/show/showCall.vue index 72078d1..b373326 100644 --- a/pages/im/components/show/showCall.vue +++ b/pages/im/components/show/showCall.vue @@ -1,9 +1,10 @@ @@ -68,7 +69,8 @@ font-size: 32rpx; color: $text-color; display: flex; - flex-direction: row; + flex-direction: row; + align-items: center; &.left { border-radius: 0 20rpx 20rpx 20rpx; @@ -80,8 +82,8 @@ background: $main-color; color: white; - .u-icon { - color: white; + .uni-icons { + color: white !important; } } } diff --git a/uni_modules/onemue-USQLite/changelog.md b/uni_modules/onemue-USQLite/changelog.md index 1764a1f..ac8c1d3 100644 --- a/uni_modules/onemue-USQLite/changelog.md +++ b/uni_modules/onemue-USQLite/changelog.md @@ -1,7 +1,10 @@ -## 2.1.0(2022-01-14) -1. 新增了添加多个数据的事件选项(options, index)(感谢`@风扬`) -## 2.1.2(2022-01-14) -1. 新增了添加多个数据的事件选项(options, index)(感谢`@风扬`) +## 2.2.2(2022-02-18) +1. 解决了自增约束的部分bug +2. 解决了处理类型的问题 +## 2.2.0(2022-02-16) +1. 重新处理了判断类型的方法 +2. 解决了`no connect`的问题 +3. 新增了自增约束,需要为数字类型 ## 2.1.0(2022-01-14) 1. 新增了添加多个数据的事件选项(options, index)(感谢`@风扬`) ## 2.0.2(2022-01-05) diff --git a/uni_modules/onemue-USQLite/js_sdk/usqlite.js b/uni_modules/onemue-USQLite/js_sdk/usqlite.js index b71a836..ef24175 100644 --- a/uni_modules/onemue-USQLite/js_sdk/usqlite.js +++ b/uni_modules/onemue-USQLite/js_sdk/usqlite.js @@ -37,10 +37,13 @@ class Utils { } } } + Utils.log(primaryKeyArr.length); - if (primaryKeyArr.length>=1) { - sql = `CREATE TABLE '${name}' (${sqlArr.join(', ')}, PRIMARY KEY (${primaryKeyArr.join()}))`; - }else{ + if (primaryKeyArr.length>1) { + + sql = `CREATE TABLE '${name}' (${sqlArr.join(', ').replaceAll(' PRIMARY KEY','')}, PRIMARY KEY (${primaryKeyArr.join()}))`; + } + else{ sql = `CREATE TABLE '${name}' (${sqlArr.join(', ')})`; } Utils.log(`modelSql :${sql}`); @@ -59,6 +62,22 @@ class Utils { } restrainArray.push(Utils.toType(options.type)); + + // 主键 + if (options.primaryKey == true) { + if(options.autoIncrement != true){ + restrainArray.push('PRIMARY KEY'); + } + } + + // 自增 + if (Utils.isNumber(options.type)&&options.autoIncrement == true) { + restrainArray.pop(); + restrainArray.push('INTEGER'); + restrainArray.push('PRIMARY KEY'); + restrainArray.push('AUTOINCREMENT'); + } + // 非空 if (options.notNull == true) { restrainArray.push('NOT NULL'); @@ -74,10 +93,6 @@ class Utils { restrainArray.push('UNIQUE'); } - // 主键 - // if (options.primaryKey === true) { - // restrainArray.push('PRIMARY KEY'); - // } // 检查 if (options.check) { @@ -87,27 +102,44 @@ class Utils { return restrainArray.join(' '); } - // 联合主键 - static getUnionPrimaryKey() { - - } - static toType(jsType) { let sqliteType = ''; - if (jsType == Number) { + if (Utils.isNumber(jsType)) { sqliteType = 'numeric'; - } else if (jsType == Date) { + } else if (Utils.isDate(jsType)) { sqliteType = 'timestamp'; } else { sqliteType = 'varchar'; } return sqliteType; } + static log() { if (config.deBug) { console.log.apply(null, arguments); } } + + static warn() { + if (config.deBug) { + console.warn.apply(null, arguments); + } + } + + static error() { + console.error.apply(null, arguments); + } + + static isArray(value){ return Object.prototype.toString.call(value) === '[object Array]'} + static isObject(value){ return Object.prototype.toString.call(value) === '[object Object]'} + static isString(value){ return Object.prototype.toString.call(value) === '[object String]'} + static isFunction(value){ return (value === Function || Object.prototype.toString.call(value) === '[object Function]')} + static isNumber(value){ return (value === Number || Object.prototype.toString.call(value) === '[object Number]')} + static isNaN(value){ return (Object.prototype.toString.call(value) === '[object Number]' && isNaN(value))} + static isBoolean(value){ return Object.prototype.toString.call(value) === '[object Boolean]'} + static isUndefined(value){ return Object.prototype.toString.call(value) === '[object Undefined]'} + static isModel(value){ return Object.prototype.toString.call(value) === '[object Model]'} + static isDate(value){ return (value === Date||Object.prototype.toString.call(value) === '[object Date]')} } @@ -118,7 +150,7 @@ class Model { /** * @constructor * @param {String} name 数据库表名 - * @param {Object} options 数据表列对象 + * @param {} options 数据表列对象 * @returns */ constructor(name, options) { @@ -129,7 +161,10 @@ class Model { if (config.isConnect) { self.repair(); } else { - console.error('no connect'); + if(!config.name||!config.path){ + console.error('"config.name" or "config.path" is empty'); + } + usqlite.connect(config); } } @@ -138,21 +173,27 @@ class Model { * @param {String|Array} options * - String WHERE 内容 * - Array 需要查询的列 - * @param {*} callback + * @param {Function} callback * @returns */ find(options, callback) { let sql = ''; let self = this; self.repair(); - if (!callback) { + if(!(Utils.isString(options)||Utils.isArray(options)||Utils.isFunction(options))) { + Utils.error('The first parameter of Model.find should be "Array", "String" or "Function" (when there is only one parameter).') + } + if(!callback&&!(Utils.isFunction(options))) { + Utils.error('The second parameter of Model.find should be "Function".') + } + if (!callback&&Utils.isFunction(options)) { sql = `SELECT * FROM '${this.name}'`; // 查找全部 callback = options; - } else if (options.constructor == Array) { + } else if (Utils.isArray(options)) { sql = `SELECT ${options.join()} FROM '${this.name}'`; // 查找制定列 - } else if (options.constructor == String) { + } else if (Utils.isString(options)) { sql = `SELECT * FROM '${this.name}' WHERE ${options}`; // 制定条件查询 - }; + } Utils.log(`find: ${sql}`); @@ -180,7 +221,13 @@ class Model { let sql = ''; let self = this; self.repair(); - + if(!Utils.isObject(options)){ + Utils.error('The first parameter of Model.limit should be "Object".') + } + if(!Utils.isFunction(callback)){ + Utils.error('The second parameter of Model.limit should be "Function".') + } + if (!options.where) { // 不存在 where sql = @@ -215,12 +262,19 @@ class Model { let self = this; self.repair(); + if(!(Utils.isObject(options)||Util.isArray(options))){ + Utils.error('The first parameter of Model.insert should be "Object" or "Array".') + } + if(!Utils.isFunction(callback)){ + Utils.error('The second parameter of Model.insert should be "Function".') + } + if (config.isConnect) { - if (options.constructor == Array) { + if (Utils.isArray(options)) { for (var i = 0; i < options.length; i++) { this.insert(options[i], callback, i); } - } else if (options.constructor == Object) { + } else if (Utils.isObject(options)) { let keys = []; let values = []; let index = arguments[3]??null; @@ -255,7 +309,7 @@ class Model { /** * @description 更新数据 - * @param {Object} options:可选参数 更新条件 + * @param {String} options:可选参数 更新条件 * @param {Object} obj: 修改后的数据 * @param {Function} callback :(err,results)=>{} */ @@ -264,7 +318,14 @@ class Model { let self = this; let items = []; self.repair(); - + + if(!(Utils.isObject(options)||Utils.isString(options))){ + Utils.error('The first parameter of Model.update should be "Object" or "String".') + } + if(!(Utils.isObject(obj)||Utils.isFunction(obj))){ + Utils.error('The second parameter of Model.update should be "Objrct" or "Function".') + } + if (!callback) { // 不存在options callback = obj; @@ -298,13 +359,20 @@ class Model { /** * @description 删除数据 - * @param {Object} options :可选参数 删除条件 + * @param {String} options :可选参数 删除条件 * @param {Function} callback :(err,results)=>{} */ delete(options, callback) { var sql = ''; let self = this; self.repair(); + + if(!(Utils.isString(options)||Utils.isFunction(options))){ + Utils.error('The first parameter of Model.delete should be "Object" or "Function".') + } + if(callback&&!Utils.isFunction(callback)){ + Utils.error('The second parameter of Model.delete should be "Function".') + } if (!callback) { sql = `DELETE FROM '${this.name}'`; @@ -330,7 +398,7 @@ class Model { /** * @description 重命名或者新增列 - * @param {Object} options 参数 数组为新增多列 对象为新增单列{aa} 字符串重命名 + * @param {Object|Array|String} options 参数 数组为新增多列 对象为新增单列{aa} 字符串重命名 * @param {Function} callback :(err,results)=>{} * @return: */ @@ -338,12 +406,18 @@ class Model { let self = this; let sql = ''; self.repair(); - - if (options.constructor == Array) { // 新增多列 + if(!(Utils.isObject(options)||Utils.isArray(options)||Utils.isString(options))){ + Utils.error('The first parameter of Model.alter should be "Object", "Array" or "String".') + } + if(!Utils.isFunction(callback)){ + Utils.error('The second parameter of Model.alter should be "Function".') + } + + if (Utils.isArray(options)) { // 新增多列 for (let i = 0; i < options.length; i++) { self.alter(options[i], callback); } - } else if (options.constructor == Object) { // 新增单列 + } else if (Utils.isObject(options)) { // 新增单列 let column = Utils.restrain(options.name, options.option); sql = `ALTER TABLE '${this.name}' ADD COLUMN ${column}` } else if (options.constructor == String) { // 重命名 @@ -374,13 +448,13 @@ class Model { */ join(model, options, callback) { if (!model) { - console.error('"model" cannot be empty.'); + Utils.error('"model" cannot be empty.'); } - if (options.constructor != Object) { - console.error('The type of "options" is wrong, it should be "Object".'); + if (!Utils.isObject(options)) { + Utils.error('The type of "options" is wrong, it should be "Object".'); } if (!options.type || !options.predicate) { - console.error('Missing required parameters'); + Utils.error('Missing required parameters'); } let leftName = this.name; @@ -427,6 +501,13 @@ class Model { * @param {Function} callback :(err,results)=>{} */ sql(sql, callback) { + if (!Utils.isString(sql)) { + Utils.error('"The type of "sql" is wrong, it should be "String".'); + } + if (callback&&!Utils.isFunction(callback)) { + Utils.error('The type of "callback" is wrong, it should be "Function".'); + } + let self = this; self.repair(); @@ -449,6 +530,10 @@ class Model { * @param {Function} callback */ isExist(callback) { + if (callback&&!Utils.isFunction(callback)) { + Utils.error('The type of "callback" is wrong, it should be "Function".'); + } + let sql = `SELECT count(*) AS isExist FROM sqlite_master WHERE type='table' AND name='${this.name}'`; let self = this; Utils.log(`isExist: ${sql}`); @@ -470,6 +555,10 @@ class Model { * @param {Function} callback */ drop(callback) { + if (callback&&!Utils.isFunction(callback)) { + Utils.error('The type of "callback" is wrong, it should be "Function".'); + } + var sql = `DROP TABLE '${this.name}'`; let self = this; self.repair(); @@ -493,6 +582,10 @@ class Model { * @param {Function} callback */ create(callback) { + if (callback&&!Utils.isFunction(callback)) { + Utils.error('The type of "callback" is wrong, it should be "Function".'); + } + let self = this; let sql = Utils.modelSql(self.name, self.options); Utils.log(`create: ${sql}`); @@ -574,6 +667,7 @@ export class usqlite { } }); } + /** * @description 断开数据库 * @param {*} callback @@ -591,6 +685,19 @@ export class usqlite { } }); } + static closeAsync(options){ + plus.sqlite.closeDatabase({ + name: config.name, //数据库名称 + path: config.path, //数据库地址 + success(e) { + config.isConnect = false; + callback(null, e); + }, + fail(e) { + callback(e); + } + }); + } /** * @description 创建 Model 对象 * @example diff --git a/uni_modules/onemue-USQLite/js_sdk/usqlite.js.zip b/uni_modules/onemue-USQLite/js_sdk/usqlite.js.zip new file mode 100644 index 0000000000000000000000000000000000000000..bf09d1c97f9d0eeb694abbde66b6e2065415ef05 GIT binary patch literal 4225 zcma)AWl$6Vw_Tb=SP+(8U_nAaN)V8c&ZR-Ro264h=}whcO6jFr5OnEomku%L5@d;` z;pxnK^S+P=LR$x0{Qf13%pN zxd9n~==TN4cK>hwtNt(V0dVk7aR7k7dH`U<+})Q-h4R+zCLumiKJ|fp?lRW}WTJa@ zwGR=;x5cwjgf?aPc5kY7!2*Zh>^bL3zrpIl3;fgvva5X*{QlNHfosyC1H7a8N3^wD z?k@tGc}K1J*;T?F#<6~9V}3Hz--Tf>jEwO8Szq1YFuZayZWdf>3!-sQQ5h-={-d$B z=Zjrh9M3q8+7&>U4mgK?z5Nl~es$J97a8%lm8Y)uo8G&=O_ zhyks1+Z;VYveN_teY?k{_MkB;GRoL&GQXG&aYLLq|M4(l$(D^vJ5l_OY!X5(5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{0!StYaIy_OWzZBI8RxdQ8g}}`T3l=lChYf-tp6I;$T!sF zopTcv=!FLzNT8`kjEx{#dzV%RC86Ow2mc%}IsVF z7^vLjv3%#{doeN4dyM^@FUoAes*=U>n*3n;9J6(KnmcrR9n+4D3=XMixWz*WeNP^W zPAy}Z^Q>EXllkD>Pe}~ASp1^!LdpC>RHVG6`4Abr0xX|vH2h^A_d}wk>0(uqZoLOw^?oIMG}7}AdF^XKW;PbjXQKfnseJ+Dz&x9;bqaO z@DbXda2baRZCrywRmC%G|L8tVZpOc(9)R1B=`qrX- zW$~&it$e|Za@A{#l70Gi^%IESp1tOAJtfI2RXcgeJuo%j@aE<#!5x7PjEFdW8`lU$ x4gman{B>YBxL~~hHwFHa`)3OLA4 literal 0 HcmV?d00001 diff --git a/uni_modules/onemue-USQLite/package.json b/uni_modules/onemue-USQLite/package.json index 5965fcd..84c4ef9 100644 --- a/uni_modules/onemue-USQLite/package.json +++ b/uni_modules/onemue-USQLite/package.json @@ -1,7 +1,7 @@ { "id": "onemue-USQLite", "displayName": "u-SQLite V2", - "version": "2.1.0", + "version": "2.2.2", "description": "基于ORM技术,使用对象的方式来操作sqlite数据库,而无需编写任何sql语句.", "keywords": [ "USQLite,数据库操作,缓存,大数据缓存,sqlite,sql,orm" diff --git a/uni_modules/onemue-USQLite/readme.md b/uni_modules/onemue-USQLite/readme.md index 7e67594..582fb15 100644 --- a/uni_modules/onemue-USQLite/readme.md +++ b/uni_modules/onemue-USQLite/readme.md @@ -1,5 +1,6 @@ -

onemue-USQLite

+

onemue-USQLite

onemue-USQLite

+

没有特别说明,均为异步函数

> u-SQLite 交流群:643867519 > 如果觉的当前插件对你有帮助可以前往 [github](https://github.com/onemue/u-sqlite) 点 star! @@ -49,6 +50,7 @@ let studentModel = uni.$sql.model('student',{ - unique UNIQUE 不重复 - default DEFAULT 默认值 - notNull NOT NULL 非空 +- autoIncrement AUTOINCREMENT 非空 **联合主键** diff --git a/uni_modules/uni-icons/changelog.md b/uni_modules/uni-icons/changelog.md index 3c01efc..6449885 100644 --- a/uni_modules/uni-icons/changelog.md +++ b/uni_modules/uni-icons/changelog.md @@ -1,3 +1,9 @@ +## 1.3.5(2022-01-24) +- 优化 size 属性可以传入不带单位的字符串数值 +## 1.3.4(2022-01-24) +- 优化 size 支持其他单位 +## 1.3.3(2022-01-17) +- 修复 nvue 有些图标不显示的bug,兼容老版本图标 ## 1.3.2(2021-12-01) - 优化 示例可复制图标名称 ## 1.3.1(2021-11-23) diff --git a/uni_modules/uni-icons/components/uni-icons/icons.js b/uni_modules/uni-icons/components/uni-icons/icons.js index d189737..7889936 100644 --- a/uni_modules/uni-icons/components/uni-icons/icons.js +++ b/uni_modules/uni-icons/components/uni-icons/icons.js @@ -173,6 +173,13 @@ export default { "unicode": "e6bb", "unicode_decimal": 59067 }, + { + "icon_id": "24923353", + "name": "arrowthinright", + "font_class": "arrowthinright", + "unicode": "e6bb", + "unicode_decimal": 59067 + }, { "icon_id": "24923354", "name": "arrowthinleft", @@ -180,6 +187,13 @@ export default { "unicode": "e6bc", "unicode_decimal": 59068 }, + { + "icon_id": "24923354", + "name": "arrowthinleft", + "font_class": "arrowthinleft", + "unicode": "e6bc", + "unicode_decimal": 59068 + }, { "icon_id": "24923355", "name": "arrowthinup", @@ -187,12 +201,25 @@ export default { "unicode": "e6bd", "unicode_decimal": 59069 }, + { + "icon_id": "24923355", + "name": "arrowthinup", + "font_class": "arrowthinup", + "unicode": "e6bd", + "unicode_decimal": 59069 + }, { "icon_id": "24923356", "name": "arrowthindown", "font_class": "arrow-down", "unicode": "e6be", "unicode_decimal": 59070 + },{ + "icon_id": "24923356", + "name": "arrowthindown", + "font_class": "arrowthindown", + "unicode": "e6be", + "unicode_decimal": 59070 }, { "icon_id": "24923349", @@ -200,6 +227,12 @@ export default { "font_class": "bottom", "unicode": "e6b8", "unicode_decimal": 59064 + },{ + "icon_id": "24923349", + "name": "arrowdown", + "font_class": "arrowdown", + "unicode": "e6b8", + "unicode_decimal": 59064 }, { "icon_id": "24923346", @@ -208,6 +241,13 @@ export default { "unicode": "e6b5", "unicode_decimal": 59061 }, + { + "icon_id": "24923346", + "name": "arrowright", + "font_class": "arrowright", + "unicode": "e6b5", + "unicode_decimal": 59061 + }, { "icon_id": "24923347", "name": "arrowup", @@ -215,6 +255,13 @@ export default { "unicode": "e6b6", "unicode_decimal": 59062 }, + { + "icon_id": "24923347", + "name": "arrowup", + "font_class": "arrowup", + "unicode": "e6b6", + "unicode_decimal": 59062 + }, { "icon_id": "24923348", "name": "arrowleft", @@ -222,6 +269,13 @@ export default { "unicode": "e6b7", "unicode_decimal": 59063 }, + { + "icon_id": "24923348", + "name": "arrowleft", + "font_class": "arrowleft", + "unicode": "e6b7", + "unicode_decimal": 59063 + }, { "icon_id": "24923334", "name": "eye", diff --git a/uni_modules/uni-icons/components/uni-icons/uni-icons.vue b/uni_modules/uni-icons/components/uni-icons/uni-icons.vue index a9f271d..a87f68e 100644 --- a/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +++ b/uni_modules/uni-icons/components/uni-icons/uni-icons.vue @@ -1,14 +1,18 @@