Skip to content

Commit

Permalink
Inital migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbirchard committed Apr 19, 2024
1 parent e4965bd commit 71128c5
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 98 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ gcloud.json
# IDES
.idea
.vscode
.vscode/

4 changes: 0 additions & 4 deletions .vscode/settings.json

This file was deleted.

10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# PythonMyAdmin

![Python](https://img.shields.io/badge/Python-^3.10-blue.svg?logo=python&longCache=true&logoColor=white&colorB=5e81ac&style=flat-square&colorA=4c566a)
![Flask](https://img.shields.io/badge/Flask-2.2.5-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
![Dash](https://img.shields.io/badge/Dash-v^2.14.0-blue.svg?longCache=true&logo=python&longCache=true&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
![Flask](https://img.shields.io/badge/Flask-3.0.3-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
![Dash](https://img.shields.io/badge/Dash-Ag-Grid-v^31.0.1-blue.svg?longCache=true&logo=python&longCache=true&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
![Flask-SQLAlchemy](https://img.shields.io/badge/Flask--SQLAlchemy-^3.1.1-red.svg?longCache=true&style=flat-square&logo=scala&logoColor=white&colorA=4c566a&colorB=bf616a)
![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square&colorA=4c566a&colorB=a3be8c)
[![GitHub Issues](https://img.shields.io/github/issues/toddbirchard/pythonmyadmin.svg?style=flat-square&colorA=4c566a&colorB=ebcb8b)](https://github.com/toddbirchard/pythonmyadmin/issues)
Expand All @@ -27,13 +27,7 @@ Replace the values in **.env.example** with your values and rename this file to
Get up and running with `make deploy`:

```shell
<<<<<<< HEAD
git clone https://github.com/hackersandslackers/flask-blueprint-tutorial.git
cd flask-blueprint-tutorial
make deploy
=======
$ git clone https://github.com/toddbirchard/pythonmyadmin.git
$ cd pythonmyadmin
$ make deploy
>>>>>>> feature/update-dash-dependencies
```
2 changes: 1 addition & 1 deletion gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

proc_name = "pythonmyadmin"
wsgi_app = "wsgi:app"
bind = "unix:flask.sock"
bind = "unix:pythonmyadmin.sock"
threads = 4
workers = 2

Expand Down
95 changes: 56 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ flask-sqlalchemy = "*"
pymysql = "*"
flask-assets = "*"
dash = "*"
dash-ag-grid = "*"
dash-core-components = "*"
dash-html-components = "*"
dash-renderer = "*"
Expand All @@ -42,10 +43,10 @@ run = "wsgi:app"
issues = "https://github.com/toddbirchard/pythonmyadmin/issues"

[tool.poetry.group.dev.dependencies]
black = { version = "^23.7.0", allow-prereleases = true }
black = { version = "^24.4.0", allow-prereleases = true }

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=1.5.0"]
build-backend = "poetry.core.masonry.api"

[tool.isort]
Expand Down
15 changes: 0 additions & 15 deletions pythonmyadmin.ini

This file was deleted.

2 changes: 1 addition & 1 deletion pythonmyadmin/templates/head.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/style.css') }}">
<link rel="shortcut icon" href="{{ url_for('static', filename='dist/img/[email protected]') }}" type="image/x-icon" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link rel="stylesheet" href="https://kit.fontawesome.com/feffb0a9eb.css" crossorigin="anonymous">
<script>
var _gauges = _gauges || [];
(function() {
Expand Down
2 changes: 1 addition & 1 deletion pythonmyadmin/templates/index.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block content %}
<p class="database-host-name">
Connected to <span class="database-host" style="font-weight:bold; color:#a2a8b2;">{{ host_name }}.</span>
Connected to <span class="database-host" style="font-weight:bold; color:#a2a8b2;">{{ host_name }}</span>
</p>
<p class="database-table-summary">
Displaying <span style="font-weight:bold;">{{ num_tables }}</span> tables found in database <span style="font-weight:bold;">{{ database_name }}</span>:
Expand Down
Loading

0 comments on commit 71128c5

Please sign in to comment.