-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Documentation of Cloning Boilerplate
- Loading branch information
Showing
19 changed files
with
301 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
<nb-layout> | ||
<nb-layout-header fixed class="border-basic-bottom"> | ||
<div class="header-wrapper"> | ||
|
1 change: 1 addition & 0 deletions
1
.../app/docs/guide/components/backend-integration-doc/backend-integration-doc.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>backend-integration-doc works!</p> |
Empty file.
22 changes: 22 additions & 0 deletions
22
...p/docs/guide/components/backend-integration-doc/backend-integration-doc.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import {BackendIntegrationDocComponent} from './backend-integration-doc.component'; | ||
|
||
describe('BackendIntegrationDocComponent', () => { | ||
let component: BackendIntegrationDocComponent; | ||
let fixture: ComponentFixture<BackendIntegrationDocComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [BackendIntegrationDocComponent], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(BackendIntegrationDocComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
8 changes: 8 additions & 0 deletions
8
...rc/app/docs/guide/components/backend-integration-doc/backend-integration-doc.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-backend-integration-doc', | ||
templateUrl: './backend-integration-doc.component.html', | ||
styleUrls: ['./backend-integration-doc.component.scss'], | ||
}) | ||
export class BackendIntegrationDocComponent {} |
51 changes: 51 additions & 0 deletions
51
.../src/app/docs/guide/components/clone-boilerplate-doc/clone-boilerplate-doc.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.section { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.section-title { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.explore { | ||
a { | ||
color: #19a5ff; | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
.cli-wrapper { | ||
margin-top: 5px; | ||
margin-bottom: 5px; | ||
.cli { | ||
color: #fff; | ||
font-family: monospace; | ||
align-items: baseline; | ||
border-radius: 2px; | ||
white-space: pre-wrap; | ||
.cli-header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
background: #676767; | ||
padding: 1px 10px; | ||
border-top-left-radius: 5px; | ||
border-top-right-radius: 5px; | ||
|
||
h5 { | ||
margin: 0; | ||
font-size: 0.8rem; | ||
} | ||
} | ||
.cli-content { | ||
background: black; | ||
border-bottom-left-radius: 5px; | ||
border-bottom-right-radius: 5px; | ||
text-align: left; | ||
padding: 15px 5px; | ||
pre { | ||
margin: 0; | ||
display: inline-block !important; | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...c/app/docs/guide/components/clone-boilerplate-doc/clone-boilerplate-doc.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import {CloneBoilerplateDocComponent} from './clone-boilerplate-doc.component'; | ||
|
||
describe('CloneBoilerplateDocComponent', () => { | ||
let component: CloneBoilerplateDocComponent; | ||
let fixture: ComponentFixture<CloneBoilerplateDocComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [CloneBoilerplateDocComponent], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(CloneBoilerplateDocComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
26 changes: 26 additions & 0 deletions
26
...cs/src/app/docs/guide/components/clone-boilerplate-doc/clone-boilerplate-doc.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-clone-boilerplate-doc', | ||
templateUrl: './clone-boilerplate-doc.component.html', | ||
styleUrls: ['./clone-boilerplate-doc.component.scss'], | ||
}) | ||
export class CloneBoilerplateDocComponent { | ||
yourDataList: object[] = [ | ||
{ | ||
lable: 'Navigate to Desired Directory:', | ||
listData: 'cd path/to/your/directory', | ||
}, | ||
{ | ||
lable: 'Clone the Repository:', | ||
listData: 'git clone https://github.com/sourcefuse/angular-boilerplate', | ||
}, | ||
{ | ||
lable: 'Navigate into the Cloned Directory', | ||
listData: 'cd your-boilerplate-project-name', | ||
}, | ||
]; | ||
addItem(newItem: object) { | ||
this.yourDataList.push(newItem); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
projects/arc-docs/src/app/docs/guide/guide-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {RouterModule, Routes} from '@angular/router'; | ||
import {BackendIntegrationDocComponent} from './components/backend-integration-doc/backend-integration-doc.component'; | ||
import {CloneBoilerplateDocComponent} from './components/clone-boilerplate-doc/clone-boilerplate-doc.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
redirectTo: 'clone', | ||
pathMatch: 'full', | ||
}, | ||
{ | ||
path: 'clone', | ||
component: CloneBoilerplateDocComponent, | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule], | ||
}) | ||
export class GuideRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
|
||
import {GuideRoutingModule} from './guide-routing.module'; | ||
import {CloneBoilerplateDocComponent} from './components/clone-boilerplate-doc/clone-boilerplate-doc.component'; | ||
import {BackendIntegrationDocComponent} from './components/backend-integration-doc/backend-integration-doc.component'; | ||
import {ThemeModule} from '@project-lib/theme/theme.module'; | ||
import {CliWrapperComponent} from '@project-lib/components/cli-wrapper/cli-wrapper.component'; | ||
|
||
@NgModule({ | ||
declarations: [CloneBoilerplateDocComponent, BackendIntegrationDocComponent], | ||
imports: [CommonModule, GuideRoutingModule, ThemeModule, CliWrapperComponent], | ||
}) | ||
export class GuideModule {} |
13 changes: 13 additions & 0 deletions
13
projects/arc-lib/src/lib/components/cli-wrapper/cli-wrapper.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
<div class="cli-wrapper"> | ||
<div class="cli"> | ||
<div class="cli-header"> | ||
<h5>bash</h5> | ||
</div> | ||
<div class="cli-content"> | ||
<code> | ||
<code>{{ command }}</code> | ||
</code> | ||
</div> | ||
</div> | ||
</div> |
36 changes: 36 additions & 0 deletions
36
projects/arc-lib/src/lib/components/cli-wrapper/cli-wrapper.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.cli-wrapper { | ||
margin-top: 5px; | ||
margin-bottom: 5px; | ||
.cli { | ||
color: #fff; | ||
font-family: monospace; | ||
align-items: baseline; | ||
border-radius: 2px; | ||
white-space: pre-wrap; | ||
.cli-header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
background: #676767; | ||
padding: 1px 10px; | ||
border-top-left-radius: 5px; | ||
border-top-right-radius: 5px; | ||
|
||
h5 { | ||
margin: 0; | ||
font-size: 0.8rem; | ||
} | ||
} | ||
.cli-content { | ||
background: black; | ||
border-bottom-left-radius: 5px; | ||
border-bottom-right-radius: 5px; | ||
text-align: left; | ||
padding: 15px 5px; | ||
pre { | ||
margin: 0; | ||
display: inline-block !important; | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
projects/arc-lib/src/lib/components/cli-wrapper/cli-wrapper.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {Component, Input} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
|
||
@Component({ | ||
selector: 'lib-cli-wrapper', | ||
standalone: true, | ||
imports: [CommonModule], | ||
templateUrl: './cli-wrapper.component.html', | ||
styleUrls: ['./cli-wrapper.component.scss'], | ||
}) | ||
export class CliWrapperComponent { | ||
@Input() command: string; // Define an input property to receive command data | ||
} |
18 changes: 18 additions & 0 deletions
18
projects/arc-lib/src/lib/components/header /header.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="nav-container"> | ||
<div class="header-container"> | ||
<div class="logo-container"> | ||
<nb-icon | ||
icon="menu-outline" | ||
class="cursor-pointer menu-icon" | ||
(click)="toggle()" | ||
></nb-icon> | ||
<a | ||
class="logo" | ||
href="javascript:void(0)" | ||
(click)="navigateHome('/main/home')" | ||
> | ||
<img src="../../assets/images/home/ARC_logo.png" alt="logo" /> | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
31 changes: 31 additions & 0 deletions
31
projects/arc-lib/src/lib/components/header /header.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@use 'sass:map'; | ||
@use '../../theme/styles/variables' as *; | ||
@use '../.././../../../arc/src/styles.scss' as *; | ||
@use '../../theme/styles/mixins' as *; | ||
|
||
.nav-container { | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100% !important; | ||
} | ||
|
||
.logo-container { | ||
display: flex; | ||
align-items: center; | ||
width: calc(#{nb-theme(sidebar-width)} - #{nb-theme(header-padding)}); | ||
user-select: none; | ||
} | ||
|
||
nb-action { | ||
height: auto; | ||
display: flex; | ||
align-content: center; | ||
} | ||
|
||
nb-user { | ||
cursor: pointer; | ||
} | ||
|
||
.hi { | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
margin-bottom: 10px; | ||
} | ||
} | ||
} | ||
} | ||
.row { | ||
width: 100%; | ||
display: flex; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters