rails_admin_dropzone_rails_6 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/CODE_OF_CONDUCT.md +74 -0
  4. data/Gemfile +6 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +83 -0
  7. data/Rakefile +2 -0
  8. data/app/assets/javascripts/rails_admin/rails_admin_dropzone_rails_6.js.erb +1 -0
  9. data/app/assets/stylesheets/rails_admin/rails_admin_dropzone_rails_6.scss +23 -0
  10. data/app/views/.gitkeep +0 -0
  11. data/app/views/rails_admin/main/dropzone.html.haml +29 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/config/locales/mobile_upload.dk.yml +21 -0
  15. data/config/locales/mobile_upload.he.yml +22 -0
  16. data/config/locales/mobile_upload.hr.yml +21 -0
  17. data/config/locales/mobile_upload.ro.yml +22 -0
  18. data/config/locales/multiple-upload.uk_UA.yml +21 -0
  19. data/config/locales/multiple-upload.zh.yml +22 -0
  20. data/config/locales/multiple_upload.af.yml +21 -0
  21. data/config/locales/multiple_upload.by.yml +21 -0
  22. data/config/locales/multiple_upload.cs.yml +22 -0
  23. data/config/locales/multiple_upload.de.yml +21 -0
  24. data/config/locales/multiple_upload.en.yml +22 -0
  25. data/config/locales/multiple_upload.es.yml +21 -0
  26. data/config/locales/multiple_upload.fi.yml +21 -0
  27. data/config/locales/multiple_upload.fr.yml +21 -0
  28. data/config/locales/multiple_upload.gr.yml +21 -0
  29. data/config/locales/multiple_upload.hin.yml +21 -0
  30. data/config/locales/multiple_upload.id.yml +22 -0
  31. data/config/locales/multiple_upload.it.yml +22 -0
  32. data/config/locales/multiple_upload.lt.yml +22 -0
  33. data/config/locales/multiple_upload.nl.yml +21 -0
  34. data/config/locales/multiple_upload.no.yml +22 -0
  35. data/config/locales/multiple_upload.pl.yml +21 -0
  36. data/config/locales/multiple_upload.pt-BR.yml +21 -0
  37. data/config/locales/multiple_upload.ru.yml +21 -0
  38. data/config/locales/multiple_upload.sk.yml +22 -0
  39. data/config/locales/multiple_upload.sv.yml +21 -0
  40. data/config/locales/multiple_upload.tr.yml +21 -0
  41. data/lib/rails_admin_dropzone_rails_6.rb +71 -0
  42. data/lib/rails_admin_dropzone_rails_6/engine.rb +14 -0
  43. data/lib/rails_admin_dropzone_rails_6/version.rb +3 -0
  44. data/rails_admin_dropzone_rails_6.gemspec +32 -0
  45. metadata +170 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 16408a1b5061243aad30356bed1ed080f9aeb5bee9558d0cf4b0a90cec8734b4
4
+ data.tar.gz: 179e11a98b91e7a7b5ccab3212063e116e9e793b91f0164c7c2e91b78d8385b6
5
+ SHA512:
6
+ metadata.gz: c1437218665318809daa1b6e170b1309eab1ffe5b22eacf0ca41728559aa650e9cfa7250ce83f3fa776976e3c754d1eb2d8742747b793f6ead4d2d8456e5bb03
7
+ data.tar.gz: 839d8290c1dc4612675a3d5cfc0b09dfd78f81f7b85cd46a51f0cfd4dc861ee1ba93459ef5a54667befdc32dc0720715f6f5982b3dca7724682d78c0d4578052
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at giuliano@agenciaw3.digital. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rails_admin_dropzone_rails_6.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Giuliano Crivelli
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,83 @@
1
+ # RailsAdminDropzoneRails6
2
+
3
+ Easy to use integration of drag&drop files upload via dropzone.js for rails_admin in rails 6. This gem is an update of [rails_admin_dropzone](https://github.com/luizpicolo/rails_admin_dropzone)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'rails_admin_dropzone_rails_6'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install rails_admin_dropzone_rails_6
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ class Album < ActiveRecord::Base
25
+ has_many :photos
26
+ end
27
+
28
+ class Photo < ActiveRecord::Base
29
+ belongs_to :album
30
+ end
31
+ ```
32
+
33
+ The gem will search for the first model that is in a `has_many` attribute and get the first uploader, **in case the gem is not uploading correctly**, you can add this method `create_associated_image` in your model to set the model and attribute that will upload the images as the example below. *This method is not necessary, only if is not uploading correctly*.
34
+
35
+ ```ruby
36
+ class Album < ActiveRecord::Base
37
+ has_many :photos
38
+
39
+ # Method
40
+ def create_associated_image(image)
41
+ photos.create(image: image)
42
+ end
43
+ end
44
+ ```
45
+
46
+ Add in `config/initialisers/rails_admin.rb`
47
+
48
+ ```ruby
49
+ RailsAdmin.config do |config|
50
+ config.actions do
51
+ dashboard
52
+ index
53
+ new
54
+
55
+ dropzone do
56
+ only YOUR_MODEL # Example Album
57
+ end
58
+
59
+ show
60
+ edit
61
+ delete
62
+ end
63
+ end
64
+ ```
65
+
66
+ ## Development
67
+
68
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
69
+
70
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
71
+
72
+ ## Contributing
73
+
74
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rails_admin_dropzone_rails_6. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/rails_admin_dropzone_rails_6/blob/master/CODE_OF_CONDUCT.md).
75
+
76
+
77
+ ## License
78
+
79
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
80
+
81
+ ## Code of Conduct
82
+
83
+ Everyone interacting in the RailsAdminDropzoneRails6 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rails_admin_dropzone_rails_6/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,23 @@
1
+ @import "dropzone/basic";
2
+
3
+ .dropzone.dz-clickable {
4
+ cursor: pointer;
5
+ border: 2px dashed #bbb;;
6
+ }
7
+
8
+ .dz-filename { display: none !important }
9
+ .dz-preview {
10
+ border: 1px solid #ddd;
11
+ padding: 10px;
12
+ width: auto !important;
13
+ }
14
+
15
+ .dz-message {
16
+ padding: 40px;
17
+ text-align: center;
18
+ }
19
+
20
+ .dz-button {
21
+ border: 0;
22
+ background-color: transparent;
23
+ }
File without changes
@@ -0,0 +1,29 @@
1
+ = stylesheet_link_tag 'rails_admin/rails_admin_dropzone_rails_6'
2
+ = javascript_include_tag 'rails_admin/rails_admin_dropzone_rails_6'
3
+
4
+ :javascript
5
+ $(document).on('rails_admin.dom_ready', function() {
6
+ // disable auto discover
7
+ Dropzone.autoDiscover = true;
8
+ if ($(".dropzone").length){
9
+ var dropzone = new Dropzone (".dropzone", {
10
+ maxFilesize: 256, // Set the maximum file size to 256 MB
11
+ paramName: "#{@object.class.to_s.downcase}[second_attr][]", // Rails expects the file upload to be something like model[field_name]
12
+ addRemoveLinks: false, // Don't show remove links on dropzone itself.
13
+ // Translations
14
+ dictDefaultMessage: "#{I18n.t('admin.actions.dropzone.dictDefaultMessage')}",
15
+ dictFallbackMessage: "#{I18n.t('admin.actions.dropzone.dictFallbackMessage')}",
16
+ dictFallbackText: "#{I18n.t('admin.actions.dropzone.dictFallbackText')}",
17
+ dictFileTooBig: "#{I18n.t('admin.actions.dropzone.dictFileTooBig')}",
18
+ dictInvalidFileType: "#{I18n.t('admin.actions.dropzone.dictInvalidFileType')}",
19
+ dictResponseError: "#{I18n.t('admin.actions.dropzone.dictResponseError')}",
20
+ dictCancelUpload: "#{I18n.t('admin.actions.dropzone.dictCancelUpload')}",
21
+ dictCancelUploadConfirmation: "#{I18n.t('admin.actions.dropzone.dictCancelUploadConfirmation')}",
22
+ dictRemoveFile: "#{I18n.t('admin.actions.dropzone.dictRemoveFile')}",
23
+ dictMaxFilesExceeded: "#{I18n.t('admin.actions.dropzone.dictMaxFilesExceeded')}"
24
+ });
25
+ }
26
+ });
27
+
28
+ = simple_form_for(rails_admin.dropzone_url(@abstract_model.to_param, id: @object.id), html: { class: 'dropzone', multipart: true }) do |f|
29
+ = f.input :id, :as => :hidden, :input_html => { :name => "id", :value => @object.id }
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rails_admin_dropzone_rails_6"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,21 @@
1
+ dk:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Drop filer her for at uploade"
6
+ dictFallbackMessage: "Din browser understøtter ikke drag'n'drop fil uploads."
7
+ dictFallbackText: "Brug venligst fallback formularen nedenfor til at uploade dine filer ligesom i gamle dage."
8
+ dictFileTooBig: "Fil er for stor ({{filesize}}MiB). Max filstørrelse: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Du kan ikke uploade filer af denne type."
10
+ dictResponseError: "Server svarede med {{statusCode}} kode."
11
+ dictCancelUpload: "Annullere upload"
12
+ dictCancelUploadConfirmation: "Er du sikker på du vil annullere denne upload?"
13
+ dictRemoveFile: "Fjern fil"
14
+ dictMaxFilesExceeded: "Du kan ikke uploade flere filer."
15
+
16
+ title: "Multiple Upload"
17
+ menu: "Multiple Upload til %{model_label} '%{object_label}'"
18
+ breadcrumb: "Multiple Upload"
19
+ link: "Multiple Upload"
20
+ bulk_link: "Multiple Upload valgt %{model_label_plural}"
21
+ done: "Multiple Uploadet"
@@ -0,0 +1,22 @@
1
+ he:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "שחרר קבצים כאן בכדי להעלות אותם"
6
+ dictFallbackMessage: "הדפדפן שלך לא תומך בהעלאת קבצים באמצעות גרירה ושחרור."
7
+ dictFallbackText: "בבקשה השתמש בטופס החלופי בכדי להעלות את הקבצים שלך כמו בימים ההם."
8
+ dictFileTooBig: "הקובץ הינו גדול מדי ({{filesize}}MiB). גודל קובץ מקסימלי: {{maxFileSize}}MiB."
9
+ dictInvalidFileType: "לא ניתן להעלות קבצים מהסוג הזה."
10
+ dictResponseError: "השרת הגיב עם קוד {{statusCode}}."
11
+ dictCancelUpload: "ביטול העלאה"
12
+ dictCancelUploadConfirmation: "האם אתה בטוח שאתה רוצה לבטל את ההעלאה?"
13
+ dictRemoveFile: "הסר קובץ"
14
+ dictMaxFilesExceeded: "לא ניתן להעלות עוד קבצים."
15
+
16
+ title: "העלאה מרובה"
17
+ menu: "העלאה מרובה ל - %{model_label} '%{object_label}'"
18
+ breadcrumb: "העלאה מרובה"
19
+ link: "העלאה מרובה"
20
+ bulk_link: "העלאה מרובה נבחרה %{model_label_plural}"
21
+ done: "הועלו קבצים מרובים"
22
+
@@ -0,0 +1,21 @@
1
+ hr:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Dovuci datoteke ovdje za prijenos"
6
+ dictFallbackMessage: "Vaš preglednik ne podržava povlačenje datoteka za prijenos."
7
+ dictFallbackText: "Molimo koristite rezervnu formu za prijenos slika kao u stara vremena."
8
+ dictFileTooBig: "Datoteka je prevelika ({{filesize}}MiB). Maksimalna veličina: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Ne možete prenositi datoteke ovakvog tipa."
10
+ dictResponseError: "Server je odgovorio sa {{statusCode}} kodom."
11
+ dictCancelUpload: "Prekini prijenos"
12
+ dictCancelUploadConfirmation: "Jeste li sigurni da želie prekinuti ovaj prijenos?"
13
+ dictRemoveFile: "Ukloni datoteku"
14
+ dictMaxFilesExceeded: "Više ne možete prenositi datoteke."
15
+
16
+ title: "Višestruki prijenos"
17
+ menu: "Višestruki prijenos za %{model_label} '%{object_label}'"
18
+ breadcrumb: "Višestruki prijenos"
19
+ link: "Višestruki prijenos"
20
+ bulk_link: "Višestruki prijenos odabran %{model_label_plural}"
21
+ done: "Višestruki prijenos završen"
@@ -0,0 +1,22 @@
1
+ ro:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Pune fişierele aici cu drag'n'drop pentru încărcare"
6
+ dictFallbackMessage: "Browser-ul nu suportă drag'n'drop pentru încărcarea fişierelor."
7
+ dictFallbackText: "Foloseşte formularul de mai jos pentru a încărca fişierele ca pe vremuri."
8
+ dictFileTooBig: "Fişierul este prea mare ({{filesize}}MiB). Dimensiune maximă: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Nu poţi încărca fişiere de acest tip."
10
+ dictResponseError: "Serverul a răspuns cu codul {{statusCode}}."
11
+ dictCancelUpload: "Anulează încărcarea."
12
+ dictCancelUploadConfirmation: "Eşti sigur că vrei să anulezi?"
13
+ dictRemoveFile: "Elimină fişierul"
14
+ dictMaxFilesExceeded: "Nu mai poţi încărca alte fişiere."
15
+
16
+ title: "Încărcare multiplă"
17
+ menu: "Încărcare multiplă pentru %{model_label} '%{object_label}'"
18
+ breadcrumb: "Încărcare multiplă"
19
+ link: "Încărcare multiplă"
20
+ bulk_link: "Încărcare multiplă selectată %{model_label_plural}"
21
+ done: "Încărcare finalizată"
22
+
@@ -0,0 +1,21 @@
1
+ uk_UA:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Перемістіть файли сюди для завантаження"
6
+ dictFallbackMessage: "Ваш браузер не підтримує завантаження файлів перетягуванням"
7
+ dictFallbackText: "Будь ласка, скористайтесь формою для завантаження файлів"
8
+ dictFileTooBig: "Файл надто великий ({{filesize}}Мб). Максимальний розмір: {{maxFilesize}}Мб."
9
+ dictInvalidFileType: "Ви не можете завантажувати файли цього типу"
10
+ dictResponseError: "Сервер повернув {{statusCode}} код"
11
+ dictCancelUpload: "Скасувати завантаження"
12
+ dictCancelUploadConfirmation: "Ви справді хочете скасувати завантаження?"
13
+ dictRemoveFile: "Видалити файл"
14
+ dictMaxFilesExceeded: "Ви не можете завантажувати більше файлів."
15
+
16
+ title: "Множинне завантаження"
17
+ menu: "Множинне завантаження для %{model_label} '%{object_label}'"
18
+ breadcrumb: "Множинне завантаження"
19
+ link: "Множинне завантаження"
20
+ bulk_link: "Множинне завантаження обраних %{model_label_plural}"
21
+ done: "Множинне завантаження завершено"
@@ -0,0 +1,22 @@
1
+ zh:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "拖曳上載檔案"
6
+ dictFallbackMessage: "你的瀏覽器不支援拖曳上載功能。"
7
+ dictFallbackText: "請使用傳統上載表格上載。"
8
+ dictFileTooBig: "檔案容量過大({{filesize}}MiB)。最大{{maxFilesize}}MiB。"
9
+ dictInvalidFileType: "不支援此類檔案。"
10
+ dictResponseError: "伺服器回應:{{statusCode}}。"
11
+ dictCancelUpload: "取消上載"
12
+ dictCancelUploadConfirmation: "確定取消上載?"
13
+ dictRemoveFile: "移除檔案"
14
+ dictMaxFilesExceeded: "檔案上載數量已達上限。"
15
+
16
+ title: "多項上載"
17
+ menu: "已選 %{model_label} '%{object_label}'"
18
+ breadcrumb: "多項上載"
19
+ link: "多項上載"
20
+ bulk_link: "已選 %{model_label_plural}"
21
+ done: "多項上載"
22
+
@@ -0,0 +1,21 @@
1
+ af:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Drop vyl hier op te laai"
6
+ dictFallbackMessage: "Jou webblaaier ondersteun nie sleep en drop vyl wat gelaai is."
7
+ dictFallbackText: "Gebruik asseblief die onderstaande vorm om jou vyl op te laai soos in die ou dae."
8
+ dictFileTooBig: "Vyl is te groot ({{filesize}}MiB). Maksimum vylgrootte: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Jy kan nie hierdie soort vyl op te laai."
10
+ dictResponseError: "Bedeiner het {{statusCode}} kode ge-gee."
11
+ dictCancelUpload: "Kanselleer oplaai"
12
+ dictCancelUploadConfirmation: "Is jy seker dat jy wil hierdie oplaai Kanselleer?"
13
+ dictRemoveFile: "Berwyder vyl"
14
+ dictMaxFilesExceeded: "Jy kan nie meer vyle op te laai."
15
+
16
+ title: "Veelvuldige Oplaai"
17
+ menu: "Veelvuldige Oplaai vir %{model_label} '%{object_label}'"
18
+ breadcrumb: "Veelvuldige Oplaai"
19
+ link: "Veelvuldige Oplaai"
20
+ bulk_link: "Veelvuldige Oplaai gekeur %{model_label_plural}"
21
+ done: "Veelvuldige Oplaai"
@@ -0,0 +1,21 @@
1
+ by:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Перацягнуць файлы для загрузкі"
6
+ dictFallbackMessage: "Ваш браўзэр не падтрымлівае загрузку файлаў перацягваннем."
7
+ dictFallbackText: "Калі ласка, скарыстайцеся формай для загрузкі файлаў"
8
+ dictFileTooBig: "Файл занадта вялікі ({{filesize}}Мб). Максімальны памер: {{maxFilesize}}Мб."
9
+ dictInvalidFileType: "Вы не можаце загружаць файлы дадзенага тыпу."
10
+ dictResponseError: "Сервер адказаў статусам {{statusCode}}"
11
+ dictCancelUpload: "Скасаваць загрузку"
12
+ dictCancelUploadConfirmation: "Вы ўпэўнены, што хочаце скасаваць загрузку?"
13
+ dictRemoveFile: "Выдаліць файл"
14
+ dictMaxFilesExceeded: "Вы не можаце загрузіць больш файлаў."
15
+
16
+ title: "Множная загрузка"
17
+ menu: "Множная загрузка для %{model_label} '%{object_label}'"
18
+ breadcrumb: "Множная загрузка"
19
+ link: "Множная загрузка"
20
+ bulk_link: "Множная загрузка %{model_label_plural}"
21
+ done: "Множная загрузка"
@@ -0,0 +1,22 @@
1
+ cs:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Přetáhněte sem soubory pro jejich nahrání"
6
+ dictFallbackMessage: "Váš prohlížeč nepodporuje nahrávání souborů přetáhnutím."
7
+ dictFallbackText: "Prosím použijte níže uvedený formulář a nahrajte soubory jako za starých časů."
8
+ dictFileTooBig: "Soubor je příliš velký: ({{filesize}}MiB). Maximální velikost souboru: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Soubory tohoto typu nelze nahrát."
10
+ dictResponseError: "Server odpověděl kódem {{statusCode}}."
11
+ dictCancelUpload: "Zrušit nahrávání"
12
+ dictCancelUploadConfirmation: "Opravdu chcete zrušit nahrávání souboru?"
13
+ dictRemoveFile: "Odebrat soubor"
14
+ dictMaxFilesExceeded: "Dosáhli jste maximálního počtu souborů."
15
+
16
+ title: "Hromadné nahrávání"
17
+ menu: "Hromadné nahrávání pro %{model_label} '%{object_label}'"
18
+ breadcrumb: "Hromadné nahrávání"
19
+ link: "Hromadné nahrávání"
20
+ bulk_link: "Hromadné nahrávání zvolených %{model_label_plural}"
21
+ done: "Hromadné nahrávání"
22
+
@@ -0,0 +1,21 @@
1
+ de:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Ziehe die Dateien hier hin, um sie hochzuladen"
6
+ dictFallbackMessage: "Ihr Browser unterstützt kein Drag-and-Drop hochladen."
7
+ dictFallbackText: "Bitte benutzen Sie das untenstehende Formular um die Dateien wie früher hochzuladen."
8
+ dictFileTooBig: "Die Datei ist zu groß ({{filesize}}MiB). Max Dateigröße: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Sie können keine Dateien dieses Typs hochladen."
10
+ dictResponseError: "Server reagiert mit {{statusCode}} Code."
11
+ dictCancelUpload: "Upload abbrechen"
12
+ dictCancelUploadConfirmation: "Sind Sie sicher, dass Sie diesen Upload abbrechen möchten?"
13
+ dictRemoveFile: "Datei löschen"
14
+ dictMaxFilesExceeded: "Sie können keine weiteren Dateien hochladen."
15
+
16
+ title: "Mehrere hochladen"
17
+ menu: "Mehrere hochladen für %{model_label} '%{object_label}'"
18
+ breadcrumb: "Mehrere hochladen"
19
+ link: "Mehrere hochladen"
20
+ bulk_link: "Mehrere hochladen ausgewählt %{model_label_plural}"
21
+ done: "Mehrere hochgeladen"
@@ -0,0 +1,22 @@
1
+ en:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Drop files here to upload"
6
+ dictFallbackMessage: "Your browser does not support drag'n'drop file uploads."
7
+ dictFallbackText: "Please use the fallback form below to upload your files like in the olden days."
8
+ dictFileTooBig: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "You can't upload files of this type."
10
+ dictResponseError: "Server responded with {{statusCode}} code."
11
+ dictCancelUpload: "Cancel upload"
12
+ dictCancelUploadConfirmation: "Are you sure you want to cancel this upload?"
13
+ dictRemoveFile: "Remove file"
14
+ dictMaxFilesExceeded: "You can not upload any more files."
15
+
16
+ title: "Multiple Upload"
17
+ menu: "Multiple Upload for %{model_label} '%{object_label}'"
18
+ breadcrumb: "Multiple Upload"
19
+ link: "Multiple Upload"
20
+ bulk_link: "Multiple Upload selected %{model_label_plural}"
21
+ done: "Multiple Uploaded"
22
+
@@ -0,0 +1,21 @@
1
+ es:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Arrastra archivos aquí para subirlos"
6
+ dictFallbackMessage: "Tu navegador no soporta subir archivos arrastrándolos."
7
+ dictFallbackText: "Por favor usa el formulario para subir tus archivos como en los viejos tiempos."
8
+ dictFileTooBig: "El archivo es muy grande ({{filesize}}MiB). Tamaño máximo: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "No puedes subir archivos de este tipo."
10
+ dictResponseError: "El servidor respondió con código {{statusCode}}."
11
+ dictCancelUpload: "Cancelar subida"
12
+ dictCancelUploadConfirmation: "¿Estas seguro que quieres cancelar esta subida?"
13
+ dictRemoveFile: "Eliminar archivo"
14
+ dictMaxFilesExceeded: "No puedes subir mas archivos."
15
+
16
+ title: "Subida múltiple"
17
+ menu: "Subida múltiple para %{model_label} '%{object_label}'"
18
+ breadcrumb: "Subida múltiple"
19
+ link: "Subida múltiple"
20
+ bulk_link: "Subida múltiple seleccionada %{model_label_plural}"
21
+ done: "Subida finalizada"
@@ -0,0 +1,21 @@
1
+ fi:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Pudota tiedostot tähän ladataksesi"
6
+ dictFallbackMessage: "Selaimesi ei tue 'raahaa ja pudota' tiedostojen latausta."
7
+ dictFallbackText: "Ole hyvä ja käytä perinteistä lomaketta tiedostojen lataamiseksi."
8
+ dictFileTooBig: "Tiedosto on liian suuri ({{filesize}}MiB). Maksimikoko on: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Et voi ladata tätä tyyppiä olevia tiedostoja."
10
+ dictResponseError: "Palvelin vastasi {{statusCode}} koodilla."
11
+ dictCancelUpload: "Keskeytä lataus"
12
+ dictCancelUploadConfirmation: "Haluatko varmasti keskeyttää latauksen?"
13
+ dictRemoveFile: "Poista tiedosto"
14
+ dictMaxFilesExceeded: "Et voi ladata lisää tiedostoja."
15
+
16
+ title: "Usean tiedoston lataus"
17
+ menu: "Usean tiedoston lataus %{model_label} '%{object_label}'"
18
+ breadcrumb: "Usean tiedoston lataus"
19
+ link: "Usean tiedoston lataus"
20
+ bulk_link: "Usean tiedoston lataus valittu %{model_label_plural}"
21
+ done: "Tiedostot ladattu"
@@ -0,0 +1,21 @@
1
+ fr:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Déposez des fichiers ici pour les téléverser"
6
+ dictFallbackMessage: "Votre navigateur ne supporte pas les téléversements en glisser/déposer."
7
+ dictFallbackText: "Veuillez utiliser le formulaire pour téléverser vos fichiers comme dans l'ancien temps."
8
+ dictFileTooBig: "Le fichier est trop gros : ({{filesize}}MiB). Taille maximum: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Vous ne pouvez pas téléverser de fichiers de ce type."
10
+ dictResponseError: "Le serveur à renvoyé l'erreur : {{statusCode}}."
11
+ dictCancelUpload: "Annuler le téléversement"
12
+ dictCancelUploadConfirmation: "Êtes-vous sûr de vouloir annuler ce téléversement ?"
13
+ dictRemoveFile: "Supprimer le fichier"
14
+ dictMaxFilesExceeded: "Vous ne pouvez plus téléverser d'autres fichiers."
15
+
16
+ title: "Téléversements multiples"
17
+ menu: "Téléversments multiples pour %{model_label} '%{object_label}'"
18
+ breadcrumb: "Téléversements multiples"
19
+ link: "Téléversements multiples"
20
+ bulk_link: "Téléversements multiples sélectionné %{model_label_plural}"
21
+ done: "Téléversements réalisés"
@@ -0,0 +1,21 @@
1
+ gr:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Αφήστε εδώ τα αρχεία σας για ανέβασμα"
6
+ dictFallbackMessage: "Ο πλοηγητής σας δεν υποστηρίζει αυτήν την λειτουργία."
7
+ dictFallbackText: "Παρακαλώ χρησιμοποιήστε την πιό κάτω φόρμα για ανεβάσετε τα αρχεία σας όπως και τις παλιές ημέρες."
8
+ dictFileTooBig: "Το αρχείο είναι πολύ μεγάλο ({{filesize}}MiB). Μέγιστο μέγεθος: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Δεν μπορείτε να ανεβάσετε αρχεία αυτού του τύπου."
10
+ dictResponseError: "Ο σέρβερ απάντησε με τον κωδικό {{statusCode}} ."
11
+ dictCancelUpload: "Ακύρωση ανεβάσματος αρχείου"
12
+ dictCancelUploadConfirmation: "Είστε σίγουροι πως θέλετε να ακυρώσετε το ανέβασμα του αρχείου;"
13
+ dictRemoveFile: "Διαγραφή αρχείου"
14
+ dictMaxFilesExceeded: "Δεν μπορείτε να ανεβάσετε άλλα αρχεία."
15
+
16
+ title: "Πολλαπλό ανέβασμα αρχείων"
17
+ menu: "Πολλαπλό ανέβασμα αρχείων για %{model_label} '%{object_label}'"
18
+ breadcrumb: "Πολλαπλό ανέβασμα αρχείων"
19
+ link: "Πολλαπλό ανέβασμα αρχείων"
20
+ bulk_link: "Επιλέχθηκε πολλαπλό ανέβασμα αρχείων %{model_label_plural}"
21
+ done: "Τα πολλαπλά αρχεία έχουν ανέβει"
@@ -0,0 +1,21 @@
1
+ hin:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "अपलोड करने के लिए फ़ाइलें यहां छोड़ें"
6
+ dictFallbackMessage: "आपका ब्राउज़र ड्रैग 'न ' ड्रॉप फाइल अपलोड का समर्थन नहीं करता।"
7
+ dictFallbackText: "पुराने दिनों की तरह अपनी फाइल को अपलोड करने के लिए नीचे के वापस आने के फार्म का उपयोग करें।"
8
+ dictFileTooBig: "फाइल इस तू बिग ({{फिलेसिज}}मिब). मैक्स फिलेसिज: {{मैक्सफिलेसिज }}मिब ."
9
+ dictInvalidFileType: "आप इस प्रकार की फ़ाइलों को अपलोड नहीं कर सकते।"
10
+ dictResponseError: "सर्वर {{स्टेटस कोड }} कोड के साथ जवाब दिया।"
11
+ dictCancelUpload: "रद्द अपलोड"
12
+ dictCancelUploadConfirmation: "क्या आप वाकई इस अपलोड रद्द करना चाहते हैं?"
13
+ dictRemoveFile: "फ़ाइल को हटाएं"
14
+ dictMaxFilesExceeded: "आप किसी भी अधिक फ़ाइलों को अपलोड नहीं कर सकते।"
15
+
16
+ title: "अनेक अपलोड"
17
+ menu: "अनेक अपलोड फॉर %{मॉडल _लेबल} '%{ऑब्जेक्ट _लेबल}'"
18
+ breadcrumb: "अनेक अपलोड"
19
+ link: "अनेक अपलोड"
20
+ bulk_link: "अनेक अपलोड सिलेक्टेड %{मॉडल _लेबल_प्लुरल}"
21
+ done: "अनेक अपलोड"
@@ -0,0 +1,22 @@
1
+ id:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Drop berkas di sini untuk mengunggah."
6
+ dictFallbackMessage: "Browser Anda tidak mendukung unggahan berkas secara drag'n'drop."
7
+ dictFallbackText: "Silahkan gunakan form alternatif di bawah ini untuk menunggah berkas Anda seperti zaman dulu."
8
+ dictFileTooBig: "Ukuran berkas terlalu besar ({{filesize}}MiB). Ukuran berkas maksimal: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Anda tidak bisa mengunggah berkas dengan tipe ini."
10
+ dictResponseError: "Server merespon dengan kode {{statusCode}}."
11
+ dictCancelUpload: "Batalkan unggahan"
12
+ dictCancelUploadConfirmation: "Apakah Anda yakin untuk membatalkan unggahan ini?"
13
+ dictRemoveFile: "Hapus berkas"
14
+ dictMaxFilesExceeded: "Anda tidak bisa menunggah berkas lagi."
15
+
16
+ title: "Unggahan multipel"
17
+ menu: "Unggahan multipel untuk %{model_label} '%{object_label}'"
18
+ breadcrumb: "Unggahan multipel"
19
+ link: "Unggahan multipel"
20
+ bulk_link: "Unggahan multipel terpilih %{model_label_plural}"
21
+ done: "Multipel terunggah"
22
+
@@ -0,0 +1,22 @@
1
+ it:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Sposta qui i file per caricarli"
6
+ dictFallbackMessage: "Il tuo browser non supporta il caricamento via drag'n'drop."
7
+ dictFallbackText: "Per favore, usa il form sotto per caricare i file come ai vecchi tempi."
8
+ dictFileTooBig: "Il file è troppo grande ({{filesize}}MiB). Dimensione massima: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Non puoi caricare file di questo tipo."
10
+ dictResponseError: "Il server ha ritornato {{statusCode}}."
11
+ dictCancelUpload: "Annulla"
12
+ dictCancelUploadConfirmation: "Sei sicuro di voler annullare questo caricamento?"
13
+ dictRemoveFile: "Rimuovi file"
14
+ dictMaxFilesExceeded: "Non puoi più caricare file."
15
+
16
+ title: "Caricamento multiplo"
17
+ menu: "Caricamento multiplo per %{model_label} '%{object_label}'"
18
+ breadcrumb: "Caricamento multiplo"
19
+ link: "Caricamento multiplo"
20
+ bulk_link: "Caricamento multiplo selezionato %{model_label_plural}"
21
+ done: "Caricamento completato"
22
+
@@ -0,0 +1,22 @@
1
+ lt:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Norėdami įkelti bylas meskite čia"
6
+ dictFallbackMessage: "Jūsų naršyklė nepalaiko temp ir mesk funkcijos bylų įkėlimui."
7
+ dictFallbackText: "Kviečiame naudotis atsargine įkėlimo forma, kaip senais laikais."
8
+ dictFileTooBig: "Byla per didelė ({{filesize}}MiB). Didžiausias bylos dydis: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Jūs negalite įkelti šio tipo failų."
10
+ dictResponseError: "Serveris atsakė {{statusCode}} kodu."
11
+ dictCancelUpload: "Atšaukti įkėlimą"
12
+ dictCancelUploadConfirmation: "Ar jūs esate tikri, jog norite atšaukti įkelimą?"
13
+ dictRemoveFile: "Pašalinti bylą"
14
+ dictMaxFilesExceeded: "Jūs, daugiau bylų negalite įkelti."
15
+
16
+ title: "Daugelio bylų įkelimas"
17
+ menu: "Daugelio bylų įkėlimas dėl %{model_label} '%{object_label}'"
18
+ breadcrumb: "Daugelio bylų įkėlimas"
19
+ link: "Daugelio bylų įkėlimas"
20
+ bulk_link: "Daugelio bylų %{model_label_plural}"
21
+ done: "Bylos įkeltos"
22
+
@@ -0,0 +1,21 @@
1
+ nl:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Sleep de bestanden om ze te uploaden"
6
+ dictFallbackMessage: "Je browser ondersteunt geen slepen van bestanden."
7
+ dictFallbackText: "Gebruik alsjeblieft de ouderwetse methode om ze te uploaden."
8
+ dictFileTooBig: "Bestand te groot ({{filesize}}MiB). Max grootte: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Je kan dit type bestand niet uploaden."
10
+ dictResponseError: "Server antwoordde met de code: {{statusCode}}."
11
+ dictCancelUpload: "Upload stoppen"
12
+ dictCancelUploadConfirmation: "Weet je zeker dat je de upload wil stoppen?"
13
+ dictRemoveFile: "Bestand verwijderen"
14
+ dictMaxFilesExceeded: "Je kan niet meer bestanden uploaden."
15
+
16
+ title: "Meerdere Uploads"
17
+ menu: "Meerdere Uploads voor %{model_label} '%{object_label}'"
18
+ breadcrumb: "Meerdere Uploaden"
19
+ link: "Meerdere Uploads"
20
+ bulk_link: "Meerdere uploads geselecteerd %{model_label_plural}"
21
+ done: "Meerderen geupload"
@@ -0,0 +1,22 @@
1
+ !!str no:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Slippe filer her for å laste opp"
6
+ dictFallbackMessage: "Nettleseren din støtter ikke dra og slipp filopplasting."
7
+ dictFallbackText: "Vennligst bruk fallback skjemaet nedenfor til å laste opp filer som i gamle dager."
8
+ dictFileTooBig: "Filen er for stor ({{filesize}}MiB). Maksimal filstørrelse: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Du kan ikke laste opp filer av denne typen."
10
+ dictResponseError: "Serveren svarte med {{statusCode}} kode."
11
+ dictCancelUpload: "Avbryte opplastingen"
12
+ dictCancelUploadConfirmation: "Er du sikker på at du vil avbryte denne opplastingen?"
13
+ dictRemoveFile: "Fjern fil"
14
+ dictMaxFilesExceeded: "Du kan ikke laste opp flere filer."
15
+
16
+ title: "Flere Opplasting"
17
+ menu: "Flere Opplasting til %{model_label} '%{object_label}'"
18
+ breadcrumb: "Flere Opplasting"
19
+ link: "Flere Opplasting"
20
+ bulk_link: "Flere Opplasting valgt %{model_label_plural}"
21
+ done: "Flere filer lastet opp"
22
+
@@ -0,0 +1,21 @@
1
+ pl:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Upuść pliki tutaj, żeby przesłać"
6
+ dictFallbackMessage: "Twoja przeglądarka nie wspiera przesyłania plików metodą drag'n'drop."
7
+ dictFallbackText: "Proszę skorzystać z zastępczego poniżej formularza, aby przesłać pliki tak jak w dawnych czasach."
8
+ dictFileTooBig: "Plik jest zbyt duży ({{filesize}}MiB). Max rozmiar pliku: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Nie można przesłać plików tego typu."
10
+ dictResponseError: "Serwer zgłosił {{statusCode}} kod."
11
+ dictCancelUpload: "Anuluj przesyłanie"
12
+ dictCancelUploadConfirmation: "Czy na pewno chcesz anulować przesyłanie?"
13
+ dictRemoveFile: "Usuń plik"
14
+ dictMaxFilesExceeded: "Nie możesz przesłać więcej plików."
15
+
16
+ title: "Prześlij kilka plików"
17
+ menu: "Prześlij kilka plików dla %{model_label} '%{object_label}'"
18
+ breadcrumb: "Prześlij kilka plików"
19
+ link: "Prześlij kilka plików"
20
+ bulk_link: "Zaznaczono przesyłanie kilku plików %{model_label_plural}"
21
+ done: "Kilka plików przesłano"
@@ -0,0 +1,21 @@
1
+ pt-BR:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Clique ou arraste arquivos aqui para enviar"
6
+ dictFallbackMessage: "Seu navegador não suporta Drag and Drop para upload de arquivos."
7
+ dictFallbackText: "Por favor, use o formulário abaixo para fazer upload de seus arquivos, como nos velhos tempos."
8
+ dictFileTooBig: "Este arquivo é muito grande ({{filesize}}MiB). Máximo permitído: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Você não pode fazer upload deste tipo de arquivo"
10
+ dictResponseError: "O servidor respondeu com o código {{statusCode}}."
11
+ dictCancelUpload: "Cancelar"
12
+ dictCancelUploadConfirmation: "Você esta certo que deseja cancelar este upload?"
13
+ dictRemoveFile: "Remover"
14
+ dictMaxFilesExceeded: "Você não pode fazer upload de mais arquivos"
15
+
16
+ title: "Envio de imagens"
17
+ menu: "Enviar imagens para %{model_label} '%{object_label}'"
18
+ breadcrumb: "Envio de imagens"
19
+ link: "Envio de imagens"
20
+ bulk_link: "Envio de imagens selecionado %{model_label_plural}"
21
+ done: "Imagens enviadas"
@@ -0,0 +1,21 @@
1
+ ru:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Перетащите файлы для загрузки"
6
+ dictFallbackMessage: "Ваш браузер не поддерживает загрузку файлов перетаскиванием."
7
+ dictFallbackText: "Пожалуйста, воспользуйтесь формой для загрузки файлов"
8
+ dictFileTooBig: "Файл слишком большой ({{filesize}}Мб). Максимальный размер: {{maxFilesize}}Мб."
9
+ dictInvalidFileType: "Вы не можете загружать файлы данного типа."
10
+ dictResponseError: "Сервер ответил статусом {{statusCode}}"
11
+ dictCancelUpload: "Отменить загрузку"
12
+ dictCancelUploadConfirmation: "Вы уверены, что хотите отменить загрузку?"
13
+ dictRemoveFile: "Удалить файл"
14
+ dictMaxFilesExceeded: "Вы не можете загрузить большее количество файлов."
15
+
16
+ title: "Множественная загрузка"
17
+ menu: "Множественная загрузка для %{model_label} '%{object_label}'"
18
+ breadcrumb: "Множественная загрузка"
19
+ link: "Множественная загрузка"
20
+ bulk_link: "Множественная загрузка %{model_label_plural}"
21
+ done: "Множественная загрузка завершена"
@@ -0,0 +1,22 @@
1
+ sk:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Pretiahnite súbory sem pre ich nahranie."
6
+ dictFallbackMessage: "Váš prehliadač nepodporuje nahrávanie súborov pretiahnutím"
7
+ dictFallbackText: "Prosím použite nizšie uvedený formulár pre nahranie súborov ako za starých časov."
8
+ dictFileTooBig: "Súbor je príliš veľký ({{filesize}}MiB). Maximálna veľkosť súboru: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Nemôžete nahrávat súbory tohto typu."
10
+ dictResponseError: "Server odpovedal kódom {{statusCode}}."
11
+ dictCancelUpload: "Zrušiť nahrávanie"
12
+ dictCancelUploadConfirmation: "Ste si istý že chcete prerušit nahrávanie ?"
13
+ dictRemoveFile: "Zmazať súbor"
14
+ dictMaxFilesExceeded: "Nemôžete už nahrávat ďalšie súbory."
15
+
16
+ title: "Hromadné nahrávanie"
17
+ menu: "Hromadné nahrávanie pre %{model_label} '%{object_label}'"
18
+ breadcrumb: "Hromadné nahrávanie"
19
+ link: "Hromadné nahrávanie"
20
+ bulk_link: "Hromadné nahrávanie vybrané %{model_label_plural}"
21
+ done: "Hromadné nahrávanie"
22
+
@@ -0,0 +1,21 @@
1
+ sv:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Släpp filen här för att ladda upp"
6
+ dictFallbackMessage: "Din webbläsare stöder inte dra och släpp uppladdningar."
7
+ dictFallbackText: "Använd reserv formuläret nedan för att ladda upp dina filer."
8
+ dictFileTooBig: "Fil är för stor ({{filesize}}MiB). Maximal filstorlek: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Du kan inte ladda upp denna typ av fil"
10
+ dictResponseError: "Servern svarade med kod {{statusCode}}."
11
+ dictCancelUpload: "Avbryta uppladdningen"
12
+ dictCancelUploadConfirmation: "Vill du ha avbryta uppladdningen?"
13
+ dictRemoveFile: "Ta bort fil"
14
+ dictMaxFilesExceeded: "Du kan inte ladda upp fler filer."
15
+
16
+ title: "Flera Uppladdningar"
17
+ menu: "Flera uppladdningar för %{model_label} '%{object_label}'"
18
+ breadcrumb: "Flera Uppladdningar"
19
+ link: "Flera Uppladdningar"
20
+ bulk_link: "Flera uppladdningar valda %{model_label_plural}"
21
+ done: "Flera Uppladdningar"
@@ -0,0 +1,21 @@
1
+ en:
2
+ admin:
3
+ actions:
4
+ dropzone:
5
+ dictDefaultMessage: "Dosyalarınızı buraya sürükleyin"
6
+ dictFallbackMessage: "Tarayıcınız sürükleyerek dosya yüklemeyi desteklemiyor."
7
+ dictFallbackText: "Dosyanızı yüklemek için aşağıdaki alternatif yöntemi kullanabilirsiniz."
8
+ dictFileTooBig: "Dosyanız çok büyük ({{filesize}}MiB). Maksimum dosya boyutu: {{maxFilesize}}MiB."
9
+ dictInvalidFileType: "Bu uzantılı dosyaları yükleyemezsiniz."
10
+ dictResponseError: "Sunucu {{statusCode}} yanıt kodunu döndü."
11
+ dictCancelUpload: "Yüklemeyi iptal et"
12
+ dictCancelUploadConfirmation: "Yüklemeyi iptal etmek istediğinizden emin misiniz?"
13
+ dictRemoveFile: "Dosyayı sil"
14
+ dictMaxFilesExceeded: "Daha fazla dosya yükleyemezsiniz."
15
+
16
+ title: "Çoklu Yükleme"
17
+ menu: "%{model_label} '%{object_label}' için çoklu yükleme"
18
+ breadcrumb: "Çoklu Yükleme"
19
+ link: "Çoklu Yükleme"
20
+ bulk_link: "Çoklu Yükleme Seçildi %{model_label_plural}"
21
+ done: "Çoklu Yükleme Başarılı"
@@ -0,0 +1,71 @@
1
+ require "simple_form"
2
+ require "rails_admin_dropzone_rails_6/engine"
3
+
4
+ module RailsAdminDropzoneRails6
5
+ end
6
+
7
+ require "rails_admin/config/actions"
8
+
9
+ module RailsAdmin
10
+ module Config
11
+ module Actions
12
+ class Dropzone < Base
13
+ RailsAdmin::Config::Actions.register(self)
14
+ register_instance_option :member do
15
+ true
16
+ end
17
+
18
+ register_instance_option :link_icon do
19
+ 'icon-upload'
20
+ end
21
+
22
+ register_instance_option :http_methods do
23
+ [:get, :post]
24
+ end
25
+
26
+ register_instance_option :controller do
27
+ Proc.new do
28
+ @response = {}
29
+
30
+ if request.post?
31
+ @object = @abstract_model.model.find(params[:id])
32
+ @params = params[@abstract_model.param_key]
33
+
34
+ if @params.present?
35
+ @params[:second_attr].each do |image|
36
+ if @object.class.method_defined?("create_associated_image")
37
+ if @object.create_associated_image(image)
38
+ render json: { message: 'success', fileID: '1' }, status: 200
39
+ else
40
+ render json: {
41
+ error: @object.dropzone_association.errors
42
+ .full_messages.join(',')
43
+ }, status: 400
44
+ end
45
+ else
46
+ if @object.method(
47
+ @abstract_model.model.reflect_on_all_associations(:has_many)
48
+ .first.name
49
+ ).call().create(
50
+ @object.method(
51
+ @abstract_model.model.reflect_on_all_associations(:has_many)
52
+ .first.name
53
+ ).call().model.uploaders.first.first => image
54
+ )
55
+ render json: { message: 'success', fileID: '1' }, status: 200
56
+ else
57
+ render json: {
58
+ error: @object.dropzone_association.errors
59
+ .full_messages.join(',')
60
+ }, status: 400
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,14 @@
1
+ require 'dropzonejs-rails'
2
+ require 'simple_form'
3
+ require 'jquery-rails'
4
+
5
+ module RailsAdminDropzoneRails6
6
+ class Engine < ::Rails::Engine
7
+ initializer 'rails_admin_dropzone_rails_6_assets' do |app|
8
+ app.config.assets.precompile += %w(
9
+ rails_admin/rails_admin_dropzone_rails_6.js
10
+ rails_admin/rails_admin_dropzone_rails_6.css
11
+ )
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module RailsAdminDropzoneRails6
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,32 @@
1
+ require_relative 'lib/rails_admin_dropzone_rails_6/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "rails_admin_dropzone_rails_6"
5
+ spec.version = RailsAdminDropzoneRails6::VERSION
6
+ spec.authors = ["Giuliano Crivelli"]
7
+ spec.email = ["giulianocrivelli@hotmail.com"]
8
+
9
+ spec.summary = "RailsAdmin dropzone.js for Rails 6"
10
+ spec.description = "Easy to use integration of drag&drop files upload via dropzone.js for RailsAdmin with improvements"
11
+ spec.homepage = "https://github.com/thefalked/rails_admin_dropzone_rails_6"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_dependency "simple_form", "~> 5.0.2"
27
+ spec.add_dependency "dropzonejs-rails", "~> 0.8.5"
28
+ spec.add_dependency 'jquery-rails', ['>= 3.0', '< 5']
29
+
30
+ spec.add_development_dependency "rails", "~> 6.0.3", ">= 6.0.3.3"
31
+ spec.add_development_dependency "bundler", "~> 2.1.4"
32
+ end
metadata ADDED
@@ -0,0 +1,170 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_admin_dropzone_rails_6
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Giuliano Crivelli
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-10-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: simple_form
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.0.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: dropzonejs-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.5
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.8.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: jquery-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '5'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '3.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '5'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rails
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 6.0.3
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 6.0.3.3
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: 6.0.3
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 6.0.3.3
81
+ - !ruby/object:Gem::Dependency
82
+ name: bundler
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: 2.1.4
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: 2.1.4
95
+ description: Easy to use integration of drag&drop files upload via dropzone.js for
96
+ RailsAdmin with improvements
97
+ email:
98
+ - giulianocrivelli@hotmail.com
99
+ executables: []
100
+ extensions: []
101
+ extra_rdoc_files: []
102
+ files:
103
+ - ".gitignore"
104
+ - CODE_OF_CONDUCT.md
105
+ - Gemfile
106
+ - LICENSE.txt
107
+ - README.md
108
+ - Rakefile
109
+ - app/assets/javascripts/rails_admin/rails_admin_dropzone_rails_6.js.erb
110
+ - app/assets/stylesheets/rails_admin/rails_admin_dropzone_rails_6.scss
111
+ - app/views/.gitkeep
112
+ - app/views/rails_admin/main/dropzone.html.haml
113
+ - bin/console
114
+ - bin/setup
115
+ - config/locales/mobile_upload.dk.yml
116
+ - config/locales/mobile_upload.he.yml
117
+ - config/locales/mobile_upload.hr.yml
118
+ - config/locales/mobile_upload.ro.yml
119
+ - config/locales/multiple-upload.uk_UA.yml
120
+ - config/locales/multiple-upload.zh.yml
121
+ - config/locales/multiple_upload.af.yml
122
+ - config/locales/multiple_upload.by.yml
123
+ - config/locales/multiple_upload.cs.yml
124
+ - config/locales/multiple_upload.de.yml
125
+ - config/locales/multiple_upload.en.yml
126
+ - config/locales/multiple_upload.es.yml
127
+ - config/locales/multiple_upload.fi.yml
128
+ - config/locales/multiple_upload.fr.yml
129
+ - config/locales/multiple_upload.gr.yml
130
+ - config/locales/multiple_upload.hin.yml
131
+ - config/locales/multiple_upload.id.yml
132
+ - config/locales/multiple_upload.it.yml
133
+ - config/locales/multiple_upload.lt.yml
134
+ - config/locales/multiple_upload.nl.yml
135
+ - config/locales/multiple_upload.no.yml
136
+ - config/locales/multiple_upload.pl.yml
137
+ - config/locales/multiple_upload.pt-BR.yml
138
+ - config/locales/multiple_upload.ru.yml
139
+ - config/locales/multiple_upload.sk.yml
140
+ - config/locales/multiple_upload.sv.yml
141
+ - config/locales/multiple_upload.tr.yml
142
+ - lib/rails_admin_dropzone_rails_6.rb
143
+ - lib/rails_admin_dropzone_rails_6/engine.rb
144
+ - lib/rails_admin_dropzone_rails_6/version.rb
145
+ - rails_admin_dropzone_rails_6.gemspec
146
+ homepage: https://github.com/thefalked/rails_admin_dropzone_rails_6
147
+ licenses:
148
+ - MIT
149
+ metadata:
150
+ homepage_uri: https://github.com/thefalked/rails_admin_dropzone_rails_6
151
+ post_install_message:
152
+ rdoc_options: []
153
+ require_paths:
154
+ - lib
155
+ required_ruby_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 2.3.0
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ requirements: []
166
+ rubygems_version: 3.1.2
167
+ signing_key:
168
+ specification_version: 4
169
+ summary: RailsAdmin dropzone.js for Rails 6
170
+ test_files: []