diff --git a/src/Squidex/app/features/api/api-area.component.html b/src/Squidex/app/features/api/api-area.component.html index 3311137f0..f53c81b01 100644 --- a/src/Squidex/app/features/api/api-area.component.html +++ b/src/Squidex/app/features/api/api-area.component.html @@ -14,7 +14,7 @@ diff --git a/src/Squidex/app/features/apps/pages/apps-page.component.html b/src/Squidex/app/features/apps/pages/apps-page.component.html index 61cfd438a..ac8d5dba4 100644 --- a/src/Squidex/app/features/apps/pages/apps-page.component.html +++ b/src/Squidex/app/features/apps/pages/apps-page.component.html @@ -52,7 +52,7 @@
Start with our ready to use blog.
- Sample Code: C# + Sample Code: C#
@@ -69,7 +69,7 @@
Create your profile page.
- Sample Code: C# + Sample Code: C#
@@ -86,7 +86,7 @@
Create app for Squidex Identity.
- Project + Project
diff --git a/src/Squidex/app/features/apps/pages/onboarding-dialog.component.html b/src/Squidex/app/features/apps/pages/onboarding-dialog.component.html index c68ead443..48f5725fc 100644 --- a/src/Squidex/app/features/apps/pages/onboarding-dialog.component.html +++ b/src/Squidex/app/features/apps/pages/onboarding-dialog.component.html @@ -125,18 +125,18 @@

Awesome, now you know the basics!

- But that's not all of the support we can provide.
You can go to https://docs.squidex.io/ to read more. + But that's not all of the support we can provide.
You can go to https://docs.squidex.io/> to read more.

Do you want to join our community?

- + Join our Forum   - + Join us on Github
diff --git a/src/Squidex/app/features/dashboard/pages/dashboard-page.component.html b/src/Squidex/app/features/dashboard/pages/dashboard-page.component.html index 3d4aa7401..df2613d5e 100644 --- a/src/Squidex/app/features/dashboard/pages/dashboard-page.component.html +++ b/src/Squidex/app/features/dashboard/pages/dashboard-page.component.html @@ -26,13 +26,13 @@ - +
-

API Documentation

+

API Documentation

Swagger compatible documentation for app management. @@ -40,13 +40,13 @@
- +
-

Feedback & Support

+

Feedback & Support

Provide feedback and request features to help us to improve Squidex. @@ -54,13 +54,13 @@
- + @@ -89,7 +89,7 @@ - Optional publication id. Go to https://medium.com/[PUBLICATION]?format=json to fetch the id. + Optional publication id. Go to https://medium.com/[PUBLICATION]?format=json to fetch the id.
diff --git a/src/Squidex/app/features/rules/pages/rules/rule-element.component.html b/src/Squidex/app/features/rules/pages/rules/rule-element.component.html index 84f66d156..6ad970abc 100644 --- a/src/Squidex/app/features/rules/pages/rules/rule-element.component.html +++ b/src/Squidex/app/features/rules/pages/rules/rule-element.component.html @@ -25,7 +25,7 @@ diff --git a/src/Squidex/app/features/rules/pages/rules/rules-page.component.html b/src/Squidex/app/features/rules/pages/rules/rules-page.component.html index ea5003146..0ef0e6c51 100644 --- a/src/Squidex/app/features/rules/pages/rules/rules-page.component.html +++ b/src/Squidex/app/features/rules/pages/rules/rules-page.component.html @@ -89,7 +89,7 @@ - Click the help icon to show a context specific help page. Go to https://docs.squidex.io for the full documentation. + Click the help icon to show a context specific help page. Go to https://docs.squidex.io for the full documentation. diff --git a/src/Squidex/app/features/settings/pages/backups/backups-page.component.html b/src/Squidex/app/features/settings/pages/backups/backups-page.component.html index e1ec5d3f5..af6a1917f 100644 --- a/src/Squidex/app/features/settings/pages/backups/backups-page.component.html +++ b/src/Squidex/app/features/settings/pages/backups/backups-page.component.html @@ -73,8 +73,8 @@
Download: - - Ready + + Ready
diff --git a/src/Squidex/app/features/settings/pages/clients/client.component.html b/src/Squidex/app/features/settings/pages/clients/client.component.html index b5b3c0ab0..44e31cad2 100644 --- a/src/Squidex/app/features/settings/pages/clients/client.component.html +++ b/src/Squidex/app/features/settings/pages/clients/client.component.html @@ -111,7 +111,7 @@

Using the command line interface (CLI)

- Download the CLI here: CLI Releases (Linux, OS X, Windows) + Download the CLI here: CLI Releases (Linux, OS X, Windows)
@@ -129,7 +129,7 @@

Using the C# Client Library

- Get the nuget library from nuget.org + Get the nuget library from nuget.org
diff --git a/src/Squidex/app/features/settings/pages/plans/plans-page.component.html b/src/Squidex/app/features/settings/pages/plans/plans-page.component.html index 6944d2fd0..7345c245e 100644 --- a/src/Squidex/app/features/settings/pages/plans/plans-page.component.html +++ b/src/Squidex/app/features/settings/pages/plans/plans-page.component.html @@ -72,7 +72,7 @@
diff --git a/src/Squidex/app/framework/angular/external-link.directive.ts b/src/Squidex/app/framework/angular/external-link.directive.ts new file mode 100644 index 000000000..e3886f92a --- /dev/null +++ b/src/Squidex/app/framework/angular/external-link.directive.ts @@ -0,0 +1,36 @@ +/* + * Squidex Headless CMS + * + * @license + * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. + */ + +import { AfterViewInit, Directive, ElementRef, Input, Renderer2 } from '@angular/core'; + +@Directive({ + selector: '[sqxExternalLink]' +}) +export class ExternalLinkDirective implements AfterViewInit { + @Input('sqxExternalLink') + public type?: string; + + constructor( + private readonly element: ElementRef, + private readonly renderer: Renderer2 + ) { + } + + public ngAfterViewInit() { + this.renderer.setAttribute(this.element.nativeElement, 'target', '_blank'); + this.renderer.setAttribute(this.element.nativeElement, 'rel', 'noopener'); + + if (this.type !== 'noicon') { + const icon = this.renderer.createElement('i'); + + this.renderer.addClass(icon, 'icon-external-link'); + this.renderer.addClass(icon, 'ml-1'); + + this.renderer.appendChild(this.element.nativeElement, icon); + } + } +} \ No newline at end of file diff --git a/src/Squidex/app/framework/declarations.ts b/src/Squidex/app/framework/declarations.ts index 5c2e813be..016e925aa 100644 --- a/src/Squidex/app/framework/declarations.ts +++ b/src/Squidex/app/framework/declarations.ts @@ -49,6 +49,7 @@ export * from './angular/pipes/numbers.pipes'; export * from './angular/routers/can-deactivate.guard'; export * from './angular/routers/parent-link.directive'; +export * from './angular/external-link.directive'; export * from './angular/hover-background.directive'; export * from './angular/ignore-scrollbar.directive'; export * from './angular/image-source.directive'; diff --git a/src/Squidex/app/framework/module.ts b/src/Squidex/app/framework/module.ts index afaa033b4..baa3fdf9b 100644 --- a/src/Squidex/app/framework/module.ts +++ b/src/Squidex/app/framework/module.ts @@ -21,6 +21,7 @@ import { ConfirmClickDirective, ControlErrorsComponent, CopyDirective, + ExternalLinkDirective, DarkenPipe, DatePipe, DateTimeEditorComponent, @@ -105,6 +106,7 @@ import { DialogRendererComponent, DisplayNamePipe, DurationPipe, + ExternalLinkDirective, FileDropDirective, FileSizePipe, FocusOnInitDirective, @@ -166,6 +168,7 @@ import { DialogRendererComponent, DisplayNamePipe, DurationPipe, + ExternalLinkDirective, FileDropDirective, FileSizePipe, FocusOnInitDirective, diff --git a/src/Squidex/app/shared/components/asset.component.html b/src/Squidex/app/shared/components/asset.component.html index 27a3f9522..5a34b522d 100644 --- a/src/Squidex/app/shared/components/asset.component.html +++ b/src/Squidex/app/shared/components/asset.component.html @@ -17,7 +17,7 @@
- + @@ -115,7 +115,7 @@
diff --git a/src/Squidex/app/shared/components/search-form.component.html b/src/Squidex/app/shared/components/search-form.component.html index 0993ce697..c0c915fbb 100644 --- a/src/Squidex/app/shared/components/search-form.component.html +++ b/src/Squidex/app/shared/components/search-form.component.html @@ -70,7 +70,7 @@
diff --git a/src/Squidex/app/shell/pages/internal/internal-area.component.html b/src/Squidex/app/shell/pages/internal/internal-area.component.html index 6ed21e664..6b10b833c 100644 --- a/src/Squidex/app/shell/pages/internal/internal-area.component.html +++ b/src/Squidex/app/shell/pages/internal/internal-area.component.html @@ -22,7 +22,7 @@ - +