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

52 lines
1.7 KiB
JavaScript

(function () {
'use strict';
angular.module('ariaNg').constant('ariaNgConstants', {
title: 'AriaNg',
appPrefix: 'AriaNg',
optionStorageKey: 'Options',
languageStorageKeyPrefix: 'Language',
settingHistoryKeyPrefix: 'History',
languagePath: 'langs',
languageFileExtension: '.txt',
defaultLanguage: 'en',
defaultHost: 'localhost',
defaultSecureProtocol: 'https',
defaultPathSeparator: '/',
websocketAutoReconnect: true,
globalStatStorageCapacity: 120,
taskStatStorageCapacity: 300,
lazySaveTimeout: 500,
errorTooltipDelay: 500,
notificationInPageTimeout: 2000,
historyMaxStoreCount: 10,
cachedDebugLogsLimit: 100
}).constant('ariaNgDefaultOptions', {
language: 'en',
theme: 'light',
title: '${downspeed}, ${upspeed} - ${title}',
titleRefreshInterval: 5000,
browserNotification: false,
rpcAlias: '',
rpcHost: '',
rpcPort: '6800',
rpcInterface: 'jsonrpc',
protocol: 'http',
httpMethod: 'POST',
secret: '',
extendRpcServers: [],
globalStatRefreshInterval: 1000,
downloadTaskRefreshInterval: 1000,
dragAndDropTasks: true,
rpcListDisplayOrder: 'recentlyUsed',
afterCreatingNewTask: 'task-list',
removeOldTaskAfterRetrying: false,
confirmTaskRemoval: true,
includePrefixWhenCopyingFromTaskDetails: true,
afterRetryingTask: 'task-list-downloading',
displayOrder: 'default:asc',
fileListDisplayOrder: 'default:asc',
peerListDisplayOrder: 'default:asc'
});
}());