Skip to content

Corrections and upgrade from Vue2 to Vue3#877

Open
UlysseDurand wants to merge 20 commits into
Kitware:masterfrom
UlysseDurand:docs-tutoriel-vue3
Open

Corrections and upgrade from Vue2 to Vue3#877
UlysseDurand wants to merge 20 commits into
Kitware:masterfrom
UlysseDurand:docs-tutoriel-vue3

Conversation

@UlysseDurand
Copy link
Copy Markdown
Contributor

This PR depends on Kitware/trame-tutorial#7
because trame and trame-tutorial are referencing one another.

Correct the tutorial and upgrade it from Vue2 to Vue3.

  • Some corrections
    • Code parts from Trame1 were remaining
    • Code parts were not corresponding between doc and examples
  • Change vuetify to vuetify3 in the code
  • Change VSelect's items' text and value
  • Change toggle dark theme mechanism

Comment thread docs/vitepress/guide/tutorial/application.md
Comment thread docs/vitepress/guide/tutorial/application.md Outdated
Comment thread docs/vitepress/guide/tutorial/application.md Outdated
Comment thread docs/vitepress/guide/tutorial/layouts.md Outdated
Comment thread docs/vitepress/guide/tutorial/layouts.md Outdated
Comment thread docs/vitepress/guide/tutorial/layouts.md Outdated
Comment thread docs/vitepress/guide/tutorial/paraview.md Outdated
Comment thread docs/vitepress/guide/tutorial/paraview.md Outdated
@jourdain
Copy link
Copy Markdown
Collaborator

I would update to the structure shown here: https://kitware.github.io/trame/examples/core/basics.html#class-for-trame-application

Comment thread docs/vitepress/guide/tutorial/html.md Outdated
Comment thread docs/vitepress/guide/tutorial/html.md Outdated
Comment thread docs/vitepress/guide/tutorial/html.md Outdated
Comment thread docs/vitepress/guide/tutorial/html.md Outdated
Comment thread docs/vitepress/guide/tutorial/html.md Outdated
Comment thread docs/vitepress/guide/tutorial/html.md Outdated
Comment thread docs/vitepress/guide/tutorial/html.md
Comment thread docs/vitepress/guide/tutorial/html.md
Comment thread docs/vitepress/guide/tutorial/paraview.md Outdated
Comment thread docs/vitepress/guide/tutorial/paraview.md Outdated
Comment thread docs/vitepress/guide/tutorial/paraview.md Outdated
@jourdain
Copy link
Copy Markdown
Collaborator

This branch cannot be rebased due to conflicts

@jourdain
Copy link
Copy Markdown
Collaborator

Otherwise code looks good

Copy link
Copy Markdown
Contributor Author

@UlysseDurand UlysseDurand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the examples are updated to use Trame's best practice (like using the TrameApp class).

The corresponding PR in the trame-tutorial repo is the following: Kitware/trame-tutorial#8

Comment thread docs/vitepress/guide/tutorial/application.md Outdated
Comment thread docs/vitepress/guide/tutorial/application.md
Comment thread docs/vitepress/guide/tutorial/application.md Outdated
Comment thread docs/vitepress/guide/tutorial/html.md
Comment thread docs/vitepress/guide/tutorial/layouts.md Outdated
Comment thread docs/vitepress/guide/tutorial/layouts.md Outdated
Comment thread docs/vitepress/guide/tutorial/layouts.md Outdated
Comment thread docs/vitepress/guide/tutorial/paraview.md Outdated
Comment thread docs/vitepress/guide/tutorial/paraview.md Outdated
UlysseDurand added a commit to UlysseDurand/trame that referenced this pull request May 5, 2026
- indentation errors
- forgot to put self in class function's arguments
- self.server.state => self.state
- one forgotten layout => self.ui

Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Comment thread docs/vitepress/guide/tutorial/application.md Outdated
Comment thread docs/vitepress/guide/tutorial/application.md Outdated
Comment thread docs/vitepress/guide/tutorial/application.md Outdated
Comment thread docs/vitepress/guide/tutorial/application.md
UlysseDurand added a commit to UlysseDurand/trame that referenced this pull request May 11, 2026
Comment thread docs/vitepress/guide/tutorial/html.md Outdated
Comment thread docs/vitepress/guide/tutorial/vtk.md Outdated
UlysseDurand added a commit to UlysseDurand/trame that referenced this pull request May 12, 2026
@jourdain
Copy link
Copy Markdown
Collaborator

You have to rebase and fix conflicts

@jourdain
Copy link
Copy Markdown
Collaborator

You still have conflicts

@jourdain
Copy link
Copy Markdown
Collaborator

It would have been better to rebase that merging master...

- indentation errors
- forgot to put self in class function's arguments
- self.server.state => self.state
- one forgotten layout => self.ui

Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
Ref: Kitware#877 (comment)
@UlysseDurand
Copy link
Copy Markdown
Contributor Author

My mistake, I didn't really understand what a rebase was, it should now show no conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants