This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/src/scripts/config/constants.js

41 lines
1.3 KiB
JavaScript
Raw Normal View History

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',
optionStorageKey: 'Options',
2016-07-16 19:16:17 +02:00
languageStorageKeyPrefix: 'Language',
settingHistoryKeyPrefix: 'History',
languagePath: 'langs',
2016-08-01 18:59:19 +02:00
languageFileExtension: '.txt',
2016-07-16 19:16:17 +02:00
defaultLanguage: 'en',
defaultHost: 'localhost',
defaultSecureProtocol: 'https',
globalStatStorageCapacity: 120,
taskStatStorageCapacity: 300,
lazySaveTimeout: 500,
errorTooltipDelay: 500,
2018-04-05 18:58:14 +02:00
notificationInPageTimeout: 2000,
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}',
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',
protocol: 'http',
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,
downloadTaskRefreshInterval: 1000,
afterCreatingNewTask: 'task-list',
removeOldTaskAfterRestarting: false
2016-05-13 18:09:12 +02:00
});
2016-08-01 16:49:16 +02:00
}());