blob: 44dbd514d1799adccc662e9bf37751463807e3ee [file] [log] [blame]
qumengjiaca65ef52024-11-06 15:42:21 +08001define(function () {
2 var config = {
3 WEBUI_TITLE: '4G Hostless Modem', //title配置, 具体参考各设备下的配置
4 ALREADY_NOTICE: false, //是否已经提醒,有在线升级信息
5 ALREADY_OTA_NOTICE: false, //是否OTA升级提醒过
6 dbMsgs: [], //数据库中全部的短消息
7 listMsgs: [], //经解析关联后的所有短消息
8 currentChatObject: null, //当前聊天对象的手机号
9 smsMaxId: 0, //短消息最大编号
10 phonebook: [], //电话本记录
11 smsIsReady: false, //缓存短信初始化状态
12 portForwardMax: 10, //端口转发最大规则数
13 urlFilterMax: 10, //URL filter最大规则数
14 defaultApnSize: 1, //出厂设置默认APN的个数
15 maxApnNumber: 10, //最大APN个数
16 RJ45_SUPPORT: false, //是否支持rj45
17 TSW_SUPPORT: false, // 是否支持定时休眠唤醒
18 WIFI_SLEEP_SUPPORT: true, // 是否支持wifi休眠
19 HAS_BATTERY: true, //是否有电池
20 FAST_BOOT_SUPPORT: true, //是否支持快速开机
21 TURN_OFF_SUPPORT: true, //是否支持关机
22 PRODUCT_TYPE: 'UFI', // 产品类型UFI、CPE
23 IS_TEST: false, //配置是否是模拟数据
24 NATIVE_UPDATE_FILE_SIZE: 64, //支持的本地升级文件大小上限,单位为M
25 DDNS_SUPPORT: false, //DDNS
26 MAX_LOGIN_COUNT: 5, //最大登录次数,密码输入错误次数到了以后会账户冻结一定时间
27 LOGIN_SECURITY_SUPPORT: true, //是否支持登录安全
28 LOGIN_THEN_CHECK_PIN: true, //是否先登录后验证PIN,PUK
29 GUEST_HASH: ['#httpshare_guest'],
30 DEVICE: 'ext', //各个型号机配置文件路径
31 connect_flag: false,
32 defaultRoute: '#entry',
33 IPV4_AND_V6_SUPPORT: false, //是否支持IPv4 & v6。 双PDP双栈
34 IPV4V6_SUPPORT: true, //是否支持ipv4v6。 IPV4V6_SUPPORT和IPV4_AND_V6_SUPPORT不可同时为true.单PDP双栈
35 IPV6_SUPPORT: true, //是否支持ipv6
36 EMPTY_APN_SUPPORT: false, //是否支持空apn
37 SHOW_APN_DNS: false, //APN设置页面是否显示DNS,不显示则dnsMode默认设置为auto
38 TRAFFIC_SUPPORT: true, //是否支持流量功能
39 CLEAR_DATA_SUPPORT: false, //是否支持流量和时间清空功能
40 NETWORK_UNLOCK_SUPPORT: false, //是否支持解锁
41 SHOW_MAC_ADDRESS: false, //是否显示mac地址
42 PASSWORD_ENCODE: true, //登录密码和WIFI密码是否加密
43 AP_STATION_SUPPORT: false, //是否支持AP Station功能
44 AP_STATION_LIST_LENGTH: 10,
45 WIFI_WEP_SUPPORT: false, //是否支持wifi WEP加密
46 WIFI_WAP3_SUPPORT: true, //是否支持wifi WAP3加密
47 WIFI_WPA2_WAP3_SUPPORT: true, //是否支持wifi WPA2/WAP3兼容模式
48 WIFI_HAS_5G: false,
49 WIFI_BAND_SUPPORT: false, //是否支持wifi频段设置
50 WIFI_BANDWIDTH_SUPPORT: false, //是否支持频带宽度
51 WIFI_BANDWIDTH_SUPPORT_40MHZ: false, //频带宽度是否支持40MHZ,reltek芯片支持
52 WIFI_SUPPORT_QR_CODE: true, //是否支持wifi二维码显示
53 WIFI_SUPPORT_QR_SWITCH: false, //是否支持wifi二维码显示控制
54 WIFI_SWITCH_SUPPORT: true, //是否支持wifi开关
55 MAX_STATION_NUMBER: 32, //CPE WIFI最大连接数为32
56 SHOW_WIFI_AP_ISOLATED: false, // 是否显示AP隔离
57 STATION_BLOCK_SUPPORT: false, // 已连接设备是否支持Block功能
58 UPGRADE_TYPE: "FOTA", //取值有"NONE","OTA","FOTA","TWO_PORTION"
59 SMS_UNREAD_NUM_INCLUDE_SIM: false, //未读短息数量是否包含SIM侧
60 SMS_DATABASE_SORT_SUPPORT: true, //短信是否支持DB排序
61 SMS_MATCH_LENGTH: 11, //短信联系人号码匹配位数,11国内项目,8国际项目
62 SHOW_UN_COMPLETE_CONCAT_SMS: true, //级联短信未接收完是否显示相关级联短信
63 SMS_SET_READ_WHEN_COMPLETE: false, //聊天过程中,级联短信只有接受完成后才能自动设置为已读
64 SD_CARD_SUPPORT: false, //是否支持SD卡
65 SD_BASE_PATH: '/mmc2', //SD 卡根目录
66 //modem_main_state的临时状态,一般需要界面轮询等待
67 TEMPORARY_MODEM_MAIN_STATE: ["modem_undetected", "modem_detected", "modem_sim_state", "modem_handover", "modem_imsi_lock", "modem_online", "modem_offline"],
68 ISNOW_NOTICE: false, //FOTA是否正在提示有新版本
69 INCLUDE_MOBILE: true,
70 HAS_USSD: false, // 是否支持USSD功能,
71 HAS_URL: false, // 是否支持URL过滤,
72 HAS_CASCADE_SMS: true, //是否支持级联短信
73 HAS_FOTA: true, //是否支持FOTA
74 HAS_UPDATE_CHECK: true, //是否支持升级检测设置
75 HAS_PHONEBOOK: true, //是否有电话本功能
76 HAS_SMS: true, //是否有短信功能
77 HAS_PARENTAL_CONTROL: false, // 是否支持家长控制功能
78 HAS_MULTI_SSID: false, //多ssid功能
79 HAS_WIFI: true, //是否包含wifi功能
80 HAS_QUICK_SETTING: true, //是否支持快速设置
81 HAS_SNTP: true, //是否支持时间管理
82 HAS_BLACK_AND_WHITE_FILTER: false, //是否支持黑白名单
83 HAS_LOGIN: true, //是否有登录页面
84 HAS_UPNP: true, //是否支持UPNP
85 BAUD_RATES: [{
86 name: '9600',
87 value: '9600'
88 }, {
89 name: '19200',
90 value: '19200'
91 }, {
92 name: '38400',
93 value: '38400'
94 }, {
95 name: '57600',
96 value: '57600'
97 }, {
98 name: '115200',
99 value: '115200'
100 }, {
101 name: '230400',
102 value: '230400'
103 }, {
104 name: '460800',
105 value: '460800'
106 }, {
107 name: '921600',
108 value: '921600'
109 }
110 ],
111 FORWARDING_MODES: [{
112 name: 'Unconditional forwarding',
113 value: '1'
114 }, {
115 name: 'When busy',
116 value: '2'
117 }, {
118 name: 'When no answer',
119 value: '3'
120 }, {
121 name: 'Cancel all forwarding',
122 value: '0'
123 }
124 ],
125 wdsModes: [{
126 name: "Disable",
127 value: "0"
128 }, {
129 name: "RootAP Mode",
130 value: "1"
131 }, {
132 name: "Bridge Mode",
133 value: "2"
134 }, {
135 name: "Repeater Mode",
136 value: "3"
137 }
138 ],
139 daylightSave: [{
140 name: "Disable",
141 value: "0"
142 }, {
143 name: "Enable",
144 value: "1"
145 }
146 ],
147 sntpTimeSetMode: [{
148 name: 'manual',
149 value: 'manual'
150 }, {
151 name: 'auto',
152 value: 'auto'
153 }
154 ],
155 //时区
156 timeZone: [{
157 name: "(GMT-12:00) Dateline West",
158 value: "<-12>12_0"
159 }, {
160 name: "(GMT-11:00) Midway Islands, Samoa",
161 value: "SST11_0"
162 }, {
163 name: "(GMT-10:00) Hawaii",
164 value: "<-10>10_0"
165 }, {
166 name: "(GMT-09:00) Alaska",
167 value: "<-09>9_0"
168 }, {
169 name: "(GMT-08:00) Pacific time (USA and Canada), Tijuana",
170 value: "PST8PDT,M3.2.0,M11.1.0_0"
171 }, {
172 name: "(GMT-07:00) Mountain time (USA and Canada)",
mj.qu15f63a72025-05-30 01:34:47 -0700173 value: "MST7MDT,M3.2.0,M11.1.0_0"
qumengjiaca65ef52024-11-06 15:42:21 +0800174 }, {
175 name: "(GMT-07:00) Arizona",
176 value: "<-07>7_1"
177 }, {
qumengjiaca65ef52024-11-06 15:42:21 +0800178 name: "(GMT-06:00) Saskatchewan",
179 value: "<-06>6_0"
180 }, {
181 name: "(GMT-06:00) Central time (USA and Canada)",
182 value: "<-06>6_1"
183 }, {
184 name: "(GMT-06:00) Central America",
185 value: "<-06>6_2"
186 }, {
mj.qu5ff300c2025-07-17 23:53:19 -0700187 name: "(GMT-06:00) Guadalajara City, Mexico City, Monterey, Chihuahua,Mazza Tran",
qumengjiaca65ef52024-11-06 15:42:21 +0800188 value: "<-06>6_3"
189 }, {
190 name: "(GMT-05:00) Bogota, Lima, Quito",
191 value: "<-05>5_0"
192 }, {
193 name: "(GMT-05:00) Eastern time (USA and Canada)",
194 value: "<-05>5_1"
195 }, {
196 name: "(GMT-05:00) Indiana (East)",
197 value: "EST5EDT,M3.2.0,M11.1.0_2"
198 }, {
199 name: "(GMT-04:00) Atlantic time (Canada)",
200 value: "AST4ADT,M3.2.0,M11.1.0_0"
201 }, {
202 name: "(GMT-04:00) Caracas, La Paz",
203 value: "<-04>4_1"
204 }, {
205 name: "(GMT-04:00) Santiago",
206 value: "<-04>4<-03>,M8.2.6/24,M5.2.6/24_2"
207 }, {
208 name: "(GMT-03:30) Newfoundland",
209 value: "NST3:30NDT,M3.2.0,M11.1.0_0"
210 }, {
211 name: "(GMT-03:00) Brasilia",
212 value: "<-03>3_0"
213 }, {
214 name: "(GMT-03:00) Buenos Aires, Georgetown",
215 value: "<-03>3_1"
216 }, {
217 name: "(GMT-03:00) Greenland",
218 value: "<-03>3_2"
219 }, {
220 name: "(GMT-02:00) Mid-Atlantic",
221 value: "<-02>2_0"
222 }, {
223 name: "(GMT-01:00) Cape Verde Islands",
224 value: "<-01>1_0"
225 }, {
226 name: "(GMT-01:00) Azores",
227 value: "<-01>1<+00>,M3.5.0/0,M10.5.0/1_1"
228 }, {
229 name: "(GMT) GMT: Dublin, Edinburgh, London, Lisbon",
230 value: "GMT0IST,M3.5.0/1,M10.5.0_0"
231 }, {
mj.qu6f3bcbf2025-07-08 01:37:15 -0700232 name: "(GMT) Casablanca",
qumengjiaca65ef52024-11-06 15:42:21 +0800233 value: "WET0WEST,M3.5.0,M10.5.0/3_1"
234 }, {
mj.qu6f3bcbf2025-07-08 01:37:15 -0700235 name: "(GMT) Monrovia",
236 value: "<+00>-0_2"
237 }, {
qumengjiaca65ef52024-11-06 15:42:21 +0800238 name: "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",
239 value: "CET-1CEST,M3.5.0,M10.5.0/3_0"
240 }, {
241 name: "(GMT+01:00) Belgrad, Bratislava, Budapest, Ljubljana, Prague",
242 value: "CET-1CEST,M3.5.0,M10.5.0/3_1"
243 }, {
244 name: "(GMT+01:00) Brussels, Copenhagen, Madrid, Paris",
245 value: "CET-1CEST,M3.5.0,M10.5.0/3_2"
246 }, {
247 name: "(GMT+01:00) Sarajevo, Skopje,Warsaw, Zagreb",
248 value: "CET-1CEST,M3.5.0,M10.5.0/3_3"
249 }, {
250 name: "(GMT+01:00) Western Central African",
251 value: "<+01>-1_4"
252 }, {
253 name: "(GMT+02:00) Bucharest",
254 value: "EET-2EEST,M3.5.0/3,M10.5.0/4_0"
255 }, {
256 name: "(GMT+02:00) Pretoria, Harare",
257 value: "CAT-2_1"
258 }, {
259 name: "(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius",
260 value: "EET-2EEST,M3.5.0/3,M10.5.0/4_2"
261 }, {
262 name: "(GMT+02:00) Cairo",
263 value: "EET-2_3"
264 }, {
mj.qub71c8272025-07-10 01:22:25 -0700265 name: "(GMT+02:00) Athens, Beirut",
qumengjiaca65ef52024-11-06 15:42:21 +0800266 value: "EET-2EEST,M3.5.0/3,M10.5.0/4_4"
267 }, {
268 name: "(GMT+02:00) Jerusalem",
269 value: "IST-2IDT,M3.4.5/02:00:00,M10.5.0/02:00:00_5"
270 }, {
mj.qub71c8272025-07-10 01:22:25 -0700271 name: "(GMT+03:00) Baghdad, Istanbul, Minsk",
qumengjiaca65ef52024-11-06 15:42:21 +0800272 value: "<+03>-3_0"
273 }, {
274 name: "(GMT+03:00) Riyadh, Kuwait",
275 value: "<+03>-3_1"
276 }, {
277 name: "(GMT+03:00) Moscow, St Petersburg, Volgograd",
278 value: "<+03>-3_2"
279 }, {
280 name: "(GMT+03:00) Nairobi",
281 value: "EAT-3_3"
282 }, {
283 name: "(GMT+03:30) Teheran",
mj.qu49381e62025-04-29 18:29:54 -0700284 value: "<+0330>-3:30_0"
qumengjiaca65ef52024-11-06 15:42:21 +0800285 }, {
286 name: "(GMT+04:00) Abu Zabi, Muscat",
287 value: "<+04>-4_0"
288 }, {
289 name: "(GMT+04:00) Baku, Tbilisi, Yerevan",
290 value: "<+04>-4_1"
291 }, {
292 name: "(GMT+04:30) Kabul",
293 value: "<+0430>-4:30_0"
294 }, {
295 name: "(GMT+05:00) Yekaterinburg",
296 value: "<+05>-5_0"
297 }, {
298 name: "(GMT+05:00) Islamabad, Karachi, Tashkent",
299 value: "PKT-5_1"
300 }, {
301 name: "(GMT+05:30) Madras, Calcutta, Mumbai, New Delhi",
302 value: "<+0530>-5:30_0"
303 }, {
304 name: "(GMT+05:45) Kathmandu",
305 value: "<+0545>-5:45_0"
306 }, {
307 name: "(GMT+06:00) Ala Mutu, Novosibirsk",
308 value: "<+06>-6_0"
309 }, {
310 name: "(GMT+06:00) Dhaka, Astana",
311 value: "<+06>-6_1"
312 }, {
313 name: "(GMT+06:00) Sri Haya Ed Denny Pla",
314 value: "<+06>-6_2"
315 }, {
316 name: "(GMT+06:30) Yangon",
317 value: "<+0630>-6:30_0"
318 }, {
319 name: "(GMT+07:00) Krasnoyarsk",
320 value: "<+07>-7_0"
321 }, {
322 name: "(GMT+07:00) Bangkok, Hanoi, Jakarta",
323 value: "<+07>-7_1"
324 }, {
325 name: "(GMT+08:00) Beijing, Chongqing, Hongkong Special Administrative Region, Urumqi",
326 value: "CST-8_0"
327 }, {
328 name: "(GMT+08:00) Kuala Lumpur, Singapore",
329 value: "<+08>-8_1"
330 }, {
331 name: "(GMT+08:00) Perth",
332 value: "AWST-8_2"
333 }, {
334 name: "(GMT+08:00) Taipei",
335 value: "CST-8_3"
336 }, {
337 name: "(GMT+08:00) Irkutsk, Ulam Batu",
338 value: "<+08>-8_4"
339 }, {
340 name: "(GMT+09:00) Osaka, Sapporo, Tokyo",
341 value: "JST-9_0"
342 }, {
343 name: "(GMT+09:00) Seoul",
344 value: "KST-9_1"
345 }, {
346 name: "(GMT+09:00) Yakutsk",
347 value: "<+09>-9_2"
348 }, {
349 name: "(GMT+09:30) Adelaide",
350 value: "ACST-9:30ACDT,M10.1.0,M4.1.0/3_0"
351 }, {
352 name: "(GMT+09:30) Darwin",
353 value: "ACST-9:30_1"
354 }, {
355 name: "(GMT+10:00) Brisbane",
356 value: "AEST-10_0"
357 }, {
358 name: "(GMT+10:00) Vladivostok",
359 value: "<+10>-10_1"
360 }, {
361 name: "(GMT+10:00) Guam, Port Moresby",
362 value: "<+10>-10_2"
363 }, {
364 name: "(GMT+10:00) Hobart",
365 value: "AEST-10AEDT,M10.1.0,M4.1.0/3_3"
366 }, {
367 name: "(GMT+10:00) Canberra, Melbourne, Sydney",
368 value: "AEST-10AEDT,M10.1.0,M4.1.0/3_4"
369 }, {
370 name: "(GMT+11:00) Magadan, Solomon islands, New Caledonia",
371 value: "<+11>-11_0"
372 }, {
373 name: "(GMT+12:00) Wellington, Oakland",
374 value: "<+12>-12_0"
375 }, {
376 name: "(GMT+12:00) Fiji, Kamchatka, Marshall Islands",
377 value: "<+12>-12_1"
378 }, {
379 name: "(GMT+13:00) Nukualofa",
380 value: "<+13>-13_0"
381 }
382 ],
383
384 //短信保存时间
385 SMS_VALIDITY: [{
386 name: '12 hours',
387 value: 'twelve_hours'
388 }, {
389 name: 'A day',
390 value: 'one_day'
391 }, {
392 name: 'A week',
393 value: 'one_week'
394 }, {
395 name: 'The longest period',
396 value: 'largest'
397 }
398 ],
399 MAP_PROTOCOL_MODES: [{
400 name: "TCP+UDP",
401 value: "TCP&UDP"
402 }, {
403 name: "TCP",
404 value: "TCP"
405 }, {
406 name: "UDP",
407 value: "UDP"
408 }
409 ],
410 //端口转发协议
411 FORWARD_PROTOCOL_MODES: [{
412 name: "TCP+UDP",
413 value: "TCP&UDP"
414 }, {
415 name: "TCP",
416 value: "TCP"
417 }, {
418 name: "UDP",
419 value: "UDP"
420 }
421 ],
422 FILTER_PROTOCOL_MODES: [{
423 name: "NONE",
424 value: "None"
425 }, {
426 name: "TCP",
427 value: "TCP"
428 }, {
429 name: "UDP",
430 value: "UDP"
431 }, {
432 name: "ICMP",
433 value: "ICMP"
434 }
435 ],
436
437 //HTTPSHARE模式
438 SD_SHARE_ENABLE: [{
439 name: "Enable",
440 value: "1"
441 }, {
442 name: "Disable",
443 value: "0"
444 }
445 ],
446
447 SD_ACCESS_TYPE: [{
448 name: "entire_sd_card",
449 value: "1"
450 }, {
451 name: "custom_setting",
452 value: "0"
453 }
454 ],
455
456 SD_FILE_TO_SHARE: [{
457 name: "entire_sd_card",
458 value: "1"
459 }, {
460 name: "custom_setting",
461 value: "0"
462 }
463 ],
464
465 //国家码所述类型
466 countryCodeType: {
467 world: 3,
468 mkkc: 3,
469 apld: 7,
470 etsic: 3,
471 fcca: 1
472 },
473
474 countries_5g: {
475 NONE: "NONE",
476 AR: "ARGENTIA",
477 AM: "ՀԱՅԱՍՏԱՆ",
478 AU: "AUSTRILIA",
479 AT: "ÖSTERREICH",
480 AZ: "AZƏRBAYCAN",
481 BH: "البحرين",
482 BY: "БЕЛАРУСЬ",
483 BE: "BELGIË",
484 BA: "БОСНА И ХЕРЦЕГОВИНА",
485 BR: "BRASIL",
486 BN: "BRUNEI DARUSSALAM",
487 BG: "БЪЛГАРИЯ",
488 CL: "CHILE",
489 CN: "中国",
490 CR: "COSTA RICA",
491 HR: "HRVATSKA",
492 CY: "ΚΎΠΡΟΣ",
493 CZ: "ČESKÁ REPUBLIKA",
494 DK: "DANMARK",
495 EC: "ECUADOR",
496 EG: "مصر",
497 SV: "EL SALVADOR",
498 EE: "EESTI",
499 FI: "SUOMI",
500 FR: "FRANCE",
501 GE: "საქართველო",
502 DE: "DEUTSCHLAND",
503 GR: "ΕΛΛΆΔΑ",
504 HK: "香港",
505 HU: "MAGYARORSZÁG",
506 IS: "ÍSLAND",
507 IN: "INDIA",
508 ID: "INDONESIA",
509 IR: "ایران",
510 IE: "ÉIRE",
511 IL: "إسرائيل",
512 IT: "ITALIA",
513 JM: "JAMAICA",
514 JO: "الأردن",
515 KP: "조선민주주의인민공화국",
516 KR: "한국 ROK",
517 LV: "LATVIJA",
518 LI: "LIECHTENSTEIN",
519 LT: "LIETUVA",
520 LU: "LUXEMBOURG",
521 MO: "澳門",
522 MY: "MALAYSIA",
523 MT: "MALTA",
524 MC: "MONACO",
525 NL: "NEDERLAND",
526 AN: "Netherlands Antilles",
527 NO: "NORGE",
528 OM: "سلطنة عمان",
529 PE: "PERÚ",
530 PH: "PHILIPPINES",
531 PL: "POLSKA",
532 PT: "PORTUGAL",
533 SA: "السعودية",
534 SG: "SINGAPORE",
535 SK: "SLOVENSKÁ REPUBLIKA",
536 SI: "SLOVENIJA",
537 ZA: "SOUTH AFRICA",
538 ES: "ESPAÑA",
539 LK: "SRILANKA",
540 SE: "SVERIGE",
541 CH: "SCHWEIZ",
542 TT: "TRINIDAD AND TOBAGO",
543 TN: "تونس",
544 TR: "TÜRKİYE",
545 GB: "UNITED KINGDOM",
546 UY: "URUGUAY",
547 JP: "日本",
548 BZ: "BELIZE",
549 BO: "BOLIVIA",
550 NZ: "NEW ZEALAND",
551 VE: "VENEZUELA",
552 CA: "CANADA",
553 CO: "COLOMBIA",
554 DO: "REPÚBLICA DOMINICANA",
555 GT: "GUATEMALA",
556 MX: "MEXICO",
557 PA: "PANAMÁ",
558 PR: "PUERTO RICO",
559 TW: "台灣",
560 US: "UNITED STATES",
561 UZ: "O’zbekiston"
562 },
563
564 //国家码与语言匹配表
565 countries: {
566 NONE: "NONE",
567 AL: "SHQIPERI",
568 DZ: "الجزائر",
569 AR: "ARGENTIA",
570 AM: "ՀԱՅԱՍՏԱՆ",
571 AU: "AUSTRALIA",
572 AT: "ÖSTERREICH",
573 AZ: "AZƏRBAYCAN",
574 BD: "বাংলাদেশ",
575 BH: "البحرين",
576 BY: "БЕЛАРУСЬ",
577 BE: "BELGIË",
578 BA: "БОСНА И ХЕРЦЕГОВИНА",
579 BR: "BRASIL",
580 BN: "BRUNEI DARUSSALAM",
581 BG: "БЪЛГАРИЯ",
582 CL: "CHILE",
583 CN: "中国",
584 CR: "COSTA RICA",
585 HR: "HRVATSKA",
586 CY: "ΚΎΠΡΟΣ",
587 CZ: "ČESKÁ REPUBLIKA",
588 DK: "DANMARK",
589 EC: "ECUADOR",
590 EG: "مصر",
591 SV: "EL SALVADOR",
592 EE: "EESTI",
593 FI: "SUOMI",
594 FR: "FRANCE",
595 GE: "საქართველო",
596 DE: "DEUTSCHLAND",
597 GR: "ΕΛΛΆΔΑ",
598 HN: "HONDURAS",
599 HK: "香港",
600 HU: "MAGYARORSZÁG",
601 IS: "ÍSLAND",
602 IN: "INDIA",
603 ID: "INDONESIA",
604 IR: "ایران، جمهوری اسلامی",
605 IE: "ÉIRE",
606 IL: "إسرائيل",
607 IT: "ITALIA",
608 JM: "JAMAICA",
609 JO: "الأردن",
610 KZ: "КАЗАХСТАН",
611 KE: "KENYA",
612 KP: "조선민주주의인민공화국",
613 KR: "한국 ROK",
614 KW: "الكويت",
615 LV: "LATVIJA",
616 LB: "لبنان",
617 LI: "LIECHTENSTEIN",
618 LT: "LIETUVA",
619 LU: "LUXEMBOURG",
620 MO: "澳門",
621 MK: "МАКЕДОНИЈА",
622 MY: "MALAYSIA",
623 MT: "MALTA",
624 MC: "MONACO",
625 MA: "المغرب",
626 NL: "NEDERLAND",
627 AN: "NETHERLANDS ANTILLES",
628 NO: "NORGE",
629 OM: "سلطنة عمان",
630 PK: "PAKISTAN",
631 PE: "PERÚ",
632 PH: "PHILIPPINES",
633 PL: "POLSKA",
634 PT: "PORTUGAL",
635 QA: "قطر",
636 RO: "ROMÂNIA",
637 RU: "Российская Федерация",
638 SA: "السعودية",
639 SG: "SINGAPORE",
640 SK: "SLOVENSKÁ REPUBLIKA",
641 SI: "SLOVENIJA",
642 ZA: "SOUTH AFRICA",
643 ES: "ESPAÑA",
644 LK: "SRILANKA",
645 SE: "SVERIGE",
646 CH: "SCHWEIZ",
647 SY: "الجمهورية العربية السورية",
648 TH: "ประเทศไทย",
649 TT: "TRINIDAD AND TOBAGO",
650 TN: "تونس",
651 TR: "TÜRKİYE",
652 UA: "Україна",
653 AE: "الإمارات العربية المتحدة",
654 GB: "UNITED KINGDOM",
655 UY: "URUGUAY",
656 VN: "VIỆT NAM",
657 YE: "اليمن",
658 ZW: "ZIMBABWE",
659 JP: "日本",
660 BZ: "BELIZE",
661 BO: "BOLIVIA",
662 NZ: "NEW ZEALAND",
663 VE: "REPÚBLICA BOLIVARIANA DE VENEZUELA",
664 CA: "CANADA",
665 CO: "COLOMBIA",
666 DO: "REPÚBLICA DOMINICANA",
667 GT: "GUATEMALA",
668 MX: "MEXICO",
669 PA: "PANAMÁ",
670 PR: "PUERTO RICO",
671 TW: "台灣",
672 US: "UNITED STATES",
qumengjia904c4272024-12-02 16:48:46 +0800673 UZ: "O’zbekiston",
674 NG: "NIGERIA"
qumengjiaca65ef52024-11-06 15:42:21 +0800675 },
676 //国家码与类型匹配表
677 countryCode_5g: {
678 //88 countries of world【36 40 44 48】
679 one: {
680 codes: ["AL", "AI", "AW", "AT", "BY", "BM", "BA", "BW", "IO", "BG",
681 "CV", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GF", "PF",
682 "TF", "GI", "DE", "GR", "GP", "GG", "HU", "IS", "IE", "IT",
683 "KE", "LA", "LV", "LS", "LI", "LT", "LU", "MK", "MT", "IM",
684 "MQ", "MR", "MU", "YT", "MC", "MS", "NL", "AN", "NO",
685 "OM", "PL", "PT", "RE", "RO", "SM", "SN", "RS", "SK", "SI",
686 "ZA", "ES", "SE", "CH", "TC", "UG", "GB", "VG", "WF", "ZM",
687 "AF", "JO", "MA", "EH", "EU", "DZ", "IL", "MX", "PM", "TN",
688 "TR", "JP"],
689 channels: [36, 40, 44, 48]
690 },
691 //60 countrys of world【36 40 44 48 149 153 157 161 165】
692 two: {
693 codes: ["AS", "AG", "AZ", "BR", "KH", "KY", "CO", "CR", "DM", "DO",
694 "EC", "GH", "GD", "HK", "KZ", "KI", "FM", "MZ", "NA", "NZ",
695 "NI", "NE", "PW", "PE", "PH", "PR", "VC", "TH", "TT", "UY",
696 "ZW", "AU", "BH", "BB", "CA", "CL", "CX", "EG", "SV", "GT",
697 "HT", "IN", "MY", "NF", "PA", "PG", "SG", "US", "VN"],
698 channels: [36, 40, 44, 48, 149, 153, 157, 161, 165]
699 },
700 //9 countrys of world【149 153 157 161】
701 three: {
702 codes: ["CU", "IR", "KR", "SY", "LB", "MW", "MO", "QA"],
703 channels: [149, 153, 157, 161]
704 },
705 //12 countrys of world【149 153 157 161 165】
706 four: {
707 codes: ["BD", "BF", "CN", "HN", "JM", "PK", "PY", "KN", "AR", "TW", "NG"],
708 channels: [149, 153, 157, 161, 165]
709 },
710 //1 country of world【36 40 44 48 149 153 157 161】
711 five: {
712 codes: ["SA"],
713 channels: [36, 40, 44, 48, 149, 153, 157, 161]
714 }
715 },
716 countryCode: {
717 world: ["AL", "DZ", "AR", "AM", "AU", "AT", "AZ", "BH", "BY",
718 "BE", "BA", "BR", "BN", "BG", "CL", "CN", "CR", "HR", "CY",
719 "CZ", "DK", "EC", "EG", "SV", "EE", "FI", "FR", "GE",
720 "DE", "GR", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IE",
721 "IL", "IT", "JM", "JO", "KZ", "KE", "KP", "KR", "KW", "LV",
722 "LB", "LI", "LT", "LU", "MO", "MK", "MY", "MT", "MC", "MA",
723 "NL", "AN", "NO", "OM", "PK", "PE", "PH", "PL", "PT", "QA",
724 "RO", "RU", "SA", "SG", "SK", "SI", "ZA", "ES", "LK",
725 "SE", "CH", "SY", "TH", "TT", "TN", "TR", "UA", "AE", "GB",
qumengjia904c4272024-12-02 16:48:46 +0800726 "UY", "VN", "YE", "ZW", "BD", "NG"],
qumengjiaca65ef52024-11-06 15:42:21 +0800727 mkkc: ["JP"],
728 apld: [],
729 etsic: ["BZ", "BO", "NZ", "VE"],
730 fcca: ["CA", "CO", "DO", "GT", "MX", "PA", "PR", "TW", "US", "UZ"]
731 },
732 //休眠时间
733 SLEEP_MODES: [{
734 name: "Always on",
735 value: "-1"
736 }, {
737 name: "5 minutes",
738 value: "5"
739 }, {
740 name: "10 minutes",
741 value: "10"
742 }, {
743 name: "20 minutes",
744 value: "20"
745 }, {
746 name: "30 minutes",
747 value: "30"
748 }, {
749 name: "1 hour",
750 value: "60"
751 }, {
752 name: "2 hours",
753 value: "120"
754 }
755 ],
756 DDNSSetMode: [{
757 name: 'Enable',
758 value: '1'
759 }, {
760 name: 'Disable',
761 value: '0'
762 }
763 ],
764 ddns_Modeselect: [{
765 name: 'manual',
766 value: 'manual'
767 }, {
768 name: 'auto',
769 value: 'auto'
770 }
771 ],
772 DDNSDDP: [{
773 name: 'dyndns.org',
774 value: 'dyndns.org'
775 }, {
776 name: 'freedns.afraid.org',
777 value: 'freedns.afraid.org'
778 }, {
779 name: 'zoneedit.com',
780 value: 'zoneedit.com'
781 }, {
782 name: 'no-ip.com',
783 value: 'no-ip.com'
784 }, {
785 name: 'None',
786 value: 'none'
787 }
788 ],
789 //RJ45连接模式
790 pppoeModes: [{
791 name: "PPPoE",
792 value: "PPPOE"
793 }, {
794 name: "Static",
795 value: "STATIC"
796 }, {
797 name: "DHCP",
798 value: "DHCP"
799 }, {
800 name: "AUTO",
801 value: "AUTO"
802 }
803 ],
804 //联网模式
805 AUTO_MODES: [{
806 name: 'Automatic',
807 value: 'NETWORK_auto'
808 }, {
809 name: '4G Only',
810 value: 'Only_LTE'
811 }, {
812 name: '3G Only',
813 value: 'Only_WCDMA'
814 }, {
815 name: '2G Only',
816 value: 'Only_GSM'
817 }
818 ],
819 //APN鉴权模式
820 APN_AUTH_MODES: [{
821 name: "NONE",
822 value: "none"
823 }, {
824 name: "CHAP",
825 value: "chap"
826 }, {
827 name: "PAP",
828 value: "pap"
829 }
830 ],
831 //语言
832 LANGUAGES: [{
833 name: 'English',
834 value: 'en'
835 }, {
836 name: '中文',
837 value: 'zh-cn'
838 }
839 ],
840 //wifi加密模式
841 AUTH_MODES: [{
842 name: 'NO ENCRYPTION',
843 value: 'OPEN'
844 }, {
845 name: 'WPA2(AES)-PSK',
846 value: 'WPA2PSK'
847 }, {
848 name: 'WPA-PSK/WPA2-PSK',
849 value: 'WPAPSKWPA2PSK'
850 }, {
851 name: 'WPA3-Personal',
852 value: 'WPA3Personal'
853 }, {
854 name: 'WPA2(AES)/WPA3-Personal',
855 value: 'WPA2WPA3'
856 }
857 ],
858 AUTH_MODES_WEP: [{
859 name: 'NO ENCRYPTION',
860 value: 'OPEN'
861 }, {
862 name: 'SHARED',
863 value: 'SHARED'
864 }, {
865 name: 'WPA2(AES)-PSK',
866 value: 'WPA2PSK'
867 }, {
868 name: 'WPA-PSK/WPA2-PSK',
869 value: 'WPAPSKWPA2PSK'
870 }, {
871 name: 'WPA3-Personal',
872 value: 'WPA3Personal'
873 }, {
874 name: 'WPA2(AES)/WPA3-Personal',
875 value: 'WPA2WPA3'
876 }
877 ],
878 AUTH_MODES_ALL: [{
879 name: 'NO ENCRYPTION',
880 value: 'OPEN'
881 }, {
882 name: 'SHARED',
883 value: 'SHARED'
884 }, {
885 name: 'WPA-PSK',
886 value: 'WPAPSK'
887 }, {
888 name: 'WPA2-PSK',
889 value: 'WPA2PSK'
890 }, {
891 name: 'WPA-PSK/WPA2-PSK',
892 value: 'WPAPSKWPA2PSK'
893 }, /*{
894 name: 'WPA3-Personal',
895 value: 'WPA3Personal'
896 }, {
897 name: 'WPA2(AES)/WPA3-Personal',
898 value: 'WPA2WPA3'
899 }, */{
900 name: 'EAP-SIM/AKA',
901 value: 'EAP-SIM/AKA'
902 }
903 ],
904
905 NETWORK_MODES: [{
906 name: '802.11 b/g/n',
907 value: '4'
908 }, {
909 name: '802.11 n only',
910 value: '2'
911 }
912 ],
913 NETWORK_MODES_BAND: [{
914 name: '802.11 a only',
915 value: '5'
916 }, {
917 name: '802.11 n only',
918 value: '2'
919 }, {
920 name: '802.11 a/n',
921 value: '4'
922 }
923 ],
924 resetContentModifyValue: function () {
925 this.CONTENT_MODIFIED.checkChangMethod = function () {
926 return false;
927 };
928 this.CONTENT_MODIFIED.modified = false;
929 this.CONTENT_MODIFIED.message = 'leave_page_info';
930 this.CONTENT_MODIFIED.callback = {
931 ok: $.noop,
932 no: function () {
933 return true;
934 }
935 }; //如果no返回true,页面则保持原状
936 this.CONTENT_MODIFIED.data = {};
937 },
938 CONTENT_MODIFIED: {
939 modified: false,
940 message: 'leave_page_info',
941 data: {},
942 checkChangMethod: function () {
943 return false;
944 },
945 callback: {
946 ok: $.noop,
947 no: function () {
948 return true;
949 }
950 } //如果no返回true,页面则保持原状
951 }, //当前页面内容是否已经修改
952
953 };
954
955 require([config.DEVICE + '/set'], function (otherConf) {
956 $.extend(config, otherConf);
957 });
958
959 return config;
960});