-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue rewrite #81
Vue rewrite #81
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick high level thing before going into more specific changes - there's a bunch of files that need to get dropped
- git bundle files, bundle.bat
- Entire public folder (assuming the Vue cli is handling all that now)
- I think there's some left over files from the old version - chat.html, chat.js, and chat.css aren't used any more are they?
Would be good to do a package upgrade too - remove package-lock.json, run npm-check-updates, and reinstall. I think there's going to be some additional errors with new versions of things though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Most stuff is just nitpicks.
General notes
There are a number of IDs on elements that aren't needed. The only case where you need an id on an element should be if you want to use a style on it, and even then I'd probably suggest a class instead.
Looks like these still need removing:
- chat.html
- chat.js
- chat.css
- bundle.bat
As we talked about, there needs to be a test page, and a way to instantiate the app itself on a page by passing in an element ID after including a script
In a number of places, you're using v-show when you really should be using v-if - v-show is mainly for things that will often be getting shown and hidden (I'd do it for, say, the minimization of the chat but not for the connection button/chat input)
For components with no slots, use self-closing tags. I think there's an eslint-vue setting for that. I'd also prefer PascalCase to differentiate them from HTML elements.
Rename *Tab to *Panel. TabsPanel then just becomes Tabs or maybe TabList. The tabs are the things that go across the top that you click on, the panels hold the content for specific tabs. I named them how you are in the old version, but in hindsight that was rather confusing.
Also remove the dummy messages from `actions.ts`
Also remove the dummy messages from `actions.ts`
…into vue-rewrite
Note - I need to add the EJS hook |
…n settings.vuex.ts
New layout/more functionality
01c2690
to
aa9b4ff
Compare
Reworked this such that the initial vue bootstrap was set as an orphan, and then merged together unrelated histories with That said, finally merging this into dev now in preparation to actually using this. Will make any further necessary updates in dev. |
Feel free to make change requests based on the current code, however, I am currently working on making everything comply with TS, removing redundant imports and dependencies, and adding vue-cli as a dependency.