blob: a679a6b9764162dd10c50c4ffb274845a6d900c9 [file] [log] [blame]
zw.wangcfae4372024-08-12 16:41:12 +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"
zw.wangcfae4372024-08-12 16:41:12 +0800174 }, {
175 name: "(GMT-07:00) Arizona",
176 value: "<-07>7_1"
177 }, {
zw.wangcfae4372024-08-12 16:41:12 +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",
zw.wangcfae4372024-08-12 16:41:12 +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",
zw.wangcfae4372024-08-12 16:41:12 +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 }, {
zw.wangcfae4372024-08-12 16:41:12 +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",
zw.wangcfae4372024-08-12 16:41:12 +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",
zw.wangcfae4372024-08-12 16:41:12 +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"
zw.wangcfae4372024-08-12 16:41:12 +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",
673 UZ: "O’zbekiston"
674 },
675 //国家码与类型匹配表
676 countryCode_5g: {
677 //88 countries of world【36 40 44 48】
678 one: {
679 codes: ["AL", "AI", "AW", "AT", "BY", "BM", "BA", "BW", "IO", "BG",
680 "CV", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GF", "PF",
681 "TF", "GI", "DE", "GR", "GP", "GG", "HU", "IS", "IE", "IT",
682 "KE", "LA", "LV", "LS", "LI", "LT", "LU", "MK", "MT", "IM",
683 "MQ", "MR", "MU", "YT", "MC", "MS", "NL", "AN", "NO",
684 "OM", "PL", "PT", "RE", "RO", "SM", "SN", "RS", "SK", "SI",
685 "ZA", "ES", "SE", "CH", "TC", "UG", "GB", "VG", "WF", "ZM",
686 "AF", "JO", "MA", "EH", "EU", "DZ", "IL", "MX", "PM", "TN",
687 "TR", "JP"],
688 channels: [36, 40, 44, 48]
689 },
690 //60 countrys of world【36 40 44 48 149 153 157 161 165】
691 two: {
692 codes: ["AS", "AG", "AZ", "BR", "KH", "KY", "CO", "CR", "DM", "DO",
693 "EC", "GH", "GD", "HK", "KZ", "KI", "FM", "MZ", "NA", "NZ",
694 "NI", "NE", "PW", "PE", "PH", "PR", "VC", "TH", "TT", "UY",
695 "ZW", "AU", "BH", "BB", "CA", "CL", "CX", "EG", "SV", "GT",
696 "HT", "IN", "MY", "NF", "PA", "PG", "SG", "US", "VN"],
697 channels: [36, 40, 44, 48, 149, 153, 157, 161, 165]
698 },
699 //9 countrys of world【149 153 157 161】
700 three: {
701 codes: ["CU", "IR", "KR", "SY", "LB", "MW", "MO", "QA"],
702 channels: [149, 153, 157, 161]
703 },
704 //12 countrys of world【149 153 157 161 165】
705 four: {
706 codes: ["BD", "BF", "CN", "HN", "JM", "PK", "PY", "KN", "AR", "TW", "NG"],
707 channels: [149, 153, 157, 161, 165]
708 },
709 //1 country of world【36 40 44 48 149 153 157 161】
710 five: {
711 codes: ["SA"],
712 channels: [36, 40, 44, 48, 149, 153, 157, 161]
713 }
714 },
715 countryCode: {
716 world: ["AL", "DZ", "AR", "AM", "AU", "AT", "AZ", "BH", "BY",
717 "BE", "BA", "BR", "BN", "BG", "CL", "CN", "CR", "HR", "CY",
718 "CZ", "DK", "EC", "EG", "SV", "EE", "FI", "FR", "GE",
719 "DE", "GR", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IE",
720 "IL", "IT", "JM", "JO", "KZ", "KE", "KP", "KR", "KW", "LV",
721 "LB", "LI", "LT", "LU", "MO", "MK", "MY", "MT", "MC", "MA",
722 "NL", "AN", "NO", "OM", "PK", "PE", "PH", "PL", "PT", "QA",
723 "RO", "RU", "SA", "SG", "SK", "SI", "ZA", "ES", "LK",
724 "SE", "CH", "SY", "TH", "TT", "TN", "TR", "UA", "AE", "GB",
725 "UY", "VN", "YE", "ZW", "BD"],
726 mkkc: ["JP"],
727 apld: [],
728 etsic: ["BZ", "BO", "NZ", "VE"],
729 fcca: ["CA", "CO", "DO", "GT", "MX", "PA", "PR", "TW", "US", "UZ"]
730 },
731 //休眠时间
732 SLEEP_MODES: [{
733 name: "Always on",
734 value: "-1"
735 }, {
736 name: "5 minutes",
737 value: "5"
738 }, {
739 name: "10 minutes",
740 value: "10"
741 }, {
742 name: "20 minutes",
743 value: "20"
744 }, {
745 name: "30 minutes",
746 value: "30"
747 }, {
748 name: "1 hour",
749 value: "60"
750 }, {
751 name: "2 hours",
752 value: "120"
753 }
754 ],
755 DDNSSetMode: [{
756 name: 'Enable',
757 value: '1'
758 }, {
759 name: 'Disable',
760 value: '0'
761 }
762 ],
763 ddns_Modeselect: [{
764 name: 'manual',
765 value: 'manual'
766 }, {
767 name: 'auto',
768 value: 'auto'
769 }
770 ],
771 DDNSDDP: [{
772 name: 'dyndns.org',
773 value: 'dyndns.org'
774 }, {
775 name: 'freedns.afraid.org',
776 value: 'freedns.afraid.org'
777 }, {
778 name: 'zoneedit.com',
779 value: 'zoneedit.com'
780 }, {
781 name: 'no-ip.com',
782 value: 'no-ip.com'
783 }, {
784 name: 'None',
785 value: 'none'
786 }
787 ],
788 //RJ45连接模式
789 pppoeModes: [{
790 name: "PPPoE",
791 value: "PPPOE"
792 }, {
793 name: "Static",
794 value: "STATIC"
795 }, {
796 name: "DHCP",
797 value: "DHCP"
798 }, {
799 name: "AUTO",
800 value: "AUTO"
801 }
802 ],
803 //联网模式
804 AUTO_MODES: [{
805 name: 'Automatic',
806 value: 'NETWORK_auto'
807 }, {
808 name: '4G Only',
809 value: 'Only_LTE'
810 }, {
811 name: '3G Only',
812 value: 'Only_WCDMA'
813 }, {
814 name: '2G Only',
815 value: 'Only_GSM'
816 }
817 ],
818 //APN鉴权模式
819 APN_AUTH_MODES: [{
820 name: "NONE",
821 value: "none"
822 }, {
823 name: "CHAP",
824 value: "chap"
825 }, {
826 name: "PAP",
827 value: "pap"
828 }
829 ],
830 //语言
831 LANGUAGES: [{
832 name: 'English',
833 value: 'en'
834 }, {
835 name: '中文',
836 value: 'zh-cn'
837 }
838 ],
839 //wifi加密模式
840 AUTH_MODES: [{
841 name: 'NO ENCRYPTION',
842 value: 'OPEN'
843 }, {
844 name: 'WPA2(AES)-PSK',
845 value: 'WPA2PSK'
846 }, {
847 name: 'WPA-PSK/WPA2-PSK',
848 value: 'WPAPSKWPA2PSK'
849 }, {
850 name: 'WPA3-Personal',
851 value: 'WPA3Personal'
852 }, {
853 name: 'WPA2(AES)/WPA3-Personal',
854 value: 'WPA2WPA3'
855 }
856 ],
857 AUTH_MODES_WEP: [{
858 name: 'NO ENCRYPTION',
859 value: 'OPEN'
860 }, {
861 name: 'SHARED',
862 value: 'SHARED'
863 }, {
864 name: 'WPA2(AES)-PSK',
865 value: 'WPA2PSK'
866 }, {
867 name: 'WPA-PSK/WPA2-PSK',
868 value: 'WPAPSKWPA2PSK'
869 }, {
870 name: 'WPA3-Personal',
871 value: 'WPA3Personal'
872 }, {
873 name: 'WPA2(AES)/WPA3-Personal',
874 value: 'WPA2WPA3'
875 }
876 ],
877 AUTH_MODES_ALL: [{
878 name: 'NO ENCRYPTION',
879 value: 'OPEN'
880 }, {
881 name: 'SHARED',
882 value: 'SHARED'
883 }, {
884 name: 'WPA-PSK',
885 value: 'WPAPSK'
886 }, {
887 name: 'WPA2-PSK',
888 value: 'WPA2PSK'
889 }, {
890 name: 'WPA-PSK/WPA2-PSK',
891 value: 'WPAPSKWPA2PSK'
892 }, /*{
893 name: 'WPA3-Personal',
894 value: 'WPA3Personal'
895 }, {
896 name: 'WPA2(AES)/WPA3-Personal',
897 value: 'WPA2WPA3'
898 }, */{
899 name: 'EAP-SIM/AKA',
900 value: 'EAP-SIM/AKA'
901 }
902 ],
903
904 NETWORK_MODES: [{
905 name: '802.11 b/g/n',
906 value: '4'
907 }, {
908 name: '802.11 n only',
909 value: '2'
910 }
911 ],
912 NETWORK_MODES_BAND: [{
913 name: '802.11 a only',
914 value: '5'
915 }, {
916 name: '802.11 n only',
917 value: '2'
918 }, {
919 name: '802.11 a/n',
920 value: '4'
921 }
922 ],
923 resetContentModifyValue: function () {
924 this.CONTENT_MODIFIED.checkChangMethod = function () {
925 return false;
926 };
927 this.CONTENT_MODIFIED.modified = false;
928 this.CONTENT_MODIFIED.message = 'leave_page_info';
929 this.CONTENT_MODIFIED.callback = {
930 ok: $.noop,
931 no: function () {
932 return true;
933 }
934 }; //如果no返回true,页面则保持原状
935 this.CONTENT_MODIFIED.data = {};
936 },
937 CONTENT_MODIFIED: {
938 modified: false,
939 message: 'leave_page_info',
940 data: {},
941 checkChangMethod: function () {
942 return false;
943 },
944 callback: {
945 ok: $.noop,
946 no: function () {
947 return true;
948 }
949 } //如果no返回true,页面则保持原状
950 }, //当前页面内容是否已经修改
951
952 };
953
954 require([config.DEVICE + '/set'], function (otherConf) {
955 $.extend(config, otherConf);
956 });
957
958 return config;
959});