Browse Source

Order for asset metadata.

pull/711/head
Sebastian Stehle 5 years ago
parent
commit
724d47c88a
  1. 3
      backend/src/Squidex.Domain.Apps.Entities/Assets/DomainObject/AssetCommandMiddleware.cs
  2. 2
      backend/src/Squidex.Domain.Apps.Entities/Assets/IAssetMetadataSource.cs
  3. 29
      frontend/app/theme/_static.scss

3
backend/src/Squidex.Domain.Apps.Entities/Assets/DomainObject/AssetCommandMiddleware.cs

@ -6,6 +6,7 @@
// ========================================================================== // ==========================================================================
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Threading.Tasks; using System.Threading.Tasks;
using Orleans; using Orleans;
@ -41,7 +42,7 @@ namespace Squidex.Domain.Apps.Entities.Assets.DomainObject
this.assetEnricher = assetEnricher; this.assetEnricher = assetEnricher;
this.assetFileStore = assetFileStore; this.assetFileStore = assetFileStore;
this.assetMetadataSources = assetMetadataSources; this.assetMetadataSources = assetMetadataSources.OrderBy(x => x.Order).ToList();
this.assetQuery = assetQuery; this.assetQuery = assetQuery;
this.contextProvider = contextProvider; this.contextProvider = contextProvider;
} }

2
backend/src/Squidex.Domain.Apps.Entities/Assets/IAssetMetadataSource.cs

@ -13,6 +13,8 @@ namespace Squidex.Domain.Apps.Entities.Assets
{ {
public interface IAssetMetadataSource public interface IAssetMetadataSource
{ {
int Order => 0;
Task EnhanceAsync(UploadAssetCommand command); Task EnhanceAsync(UploadAssetCommand command);
IEnumerable<string> Format(IAssetEntity asset); IEnumerable<string> Format(IAssetEntity asset);

29
frontend/app/theme/_static.scss

@ -12,13 +12,31 @@ noscript {
margin-bottom: 20px; margin-bottom: 20px;
} }
@media (max-width: 550px) {
.profile {
background-color: $color-white;
}
.profile-card {
border: 0;
}
.profile-card-body {
padding: 0;
}
.profile-footer {
border: 0;
}
}
// //
// Profile element // Profile element
// //
.profile { .profile {
& { &-container {
margin: 0 auto; margin: 0 auto;
max-width: 20rem; max-width: 45rem;
padding: 1rem 2rem; padding: 1rem 2rem;
} }
@ -33,10 +51,6 @@ noscript {
height: 1.75rem; height: 1.75rem;
} }
&-lg {
max-width: 40rem;
}
&-password-signup { &-password-signup {
color: $color-text-decent; color: $color-text-decent;
} }
@ -107,8 +121,6 @@ noscript {
.external { .external {
&-button { &-button {
line-height: 1.8rem; line-height: 1.8rem;
text-align: left;
text-transform: none;
} }
&-button-small { &-button-small {
@ -122,7 +134,6 @@ noscript {
display: inline-block; display: inline-block;
font-size: 1.1rem; font-size: 1.1rem;
font-weight: normal; font-weight: normal;
height: 20px;
vertical-align: middle; vertical-align: middle;
width: 1.6rem; width: 1.6rem;
} }

Loading…
Cancel
Save