@sdk185/sip-phone-sdk26 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/babel.config.js +5 -0
- package/dist/SIP_MIX_WEB.js +50 -0
- package/dist/demo.html +21 -0
- package/dist/en.js +24 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.html +32 -0
- package/dist/index.test.html +31 -0
- package/dist/media/outgoing-call2.b8558579.mp3 +0 -0
- package/dist/sip-phone-sdk.common.js +41800 -0
- package/dist/sip-phone-sdk.css +5 -0
- package/dist/sip-phone-sdk.umd.js +41810 -0
- package/dist/sip-phone-sdk.umd.min.js +14 -0
- package/dist/zh.js +24 -0
- package/jsconfig.json +19 -0
- package/package.json +91 -0
- package/public/SIP_MIX_WEB.js +50 -0
- package/public/en.js +24 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +32 -0
- package/public/index.test.html +31 -0
- package/public/zh.js +24 -0
- package/src/App.vue +124 -0
- package/src/assets/adudio-open.png +0 -0
- package/src/assets/audio-close.png +0 -0
- package/src/assets/call-down.png +0 -0
- package/src/assets/camera-close.png +0 -0
- package/src/assets/camera-open.png +0 -0
- package/src/assets/icon_Recording_Fill_Red_Active.svg +15 -0
- package/src/assets/icon_Recording_Fill_Red_Inactive.svg +15 -0
- package/src/assets/img_Avatar_User.png +0 -0
- package/src/assets/normal-logo.png +0 -0
- package/src/assets/outgoing-call2.mp3 +0 -0
- package/src/components/DialPanelMini.vue +179 -0
- package/src/components/MobilePhone copy.vue +1046 -0
- package/src/components/MobilePhone.vue +1166 -0
- package/src/components/index.js +36 -0
- package/src/components/vuetify.css +29663 -0
- package/src/index.js +100 -0
- package/src/lang/en.js +24 -0
- package/src/lang/zh.js +24 -0
- package/src/libs/SIP_MIX_WEB.js +50 -0
- package/src/libs/en.js +24 -0
- package/src/libs/tool.js +312 -0
- package/src/libs/zh.js +24 -0
- package/src/main.js +24 -0
- package/src/plugins/vuetify.js +11 -0
- package/vue.config.js +11 -0
package/dist/zh.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Wade (weida1985@163.com) on 2023/8/1.
|
|
3
|
+
*/
|
|
4
|
+
const zh={
|
|
5
|
+
serverConnecting: '服务器连接中',
|
|
6
|
+
serverConnected: '服务器已连接',
|
|
7
|
+
connectionClosed: '连接已断开',
|
|
8
|
+
clickButtonToMakeCall: '点击拨号开始呼叫',
|
|
9
|
+
gotCameraStreamFailed: '获取摄像头视频流失败',
|
|
10
|
+
calling: '呼叫中',
|
|
11
|
+
// pleaseBePatient: '请耐心等待',
|
|
12
|
+
pleaseBePatient: '正在邀请对方加入视频通话...',
|
|
13
|
+
cameraOrMicUnsupported: '不支持开启摄像头或Mic接口',
|
|
14
|
+
WebRTCUnsupported: '不支持WebRTC',
|
|
15
|
+
connectionFailedPleaseCheckYourNetwork: '服务器连接失败,请检查网络。',
|
|
16
|
+
registered: '已注册',
|
|
17
|
+
unregistered: '已注销',
|
|
18
|
+
registerFailed: '注册失败',
|
|
19
|
+
cancelled: '已取消',
|
|
20
|
+
hangedUp: '已挂机',
|
|
21
|
+
remoteRinging: '对端开始振铃',
|
|
22
|
+
remoteAccept: '已接通'
|
|
23
|
+
}
|
|
24
|
+
export default zh
|
package/jsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5", // 指定编译后的 JavaScript 目标版本为 ES5
|
|
4
|
+
"module": "esnext", // 使用 ES 模块系统
|
|
5
|
+
"baseUrl": "./", // 解析非相对模块名的基目录
|
|
6
|
+
"moduleResolution": "node", // 使用 Node.js 风格的模块解析策略
|
|
7
|
+
"paths": { // 模块名到基于 baseUrl 的路径映射
|
|
8
|
+
"@/*": [ // 配置 @ 符号指向 src 目录
|
|
9
|
+
"src/*"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"lib": [ // 编译过程中需要包含的库文件
|
|
13
|
+
"esnext", // 最新的 ES 特性
|
|
14
|
+
"dom", // DOM 相关 API
|
|
15
|
+
"dom.iterable", // 可迭代的 DOM 集合
|
|
16
|
+
"scripthost" // Windows Script Host 相关 API
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sdk185/sip-phone-sdk26",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/sip-phone-sdk.umd.js",
|
|
9
|
+
"module": "dist/sip-phone-sdk.common.js",
|
|
10
|
+
"unpkg": "dist/sip-phone-sdk.umd.min.js",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"src",
|
|
14
|
+
"public",
|
|
15
|
+
"*.js",
|
|
16
|
+
"*.json"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"sip",
|
|
20
|
+
"phone",
|
|
21
|
+
"webrtc",
|
|
22
|
+
"vue",
|
|
23
|
+
"sdk"
|
|
24
|
+
],
|
|
25
|
+
"author": "Your Name <your.email@example.com>",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/yourusername/sip-phone-sdk.git"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"serve": "vue-cli-service serve",
|
|
33
|
+
"build": "npm run clean && npm run build:test && npm run copy:assets",
|
|
34
|
+
"build:lib": "vue-cli-service build --target lib --name sip-phone-sdk --dest dist --formats umd,umd-min,commonjs src/index.js && mv dist/sip-phone-sdk.common.js dist/sip-phone-sdk.esm.js",
|
|
35
|
+
"build:test": "vue-cli-service build --target lib --name sip-phone-sdk ./src/components/MobilePhone.vue",
|
|
36
|
+
"clean": "rimraf dist",
|
|
37
|
+
"copy:assets": "cpx 'public/**/*' dist",
|
|
38
|
+
"lint": "vue-cli-service lint",
|
|
39
|
+
"prepublishOnly": "npm run build",
|
|
40
|
+
"preview": "npm run build && npx http-server dist -p 8088 -o"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@mdi/font": "^7.4.47",
|
|
44
|
+
"agora-rtc-sdk-ng": "^4.21.0",
|
|
45
|
+
"babel-polyfill": "^6.26.0",
|
|
46
|
+
"core-js": "^3.37.1",
|
|
47
|
+
"trtc-js-sdk": "^4.15.10",
|
|
48
|
+
"vconsole": "^3.15.1",
|
|
49
|
+
"vue": "2.6.10",
|
|
50
|
+
"vue-draggable-resizable": "^2.3.0",
|
|
51
|
+
"vue-i18n": "^8.28.2",
|
|
52
|
+
"vuetify": "^2.7.2",
|
|
53
|
+
"webrtc-adapter": "^8.2.3"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@babel/core": "^7.25.2",
|
|
57
|
+
"@babel/eslint-parser": "^7.25.1",
|
|
58
|
+
"@vue/cli-plugin-babel": "~4.5.19",
|
|
59
|
+
"@vue/cli-plugin-eslint": "~4.5.19",
|
|
60
|
+
"@vue/cli-service": "~4.5.19",
|
|
61
|
+
"cpx": "^1.5.0",
|
|
62
|
+
"eslint": "^7.32.0",
|
|
63
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
64
|
+
"rimraf": "^6.1.2",
|
|
65
|
+
"sass": "~1.32.13",
|
|
66
|
+
"sass-loader": "^10.5.2",
|
|
67
|
+
"vue-cli-plugin-vuetify": "~2.5.8",
|
|
68
|
+
"vue-template-compiler": "2.6.10",
|
|
69
|
+
"vuetify-loader": "^1.9.2"
|
|
70
|
+
},
|
|
71
|
+
"eslintConfig": {
|
|
72
|
+
"root": true,
|
|
73
|
+
"env": {
|
|
74
|
+
"node": true
|
|
75
|
+
},
|
|
76
|
+
"extends": [
|
|
77
|
+
"plugin:vue/essential",
|
|
78
|
+
"eslint:recommended"
|
|
79
|
+
],
|
|
80
|
+
"parserOptions": {
|
|
81
|
+
"parser": "@babel/eslint-parser"
|
|
82
|
+
},
|
|
83
|
+
"rules": {}
|
|
84
|
+
},
|
|
85
|
+
"browserslist": [
|
|
86
|
+
"> 1%",
|
|
87
|
+
"last 2 versions",
|
|
88
|
+
"not dead",
|
|
89
|
+
"since 2017"
|
|
90
|
+
]
|
|
91
|
+
}
|