-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch changes the ui from reloading itself to using Vue.js and only reloading the specific data. It completely removed flask templating and slightly changes and expand the JSON API. The service API is now splitted in `upcoming` and `recorded` and there are new endpoints for getting the name of the capture agent and a list of preview images. It also adds NPM and [Parcel.js](https://parceljs.org) for managing the JavaScript dependencies and building a static version of the UI for production. There are also some slightly changes in the features. The refresh is now a url parameter and is received from the backend on redirect from `/` to the `index.html`.
- Loading branch information
Showing
21 changed files
with
7,788 additions
and
176 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -3,6 +3,10 @@ venv | |
*.pyo | ||
*.swp | ||
|
||
# JavaScript stuff | ||
node_modules/ | ||
/pyca/ui/static/ | ||
|
||
/recordings/* | ||
|
||
.coverage | ||
|
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,2 +1 @@ | ||
include pyca/ui/static/* | ||
include pyca/ui/templates/* |
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,20 @@ | ||
{ | ||
"name": "pyCA", | ||
"private": true, | ||
"scripts": { | ||
"server": "ui/server.js", | ||
"build": "parcel build --public-url=/static/ --out-dir=pyca/ui/static/ ui/index.html" | ||
}, | ||
"alias": { | ||
"vue": "./node_modules/vue/dist/vue.common.js" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.19.2", | ||
"vue": "^2.6.11" | ||
}, | ||
"devDependencies": { | ||
"express": "^4.17.1", | ||
"http-proxy-middleware": "^1.0.4", | ||
"parcel-bundler": "^1.12.4" | ||
} | ||
} |
This file contains 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
This file contains 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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/sh | ||
|
||
npm run build | ||
exec python -m pyca ${1+"$@"} |
This file contains 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
This file contains 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
Oops, something went wrong.