-
Notifications
You must be signed in to change notification settings - Fork 188
Add Vue and ng-vue packages #1421
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
Conversation
Also adds related parts for compiling Vue components into the existing Javascript bundle. Signed-off-by: Tucker McKnight <[email protected]>
Signed-off-by: Tucker McKnight <[email protected]>
Signed-off-by: Tucker McKnight <[email protected]>
|
Once this is merged, I can create Pull Requests that implements the stuff from #748. 👍 |
anoymouserver
left a comment
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.
Not sure whether this PR is considered finished, but to my unexperienced eye it seems like the VueComponents.js and *.vue files (for the vue-component occurences) are still missing.
| news-scroll-enabled-mark-read="Content.markReadEnabled()" | ||
| news-scroll-auto-page="Content.autoPage()" | ||
| news-scroll-mark-read="Content.scrollRead(itemIds)"></div> | ||
|
|
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.
This file seems to be changed accidentally.
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.
|
App build fails with |
Fixes the problem of the vue components directory not existing. Also removed the demo components that were not meant to be committed. Signed-off-by: Tucker McKnight <[email protected]>
PHP is not parsing the Vue components, so use Nextcloud's t() Javascript function instead. This commit adds t() as a global variable on the AppController so that it can be passed into components. Also move vue-loader and vue-template-compiler to devDependencies in package.json. Signed-off-by: Tucker McKnight <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1421 +/- ##
============================================
+ Coverage 91.93% 91.94% +0.01%
Complexity 759 759
============================================
Files 64 64
Lines 2776 2769 -7
============================================
- Hits 2552 2546 -6
+ Misses 224 223 -1
Continue to review full report at Codecov.
|
SMillerDev
left a comment
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 fine to me now, build works and no PHP code.
|
Thanks for looking at it, @SMillerDev and @anoymouserver! I should have marked this as a draft, as I pushed it up before I really tested it thoroughly. But it's ready to go now, unless someone has any other concerns. Thanks for catching the PHP code in the Vue template. I added Nextcloud's I'm writing up a Vue component readme that describes how to add more Vue components now. I'm also documenting how to write and run Vue component tests. I'll submit that in a separate PR so that this one can be merged sooner. |
Changed - Added vue and ng-vue packages (#1421) - Reimplemented relative time formatting as a filter (#1450) - Added new `news:updater:update-user` command to update the feeds of a single user (#1360). Signed-off-by: Benjamin Brahmer <[email protected]>
|
@tucker-m would you be able take a look into this to get it into a working state? I checked it myself but don't understand much, if you don't have time anymore I would start to revert the changes. |
|
Hi @Grotax, @SMillerDev, and @JonathanTreffler, sorry for my absence on this issue. I was away for a while, and then managed to lose my two-factor authentication device, locking myself out of my Github account 🤦 so I didn't see the conversation here. Just got back into my account, and am looking over things now. I think I managed to reproduce the error that was happening earlier. It seems to be because of mismatched versions between the vue loader and template compiler. I'll get back to this with a fix. |
|
Just posting an update. I'm still thinking that this is something that dependabot broke. I don't get any errors if I lock the version numbers to what they originally were. I have a new commit here: tucker-m@169936e. I'll keep testing to make sure that there are no compilation problems or runtime errors. |
|
Maybe #1456 which was the only one updating one of the dependencies to its next major version. |
|
It might be that dependabot broke it, but we don't want to stay on old unsupported versions of software so we'll have to find a way to work with never versions too. |
Also adds related parts for compiling Vue components into the existing Javascript bundle.
This is a cleaned-up version of PR #1246, which was only meant to be an experiment and generate discussion. That PR had a lot of extra commits in it for testing things; this PR has only what is necessary.