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

50 lines
1.6 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',
2018-08-13 19:10:45 +02:00
defaultPathSeparator: '/',
websocketAutoReconnect: true,
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,
2018-08-14 15:56:02 +02:00
rpcListDisplayOrder: 'recentlyUsed',
afterCreatingNewTask: 'task-list',
2018-11-11 13:53:56 +01:00
removeOldTaskAfterRetrying: false,
2019-10-08 15:20:31 +02:00
confirmTaskRemoval: true,
2020-05-01 07:19:57 +02:00
includePrefixWhenCopyingFromTaskDetails: true,
2018-11-11 13:53:56 +01:00
afterRetryingTask: 'task-list-downloading',
displayOrder: 'default:asc',
fileListDisplayOrder: 'default:asc',
peerListDisplayOrder: 'default:asc'
2016-05-13 18:09:12 +02:00
});
2016-08-01 16:49:16 +02:00
}());