Skip to content

Instantly share code, notes, and snippets.

@P4z
Created June 23, 2017 06:08
Show Gist options
  • Save P4z/12e749a07486630b1a893b49d7baedd3 to your computer and use it in GitHub Desktop.
Save P4z/12e749a07486630b1a893b49d7baedd3 to your computer and use it in GitHub Desktop.
/usr/zte_web/web/js/config/datacard/mf823/menu.js see https://blog.elevendroids.com/2014/06/changing-zte-mf823-4g-modem-ip-address/
define(function() {
var needLogin = false;
var menu = [
// level 1 menu
{
hash:'#login',
path:'login',
level:'1',
requireLogin:false,
checkSIMStatus:false
} ,
{
hash:'#home',
path:'home',
level:'1',
requireLogin:needLogin,
checkSIMStatus:true
} ,
{
hash:'#status',
path:'status/device_info',
level:'1',
requireLogin:false,
checkSIMStatus:true
},
{
hash:'#sms',
path:'sms/smslist',
level:'1',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#phonebook',
path:'phonebook/phonebook',
level:'1',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#setting',
path:'network/dial_setting',
level:'1',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#USSD',
path:'ussd/ussd',
level:'1',
requireLogin:needLogin,
checkSIMStatus:true
}
, // level 2 menu
{
hash:'#ussd',
path:'ussd/ussd',
level:'2',
parent:'#USSD',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#net_setting',
path:'network/dial_setting',
level:'2',
parent:'#setting',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#device_setting',
path:'adm/pin',
level:'2',
parent:'#setting',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#group_all',
path:'phonebook/phonebook',
level:'2',
parent:'#phonebook',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#group_common',
path:'phonebook/phonebook',
level:'2',
parent:'#phonebook',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#group_family',
path:'phonebook/phonebook',
level:'2',
parent:'#phonebook',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#group_friend',
path:'phonebook/phonebook',
level:'2',
parent:'#phonebook',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#group_colleague',
path:'phonebook/phonebook',
level:'2',
parent:'#phonebook',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#device_info',
path:'status/device_info',
level:'2',
parent:'#status',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#traffic_statistics',
path:'status/traffic_statistics',
level:'2',
parent:'#status',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#traffic_alert',
path:'status/traffic_alert',
level:'2',
parent:'#status',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#smslist',
path:'sms/smslist',
level:'2',
parent:'#sms',
requireLogin:needLogin,
checkSIMStatus:false
},
{
hash:'#sim_messages',
path:'sms/sim_messages',
level:'2',
parent:'#sms',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#sms_setting',
path:'sms/sms_setting',
level:'2',
parent:'#sms',
requireLogin:needLogin,
checkSIMStatus:true
}
, // level 3 menu
{
hash:'#dial_setting',
path:'network/dial_setting',
level:'3',
parent:'#net_setting',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#net_select',
path:'network/net_select',
level:'3',
parent:'#net_setting',
requireLogin:false,
checkSIMStatus:true
},
{
hash:'#apn_setting',
path:'network/apn_setting',
level:'3',
parent:'#net_setting',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#pin_management',
path:'adm/pin',
level:'3',
parent:'#device_setting',
requireLogin:needLogin,
checkSIMStatus:true
},
{
hash:'#port_forward',
path:'firewall/port_forward',
level:'3',
parent:'#device_setting',
requireLogin:false,
checkSIMStatus:false
},
{
hash:'#router_setting',
path:'adm/lan',
level:'3',
parent:'#device_setting',
requireLogin:false,
checkSIMStatus:false
},
{
hash:'#dmz_setting',
path:'firewall/dmz_setting',
level:'3',
parent:'#device_setting',
requireLogin:false,
checkSIMStatus:false
},
{
hash:'#upnp_setting',
path:'firewall/upnp_setting',
level:'3',
parent:'#device_setting',
requireLogin:false,
checkSIMStatus:false
},
{
hash:'#port_filter',
path:'firewall/port_filter',
level:'3',
parent:'#device_setting',
requireLogin:false,
checkSIMStatus:false
},
{
hash:'#update_management',
path:'update/update_info',
level:'3',
parent:'#device_setting',
requireLogin:needLogin
}
];
return menu;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment