-
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.
- Loading branch information
Showing
5 changed files
with
37 additions
and
40 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 |
---|---|---|
@@ -1,30 +1,27 @@ | ||
# viur-vuevi-wip | ||
<div align="center"> | ||
<img src="https://github.com/viur-framework/viur-artwork/raw/main/icons/icon-admin.svg" height="196" alt="A hexagonal logo of the vue components" title="Admin"> | ||
<h1>ViUR Vue Components</h1> | ||
<img alt="latest Version" title="Release" src="https://img.shields.io/github/v/release/viur-framework/vi-admin"> | ||
<a href="LICENSE"> | ||
<img src="https://img.shields.io/github/license/viur-framework/vi-admin" alt="Badge displaying the license" title="License badge"> | ||
</a> | ||
<br> | ||
A library for communication with the ViUR Core | ||
</div> | ||
|
||
## setup | ||
`cd vi-base` | ||
## What does it do? | ||
Implementation of a new ViUR administration tool using Vue.js and Shoelace | ||
|
||
`npm install` | ||
|
||
`cd vi` | ||
## Installation | ||
```bash | ||
$ viur install admin | ||
``` | ||
|
||
## run | ||
Switch to vi or vi-base folder and run `npm run dev` | ||
## License | ||
|
||
## info | ||
to use google login add your client id tp App.vue file. | ||
DO NOT COMMIT THIS CLIENT ID | ||
Copyright © 2023 by Mausbrand Informationssysteme GmbH.<br> | ||
Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH. | ||
|
||
### | ||
you need to add this to your main.py | ||
```import os | ||
from viur.core import request | ||
from viur.core.utils import currentRequest | ||
if os.environ['GAE_ENV'] == "localdev": | ||
"Whitelist vueJs Frontend server" | ||
def preprocessRequestHandler(path): | ||
currentRequest.get().response.headers["Access-Control-Allow-Origin"] = "http://localhost:8081" | ||
currentRequest.get().response.headers["Access-Control-Allow-Credentials"] = "true" | ||
return (path) | ||
conf["viur.requestPreprocessor"] = preprocessRequestHandler``` | ||
This project is free software under the MIT license.<br> | ||
Please see the LICENSE file for details. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Submodule vi-vue-components
updated
16 files
+21 −0 | LICENSE | |
+35 −22 | README.md | |
+43 −0 | components/README.md | |
+2 −0 | components/actions/actions.ts | |
+69 −0 | components/actions/addleaf.vue | |
+3 −9 | components/actions/custom.vue | |
+6 −1 | components/actions/save.vue | |
+12 −2 | components/bars/HandlerBar.vue | |
+28 −3 | components/bones/relationalBone.vue | |
+16 −13 | components/handler/FormHandler.vue | |
+40 −21 | components/main/topbar/vi.vue | |
+8 −8 | components/package-lock.json | |
+2 −2 | components/package.json | |
+1 −1 | components/stores/app.ts | |
+1 −1 | components/stores/user.ts | |
+2 −1 | components/translations/de.ts |