/** * @ngdoc constant * @name superProductivity.Dialogs * @description * # Dialogs * Constant in the superProductivity. */ (function () { 'use strict'; angular .module('superProductivity') .constant('DEFAULT_THEME', 'blue-theme') .constant('GLOBAL_LS_FIELDS', [ 'currentProject', 'projects', 'keys', 'isShowWelcomeDialog' ]) .constant('LS_DEFAULTS', { isShowWelcomeDialog: true, note: undefined, theme: undefined, currentTask: undefined, currentProject: undefined, currentSession: { timeWorkedWithoutBreak: undefined }, tasks: [], backlogTasks: [], distractions: [], projects: [], git: { projectDir: undefined }, keys: { globalShowHide: 'Ctrl+Shift+X', addNewTask: '*', showHelp: '?', openProjectNotes: 'N', openDistractionPanel: 'D', taskEditTitle: 'e', taskToggleNotes: 'n', taskOpenEstimationDialog: 't', taskToggleDone: 'd', taskAddSubTask: '+', taskDelete: 'Delete', selectPreviousTask: 'k', selectNextTask: 'j', moveTaskUp: 'Ctrl+Shift+ArrowUp', moveTaskDown: 'Ctrl+Shift+ArrowDown', moveToBacklog: '', moveToTodaysTasks: '' }, config: { isTakeABreakEnabled: false, takeABreakMinWorkingTime: undefined, isShortSyntaxEnabled: true }, // non setting variables which are simply saved where they are entered uiHelper: { dailyTaskExportSettings: { separateBy: ', ', separateFieldsBy: '', isUseNewLine: false, isListSubTasks: true, isListDoneOnly: false, isWorkedOnTodayOnly: true, showTitle: true, showTime: false, showDate: false }, timeTrackingHistoryExportSettings: { separateBy: '', separateFieldsBy: ';', isUseNewLine: true, isListSubTasks: true, isListDoneOnly: false, isWorkedOnTodayOnly: true, showTitle: true, showTimeSpent: true, isTimeSpentAsMilliseconds: true, showDate: false }, csvExportSettings: { separateBy: '', separateFieldsBy: ';', isUseNewLine: true, isListSubTasks: true, isListDoneOnly: false, isWorkedOnTodayOnly: true, showTitle: true, showTimeSpent: true, isTimeSpentAsMilliseconds: true, showDate: false }, dailyAgenda: { showSubTasks: true } }, jiraSettings: { isJiraEnabled: false, isFirstLogin: true, isWorklogEnabled: true, isAutoWorklog: false, isUpdateIssueFromLocal: false, isAddWorklogOnSubTaskDone: true, defaultTransitionInProgress: undefined, defaultTransitionDone: undefined, jqlQuery: 'resolution = Unresolved ORDER BY updatedDate DESC', userName: undefined, password: undefined, host: undefined, transitions: { OPEN: 'ALWAYS_ASK', IN_PROGRESS: 'ALWAYS_ASK', DONE: 'ALWAYS_ASK' } } }) .constant('REQUEST_TIMEOUT', 15000) .constant('WORKLOG_DATE_STR_FORMAT', 'YYYY-MM-DD') .constant('JIRA_UPDATE_POLL_INTERVAL', 60 * 1000 * 5) .constant('SIMPLE_TIME_TRACKING_INTERVAL', 1000 * 5) .constant('IS_ELECTRON', (typeof window.ipcRenderer !== 'undefined')) .constant('THEMES', [ 'red', 'pink', 'purple', 'deep-purple', 'indigo', 'blue', 'light-blue', 'cyan', 'teal', 'green', 'light-green', 'lime', 'yellow', 'amber', 'orange', 'deep-orange', 'brown', 'grey', 'blue-grey' ] ); })();