-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from DigitalSlideArchive/vue-binary-build
Vue binary build
- Loading branch information
Showing
22 changed files
with
1,042 additions
and
60 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
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,2 @@ | ||
# This could leak to production. Should only be used in DEBUG mode for FastAPI | ||
VITE_APP_API_URL=http://127.0.0.1:8000 |
File renamed without changes.
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,21 @@ | ||
## Development | ||
For efficient front end developement in the project root run: | ||
|
||
```bash | ||
export DEBUG=True | ||
hypercorn --reload imagedephi.gui:app | ||
``` | ||
|
||
In a new terminal: | ||
|
||
```bash | ||
cd client/ | ||
yarn dev | ||
``` | ||
|
||
**Note** | ||
`imagedephi gui` will break and tests will fail in debug mode. Remember to reset variable when done with development. | ||
|
||
```bash | ||
export DEBUG=False | ||
``` |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,8 @@ | ||
export async function getDirectoryInfo(path?:string) { | ||
const selectedPath= path ? path : ''; | ||
const basePath = import.meta.env.VITE_APP_API_URL ? import.meta.env.VITE_APP_API_URL : ''; | ||
const response = await fetch(`${basePath}/directory/${selectedPath}`, {method: "GET", mode: 'cors'}); | ||
|
||
return response.json() | ||
|
||
} |
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,5 +1,7 @@ | ||
import { createApp } from 'vue' | ||
import App from './App.vue' | ||
import './style.css' | ||
import { getDirectoryInfo } from './api/rest.ts' | ||
|
||
createApp(App).mount('#app') | ||
getDirectoryInfo() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.