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',
|
2016-05-22 19:17:13 +02:00
|
|
|
optionStorageKey: 'Options',
|
2016-07-16 19:16:17 +02:00
|
|
|
languageStorageKeyPrefix: 'Language',
|
2016-08-03 16:37:23 +02:00
|
|
|
languagePath: 'langs',
|
2016-08-01 18:59:19 +02:00
|
|
|
languageFileExtension: '.txt',
|
2016-07-16 19:16:17 +02:00
|
|
|
defaultLanguage: 'en',
|
2016-08-01 16:18:00 +02:00
|
|
|
defaultHost: 'localhost',
|
2016-06-10 19:25:09 +02:00
|
|
|
globalStatStorageCapacity: 120,
|
|
|
|
taskStatStorageCapacity: 300,
|
2016-06-25 18:26:12 +02:00
|
|
|
lazySaveTimeout: 500,
|
2016-11-06 08:20:44 +01:00
|
|
|
errorTooltipDelay: 500,
|
2016-07-16 17:16:07 +02:00
|
|
|
notificationInPageTimeout: 2000
|
2016-06-26 12:10:58 +02:00
|
|
|
}).constant('ariaNgFileTypes', {
|
|
|
|
video: [
|
|
|
|
'.3gp',
|
|
|
|
'.3gpp',
|
|
|
|
'.asf',
|
|
|
|
'.asx',
|
|
|
|
'.avi',
|
|
|
|
'.dat',
|
|
|
|
'.flv',
|
|
|
|
'.m4v',
|
|
|
|
'.mkv',
|
|
|
|
'.mov',
|
|
|
|
'.mp4',
|
|
|
|
'.mpe',
|
|
|
|
'.mpeg',
|
|
|
|
'.mpg',
|
|
|
|
'.rm',
|
|
|
|
'.rmvb',
|
|
|
|
'.vob',
|
|
|
|
'.wmv'
|
|
|
|
],
|
|
|
|
audio: [
|
|
|
|
'.aac',
|
|
|
|
'.amr',
|
|
|
|
'.ape',
|
|
|
|
'.flac',
|
|
|
|
'.m4a',
|
|
|
|
'.mid',
|
|
|
|
'.mp3',
|
|
|
|
'.ogg',
|
|
|
|
'.ra',
|
|
|
|
'.vqf',
|
|
|
|
'.wav',
|
|
|
|
'.wma'
|
|
|
|
],
|
|
|
|
picture: [
|
|
|
|
'.bmp',
|
|
|
|
'.emf',
|
|
|
|
'.gif',
|
|
|
|
'.jp2',
|
|
|
|
'.jpeg',
|
|
|
|
'.jpg',
|
|
|
|
'.png',
|
|
|
|
'.psd',
|
|
|
|
'.raw',
|
|
|
|
'.tga',
|
|
|
|
'.tif',
|
|
|
|
'.tiff',
|
|
|
|
'.wmf'
|
|
|
|
],
|
|
|
|
document: [
|
|
|
|
'.doc',
|
|
|
|
'.docx',
|
|
|
|
'.key',
|
|
|
|
'.numbers',
|
|
|
|
'.odp',
|
|
|
|
'.ods',
|
|
|
|
'.odt',
|
|
|
|
'.pages',
|
|
|
|
'.pdf',
|
|
|
|
'.ppt',
|
|
|
|
'.pptx',
|
|
|
|
'.rtf',
|
|
|
|
'.txt',
|
|
|
|
'.vsd',
|
|
|
|
'.vsdx',
|
|
|
|
'.wps',
|
|
|
|
'.xls',
|
|
|
|
'.xlsx'
|
|
|
|
],
|
|
|
|
application: [
|
|
|
|
'.apk',
|
|
|
|
'.bat',
|
|
|
|
'.com',
|
|
|
|
'.deb',
|
|
|
|
'.dll',
|
|
|
|
'.dmg',
|
|
|
|
'.exe',
|
|
|
|
'.ipa',
|
|
|
|
'.jar',
|
|
|
|
'.rpm',
|
|
|
|
'.sh'
|
|
|
|
],
|
|
|
|
archive: [
|
|
|
|
'.7z',
|
|
|
|
'.arj',
|
|
|
|
'.bz2',
|
|
|
|
'.cab',
|
|
|
|
'.gz',
|
|
|
|
'.iso',
|
|
|
|
'.r',
|
|
|
|
'.rar',
|
|
|
|
'.tar',
|
|
|
|
'.tar',
|
|
|
|
'.z',
|
|
|
|
'.zip'
|
|
|
|
]
|
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}',
|
2016-06-27 17:59:22 +02:00
|
|
|
titleRefreshInterval: 5000,
|
|
|
|
browserNotification: false,
|
2016-05-16 18:59:27 +02:00
|
|
|
rpcHost: '',
|
|
|
|
rpcPort: '6800',
|
2016-05-16 15:28:23 +02:00
|
|
|
protocol: 'http',
|
2016-06-04 09:33:40 +02:00
|
|
|
secret: '',
|
2016-05-13 18:09:12 +02:00
|
|
|
globalStatRefreshInterval: 1000,
|
|
|
|
downloadTaskRefreshInterval: 1000
|
|
|
|
});
|
2016-08-01 16:49:16 +02:00
|
|
|
}());
|