#6981 (Write a front-end in Vue)

by Luc Saffre · in Developers · assigned to Sharif Mehedi

Kurzbeschreibung

Kinder

Kommentare

  • 1 Tag, 7 Stunden ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) : Replace dd.plugins.react.renderer by settings.SITE.kernel.editing_renderer or so. More precisely settings.SITE.kernel.editing_front_end.renderer

  • 1 Tag, 8 Stunden ago von Sharif Mehedi about #6981 (Write a front-end in Vue) (1 Antwort) : The edit button on publisher does the following in the template:

    {% if dd.is_installed('react') %} {% set ar_react = obj.get_default_table().create_request(parent=ar, permalink_uris=True, renderer=dd.plugins.react.renderer) %} {% if ar_react.obj2url(obj) %} {{ tostring(ar_react.obj2html(obj, text=_('...
  • 1 Tag, 22 Stunden ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Another thing remains is that, the editor button in the publisher is not yet available.
  • 2 Tage, 2 Stunden ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) : Don't forget #7056.
  • 2 Tage, 21 Stunden ago von Sharif Mehedi about #6981 (Write a front-end in Vue) (1 Antwort) : I think vuejs is complete in a matter of speaking. I will try to switch pronto.bd to vuejs. For that, I will have to take care of some preprocessors that I wrote in pronto and they should work with both react and vuejs. I will finalize my work in vuejs tomorrow morning, then it will be ready to use ...
  • 1 Woche ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Vuejs now looks up hide_navigator attribute.
  • 1 Woche ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : vuejs now has support for "use_detail_params_value".
  • 1 Woche, 2 Tage ago von Luc Saffre Antwort auf Luc Saffre about #6981 (Write a front-end in Vue) : Jane is back after the upgrade. I also wrote migration instructions in the changelog: dev.lino-framework.org/changes/2026.html#id2
    NB I didn't need to use them because there were no rows at all in our users.Authority table. But I did need to run the restore.py in order to create the empty table.
  • 1 Woche, 2 Tage ago von Luc Saffre about #6981 (Write a front-end in Vue) (1 Antwort) : I will start the upgrade now.
  • 1 Woche, 3 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : @luc, I'd like to see my vuejs changes in vjane, since there's a database migration issue regarding the Authority table, I'd like you to do the upgrade. Or we can do it together.
  • 1 Woche, 3 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Now now have switching substitute user in place.
  • 1 Woche, 3 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Next I will configure, authorities, UI option to select subst user.
  • 1 Woche, 3 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Today we have drag and drop row reorder in vuejs, also have the column visibility toggle.
  • 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : added local.css to the system.
  • 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : About the checkboxes; It was a typo bug. quickly updated vjane as well.
  • 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : It seems that the checkboxes are not working.
  • 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Jane is back in business again, with vjane containing the latest features.
  • 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Seems like nobody's working. I'll shutdown jane for an upgrade.
  • 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I will publish these changes to vjane.
  • 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : We now have editor in own window.
  • 2 Wochen, 1 Tag ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Wondering what should be the title of the editor in own window panel.
  • 2 Wochen, 1 Tag ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : We now have a display mode resolver, so that not all actor list view may come up in grid mode but in there backend set display mode by available character width.
  • 2 Wochen, 1 Tag ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : It was a simple tweak, modified indicators are back in grid layout.
  • 2 Wochen, 1 Tag ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : As side effect of my latest changes, the modified indicator has vanished from grid layout, let's fix it.
  • 2 Wochen, 1 Tag ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I have wired up the help texts in the UI layouts
  • 2 Wochen, 2 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : The "Simple Table view" on jane tickets.Tickets take too long because it fetches all the tickets at once and because internally it's using ar.data_iterator and not ar.sliced_data_iterator.
  • 2 Wochen, 3 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Next I will work on preprocessor(s) and before_show.
  • 2 Wochen, 3 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I just upgraded vjane, it now contains working parameters panel and service worker precaching javascript files.
  • 2 Wochen, 4 Tage ago von Luc Saffre about #6981 (Write a front-end in Vue) : The actions made by top_link_generator() are not yet visible in VueJS
  • 2 Wochen, 4 Tage ago von Luc Saffre about #6981 (Write a front-end in Vue) : Ctrl+S in the editor doesn't yet make it outside. For example when creating a ticket or a comment, I would like to submit the insert window using Ctrl+S when I'm in the editor.
  • 2 Wochen, 4 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : The quick search & the parameter panel in vuejs is working good. Next I'll work on service worker to pre-cache the JavaScript files.
  • 2 Wochen, 5 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : With replacing site_dir with project_dir in kernel touch_lino_version & the property lino_version, the test suite ran green. I will publish this change to pypi and upgrade jane and vjane.
  • 2 Wochen, 5 Tage ago von Sharif Mehedi Antwort auf Luc Saffre about #6981 (Write a front-end in Vue) : I'll do that and have the test suite run.
  • 2 Wochen, 6 Tage ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) (1 Antwort) : Exactly. (At least spontaneously I'd say this...)
  • 2 Wochen, 6 Tage ago von Sharif Mehedi Antwort auf Luc Saffre about #6981 (Write a front-end in Vue) (1 Antwort) : So, in kernel, touch_lino_version and property lino_version we should use site.project_dir instead of site.site_dir?
  • 2 Wochen, 6 Tage ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) (1 Antwort) : I'd say that a slave site should NOT share the lino_version.txt with its master.
  • 2 Wochen, 6 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) (1 Antwort) : A slave site shares the lino_version.txt from the master site, and we don't have the features to do buildcache on both site in one go. So, doing pm buildcache on one site invalidates the other site's cache.
  • 2 Wochen, 6 Tage ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) : I sent you invitations to become owner, also for a few other projects.
  • 2 Wochen, 6 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) (1 Antwort) : I just tried to publish vuejs to pypi, but I am not in the maintainers list.
  • 2 Wochen, 6 Tage ago von Luc Saffre about #6981 (Write a front-end in Vue) : It was because I had removed the line "default_ui = 'lino_react.react'" in the settings.py of jane because I was too sure that default_ui is being ignored when web_front_ends is set.

  • 2 Wochen, 6 Tage ago von Sharif Mehedi Antwort auf Luc Saffre about #6981 (Write a front-end in Vue) : Only the Site.default_ui is the place that has it. So, that's our primary candidate for the exception.
  • 2 Wochen, 6 Tage ago von Sharif Mehedi Antwort auf Luc Saffre about #6981 (Write a front-end in Vue) : Jane is also giving the same exception
  • 2 Wochen, 6 Tage ago von Sharif Mehedi Antwort auf Luc Saffre about #6981 (Write a front-end in Vue) : I tried setting default_ui on vjane, but it gives the same exception. It's probably not default_ui and could be something other then that.
  • 2 Wochen, 6 Tage ago von Sharif Mehedi Antwort auf Luc Saffre about #6981 (Write a front-end in Vue) : Should we set default_ui in vjane setting?
  • 2 Wochen, 6 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : We have quick search on vuejs now.
  • 3 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) (4 Antworten) : TODO: but /usr/local/lino/lino_local/jane/env/lib/python3.13/site-packages/lino/core/site.py line 2059 raises an exception because default_ui is set to lino_extjs.extjs, alsthough default_ui should be None.
    How to reproduce: go vjane; a; pm diag
  • 3 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : I will now set up a new slave site for jane at vjane.mylino.net
  • 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I have the grid editing configured. Next thing, I'll probably work on quick search and parameters panel.
  • 3 Wochen, 3 Tage ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I have a situation with IBANFieldElement, and I'd like to talk to @luc about it in the morning.
  • 4 Wochen ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) : I created #7026 for this.
  • 4 Wochen ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) : Or I.
  • 4 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) (2 Antworten) : I just figured out that React's PUT, POST doesn't care for csrf tokens, it's dangerous security compromise that I should have looked at before. I never thought to take care for it because everything already worked well. I don't want to blame Tonis that he didn't wired up the CSRF token, probably he ...
  • 1 Monat ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I've wired the view parameters to history.state, so that they are persistent in browser history, helping in browser's back forward navigation keeping UI states.
  • 1 Monat, 1 Woche ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) : Seems that this is #1336.
  • 1 Monat, 1 Woche ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : let's talk about it in the morning.
  • 1 Monat, 1 Woche ago von Luc Saffre Antwort auf Sharif Mehedi about #6981 (Write a front-end in Vue) : I didn't understand... If you want my opinion, then explain with other words. Or show me tomorrow morning. Or now if you prefer. I'm on Jitsi now.
  • 1 Monat, 1 Woche ago von Sharif Mehedi about #6981 (Write a front-end in Vue) (2 Antworten) : I have mk & mt wired up.
    Next thing I will do is the prefetch of the default parameters for the insert action (rec_insert). But I will generalize it like so that, if we supposedly have a unique action that take in the original bound_action as a parameter, and deliver the server generated default valu...
  • 1 Monat, 1 Woche ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Next thing to try is to have it respect mk and mt.
  • 1 Monat, 1 Woche ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I have the disabled_fields being respected in my latest commit.
  • 1 Monat, 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Wasted about an hour meddling with daisyui css to fix an icon appearance in the app menu later to find out that it's a bug in daisyui. The problem is visible in daisyui menu demo as well. The fix would be to override daisyui css for this case.
  • 1 Monat, 2 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I have basic runAction framework working. Just finished working on the icon mapping.
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I have the detail view, which is currently only readonly, because we don't yet have components for inputs such as TextInput Select and such, next I will try making a readonly grid view.
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : On the first try, while trying to set a default_record_id in EmptyTable, system.Dashboard complains, not sure I to get to a solution.
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I am considering to have a default_record_id = show for EmptyTable, if we have that, it fixes a problem that i have been facing in react with router. React is adapted to handle this in a more complecated way, which it could have managed more easily with a router path. The URLContext is responsible f...
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : The actual menus are visible now, except the Avatar icon the other icons on the DesktopRail works perfectly. Next I will work on serializing actordata and form panels.
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I got it load the main deshboard item (the main html) also copied some methods from react renderer to vue renderer, for example the action_call method. Configured a router as well. I am thinking about react style API for running actions. Will see how that turns out to be.
  • 1 Monat, 3 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : Code snippet for language selector:

    # import pycountry from lino.api import _ from django.utils import translation
    languages = ('bn', 'en', 'ru', 'fr', 'de')
    for lng in languages: # txt = pycountry.languages.get(alpha_2=lng).name li = translation.get_language_info(lng) print(li) f...
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Next I will work on rendering dashboard.
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : i18n is set-up correctly and working.
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I think i will work on i18next, next.
  • 1 Monat, 3 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : So far, I have implemented a menu drawer (common for desktop and mobile), a topbar (only for mobile) and a desktpp rail (only for desktop). There are no data model given to them yet, the work is only visual.
  • 1 Monat, 3 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : NB My latest commit in lino also contains a few breaking failures caused by missing import statements after my quick moving code from extjs.views to lino.core.views.
  • 1 Monat, 3 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : Vuetify and DaisyUI look sympathic. Yes, me too I would choose them for the first dive.
  • 1 Monat, 3 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : Oh yeah, this takes time. Let's talk about it tomorrow.
  • 1 Monat, 4 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : Or vuetify? I am having hard time picking one.
  • 1 Monat, 4 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : So, I should use NuxtUI?
  • 1 Monat, 4 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : Yes the MIT license has less protection against the situation where the copyright owner himself turns evil. But it is basically okay as long as they remain honest.
  • 1 Monat, 4 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I think I should explore the vue plugins portal, there are some plugins with component libraries.
  • 1 Monat, 4 Wochen ago von Sharif Mehedi about #6981 (Write a front-end in Vue) : I couldn't find any UI library that uses a GPL or AGPL license. But there are some component libraries with MIT license and If we use them, we won't be able to guarantee that they will stay free in the future. Of course we can for such a library and change the license to GPL but we can already do th...
  • 1 Monat, 4 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : I created the gitlab.com/synodalsoft/vuejs project. After installing this, you can set default_ui to "lino_vuejs.vuejs" in any settings.py and runserver will work, except that the browser will say a page not found because there are no patterns at all.
    Next step is to find out how to build and deploy...
  • 1 Monat, 4 Wochen ago von Luc Saffre about #6981 (Write a front-end in Vue) : I followed the instructions in the VueJS Quick Start, and I saw the "You did it" page, but I'm still confused because I now have *two* packages.json files (on in the main directory and one in the vue-project directory). Why do we need two of them? What are their differences?
  • 2 Monate ago von Luc Saffre about #6981 (Write a front-end in Vue) : Maybe wait for lino_extjs3 to be a separate repository.
  • 2 Monate ago von Luc Saffre about #6981 (Write a front-end in Vue) : Maybe the github.com/lino-framework/extjs6 repository can help as a base. But probably not. Probably I would start with a copy of react.
  • 2 Monate ago von Luc Saffre about #6981 (Write a front-end in Vue) : Also after reading hackr.io/blog/react-vs-vue i still like the idea of trying it.
  • 2 Monate ago von Luc Saffre about #6981 (Write a front-end in Vue) : Created new Ticket #6981 (Write a front-end in Vue).