systemActions: Reindent action map
Starting an object literal with a comment throws off eslint's rules for brace style (newline between brace and properties for both opening and closing brace or neither) as well as indentation (fixed four-space indent or align with the previous argument). https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/608
This commit is contained in:
parent
8c28f9a77d
commit
02db21fc55
@ -83,48 +83,54 @@ const SystemActions = GObject.registerClass({
|
|||||||
this._canHaveSuspend = true;
|
this._canHaveSuspend = true;
|
||||||
|
|
||||||
this._actions = new Map();
|
this._actions = new Map();
|
||||||
this._actions.set(POWER_OFF_ACTION_ID,
|
this._actions.set(POWER_OFF_ACTION_ID, {
|
||||||
{ // Translators: The name of the power-off action in search
|
// Translators: The name of the power-off action in search
|
||||||
name: C_("search-result", "Power Off"),
|
name: C_("search-result", "Power Off"),
|
||||||
iconName: 'system-shutdown-symbolic',
|
iconName: 'system-shutdown-symbolic',
|
||||||
// Translators: A list of keywords that match the power-off action, separated by semicolons
|
// Translators: A list of keywords that match the power-off action, separated by semicolons
|
||||||
keywords: _("power off;shutdown;reboot;restart").split(/[; ]/),
|
keywords: _("power off;shutdown;reboot;restart").split(/[; ]/),
|
||||||
available: false });
|
available: false
|
||||||
this._actions.set(LOCK_SCREEN_ACTION_ID,
|
});
|
||||||
{ // Translators: The name of the lock screen action in search
|
this._actions.set(LOCK_SCREEN_ACTION_ID, {
|
||||||
|
// Translators: The name of the lock screen action in search
|
||||||
name: C_("search-result", "Lock Screen"),
|
name: C_("search-result", "Lock Screen"),
|
||||||
iconName: 'system-lock-screen-symbolic',
|
iconName: 'system-lock-screen-symbolic',
|
||||||
// Translators: A list of keywords that match the lock screen action, separated by semicolons
|
// Translators: A list of keywords that match the lock screen action, separated by semicolons
|
||||||
keywords: _("lock screen").split(/[; ]/),
|
keywords: _("lock screen").split(/[; ]/),
|
||||||
available: false });
|
available: false
|
||||||
this._actions.set(LOGOUT_ACTION_ID,
|
});
|
||||||
{ // Translators: The name of the logout action in search
|
this._actions.set(LOGOUT_ACTION_ID, {
|
||||||
|
// Translators: The name of the logout action in search
|
||||||
name: C_("search-result", "Log Out"),
|
name: C_("search-result", "Log Out"),
|
||||||
iconName: 'application-exit-symbolic',
|
iconName: 'application-exit-symbolic',
|
||||||
// Translators: A list of keywords that match the logout action, separated by semicolons
|
// Translators: A list of keywords that match the logout action, separated by semicolons
|
||||||
keywords: _("logout;log out;sign off").split(/[; ]/),
|
keywords: _("logout;log out;sign off").split(/[; ]/),
|
||||||
available: false });
|
available: false
|
||||||
this._actions.set(SUSPEND_ACTION_ID,
|
});
|
||||||
{ // Translators: The name of the suspend action in search
|
this._actions.set(SUSPEND_ACTION_ID, {
|
||||||
|
// Translators: The name of the suspend action in search
|
||||||
name: C_("search-result", "Suspend"),
|
name: C_("search-result", "Suspend"),
|
||||||
iconName: 'media-playback-pause-symbolic',
|
iconName: 'media-playback-pause-symbolic',
|
||||||
// Translators: A list of keywords that match the suspend action, separated by semicolons
|
// Translators: A list of keywords that match the suspend action, separated by semicolons
|
||||||
keywords: _("suspend;sleep").split(/[; ]/),
|
keywords: _("suspend;sleep").split(/[; ]/),
|
||||||
available: false });
|
available: false
|
||||||
this._actions.set(SWITCH_USER_ACTION_ID,
|
});
|
||||||
{ // Translators: The name of the switch user action in search
|
this._actions.set(SWITCH_USER_ACTION_ID, {
|
||||||
|
// Translators: The name of the switch user action in search
|
||||||
name: C_("search-result", "Switch User"),
|
name: C_("search-result", "Switch User"),
|
||||||
iconName: 'system-switch-user-symbolic',
|
iconName: 'system-switch-user-symbolic',
|
||||||
// Translators: A list of keywords that match the switch user action, separated by semicolons
|
// Translators: A list of keywords that match the switch user action, separated by semicolons
|
||||||
keywords: _("switch user").split(/[; ]/),
|
keywords: _("switch user").split(/[; ]/),
|
||||||
available: false });
|
available: false
|
||||||
this._actions.set(LOCK_ORIENTATION_ACTION_ID,
|
});
|
||||||
{ // Translators: The name of the lock orientation action in search
|
this._actions.set(LOCK_ORIENTATION_ACTION_ID, {
|
||||||
|
// Translators: The name of the lock orientation action in search
|
||||||
name: C_("search-result", "Lock Orientation"),
|
name: C_("search-result", "Lock Orientation"),
|
||||||
iconName: '',
|
iconName: '',
|
||||||
// Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
// Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
||||||
keywords: _("lock orientation;screen;rotation").split(/[; ]/),
|
keywords: _("lock orientation;screen;rotation").split(/[; ]/),
|
||||||
available: false });
|
available: false
|
||||||
|
});
|
||||||
|
|
||||||
this._loginScreenSettings = new Gio.Settings({ schema_id: LOGIN_SCREEN_SCHEMA });
|
this._loginScreenSettings = new Gio.Settings({ schema_id: LOGIN_SCREEN_SCHEMA });
|
||||||
this._lockdownSettings = new Gio.Settings({ schema_id: LOCKDOWN_SCHEMA });
|
this._lockdownSettings = new Gio.Settings({ schema_id: LOCKDOWN_SCHEMA });
|
||||||
|
Loading…
Reference in New Issue
Block a user