card 1.93.3 → 1.93.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/db/migrate/20170908114452_increase_text_size_for_delayed_jobs.rb +9 -0
  4. data/db/migrate_core_cards/data/cards/*header +2 -2
  5. data/lib/card/format/nest.rb +12 -5
  6. data/lib/card/format/nest/fetch.rb +1 -2
  7. data/lib/card/format/render.rb +2 -2
  8. data/lib/card/model/save_helper.rb +1 -1
  9. data/lib/card/set/format/haml_views.rb +7 -3
  10. data/lib/card/subcards.rb +27 -228
  11. data/lib/card/subcards/add.rb +121 -0
  12. data/lib/card/subcards/relate.rb +27 -0
  13. data/lib/card/subcards/remove.rb +42 -0
  14. data/lib/card/tasks/card/create.rake +35 -132
  15. data/lib/card/tasks/card/file_card_creator.rb +25 -0
  16. data/lib/card/tasks/card/file_card_creator/abstract_file_card.rb +44 -0
  17. data/lib/card/tasks/card/file_card_creator/abstract_file_card/migration_file.rb +49 -0
  18. data/lib/card/tasks/card/file_card_creator/abstract_file_card/ruby_file.rb +30 -0
  19. data/lib/card/tasks/card/file_card_creator/abstract_file_card/source_file.rb +36 -0
  20. data/lib/card/tasks/card/file_card_creator/haml_card.rb +42 -0
  21. data/lib/card/tasks/card/file_card_creator/output_helper.rb +50 -0
  22. data/lib/card/tasks/card/file_card_creator/script_card.rb +33 -0
  23. data/lib/card/tasks/card/file_card_creator/style_card.rb +25 -0
  24. data/lib/generators/card/template/template_generator.rb +1 -1
  25. data/mod/account/set/self/account_links.rb +1 -1
  26. data/mod/basic_formats/set/all/all_csv.rb +63 -0
  27. data/mod/basic_formats/set/all/json.rb +4 -1
  28. data/mod/bootstrap/db/migrate_cards/20170719163733_update_bootswatch_themes_to_4_beta.rb +5 -2
  29. data/mod/carrierwave/set/abstract/attachment.rb +1 -2
  30. data/mod/core/set/abstract/haml_file.rb +20 -0
  31. data/mod/core/set/all/chunk.rb +125 -0
  32. data/mod/core/set/all/collection.rb +2 -351
  33. data/mod/core/set/all/content.rb +26 -7
  34. data/mod/core/set/all/extended.rb +45 -0
  35. data/mod/core/set/all/haml.rb +3 -7
  36. data/mod/core/set/all/item.rb +92 -0
  37. data/mod/core/set/all/name.rb +36 -0
  38. data/mod/core/set/all/subcards.rb +21 -12
  39. data/mod/core/set/all/tabs.rb +50 -0
  40. data/mod/core/set/all/trash.rb +4 -0
  41. data/mod/core/spec/set/all/chunk_spec.rb +45 -0
  42. data/mod/core/spec/set/all/collection_spec.rb +6 -6
  43. data/mod/history/set/all/action_view.rb +1 -1
  44. data/mod/machines/lib/javascript/decko.js.coffee +3 -0
  45. data/mod/pointer/set/abstract/02_pointer/edit.rb +0 -2
  46. data/mod/search/set/abstract/search.rb +1 -1
  47. data/mod/search/set/all/filter.rb +0 -2
  48. data/mod/search/template/all/filter/_filter_input.haml +1 -1
  49. data/mod/search/template/all/filter/filter_form.haml +1 -1
  50. data/mod/standard/set/all/rich_html/editing.rb +1 -1
  51. data/mod/standard/set/all/rich_html/form.rb +6 -7
  52. data/mod/standard/set/all/rich_html/menu.rb +2 -3
  53. data/mod/standard/set/all/rich_html/toolbar.rb +3 -4
  54. data/mod/standard/set/type/cardtype.rb +1 -1
  55. data/mod/standard/spec/set/all/rich_html/editing_spec.rb +15 -4
  56. data/mod/tinymce_editor/db/migrate_cards/{20171113233150_update_tinymce_config.rb → 20171113233151_update_tinymce_config.rb} +1 -0
  57. metadata +25 -161
  58. data/.rspec +0 -4
  59. data/card.gemspec +0 -87
  60. data/db/seed/test/fixtures/.gitkeep +0 -0
  61. data/mod/bootstrap/vendor/bootstrap/.babelrc.js +0 -16
  62. data/mod/bootstrap/vendor/bootstrap/.editorconfig +0 -17
  63. data/mod/bootstrap/vendor/bootstrap/.eslintignore +0 -3
  64. data/mod/bootstrap/vendor/bootstrap/.gitattributes +0 -16
  65. data/mod/bootstrap/vendor/bootstrap/.github/CONTRIBUTING.md +0 -252
  66. data/mod/bootstrap/vendor/bootstrap/.github/ISSUE_TEMPLATE.md +0 -22
  67. data/mod/bootstrap/vendor/bootstrap/.gitignore +0 -46
  68. data/mod/bootstrap/vendor/bootstrap/.hound.yml +0 -19
  69. data/mod/bootstrap/vendor/bootstrap/.houndignore +0 -4
  70. data/mod/bootstrap/vendor/bootstrap/.travis.yml +0 -32
  71. data/mod/bootstrap/vendor/bootstrap/build/.htmllintrc +0 -19
  72. data/mod/bootstrap/vendor/bootstrap/build/.stylelintrc +0 -248
  73. data/mod/bootstrap/vendor/bootstrap/docs/4.0/examples/.stylelintrc +0 -12
  74. data/mod/bootstrap/vendor/bootstrap/js/.eslintrc.json +0 -240
  75. data/mod/bootstrap/vendor/bootstrap/js/tests/.eslintrc.json +0 -46
  76. data/mod/bootstrap/vendor/bootswatch/.gitignore +0 -7
  77. data/mod/bootstrap/vendor/bootswatch/.npmignore +0 -12
  78. data/mod/bootstrap/vendor/bootswatch/.travis.yml +0 -21
  79. data/mod/bootstrap/vendor/bootswatch/docs/.nojekyll +0 -0
  80. data/mod/bootstrap/vendor/bootswatch/docs/2/.travis.yml +0 -15
  81. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.bower.json +0 -20
  82. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.gitignore +0 -37
  83. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.travis.yml +0 -3
  84. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/js/.jshintrc +0 -12
  85. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/jquery/.bower.json +0 -20
  86. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/jquery/.gitignore +0 -1
  87. data/mod/bootstrap/vendor/bootswatch/docs/2/swatchmaker/.gitignore +0 -1
  88. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/.bower.json +0 -45
  89. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/.bower.json +0 -44
  90. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/grunt/.jshintrc +0 -7
  91. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/.jscsrc +0 -42
  92. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/.jshintrc +0 -15
  93. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/.csscomb.json +0 -304
  94. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/.csslintrc +0 -19
  95. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/font-awesome/.bower.json +0 -14
  96. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/font-awesome/.gitignore +0 -32
  97. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/html5shiv/.bower.json +0 -25
  98. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/jquery/.bower.json +0 -38
  99. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/respond/.bower.json +0 -20
  100. data/mod/bootstrap/vendor/select2/.editorconfig +0 -6
  101. data/mod/bootstrap/vendor/select2/.github/CONTRIBUTING.md +0 -204
  102. data/mod/bootstrap/vendor/select2/.github/ISSUE_TEMPLATE.md +0 -46
  103. data/mod/bootstrap/vendor/select2/.github/PULL_REQUEST_TEMPLATE.md +0 -13
  104. data/mod/bootstrap/vendor/select2/.gitignore +0 -3
  105. data/mod/bootstrap/vendor/select2/.jshintignore +0 -4
  106. data/mod/bootstrap/vendor/select2/.jshintrc +0 -25
  107. data/mod/bootstrap/vendor/select2/.travis.yml +0 -22
  108. data/script/fetch_bootswatch_themes.rb +0 -38
  109. data/spec/config/initializers/core_extensions_spec.rb +0 -47
  110. data/spec/config/initializers/patches/active_job_spec.rb +0 -7
  111. data/spec/lib/card/action_spec.rb +0 -15
  112. data/spec/lib/card/auth_spec.rb +0 -58
  113. data/spec/lib/card/cache_spec.rb +0 -116
  114. data/spec/lib/card/chunk_spec.rb +0 -18
  115. data/spec/lib/card/codename_spec.rb +0 -66
  116. data/spec/lib/card/content_spec.rb +0 -428
  117. data/spec/lib/card/diff_spec.rb +0 -208
  118. data/spec/lib/card/format/nest_spec.rb +0 -13
  119. data/spec/lib/card/format/render_spec.rb +0 -26
  120. data/spec/lib/card/format_spec.rb +0 -117
  121. data/spec/lib/card/i18n_spec.rb +0 -24
  122. data/spec/lib/card/loader/Modfile +0 -2
  123. data/spec/lib/card/loader_spec.rb +0 -98
  124. data/spec/lib/card/migration/import_spec.rb +0 -80
  125. data/spec/lib/card/mod/loader/mod_dirs.rb +0 -8
  126. data/spec/lib/card/mod/loader/set_loader_spec.rb +0 -19
  127. data/spec/lib/card/mod/loader/set_pattern_loader_spec.rb +0 -19
  128. data/spec/lib/card/name/fields_and_traits_spec.rb +0 -18
  129. data/spec/lib/card/name_spec.rb +0 -70
  130. data/spec/lib/card/query/sorting_spec.rb +0 -68
  131. data/spec/lib/card/query_spec.rb +0 -574
  132. data/spec/lib/card/reference_spec.rb +0 -212
  133. data/spec/lib/card/set/event_spec.rb +0 -22
  134. data/spec/lib/card/set/trait_spec.rb +0 -80
  135. data/spec/lib/card/set_pattern_spec.rb +0 -59
  136. data/spec/lib/card/set_spec.rb +0 -89
  137. data/spec/lib/card/stage_director_spec.rb +0 -482
  138. data/spec/lib/card/subcards_spec.rb +0 -177
  139. data/spec/lib/card/success_spec.rb +0 -148
  140. data/spec/lib/card/view_cache_spec.rb +0 -27
  141. data/spec/mailers/mailer_spec.rb +0 -62
  142. data/spec/models/card/create_spec.rb +0 -119
  143. data/spec/models/card/trash_spec.rb +0 -189
  144. data/spec/models/card_spec.rb +0 -136
  145. data/spec/spec_helper.rb +0 -45
  146. data/spec/support/card_spec_helper.rb +0 -74
  147. data/spec/support/card_spec_loader.rb +0 -112
  148. data/spec/support/helper/card_helper.rb +0 -58
  149. data/spec/support/helper/event_helper.rb +0 -94
  150. data/spec/support/helper/render_helper.rb +0 -44
  151. data/spec/support/helper/save_helper.rb +0 -30
  152. data/spec/support/helper/set_helper.rb +0 -80
  153. data/spec/support/matchers/card_matchers.rb +0 -160
  154. data/spec/support/matchers/expectations.rb +0 -5
  155. data/spec/support/matchers/file_matchers.rb +0 -71
  156. data/spec/support/matchers/html_matchers.rb +0 -29
  157. data/spec/support/matchers/negated_matchers.rb +0 -2
  158. data/spec/support/simplecov_helper.rb +0 -70
  159. data/spec/support/test_mods/mod1/set/all/test_set.rb +0 -3
  160. data/spec/support/test_mods/mod2/set_pattern/test_pattern.rb +0 -0
data/.rspec DELETED
@@ -1,4 +0,0 @@
1
- --color
2
- --profile
3
- --backtrace
4
- --require spec_helper
@@ -1,87 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- version = File.open(File.expand_path("../VERSION", __FILE__)).read.chomp
4
- vbits = version.split('.').map &:to_i
5
- vplus = { 0 => 90, 1 => 100 } # can remove and hardcode after 1.0
6
- vminor = vplus[ vbits[0] ] + vbits[1]
7
- card_version = [1, vminor, vbits[2]].compact.map(&:to_s).join "."
8
- # Because card was already at 1.21 when wagn was renamed to decko and decko's
9
- # versioning went back to 0.X, card's versioning is now a little funny.
10
- # For now decko 0.X.Y will map to card 1.(90+X).Y, and decko 1.X.Y will map to
11
- # card 1.(100+X).Y. Things will get much simpler after 2.0, when decko X.Y.Z
12
- # will map to card X.Y.Z.
13
-
14
-
15
- Gem::Specification.new do |s|
16
- s.name = "card"
17
- s.version = card_version
18
-
19
- s.authors =
20
- [ "Ethan McCutchen", "Philipp Kühl", "Lewis Hoffman", "Gerry Gleason" ]
21
- s.email = ["info@decko.org"]
22
-
23
- s.summary = "a simple engine for emergent data structures"
24
- s.description =
25
- "Cards are wiki-inspired data atoms." \
26
- '"Carditects" use links, nests, types, patterned names, queries, views, ' \
27
- "events, and rules to create rich structures."
28
- s.homepage = "http://decko.org"
29
- s.licenses = ["GPL-2.0", "GPL-3.0"]
30
-
31
- s.files = `git ls-files`.split $INPUT_RECORD_SEPARATOR
32
-
33
- # add submodule files (seed data)
34
- morepaths = `git submodule --quiet foreach pwd`.split $OUTPUT_RECORD_SEPARATOR
35
- morepaths.each do |submod_path|
36
- gem_root = File.expand_path File.dirname(__FILE__)
37
- relative_submod_path = submod_path.gsub "#{gem_root}/", ""
38
- Dir.chdir(submod_path) do
39
- morefiles = `git ls-files`.split /\n/ #$OUTPUT_RECORD_SEPARATOR
40
- #puts "ors = #{$OUTPUT_RECORD_SEPARATOR}"
41
- s.files += morefiles.map do |filename|
42
- "#{relative_submod_path}/#{filename}" #unless filename =~ /\s/
43
- end.compact
44
- end
45
- end
46
-
47
-
48
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
49
- s.require_paths = ["lib"]
50
-
51
- s.required_ruby_version = ">= 2.3"
52
-
53
- [
54
- ["cardname", version],
55
- ["haml", "~> 5.0"], # markup language used in view API
56
- ["uuid", "~> 2.3"], # universally unique identifier.
57
- # used in temporary names
58
- ["colorize", "~> 0.8"], # livelier cli outputs
59
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
- # MOVE TO MODS?
61
-
62
-
63
- # files and images
64
- ["carrierwave", "~> 1.1"],
65
- ["mini_magick", "~> 4.2"],
66
-
67
- # assets (JavaScript, CSS, etc)
68
- ["coderay", "~> 1.1"],
69
- ["sass", "~> 3.4"],
70
- ["coffee-script", "~> 2.4"],
71
- ["uglifier", "~> 3.2"],
72
-
73
- # pagination
74
- ["kaminari", "~> 1.0"],
75
- ["bootstrap4-kaminari-views", "~> 1.0"],
76
-
77
- # other
78
- ["diff-lcs", "~> 1.3"], # content diffs in histories
79
- ["recaptcha", "~> 4.3"],
80
- ["twitter", "~> 6.1"], # for event-based integration
81
- ["delayed_job_active_record", "~> 4.1"]
82
-
83
-
84
- ].each do |dep|
85
- s.add_runtime_dependency(*dep)
86
- end
87
- end
File without changes
@@ -1,16 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- [
4
- 'env',
5
- {
6
- loose: true,
7
- modules: false,
8
- exclude: ['transform-es2015-typeof-symbol']
9
- }
10
- ]
11
- ],
12
- plugins: [
13
- process.env.ROLLUP && 'external-helpers',
14
- process.env.PLUGINS && 'transform-es2015-modules-strip'
15
- ].filter(Boolean)
16
- };
@@ -1,17 +0,0 @@
1
- # editorconfig.org
2
-
3
- root = true
4
-
5
- [*]
6
- charset = utf-8
7
- end_of_line = lf
8
- indent_size = 2
9
- indent_style = space
10
- insert_final_newline = true
11
- trim_trailing_whitespace = true
12
-
13
- [*.md]
14
- trim_trailing_whitespace = false
15
-
16
- [*.py]
17
- indent_size = 4
@@ -1,3 +0,0 @@
1
- **/*.min.js
2
- **/vendor/*
3
- **/dist/*
@@ -1,16 +0,0 @@
1
- # Enforce Unix newlines
2
- *.css text eol=lf
3
- *.html text eol=lf
4
- *.js text eol=lf
5
- *.json text eol=lf
6
- *.md text eol=lf
7
- *.rb text eol=lf
8
- *.scss text eol=lf
9
- *.svg text eol=lf
10
- *.txt text eol=lf
11
- *.yml text eol=lf
12
- # Don't diff or textually merge source maps
13
- *.map binary
14
-
15
- bootstrap.css linguist-vendored=false
16
- bootstrap.js linguist-vendored=false
@@ -1,252 +0,0 @@
1
- # Contributing to Bootstrap
2
-
3
- Looking to contribute something to Bootstrap? **Here's how you can help.**
4
-
5
- Please take a moment to review this document in order to make the contribution
6
- process easy and effective for everyone involved.
7
-
8
- Following these guidelines helps to communicate that you respect the time of
9
- the developers managing and developing this open source project. In return,
10
- they should reciprocate that respect in addressing your issue or assessing
11
- patches and features.
12
-
13
-
14
- ## Using the issue tracker
15
-
16
- The [issue tracker](https://github.com/twbs/bootstrap/issues) is
17
- the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests)
18
- and [submitting pull requests](#pull-requests), but please respect the following
19
- restrictions:
20
-
21
- * Please **do not** use the issue tracker for personal support requests. Stack
22
- Overflow ([`bootstrap-4`](https://stackoverflow.com/questions/tagged/bootstrap-4) tag), [Slack](https://bootstrap-slack.herokuapp.com/) or [IRC](README.md#community) are better places to get help.
23
-
24
- * Please **do not** derail or troll issues. Keep the discussion on topic and
25
- respect the opinions of others.
26
-
27
- * Please **do not** post comments consisting solely of "+1" or ":thumbsup:".
28
- Use [GitHub's "reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments)
29
- instead. We reserve the right to delete comments which violate this rule.
30
-
31
- * Please **do not** open issues regarding the official themes offered on <https://themes.getbootstrap.com/>.
32
- Instead, please email any questions or feedback regarding those themes to `themes AT getbootstrap DOT com`.
33
-
34
-
35
- ## Issues and labels
36
-
37
- Our bug tracker utilizes several labels to help organize and identify issues. Here's what they represent and how we use them:
38
-
39
- - `browser bug` - Issues that are reported to us, but actually are the result of a browser-specific bug. These are diagnosed with reduced test cases and result in an issue opened on that browser's own bug tracker.
40
- - `confirmed` - Issues that have been confirmed with a reduced test case and identify a bug in Bootstrap.
41
- - `css` - Issues stemming from our compiled CSS or source Sass files.
42
- - `docs` - Issues for improving or updating our documentation.
43
- - `examples` - Issues involving the example templates included in our docs.
44
- - `feature` - Issues asking for a new feature to be added, or an existing one to be extended or modified. New features require a minor version bump (e.g., `v3.0.0` to `v3.1.0`).
45
- - `build` - Issues with our build system, which is used to run all our tests, concatenate and compile source files, and more.
46
- - `help wanted` - Issues we need or would love help from the community to resolve.
47
- - `js` - Issues stemming from our compiled or source JavaScript files.
48
- - `meta` - Issues with the project itself or our GitHub repository.
49
-
50
- For a complete look at our labels, see the [project labels page](https://github.com/twbs/bootstrap/labels).
51
-
52
-
53
- ## Bug reports
54
-
55
- A bug is a _demonstrable problem_ that is caused by the code in the repository.
56
- Good bug reports are extremely helpful, so thanks!
57
-
58
- Guidelines for bug reports:
59
-
60
- 0. **Validate and lint your code** &mdash; [validate your HTML](https://html5.validator.nu/)
61
- and [lint your HTML](https://github.com/twbs/bootlint) to ensure your
62
- problem isn't caused by a simple error in your own code.
63
-
64
- 1. **Use the GitHub issue search** &mdash; check if the issue has already been
65
- reported.
66
-
67
- 2. **Check if the issue has been fixed** &mdash; try to reproduce it using the
68
- latest `master` or development branch in the repository.
69
-
70
- 3. **Isolate the problem** &mdash; ideally create a [reduced test
71
- case](https://css-tricks.com/reduced-test-cases/) and a live example.
72
- [This JS Bin](https://jsbin.com/lolome/edit?html,output) is a helpful template.
73
-
74
-
75
- A good bug report shouldn't leave others needing to chase you up for more
76
- information. Please try to be as detailed as possible in your report. What is
77
- your environment? What steps will reproduce the issue? What browser(s) and OS
78
- experience the problem? Do other browsers show the bug differently? What
79
- would you expect to be the outcome? All these details will help people to fix
80
- any potential bugs.
81
-
82
- Example:
83
-
84
- > Short and descriptive example bug report title
85
- >
86
- > A summary of the issue and the browser/OS environment in which it occurs. If
87
- > suitable, include the steps required to reproduce the bug.
88
- >
89
- > 1. This is the first step
90
- > 2. This is the second step
91
- > 3. Further steps, etc.
92
- >
93
- > `<url>` - a link to the reduced test case
94
- >
95
- > Any other information you want to share that is relevant to the issue being
96
- > reported. This might include the lines of code that you have identified as
97
- > causing the bug, and potential solutions (and your opinions on their
98
- > merits).
99
-
100
- ### Reporting upstream browser bugs
101
-
102
- Sometimes bugs reported to us are actually caused by bugs in the browser(s) themselves, not bugs in Bootstrap per se.
103
- When feasible, we aim to report such upstream bugs to the relevant browser vendor(s), and then list them on our [Wall of Browser Bugs](https://getbootstrap.com/browser-bugs/) and [document them in MDN](https://developer.mozilla.org/en-US/docs/Web).
104
-
105
- | Vendor(s) | Browser(s) | Rendering engine | Bug reporting website(s) | Notes |
106
- | ------------- | ---------------------------- | ---------------- | ------------------------------------------------------------------------------------- | -------------------------------------------------------- |
107
- | Mozilla | Firefox | Gecko | https://bugzilla.mozilla.org/enter_bug.cgi | "Core" is normally the right product option to choose. |
108
- | Apple | Safari | WebKit | https://bugs.webkit.org/enter_bug.cgi?product=WebKit <br> https://bugreport.apple.com | In Apple's bug reporter, choose "Safari" as the product. |
109
- | Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://code.google.com/p/chromium/issues/list | Click the "New issue" button. |
110
- | Microsoft | Edge | EdgeHTML | https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/ | |
111
-
112
- ### Issues bots
113
-
114
- [@twbs-lmvtfy](https://github.com/twbs-lmvtfy) is a Bootstrap bot that hangs out in our GitHub issue tracker and automatically checks for HTML validation errors in live examples (e.g. jsFiddles, JS Bins, Bootplys, Plunks, CodePens, etc.) posted in issue comments. If it finds any errors, it will post a follow-up comment on the issue and point out the errors. If this happens with an example you've posted, please fix the errors and post an updated live example. If you opened a bug report, please check whether the bug still occurs with your revised, valid live example. If the bug no longer occurs, it was probably due to your invalid HTML rather than something in Bootstrap and we'd appreciate it if you could close out the GitHub issue.
115
-
116
-
117
- ## Feature requests
118
-
119
- Feature requests are welcome. But take a moment to find out whether your idea
120
- fits with the scope and aims of the project. It's up to *you* to make a strong
121
- case to convince the project's developers of the merits of this feature. Please
122
- provide as much detail and context as possible.
123
-
124
-
125
- ## Pull requests
126
-
127
- Good pull requests—patches, improvements, new features—are a fantastic
128
- help. They should remain focused in scope and avoid containing unrelated
129
- commits.
130
-
131
- **Please ask first** before embarking on any significant pull request (e.g.
132
- implementing features, refactoring code, porting to a different language),
133
- otherwise you risk spending a lot of time working on something that the
134
- project's developers might not want to merge into the project.
135
-
136
- Please adhere to the [coding guidelines](#code-guidelines) used throughout the
137
- project (indentation, accurate comments, etc.) and any other requirements
138
- (such as test coverage).
139
-
140
- **Do not edit `bootstrap.css`, or `bootstrap.js`
141
- directly!** Those files are automatically generated. You should edit the
142
- source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/master/scss)
143
- and/or [`/bootstrap/js/`](https://github.com/twbs/bootstrap/tree/master/js) instead.
144
-
145
- Similarly, when contributing to Bootstrap's documentation, you should edit the
146
- documentation source files in
147
- [the `/bootstrap/docs/` directory of the `master` branch](https://github.com/twbs/bootstrap/tree/master/docs).
148
- **Do not edit the `gh-pages` branch.** That branch is generated from the
149
- documentation source files and is managed separately by the Bootstrap Core Team.
150
-
151
- Adhering to the following process is the best way to get your work
152
- included in the project:
153
-
154
- 1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork,
155
- and configure the remotes:
156
-
157
- ```bash
158
- # Clone your fork of the repo into the current directory
159
- git clone https://github.com/<your-username>/bootstrap.git
160
- # Navigate to the newly cloned directory
161
- cd bootstrap
162
- # Assign the original repo to a remote called "upstream"
163
- git remote add upstream https://github.com/twbs/bootstrap.git
164
- ```
165
-
166
- 2. If you cloned a while ago, get the latest changes from upstream:
167
-
168
- ```bash
169
- git checkout master
170
- git pull upstream master
171
- ```
172
-
173
- 3. Create a new topic branch (off the main project development branch) to
174
- contain your feature, change, or fix:
175
-
176
- ```bash
177
- git checkout -b <topic-branch-name>
178
- ```
179
-
180
- 4. Commit your changes in logical chunks. Please adhere to these [git commit
181
- message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
182
- or your code is unlikely be merged into the main project. Use Git's
183
- [interactive rebase](https://help.github.com/articles/about-git-rebase/)
184
- feature to tidy up your commits before making them public.
185
-
186
- 5. Locally merge (or rebase) the upstream development branch into your topic branch:
187
-
188
- ```bash
189
- git pull [--rebase] upstream master
190
- ```
191
-
192
- 6. Push your topic branch up to your fork:
193
-
194
- ```bash
195
- git push origin <topic-branch-name>
196
- ```
197
-
198
- 7. [Open a Pull Request](https://help.github.com/articles/about-pull-requests/)
199
- with a clear title and description against the `master` branch.
200
-
201
- **IMPORTANT**: By submitting a patch, you agree to allow the project owners to
202
- license your work under the terms of the [MIT License](LICENSE) (if it
203
- includes code changes) and under the terms of the
204
- [Creative Commons Attribution 3.0 Unported License](docs/LICENSE)
205
- (if it includes documentation changes).
206
-
207
- ### Pull request bots
208
-
209
- [@twbs-rorschach](https://github.com/twbs-rorschach) is a Bootstrap bot that hangs out in our GitHub issue tracker and automatically checks all pull requests for a few simple common mistakes. It's possible that Rorschach might leave a comment on your pull request and then close it. If that happens, simply fix the problem(s) mentioned in the comment (there should be link(s) in the comment explaining the problem(s) in detail) and then either:
210
-
211
- * Push the revised version to your pull request's branch and post a comment on the pull request saying that you've fixed the problem(s). One of the Bootstrap Core Team members will then come along and reopen your pull request.
212
- * Or you can just open a new pull request for your revised version.
213
-
214
- [@twbs-savage](https://github.com/twbs-savage) is a Bootstrap bot that automatically runs cross-browser tests (via [Sauce](https://saucelabs.com/) and Travis CI) on JavaScript pull requests. Savage will leave a comment on pull requests stating whether cross-browser JS tests passed or failed, with a link to the full Travis build details. If your pull request fails, check the Travis log to see which browser + OS combinations failed. Each browser test in the Travis log includes a link to a Sauce page with details about the test. On those details pages, you can watch a screencast of the test run to see exactly which unit tests failed.
215
-
216
-
217
- ## Code guidelines
218
-
219
- ### HTML
220
-
221
- [Adhere to the Code Guide.](http://codeguide.co/#html)
222
-
223
- - Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags).
224
- - Use CDNs and HTTPS for third-party JS when possible. We don't use protocol-relative URLs in this case because they break when viewing the page locally via `file://`.
225
- - Use [WAI-ARIA](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) attributes in documentation examples to promote accessibility.
226
-
227
- ### CSS
228
-
229
- [Adhere to the Code Guide.](http://codeguide.co/#css)
230
-
231
- - When feasible, default color palettes should comply with [WCAG color contrast guidelines](https://www.w3.org/TR/WCAG20/#visual-audio-contrast).
232
- - Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](http://a11yproject.com/posts/never-remove-css-outlines/) for more details.
233
-
234
- ### JS
235
-
236
- - No semicolons (in client-side JS)
237
- - 2 spaces (no tabs)
238
- - strict mode
239
- - "Attractive"
240
- - Don't use [jQuery event alias convenience methods](https://github.com/jquery/jquery/blob/master/src/event/alias.js) (such as `$().focus()`). Instead, use [`$().trigger(eventType, ...)`](https://api.jquery.com/trigger/) or [`$().on(eventType, ...)`](https://api.jquery.com/on/), depending on whether you're firing an event or listening for an event. (For example, `$().trigger('focus')` or `$().on('focus', function (event) { /* handle focus event */ })`) We do this to be compatible with custom builds of jQuery where the event aliases module has been excluded.
241
-
242
- ### Checking coding style
243
-
244
- Run `npm run test` before committing to ensure your changes follow our coding standards.
245
-
246
-
247
- ## License
248
-
249
- By contributing your code, you agree to license your contribution under the [MIT License](LICENSE).
250
- By contributing to the documentation, you agree to license your contribution under the [Creative Commons Attribution 3.0 Unported License](docs/LICENSE).
251
-
252
- Prior to v3.1.0, Bootstrap's code was released under the Apache License v2.0.
@@ -1,22 +0,0 @@
1
- Before opening an issue:
2
-
3
- - [Search for duplicate or closed issues](https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue)
4
- - [Validate](https://html5.validator.nu/) and [lint](https://github.com/twbs/bootlint#in-the-browser) any HTML to avoid common problems
5
- - Prepare a [reduced test case](https://css-tricks.com/reduced-test-cases/) for any bugs
6
- - Read the [contributing guidelines](https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md)
7
-
8
- When asking general "how to" questions:
9
-
10
- - Please do not open an issue here
11
- - Instead, ask for help on [StackOverflow, IRC, or Slack](https://github.com/twbs/bootstrap/blob/master/README.md#community)
12
-
13
- When reporting a bug, include:
14
-
15
- - Operating system and version (Windows, Mac OS X, Android, iOS, Win10 Mobile)
16
- - Browser and version (Chrome, Firefox, Safari, IE, MS Edge, Opera 15+, Android Browser)
17
- - Reduced test cases and potential fixes using [CodePen](https://codepen.io/) or [JS Bin](https://jsbin.com/)
18
-
19
- When suggesting a feature, include:
20
-
21
- - As much detail as possible for what we should add and why it's important to Bootstrap
22
- - Relevant links to prior art, screenshots, or live demos whenever possible
@@ -1,46 +0,0 @@
1
- # Ignore docs files
2
- _gh_pages
3
- _site
4
-
5
- # Ignore ruby files
6
- .ruby-version
7
- .bundle
8
- vendor/cache
9
- vendor/bundle
10
-
11
- # Numerous always-ignore extensions
12
- *.diff
13
- *.err
14
- *.log
15
- *.orig
16
- *.rej
17
- *.swo
18
- *.swp
19
- *.vi
20
- *.zip
21
- *~
22
-
23
- # OS or Editor folders
24
- ._*
25
- .cache
26
- .DS_Store
27
- .idea
28
- .project
29
- .settings
30
- .tmproj
31
- *.esproj
32
- *.sublime-project
33
- *.sublime-workspace
34
- nbproject
35
- Thumbs.db
36
-
37
- # Komodo
38
- .komodotools
39
- *.komodoproject
40
-
41
- # Jekyll metadata and extra config file for `github` script
42
- docs/.jekyll-metadata
43
- twbsconfig.yml
44
-
45
- # Folders to ignore
46
- node_modules