blob: ce31293080b07ed8a8b160ac47c07823cf45406d [file] [log] [blame]
zw.wang96c5d4e2025-07-01 11:35:13 +08001require.config({
2 shim: {
3 knockoutbase: ['jq_tmpl'],
4 jq_additional: ['jq_validate'],
5 jq_simplemodal: ['3rd/twbs.bootstrap'],
6 jq_translate: ['jq_i18n'],
7 },
8 paths: {
9 base64: '3rd/webtoolkit.base64',
10 echarts: '3rd/apache.echarts',
11 knockout: '3rd/knockout',
12 knockoutbase: '3rd/knockout.base',
13 jq_additional: '3rd/jquery.additional-methods',
14 jq_chosen: '3rd/jquery.chosen',
15 jq_fileinput: '3rd/jquery.fileinput',
16 jq_i18n: '3rd/jquery.i18n',
17 jq_simplemodal: '3rd/jquery.simplemodal',
18 jq_tmpl: '3rd/jquery.tmpl',
19 jq_translate: '3rd/jquery.translate',
20 jq_validate: '3rd/jquery.validate',
21 jquery: '3rd/require-jquery',
22 jqui: '3rd/jqui',
23 text: '3rd/require-text',
24 tmpl: '../subpg',
25 underscore: '3rd/underscore',
26 service: 'com',
27
28 CryptoJS: '3rd/crypto-js',
29
30 menu: 'com',
31 adm_lan: 'com',
32 adm_others: 'com',
33 adm_management: 'com',
34 adm_pin: 'com',
35 adm_quick_set: 'com',
36 main: 'com',
37 language: 'com',
38 entry: 'com',
39 logout: 'com',
40 opmode: 'com',
41 opmode_popup: 'com',
42 router: 'com',
43 statusBar: 'com',
44 status_traffic_alert: 'com',
45 tooltip: 'com',
46
47 phonebook: 'sim_device',
48 sim_abnormal: 'sim_device',
49 ota_update: 'sim_device',
50 sd: 'sim_device',
51 sd_httpshare: 'sim_device',
52 sms_set: 'sim_device',
53 sms_sim_messages: 'sim_device',
54 sms_list: 'sim_device',
55 ussd: 'sim_device',
56 network_apn_set: 'net',
57 network_dial_set: 'net',
58 network_dial_set_cpe: 'net',
59 network_info: 'net',
60 locknet: 'net',
61 network_net_select: 'net',
62 ddns: 'net',
63 firewall: 'net',
64 firewall_dmz_set: 'net',
65 firewall_parental_control: 'net',
66 firewall_port_filter: 'net',
67 firewall_port_forward: 'net',
68 firewall_port_map: 'net',
69 firewall_upnp_set: 'net',
70 firewall_url_filter: 'net',
71 wifi_advance: 'wifi',
72 wifi_ap_station: 'wifi',
73 wifi_guest: 'wifi',
74 wifi_mac_filter: 'wifi',
75 wifi_main: 'wifi',
76 wifi_sleep_mode: 'wifi',
77 wifi_station_info: 'wifi',
78 wifi_wps: 'wifi',
79
80 voice_dial_time: 'voice',
81 voice_call_duration: 'voice',
82 voice_call_hold: 'voice',
83 voice_hotline: 'voice',
84 voice_call_back: 'voice',
85 voice_hide_call: 'voice',
86 voice_whitelist: 'voice',
87 voice_blacklist: 'voice',
88 voice_call_forwarding: 'voice',
89 voice_call_lock: 'voice',
90 voice_csp: 'voice',
91 },
92
93});
94
95require("set service lib".split(" "),
96 function (set, fnc, util) {
97 function initAndLoad(cfg) {
98 require([cfg.menu, cfg.set], function (params) {
99 require("menu language logout statusBar router entry jq_additional jq_translate jq_simplemodal base64".split(" "),
100 function (menu, language, logout, statusBar, router, entry) {
101 menu.init();
102 language.init();
103 router.init();
104 logout.init();
105 statusBar.init();
106 });
107 });
108 }
109 if (!set.RJ45_SUPPORT) {
110 initAndLoad({
111 set: set.DEVICE + '/set',
112 menu: set.DEVICE + '/menu'
113 });
114 } else {
115 var tmp = "menu";
116 fnc.getOpMode({}, function (mod) {
117 set.blc_wan_mode = mod.blc_wan_mode;
118 switch (mod.blc_wan_mode) {
119 case "AUTO_PPPOE":
120 case "PPPOE":
121 tmp = "menu_pppoe";
122 break;
123 default:
124 tmp = "menu";
125 break;
126 }
127 initAndLoad({
128 set: set.DEVICE + '/set',
129 menu: set.DEVICE + '/' + tmp
130 });
131 });
132 }
133
134});