Code Monkey home page Code Monkey logo

vi-admin's People

Contributors

akelch avatar arnegudermann avatar claudiadietrichlev avatar sveneberth avatar timmytiefkuehl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

vi-admin's Issues

delete on a locked skeleton entity is handled as success

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
}

And the vi-admin says
image

Do not change the repo after a file upload

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.

Jump back to the most recent tab after closing

Imagine I've these tabs open:
image

I'm on the list view Example and open an entry to edit, a new tab opens. After I close it, Foo2 becomes the new active tab. But I think it would be nicer to jump back to Example where I was before.

File browser ist empty when opened

The file browser ist empty when the module is first opened. The icons of the files are there, but the other information is missing. When opening a folder and going back to the root directory the files and all information is being displayed correctly.

error

Paste in multiple StringBone should split by newline

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)

Module with dots in name are not openable in `v4.1.0`

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)

doubleclick on an entry in a list doesnt open the edit pane

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

Show entry if editing a skeleton in completely forbidden, but not displaying it

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)?

Cannot select columns

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

Use the vi renderer for `/$tree_module/list` request

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!

bug: Tree module uses wrong module name for `getStructure`

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

Error message missing for required and multi-lang `TextBone`

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

preview is not complete as in the old vi

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 ^^)

CustomAction's response != 200 is ignored

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.

`filter`s from `adminInfo` are ignored

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)

Fluidpage adding Element to wrong page

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.

The file key of a `FileBone` relation is being sent to the `viur-core` under a wrong form-key

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: 

Using:

vi-admin: v4.1.3
viur-core: v3.5.14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.