2016-05-13 18:09:12 +02:00
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular.module('ariaNg').constant('ariaNgConstants', {
|
2016-06-26 15:31:58 +02:00
|
|
|
title: 'AriaNg',
|
2016-05-16 18:59:27 +02:00
|
|
|
appPrefix: 'AriaNg',
|
2016-05-22 19:17:13 +02:00
|
|
|
optionStorageKey: 'Options',
|
2016-07-16 19:16:17 +02:00
|
|
|
languageStorageKeyPrefix: 'Language',
|
2018-05-20 16:56:12 +02:00
|
|
|
settingHistoryKeyPrefix: 'History',
|
2016-08-03 16:37:23 +02:00
|
|
|
languagePath: 'langs',
|
2016-08-01 18:59:19 +02:00
|
|
|
languageFileExtension: '.txt',
|
2016-07-16 19:16:17 +02:00
|
|
|
defaultLanguage: 'en',
|
2016-08-01 16:18:00 +02:00
|
|
|
defaultHost: 'localhost',
|
2017-10-08 16:48:30 +02:00
|
|
|
defaultSecureProtocol: 'https',
|
2018-08-13 19:10:45 +02:00
|
|
|
defaultPathSeparator: '/',
|
2016-06-10 19:25:09 +02:00
|
|
|
globalStatStorageCapacity: 120,
|
|
|
|
taskStatStorageCapacity: 300,
|
2016-06-25 18:26:12 +02:00
|
|
|
lazySaveTimeout: 500,
|
2016-11-06 08:20:44 +01:00
|
|
|
errorTooltipDelay: 500,
|
2018-04-05 18:58:14 +02:00
|
|
|
notificationInPageTimeout: 2000,
|
2018-05-20 16:56:12 +02:00
|
|
|
historyMaxStoreCount: 10,
|
2018-04-05 18:58:14 +02:00
|
|
|
cachedDebugLogsLimit: 100
|
2016-05-13 18:09:12 +02:00
|
|
|
}).constant('ariaNgDefaultOptions', {
|
2016-06-05 18:49:48 +02:00
|
|
|
language: 'en',
|
2016-06-26 15:31:58 +02:00
|
|
|
title: '${downspeed}, ${upspeed} - ${title}',
|
2016-06-27 17:59:22 +02:00
|
|
|
titleRefreshInterval: 5000,
|
|
|
|
browserNotification: false,
|
2017-03-19 16:36:14 +01:00
|
|
|
rpcAlias: '',
|
2016-05-16 18:59:27 +02:00
|
|
|
rpcHost: '',
|
|
|
|
rpcPort: '6800',
|
2016-12-31 16:02:05 +01:00
|
|
|
rpcInterface: 'jsonrpc',
|
2016-05-16 15:28:23 +02:00
|
|
|
protocol: 'http',
|
2016-12-24 15:31:31 +01:00
|
|
|
httpMethod: 'POST',
|
2016-06-04 09:33:40 +02:00
|
|
|
secret: '',
|
2017-03-19 16:36:14 +01:00
|
|
|
extendRpcServers: [],
|
2016-05-13 18:09:12 +02:00
|
|
|
globalStatRefreshInterval: 1000,
|
2017-05-14 08:16:46 +02:00
|
|
|
downloadTaskRefreshInterval: 1000,
|
2017-11-03 17:15:19 +01:00
|
|
|
afterCreatingNewTask: 'task-list',
|
|
|
|
removeOldTaskAfterRestarting: false
|
2016-05-13 18:09:12 +02:00
|
|
|
});
|
2016-08-01 16:49:16 +02:00
|
|
|
}());
|