diff --git a/demo/swagger.yaml b/demo/swagger.yaml index 63a0bcbb..ed06f5db 100644 --- a/demo/swagger.yaml +++ b/demo/swagger.yaml @@ -336,6 +336,7 @@ paths: summary: Finds Pets by tags description: 'Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.' operationId: findPetsByTags + deprecated: true produces: - application/xml - application/json @@ -858,4 +859,4 @@ definitions: type: integer format: int32 xml: - name: User + name: User \ No newline at end of file diff --git a/lib/components/AuthScopes/auth-scopes.html b/lib/components/AuthScopes/auth-scopes.html index e1a4e3a8..3d4adb82 100644 --- a/lib/components/AuthScopes/auth-scopes.html +++ b/lib/components/AuthScopes/auth-scopes.html @@ -1,12 +1,13 @@ - - !
OAuth2 Scopes -
-

{{scope.name}}

-

{{scope.description}}

+
+ + + + +
- diff --git a/lib/components/AuthScopes/auth-scopes.scss b/lib/components/AuthScopes/auth-scopes.scss deleted file mode 100644 index 9d1b4211..00000000 --- a/lib/components/AuthScopes/auth-scopes.scss +++ /dev/null @@ -1,32 +0,0 @@ -$hint-color: #e53935; - -.oauth-scopes-header { - font-weight: bold; -} - -.oauth-scope { - padding-top: 1.2em; -} - -.oauth-scope-description { - font-style: italic; - line-height: 0.2em; -} - -.oauth-scopes { - text-align: left; - white-space: nowrap; -} - -.oauth-scopes-hint { - width: 1.2em; - text-align: center; - border-radius: 50%; - vertical-align: middle; - color: $hint-color; - line-height: 1.2; - text-transform: none; - cursor: help; - border: 1px solid $hint-color; - float: right; -} diff --git a/lib/components/AuthScopes/auth-scopes.ts b/lib/components/AuthScopes/auth-scopes.ts index 0573b3c3..b73d4a39 100644 --- a/lib/components/AuthScopes/auth-scopes.ts +++ b/lib/components/AuthScopes/auth-scopes.ts @@ -7,7 +7,6 @@ import { ComponentParser } from '../../services/component-parser.service'; @Component({ selector: 'auth-scopes', templateUrl: './auth-scopes.html', - styleUrls: ['./auth-scopes.css'], changeDetection: ChangeDetectionStrategy.OnPush }) export class AuthScopes extends BaseComponent implements OnInit { diff --git a/lib/utils/spec-manager.ts b/lib/utils/spec-manager.ts index 14f08e11..6a04f5e6 100644 --- a/lib/utils/spec-manager.ts +++ b/lib/utils/spec-manager.ts @@ -138,9 +138,8 @@ export class SpecManager { } getOperationScopes(operationPtr:string) { - let that = this; - function getSecurityDefinition(name:string, scope:string) { - let secDefs = that._schema.securityDefinitions; + const getSecurityDefinition = (name: string, scope: string) => { + let secDefs = this._schema.securityDefinitions; if (secDefs[name] && secDefs[name].type === 'oauth2') { let availScopes = secDefs[name].scopes; if (availScopes && availScopes[scope]) { diff --git a/lib/vendor.ts b/lib/vendor.ts index ebdc2515..edbd8669 100644 --- a/lib/vendor.ts +++ b/lib/vendor.ts @@ -22,7 +22,7 @@ import 'prismjs/components/prism-markup.js'; // xml import 'dropkickjs/build/css/dropkick.css'; import 'prismjs/themes/prism-dark.css'; -import 'html-hint/dist/html-hint.css'; +import 'hint.css/hint.base.css'; if (!IS_PRODUCTION) { require('@angular/platform-browser'); diff --git a/package.json b/package.json index a4a1e5fb..91ef8ee2 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "css-loader": "^0.28.1", "deploy-to-gh-pages": "^1.3.3", "dropkickjs": "^2.1.10", - "html-hint": "^0.2.4", + "hint.css": "^2.5.0", "http-server": "^0.10.0", "https-browserify": "^1.0.0", "istanbul-instrumenter-loader": "^2.0.0",