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
2016-12-31 23:02:35 +08:00

33 lines
987 B
JavaScript

(function () {
'use strict';
angular.module('ariaNg').constant('ariaNgConstants', {
title: 'AriaNg',
appPrefix: 'AriaNg',
optionStorageKey: 'Options',
languageStorageKeyPrefix: 'Language',
languagePath: 'langs',
languageFileExtension: '.txt',
defaultLanguage: 'en',
defaultHost: 'localhost',
globalStatStorageCapacity: 120,
taskStatStorageCapacity: 300,
lazySaveTimeout: 500,
errorTooltipDelay: 500,
notificationInPageTimeout: 2000
}).constant('ariaNgDefaultOptions', {
language: 'en',
title: '${downspeed}, ${upspeed} - ${title}',
titleRefreshInterval: 5000,
browserNotification: false,
rpcHost: '',
rpcPort: '6800',
rpcInterface: 'jsonrpc',
protocol: 'http',
httpMethod: 'POST',
secret: '',
globalStatRefreshInterval: 1000,
downloadTaskRefreshInterval: 1000
});
}());