{"_id":"@chudaozhe/vue-beautiful-chat","_rev":"3-ebaed2f312b53d349eba6151bafdba9c","name":"@chudaozhe/vue-beautiful-chat","description":"A simple and beautiful Vue chat component backend agnostic.","dist-tags":{"latest":"2.5.3"},"versions":{"2.5.0":{"name":"@chudaozhe/vue-beautiful-chat","version":"2.5.0","keywords":["vue","vuejs","chat","vue-js-chat"],"author":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"license":"MIT","_id":"@chudaozhe/vue-beautiful-chat@2.5.0","maintainers":[{"name":"chudaozhe","email":"chudaozhe@outlook.com"}],"homepage":"https://github.com/chudaozhe/vue-beautiful-chat#readme","bugs":{"url":"https://github.com/chudaozhe/vue-beautiful-chat/issues"},"dist":{"shasum":"79d6a5b9312d08c091e93751b50b8d1bd13fc12b","tarball":"https://registry.npmjs.org/@chudaozhe/vue-beautiful-chat/-/vue-beautiful-chat-2.5.0.tgz","fileCount":5,"integrity":"sha512-+6Gmq1LrsYiXuJawisxhfGJWs8i72DoFTKiP0wTL1lBXH9XUdPOdFvHabJFg0bK3c1Ia8TO5t+pJINPqTHDCkQ==","signatures":[{"sig":"MEYCIQDED6TfJ/AaZLp+tEqmucsj98/fq1tCRdDQi5Sca7YyNwIhANbMbCCGcVKSTme7a6x36Qg2zMcc2hP3LghtP7rDFHy6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1263084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicUAxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRaw//fr5B0SQ75BNp2ITivwCJDakaFrjIiBnCjMAFc8Q6UM3QlI8w\r\nmwsBDd2SIw2eUE8vSDgy8zVWIVihVlHZKS/teb2DGXeNoaGzLVgwEZTWBy5r\r\nXMXnGuhTOR/jpA4psIxmOgOP3sDLJctzjMqwucwAIxv7yUNgx7wnnbuGkt97\r\n4h6bOit1G/uHinW9fz2nnPsLAUmKh1sj7UEN3YOMPooHK5HClwmXcEA0R0rV\r\nRVpq+RHffJqin9V6QTMIV40cDegGg6D1F2EFlVXOmnnXvkJqaI7BI1ytEbz3\r\n8lAPXW9G5K11NIPY/koFik9rZcNtMA4Zuya4MyCFceA/jxJmVIrrKBEHZz9O\r\n9mLwUrmju1zW4RU74LbfAeXHRkqiwHC1e7q8TMRrIOdA02Q1aMv8z2lnhE1U\r\nhkfXMFtjm1DFEsbs9GzKYBZFq17wTqUvI+M+AsLNCcz2xfIPmZbYvTnTO0yi\r\nv0AIu2/VKnlu7MNNetMUQFFKl5Vb2E5+mFABG/zA0jve1GKB56ack5O59g0L\r\nCw2UlWTB9NtkuUfag4xHtRRBsEeV/PVIO/ILOcdL7u8osgU8QOkvdovtmCeE\r\nJ0divhf8LOrjQg1CPburGMDaacTKfbnQLhGrdoHyx/3IGvOdJgz+/at7F2sX\r\nAHMe96NqSuAevF4/B1HIZ4vB09jDVjG5qic=\r\n=tcEt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/vue-beautiful-chat.umd.min.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"9a8effc11a268af6ff2e3b11d9ae47ddc08a5227","scripts":{"lint":"vue-cli-service lint","build":"vue-cli-service build --target lib --name vue-beautiful-chat --formats umd-min src/index.js","watch":"npm run build -- --mode development --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"repository":{"url":"git+https://github.com/chudaozhe/vue-beautiful-chat.git","type":"git"},"_npmVersion":"6.14.12","description":"A simple and beautiful Vue chat component backend agnostic.","directories":{},"lint-staged":{"*.{js,vue}":"vue-cli-service lint"},"_nodeVersion":"14.16.1","dependencies":{"kind-of":"6.0.3","emoji-js":"^3.4.0","imagemin":"^6.1.0","minimist":"1.2.3","autolinker":"^1.8.3","escape-goat":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^4.3.0","eslint":"^6.8.0","prettier":"^2.0.2","node-sass":"^4.13.1","node-forge":"^0.10.0","lint-staged":"^10.4.2","sass-loader":"^8.0.2","babel-eslint":"^10.1.0","@vue/cli-service":"~4.2.3","eslint-plugin-vue":"^6.2.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.20.2","@vue/cli-plugin-babel":"~4.2.3","eslint-plugin-promise":"^4.2.1","vue-template-compiler":"^2.6.11","@vue/cli-plugin-eslint":"~4.2.3","eslint-plugin-prettier":"^3.1.2","eslint-plugin-standard":"^4.0.1","@vue/eslint-config-prettier":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-beautiful-chat_2.5.0_1651589169674_0.5040021704824353","host":"s3://npm-registry-packages"}},"2.5.1":{"name":"@chudaozhe/vue-beautiful-chat","version":"2.5.1","keywords":["vue","vuejs","chat","vue-js-chat"],"author":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"license":"MIT","_id":"@chudaozhe/vue-beautiful-chat@2.5.1","maintainers":[{"name":"chudaozhe","email":"chudaozhe@outlook.com"}],"homepage":"https://github.com/chudaozhe/vue-beautiful-chat#readme","bugs":{"url":"https://github.com/chudaozhe/vue-beautiful-chat/issues"},"dist":{"shasum":"a55f7d757285a642548279aa4b65d186f7214e3f","tarball":"https://registry.npmjs.org/@chudaozhe/vue-beautiful-chat/-/vue-beautiful-chat-2.5.1.tgz","fileCount":4,"integrity":"sha512-uHMJXseltyMFJg7XnX9aF8sbkZSAQk7X4hDTi30kN+bqyP1qp2tE4jD5UZkPKr/nvK9b7D5CUTtTV136i/6Mvw==","signatures":[{"sig":"MEUCIQDlpR0hLiHcy741Tt49E+zrQAkoSCITawYzWr88jTR3pgIgSZf/fqs7lkBzdWtgHe041185YRpmszX4A6DA3rzbuGA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":308655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid1K4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5xw//QiXDGdffSnO+63Urkwpz5JkALTmH3aTp7LLhskKswT6kN4PL\r\nwZDdXhjgeMVJRo/MU/pKRqmo+eCgdRU0m/GNfAUrw+vb+yqA1wTqi88bjg9R\r\nnJNt8+nxKXZiFmzSPog8LTviyco5Da/opSdeSBDDZU5s89RTlbQRpRNImqtD\r\nEcymfftqeLluEMyCtq3hn0gmHvawPmrU6F5Ze5eDzAA2nsVl4ON3gpQlHsFE\r\nl5TRpO0XOP2opJ2Znalx9+5nGG7jHJZiQjgC86u/U8IpBhC9ho55Eb9REZZA\r\n2hRKxM8H7yjl8IYb0szkCsYJhZR2Mt33R32SCJj4iXfNiRakcr8ygnIYpYB9\r\nUqUsXd6Hz2tXYAehk81cEeIIDYenkFOlXkTzYwdwwF1+9u6pV+5/b/2f3yIL\r\nik6eZye4WUVKorHZu36CzsN+q1ECs1oC3T4hIbbEiLndov9jDkksCJaxCLDx\r\nqqTq/H0E2xKy64+5aXN/L2mTu6N1ohnNYuMQe+8E1BPfTiurucl5SRtdOqAF\r\ndOhqRIM7MiQfuaOIExieFUa41jykMgf2tY7K1Vz8m7E+Viv193J+EKH3P4V8\r\npf6MNsqJvuSS0iJlsl2UInsPyExhPhXlyr7OtJYueq1jqNazTNOgd87wQ1va\r\ncM5pQcf4BZYq3EdjGUZ00DRY3jC+JDzgz8A=\r\n=69O7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/vue-beautiful-chat.umd.min.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"2e695cb6b4b6ddf7605380631ac647f8440de0cb","scripts":{"lint":"vue-cli-service lint","build":"vue-cli-service build --target lib --name vue-beautiful-chat --formats umd-min src/index.js","watch":"npm run build -- --mode development --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"repository":{"url":"git+https://github.com/chudaozhe/vue-beautiful-chat.git","type":"git"},"_npmVersion":"6.14.12","description":"A simple and beautiful Vue chat component backend agnostic.","directories":{},"lint-staged":{"*.{js,vue}":"vue-cli-service lint"},"_nodeVersion":"14.16.1","dependencies":{"kind-of":"6.0.3","emoji-js":"^3.4.0","imagemin":"^6.1.0","minimist":"1.2.3","autolinker":"^1.8.3","escape-goat":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^4.3.0","eslint":"^6.8.0","prettier":"^2.0.2","node-sass":"^4.13.1","node-forge":"^0.10.0","lint-staged":"^10.4.2","sass-loader":"^8.0.2","babel-eslint":"^10.1.0","@vue/cli-service":"~4.2.3","eslint-plugin-vue":"^6.2.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.20.2","@vue/cli-plugin-babel":"~4.2.3","eslint-plugin-promise":"^4.2.1","vue-template-compiler":"^2.6.11","@vue/cli-plugin-eslint":"~4.2.3","eslint-plugin-prettier":"^3.1.2","eslint-plugin-standard":"^4.0.1","@vue/eslint-config-prettier":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-beautiful-chat_2.5.1_1651987127858_0.012136904508276647","host":"s3://npm-registry-packages"}},"2.5.2":{"name":"@chudaozhe/vue-beautiful-chat","version":"2.5.2","keywords":["vue","vuejs","chat","vue-js-chat"],"author":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"license":"MIT","_id":"@chudaozhe/vue-beautiful-chat@2.5.2","maintainers":[{"name":"chudaozhe","email":"chudaozhe@outlook.com"}],"homepage":"https://github.com/chudaozhe/vue-beautiful-chat#readme","bugs":{"url":"https://github.com/chudaozhe/vue-beautiful-chat/issues"},"dist":{"shasum":"d285792068c63cb1b37d815a6cafa4e80ff7074f","tarball":"https://registry.npmjs.org/@chudaozhe/vue-beautiful-chat/-/vue-beautiful-chat-2.5.2.tgz","fileCount":4,"integrity":"sha512-1g1ODCuwX4gXuSDR+CNxQ5J/J62966X0gBzIC6uTIKpfbcR22j5X8xcZM2NRHV9oZgyzsLqP0golRcNL7KORww==","signatures":[{"sig":"MEYCIQDtk2naARWBt/N+xLqnt7FOe+0WHogtM4xWKxFw+o/WhgIhAJOEaxmP59ccRtbRflPO48EghJ+e/z1H8kJXJpnflQTu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":412432},"main":"./dist/vue-beautiful-chat.es.js","gitHead":"a1fa950b0500aabbddd5e8373189ba8b8cb67fff","scripts":{"build":"vite build"},"_npmUser":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"repository":{"url":"git+https://github.com/chudaozhe/vue-beautiful-chat.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple and beautiful Vue chat component backend agnostic.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"emoji-js":"^3.8.0","autolinker":"^4.0.0","escape-goat":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.4.27","sass":"^1.77.2","vite":"^5.2.11","@vitejs/plugin-vue":"^5.0.4"},"_npmOperationalInternal":{"tmp":"tmp/vue-beautiful-chat_2.5.2_1717252096368_0.8073318329444628","host":"s3://npm-registry-packages"}},"2.5.3":{"name":"@chudaozhe/vue-beautiful-chat","version":"2.5.3","description":"A simple and beautiful Vue chat component backend agnostic.","main":"./dist/vue-beautiful-chat.es.js","repository":{"type":"git","url":"git+https://github.com/chudaozhe/vue-beautiful-chat.git"},"author":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"license":"MIT","scripts":{"build":"vite build"},"devDependencies":{"@vitejs/plugin-vue":"^5.0.4","sass":"^1.77.2","vite":"^5.2.11","vue":"^3.4.27"},"dependencies":{"autolinker":"^4.0.0","floating-vue":"^5.2.2","vue-mention":"^2.0.0-alpha.3","emoji-js":"^3.8.0","escape-goat":"^4.0.0"},"keywords":["vue","vuejs","chat","vue-js-chat"],"bugs":{"url":"https://github.com/chudaozhe/vue-beautiful-chat/issues"},"_id":"@chudaozhe/vue-beautiful-chat@2.5.3","gitHead":"a1fa950b0500aabbddd5e8373189ba8b8cb67fff","homepage":"https://github.com/chudaozhe/vue-beautiful-chat#readme","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ftk1lFW8UNeUtho8f6hlQU1VoLQOtNAlDiuAaqGJ3TGfwZMWcs5vY5WWJUmIwUBIDv5EmJcvreYkmcZIKwGGxQ==","shasum":"56e9148d5deaf19df8c2e82452b546d6469ec35c","tarball":"https://registry.npmjs.org/@chudaozhe/vue-beautiful-chat/-/vue-beautiful-chat-2.5.3.tgz","fileCount":4,"unpackedSize":492168,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpRPAiT5Y92o7BCPB9OxEOtOP1oV5gTZS7kn8PK0ifDAiEAyofiE+zvh3T9Ksx0uGVaUrI5532/QEgcXDG0qwp6XvM="}]},"_npmUser":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"directories":{},"maintainers":[{"name":"chudaozhe","email":"chudaozhe@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-beautiful-chat_2.5.3_1718640511508_0.1744647021214074"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-03T14:46:09.615Z","modified":"2024-06-17T16:08:31.860Z","2.5.0":"2022-05-03T14:46:09.815Z","2.5.1":"2022-05-08T05:18:48.025Z","2.5.2":"2024-06-01T14:28:16.567Z","2.5.3":"2024-06-17T16:08:31.699Z"},"maintainers":[{"name":"chudaozhe","email":"chudaozhe@outlook.com"}],"author":{"name":"chudaozhe","email":"chudaozhe@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/chudaozhe/vue-beautiful-chat.git"},"keywords":["vue","vuejs","chat","vue-js-chat"],"license":"MIT","homepage":"https://github.com/chudaozhe/vue-beautiful-chat#readme","bugs":{"url":"https://github.com/chudaozhe/vue-beautiful-chat/issues"},"readme":"# 差异\r\n- 改变消息的数据结构\r\n```\r\n[\r\n    {\r\n        id: 1,\r\n        user_id: 1,\r\n        article_id: 1,\r\n        type: 'text',\r\n        pack: {content: 'ww1'},\r\n        create_time: 1651463235,\r\n    },\r\n    {\r\n        id: 2,\r\n        user_id: 2,\r\n        article_id: 1,\r\n        type: 'text',\r\n        pack: {content: 'ww2'},\r\n        create_time: 1651463235,\r\n    },\r\n]\r\n```\r\n- 改变当前用户的逻辑\r\n\r\n原来是`author=me`即自己，消息显示在右边；现在改为指定user_id，如cookie中缓存了user_id=1，那么user_id=1的消息就显示在右边\r\n\r\n- 精简消息类型\r\n\r\n原来的消息类型不符合预期，先精简只保留文本消息，后面再加入常见的消息类型\r\n\r\n- 2.5.0及以后版本是我的修改\r\n\r\n- 注意`demo/src/App.vue`\r\n```\r\n  data() {\r\n    return {\r\n      user_id: 1,\r\n      room_id: 1,\r\n      title: '标题111'\r\n...\r\n```\r\n`user_id`是当前用户，`title`是标题，`room_id`是聊天室id（整合后端时会用到）\r\n- 打包\r\n```\r\nnpm install\r\nnpm run build\r\n```\r\n- 运行demo\r\n```\r\ncd demo\r\nnpm install\r\nnpm run dev\r\n```","readmeFilename":"README.md"}