Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d27066b15b | ||
|
|
cac9d14d52 | ||
|
|
57f2f72856 | ||
|
|
f8bebe8115 | ||
|
|
f714f5ad1d | ||
|
|
437b97b005 | ||
|
|
4fdd63b234 | ||
|
|
75e1d5c13e |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -67,3 +67,8 @@ target/
|
|||||||
tmp*
|
tmp*
|
||||||
.env*
|
.env*
|
||||||
venv*
|
venv*
|
||||||
|
|
||||||
|
# Doit
|
||||||
|
*.bak
|
||||||
|
*.dat
|
||||||
|
*.dir
|
||||||
|
|||||||
@@ -34,12 +34,12 @@
|
|||||||
### Frontend
|
### Frontend
|
||||||
Интерфейс на русском языке
|
Интерфейс на русском языке
|
||||||
```bash
|
```bash
|
||||||
python3 todo_tk.py
|
python3 -m frontend
|
||||||
```
|
```
|
||||||
|
|
||||||
Интерфейс на английском языке
|
Интерфейс на английском языке
|
||||||
```bash
|
```bash
|
||||||
LANG=eng python3 todo_tk.py
|
LANG=eng python3 -m frontend
|
||||||
```
|
```
|
||||||
|
|
||||||
### backend
|
### backend
|
||||||
|
|||||||
19
dodo.py
Normal file
19
dodo.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!usr/bin/env python3
|
||||||
|
"""
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def task_mo():
|
||||||
|
"""Create bynary wheel distribution"""
|
||||||
|
return {
|
||||||
|
"actions": [
|
||||||
|
"""pybabel compile -D todo -i frontend/po/eng/LC_MESSAGES/todo.po -o frontend/po/eng/LC_MESSAGES/todo.mo"""
|
||||||
|
],
|
||||||
|
"file_dep": ["frontend/po/eng/LC_MESSAGES/todo.po"],
|
||||||
|
"targets": ["frontend/po/eng/LC_MESSAGES/todo.mo"],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def task_wheel():
|
||||||
|
"""Create bynary wheel distribution"""
|
||||||
|
return {"actions": ["python3 -m build -w"], "task_dep": ["mo"]}
|
||||||
0
frontend/__init__.py
Normal file
0
frontend/__init__.py
Normal file
8
frontend/__main__.py
Normal file
8
frontend/__main__.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""django-todo application launcher"""
|
||||||
|
|
||||||
|
from .todo_tk import Application
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app = Application()
|
||||||
|
app.main(app.login())
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import random
|
import random
|
||||||
from user import User
|
from .user import User
|
||||||
|
|
||||||
|
|
||||||
def print_lists(lists):
|
def print_lists(lists):
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import gettext
|
import gettext
|
||||||
import os
|
import os
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from user import User
|
from .user import User
|
||||||
import message
|
from . import message
|
||||||
|
|
||||||
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
|
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import gettext
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from login import LoginFrame
|
from .login import LoginFrame
|
||||||
from workspace import WorkSpaceFrame
|
from .workspace import WorkSpaceFrame
|
||||||
from user import User
|
from .user import User
|
||||||
|
|
||||||
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
|
gettext.install("todo", os.path.join(os.path.dirname(__file__), "po"))
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from api import UserApi
|
from .api import UserApi
|
||||||
|
|
||||||
LIST_UPDATEBLE = ["title"]
|
LIST_UPDATEBLE = ["title"]
|
||||||
TODO_ITEM_UPDATEBLE = ["text", "finished"]
|
TODO_ITEM_UPDATEBLE = ["text", "finished"]
|
||||||
|
|||||||
@@ -21,3 +21,15 @@ exclude = '''
|
|||||||
| profiling
|
| profiling
|
||||||
)/
|
)/
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = [
|
||||||
|
"setuptools",
|
||||||
|
"wheel",
|
||||||
|
"requests",
|
||||||
|
"build",
|
||||||
|
"coverage",
|
||||||
|
"doit"
|
||||||
|
]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user