diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..634dca9 Binary files /dev/null and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..65e1ec0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "makefile.extensionOutputFolder": "./.vscode" +} \ No newline at end of file diff --git a/LICENSE b/LICENSE index cf9a817..e75ed50 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 Luiz Lima +Copyright (c) Seb Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md deleted file mode 100644 index 0c7c626..0000000 --- a/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# Flask PWA -> A progressive webapp template. - -Flask PWA is supposed to be a goto template when I start a new Flask project. It is constructed on a Model-Template-Controller perspective, which I find clear enough for my current projects. - -You can check a live version at [Heroku](https://flask-pwa.herokuapp.com). - -## Requirements -- [Python 3.10.0](https://realpython.com/intro-to-pyenv/) - -## Features - -* Blueprint oriented, Flask 1.0 project -* Instantly deployable on Heroku -* Off-the-shelf progressive web app behaviour -* Service worker based on Workbox - -## Installation - -```shell -> git clone https://github.com/umluizlima/flask-pwa -> cd flask-pwa -> make environment -> make install -``` - -## Usage - -Due to the current Service Worker [specification](https://w3c.github.io/ServiceWorker/#secure-context), the web browser will only allow its registration if the application is served over **https, or on localhost** for development purposes. - -This makes **nGrok** useful for testing the PWA functionality, as it allows you to expose localhost over the internet with **https** included. - -### localhost - -```shell -> make run -``` - -### nGrok - -```shell -> make flask run -> ngrok http 80 -``` - -## Deployment - -### Heroku - -The `app.json`, `Procfile`, and `runtime.txt` files on this repository are specific for deployment on [Heroku](https://www.heroku.com). It can be done by clicking the following button: - -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) - -## Links - -- Repository: https://github.com/umluizlima/flask-pwa -- Issue tracker: https://github.com/umluizlima/flask-pwa/issues -- Inspiration and references: - - [Google's Seu Primeiro PWA](https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/?hl=pt-br) - - [Flask PWA demo](https://github.com/uwi-info3180/flask-pwa) - - [Google's Workbox](https://developers.google.com/web/tools/workbox/) - -## Licensing - -This project is licensed under MIT license. diff --git a/app.json b/app.json index f4c1c96..bce5e2b 100644 --- a/app.json +++ b/app.json @@ -1,6 +1,6 @@ { - "name": "flask-pwa", - "repository": "https://github.com/umluizlima/flask-pwa", + "name": "joyseb", + "repository": "https://github.com/seduerr91/assistant", "env": { "SECRET_KEY": { "description": "Secret key for Flask.", diff --git a/app/.DS_Store b/app/.DS_Store new file mode 100644 index 0000000..ac27285 Binary files /dev/null and b/app/.DS_Store differ diff --git a/app/controller/main.py b/app/controller/main.py index 56c5135..a6b09cd 100644 --- a/app/controller/main.py +++ b/app/controller/main.py @@ -8,4 +8,15 @@ @bp.route('/') def index(): return render_template('main/index.html', - title='Flask-PWA') + title='Joy & Seb will marry') + + +@bp.route('/get_paraphrase', methods=['post']) +def get_paraphrase(): + try: + str_response = [1,2,3] + return app.response_class(response=json.dumps(str_response), status=200, mimetype='application/json') + except Exception as error: + err = str(error) + print(err) + return app.response_class(response=json.dumps(err), status=500, mimetype='application/json') diff --git a/app/model.py b/app/model.py deleted file mode 100644 index 5837981..0000000 --- a/app/model.py +++ /dev/null @@ -1,6 +0,0 @@ -# from flask_sqlalchemy import SQLAlchemy -# from flask_migrate import Migrate - - -# db = SQLAlchemy() -# migrate = Migrate() diff --git a/app/static/.DS_Store b/app/static/.DS_Store new file mode 100644 index 0000000..d53fe89 Binary files /dev/null and b/app/static/.DS_Store differ diff --git a/app/static/css/style.css b/app/static/css/style.css index 36ffb60..3c88496 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -3,7 +3,7 @@ --default-primary-color: #555555; --light-primary-color: #D7CCC8; --text-color: #FFFFFF; - --accent-color: chartreuse; + --accent-color: #FFFFFF; --primary-text-color: #212121; --secondary-text-color: cornflowerblue; --divider-color: #BDBDBD; @@ -115,7 +115,6 @@ a { img { display: block; width: 100%; - height: 200px; margin: auto; } diff --git a/app/static/favicon.ico b/app/static/favicon.ico index 9bd73df..8785f59 100644 Binary files a/app/static/favicon.ico and b/app/static/favicon.ico differ diff --git a/app/static/images/.DS_Store b/app/static/images/.DS_Store new file mode 100644 index 0000000..085f655 Binary files /dev/null and b/app/static/images/.DS_Store differ diff --git a/app/static/images/flasks.jpg b/app/static/images/flasks.jpg index 93ed998..e9a7c5c 100644 Binary files a/app/static/images/flasks.jpg and b/app/static/images/flasks.jpg differ diff --git a/app/static/images/icons/.DS_Store b/app/static/images/icons/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/app/static/images/icons/.DS_Store differ diff --git a/app/static/images/icons/icon-128x128.png b/app/static/images/icons/icon-128x128.png deleted file mode 100644 index e656b18..0000000 Binary files a/app/static/images/icons/icon-128x128.png and /dev/null differ diff --git a/app/static/images/icons/icon-144x144.png b/app/static/images/icons/icon-144x144.png deleted file mode 100644 index 0404c77..0000000 Binary files a/app/static/images/icons/icon-144x144.png and /dev/null differ diff --git a/app/static/images/icons/icon-152x152.png b/app/static/images/icons/icon-152x152.png deleted file mode 100644 index c32f672..0000000 Binary files a/app/static/images/icons/icon-152x152.png and /dev/null differ diff --git a/app/static/images/icons/icon-16x16.png b/app/static/images/icons/icon-16x16.png new file mode 100644 index 0000000..215b3f2 Binary files /dev/null and b/app/static/images/icons/icon-16x16.png differ diff --git a/app/static/images/icons/icon-180-180.png b/app/static/images/icons/icon-180-180.png new file mode 100644 index 0000000..43c1a07 Binary files /dev/null and b/app/static/images/icons/icon-180-180.png differ diff --git a/app/static/images/icons/icon-192x192.png b/app/static/images/icons/icon-192x192.png index 85cc846..1dd8dae 100644 Binary files a/app/static/images/icons/icon-192x192.png and b/app/static/images/icons/icon-192x192.png differ diff --git a/app/static/images/icons/icon-32x32.png b/app/static/images/icons/icon-32x32.png new file mode 100644 index 0000000..de07ec1 Binary files /dev/null and b/app/static/images/icons/icon-32x32.png differ diff --git a/app/static/images/icons/icon-384x384.png b/app/static/images/icons/icon-384x384.png deleted file mode 100644 index 2ebe288..0000000 Binary files a/app/static/images/icons/icon-384x384.png and /dev/null differ diff --git a/app/static/images/icons/icon-48x48.png b/app/static/images/icons/icon-48x48.png new file mode 100644 index 0000000..8785f59 Binary files /dev/null and b/app/static/images/icons/icon-48x48.png differ diff --git a/app/static/images/icons/icon-512x512.png b/app/static/images/icons/icon-512x512.png index 1368b14..9c0203d 100644 Binary files a/app/static/images/icons/icon-512x512.png and b/app/static/images/icons/icon-512x512.png differ diff --git a/app/static/images/icons/icon-72x72.png b/app/static/images/icons/icon-72x72.png deleted file mode 100644 index af22e99..0000000 Binary files a/app/static/images/icons/icon-72x72.png and /dev/null differ diff --git a/app/static/images/icons/icon-96x96.png b/app/static/images/icons/icon-96x96.png deleted file mode 100644 index e9893eb..0000000 Binary files a/app/static/images/icons/icon-96x96.png and /dev/null differ diff --git a/app/static/manifest.json b/app/static/manifest.json index c082a9a..5e44eba 100644 --- a/app/static/manifest.json +++ b/app/static/manifest.json @@ -1,7 +1,7 @@ { - "name": "Flask-PWA", - "short_name": "Flask-PWA", - "description": "A progressive webapp template built with Flask", + "name": "JoySeb", + "short_name": "JoySeb", + "description": "We say yes", "theme_color": "transparent", "background_color": "transparent", "display": "standalone", diff --git a/app/templates/layout.html b/app/templates/layout.html index 4452df0..781a5fe 100644 --- a/app/templates/layout.html +++ b/app/templates/layout.html @@ -9,6 +9,6 @@

{{ title }}

{% endblock %} diff --git a/app/templates/main/index.html b/app/templates/main/index.html index 45e0c06..5dd7b7f 100644 --- a/app/templates/main/index.html +++ b/app/templates/main/index.html @@ -5,12 +5,18 @@
-

Flask PWA

- A progressive webapp template -

Flask PWA is supposed to be a goto template when - I start a new Flask project. It is constructed on - a Model-Template-Controller perspective, which I - find clear enough for my current projects.

+

Joy & Seb will marry

+ September 2, 2022 +

+ Dear Friends and Family, + + We are thrilled to announce that we will be getting married on September 2, 2022 at 4:30 pm. We are so excited to spend + the rest of our lives together and we are so happy to say yes! We hope to see you there to celebrate our special day + with us!
+ Love,
+ Joy and Seb

+ +