constants.js 1.8 KB

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