show device icon and name in session list

This commit is contained in:
MaysWind
2020-11-17 21:49:01 +08:00
parent 4c706282d5
commit 68233852e7
12 changed files with 135 additions and 4 deletions
+18
View File
@@ -65,10 +65,28 @@ const allAccountIcons = {
f7Icon: 'bitcoin'
}
};
const deviceIcons = {
mobile: {
f7Icon: 'device_phone_portrait'
},
tablet: {
f7Icon: 'device_tablet_portrait'
},
wearable: {
f7Icon: 'device_phone_portrait'
},
desktop: {
f7Icon: 'device_desktop'
},
tv: {
f7Icon: 'tv'
}
};
export default {
allAccountIcons: allAccountIcons,
defaultAccountIconId: defaultAccountIconId,
defaultAccountIcon: allAccountIcons[defaultAccountIconId],
totalAccountIconCount: totalAccountIconCount,
deviceIcons: deviceIcons,
};
+6
View File
@@ -152,6 +152,12 @@ const licenses = [
copyright: 'Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors',
url: 'https://github.com/js-cookie/js-cookie',
licenseUrl: 'https://github.com/js-cookie/js-cookie/blob/master/LICENSE'
},
{
name: 'UAParser.js',
copyright: 'Copyright (c) 2012-2019 Faisal Salman <f@faisalman.com>',
url: 'https://github.com/faisalman/ua-parser-js',
licenseUrl: 'https://github.com/faisalman/ua-parser-js/blob/master/license.md'
}
];