Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
facfb43
phoneApp с помощью innerHtml
olgakuzminagithub Jul 23, 2018
59ac0d7
bootstrap connection with cdn
olgakuzminagithub Jul 24, 2018
96bd641
delete scss bootstrap
olgakuzminagithub Jul 24, 2018
6cd1528
changes on remarks
olgakuzminagithub Jul 26, 2018
2a6572d
add sorting, add page keypad and class Keypad Page
olgakuzminagithub Jul 27, 2018
a45c54b
task 1 for phoneApp
olgakuzminagithub Aug 6, 2018
f286a79
TASK 2 for phoneApp
olgakuzminagithub Aug 7, 2018
1496cec
task 3 start
olgakuzminagithub Aug 7, 2018
3d232cc
add App class and implemented router
olgakuzminagithub Aug 8, 2018
1159985
TASK 2 Загружайте пользователей с сервера при загрузке странице.
olgakuzminagithub Aug 10, 2018
9fc1e18
add-use добавляет пользователя на сервер
olgakuzminagithub Aug 10, 2018
8571826
использование fetch для четния и записи пользователей
olgakuzminagithub Aug 14, 2018
410b746
changes from Oleg
olgakuzminagithub Aug 14, 2018
dc925ef
help please: в файле contact.js Строка 19 выполняеться раньше чем 11 …
olgakuzminagithub Aug 19, 2018
8b2ab9b
add search and some Oleh change
olgakuzminagithub Aug 21, 2018
bb33288
phoneApp/js/app.js
olgakuzminagithub Aug 21, 2018
c290b50
functions getState, setState, the switchRouter is rendered in a separ…
olgakuzminagithub Aug 23, 2018
a639868
added a click to the user
olgakuzminagithub Aug 27, 2018
58b8850
added the ability to edit and delete user
olgakuzminagithub Aug 27, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions js-core/classworks/classwork-19/match.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const add = (a,b) => {
return a + b;
};


module.exports = {
add
}
7 changes: 7 additions & 0 deletions js-core/classworks/classwork-19/node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const {add} = require('./match');

// const add = (a,b) => {
// return a + b
// };

console.log(add(1,2));
15 changes: 15 additions & 0 deletions js-core/classworks/classwork-19/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const http = require('http');
const fs = require('fs');

http
.createServer ((request, response) => {
const index = fs.readFileSync('./index.html');
response.end(index);
if (fs.readFileSync(`.${request.url}`)) {
const file = fs.readFileSync(`.${request.url}`);
response.end(file);
}
})
.listen(3000, err => {
console.log('server started http://localhost:3000')
});
14 changes: 14 additions & 0 deletions js-core/classworks/classwork-22/src/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(function() {

const initialState = [
'learn JavaScript',
'learn MVC',
'reed book'
];

const model = new Model(initialState);
const view = new View(initialState);
const controller = new Controller(model, view);

})();

1 change: 1 addition & 0 deletions js-core/classworks/classwork-22/src/controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function Controller (view, model) {}
6 changes: 6 additions & 0 deletions js-core/classworks/classwork-22/src/model.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Model {
constructor (initialState) {
this.data = initialState;
}

}
7 changes: 7 additions & 0 deletions js-core/classworks/classwork-22/src/view.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class View {

constructor (initialState) {
this.data = initialState;
}

}
Loading