mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 04:24:12 +00:00
added angular-sanitize, updated packages
This commit is contained in:
parent
3b5ab8ff30
commit
38ede7305c
5 changed files with 912 additions and 821 deletions
1683
package-lock.json
generated
1683
package-lock.json
generated
File diff suppressed because it is too large
Load diff
30
package.json
30
package.json
|
@ -19,8 +19,9 @@
|
||||||
"author": "Bálint Szekeres <balint@szekeres.me> (https://balint.szekeres.me)",
|
"author": "Bálint Szekeres <balint@szekeres.me> (https://balint.szekeres.me)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"angular": "^1.7.9",
|
||||||
|
"angular-sanitize": "^1.7.8",
|
||||||
"angular-tooltips": "^1.2.2",
|
"angular-tooltips": "^1.2.2",
|
||||||
"angular": "^1.7.8",
|
|
||||||
"bootstrap": "^4.3.1",
|
"bootstrap": "^4.3.1",
|
||||||
"file-saver": "^2.0.2",
|
"file-saver": "^2.0.2",
|
||||||
"highlight.js": "github:highlightjs/highlight.js#cli",
|
"highlight.js": "github:highlightjs/highlight.js#cli",
|
||||||
|
@ -31,47 +32,38 @@
|
||||||
"notie": "^4.3.1"
|
"notie": "^4.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^9.6.1",
|
"autoprefixer": "^9.7.2",
|
||||||
"browser-sync": "^2.26.7",
|
"browser-sync": "^2.26.7",
|
||||||
"concat": "^1.0.3",
|
"concat": "^1.0.3",
|
||||||
"concurrently": "^4.1.1",
|
"concurrently": "^5.0.0",
|
||||||
"cypress": "^3.3.2",
|
"cypress": "^3.6.1",
|
||||||
"eslint": "^6.0.1",
|
"eslint": "^6.6.0",
|
||||||
"http-server": "^0.11.1",
|
"http-server": "^0.11.1",
|
||||||
"node-sass": "^4.12.0",
|
"node-sass": "^4.13.0",
|
||||||
"nodemon": "^1.19.1",
|
"nodemon": "^1.19.4",
|
||||||
"postcss-cli": "^6.1.2",
|
"postcss-cli": "^6.1.3",
|
||||||
"start-server-and-test": "^1.9.1",
|
"start-server-and-test": "^1.10.6",
|
||||||
"uglify-js": "^3.6.0"
|
"uglify-js": "^3.6.9"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm run build && concurrently \"npm:*:watch\" \"npm:browsersync\"",
|
"start": "npm run build && concurrently \"npm:*:watch\" \"npm:browsersync\"",
|
||||||
|
|
||||||
"build": "concurrently \"npm:build:js:vendor\" \"npm:build:js:app\" \"npm:build:scss\"",
|
"build": "concurrently \"npm:build:js:vendor\" \"npm:build:js:app\" \"npm:build:scss\"",
|
||||||
"build:prod": "concurrently \"npm:build:js:vendor:prod\" \"npm:build:js:app:prod\" \"npm:build:scss:prod\" && npm run autoprefixer",
|
"build:prod": "concurrently \"npm:build:js:vendor:prod\" \"npm:build:js:app:prod\" \"npm:build:scss:prod\" && npm run autoprefixer",
|
||||||
|
|
||||||
"build:js:highlight": "node node_modules/highlight.js/tools/build.js -n bash nginx -t browser --no-compress",
|
"build:js:highlight": "node node_modules/highlight.js/tools/build.js -n bash nginx -t browser --no-compress",
|
||||||
"build:js:vendor": "npm run build:js:highlight && node build/script.js vendor public/assets/js/vendor.min.js",
|
"build:js:vendor": "npm run build:js:highlight && node build/script.js vendor public/assets/js/vendor.min.js",
|
||||||
"build:js:vendor:prod": "npm run build:js:vendor -- --production",
|
"build:js:vendor:prod": "npm run build:js:vendor -- --production",
|
||||||
|
|
||||||
"build:js:app": "node build/script.js app public/assets/js/app.min.js",
|
"build:js:app": "node build/script.js app public/assets/js/app.min.js",
|
||||||
"build:js:app:prod": "npm run build:js:app -- --production",
|
"build:js:app:prod": "npm run build:js:app -- --production",
|
||||||
"build:js:app:watch": "nodemon -q -C -x 'npm run build:js:app' -w 'resources/js/' -e '*'",
|
"build:js:app:watch": "nodemon -q -C -x 'npm run build:js:app' -w 'resources/js/' -e '*'",
|
||||||
|
|
||||||
"build:scss": "node-sass resources/scss/style.scss public/assets/css/app.min.css",
|
"build:scss": "node-sass resources/scss/style.scss public/assets/css/app.min.css",
|
||||||
"build:scss:prod": "npm run build:scss -- --output-style=compressed",
|
"build:scss:prod": "npm run build:scss -- --output-style=compressed",
|
||||||
"build:scss:watch": "npm run build:scss -- --watch",
|
"build:scss:watch": "npm run build:scss -- --watch",
|
||||||
|
|
||||||
"autoprefixer": "postcss public/assets/css/app.min.css --use autoprefixer --no-map --replace --verbose",
|
"autoprefixer": "postcss public/assets/css/app.min.css --use autoprefixer --no-map --replace --verbose",
|
||||||
|
|
||||||
"browsersync": "browser-sync 'public/' --watch",
|
"browsersync": "browser-sync 'public/' --watch",
|
||||||
|
|
||||||
"lint": "eslint resources/js/app.js",
|
"lint": "eslint resources/js/app.js",
|
||||||
"lint:fix": "npm run lint -- --fix",
|
"lint:fix": "npm run lint -- --fix",
|
||||||
|
|
||||||
"test": "npm run lint && npm run build && start-server-and-test http-server http://localhost:8080 cypress:run",
|
"test": "npm run lint && npm run build && start-server-and-test http-server http://localhost:8080 cypress:run",
|
||||||
"test:debug": "npm run lint && npm run build && start-server-and-test http-server http://localhost:8080 cypress:open",
|
"test:debug": "npm run lint && npm run build && start-server-and-test http-server http://localhost:8080 cypress:open",
|
||||||
|
|
||||||
"cypress:run": "cypress run",
|
"cypress:run": "cypress run",
|
||||||
"cypress:open": "cypress open"
|
"cypress:open": "cypress open"
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="do-app">
|
<div class="do-app">
|
||||||
<div id="app" ng-app="NginxConfigIoApp" ng-controller="NginxConfigIoController"
|
<div id="app" ng-app="NginxConfigIoApp" ng-controller="NginxConfigIoController" ng-class="['layout-' + layout]" ng-include="'partials/index.html'" onload="init()" ng-csp></div>
|
||||||
ng-class="['layout-' + layout]" ng-include="'partials/index.html'" onload="init()" ng-csp></div>
|
|
||||||
</div>
|
</div>
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-3084378-31"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-3084378-31"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
angular
|
angular
|
||||||
.module('NginxConfigIoApp', ['ngclipboard', '720kb.tooltips'])
|
.module('NginxConfigIoApp', ['ngSanitize', 'ngclipboard', '720kb.tooltips'])
|
||||||
.config([
|
.config([
|
||||||
'$locationProvider',
|
'$locationProvider',
|
||||||
appConfig,
|
appConfig,
|
||||||
|
@ -13,6 +13,10 @@
|
||||||
'tooltipsConfProvider',
|
'tooltipsConfProvider',
|
||||||
tooltipsConfig,
|
tooltipsConfig,
|
||||||
])
|
])
|
||||||
|
.config([
|
||||||
|
'$sceDelegateProvider',
|
||||||
|
sceConfig,
|
||||||
|
])
|
||||||
.directive('ngIncludeTabs', ngIncludeTabs)
|
.directive('ngIncludeTabs', ngIncludeTabs)
|
||||||
.controller('NginxConfigIoController', [
|
.controller('NginxConfigIoController', [
|
||||||
'$scope', '$window', '$location', '$timeout',
|
'$scope', '$window', '$location', '$timeout',
|
||||||
|
@ -148,6 +152,16 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function sceConfig($sceDelegateProvider) {
|
||||||
|
$sceDelegateProvider.resourceUrlWhitelist([
|
||||||
|
'self',
|
||||||
|
'https://nginxconfig.io/**',
|
||||||
|
'https://do.nginxconfig.io/**',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function ngIncludeTabs() {
|
function ngIncludeTabs() {
|
||||||
return {
|
return {
|
||||||
require: 'ngInclude',
|
require: 'ngInclude',
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
],
|
],
|
||||||
"vendor": [
|
"vendor": [
|
||||||
"node_modules/angular/angular.js",
|
"node_modules/angular/angular.js",
|
||||||
|
"node_modules/angular-sanitize/angular-sanitize.js",
|
||||||
|
|
||||||
"node_modules/highlight.js/build/highlight.pack.js",
|
"node_modules/highlight.js/build/highlight.pack.js",
|
||||||
"node_modules/masonry-layout/dist/masonry.pkgd.js",
|
"node_modules/masonry-layout/dist/masonry.pkgd.js",
|
||||||
|
|
Loading…
Reference in a new issue