Skip to content

Commit

Permalink
feat: refactoring routes, formtemplates, schema definitions etc. (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasepe authored Mar 4, 2024
1 parent 5581368 commit 7137149
Show file tree
Hide file tree
Showing 44 changed files with 615 additions and 1,316 deletions.
301 changes: 100 additions & 201 deletions README.md

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions apis/apis.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package apis

import (
formdefinitionsv1alpha1 "github.com/krateoplatformops/krateo-bff/apis/core/formdefinitions/v1alpha1"
cardtemplatesv1alpha1 "github.com/krateoplatformops/krateo-bff/apis/ui/cardtemplates/v1alpha1"
columnsv1alpha1 "github.com/krateoplatformops/krateo-bff/apis/ui/columns/v1alpha1"
formtemplatesv1alpha1 "github.com/krateoplatformops/krateo-bff/apis/ui/formtemplates/v1alpha1"
Expand All @@ -23,6 +22,5 @@ func init() {
columnsv1alpha1.SchemeBuilder.AddToScheme,
rowsv1alpha1.SchemeBuilder.AddToScheme,
formtemplatesv1alpha1.SchemeBuilder.AddToScheme,
formdefinitionsv1alpha1.SchemeBuilder.AddToScheme,
)
}
37 changes: 0 additions & 37 deletions apis/core/formdefinitions/v1alpha1/group_version_info.go

This file was deleted.

25 changes: 0 additions & 25 deletions apis/core/formdefinitions/v1alpha1/managed.go

This file was deleted.

12 changes: 0 additions & 12 deletions apis/core/formdefinitions/v1alpha1/managed_list.go

This file was deleted.

72 changes: 0 additions & 72 deletions apis/core/formdefinitions/v1alpha1/types.go

This file was deleted.

137 changes: 0 additions & 137 deletions apis/core/formdefinitions/v1alpha1/zz_generated.deepcopy.go

This file was deleted.

14 changes: 1 addition & 13 deletions apis/ui/formtemplates/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@ func (di *DataItem) String() string {
}

type FormTemplateSpec struct {
// DefinitionRef: reference to FormDefintion
DefinitionRef *core.Reference `json:"definitionRef"`

// ResourceRef: reference to resource instance
ResourceRef *core.Reference `json:"resourceRef"`

// +optional
Data []*DataItem `json:"data,omitempty"`

// APIList list of api calls.
// +optional
APIList []*core.API `json:"api,omitempty"`
SchemaDefinitionRef *core.Reference `json:"schemaDefinitionRef"`
}

type FormTemplateStatusContent struct {
Expand Down Expand Up @@ -61,7 +50,6 @@ type FormTemplate struct {

// +kubebuilder:object:root=true

// FormTemplateList contains a list of FormTemplate
type FormTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Expand Down
31 changes: 2 additions & 29 deletions apis/ui/formtemplates/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7137149

Please sign in to comment.