Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3bdf505
Реализован дизайн и функционал сайта погоды.
rodionbgd Oct 10, 2021
8651445
Добавлен скрипт для gh-pages.
rodionbgd Oct 10, 2021
6ba7ed0
Убрано указание протокола при загрузке внешних скриптов.
rodionbgd Oct 10, 2021
d3348f0
Добавлен адаптивный дизайн.
rodionbgd Oct 31, 2021
d86c6af
Изменение опций определения местоположения
rodionbgd Dec 26, 2021
2ac68d2
Семантическое именование файлов
rodionbgd Dec 26, 2021
ce4f424
Приложение переведено на TypeScript
rodionbgd Dec 26, 2021
da95785
Использование Redux
rodionbgd Jan 5, 2022
c50814a
Реализована мобильная версия "Прогноза погоды"
rodionbgd Jan 23, 2022
314fec7
Мелкие правки
rodionbgd Jan 23, 2022
b71f0e3
Правка скрипта линтера
rodionbgd Jan 23, 2022
8ef003f
Реализована Desktop-версия приложения
rodionbgd Jan 25, 2022
5f25eb9
Добавлена навигация с History API
rodionbgd Jan 26, 2022
2a05040
Мелкие правки
rodionbgd Jan 26, 2022
6c51041
Линтинг
rodionbgd Jan 26, 2022
0260542
Рефакторинг
rodionbgd Jan 29, 2022
79264bd
Корректное удаление локации
rodionbgd Jan 29, 2022
2621018
Мелкие правки
rodionbgd Feb 1, 2022
1636df0
Рефакторинг
rodionbgd Feb 4, 2022
64a65a5
feat(pwa): Реализовано PWA с возможностью установки приложения
rodionbgd Feb 6, 2022
4c4457d
feat: Добавлен скролл ежедневной погоды
rodionbgd Feb 7, 2022
de3e672
changelog update
rodionbgd Feb 7, 2022
9d7a0b6
refactor: Линтинг
rodionbgd Feb 8, 2022
f79dc9b
changelog update
rodionbgd Feb 8, 2022
9bc308f
fix: Типизация google.maps
rodionbgd Feb 8, 2022
78ed81f
changelog update
rodionbgd Feb 8, 2022
80e92de
fix: Убрана возможность установки приложения из меню
rodionbgd Feb 10, 2022
a6109b8
fix: window.self заменен на self
rodionbgd Feb 10, 2022
a63f751
fix: Обновлен .eslintrc.js
rodionbgd Feb 10, 2022
ab34e85
chore: Добавлена анимация для описания в README.MD
rodionbgd Feb 10, 2022
030902c
Добавлен readme
rodionbgd Feb 10, 2022
4dcde5a
Обновлен readme
rodionbgd Feb 10, 2022
c2a465a
chore: Правка README.MD
rodionbgd Feb 10, 2022
af9d656
Update README.md
rodionbgd Feb 10, 2022
d3b2424
fix: Корректный рендеринг при изменении местоположения
rodionbgd Feb 13, 2022
4bb2a1a
changelog update
rodionbgd Feb 13, 2022
a4a5670
fix: Убран лишний импорт в webpack.config.js
rodionbgd Feb 13, 2022
0bdb110
chore: Changelog update
rodionbgd Feb 13, 2022
fdf8e2f
chore: Changelog update
rodionbgd Feb 13, 2022
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/*
dist/*
55 changes: 55 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = {
env: {
browser: true,
es2021: true,
"jest/globals": true,
},
extends: ["airbnb-base", "prettier", "plugin:jest/recommended"],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
overrides: [
{
files: ["src/*.ts", "src/*.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
},
plugins: ["@typescript-eslint/eslint-plugin"],
rules: {
"import/extensions": [
"error",
"ignorePackages",
{
ts: "never",
js: "never",
},
],
"max-len": [
"error",
{
ignoreComments: true,
code: 120,
},
],
"no-unused-vars": "off",
"no-undef" : "off",
"no-restricted-globals":"off",

"import/no-unresolved": "off",
"import/no-mutable-exports": "off",

camelcase: "off",
},
},
],
settings: {
"import/resolver": {
node: {
extensions: [".ts", ".js"],
},
},
},
plugins: ["jest"],
};
27 changes: 27 additions & 0 deletions .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to GithubPages

on:
push:
branches:
- weather_widget

jobs:
deploy-to-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install and Build
run: |
npm install
npm run build

- name: Deploy
# https://github.com/marketplace/actions/deploy-to-github-pages
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
17 changes: 17 additions & 0 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Sanity Check

on: pull_request

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Packages
run: |
npm install
- name: Lint check
run: |
npm run lint
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.idea
.DS_STORE
.eslintcache
*.swp
Comment thread
rodionbgd marked this conversation as resolved.
node_modules/
coverage/
dist/

41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

#### [1.0.4](https://github.com/rodionbgd/weather/compare/1.0.3...1.0.4)

> 13 February 2022

- fix: Корректный рендеринг при изменении местоположения [`d3b2424`](https://github.com/rodionbgd/weather/commit/d3b24240a40d305df8303f426afe37be42b319dd)
- Добавлен readme [`030902c`](https://github.com/rodionbgd/weather/commit/030902c1284a8b2f97f633860a46cca3d876d5f1)
- fix: window.self заменен на self [`a6109b8`](https://github.com/rodionbgd/weather/commit/a6109b8392cbd06ab75f7b69c7c7dd9f46e28a54)

#### [1.0.3](https://github.com/rodionbgd/weather/compare/1.0.2...1.0.3)

> 8 February 2022

- fix: Типизация google.maps [`9bc308f`](https://github.com/rodionbgd/weather/commit/9bc308f2e2cbf06c2eda6f6e2a6cb419d4fdd33a)
- refactor: Линтинг [`9d7a0b6`](https://github.com/rodionbgd/weather/commit/9d7a0b61ffed56ed2b786d2a0b481c7ccb580591)
- changelog update [`f79dc9b`](https://github.com/rodionbgd/weather/commit/f79dc9bf28664f6e5d450b4174080a365af291f5)

#### [1.0.2](https://github.com/rodionbgd/weather/compare/1.0.1...1.0.2)

> 7 February 2022

- feat: Добавлен скролл ежедневной погоды [`4c4457d`](https://github.com/rodionbgd/weather/commit/4c4457dbb240978c58143dee806956ed06deb5aa)

#### [1.0.1](https://github.com/rodionbgd/weather/compare/1.0.0...1.0.1)

> 6 February 2022

- Реализована мобильная версия "Прогноза погоды" [`c50814a`](https://github.com/rodionbgd/weather/commit/c50814a230d1905692a6225f8a3de115230bb36c)
- Реализована Desktop-версия приложения [`8ef003f`](https://github.com/rodionbgd/weather/commit/8ef003fd7f0b3270d5945ec9fc4b945cb66cd042)
- Рефакторинг [`0260542`](https://github.com/rodionbgd/weather/commit/0260542eaa01aa5e657b3a3d5d9301ce5e83346c)

#### 1.0.0

> 10 October 2021

- Реализован дизайн и функционал сайта погоды. [`3bdf505`](https://github.com/rodionbgd/weather/commit/3bdf50572830e8914ed766b5a5fbf47ba531dc1b)
- Убрано указание протокола при загрузке внешних скриптов. [`6ba7ed0`](https://github.com/rodionbgd/weather/commit/6ba7ed02e69758458ea9fbbec4b10d463617a569)
- Добавлен скрипт для gh-pages. [`8651445`](https://github.com/rodionbgd/weather/commit/865144555387d387b4bb5506e9a1f63821375673)
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<h1 align=center>
Weather Forecast
<br>
<img width=150 src="https://img.icons8.com/doodle/512/000000/apple-weather.png" alt=""/>
<br>
</h1>

<h3 align=center>A typescript Weather Forecast app with awesome UI</h3>
<div align="center">
<span > <img width=179 src="readme/main_frame.gif" alt=""/></span>
<span > <img width=300 src="readme/hour_daily.gif" alt=""/></span>
<span > <img width=432 src="readme/sum_moon.gif" alt=""/></span>
</div>

# Basic Overview
Weather Forecast app has never been so easy to use. It's quick and full of features.

Forecastle
- forecast now
- hourly forecast
- daily forecast

Great features
- The weather channel: temperature, wind, humidity, atmosphere pressure, real feel and uv-index
- Animated weather conditions with live background images
- Daily weather chart with max/min temperature
- Detailed local forecast & weather forecast worldwide
- Sun and moon animated phases


# Support
Please [open an issue](https://github.com/rodionbgd/weather/issues) for support or even more [open a pull request](https://github.com/rodionbgd/weather/pulls).



# License
This project is open source. Enjoy using it.


# Contacts
Don't hesitate to ask me whatever you want. Stay tuned for more awesome projects :smile:. Follow me or Connect me via <a href="https://t.me/rodionbgd">Telegram</a>.
14 changes: 14 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = (api) => ({
presets: [
[
"@babel/preset-env",
{
targets: api.caller((caller) => caller && caller.target === "node")
? { node: "current" }
: { chrome: "58", ie: "11" },
},
],
"@babel/preset-typescript",
],
plugins: ["@babel/plugin-transform-runtime"],
});
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
clearMocks: true,
collectCoverage: true,
coverageProvider: "v8",
testEnvironment: "jsdom",
moduleNameMapper: {
"\\.(scss|css)$": "identity-obj-proxy",
},
transformIgnorePatterns: ["node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"],
};
Loading