blob: c1888c5a705335d7de3c973ad87eb0689f0352d9 [file] [log] [blame]
zw.wang96c5d4e2025-07-01 11:35:13 +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)",
173 value: "MST7MDT,M3.2.0,M11.1.0_0"
174 }, {
175 name: "(GMT-07:00) Arizona",
176 value: "<-07>7_1"
177 }, {
178 name: "(GMT-07:00) Chihuahua, La Paz, Mazza Tran",
179 value: "<-07>7_2"
180 }, {
181 name: "(GMT-06:00) Saskatchewan",
182 value: "<-06>6_0"
183 }, {
184 name: "(GMT-06:00) Central time (USA and Canada)",
185 value: "<-06>6_1"
186 }, {
187 name: "(GMT-06:00) Central America",
188 value: "<-06>6_2"
189 }, {
190 name: "(GMT-06:00) Guadalajara City, Mexico City, Monterey",
191 value: "<-06>6_3"
192 }, {
193 name: "(GMT-05:00) Bogota, Lima, Quito",
194 value: "<-05>5_0"
195 }, {
196 name: "(GMT-05:00) Eastern time (USA and Canada)",
197 value: "<-05>5_1"
198 }, {
199 name: "(GMT-05:00) Indiana (East)",
200 value: "EST5EDT,M3.2.0,M11.1.0_2"
201 }, {
202 name: "(GMT-04:00) Atlantic time (Canada)",
203 value: "AST4ADT,M3.2.0,M11.1.0_0"
204 }, {
205 name: "(GMT-04:00) Caracas, La Paz",
206 value: "<-04>4_1"
207 }, {
208 name: "(GMT-04:00) Santiago",
209 value: "<-04>4<-03>,M8.2.6/24,M5.2.6/24_2"
210 }, {
211 name: "(GMT-03:30) Newfoundland",
212 value: "NST3:30NDT,M3.2.0,M11.1.0_0"
213 }, {
214 name: "(GMT-03:00) Brasilia",
215 value: "<-03>3_0"
216 }, {
217 name: "(GMT-03:00) Buenos Aires, Georgetown",
218 value: "<-03>3_1"
219 }, {
220 name: "(GMT-03:00) Greenland",
221 value: "<-03>3_2"
222 }, {
223 name: "(GMT-02:00) Mid-Atlantic",
224 value: "<-02>2_0"
225 }, {
226 name: "(GMT-01:00) Cape Verde Islands",
227 value: "<-01>1_0"
228 }, {
229 name: "(GMT-01:00) Azores",
230 value: "<-01>1<+00>,M3.5.0/0,M10.5.0/1_1"
231 }, {
232 name: "(GMT) GMT: Dublin, Edinburgh, London, Lisbon",
233 value: "GMT0IST,M3.5.0/1,M10.5.0_0"
234 }, {
mj.qu6f3bcbf2025-07-08 01:37:15 -0700235 name: "(GMT) Casablanca",
zw.wang96c5d4e2025-07-01 11:35:13 +0800236 value: "WET0WEST,M3.5.0,M10.5.0/3_1"
237 }, {
mj.qu6f3bcbf2025-07-08 01:37:15 -0700238 name: "(GMT) Monrovia",
239 value: "<+00>-0_2"
240 }, {
zw.wang96c5d4e2025-07-01 11:35:13 +0800241 name: "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",
242 value: "CET-1CEST,M3.5.0,M10.5.0/3_0"
243 }, {
244 name: "(GMT+01:00) Belgrad, Bratislava, Budapest, Ljubljana, Prague",
245 value: "CET-1CEST,M3.5.0,M10.5.0/3_1"
246 }, {
247 name: "(GMT+01:00) Brussels, Copenhagen, Madrid, Paris",
248 value: "CET-1CEST,M3.5.0,M10.5.0/3_2"
249 }, {
250 name: "(GMT+01:00) Sarajevo, Skopje,Warsaw, Zagreb",
251 value: "CET-1CEST,M3.5.0,M10.5.0/3_3"
252 }, {
253 name: "(GMT+01:00) Western Central African",
254 value: "<+01>-1_4"
255 }, {
256 name: "(GMT+02:00) Bucharest",
257 value: "EET-2EEST,M3.5.0/3,M10.5.0/4_0"
258 }, {
259 name: "(GMT+02:00) Pretoria, Harare",
260 value: "CAT-2_1"
261 }, {
262 name: "(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius",
263 value: "EET-2EEST,M3.5.0/3,M10.5.0/4_2"
264 }, {
265 name: "(GMT+02:00) Cairo",
266 value: "EET-2_3"
267 }, {
mj.qub71c8272025-07-10 01:22:25 -0700268 name: "(GMT+02:00) Athens, Beirut",
zw.wang96c5d4e2025-07-01 11:35:13 +0800269 value: "EET-2EEST,M3.5.0/3,M10.5.0/4_4"
270 }, {
271 name: "(GMT+02:00) Jerusalem",
272 value: "IST-2IDT,M3.4.5/02:00:00,M10.5.0/02:00:00_5"
273 }, {
mj.qub71c8272025-07-10 01:22:25 -0700274 name: "(GMT+03:00) Baghdad, Istanbul, Minsk",
zw.wang96c5d4e2025-07-01 11:35:13 +0800275 value: "<+03>-3_0"
276 }, {
277 name: "(GMT+03:00) Riyadh, Kuwait",
278 value: "<+03>-3_1"
279 }, {
280 name: "(GMT+03:00) Moscow, St Petersburg, Volgograd",
281 value: "<+03>-3_2"
282 }, {
283 name: "(GMT+03:00) Nairobi",
284 value: "EAT-3_3"
285 }, {
286 name: "(GMT+03:30) Teheran",
287 value: "<+0330>-3:30_0"
288 }, {
289 name: "(GMT+04:00) Abu Zabi, Muscat",
290 value: "<+04>-4_0"
291 }, {
292 name: "(GMT+04:00) Baku, Tbilisi, Yerevan",
293 value: "<+04>-4_1"
294 }, {
295 name: "(GMT+04:30) Kabul",
296 value: "<+0430>-4:30_0"
297 }, {
298 name: "(GMT+05:00) Yekaterinburg",
299 value: "<+05>-5_0"
300 }, {
301 name: "(GMT+05:00) Islamabad, Karachi, Tashkent",
302 value: "PKT-5_1"
303 }, {
304 name: "(GMT+05:30) Madras, Calcutta, Mumbai, New Delhi",
305 value: "<+0530>-5:30_0"
306 }, {
307 name: "(GMT+05:45) Kathmandu",
308 value: "<+0545>-5:45_0"
309 }, {
310 name: "(GMT+06:00) Ala Mutu, Novosibirsk",
311 value: "<+06>-6_0"
312 }, {
313 name: "(GMT+06:00) Dhaka, Astana",
314 value: "<+06>-6_1"
315 }, {
316 name: "(GMT+06:00) Sri Haya Ed Denny Pla",
317 value: "<+06>-6_2"
318 }, {
319 name: "(GMT+06:30) Yangon",
320 value: "<+0630>-6:30_0"
321 }, {
322 name: "(GMT+07:00) Krasnoyarsk",
323 value: "<+07>-7_0"
324 }, {
325 name: "(GMT+07:00) Bangkok, Hanoi, Jakarta",
326 value: "<+07>-7_1"
327 }, {
328 name: "(GMT+08:00) Beijing, Chongqing, Hongkong Special Administrative Region, Urumqi",
329 value: "CST-8_0"
330 }, {
331 name: "(GMT+08:00) Kuala Lumpur, Singapore",
332 value: "<+08>-8_1"
333 }, {
334 name: "(GMT+08:00) Perth",
335 value: "AWST-8_2"
336 }, {
337 name: "(GMT+08:00) Taipei",
338 value: "CST-8_3"
339 }, {
340 name: "(GMT+08:00) Irkutsk, Ulam Batu",
341 value: "<+08>-8_4"
342 }, {
343 name: "(GMT+09:00) Osaka, Sapporo, Tokyo",
344 value: "JST-9_0"
345 }, {
346 name: "(GMT+09:00) Seoul",
347 value: "KST-9_1"
348 }, {
349 name: "(GMT+09:00) Yakutsk",
350 value: "<+09>-9_2"
351 }, {
352 name: "(GMT+09:30) Adelaide",
353 value: "ACST-9:30ACDT,M10.1.0,M4.1.0/3_0"
354 }, {
355 name: "(GMT+09:30) Darwin",
356 value: "ACST-9:30_1"
357 }, {
358 name: "(GMT+10:00) Brisbane",
359 value: "AEST-10_0"
360 }, {
361 name: "(GMT+10:00) Vladivostok",
362 value: "<+10>-10_1"
363 }, {
364 name: "(GMT+10:00) Guam, Port Moresby",
365 value: "<+10>-10_2"
366 }, {
367 name: "(GMT+10:00) Hobart",
368 value: "AEST-10AEDT,M10.1.0,M4.1.0/3_3"
369 }, {
370 name: "(GMT+10:00) Canberra, Melbourne, Sydney",
371 value: "AEST-10AEDT,M10.1.0,M4.1.0/3_4"
372 }, {
373 name: "(GMT+11:00) Magadan, Solomon islands, New Caledonia",
374 value: "<+11>-11_0"
375 }, {
376 name: "(GMT+12:00) Wellington, Oakland",
377 value: "<+12>-12_0"
378 }, {
379 name: "(GMT+12:00) Fiji, Kamchatka, Marshall Islands",
380 value: "<+12>-12_1"
381 }, {
382 name: "(GMT+13:00) Nukualofa",
383 value: "<+13>-13_0"
384 }
385 ],
386
387 //短信保存时间
388 SMS_VALIDITY: [{
389 name: '12 hours',
390 value: 'twelve_hours'
391 }, {
392 name: 'A day',
393 value: 'one_day'
394 }, {
395 name: 'A week',
396 value: 'one_week'
397 }, {
398 name: 'The longest period',
399 value: 'largest'
400 }
401 ],
402 MAP_PROTOCOL_MODES: [{
403 name: "TCP+UDP",
404 value: "TCP&UDP"
405 }, {
406 name: "TCP",
407 value: "TCP"
408 }, {
409 name: "UDP",
410 value: "UDP"
411 }
412 ],
413 //端口转发协议
414 FORWARD_PROTOCOL_MODES: [{
415 name: "TCP+UDP",
416 value: "TCP&UDP"
417 }, {
418 name: "TCP",
419 value: "TCP"
420 }, {
421 name: "UDP",
422 value: "UDP"
423 }
424 ],
425 FILTER_PROTOCOL_MODES: [{
426 name: "NONE",
427 value: "None"
428 }, {
429 name: "TCP",
430 value: "TCP"
431 }, {
432 name: "UDP",
433 value: "UDP"
434 }, {
435 name: "ICMP",
436 value: "ICMP"
437 }
438 ],
439
440 //HTTPSHARE模式
441 SD_SHARE_ENABLE: [{
442 name: "Enable",
443 value: "1"
444 }, {
445 name: "Disable",
446 value: "0"
447 }
448 ],
449
450 SD_ACCESS_TYPE: [{
451 name: "entire_sd_card",
452 value: "1"
453 }, {
454 name: "custom_setting",
455 value: "0"
456 }
457 ],
458
459 SD_FILE_TO_SHARE: [{
460 name: "entire_sd_card",
461 value: "1"
462 }, {
463 name: "custom_setting",
464 value: "0"
465 }
466 ],
467
468 //国家码所述类型
469 countryCodeType: {
470 world: 3,
471 mkkc: 3,
472 apld: 7,
473 etsic: 3,
474 fcca: 1
475 },
476
477 countries_5g: {
478 NONE: "NONE",
479 AL: "SHQIPERI",
480 DZ: "الجزائر",
481 AR: "ARGENTIA",
482 AM: "ՀԱՅԱՍՏԱՆ",
483 AU: "AUSTRALIA",
484 AT: "ÖSTERREICH",
485 AZ: "AZƏRBAYCAN",
486 BD: "বাংলাদেশ",
487 BH: "البحرين",
488 BY: "БЕЛАРУСЬ",
489 BE: "BELGIË",
490 BA: "БОСНА И ХЕРЦЕГОВИНА",
491 BR: "BRASIL",
492 BN: "BRUNEI DARUSSALAM",
493 BG: "БЪЛГАРИЯ",
494 CL: "CHILE",
495 CN: "中国",
496 CR: "COSTA RICA",
497 HR: "HRVATSKA",
498 CY: "ΚΎΠΡΟΣ",
499 CZ: "ČESKÁ REPUBLIKA",
500 DK: "DANMARK",
501 EC: "ECUADOR",
502 EG: "مصر",
503 SV: "EL SALVADOR",
504 EE: "EESTI",
505 FI: "SUOMI",
506 FR: "FRANCE",
507 GE: "საქართველო",
508 DE: "DEUTSCHLAND",
509 GR: "ΕΛΛΆΔΑ",
510 HN: "HONDURAS",
511 HK: "香港",
512 HU: "MAGYARORSZÁG",
513 IS: "ÍSLAND",
514 IN: "INDIA",
515 ID: "INDONESIA",
516 // IR: "ایران، جمهوری اسلامی",
517 IE: "ÉIRE",
518 IL: "إسرائيل",
519 IT: "ITALIA",
520 JM: "JAMAICA",
521 JO: "الأردن",
522 KZ: "КАЗАХСТАН",
523 KE: "KENYA",
524 KP: "조선민주주의인민공화국",
525 KR: "한국 ROK",
526 KW: "الكويت",
527 LV: "LATVIJA",
528 LB: "لبنان",
529 LI: "LIECHTENSTEIN",
530 LT: "LIETUVA",
531 LU: "LUXEMBOURG",
532 MO: "澳門",
533 MK: "МАКЕДОНИЈА",
534 MY: "MALAYSIA",
535 MT: "MALTA",
536 MC: "MONACO",
537 MA: "المغرب",
538 NL: "NEDERLAND",
539 AN: "NETHERLANDS ANTILLES",
540 NO: "NORGE",
541 OM: "سلطنة عمان",
542 PK: "PAKISTAN",
543 PE: "PERÚ",
544 PH: "PHILIPPINES",
545 PL: "POLSKA",
546 PT: "PORTUGAL",
547 QA: "قطر",
548 RO: "ROMÂNIA",
549 RU: "Российская Федерация",
550 SA: "السعودية",
551 SG: "SINGAPORE",
552 SK: "SLOVENSKÁ REPUBLIKA",
553 SI: "SLOVENIJA",
554 ZA: "SOUTH AFRICA",
555 ES: "ESPAÑA",
556 LK: "SRILANKA",
557 SE: "SVERIGE",
558 CH: "SCHWEIZ",
559 TH: "ประเทศไทย",
560 TT: "TRINIDAD AND TOBAGO",
561 TN: "تونس",
562 TR: "TÜRKİYE",
563 UA: "Україна",
564 AE: "الإمارات العربية المتحدة",
565 GB: "UNITED KINGDOM",
566 UY: "URUGUAY",
567 VN: "VIỆT NAM",
568 // YE: "اليمن",
569 ZW: "ZIMBABWE",
570 JP: "日本",
571 BZ: "BELIZE",
572 BO: "BOLIVIA",
573 NZ: "NEW ZEALAND",
574 VE: "REPÚBLICA BOLIVARIANA DE VENEZUELA",
575 CA: "CANADA",
576 CO: "COLOMBIA",
577 DO: "REPÚBLICA DOMINICANA",
578 GT: "GUATEMALA",
579 MX: "MEXICO",
580 PA: "PANAMÁ",
581 PR: "PUERTO RICO",
582 TW: "台灣",
583 US: "UNITED STATES",
584 UZ: "O’zbekiston"
585 },
586
587 //国家码与语言匹配表
588 countries: {
589 NONE: "NONE",
590 AL: "SHQIPERI",
591 DZ: "الجزائر",
592 AR: "ARGENTIA",
593 AM: "ՀԱՅԱՍՏԱՆ",
594 AU: "AUSTRALIA",
595 AT: "ÖSTERREICH",
596 AZ: "AZƏRBAYCAN",
597 BD: "বাংলাদেশ",
598 BH: "البحرين",
599 BY: "БЕЛАРУСЬ",
600 BE: "BELGIË",
601 BA: "БОСНА И ХЕРЦЕГОВИНА",
602 BR: "BRASIL",
603 BN: "BRUNEI DARUSSALAM",
604 BG: "БЪЛГАРИЯ",
605 CL: "CHILE",
606 CN: "中国",
607 CR: "COSTA RICA",
608 HR: "HRVATSKA",
609 CY: "ΚΎΠΡΟΣ",
610 CZ: "ČESKÁ REPUBLIKA",
611 DK: "DANMARK",
612 EC: "ECUADOR",
613 EG: "مصر",
614 SV: "EL SALVADOR",
615 EE: "EESTI",
616 FI: "SUOMI",
617 FR: "FRANCE",
618 GE: "საქართველო",
619 DE: "DEUTSCHLAND",
620 GR: "ΕΛΛΆΔΑ",
621 HN: "HONDURAS",
622 HK: "香港",
623 HU: "MAGYARORSZÁG",
624 IS: "ÍSLAND",
625 IN: "INDIA",
626 ID: "INDONESIA",
627 IR: "ایران، جمهوری اسلامی",
628 IE: "ÉIRE",
629 IL: "إسرائيل",
630 IT: "ITALIA",
631 JM: "JAMAICA",
632 JO: "الأردن",
633 KZ: "КАЗАХСТАН",
634 KE: "KENYA",
635 KP: "조선민주주의인민공화국",
636 KR: "한국 ROK",
637 KW: "الكويت",
638 LV: "LATVIJA",
639 LB: "لبنان",
640 LI: "LIECHTENSTEIN",
641 LT: "LIETUVA",
642 LU: "LUXEMBOURG",
643 MO: "澳門",
644 MK: "МАКЕДОНИЈА",
645 MY: "MALAYSIA",
646 MT: "MALTA",
647 MC: "MONACO",
648 MA: "المغرب",
649 NL: "NEDERLAND",
650 AN: "NETHERLANDS ANTILLES",
651 NO: "NORGE",
652 OM: "سلطنة عمان",
653 PK: "PAKISTAN",
654 PE: "PERÚ",
655 PH: "PHILIPPINES",
656 PL: "POLSKA",
657 PT: "PORTUGAL",
658 QA: "قطر",
659 RO: "ROMÂNIA",
660 RU: "Российская Федерация",
661 SA: "السعودية",
662 SG: "SINGAPORE",
663 SK: "SLOVENSKÁ REPUBLIKA",
664 SI: "SLOVENIJA",
665 ZA: "SOUTH AFRICA",
666 ES: "ESPAÑA",
667 LK: "SRILANKA",
668 SE: "SVERIGE",
669 CH: "SCHWEIZ",
670 SY: "الجمهورية العربية السورية",
671 TH: "ประเทศไทย",
672 TT: "TRINIDAD AND TOBAGO",
673 TN: "تونس",
674 TR: "TÜRKİYE",
675 UA: "Україна",
676 AE: "الإمارات العربية المتحدة",
677 GB: "UNITED KINGDOM",
678 UY: "URUGUAY",
679 VN: "VIỆT NAM",
680 YE: "اليمن",
681 ZW: "ZIMBABWE",
682 JP: "日本",
683 BZ: "BELIZE",
684 BO: "BOLIVIA",
685 NZ: "NEW ZEALAND",
686 VE: "REPÚBLICA BOLIVARIANA DE VENEZUELA",
687 CA: "CANADA",
688 CO: "COLOMBIA",
689 DO: "REPÚBLICA DOMINICANA",
690 GT: "GUATEMALA",
691 MX: "MEXICO",
692 PA: "PANAMÁ",
693 PR: "PUERTO RICO",
694 TW: "台灣",
695 US: "UNITED STATES",
696 UZ: "O’zbekiston",
697 NG: "NIGERIA"
698 },
699 //国家码与类型匹配表
700 countryCode_5g: {
701 //88 countries of world【36 40 44 48】
702 one: {
703 codes: ["BZ", "HN", "PK", "BD"],
704 channels: [149, 153, 157, 161, 165]
705 },
706 //9 countries of world【36, 40, 44, 48, 52, 56, 60, 64】
707 two: {
708 codes: ["AZ", "UZ", "AM", "IL", "KW", "MA", "TN", "EG", "GE"],
709 channels: [36, 40, 44, 48, 52, 56, 60, 64]
710 },
711 //1 countries of world【52, 56, 60, 64, 149, 153, 157, 161, 165】
712 three: {
713 codes: ["BO"],
714 channels: [52, 56, 60, 64, 149, 153, 157, 161, 165]
715 },
716 //1 countries of world【36, 40, 44, 48, 149, 153, 157, 161, 165】
717 four: {
718 codes: ["JO"],
719 channels: [36, 40, 44, 48, 149, 153, 157, 161, 165]
720 },
721 //1 countries of world【36, 40, 44, 48, 100, 104, 108, 112, 149, 153】
722 five: {
723 codes: ["KE"],
724 channels: [36, 40, 44, 48, 100, 104, 108, 112, 149, 153]
725 },
726 //1 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 132, 136, 140】
727 six: {
728 codes: ["BY"],
729 channels: [36, 40, 44, 48, 52, 56, 60, 64, 132, 136, 140]
730 },
731 //1 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161】
732 seven: {
733 codes: ["ID"],
734 channels: [36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161]
735 },
736 //10 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165】
737 eight: {
738 codes: ["CN", "BN", "CL", "SV", "GT", "IN", "VE", "DO", "UY", "BH"],
739 channels: [36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165]
740 },
741 //1 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 132, 136, 140, 149, 153, 157, 161, 165】
742 nine: {
743 codes: ["RU"],
744 channels: [36, 40, 44, 48, 52, 56, 60, 64, 132, 136, 140, 149, 153, 157, 161, 165]
745 },
746 //1 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132】
747 ten: {
748 codes: ["DZ"],
749 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132]
750 },
751 //9 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140】
752 eleven: {
753 codes: ["AN", "ZA", "TR", "ZW", "KZ", "MK", "SA", "OM", "JP"],
754 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140]
755 },
756 //1 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 149, 153, 157, 161】
757 twelve: {
758 codes: ["KP"],
759 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 149, 153, 157, 161]
760 },
761 //3 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165】
762 thirteen: {
763 codes: ["AR", "MY", "MX"],
764 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165]
765 },
766 //3 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 144, 149, 153, 157, 161, 165】
767 fourteen: {
768 codes: ["AU", "CA", "NZ"],
769 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 144, 149, 153, 157, 161, 165]
770 },
771 //1 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 149, 153, 157, 161, 165】
772 fifteen: {
773 codes: ["UA"],
774 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 149, 153, 157, 161, 165]
775 },
776 //47 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165】
777 sixteen: {
778 codes: ["BE", "BR", "DK", "DE", "EE", "ES", "FR", "HR", "IT", "LV",
779 "LI", "LT", "LU", "HU", "MT", "MC", "NL", "NO", "PA", "PH",
780 "PL", "PT", "RO", "CH", "AL", "SG", "SI", "SK", "LK", "FI",
781 "SE", "GB", "VN", "IE", "IS", "AT", "CZ", "GR", "CY", "BA",
782 "BG", "AE", "QA", "LB", "MO", "HK", "KR"
783 ],
784 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165]
785 },
786 //10 countries of world【36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165】
787 seventeen: {
788 codes: ["CO", "CR", "EC", "JM", "PE", "PR", "TT", "US", "TH", "TW"],
789 channels: [36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165]
790 }
791 },
792 countryCode: {
793 world: ["AL", "DZ", "AR", "AM", "AU", "AT", "AZ", "BH", "BY",
794 "BE", "BA", "BR", "BN", "BG", "CL", "CN", "CR", "HR", "CY",
795 "CZ", "DK", "EC", "EG", "SV", "EE", "FI", "FR", "GE",
796 "DE", "GR", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IE",
797 "IL", "IT", "JM", "JO", "KZ", "KE", "KP", "KR", "KW", "LV",
798 "LB", "LI", "LT", "LU", "MO", "MK", "MY", "MT", "MC", "MA",
799 "NL", "AN", "NO", "OM", "PK", "PE", "PH", "PL", "PT", "QA",
800 "RO", "RU", "SA", "SG", "SK", "SI", "ZA", "ES", "LK",
801 "SE", "CH", "SY", "TH", "TT", "TN", "TR", "UA", "AE", "GB",
802 "UY", "VN", "YE", "ZW", "BD", "NG"],
803 mkkc: ["JP"],
804 apld: [],
805 etsic: ["BZ", "BO", "NZ", "VE"],
806 fcca: ["CA", "CO", "DO", "GT", "MX", "PA", "PR", "TW", "US", "UZ"]
807 },
808 //休眠时间
809 SLEEP_MODES: [{
810 name: "Always on",
811 value: "-1"
812 }, {
813 name: "5 minutes",
814 value: "5"
815 }, {
816 name: "10 minutes",
817 value: "10"
818 }, {
819 name: "20 minutes",
820 value: "20"
821 }, {
822 name: "30 minutes",
823 value: "30"
824 }, {
825 name: "1 hour",
826 value: "60"
827 }, {
828 name: "2 hours",
829 value: "120"
830 }
831 ],
832 DDNSSetMode: [{
833 name: 'Enable',
834 value: '1'
835 }, {
836 name: 'Disable',
837 value: '0'
838 }
839 ],
840 ddns_Modeselect: [{
841 name: 'manual',
842 value: 'manual'
843 }, {
844 name: 'auto',
845 value: 'auto'
846 }
847 ],
848 DDNSDDP: [{
849 name: 'dyndns.org',
850 value: 'dyndns.org'
851 }, {
852 name: 'freedns.afraid.org',
853 value: 'freedns.afraid.org'
854 }, {
855 name: 'zoneedit.com',
856 value: 'zoneedit.com'
857 }, {
858 name: 'no-ip.com',
859 value: 'no-ip.com'
860 }, {
861 name: 'None',
862 value: 'none'
863 }
864 ],
865 //RJ45连接模式
866 pppoeModes: [{
867 name: "PPPoE",
868 value: "PPPOE"
869 }, {
870 name: "Static",
871 value: "STATIC"
872 }, {
873 name: "DHCP",
874 value: "DHCP"
875 }, {
876 name: "AUTO",
877 value: "AUTO"
878 }
879 ],
880 //联网模式
881 AUTO_MODES: [{
882 name: 'Automatic',
883 value: 'NETWORK_auto'
884 }, {
885 name: '4G Only',
886 value: 'Only_LTE'
887 }, {
888 name: '3G Only',
889 value: 'Only_WCDMA'
890 }, {
891 name: '2G Only',
892 value: 'Only_GSM'
893 }
894 ],
895 //APN鉴权模式
896 APN_AUTH_MODES: [{
897 name: "NONE",
898 value: "none"
899 }, {
900 name: "CHAP",
901 value: "chap"
902 }, {
903 name: "PAP",
904 value: "pap"
905 }
906 ],
907 //语言
908 LANGUAGES: [{
909 name: 'English',
910 value: 'en'
911 }, {
912 name: '中文',
913 value: 'zh-cn'
914 }
915 ],
916 //wifi加密模式
917 AUTH_MODES: [{
918 name: 'NO ENCRYPTION',
919 value: 'OPEN'
920 }, {
921 name: 'WPA2(AES)-PSK',
922 value: 'WPA2PSK'
923 }, {
924 name: 'WPA-PSK/WPA2-PSK',
925 value: 'WPAPSKWPA2PSK'
926 }, {
927 name: 'WPA3-Personal',
928 value: 'WPA3Personal'
929 }, {
930 name: 'WPA2(AES)/WPA3-Personal',
931 value: 'WPA2WPA3'
932 }
933 ],
934 AUTH_MODES_WEP: [{
935 name: 'NO ENCRYPTION',
936 value: 'OPEN'
937 }, {
938 name: 'SHARED',
939 value: 'SHARED'
940 }, {
941 name: 'WPA2(AES)-PSK',
942 value: 'WPA2PSK'
943 }, {
944 name: 'WPA-PSK/WPA2-PSK',
945 value: 'WPAPSKWPA2PSK'
946 }, {
947 name: 'WPA3-Personal',
948 value: 'WPA3Personal'
949 }, {
950 name: 'WPA2(AES)/WPA3-Personal',
951 value: 'WPA2WPA3'
952 }
953 ],
954 AUTH_MODES_ALL: [{
955 name: 'NO ENCRYPTION',
956 value: 'OPEN'
957 }, {
958 name: 'SHARED',
959 value: 'SHARED'
960 }, {
961 name: 'WPA-PSK',
962 value: 'WPAPSK'
963 }, {
964 name: 'WPA2-PSK',
965 value: 'WPA2PSK'
966 }, {
967 name: 'WPA-PSK/WPA2-PSK',
968 value: 'WPAPSKWPA2PSK'
969 }, /*{
970 name: 'WPA3-Personal',
971 value: 'WPA3Personal'
972 }, {
973 name: 'WPA2(AES)/WPA3-Personal',
974 value: 'WPA2WPA3'
975 }, */{
976 name: 'EAP-SIM/AKA',
977 value: 'EAP-SIM/AKA'
978 }
979 ],
980
981 NETWORK_MODES: [{
982 name: '802.11 b/g/n',
983 value: '4'
984 }, {
985 name: '802.11 n only',
986 value: '2'
987 }
988 ],
989 NETWORK_MODES_BAND: [{
990 name: '802.11 a/n',
991 value: '4'
992 }, {
993 name: '802.11 a/n/ac',
994 value: '5'
995 }, {
996 name: '802.11 a/n/ac/ax',
997 value: '6'
998 }
999 ],
1000 resetContentModifyValue: function () {
1001 this.CONTENT_MODIFIED.checkChangMethod = function () {
1002 return false;
1003 };
1004 this.CONTENT_MODIFIED.modified = false;
1005 this.CONTENT_MODIFIED.message = 'leave_page_info';
1006 this.CONTENT_MODIFIED.callback = {
1007 ok: $.noop,
1008 no: function () {
1009 return true;
1010 }
1011 }; //如果no返回true,页面则保持原状
1012 this.CONTENT_MODIFIED.data = {};
1013 },
1014 CONTENT_MODIFIED: {
1015 modified: false,
1016 message: 'leave_page_info',
1017 data: {},
1018 checkChangMethod: function () {
1019 return false;
1020 },
1021 callback: {
1022 ok: $.noop,
1023 no: function () {
1024 return true;
1025 }
1026 } //如果no返回true,页面则保持原状
1027 }, //当前页面内容是否已经修改
1028
1029 };
1030
1031 require([config.DEVICE + '/set'], function (otherConf) {
1032 $.extend(config, otherConf);
1033 });
1034
1035 return config;
1036});