Skip to content

Commit

Permalink
Merge pull request #2 from Amaimersion/1.1.0
Browse files Browse the repository at this point in the history
1.1.0
  • Loading branch information
Amaimersion authored May 9, 2020
2 parents 2ebbda8 + 6e6c5fe commit 2066862
Show file tree
Hide file tree
Showing 99 changed files with 2,450 additions and 1,278 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{html, css, md, sh, conf}]
[*.{html,css,md,sh,conf,ini}]
indent_size = 2
17 changes: 11 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
# Flask secret key.
# You must generate it like this in order to use cryptography package:
# Single secret key
# You must generate it like this as follows
# in order to use `cryptography` package:
# ```
# from cryptography.fernet import Fernet
# key = Fernet.generate_key().decode()
# print(key)
# ```
FLASK_SECRET_KEY=

# Address of database. PostgreSQL is expected in production, but not required
# Address of database.
# PostgreSQL is expected in production, but not required
DATABASE_URL=postgresql+psycopg2://<user>:<password>@<host>:<port>/<db_name>

# API token of Telegram bot from @BotFather
# API token received from @BotFather for Telegram bot
TELEGRAM_API_BOT_TOKEN=

# ID of app registerd in Yandex to access Yandex API
# ID of app registerd in Yandex to access Yandex OAuth API
YANDEX_OAUTH_API_APP_ID=

# Password of app registerd in Yandex to access Yandex API
# Password of app registerd in Yandex to access Yandex OAuth API
YANDEX_OAUTH_API_APP_PASSWORD=

# Your UA for Google Analytics. Optional
GOOGLE_ANALYTICS_UA=UA-XXXX-X
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ exclude =
# Folders
__pycache__
venv
migrations

# Files
*.pyc
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Bug Report
about: Did something not work as expected?
---


<!--
Thank you very much for contributing by creating an issue!
As an open source project with busy owner, it can sometimes take a long time to response. Please be patient if needed :). Thanks!
-->


# Bug Report

<!-- Please provide a general summary of the issue in the title field. -->


## Expected Behavior

<!-- What you expected to happen. -->


## Actual Behavior

<!-- What actually happened. If you seeing an error, please include the full error message and description of your actions. -->


## Additional Information

<!-- Any other additional information. -->
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Feature Request
about: Want to add or change something in the project?
---


<!--
Thank you very much for contributing by creating an issue!
As an open source project with busy owner, it can sometimes take a long time to response. Please be patient if needed :). Thanks!
-->


# Feature Request

<!-- Please provide a general summary of the issue in the title field. -->


## Summary

<!-- Clear and concise description of your idea. -->


## Implementation

<!-- How should your idea be implemented in your opinion? -->


## Description

<!-- Optional, but preferable. Detailed description of your idea. -->


## Examples

<!-- Optional, but preferable. Examples of your idea. -->


## Additional Information

<!-- Any other additional information. -->
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Question
about: Have any questions regarding the project?
---


<!--
Thank you very much for contributing by creating an issue!
As an open source project with busy owner, it can sometimes take a long time to response. Please be patient if needed :). Thanks!
-->


# Question

<!-- Please provide a general summary of the issue in the title field. -->


## Summary

<!-- Write your question here. -->
35 changes: 35 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
Thank you very much for contributing by creating a pull request! Your contribution is appreciated!
As an open source project with busy owner, it can sometimes take a long time to review. Please be patient if needed :). Thanks!
-->


# Pull Request

<!-- Provide a general summary of the pull request in the title field. -->


## Type

<!-- What kind of change does this PR introduce? e.g. a bugfix, feature, refactoring, new version, etc. -->


## Description

<!-- Clear description of your changes. Please look for any issues that this PR resolves and tag them in the PR. If this PR introduces a breaking changes, please describe the impact and a migration path for existing projects. -->


## Checklist

<!-- Fill this checklist. Do not remove item if it not applied. For completed items, change [ ] to [x]. -->

- [ ] this PR contains breaking changes
- [ ] `flake8` passes
- [ ] changelog is changed
- [ ] documentation is changed
- [ ] tests are changed or added


## Additional Information

<!-- Any other additional information. -->
12 changes: 12 additions & 0 deletions .slugignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Files
.editorconfig
.env.example
.flake8
CHANGELOG.md
LICENSE
README.md

# Folders
.vscode
info
.github
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"python.pythonPath": "./venv/bin/python",
"python.autoComplete.extraPaths": [
"./src"
"./src/*"
],
"cornflakes.linter.executablePath": "./venv/bin/flake8",
"files.exclude": {
Expand Down
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
# 1.1.0 (May 9, 2020)

## Telegram Bot

### Improved

- Text of most bot responses.
- Text of authorization HTML pages.
- Style of authorization HTML pages.
- When uploading, bot will update single message instead of sending new one every time with operation status.

### Added

- `/upload_url`: uploading of file using direct URL.
- Privacy Policy and Terms & Conditions.
- Favicons for different platforms.
- Buttons with useful links in `/help` command.
- "Report a problem" link in error authorization HTML page.

### Changed

- Title.
- Description.
- Logo.
- Favicon.
- Button with URL instead of plain text with URL in `/grant_access` command.

### Fixed

- A bug when sometimes "I can't track operation status of this anymore. Perform manual checking." message could appear even if operation was completed.
- A bug when empty `/create_folder` was successfully handled.

## Project

### Improved

- Big refactoring of everything.
- File structure.
- Upgrade `gevent` to 1.5.0.

### Added

- `SERVER_NAME` environment variable.
- Google Analytics in authorization pages.
- Templates for issues and pull requests.
- `robots.txt`.

### Changed

- Decreased size of slug on Heroku by removing unused files and folders.
- Decreased number of seconds for Yandex.OAuth request timeout.
- Redirects and generated URL's always will be absolute URL's with `PREFERRED_URL_SCHEME + SERVER_NAME`.
- If user refused to grant the access to Yandex.Disk, then user `insert_token` will be cleared after redirect.


# 1.0.0 (April 15, 2020)

Initial release!
Loading

0 comments on commit 2066862

Please sign in to comment.