Change file input on upload license page to a dropzone
Substitutes a Rails-rendered file input with a Vue dropzone component on upload license page. Now the user can use file picker window or drag-n-drop a file onto the form. Because the dropzone is used inside a Ruby form (not inside a Vue form), some changes were made to upload_dropzone component to support this: Allow upload_dropzone to use dynamic input name and to modify its input files property when files are droppped on it. Changelog: changed EE: true
显示
- app/assets/javascripts/vue_shared/components/upload_dropzone/upload_dropzone.vue 36 个添加, 1 个删除...vue_shared/components/upload_dropzone/upload_dropzone.vue
- doc/user/admin_area/license.md 4 个添加, 2 个删除doc/user/admin_area/license.md
- ee/app/assets/javascripts/admin/licenses/new/components/license_new_app.vue 76 个添加, 0 个删除...scripts/admin/licenses/new/components/license_new_app.vue
- ee/app/assets/javascripts/admin/licenses/new/constants.js 10 个添加, 0 个删除ee/app/assets/javascripts/admin/licenses/new/constants.js
- ee/app/assets/javascripts/pages/admin/licenses/new/index.js 18 个添加, 0 个删除ee/app/assets/javascripts/pages/admin/licenses/new/index.js
- ee/app/views/admin/licenses/new.html.haml 3 个添加, 2 个删除ee/app/views/admin/licenses/new.html.haml
- ee/spec/features/admin/licenses/admin_uploads_license_spec.rb 1 个添加, 1 个删除...pec/features/admin/licenses/admin_uploads_license_spec.rb
- ee/spec/frontend/admin/licenses/new/components/license_new_app_spec.js 84 个添加, 0 个删除...end/admin/licenses/new/components/license_new_app_spec.js
- locale/gitlab.pot 12 个添加, 0 个删除locale/gitlab.pot
- spec/frontend/vue_shared/components/upload_dropzone/__snapshots__/upload_dropzone_spec.js.snap 7 个添加, 0 个删除...pload_dropzone/__snapshots__/upload_dropzone_spec.js.snap
- spec/frontend/vue_shared/components/upload_dropzone/upload_dropzone_spec.js 57 个添加, 0 个删除...shared/components/upload_dropzone/upload_dropzone_spec.js
想要评论请 注册 或 登录