viur-framework / vi-admin Goto Github PK
View Code? Open in Web Editor NEWImplementation of a new ViUR administration tool using Vue.js and Shoelace
License: MIT License
Implementation of a new ViUR administration tool using Vue.js and Shoelace
License: MIT License
After I open the shop cart (tree) module, the vi-admin makes this request:
GET /vi/getStructure/shop/cart
but it must be
GET /vi/getStructure/shop.cart
This leads to
Cannot read properties of null (reading 'viewLeafSkel') 5.3.2024, 13:54:55
and make the module unusable
causing this error
index-zZThdHBr.js:1 TypeError: Cannot read properties of undefined (reading 'startsWith')
at Proxy.$ (index-zZThdHBr.js:12:40140)
at C.onDblclick.t.<computed>.t.<computed> (index-zZThdHBr.js:12:44638)
at vn (index-zZThdHBr.js:1:17705)
at Mt (index-zZThdHBr.js:1:17784)
at HTMLTableRowElement.n (index-zZThdHBr.js:1:80125)
Pp @ index-zZThdHBr.js:1
ms @ index-zZThdHBr.js:1
vn @ index-zZThdHBr.js:1
Mt @ index-zZThdHBr.js:1
n @ index-zZThdHBr.js:1
but only in few modules
First, take a look at viur-framework/viur-core#995 for my use case.
The module is listed in the left sidebar, but after I clicked on it I get
View /db/shop/address/list is missing.
There is also no exception in the console or failed request.
I often have the situation that I completely prohibit the editing of individual entries in a module if they are in a certain state. I implement this in the canEdit
. However, this also means that the entry in the Vi can only be displayed in the list view. Could the EditPane be loaded in a readOnly
mode (read-only) after another view request (GET /$module/view/$key
) - or a pure output mask (like the jinja skelView
)?
I have several repos (root nodes) in the file module. After I have uploaded a file in the repo (2nd entry in the dropdown), the file browser jumps to the 1st repo. I would like it to stay in the same repo.
This would be helpful for development if you want to read the value of internals bones.
I image a checkbox in an editpane show hidden bones.
I've a tree module and use the tree
handler. After I click on an existing node if does this list request:
http://localhost:8080/json/$tree_module/list?parententry=qwklfnqwflnqwflqwf&skelType=leaf&orderby=sortindex&amount=99
But it should use the vi
renderer, not the json
renderer!
I just want to do my edit and the go back to the list. Currently I have to click twice: save and then tab close.
The deployed version doesn't raise an error, when the user has insufficient access rights. It just opens the empty Admin interface. If ran locally the same version raises an error saying the user is having insufficient rights, as it should be.
If I insert a multi-line text into the input of a multiple StringBone, the text should be split after a newline and the corresponding number of entries should be appended and filled.
in psuedo code:
on PasteEvent:
if input.bone.multiple:
value = paste_value.split("\n")
input.value.extend(value)
else:
input.value.append(paste_value)
I want the × on the right to disable all (selected) values at once.
This should be the clearable
option in shoelace
In a list view a click on the button "Felder" does nothing.
But, on the console I found this error:
3index-BrsNanUB.js:1 TypeError: Cannot read properties of undefined (reading 'structure')
at Proxy.r (index-BrsNanUB.js:10:71830)
at k.onClick.t.<computed>.t.<computed> (index-BrsNanUB.js:10:72907)
at vn (index-BrsNanUB.js:1:17624)
at Dt (index-BrsNanUB.js:1:17703)
at e.n (index-BrsNanUB.js:1:80004)
It does not work in a nested module with a dot, neither in a normal
I have this TextBone
in my Skeleton.
descr = TextBone(
descr="Beschreibung",
required=True,
languages=conf.i18n.available_languages,
)
I want to add a new entry (Skeleton) in the vi-admin. I left this bone empty. After I click on save nothing happens (except doing the request in the background): no error message, not edit success. After enter a value for this bone saving was successful.
Version: 4.0.13
Instead of the skel key, the edit pane is always opened with the root key
handler is: tree.node
RelationalBone
RelationalBone
I've an entity which is locked due to RelationalConsistency
. I try to delete it anyway.
The viur-core respond with:
423 Ressource is Locked
{
"status": 423,
"reason": "Ressource is Locked",
"title": "Ressource is Locked",
"descr": "This entry is locked!",
"traceback": "Traceback (most recent call last): ...",
"logo": null
}
When editing a fluidpage and opening a different one to also edit, the newly added elements append to the fluidpage that was opened first, not the one that`s currently being edited.
Line 28 in 0c57fd5
I want to define preview urls for a module:
"preview": {
"foo": "/module/view/{{key}}",
}
This is working fine.
But neither more than one URL will be available to select and only {{key}}
will be substituted. I want to add {{module}}
and any bone like {{name}}
replace as well:
"preview": {
"foo": "/{{module}}/dothis/{{key}}",
"bar": "/othermodule/tothat/{{key}}/{{name}}",
}
(yes I know the existence of custom actions ^^)
I have an adminInfo like this
adminInfo = {
# ...
"filter": {
"orderby": "topic",
"orderdir": "1",
},
# ...
}
The filters are not added to the list request of the module. (for sure they are part of /vi/config
.modules)
Neither dragging and dropping multiple files works nor is it possible to select multiple files in the system file dialog (via "+ Datei hinzufügen").
afaik it's okay to have only a NodeSkel
in a tree
Module (At least the core doesn't raise an error). But the vi-admin tries always to load (list) leafs and nodes and shows both add button.
I upgraded to v4.1.0
.
After I click in the sidebar on a module with a dot .
in the module name, this exception occurs and nothing happens. Other modules, without a dot, seems to work.
index-QGoXRsv3.js:1 TypeError: Cannot read properties of undefined (reading 'replace')
at Proxy.a (index-QGoXRsv3.js:10:46603)
at onClick (index-QGoXRsv3.js:10:49067)
at vn (index-QGoXRsv3.js:1:17624)
at Rt (index-QGoXRsv3.js:1:17703)
at HTMLDivElement.n (index-QGoXRsv3.js:1:80004)
Just a error on the console, but nothing happens
index-Iwo5i3Bl.js:14 TypeError: Cannot read properties of undefined (reading 'type')
at Proxy.y (index-Iwo5i3Bl.js:35:32579)
at S5.e.state.selection.e.boneState.isEmpty.C.onClick.t.<computed>.t.<computed> (index-Iwo5i3Bl.js:35:33737)
at kn (index-Iwo5i3Bl.js:14:1373)
at Bt (index-Iwo5i3Bl.js:14:1444)
at e.n (index-Iwo5i3Bl.js:18:8227)
(Still not working with v4.3.0)
I've a customAction
of type fetch
. The server could response with some errors (status code != 200). But the vi-admin doesn't show a error message. You need to open the developer console to see if the request was successful.
"scope_article": {
"descr": "Geltungsbereich Artikel",
"type": "relational.$kind",
"required": false,
"params": {
"category": "2 \u2013 Scope",
"visibleIf": "application_domain == \"article\""
},
"visible": true,
"readonly": false,
"unique": false,
"languages": null,
"emptyvalue": null,
"indexed": true,
"multiple": false,
"module": "$kind",
"format": "$(dest.shop_name) | $(dest.shop_shop_art_no_or_gtin) | $(dest.shop_price_retail) \u20ac",
"using": null,
"relskel": { ... },
"sortindex": 22
},
The input (combbox ?) causes on input a bunch of request without search param:
This happens for example if
canAdd
, canDelete
, … method disallows this actionMostly this crashes the vi-admin
and requires a refresh (at least of the current module)
I have a file relation like:
image = FileBone(
descr="Image",
derive={
"thumbnail": [
{"width": 200, "height": 200},
{"width": 400, "height": 400},
],
},
)
The file relation (the file key
) is not sent correctly to the viur-core
in an skeleton edit.
It sends my_image_bone.key
, but not my_image_bone
-- but this is what the core currently expects (without an using skel). Therefore, the value is not practically submitted and not written in the Skeleton. Even if the preview is kept after saving, the supposedly set image is gone again after a reload.
This bug is related to viur-framework/viur-core#1045
Payload of an existing file entry (invalid; without image
):
image.key: ag12aXVyMy1*************gRmaWxlGICAgNj1mIUKDA
image.creationdate: 2023-05-12T18:30:11+02:00
image.changedate: 2023-05-12T18:30:11+02:00
image.viurCurrentSeoKeys.en: 565***1987200
image.parententry: ag12aXVyMy1************ROb2RlIg9yZXBfbW9kdWxlX3JlcG8M
image.parentrepo: ag12aXVyMy10*************b3ROb2RlIg9yZXBfbW9kdWxlX3JlcG8M
image.sortindex: 1683909011.347819
image.size: 4166
image.dlkey: 01***iCFI
image.name: super_cloud.png
image.mimetype: image/png
image.weak: false
image.pending: false
image.width: 0
image.height: 0
image.downloadUrl: /file/download/MDF**FpOd****Y2Uvc3VwZXJfY2xvdWQ*ADAA?sig=a437f14e8fe61e9874c03ded******d59cca764d15813c24f1a247**ba939bb2f7c2757ac07
image.derived:
image.pendingparententry: ag12aXVy**************XBfbW9kdWxlX3JlcG8
Payload of an directly uploaded file (correctly; with image
):
image: ag12aXVy**********ICAgLjgmo0JDA
image.key: ag12aX*********ELEgRmaWxlGICAgLjgmo0JDA
image.rel:
vi-admin: v4.1.3
viur-core: v3.5.14
They are no all expanded
Using Logics such as "visibleIf" or "readonlyIf" in a RelSkel in a RecordBone doesn't work. Found in Admin: 4.0.16 and Core: 3.5.9.
viur-core
's response:
{
"status": 406,
"reason": "Not Acceptable",
"title": "Nicht akzeptierbar",
"descr": "Missing required parameter 'key'",
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.