Skip to content

Commit 5132cbf

Browse files
author
Balashov Nikita
committed
CONTACT_PAGE & KEYPAD_PAGE --global-refactoring
1 parent 40d2252 commit 5132cbf

File tree

13 files changed

+964
-0
lines changed

13 files changed

+964
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
phone-book/node_modules
2+
phone-book/img
3+
phone-book/package-lock.json
4+
15
# Logs
26
logs
37
*.log
@@ -62,3 +66,4 @@ typings/
6266

6367
# IDE
6468
.idea
69+

phone-book/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package-lock.json
2+
img

phone-book/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"git.ignoreLimitWarning": true
3+
}

phone-book/build/bundle.js

Lines changed: 125 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phone-book/img/icon.ico

166 KB
Binary file not shown.

phone-book/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>Phone Book</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<link rel="stylesheet" href="style/main.css">
9+
<link rel="stylesheet" href="style/keypad.css">
10+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
11+
</head>
12+
<body>
13+
<div id="mountMode"></div>
14+
15+
<script src="build/bundle.js"></script>
16+
<script defer="" src="https://use.fontawesome.com/releases/v5.1.1/js/all.js" integrity="sha384-BtvRZcyfv4r0x/phJt9Y9HhnN5ur1Z+kZbKVgzVBAlQZX4jvAuImlIz+bG7TS00a" crossorigin="anonymous"></script>
17+
</body>
18+
</html>

phone-book/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "phone-book",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"presets": ["env"],
7+
"scripts": {
8+
"test": "echo \"Error: no test specified\" && exit 1",
9+
"dev": "webpack --mode development",
10+
"build": "webpack --mode production"
11+
},
12+
"keywords": [],
13+
"author": "",
14+
"license": "ISC",
15+
"devDependencies": {
16+
"babel-core": "^6.26.3",
17+
"babel-loader": "^7.1.5",
18+
"babel-preset-env": "^1.7.0",
19+
"webpack": "^4.16.3",
20+
"webpack-cli": "^3.1.0"
21+
}
22+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const MOBILE_OPERATORS_IDENTIFICATORS = {
2+
kuivstar: [
3+
'067',
4+
'096',
5+
'097',
6+
'098',
7+
'068'
8+
],
9+
vodafone: [
10+
'050',
11+
'066',
12+
'095',
13+
'099'
14+
],
15+
life: [
16+
'063',
17+
'093',
18+
'073'
19+
]
20+
};
21+
22+
23+
export {
24+
MOBILE_OPERATORS_IDENTIFICATORS
25+
};

phone-book/src/components/users.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
const users = [
2+
{
3+
firstName: 'Ivan',
4+
lastName: 'Ivanov',
5+
6+
},
7+
{
8+
firstName: 'German',
9+
lastName: 'Smith',
10+
11+
},
12+
{
13+
firstName: 'Kvas',
14+
lastName: 'Petrov',
15+
16+
},
17+
{
18+
firstName: 'Kvas',
19+
lastName: 'Taras',
20+
21+
},
22+
{
23+
firstName: 'Kavo',
24+
lastName: 'Ivanov',
25+
26+
},
27+
{
28+
firstName: 'Lada',
29+
lastName: 'Sedan',
30+
31+
},
32+
{
33+
firstName: 'Lada',
34+
lastName: 'Priora',
35+
36+
},
37+
{
38+
firstName: 'Orange',
39+
lastName: 'Juice',
40+
41+
},
42+
{
43+
firstName: 'Arbuz',
44+
lastName: 'Leto',
45+
46+
},
47+
{
48+
firstName: 'Dunya',
49+
lastName: 'Fall',
50+
51+
},
52+
{
53+
firstName: 'Fellow',
54+
lastName: 'Ship',
55+
56+
}
57+
];
58+
59+
export {users};

0 commit comments

Comments
 (0)