vault backup: 2024-04-01 19:17:48

Affected files:
Haina/Monthly/2023/2023-09.md
Haina/_sidebar.md
Haina/~syncthing~README.md.tmp
Haina/分享&培训/Converting Your React-Vite App into PWA. _ by Rakesh Dhariwal _ Medium.md
Haina/项目/SCRM/SCRM需求和背景.md
Haina/项目/SCRM/YCloud webhook.md
Haina/项目/SCRM/一期总结.md
main
Lei OT 2 years ago
parent 37b2f9cd65
commit a9ae62a5aa

@ -14,7 +14,7 @@ tags:
4. 统计分析(实验性)
5. 组件
1. 基础数据接口: 国籍, 顾问等
2. [顾问客服需求文档](Haina/项目/SCRM/SCRM.md)
2. [顾问客服需求文档](Haina/项目/SCRM/SCRM需求和背景.md)
1. kimkim 系统了解
2. WhatsApp数据方案
3. 客服系统渠道

@ -1,2 +1,2 @@
<!-- -->
* [SCRM](项目/SCRM/SCRM.md)
* [SCRM需求和背景](Haina/项目/SCRM/SCRM需求和背景.md)

@ -0,0 +1,173 @@
(https://medium.com/@rakeshdhariwal61/converting-your-react-vite-app-into-pwa-d7211e9cd0c5)
**Lame Definition goes as:** PWA stands for progressive web-app which allow to run your webpage offline. Like, we see on many webpages whenever we do to visit to a particular webpage, a pop-up will appear in the search-bar of the browser which says, install as a web-app. Like, YouTube, GitHub, Code sandbox.
A progressive web app (PWA) is an app thats built using web platform technologies, but that provides a user experience like that of a platform-specific app.
Like a website, a PWA can run on multiple platforms and devices from a single codebase. Like a platform-specific app, it can be installed on the device, can operate while offline and in the background, and can integrate with the device and with other installed app.
Learn more from [Mdn Web Docks](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps).
Pre-requisite.
While, converting your app to PWA you, must need to follow some set of rules. Which you can found, by using [Lighthouse](https://chrome.google.com/webstore/detail/lighthouse/blipmdconlkpinefehnmjammfjpmpbjk) (Chrome Extension), all you just have to do is, open your webpage click on inspect, select Light House from toolbar section.
![](https://miro.medium.com/v2/resize:fit:700/1*_qNbmOl8q2nd_IU_bgMeUg.png)
If, you just want to generate the report for PWA un-select other options.
Then, click on analyze page load. It will generate the report what your webpage is missing.
If, you are working on React-Vite app it will be pretty simple for you to convert your React-Vite app to PWA.
1. Install vite-plugin-pwa.
```
npm install vite-plugin-pwa
yarna add vite-plugin-pwa
```
2\. Open the vite.config.js from root folder of your react-vite-app and import VitePWA.
```
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from "vite-plugin-pwa";
```
3\. VitePwa take one argument (A pure JavaScript object). This, js object define our, manifest for your project.
> The manifest object will contain some basic information about our webpage.
>
> You can create manifest.js anywhere you want inside the root folder of your project and import it into vite.config.js in this tutorial I am, creating the manifest in vite.config.js itself.
```
const manifestForPlugIn = {
registerType:'prompt',
includeAssests:['favicon.ico', "apple-touc-icon.png", "masked-icon.svg"],
manifest:{
name:"React-vite-app",
short_name:"react-vite-app",
description:"I am a simple vite app",
icons:[{
src: '/android-chrome-192x192.png',
sizes:'192x192',
type:'image/png',
purpose:'favicon'
},
{
src:'/android-chrome-512x512.png',
sizes:'512x512',
type:'image/png',
purpose:'favicon'
},
{
src: '/apple-touch-icon.png',
sizes:'180x180',
type:'image/png',
purpose:'apple touch icon',
},
{
src: '/maskable_icon.png',
sizes:'512x512',
type:'image/png',
purpose:'any maskable',
}
],
theme_color:'#171717',
background_color:'#f0e7db',
display:"standalone",
scope:'/',
start_url:"/",
orientation:'portrait'
}
}
```
Now, you need to generate favicon and maskable icon for you webapp.
and pass this object to VitePWA(manifestForPulgIn).
Also, you have to add the VitePWA in plugins array.
```
export default defineConfig({
plugins: [react(), VitePWA(manifestForPlugIn)],
})
```
```
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from "vite-plugin-pwa";
const manifestForPlugIn = {
registerType:'prompt',
includeAssests:['favicon.ico', "apple-touc-icon.png", "masked-icon.svg"],
manifest:{
name:"React-vite-app",
short_name:"react-vite-app",
description:"I am a simple vite app",
icons:[{
src: '/android-chrome-192x192.png',
sizes:'192x192',
type:'image/png',
purpose:'favicon'
},
{
src:'/android-chrome-512x512.png',
sizes:'512x512',
type:'image/png',
purpose:'favicon'
},
{
src: '/apple-touch-icon.png',
sizes:'180x180',
type:'image/png',
purpose:'apple touch icon',
},
{
src: '/maskable_icon.png',
sizes:'512x512',
type:'image/png',
purpose:'any maskable',
}
],
theme_color:'#171717',
background_color:'#f0e7db',
display:"standalone",
scope:'/',
start_url:"/",
orientation:'portrait'
}
}
export default defineConfig({
plugins: [react(), VitePWA(manifestForPlugIn)],
})
```
> Favicon generator: [Favicon.io](https://favicon.io/)
>
> Maskable Icon Generator: [Maskable.app](https://maskable.app/)
4\. Place all the generated assets into to public folder.
![](https://miro.medium.com/v2/resize:fit:539/1*ZtH_nlHIpYNI4B_ni6wrLg.png)
Make sure, you provided the proper size and type of image.
5\. Build, your project and deploy it as PWA doesnt work in development.
```
npm run build.
//or
yarn run build
```
6\. Open your webpage and you will see a pop-up install.
![](https://miro.medium.com/v2/resize:fit:656/1*W1XFpvnV8INSxH5HugnVnQ.png)
If, it doesnt appear in your case, make sure your entered everything correct in the manifestForPlugIn, more over you can check what you are missing, my seeing the logs or by generating Report from Lighthouse.

@ -0,0 +1,57 @@
---
Created: 2023-09-09 Sat
Updated: 2023-10-23 11:50 Mon
---
## Kimkim
kimkim的描述:
- 顾问共享行程设计, 检索和重复使用, 创建副本, 重视个性化
- 用户信息自动应用, 减少复制粘贴和输入错误
- 行程设计: 固定的日期模板
- 销售的最小单位: Activity
- 积极跟踪
- 移动端和PC端体验差异减小
顾问反馈:
- 不卡
- 用户体验好, 操作流程清晰
- 交互性好: 对报价的反馈; 删除内容, 控制预算
- 数据统计: 服务量, 服务效率
## WhatsApp 数据获取备份和分析
- [Baileys](https://github.com/WhiskeySockets/Baileys)
- 使用WhatsApp 多设备接口, 使同时登录以获取消息记录
- 存储和分析以及其他需求自行开发
- 免费
- 有风险. 这个方法属于是WhatsApp的逆向工程\
*WhatsApp要卖自己的商务服务, 按会话收费, 基于此的二次开发仓库都被要求删库, 社区目前还是积极的*
- [WADesk](https://wadesk.io/)
## 客服系统
### 需求
- 促进即时通讯, 能够群聊
- 管理沟通中的业务节点. 响应业务状态的变化
- 结合业务节点, 方便快捷地帮助顾问
- 希望达到Kim Kim那样, 在沟通中能迅速获取客户信息, 行程信息
对于自定业务的具体需求, 目前没有十分契合的供应商能够提供, 或者很贵
- WhatsApp官方api基于会话收费, 目前尚不支持群聊功能, 预计2024上半年开放
- 开发费用
## 总结
1. 仅需获取WhatsApp沟通内容, 基于Baileys自主开发就行(与蜂巢原理一样). 或者继续使用蜂巢的服务
- 消息记录存档
- 对消息记录的数据分析.
2. 客服系统
- 仅作沟通工具, 不嵌入业务: 保持目前的流程, 上述[1]
- 需要深入地辅助业务, 逐步达到取代邮件, 完全基于实际业务开发的客服系统
- 扩展: 除了WhatsApp之外, 接入其他IM渠道
- 选择社区框架还是官方接口?

@ -0,0 +1,6 @@
#### 推送时间间隔
1. 0s
2. +20s
3. +5min + 10s
4. +30min + 10s
5. +60min

@ -0,0 +1,8 @@
## 项目目标和成果
### 三个目标
## 项目过程和管理
## 技术实施和挑战
## 改进和优化
Loading…
Cancel
Save