Browse Source

Small spelling error.

pull/1/head
Sebastian 10 years ago
parent
commit
8501db36b9
  1. 4
      src/Squidex/Controllers/ContentApi/Generator/SchemasSwaggerGenerator.cs
  2. 2
      src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html
  3. 2
      src/Squidex/app/features/schemas/pages/schemas/schema-form.component.ts
  4. 2
      src/Squidex/app/shared/components/app-form.component.html
  5. 3
      src/Squidex/app/shared/components/app-form.component.ts

4
src/Squidex/Controllers/ContentApi/Generator/SchemasSwaggerGenerator.cs

@ -165,7 +165,7 @@ namespace Squidex.Controllers.ContentApi.Generator
private void GenerateSchemasOperations(IEnumerable<ISchemaEntityWithSchema> schemas) private void GenerateSchemasOperations(IEnumerable<ISchemaEntityWithSchema> schemas)
{ {
foreach (var schema in schemas.Select(x => x.Schema)) foreach (var schema in schemas.Where(x => x.IsPublished).Select(x => x.Schema))
{ {
GenerateSchemaOperations(schema); GenerateSchemaOperations(schema);
} }
@ -310,7 +310,7 @@ namespace Squidex.Controllers.ContentApi.Generator
if (entityName != null) if (entityName != null)
{ {
operation.AddPathParameter("id", JsonObjectType.String, $"The id of the {entityName} (GUID)."); operation.AddPathParameter("id", JsonObjectType.String, $"The id of the {entityName} content (GUID).");
operation.AddResponse("404", $"App, schema or {entityName} content not found."); operation.AddResponse("404", $"App, schema or {entityName} content not found.");
} }

2
src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html

@ -13,7 +13,7 @@
<input type="text" class="form-control" id="schema-name" formControlName="name" sqxFocusOnInit /> <input type="text" class="form-control" id="schema-name" formControlName="name" sqxFocusOnInit />
<span class="form-hint"> <span class="form-hint">
The schema name becomes part of the api url,<br /> e.g https://{{appName}}.squidex.io/<b>{{schemaName | async}}</b>/. The schema name becomes part of the api url,<br /> e.g {{apiUrl.buildUrl("api/content/")}}{{appName}}/<b>{{schemaName | async}}</b>/.
</span> </span>
<span class="form-hint"> <span class="form-hint">
It must contain lower case letters (a-z), numbers and dashes only, and cannot be longer than 40 characters. The name cannot be changed later. It must contain lower case letters (a-z), numbers and dashes only, and cannot be longer than 40 characters. The name cannot be changed later.

2
src/Squidex/app/features/schemas/pages/schemas/schema-form.component.ts

@ -10,6 +10,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { import {
ApiUrlConfig,
AuthService, AuthService,
CreateSchemaDto, CreateSchemaDto,
DateTime, DateTime,
@ -56,6 +57,7 @@ export class SchemaFormComponent {
.merge(this.createForm.get('name').valueChanges.map(n => n || FALLBACK_NAME)); .merge(this.createForm.get('name').valueChanges.map(n => n || FALLBACK_NAME));
constructor( constructor(
public readonly apiUrl: ApiUrlConfig,
private readonly schemas: SchemasService, private readonly schemas: SchemasService,
private readonly formBuilder: FormBuilder, private readonly formBuilder: FormBuilder,
private readonly authService: AuthService private readonly authService: AuthService

2
src/Squidex/app/shared/components/app-form.component.html

@ -13,7 +13,7 @@
<input type="text" class="form-control" id="app-name" formControlName="name" /> <input type="text" class="form-control" id="app-name" formControlName="name" />
<span class="form-hint"> <span class="form-hint">
The app name becomes part of the api url,<br /> e.g https://<b>{{appName | async}}</b>.squidex.io/. The app name becomes part of the api url,<br /> e.g {{apiUrl.buildUrl("api/content/")}}<b>{{appName | async}}</b>.squidex.io/.
</span> </span>
<span class="form-hint"> <span class="form-hint">

3
src/Squidex/app/shared/components/app-form.component.ts

@ -9,7 +9,7 @@ import { Component, EventEmitter, Output } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { ValidatorsEx } from 'framework'; import { ApiUrlConfig, ValidatorsEx } from 'framework';
import { AppsStoreService } from './../services/apps-store.service'; import { AppsStoreService } from './../services/apps-store.service';
import { AppDto, CreateAppDto } from './../services/apps.service'; import { AppDto, CreateAppDto } from './../services/apps.service';
@ -45,6 +45,7 @@ export class AppFormComponent {
.merge(this.createForm.get('name').valueChanges.map(n => n || FALLBACK_NAME)); .merge(this.createForm.get('name').valueChanges.map(n => n || FALLBACK_NAME));
constructor( constructor(
public readonly apiUrl: ApiUrlConfig,
private readonly appsStore: AppsStoreService, private readonly appsStore: AppsStoreService,
private readonly formBuilder: FormBuilder private readonly formBuilder: FormBuilder
) { ) {

Loading…
Cancel
Save