-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDBR-2.4: Добавить страницу настроек профиля (#24)
* LDBR-2.12: Перевести проект на Flux-архитектуру. * LDBR-2.12: Исправить actions & actionTypes, добавить каналы в EventBus, подробнее раскрыть Dispatcher, убрать use strict, переименовать переменные в Router и починить историю, изменить алгоритм инициализирующего запроса, вынести в константу неизменяемые параметры запросов Network. * LDBR-2.12: Переименовать действие init в fetchUser. * LDBR-2.12: Исправить NotFoundView, исправить logout, исправить замечания из PR, исправить структуру папок actions. * LDBR-2.12: Исправить адреса на адреса деплоя. * LDBR-2.12: Исправить .eslintrc.json * LDBR-2.12: Исправить порт в server.js * LDBR-2.12: Исправить Dispatcher, исправить EventBus. * LDBR-2.12: Исправить Dispatcher, исправить EventBus. * LDBR-2.12: Обновить версию eslint. * LDBR-2.12: Исправить getContext. * LDBR-2.1: Дополнить README (#21) * LDBR-2.1: Дополнить README.md: внести структуру каталогов, внести кодстайл, внести инструкцию к командам. * LDBR-2.1: Убрать файлы из README.md * LDBR-2.13: Рефакторинг страницы входа (#20) * LDBR-2.13: Исправить дизайн страницы входа, добавить шрифты на сервер, обновить стили. * LDBR-2.13: Вынести валидацию в хранилище, добавить сохранение валидного ввода, перевести все картинки в формат .webp. * LDBR-2.13: Заменить .png на .webp в Navbar'е. * LDBR-2.13: Исправить цвета в css, удалить метод __isOpened, убрать валидацию из view, исправить setContext, исправить payload. * LDBR-2.14: Рефакторинг страницы регистрации (#22) * LDBR-2.12: Исправить getContext. * LDBR-2.14: Исправить страницу регистрации, изменить дизайн интерфейса. * LDBR-2.14: Исправить валидацию: разделить на две формы. Исправить замечания в ПР. * LDBR-2.13: Убрать мошенничество в jsdoc, поправить уезжающий контейнер логина. * LDBR-2.4: Добавить страницу профиля с обновлением настроек. * LDBR-2.4: Добавить страницу профиля с обновлением настроек. * LDBR-2.4: Исправить network, исправить валидацию, исправить превью. * LDBR-2.4: Убрать debugging-вывод в консоль. * LDBR-2.4: Добавить возможность смены пароля, добавить контрольный ввод старого пароля. * LDBR-2.4: Исправить SettingsStore. * LDBR-2.4: Исправить SettingsStore - element. * LDBR-2.4: Исправить сравнения в странице настроек. * LDBR-2.4: Обновить в соответствии с main. * LDBR-2.4: Починить отображение полей в шаблоне.
- Loading branch information
Showing
20 changed files
with
885 additions
and
40 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
|
@@ -23,5 +23,3 @@ export const boardsActions = { | |
}); | ||
}, | ||
}; | ||
|
||
export default boardsActions; |
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,55 @@ | ||
'use strict'; | ||
|
||
// Modules | ||
import Dispatcher from '../modules/Dispatcher/Dispatcher.js'; | ||
|
||
/** | ||
* Константа, содержащая в себе типы действий для настроек. | ||
*/ | ||
export const SettingsActionTypes = { | ||
SETTINGS_GET: 'settings/get', | ||
SETTINGS_UPDATE: 'settings/put', | ||
AVATAR_UPLOAD: 'avatar/post', | ||
}; | ||
|
||
/** | ||
* Константа, содержащая в себе действия, связанные с настройками. | ||
*/ | ||
export const settingsActions = { | ||
/** | ||
* Действие: запрос актуальных настроек пользователя. | ||
* @param {String} userName | ||
*/ | ||
getSettings(userName) { | ||
Dispatcher.dispatch({ | ||
actionName: SettingsActionTypes.SETTINGS_GET, | ||
data: { | ||
userName: userName, | ||
}, | ||
}); | ||
}, | ||
|
||
/** | ||
* Действие: обновление настроек пользователя. | ||
* @param {FormData} data | ||
*/ | ||
putSettings(data) { | ||
Dispatcher.dispatch({ | ||
actionName: SettingsActionTypes.SETTINGS_UPDATE, | ||
data: data, | ||
}); | ||
}, | ||
|
||
/** | ||
* Действие: загрузка новой аватарки пользователя. | ||
* @param {File|String} avatar аватар (файл или ссылка на блоб) | ||
*/ | ||
uploadAvatar(avatar) { | ||
Dispatcher.dispatch({ | ||
actionName: SettingsActionTypes.AVATAR_UPLOAD, | ||
data: { | ||
avatar: avatar, | ||
}, | ||
}); | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -71,5 +71,3 @@ export const userActions = { | |
}, | ||
|
||
}; | ||
|
||
export default userActions; |
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,5 +1,5 @@ | ||
<footer id="footer-main"> | ||
<div class="footer"> | ||
<p class="footer__text">TestRello, 2021</p> | ||
<p class="footer__text">Brrrello, 2021</p> | ||
</div> | ||
</footer> |
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
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
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
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
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
Oops, something went wrong.