constants.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. (function () {
  2. 'use strict';
  3. angular.module('ariaNg').constant('ariaNgConstants', {
  4. title: 'AriaNg Native',
  5. appPrefix: 'AriaNg',
  6. optionStorageKey: 'Options',
  7. browserNotificationHistoryStorageKey: 'Notifications',
  8. languageStorageKeyPrefix: 'Language',
  9. settingHistoryKeyPrefix: 'History',
  10. languagePath: 'langs',
  11. languageFileExtension: '.txt',
  12. defaultLanguage: 'en',
  13. defaultHost: 'localhost',
  14. defaultSecureProtocol: 'https',
  15. defaultPathSeparator: '/',
  16. httpRequestTimeout: 20000,
  17. globalStatStorageCapacity: 120,
  18. taskStatStorageCapacity: 300,
  19. lazySaveTimeout: 500,
  20. errorTooltipDelay: 500,
  21. notificationInPageTimeout: 2000,
  22. historyMaxStoreCount: 10,
  23. cachedDebugLogsLimit: 100
  24. }).constant('ariaNgDefaultOptions', {
  25. language: 'en',
  26. theme: 'light',
  27. autoCheckUpdates: 'never',
  28. title: '${downspeed}, ${upspeed} - ${title}',
  29. titleRefreshInterval: 5000,
  30. browserNotification: false,
  31. browserNotificationSound: true,
  32. browserNotificationFrequency: 'unlimited',
  33. playSoundAfterDownloadFinished: '',
  34. rpcAlias: '',
  35. rpcHost: '',
  36. rpcPort: '6800',
  37. rpcInterface: 'jsonrpc',
  38. protocol: 'http',
  39. httpMethod: 'POST',
  40. rpcRequestHeaders: '',
  41. secret: '',
  42. extendRpcServers: [],
  43. webSocketReconnectInterval: 5000,
  44. globalStatRefreshInterval: 1000,
  45. downloadTaskRefreshInterval: 1000,
  46. keyboardShortcuts: true,
  47. swipeGesture: true,
  48. dragAndDropTasks: true,
  49. rpcListDisplayOrder: 'recentlyUsed',
  50. afterCreatingNewTask: 'task-list',
  51. removeOldTaskAfterRetrying: false,
  52. confirmTaskRemoval: true,
  53. includePrefixWhenCopyingFromTaskDetails: true,
  54. showPiecesInfoInTaskDetailPage: 'le10240',
  55. afterRetryingTask: 'task-list-downloading',
  56. taskListIndependentDisplayOrder: false,
  57. displayOrder: 'default:asc',
  58. waitingTaskListPageDisplayOrder: 'default:asc',
  59. stoppedTaskListPageDisplayOrder: 'default:asc',
  60. fileListDisplayOrder: 'default:asc',
  61. peerListDisplayOrder: 'default:asc'
  62. });
  63. }());