Add actions to moderation menu #239

Closed
linafilippova wants to merge 28 commits from gitlab-mr-iid-7 into gitlab-mr-base-iid-7
Member

Closes #4

This MR depends on #238

Closes #4 This MR depends on #238
Owner

I'm getting this error when I try to build from your branch

> vue-element-admin@3.10.0 build:prod /Users/feld/git/admin-fe
> cross-env NODE_ENV=production env_config=prod node build/build.js

Hash: 8a4367532a5cf867d466
Version: webpack 4.29.6
Time: 27401ms
Built at: 03/15/2019 4:58:53 PM
                                  Asset       Size           Chunks  Chunk Names
            static/css/app.b290b9b4.css   12.5 KiB              app  app
     static/css/chunk-49f2.f61f959d.css   1.39 KiB       chunk-49f2
     static/css/chunk-6e81.6aaab273.css  745 bytes       chunk-6e81
     static/css/chunk-73c1.a7e93637.css   1.82 KiB       chunk-73c1
     static/css/chunk-c1fa.0d22684d.css   4.64 KiB       chunk-c1fa
static/css/chunk-elementUI.fa9dff29.css    202 KiB  chunk-elementUI  chunk-elementUI
     static/css/chunk-libs.bd17d456.css   3.49 KiB       chunk-libs  chunk-libs
 static/fonts/element-icons.6f0a763.ttf   10.8 KiB
             static/img/401.089007e.gif    160 KiB
             static/img/404.a57b6f3.png   95.8 KiB
             static/js/7zzA.e1ae1c94.js  374 bytes             7zzA
             static/js/JEtC.f9ba4594.js  388 bytes             JEtC
              static/js/app.68cd498b.js    105 KiB              app  app
       static/js/chunk-49f2.dc874098.js    8.3 KiB       chunk-49f2
       static/js/chunk-6e81.172fac66.js    1.9 KiB       chunk-6e81
       static/js/chunk-73c1.bdcfb711.js   2.59 KiB       chunk-73c1
       static/js/chunk-c1fa.dc55204c.js   7.92 KiB       chunk-c1fa
  static/js/chunk-elementUI.ee4451ec.js    570 KiB  chunk-elementUI  chunk-elementUI
       static/js/chunk-libs.fa444cc5.js    305 KiB       chunk-libs  chunk-libs
          static/js/runtime.fb7e3509.js   3.21 KiB          runtime  runtime
Entrypoint app = static/js/runtime.fb7e3509.js static/css/chunk-elementUI.fa9dff29.css static/js/chunk-elementUI.ee4451ec.js static/css/chunk-libs.bd17d456.css static/js/chunk-libs.fa444cc5.js static/css/app.b290b9b4.css static/js/app.68cd498b.js

ERROR in ./src/views/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/components/Sidebar/Item.vue?vue&type=script&lang=js&)
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: Object.entries is not a function
    at getAttributes (/Users/feld/git/admin-fe/node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js:1:4462)
    at transformJSXElement (/Users/feld/git/admin-fe/node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js:1:5327)
    at PluginPass.JSXElement (/Users/feld/git/admin-fe/node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js:1:6518)
    at newFn (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/visitors.js:193:21)
    at NodePath._call (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at NodePath.call (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:88:12)
    at TraversalContext.visitQueue (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:118:16)
    at TraversalContext.visitMultiple (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:85:17)
    at TraversalContext.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:144:19)
    at Function.traverse.node (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/index.js:94:17)
    at NodePath.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:95:18)
    at TraversalContext.visitQueue (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:118:16)
    at TraversalContext.visitSingle (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:90:19)
    at TraversalContext.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:146:19)
    at Function.traverse.node (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/index.js:94:17)
 @ ./src/views/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& 1:0-197 1:213-216 1:218-412 1:218-412
 @ ./src/views/layout/components/Sidebar/Item.vue
 @ ./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js&
 @ ./src/views/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js&
 @ ./src/views/layout/components/Sidebar/SidebarItem.vue
 @ ./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/components/Sidebar/index.vue?vue&type=script&lang=js&
 @ ./src/views/layout/components/Sidebar/index.vue?vue&type=script&lang=js&
 @ ./src/views/layout/components/Sidebar/index.vue
 @ ./src/views/layout/components/index.js
 @ ./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/Layout.vue?vue&type=script&lang=js&
 @ ./src/views/layout/Layout.vue?vue&type=script&lang=js&
 @ ./src/views/layout/Layout.vue
 @ ./src/router/index.js
 @ ./src/main.js

 Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-element-admin@3.10.0 build:prod: `cross-env NODE_ENV=production env_config=prod node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-element-admin@3.10.0 build:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/feld/.npm/_logs/2019-03-15T21_58_53_116Z-debug.log
I'm getting this error when I try to build from your branch ``` > vue-element-admin@3.10.0 build:prod /Users/feld/git/admin-fe > cross-env NODE_ENV=production env_config=prod node build/build.js Hash: 8a4367532a5cf867d466 Version: webpack 4.29.6 Time: 27401ms Built at: 03/15/2019 4:58:53 PM Asset Size Chunks Chunk Names static/css/app.b290b9b4.css 12.5 KiB app app static/css/chunk-49f2.f61f959d.css 1.39 KiB chunk-49f2 static/css/chunk-6e81.6aaab273.css 745 bytes chunk-6e81 static/css/chunk-73c1.a7e93637.css 1.82 KiB chunk-73c1 static/css/chunk-c1fa.0d22684d.css 4.64 KiB chunk-c1fa static/css/chunk-elementUI.fa9dff29.css 202 KiB chunk-elementUI chunk-elementUI static/css/chunk-libs.bd17d456.css 3.49 KiB chunk-libs chunk-libs static/fonts/element-icons.6f0a763.ttf 10.8 KiB static/img/401.089007e.gif 160 KiB static/img/404.a57b6f3.png 95.8 KiB static/js/7zzA.e1ae1c94.js 374 bytes 7zzA static/js/JEtC.f9ba4594.js 388 bytes JEtC static/js/app.68cd498b.js 105 KiB app app static/js/chunk-49f2.dc874098.js 8.3 KiB chunk-49f2 static/js/chunk-6e81.172fac66.js 1.9 KiB chunk-6e81 static/js/chunk-73c1.bdcfb711.js 2.59 KiB chunk-73c1 static/js/chunk-c1fa.dc55204c.js 7.92 KiB chunk-c1fa static/js/chunk-elementUI.ee4451ec.js 570 KiB chunk-elementUI chunk-elementUI static/js/chunk-libs.fa444cc5.js 305 KiB chunk-libs chunk-libs static/js/runtime.fb7e3509.js 3.21 KiB runtime runtime Entrypoint app = static/js/runtime.fb7e3509.js static/css/chunk-elementUI.fa9dff29.css static/js/chunk-elementUI.ee4451ec.js static/css/chunk-libs.bd17d456.css static/js/chunk-libs.fa444cc5.js static/css/app.b290b9b4.css static/js/app.68cd498b.js ERROR in ./src/views/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/components/Sidebar/Item.vue?vue&type=script&lang=js&) Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: Object.entries is not a function at getAttributes (/Users/feld/git/admin-fe/node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js:1:4462) at transformJSXElement (/Users/feld/git/admin-fe/node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js:1:5327) at PluginPass.JSXElement (/Users/feld/git/admin-fe/node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js:1:6518) at newFn (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/visitors.js:193:21) at NodePath._call (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:53:20) at NodePath.call (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:40:17) at NodePath.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:88:12) at TraversalContext.visitQueue (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:118:16) at TraversalContext.visitMultiple (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:85:17) at TraversalContext.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:144:19) at Function.traverse.node (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/index.js:94:17) at NodePath.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/path/context.js:95:18) at TraversalContext.visitQueue (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:118:16) at TraversalContext.visitSingle (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:90:19) at TraversalContext.visit (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/context.js:146:19) at Function.traverse.node (/Users/feld/git/admin-fe/node_modules/@babel/traverse/lib/index.js:94:17) @ ./src/views/layout/components/Sidebar/Item.vue?vue&type=script&lang=js& 1:0-197 1:213-216 1:218-412 1:218-412 @ ./src/views/layout/components/Sidebar/Item.vue @ ./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js& @ ./src/views/layout/components/Sidebar/SidebarItem.vue?vue&type=script&lang=js& @ ./src/views/layout/components/Sidebar/SidebarItem.vue @ ./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/components/Sidebar/index.vue?vue&type=script&lang=js& @ ./src/views/layout/components/Sidebar/index.vue?vue&type=script&lang=js& @ ./src/views/layout/components/Sidebar/index.vue @ ./src/views/layout/components/index.js @ ./node_modules/babel-loader/lib?cacheDirectory!./node_modules/vue-loader/lib??vue-loader-options!./src/views/layout/Layout.vue?vue&type=script&lang=js& @ ./src/views/layout/Layout.vue?vue&type=script&lang=js& @ ./src/views/layout/Layout.vue @ ./src/router/index.js @ ./src/main.js Build failed with errors. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-element-admin@3.10.0 build:prod: `cross-env NODE_ENV=production env_config=prod node build/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-element-admin@3.10.0 build:prod script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/feld/.npm/_logs/2019-03-15T21_58_53_116Z-debug.log ```
Author
Member

Did you do yarn install before building?
Also, what version of node do you have?

Did you do `yarn install` before building? Also, what version of node do you have?
Author
Member

@shpuld @hj and this one also, if possible

@shpuld @hj and this one also, if possible
Owner

yeah, that happens to me after yarn install. This is node v6.16.0 on MacOS. I can try a newer version.

yeah, that happens to me after `yarn install`. This is node v6.16.0 on MacOS. I can try a newer version.
Author
Member

Try 8.x please

Try 8.x please
Owner

Worked with 10.x which I also had access to.

Can you investigate this sorting bug?

https://bikeshed.party/notice/9gplpUFuQT85xiqhge

edit: I will send the video to you on chat as well

Worked with 10.x which I also had access to. Can you investigate this sorting bug? https://bikeshed.party/notice/9gplpUFuQT85xiqhge edit: I will send the video to you on chat as well
Author
Member

@feld Max fixed the backend for the issue and pushed it and I fixed the frontend. I will ask you to test it again when the backend will be merged.

@feld Max fixed the backend for the issue and pushed it and I fixed the frontend. I will ask you to test it again when the backend will be merged.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
blocked
stale
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/admin-fe!239
No description provided.