diff --git a/api/methods.py b/api/methods.py index 2fa5e76..6ab064f 100644 --- a/api/methods.py +++ b/api/methods.py @@ -1,6 +1,8 @@ +# ----------------------------------------- # THIS FILE HAS BEEN GENERATED # DO NOT EDIT MANUALLY +# ----------------------------------------- from db import dbGetMany, dbGetOne diff --git a/api/openapi.yaml b/api/openapi.yaml index 0e0e54e..8f1691a 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,3 +1,10 @@ + +# ----------------------------------------- +# THIS FILE HAS BEEN GENERATED +# DO NOT EDIT MANUALLY +# ----------------------------------------- + + openapi: 3.0.0 info: title: hv2-api diff --git a/api/openapi.yaml.tmpl b/api/openapi.yaml.tmpl index 8c64809..c0bba55 100644 --- a/api/openapi.yaml.tmpl +++ b/api/openapi.yaml.tmpl @@ -1,3 +1,5 @@ +$GENERATED_YAML_COMMENT + openapi: 3.0.0 info: title: hv2-api diff --git a/generate.py b/generate.py index c8042ad..b323c12 100644 --- a/generate.py +++ b/generate.py @@ -43,12 +43,28 @@ for table in schema["tables"]: table["selectors"] = [ y["name"] for y in sorted([ x for x in columns if "selector" in x ], key=lambda x: x["selector"])] schema["GENERATED_SQL_COMMENT"] = """ --- THIS FILE HAS BEEN GENERATED +-- ---------------------------------------- +-- THIS FILE HAS BEEN GENERATED -- DO NOT EDIT MANUALLY +-- ---------------------------------------- """ schema["GENERATED_PYTHON_COMMENT"] = """ +# ----------------------------------------- # THIS FILE HAS BEEN GENERATED # DO NOT EDIT MANUALLY +# ----------------------------------------- +""" +schema["GENERATED_YAML_COMMENT"] = """ +# ----------------------------------------- +# THIS FILE HAS BEEN GENERATED +# DO NOT EDIT MANUALLY +# ----------------------------------------- +""" +schema["GENERATED_TS_COMMENT"] = """ +// ----------------------------------------- +// THIS FILE HAS BEEN GENERATED +// DO NOT EDIT MANUALLY +// ----------------------------------------- """ for f in glob.glob(args.template, recursive=True): diff --git a/schema/create.sql b/schema/create.sql index 38ab6d5..74722b7 100644 --- a/schema/create.sql +++ b/schema/create.sql @@ -1,3 +1,10 @@ + +-- ---------------------------------------- +-- THIS FILE HAS BEEN GENERATED +-- DO NOT EDIT MANUALLY +-- ---------------------------------------- + + CREATE TABLE account_t ( id serial not null primary key ,description varchar(128) not null diff --git a/ui/hv2-ui/src/app/app.module.ts b/ui/hv2-ui/src/app/app.module.ts index 4769a2a..d9c876c 100644 --- a/ui/hv2-ui/src/app/app.module.ts +++ b/ui/hv2-ui/src/app/app.module.ts @@ -21,6 +21,7 @@ import { LogoutComponent } from './logout/logout.component'; import { LoginComponent } from './login/login.component'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MatInputModule } from '@angular/material/input'; +import { MyTenantsComponent } from './my-tenants/my-tenants.component'; @NgModule({ @@ -30,7 +31,8 @@ import { MatInputModule } from '@angular/material/input'; MessagesComponent, TestOutputComponent, LogoutComponent, - LoginComponent + LoginComponent, + MyTenantsComponent ], imports: [ BrowserModule, diff --git a/ui/hv2-ui/src/app/data-object-service.ts b/ui/hv2-ui/src/app/data-object-service.ts index 1bf5f14..33e4646 100644 --- a/ui/hv2-ui/src/app/data-object-service.ts +++ b/ui/hv2-ui/src/app/data-object-service.ts @@ -1,3 +1,11 @@ + +// ----------------------------------------- +// THIS FILE HAS BEEN GENERATED +// DO NOT EDIT MANUALLY +// ----------------------------------------- + + + import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { HttpClient, HttpHeaders } from '@angular/common/http'; diff --git a/ui/hv2-ui/src/app/data-object-service.ts.tmpl b/ui/hv2-ui/src/app/data-object-service.ts.tmpl index 19b7a92..177e2bb 100644 --- a/ui/hv2-ui/src/app/data-object-service.ts.tmpl +++ b/ui/hv2-ui/src/app/data-object-service.ts.tmpl @@ -1,3 +1,6 @@ +$GENERATED_TS_COMMENT + + import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { HttpClient, HttpHeaders } from '@angular/common/http'; diff --git a/ui/hv2-ui/src/app/data-objects.ts b/ui/hv2-ui/src/app/data-objects.ts index 3d1a28d..127001c 100644 --- a/ui/hv2-ui/src/app/data-objects.ts +++ b/ui/hv2-ui/src/app/data-objects.ts @@ -1,4 +1,11 @@ +// ----------------------------------------- +// THIS FILE HAS BEEN GENERATED +// DO NOT EDIT MANUALLY +// ----------------------------------------- + + + export interface Account { description: string } diff --git a/ui/hv2-ui/src/app/data-objects.ts.tmpl b/ui/hv2-ui/src/app/data-objects.ts.tmpl index f7437f5..62db0cf 100644 --- a/ui/hv2-ui/src/app/data-objects.ts.tmpl +++ b/ui/hv2-ui/src/app/data-objects.ts.tmpl @@ -1,3 +1,5 @@ +$GENERATED_TS_COMMENT + #from generateHelper import JsNameConverter #for $table in $tables