blob: 72c05086472db9f17fbc8756699d0d90d64108af [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 }, {
178 name: "(GMT-07:00) Chihuahua, La Paz, Mazza Tran",
mj.qufdad6792025-05-19 19:43:19 -0700179 value: "<-07>7_2"
zw.wangcfae4372024-08-12 16:41:12 +0800180 }, {
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.wangcfae4372024-08-12 16:41:12 +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.wangcfae4372024-08-12 16:41:12 +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.wangcfae4372024-08-12 16:41:12 +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.wangcfae4372024-08-12 16:41:12 +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",
mj.qu49381e62025-04-29 18:29:54 -0700287 value: "<+0330>-3:30_0"
zw.wangcfae4372024-08-12 16:41:12 +0800288 }, {
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 AR: "ARGENTIA",
480 AM: "ՀԱՅԱՍՏԱՆ",
481 AU: "AUSTRILIA",
482 AT: "ÖSTERREICH",
483 AZ: "AZƏRBAYCAN",
484 BH: "البحرين",
485 BY: "БЕЛАРУСЬ",
486 BE: "BELGIË",
487 BA: "БОСНА И ХЕРЦЕГОВИНА",
488 BR: "BRASIL",
489 BN: "BRUNEI DARUSSALAM",
490 BG: "БЪЛГАРИЯ",
491 CL: "CHILE",
492 CN: "中国",
493 CR: "COSTA RICA",
494 HR: "HRVATSKA",
495 CY: "ΚΎΠΡΟΣ",
496 CZ: "ČESKÁ REPUBLIKA",
497 DK: "DANMARK",
498 EC: "ECUADOR",
499 EG: "مصر",
500 SV: "EL SALVADOR",
501 EE: "EESTI",
502 FI: "SUOMI",
503 FR: "FRANCE",
504 GE: "საქართველო",
505 DE: "DEUTSCHLAND",
506 GR: "ΕΛΛΆΔΑ",
507 HK: "香港",
508 HU: "MAGYARORSZÁG",
509 IS: "ÍSLAND",
510 IN: "INDIA",
511 ID: "INDONESIA",
512 IR: "ایران",
513 IE: "ÉIRE",
514 IL: "إسرائيل",
515 IT: "ITALIA",
516 JM: "JAMAICA",
517 JO: "الأردن",
518 KP: "조선민주주의인민공화국",
519 KR: "한국 ROK",
520 LV: "LATVIJA",
521 LI: "LIECHTENSTEIN",
522 LT: "LIETUVA",
523 LU: "LUXEMBOURG",
524 MO: "澳門",
525 MY: "MALAYSIA",
526 MT: "MALTA",
527 MC: "MONACO",
528 NL: "NEDERLAND",
529 AN: "Netherlands Antilles",
530 NO: "NORGE",
531 OM: "سلطنة عمان",
532 PE: "PERÚ",
533 PH: "PHILIPPINES",
534 PL: "POLSKA",
535 PT: "PORTUGAL",
536 SA: "السعودية",
537 SG: "SINGAPORE",
538 SK: "SLOVENSKÁ REPUBLIKA",
539 SI: "SLOVENIJA",
540 ZA: "SOUTH AFRICA",
541 ES: "ESPAÑA",
542 LK: "SRILANKA",
543 SE: "SVERIGE",
544 CH: "SCHWEIZ",
545 TT: "TRINIDAD AND TOBAGO",
546 TN: "تونس",
547 TR: "TÜRKİYE",
548 GB: "UNITED KINGDOM",
549 UY: "URUGUAY",
550 JP: "日本",
551 BZ: "BELIZE",
552 BO: "BOLIVIA",
553 NZ: "NEW ZEALAND",
554 VE: "VENEZUELA",
555 CA: "CANADA",
556 CO: "COLOMBIA",
557 DO: "REPÚBLICA DOMINICANA",
558 GT: "GUATEMALA",
559 MX: "MEXICO",
560 PA: "PANAMÁ",
561 PR: "PUERTO RICO",
562 TW: "台灣",
563 US: "UNITED STATES",
564 UZ: "O’zbekiston"
565 },
566
567 //国家码与语言匹配表
568 countries: {
569 NONE: "NONE",
570 AL: "SHQIPERI",
571 DZ: "الجزائر",
572 AR: "ARGENTIA",
573 AM: "ՀԱՅԱՍՏԱՆ",
574 AU: "AUSTRALIA",
575 AT: "ÖSTERREICH",
576 AZ: "AZƏRBAYCAN",
577 BD: "বাংলাদেশ",
578 BH: "البحرين",
579 BY: "БЕЛАРУСЬ",
580 BE: "BELGIË",
581 BA: "БОСНА И ХЕРЦЕГОВИНА",
582 BR: "BRASIL",
583 BN: "BRUNEI DARUSSALAM",
584 BG: "БЪЛГАРИЯ",
585 CL: "CHILE",
586 CN: "中国",
587 CR: "COSTA RICA",
588 HR: "HRVATSKA",
589 CY: "ΚΎΠΡΟΣ",
590 CZ: "ČESKÁ REPUBLIKA",
591 DK: "DANMARK",
592 EC: "ECUADOR",
593 EG: "مصر",
594 SV: "EL SALVADOR",
595 EE: "EESTI",
596 FI: "SUOMI",
597 FR: "FRANCE",
598 GE: "საქართველო",
599 DE: "DEUTSCHLAND",
600 GR: "ΕΛΛΆΔΑ",
601 HN: "HONDURAS",
602 HK: "香港",
603 HU: "MAGYARORSZÁG",
604 IS: "ÍSLAND",
605 IN: "INDIA",
606 ID: "INDONESIA",
607 IR: "ایران، جمهوری اسلامی",
608 IE: "ÉIRE",
609 IL: "إسرائيل",
610 IT: "ITALIA",
611 JM: "JAMAICA",
612 JO: "الأردن",
613 KZ: "КАЗАХСТАН",
614 KE: "KENYA",
615 KP: "조선민주주의인민공화국",
616 KR: "한국 ROK",
617 KW: "الكويت",
618 LV: "LATVIJA",
619 LB: "لبنان",
620 LI: "LIECHTENSTEIN",
621 LT: "LIETUVA",
622 LU: "LUXEMBOURG",
623 MO: "澳門",
624 MK: "МАКЕДОНИЈА",
625 MY: "MALAYSIA",
626 MT: "MALTA",
627 MC: "MONACO",
628 MA: "المغرب",
629 NL: "NEDERLAND",
630 AN: "NETHERLANDS ANTILLES",
631 NO: "NORGE",
632 OM: "سلطنة عمان",
633 PK: "PAKISTAN",
634 PE: "PERÚ",
635 PH: "PHILIPPINES",
636 PL: "POLSKA",
637 PT: "PORTUGAL",
638 QA: "قطر",
639 RO: "ROMÂNIA",
640 RU: "Российская Федерация",
641 SA: "السعودية",
642 SG: "SINGAPORE",
643 SK: "SLOVENSKÁ REPUBLIKA",
644 SI: "SLOVENIJA",
645 ZA: "SOUTH AFRICA",
646 ES: "ESPAÑA",
647 LK: "SRILANKA",
648 SE: "SVERIGE",
649 CH: "SCHWEIZ",
650 SY: "الجمهورية العربية السورية",
651 TH: "ประเทศไทย",
652 TT: "TRINIDAD AND TOBAGO",
653 TN: "تونس",
654 TR: "TÜRKİYE",
655 UA: "Україна",
656 AE: "الإمارات العربية المتحدة",
657 GB: "UNITED KINGDOM",
658 UY: "URUGUAY",
659 VN: "VIỆT NAM",
660 YE: "اليمن",
661 ZW: "ZIMBABWE",
662 JP: "日本",
663 BZ: "BELIZE",
664 BO: "BOLIVIA",
665 NZ: "NEW ZEALAND",
666 VE: "REPÚBLICA BOLIVARIANA DE VENEZUELA",
667 CA: "CANADA",
668 CO: "COLOMBIA",
669 DO: "REPÚBLICA DOMINICANA",
670 GT: "GUATEMALA",
671 MX: "MEXICO",
672 PA: "PANAMÁ",
673 PR: "PUERTO RICO",
674 TW: "台灣",
675 US: "UNITED STATES",
676 UZ: "O’zbekiston"
677 },
678 //国家码与类型匹配表
679 countryCode_5g: {
680 //88 countries of world【36 40 44 48】
681 one: {
682 codes: ["AL", "AI", "AW", "AT", "BY", "BM", "BA", "BW", "IO", "BG",
683 "CV", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GF", "PF",
684 "TF", "GI", "DE", "GR", "GP", "GG", "HU", "IS", "IE", "IT",
685 "KE", "LA", "LV", "LS", "LI", "LT", "LU", "MK", "MT", "IM",
686 "MQ", "MR", "MU", "YT", "MC", "MS", "NL", "AN", "NO",
687 "OM", "PL", "PT", "RE", "RO", "SM", "SN", "RS", "SK", "SI",
688 "ZA", "ES", "SE", "CH", "TC", "UG", "GB", "VG", "WF", "ZM",
689 "AF", "JO", "MA", "EH", "EU", "DZ", "IL", "MX", "PM", "TN",
690 "TR", "JP"],
691 channels: [36, 40, 44, 48]
692 },
693 //60 countrys of world【36 40 44 48 149 153 157 161 165】
694 two: {
695 codes: ["AS", "AG", "AZ", "BR", "KH", "KY", "CO", "CR", "DM", "DO",
696 "EC", "GH", "GD", "HK", "KZ", "KI", "FM", "MZ", "NA", "NZ",
697 "NI", "NE", "PW", "PE", "PH", "PR", "VC", "TH", "TT", "UY",
698 "ZW", "AU", "BH", "BB", "CA", "CL", "CX", "EG", "SV", "GT",
699 "HT", "IN", "MY", "NF", "PA", "PG", "SG", "US", "VN"],
700 channels: [36, 40, 44, 48, 149, 153, 157, 161, 165]
701 },
702 //9 countrys of world【149 153 157 161】
703 three: {
704 codes: ["CU", "IR", "KR", "SY", "LB", "MW", "MO", "QA"],
705 channels: [149, 153, 157, 161]
706 },
707 //12 countrys of world【149 153 157 161 165】
708 four: {
709 codes: ["BD", "BF", "CN", "HN", "JM", "PK", "PY", "KN", "AR", "TW", "NG"],
710 channels: [149, 153, 157, 161, 165]
711 },
712 //1 country of world【36 40 44 48 149 153 157 161】
713 five: {
714 codes: ["SA"],
715 channels: [36, 40, 44, 48, 149, 153, 157, 161]
716 }
717 },
718 countryCode: {
719 world: ["AL", "DZ", "AR", "AM", "AU", "AT", "AZ", "BH", "BY",
720 "BE", "BA", "BR", "BN", "BG", "CL", "CN", "CR", "HR", "CY",
721 "CZ", "DK", "EC", "EG", "SV", "EE", "FI", "FR", "GE",
722 "DE", "GR", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IE",
723 "IL", "IT", "JM", "JO", "KZ", "KE", "KP", "KR", "KW", "LV",
724 "LB", "LI", "LT", "LU", "MO", "MK", "MY", "MT", "MC", "MA",
725 "NL", "AN", "NO", "OM", "PK", "PE", "PH", "PL", "PT", "QA",
726 "RO", "RU", "SA", "SG", "SK", "SI", "ZA", "ES", "LK",
727 "SE", "CH", "SY", "TH", "TT", "TN", "TR", "UA", "AE", "GB",
728 "UY", "VN", "YE", "ZW", "BD"],
729 mkkc: ["JP"],
730 apld: [],
731 etsic: ["BZ", "BO", "NZ", "VE"],
732 fcca: ["CA", "CO", "DO", "GT", "MX", "PA", "PR", "TW", "US", "UZ"]
733 },
734 //休眠时间
735 SLEEP_MODES: [{
736 name: "Always on",
737 value: "-1"
738 }, {
739 name: "5 minutes",
740 value: "5"
741 }, {
742 name: "10 minutes",
743 value: "10"
744 }, {
745 name: "20 minutes",
746 value: "20"
747 }, {
748 name: "30 minutes",
749 value: "30"
750 }, {
751 name: "1 hour",
752 value: "60"
753 }, {
754 name: "2 hours",
755 value: "120"
756 }
757 ],
758 DDNSSetMode: [{
759 name: 'Enable',
760 value: '1'
761 }, {
762 name: 'Disable',
763 value: '0'
764 }
765 ],
766 ddns_Modeselect: [{
767 name: 'manual',
768 value: 'manual'
769 }, {
770 name: 'auto',
771 value: 'auto'
772 }
773 ],
774 DDNSDDP: [{
775 name: 'dyndns.org',
776 value: 'dyndns.org'
777 }, {
778 name: 'freedns.afraid.org',
779 value: 'freedns.afraid.org'
780 }, {
781 name: 'zoneedit.com',
782 value: 'zoneedit.com'
783 }, {
784 name: 'no-ip.com',
785 value: 'no-ip.com'
786 }, {
787 name: 'None',
788 value: 'none'
789 }
790 ],
791 //RJ45连接模式
792 pppoeModes: [{
793 name: "PPPoE",
794 value: "PPPOE"
795 }, {
796 name: "Static",
797 value: "STATIC"
798 }, {
799 name: "DHCP",
800 value: "DHCP"
801 }, {
802 name: "AUTO",
803 value: "AUTO"
804 }
805 ],
806 //联网模式
807 AUTO_MODES: [{
808 name: 'Automatic',
809 value: 'NETWORK_auto'
810 }, {
811 name: '4G Only',
812 value: 'Only_LTE'
813 }, {
814 name: '3G Only',
815 value: 'Only_WCDMA'
816 }, {
817 name: '2G Only',
818 value: 'Only_GSM'
819 }
820 ],
821 //APN鉴权模式
822 APN_AUTH_MODES: [{
823 name: "NONE",
824 value: "none"
825 }, {
826 name: "CHAP",
827 value: "chap"
828 }, {
829 name: "PAP",
830 value: "pap"
831 }
832 ],
833 //语言
834 LANGUAGES: [{
835 name: 'English',
836 value: 'en'
837 }, {
838 name: '中文',
839 value: 'zh-cn'
840 }
841 ],
842 //wifi加密模式
843 AUTH_MODES: [{
844 name: 'NO ENCRYPTION',
845 value: 'OPEN'
846 }, {
847 name: 'WPA2(AES)-PSK',
848 value: 'WPA2PSK'
849 }, {
850 name: 'WPA-PSK/WPA2-PSK',
851 value: 'WPAPSKWPA2PSK'
852 }, {
853 name: 'WPA3-Personal',
854 value: 'WPA3Personal'
855 }, {
856 name: 'WPA2(AES)/WPA3-Personal',
857 value: 'WPA2WPA3'
858 }
859 ],
860 AUTH_MODES_WEP: [{
861 name: 'NO ENCRYPTION',
862 value: 'OPEN'
863 }, {
864 name: 'SHARED',
865 value: 'SHARED'
866 }, {
867 name: 'WPA2(AES)-PSK',
868 value: 'WPA2PSK'
869 }, {
870 name: 'WPA-PSK/WPA2-PSK',
871 value: 'WPAPSKWPA2PSK'
872 }, {
873 name: 'WPA3-Personal',
874 value: 'WPA3Personal'
875 }, {
876 name: 'WPA2(AES)/WPA3-Personal',
877 value: 'WPA2WPA3'
878 }
879 ],
880 AUTH_MODES_ALL: [{
881 name: 'NO ENCRYPTION',
882 value: 'OPEN'
883 }, {
884 name: 'SHARED',
885 value: 'SHARED'
886 }, {
887 name: 'WPA-PSK',
888 value: 'WPAPSK'
889 }, {
890 name: 'WPA2-PSK',
891 value: 'WPA2PSK'
892 }, {
893 name: 'WPA-PSK/WPA2-PSK',
894 value: 'WPAPSKWPA2PSK'
895 }, /*{
896 name: 'WPA3-Personal',
897 value: 'WPA3Personal'
898 }, {
899 name: 'WPA2(AES)/WPA3-Personal',
900 value: 'WPA2WPA3'
901 }, */{
902 name: 'EAP-SIM/AKA',
903 value: 'EAP-SIM/AKA'
904 }
905 ],
906
907 NETWORK_MODES: [{
908 name: '802.11 b/g/n',
909 value: '4'
910 }, {
911 name: '802.11 n only',
912 value: '2'
913 }
914 ],
915 NETWORK_MODES_BAND: [{
916 name: '802.11 a only',
917 value: '5'
918 }, {
919 name: '802.11 n only',
920 value: '2'
921 }, {
922 name: '802.11 a/n',
923 value: '4'
924 }
925 ],
926 resetContentModifyValue: function () {
927 this.CONTENT_MODIFIED.checkChangMethod = function () {
928 return false;
929 };
930 this.CONTENT_MODIFIED.modified = false;
931 this.CONTENT_MODIFIED.message = 'leave_page_info';
932 this.CONTENT_MODIFIED.callback = {
933 ok: $.noop,
934 no: function () {
935 return true;
936 }
937 }; //如果no返回true,页面则保持原状
938 this.CONTENT_MODIFIED.data = {};
939 },
940 CONTENT_MODIFIED: {
941 modified: false,
942 message: 'leave_page_info',
943 data: {},
944 checkChangMethod: function () {
945 return false;
946 },
947 callback: {
948 ok: $.noop,
949 no: function () {
950 return true;
951 }
952 } //如果no返回true,页面则保持原状
953 }, //当前页面内容是否已经修改
954
955 };
956
957 require([config.DEVICE + '/set'], function (otherConf) {
958 $.extend(config, otherConf);
959 });
960
961 return config;
962});