-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавление sa-router-spa из предыдущего задания
- Loading branch information
1 parent
079e5d0
commit 7839deb
Showing
8 changed files
with
168 additions
and
50 deletions.
There are no files selected for viewing
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,31 @@ | ||
#!/bin/sh | ||
if [ -z "$husky_skip_init" ]; then | ||
debug () { | ||
if [ "$HUSKY_DEBUG" = "1" ]; then | ||
echo "husky (debug) - $1" | ||
fi | ||
} | ||
|
||
readonly hook_name="$(basename "$0")" | ||
debug "starting $hook_name..." | ||
|
||
if [ "$HUSKY" = "0" ]; then | ||
debug "HUSKY env variable is set to 0, skipping hook" | ||
exit 0 | ||
fi | ||
|
||
if [ -f ~/.huskyrc ]; then | ||
debug "sourcing ~/.huskyrc" | ||
. ~/.huskyrc | ||
fi | ||
|
||
export readonly husky_skip_init=1 | ||
sh -e "$0" "$@" | ||
exitCode="$?" | ||
|
||
if [ $exitCode != 0 ]; then | ||
echo "husky - $hook_name hook exited with code $exitCode (error)" | ||
fi | ||
|
||
exit $exitCode | ||
fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export function getHistoryList() { | ||
const historyString = localStorage.getItem("history"); | ||
if (historyString !== null && historyString.length > 0) { | ||
return historyString.split(" "); | ||
return historyString.split(";"); | ||
} | ||
return []; | ||
} | ||
|
||
export function setHistorySet(list) { | ||
localStorage.setItem("history", list.join(" ")); | ||
localStorage.setItem("history", list.join(";")); | ||
} |
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,42 @@ | ||
import oopsImg from "./assets/oops.png"; | ||
|
||
export const mainTemplate = ` | ||
<div> | ||
<div class="info-block"> | ||
<form id="weatherForm" class="form-block"> | ||
<input id="userInput" class="form-input" placeholder="Type city and press enter" required autofocus> | ||
</form> | ||
<div id="weather"> | ||
<img id="map" | ||
src="${oopsImg}" | ||
alt="Couldn't get image of map"></img> | ||
</div> | ||
<div id="info"> | ||
<span>Wait for city name</span> | ||
</div> | ||
</div> | ||
<div id="history" class="history-block"> | ||
<span>History:</span> | ||
</div> | ||
</div> | ||
<div class="bottom"> | ||
<a href="/about">About</a> | ||
</div> | ||
`; | ||
|
||
export const aboutTemplate = ` | ||
<div align="center"> | ||
<h3>Приложение "Прогноз погоды"</h3> | ||
<p> | ||
Выполнение домашнего задания для лекции "Современный инструментарий при разработке клиентских (и не только | ||
приложений)" | ||
</p> | ||
<h2>О проекте</h2> | ||
<p>Приложение "Прогноз погоды" это Web приложение разработанное на языке JavaScript. Оно предназначено для | ||
просмотра текущей погоды в конкретном городе.</p> | ||
<p>Приложение показывает текущую температуру в градусах цельсия и общее состоянии погоды, обозначенное иконкой.</p> | ||
<p>Так же приложение отображает компактную картинку с картой выбранного города.</p> | ||
<a href="/">Main<a> | ||
</div> | ||
`; |
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