mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-24 19:23:45 +08:00
added angular-sanitize, updated packages
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
angular
|
||||
.module('NginxConfigIoApp', ['ngclipboard', '720kb.tooltips'])
|
||||
.module('NginxConfigIoApp', ['ngSanitize', 'ngclipboard', '720kb.tooltips'])
|
||||
.config([
|
||||
'$locationProvider',
|
||||
appConfig,
|
||||
@@ -13,6 +13,10 @@
|
||||
'tooltipsConfProvider',
|
||||
tooltipsConfig,
|
||||
])
|
||||
.config([
|
||||
'$sceDelegateProvider',
|
||||
sceConfig,
|
||||
])
|
||||
.directive('ngIncludeTabs', ngIncludeTabs)
|
||||
.controller('NginxConfigIoController', [
|
||||
'$scope', '$window', '$location', '$timeout',
|
||||
@@ -148,6 +152,16 @@
|
||||
|
||||
|
||||
|
||||
function sceConfig($sceDelegateProvider) {
|
||||
$sceDelegateProvider.resourceUrlWhitelist([
|
||||
'self',
|
||||
'https://nginxconfig.io/**',
|
||||
'https://do.nginxconfig.io/**',
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ngIncludeTabs() {
|
||||
return {
|
||||
require: 'ngInclude',
|
||||
|
Reference in New Issue
Block a user