mirror of https://github.com/Squidex/squidex.git
21 changed files with 193 additions and 31 deletions
@ -0,0 +1,26 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
namespace Squidex.Areas.Api.Controllers.News |
|||
{ |
|||
public sealed class MyNewsOptions |
|||
{ |
|||
public string AppName { get; set; } |
|||
|
|||
public string ClientId { get; set; } |
|||
|
|||
public string ClientSecret { get; set; } |
|||
|
|||
public bool IsConfigured() |
|||
{ |
|||
return |
|||
!string.IsNullOrWhiteSpace(AppName) && |
|||
!string.IsNullOrWhiteSpace(ClientId) && |
|||
!string.IsNullOrWhiteSpace(ClientSecret); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
<sqx-modal-dialog large="true"> |
|||
<ng-container title> |
|||
New Features |
|||
</ng-container> |
|||
|
|||
<ng-container content> |
|||
<div class="help"> |
|||
<h1>What's new?</h1> |
|||
|
|||
<div *ngFor="let feature of features"> |
|||
<h4>{{feature.name}}</h4> |
|||
|
|||
<div [innerHTML]="feature.text | sqxHelpMarkdown"></div> |
|||
</div> |
|||
</div> |
|||
</ng-container> |
|||
</sqx-modal-dialog> |
|||
@ -0,0 +1,16 @@ |
|||
@import '_vars'; |
|||
@import '_mixins'; |
|||
|
|||
:host /deep/ { |
|||
img { |
|||
@include box-shadow(0, 4px, 20px, .2); |
|||
width: 80%; |
|||
margin: 0 auto; |
|||
margin-top: 10px; |
|||
display: block; |
|||
} |
|||
|
|||
p { |
|||
margin-bottom: 1.5rem; |
|||
} |
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
/* |
|||
* Squidex Headless CMS |
|||
* |
|||
* @license |
|||
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. |
|||
*/ |
|||
|
|||
import { Component, EventEmitter, Input, Output } from '@angular/core'; |
|||
|
|||
import { FeatureDto } from '@app/shared'; |
|||
|
|||
@Component({ |
|||
selector: 'sqx-news-dialog', |
|||
styleUrls: ['./news-dialog.component.scss'], |
|||
templateUrl: './news-dialog.component.html' |
|||
}) |
|||
export class NewsDialogComponent { |
|||
@Input() |
|||
public features: FeatureDto[]; |
|||
|
|||
@Output() |
|||
public closed = new EventEmitter(); |
|||
|
|||
public close() { |
|||
this.closed.emit(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue