24 lines
651 B
JavaScript
24 lines
651 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular.module('ariaNg').constant('ariaNgConstants', {
|
|
title: 'Aria Ng',
|
|
appPrefix: 'AriaNg',
|
|
optionStorageKey: 'Options',
|
|
lazySaveTimeout: 500
|
|
}).constant('ariaNgDefaultOptions', {
|
|
language: 'en-US',
|
|
rpcHost: '',
|
|
rpcPort: '6800',
|
|
protocol: 'http',
|
|
secret: '',
|
|
globalStatRefreshInterval: 1000,
|
|
downloadTaskRefreshInterval: 1000
|
|
}).constant('aria2RpcConstants', {
|
|
rpcServiceVersion: '2.0',
|
|
rpcServiceName: 'aria2',
|
|
rpcSystemServiceName: 'system',
|
|
rpcTokenPrefix: 'token:'
|
|
});
|
|
})();
|