Skip to content

Commit

Permalink
rename the module "entity" to "orm"
Browse files Browse the repository at this point in the history
  • Loading branch information
Maometos committed Mar 15, 2024
1 parent 2e2bc87 commit 58f1561
Show file tree
Hide file tree
Showing 26 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SetupModule } from './setup/setup.module';
import { SystemModule } from './system/system.module';
import { ConsoleModule } from './console/console.module';
import { WebModule } from './web/web.module';
import { EntityModule } from './entity/entity.module';
import { OrmModule } from './orm/orm.module';
import { SecurityModule } from './security/security.module';

import { AppComponent } from './app.component';
Expand All @@ -28,7 +28,7 @@ import { DocsComponent } from './docs/docs.component';
SystemModule,
ConsoleModule,
WebModule,
EntityModule,
OrmModule,
SecurityModule,
AppRoutingModule,
SharedModule
Expand Down
2 changes: 1 addition & 1 deletion src/app/docs/docs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h5 class="card-title">Security</h5>
<div class="card-body">
<h5 class="card-title">ORM</h5>
<p class="card-text mb-0">Manipulating the database using the object relational mapper</p>
<a class="card-link stretched-link" routerLink="/docs/entity"></a>
<a class="card-link stretched-link" routerLink="/docs/orm"></a>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h4>Reversing all migrations</h4>
<nav class="no-print" aria-label="Page navigation">
<ul class="nav-page">
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/relationships">
<a class="nav-page-link" routerLink="/docs/orm/relationships">
<i class="chevron left"></i> Previous
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
import hljs from 'highlight.js/lib/common';

@Component({
selector: 'entity-migrations',
selector: 'orm-migrations',
templateUrl: './migrations.component.html',
styleUrls: ['./migrations.component.css']
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import { RelationshipsComponent } from './relationships/relationships.component'
import { MigrationsComponent } from './migrations/migrations.component';

const routes: Routes = [
{ path: 'docs/entity/start', component: StartComponent },
{ path: 'docs/entity/query', component: QueryComponent },
{ path: 'docs/entity/save', component: SaveComponent },
{ path: 'docs/entity/relationships', component: RelationshipsComponent },
{ path: 'docs/entity/migrations', component: MigrationsComponent },
{ path: 'docs/entity', redirectTo: 'docs/entity/start', pathMatch: 'full' }
{ path: 'docs/orm/start', component: StartComponent },
{ path: 'docs/orm/query', component: QueryComponent },
{ path: 'docs/orm/save', component: SaveComponent },
{ path: 'docs/orm/relationships', component: RelationshipsComponent },
{ path: 'docs/orm/migrations', component: MigrationsComponent },
{ path: 'docs/orm', redirectTo: 'docs/orm/start', pathMatch: 'full' }
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class EntityRoutingModule { }
export class OrmRoutingModule { }
6 changes: 3 additions & 3 deletions src/app/entity/entity.module.ts → src/app/orm/orm.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { EntityRoutingModule } from './entity-routing.module';
import { OrmRoutingModule } from './orm-routing.module';
import { SharedModule } from '../shared/shared.module';
import { StartComponent } from './start/start.component';
import { QueryComponent } from './query/query.component';
Expand All @@ -18,8 +18,8 @@ import { MigrationsComponent } from './migrations/migrations.component';
],
imports: [
CommonModule,
EntityRoutingModule,
OrmRoutingModule,
SharedModule
]
})
export class EntityModule { }
export class OrmModule { }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ <h4>Complex Query</h4>
<nav class="no-print" aria-label="Page navigation">
<ul class="nav-page">
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/start">
<a class="nav-page-link" routerLink="/docs/orm/start">
<i class="chevron left"></i> Previous
</a>
</li>
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/save">
<a class="nav-page-link" routerLink="/docs/orm/save">
Next <i class="chevron right"></i>
</a>
</li>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
import hljs from 'highlight.js/lib/common';

@Component({
selector: 'entity-query',
selector: 'orm-query',
templateUrl: './query.component.html',
styleUrls: ['./query.component.css']
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ <h3>Many to Many</h3>
<nav class="no-print" aria-label="Page navigation">
<ul class="nav-page">
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/save">
<a class="nav-page-link" routerLink="/docs/orm/save">
<i class="chevron left"></i> Previous
</a>
</li>
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/migrations">
<a class="nav-page-link" routerLink="/docs/orm/migrations">
Next <i class="chevron right"></i>
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
import hljs from 'highlight.js/lib/common';

@Component({
selector: 'entity-relationships',
selector: 'orm-relationships',
templateUrl: './relationships.component.html',
styleUrls: ['./relationships.component.css']
})
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ <h3>Multiple Operations</h3>
<nav class="no-print" aria-label="Page navigation">
<ul class="nav-page">
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/query">
<a class="nav-page-link" routerLink="/docs/orm/query">
<i class="chevron left"></i> Previous
</a>
</li>
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/relationships">
<a class="nav-page-link" routerLink="/docs/orm/relationships">
Next <i class="chevron right"></i>
</a>
</li>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
import hljs from 'highlight.js/lib/common';

@Component({
selector: 'entity-save',
selector: 'orm-save',
templateUrl: './save.component.html',
styleUrls: ['./save.component.css']
})
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h3>Registering the EntityContext</h3>
</a>
</li>
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/query">
<a class="nav-page-link" routerLink="/docs/orm/query">
Next <i class="chevron right"></i>
</a>
</li>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
import hljs from 'highlight.js/lib/common';

@Component({
selector: 'entity-start',
selector: 'orm-start',
templateUrl: './start.component.html',
styleUrls: ['./start.component.css']
})
Expand Down
2 changes: 1 addition & 1 deletion src/app/security/antiforgery/antiforgery.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ <h3>X-XSRF-TOKEN</h3>
</a>
</li>
<li class="nav-page-item">
<a class="nav-page-link" routerLink="/docs/entity/start">
<a class="nav-page-link" routerLink="/docs/orm/start">
Next <i class="chevron right"></i>
</a>
</li>
Expand Down
10 changes: 5 additions & 5 deletions src/app/shared/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
</button>
<div class="collapse" id="entity-collapse" data-bs-parent="#menu" routerLinkActive="show">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/entity/start" routerLinkActive="fw-bold">Get Started</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/entity/query" routerLinkActive="fw-bold">Query Data</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/entity/save" routerLinkActive="fw-bold">Save Data</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/entity/relationships" routerLinkActive="fw-bold">Relationships</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/entity/migrations" routerLinkActive="fw-bold">Migrations</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/orm/start" routerLinkActive="fw-bold">Get Started</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/orm/query" routerLinkActive="fw-bold">Query Data</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/orm/save" routerLinkActive="fw-bold">Save Data</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/orm/relationships" routerLinkActive="fw-bold">Relationships</a></li>
<li><a class="link-dark d-inline-flex text-decoration-none rounded" routerLink="/docs/orm/migrations" routerLinkActive="fw-bold">Migrations</a></li>
</ul>
</div>
</li>
Expand Down

0 comments on commit 58f1561

Please sign in to comment.