Skip to content

Commit 2bf7f87

Browse files
committed
Idealizerr only Front part
1 parent 664448f commit 2bf7f87

429 files changed

Lines changed: 45136 additions & 9 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.

.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Deployer sample hosts file
4+
# deploy/hosts.yml
5+
6+
# design
7+
/idelizerr.sketch
8+
9+
# compiled output
10+
/dist
11+
/tmp
12+
/out-tsc
13+
# Only exists if Bazel was run
14+
/bazel-out
15+
16+
# dependencies
17+
/node_modules
18+
19+
# profiling files
20+
chrome-profiler-events.json
21+
speed-measure-plugin.json
22+
23+
# IDEs and editors
24+
/.idea
25+
.project
26+
.classpath
27+
.c9/
28+
*.launch
29+
.settings/
30+
*.sublime-workspace
31+
32+
# IDE - VSCode
33+
.vscode/*
34+
!.vscode/settings.json
35+
!.vscode/tasks.json
36+
!.vscode/launch.json
37+
!.vscode/extensions.json
38+
.history/*
39+
40+
# misc
41+
/.sass-cache
42+
/connect.lock
43+
/coverage
44+
/libpeerconnection.log
45+
npm-debug.log
46+
yarn-error.log
47+
testem.log
48+
/typings
49+
50+
# System Files
51+
.DS_Store
52+
Thumbs.db
53+
dist.zip
54+
# Env files
55+
# /src/environments/*
56+
# !/src/environments/environment.example.ts
57+
# !/src/environments/variables.ts

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
# Idealizerr
2-
* [Prod: project.com](https://project.com)
3-
* [Dev: beta.project.com](https://project.com)
4-
* [Invision](https://project.com)
5-
* [Sketch](https://project.com)
6-
* Version: [1.0.0](https://project.com)
7-
* Front-end dev: [Emil Alisgandarov](https://project.com)(+994 70 750 00 52) (emilaliinfo@gmail.com)
8-
* Back-end dev: [---](https://project.com)
9-
* Company: [Company](https://project.com)
1+
102

113
# Used languages
124
* HTML

angular.json

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"idealizer-angular": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {
12+
"@schematics/angular:component": {
13+
"style": "scss"
14+
}
15+
},
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:browser",
19+
"options": {
20+
"outputPath": "dist/idealizer-angular",
21+
"index": "src/index.html",
22+
"main": "src/main.ts",
23+
"polyfills": "src/polyfills.ts",
24+
"tsConfig": "src/tsconfig.app.json",
25+
"assets": [
26+
"src/favicon.ico",
27+
"src/assets"
28+
],
29+
"styles": [
30+
"src/styles.scss",
31+
"node_modules/bootstrap/dist/css/bootstrap-grid.min.css",
32+
"node_modules/slick-carousel/slick/slick.css",
33+
"node_modules/aos/dist/aos.css",
34+
"node_modules/flipclock/dist/flipclock.css",
35+
"node_modules/air-datepicker/dist/css/datepicker.min.css"
36+
],
37+
"scripts": [
38+
"node_modules/jquery/dist/jquery.min.js",
39+
"node_modules/slick-carousel/slick/slick.min.js",
40+
"node_modules/aos/dist/aos.js",
41+
"node_modules/flipclock/dist/flipclock.min.js",
42+
"node_modules/air-datepicker/dist/js/datepicker.min.js"
43+
],
44+
"es5BrowserSupport": true
45+
},
46+
"configurations": {
47+
"production": {
48+
"fileReplacements": [
49+
{
50+
"replace": "src/environments/environment.ts",
51+
"with": "src/environments/environment.prod.ts"
52+
}
53+
],
54+
"optimization": true,
55+
"outputHashing": "all",
56+
"sourceMap": false,
57+
"extractCss": true,
58+
"namedChunks": false,
59+
"aot": true,
60+
"extractLicenses": true,
61+
"vendorChunk": false,
62+
"buildOptimizer": true,
63+
"budgets": [
64+
{
65+
"type": "initial",
66+
"maximumWarning": "2mb",
67+
"maximumError": "5mb"
68+
}
69+
]
70+
}
71+
}
72+
},
73+
"serve": {
74+
"builder": "@angular-devkit/build-angular:dev-server",
75+
"options": {
76+
"browserTarget": "idealizer-angular:build"
77+
},
78+
"configurations": {
79+
"production": {
80+
"browserTarget": "idealizer-angular:build:production"
81+
}
82+
}
83+
},
84+
"extract-i18n": {
85+
"builder": "@angular-devkit/build-angular:extract-i18n",
86+
"options": {
87+
"browserTarget": "idealizer-angular:build"
88+
}
89+
},
90+
"test": {
91+
"builder": "@angular-devkit/build-angular:karma",
92+
"options": {
93+
"main": "src/test.ts",
94+
"polyfills": "src/polyfills.ts",
95+
"tsConfig": "src/tsconfig.spec.json",
96+
"karmaConfig": "src/karma.conf.js",
97+
"styles": [
98+
"src/styles.scss"
99+
],
100+
"scripts": [],
101+
"assets": [
102+
"src/favicon.ico",
103+
"src/assets"
104+
]
105+
}
106+
},
107+
"lint": {
108+
"builder": "@angular-devkit/build-angular:tslint",
109+
"options": {
110+
"tsConfig": [
111+
"src/tsconfig.app.json",
112+
"src/tsconfig.spec.json"
113+
],
114+
"exclude": [
115+
"**/node_modules/**"
116+
]
117+
}
118+
}
119+
}
120+
},
121+
"idealizer-angular-e2e": {
122+
"root": "e2e/",
123+
"projectType": "application",
124+
"prefix": "",
125+
"architect": {
126+
"e2e": {
127+
"builder": "@angular-devkit/build-angular:protractor",
128+
"options": {
129+
"protractorConfig": "e2e/protractor.conf.js",
130+
"devServerTarget": "idealizer-angular:serve"
131+
},
132+
"configurations": {
133+
"production": {
134+
"devServerTarget": "idealizer-angular:serve:production"
135+
}
136+
}
137+
},
138+
"lint": {
139+
"builder": "@angular-devkit/build-angular:tslint",
140+
"options": {
141+
"tsConfig": "e2e/tsconfig.e2e.json",
142+
"exclude": [
143+
"**/node_modules/**"
144+
]
145+
}
146+
}
147+
}
148+
}
149+
},
150+
"defaultProject": "idealizer-angular"
151+
}

e2e/protractor.conf.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Protractor configuration file, see link for more information
2+
// https://github.com/angular/protractor/blob/master/lib/config.ts
3+
4+
const { SpecReporter } = require('jasmine-spec-reporter');
5+
6+
exports.config = {
7+
allScriptsTimeout: 11000,
8+
specs: [
9+
'./src/**/*.e2e-spec.ts'
10+
],
11+
capabilities: {
12+
'browserName': 'chrome'
13+
},
14+
directConnect: true,
15+
baseUrl: 'http://localhost:4200/',
16+
framework: 'jasmine',
17+
jasmineNodeOpts: {
18+
showColors: true,
19+
defaultTimeoutInterval: 30000,
20+
print: function() {}
21+
},
22+
onPrepare() {
23+
require('ts-node').register({
24+
project: require('path').join(__dirname, './tsconfig.e2e.json')
25+
});
26+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
27+
}
28+
};

e2e/src/app.e2e-spec.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { AppPage } from './app.po';
2+
import { browser, logging } from 'protractor';
3+
4+
describe('workspace-project App', () => {
5+
let page: AppPage;
6+
7+
beforeEach(() => {
8+
page = new AppPage();
9+
});
10+
11+
it('should display welcome message', () => {
12+
page.navigateTo();
13+
expect(page.getTitleText()).toEqual('Welcome to idealizer-angular!');
14+
});
15+
16+
afterEach(async () => {
17+
// Assert that there are no errors emitted from the browser
18+
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19+
expect(logs).not.toContain(jasmine.objectContaining({
20+
level: logging.Level.SEVERE,
21+
} as logging.Entry));
22+
});
23+
});

e2e/src/app.po.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { browser, by, element } from 'protractor';
2+
3+
export class AppPage {
4+
navigateTo() {
5+
return browser.get(browser.baseUrl) as Promise<any>;
6+
}
7+
8+
getTitleText() {
9+
return element(by.css('app-root h1')).getText() as Promise<string>;
10+
}
11+
}

e2e/tsconfig.e2e.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/app",
5+
"module": "commonjs",
6+
"target": "es5",
7+
"types": [
8+
"jasmine",
9+
"jasminewd2",
10+
"node"
11+
]
12+
}
13+
}

0 commit comments

Comments
 (0)