cleanup: Use new indentation style for arrays
We've made some progress on transitioning to the modern indentation style, and for arrays the legacy style is now rare enough to make a bulk transition feasible. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2200>
This commit is contained in:

committed by
Marge Bot

parent
696965c9f7
commit
ac9fbe92e5
@ -11,6 +11,14 @@ const Config = imports.misc.config;
|
||||
|
||||
const DEFAULT_MODE = 'restrictive';
|
||||
|
||||
const USER_SESSION_COMPONENTS = [
|
||||
'polkitAgent', 'telepathyClient', 'keyring',
|
||||
'autorunManager', 'automountManager',
|
||||
];
|
||||
|
||||
if (Config.HAVE_NETWORKMANAGER)
|
||||
USER_SESSION_COMPONENTS.push('networkAgent');
|
||||
|
||||
const _modes = {
|
||||
'restrictive': {
|
||||
parentMode: null,
|
||||
@ -82,12 +90,7 @@ const _modes = {
|
||||
isLocked: false,
|
||||
isPrimary: true,
|
||||
unlockDialog: imports.ui.unlockDialog.UnlockDialog,
|
||||
components: Config.HAVE_NETWORKMANAGER
|
||||
? ['networkAgent', 'polkitAgent', 'telepathyClient',
|
||||
'keyring', 'autorunManager', 'automountManager']
|
||||
: ['polkitAgent', 'telepathyClient',
|
||||
'keyring', 'autorunManager', 'automountManager'],
|
||||
|
||||
components: USER_SESSION_COMPONENTS,
|
||||
panel: {
|
||||
left: ['activities', 'appMenu'],
|
||||
center: ['dateMenu'],
|
||||
|
Reference in New Issue
Block a user