-
Notifications
You must be signed in to change notification settings - Fork 0
Реализация приложения "Прогноз погоды" #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rodionbgd
wants to merge
39
commits into
master
Choose a base branch
from
weather_widget
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
3bdf505
Реализован дизайн и функционал сайта погоды.
rodionbgd 8651445
Добавлен скрипт для gh-pages.
rodionbgd 6ba7ed0
Убрано указание протокола при загрузке внешних скриптов.
rodionbgd d3348f0
Добавлен адаптивный дизайн.
rodionbgd d86c6af
Изменение опций определения местоположения
rodionbgd 2ac68d2
Семантическое именование файлов
rodionbgd ce4f424
Приложение переведено на TypeScript
rodionbgd da95785
Использование Redux
rodionbgd c50814a
Реализована мобильная версия "Прогноза погоды"
rodionbgd 314fec7
Мелкие правки
rodionbgd b71f0e3
Правка скрипта линтера
rodionbgd 8ef003f
Реализована Desktop-версия приложения
rodionbgd 5f25eb9
Добавлена навигация с History API
rodionbgd 2a05040
Мелкие правки
rodionbgd 6c51041
Линтинг
rodionbgd 0260542
Рефакторинг
rodionbgd 79264bd
Корректное удаление локации
rodionbgd 2621018
Мелкие правки
rodionbgd 1636df0
Рефакторинг
rodionbgd 64a65a5
feat(pwa): Реализовано PWA с возможностью установки приложения
rodionbgd 4c4457d
feat: Добавлен скролл ежедневной погоды
rodionbgd de3e672
changelog update
rodionbgd 9d7a0b6
refactor: Линтинг
rodionbgd f79dc9b
changelog update
rodionbgd 9bc308f
fix: Типизация google.maps
rodionbgd 78ed81f
changelog update
rodionbgd 80e92de
fix: Убрана возможность установки приложения из меню
rodionbgd a6109b8
fix: window.self заменен на self
rodionbgd a63f751
fix: Обновлен .eslintrc.js
rodionbgd ab34e85
chore: Добавлена анимация для описания в README.MD
rodionbgd 030902c
Добавлен readme
rodionbgd 4dcde5a
Обновлен readme
rodionbgd c2a465a
chore: Правка README.MD
rodionbgd af9d656
Update README.md
rodionbgd d3b2424
fix: Корректный рендеринг при изменении местоположения
rodionbgd 4bb2a1a
changelog update
rodionbgd a4a5670
fix: Убран лишний импорт в webpack.config.js
rodionbgd 0bdb110
chore: Changelog update
rodionbgd fdf8e2f
chore: Changelog update
rodionbgd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,2 @@ | ||
| node_modules/* | ||
| dist/* |
This file contains hidden or 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 @@ | ||
| 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"], | ||
| }; |
This file contains hidden or 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,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 |
This file contains hidden or 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,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 |
This file contains hidden or 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,8 @@ | ||
| .idea | ||
| .DS_STORE | ||
| .eslintcache | ||
| *.swp | ||
| node_modules/ | ||
| coverage/ | ||
| dist/ | ||
|
|
||
This file contains hidden or 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,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) |
This file contains hidden or 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,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>. |
This file contains hidden or 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,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"], | ||
| }); |
This file contains hidden or 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,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)"], | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.