Skip to content

Commit 5536f19

Browse files
committed
Initalised
1 parent 39c99b3 commit 5536f19

86 files changed

Lines changed: 1703 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"rules": {
8+
"@angular-eslint/directive-selector": [
9+
"error",
10+
{
11+
"type": "attribute",
12+
"prefix": "shivBullApp",
13+
"style": "camelCase"
14+
}
15+
],
16+
"@angular-eslint/component-selector": [
17+
"error",
18+
{
19+
"type": "element",
20+
"prefix": "shiv-bull-app",
21+
"style": "kebab-case"
22+
}
23+
]
24+
},
25+
"extends": [
26+
"plugin:@nrwl/nx/angular",
27+
"plugin:@angular-eslint/template/process-inline-templates"
28+
]
29+
},
30+
{
31+
"files": ["*.html"],
32+
"extends": ["plugin:@nrwl/nx/angular-template"],
33+
"rules": {}
34+
}
35+
]
36+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'shiv-bull-clone',
4+
preset: '../../jest.preset.js',
5+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6+
globals: {
7+
'ts-jest': {
8+
tsconfig: '<rootDir>/tsconfig.spec.json',
9+
stringifyContentPathRegex: '\\.(html|svg)$',
10+
},
11+
},
12+
coverageDirectory: '../../coverage/apps/shiv-bull-clone',
13+
transform: {
14+
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
15+
},
16+
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17+
snapshotSerializers: [
18+
'jest-preset-angular/build/serializers/no-ng-attributes',
19+
'jest-preset-angular/build/serializers/ng-snapshot',
20+
'jest-preset-angular/build/serializers/html-comment',
21+
],
22+
};

apps/shiv-bull-clone/project.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"name": "shiv-bull-clone",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "application",
5+
"sourceRoot": "apps/shiv-bull-clone/src",
6+
"prefix": "shiv-bull-app",
7+
"targets": {
8+
"build": {
9+
"executor": "@angular-devkit/build-angular:browser",
10+
"outputs": ["{options.outputPath}"],
11+
"options": {
12+
"outputPath": "dist/apps/shiv-bull-clone",
13+
"index": "apps/shiv-bull-clone/src/index.html",
14+
"main": "apps/shiv-bull-clone/src/main.ts",
15+
"polyfills": ["zone.js"],
16+
"tsConfig": "apps/shiv-bull-clone/tsconfig.app.json",
17+
"inlineStyleLanguage": "scss",
18+
"assets": [
19+
"apps/shiv-bull-clone/src/favicon.ico",
20+
"apps/shiv-bull-clone/src/assets"
21+
],
22+
"styles": ["apps/shiv-bull-clone/src/styles.scss"],
23+
"scripts": []
24+
},
25+
"configurations": {
26+
"production": {
27+
"budgets": [
28+
{
29+
"type": "initial",
30+
"maximumWarning": "500kb",
31+
"maximumError": "1mb"
32+
},
33+
{
34+
"type": "anyComponentStyle",
35+
"maximumWarning": "2kb",
36+
"maximumError": "4kb"
37+
}
38+
],
39+
"outputHashing": "all"
40+
},
41+
"development": {
42+
"buildOptimizer": false,
43+
"optimization": false,
44+
"vendorChunk": true,
45+
"extractLicenses": false,
46+
"sourceMap": true,
47+
"namedChunks": true
48+
}
49+
},
50+
"defaultConfiguration": "production"
51+
},
52+
"serve": {
53+
"executor": "@angular-devkit/build-angular:dev-server",
54+
"configurations": {
55+
"production": {
56+
"browserTarget": "shiv-bull-clone:build:production"
57+
},
58+
"development": {
59+
"browserTarget": "shiv-bull-clone:build:development"
60+
}
61+
},
62+
"defaultConfiguration": "development",
63+
"options": {
64+
"port": 5555,
65+
"host": "0.0.0.0"
66+
}
67+
},
68+
"extract-i18n": {
69+
"executor": "@angular-devkit/build-angular:extract-i18n",
70+
"options": {
71+
"browserTarget": "shiv-bull-clone:build"
72+
}
73+
},
74+
"lint": {
75+
"executor": "@nrwl/linter:eslint",
76+
"outputs": ["{options.outputFile}"],
77+
"options": {
78+
"lintFilePatterns": [
79+
"apps/shiv-bull-clone/**/*.ts",
80+
"apps/shiv-bull-clone/**/*.html"
81+
]
82+
}
83+
},
84+
"test": {
85+
"executor": "@nrwl/jest:jest",
86+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
87+
"options": {
88+
"jestConfig": "apps/shiv-bull-clone/jest.config.ts",
89+
"passWithNoTests": true
90+
},
91+
"configurations": {
92+
"ci": {
93+
"ci": true,
94+
"codeCoverage": true
95+
}
96+
}
97+
}
98+
},
99+
"tags": []
100+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<div class="flex w-full justify-center text-16px pb-6">
2+
<div class="flex flex-col w-[90%] px-4 mb-4">
3+
<div class="header text-center font-bold text-[28px]">
4+
<h2 class="text-[var(--primary-dark)]">ABOUT US</h2>
5+
</div>
6+
<div *ngFor="let item of data"
7+
class="welcome philosopher mb-[10px] p-6 border-[var(--primary-dark)] rounded-[8px] border-2 bg-[var(--header-bg)]"
8+
>
9+
<h2 class="text-[24px] border-b-[1px] border-[#bc9039]">
10+
{{item.tittle}}
11+
</h2>
12+
<hr class="w-[15%] max-w-[90px] border-[#bc9039] border-b-[2px] mb-6" />
13+
<p *ngFor="let para of item.content" class="pb-1 mb-1">
14+
{{para}}
15+
16+
</p>
17+
</div>
18+
19+
</div>
20+
</div>

apps/shiv-bull-clone/src/app/about/about.component.scss

Whitespace-only changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { AboutComponent } from './about.component';
4+
5+
describe('AboutComponent', () => {
6+
let component: AboutComponent;
7+
let fixture: ComponentFixture<AboutComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
imports: [AboutComponent],
12+
}).compileComponents();
13+
14+
fixture = TestBed.createComponent(AboutComponent);
15+
component = fixture.componentInstance;
16+
fixture.detectChanges();
17+
});
18+
19+
it('should create', () => {
20+
expect(component).toBeTruthy();
21+
});
22+
});
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { NgFor } from '@angular/common';
2+
import { Component } from '@angular/core';
3+
4+
interface comments {
5+
tittle: string;
6+
content: string[];
7+
}
8+
9+
@Component({
10+
selector: 'shiv-bull-app-about',
11+
standalone: true,
12+
imports: [NgFor],
13+
templateUrl: './about.component.html',
14+
styleUrls: ['./about.component.scss'],
15+
})
16+
export class AboutComponent {
17+
data: comments[] = [
18+
{
19+
tittle: 'WELCOME TO SHIV BULLION',
20+
content: [
21+
'Located in the beautiful city of Rajkot, SHIV BULLION is one of the biggest bullion dealers in the city. SHIV BULLION is also a direct importer of precious metals. It is a fast-growing organization with an excellent track record and reputation with suppliers all over the region and in the industry. ',
22+
],
23+
},
24+
{
25+
tittle: 'STRENGTH',
26+
content: [
27+
'We believe delivery on time and transparent trade policies have made it possible to achieve a prominent place in the industry over the years.',
28+
'We have been focusing mainly on purity and commitment. The company’s continuous desire to serve its customers in the best possible way makes it the best among the rest. We’ve developed immense customer faith and value through our excellent service and high-quality products. We strive hard for constant development to enhance our customer service, and the long-term bond that we share with our customers has helped us reach new heights.',
29+
'Our young, dynamic and qualified operation team delivers impeccable service to the clients. These factors drive our organization to succeed and have drawn hundreds of prestigious customers to put immense trust and faith in our business.',
30+
],
31+
},
32+
{
33+
tittle: 'VISION',
34+
content: [
35+
'Our company has vision of expanding its presence very soon in the refinery segment with the brand name SHIV BULLION. In order to serve you better and reach a wider network, we have focused to launch our outlets all over the region. ',
36+
],
37+
},
38+
{
39+
tittle: 'MANAGEMENT TEAM',
40+
content: [
41+
'Jaydeep Bhai – (Founder & Owner)',
42+
'SHIV BULLION was founded by Jaydeep Bhai, who has been in this business for many years. The blend of his passion and experience in the Gold & Silver industry gave birth to the organization. ',
43+
],
44+
},
45+
];
46+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="main-div">
2+
<router-outlet></router-outlet>
3+
</div>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.main-div {
2+
background-image: url('../assets/images/backgroundimage_of_shivbullion.jpg');
3+
width: 100%;
4+
height: 100vh;
5+
overflow: auto;
6+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { TestBed } from '@angular/core/testing';
2+
import { AppComponent } from './app.component';
3+
import { NxWelcomeComponent } from './nx-welcome.component';
4+
import { RouterTestingModule } from '@angular/router/testing';
5+
6+
describe('AppComponent', () => {
7+
beforeEach(async () => {
8+
await TestBed.configureTestingModule({
9+
imports: [AppComponent, NxWelcomeComponent, RouterTestingModule],
10+
}).compileComponents();
11+
});
12+
13+
it('should create the app', () => {
14+
const fixture = TestBed.createComponent(AppComponent);
15+
const app = fixture.componentInstance;
16+
expect(app).toBeTruthy();
17+
});
18+
19+
it(`should have as title 'shiv-bull-clone'`, () => {
20+
const fixture = TestBed.createComponent(AppComponent);
21+
const app = fixture.componentInstance;
22+
expect(app.title).toEqual('shiv-bull-clone');
23+
});
24+
25+
it('should render title', () => {
26+
const fixture = TestBed.createComponent(AppComponent);
27+
fixture.detectChanges();
28+
const compiled = fixture.nativeElement as HTMLElement;
29+
expect(compiled.querySelector('h1')?.textContent).toContain(
30+
'Welcome shiv-bull-clone'
31+
);
32+
});
33+
});

0 commit comments

Comments
 (0)