Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8c2df842
Commit
8c2df842
authored
Jul 13, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract EE-specific lines from Banzai pipelines
parent
d59ae768
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
87 additions
and
12 deletions
+87
-12
ee/lib/ee/banzai/pipeline/gfm_pipeline.rb
ee/lib/ee/banzai/pipeline/gfm_pipeline.rb
+18
-0
ee/lib/ee/banzai/pipeline/post_process_pipeline.rb
ee/lib/ee/banzai/pipeline/post_process_pipeline.rb
+18
-0
ee/lib/ee/banzai/pipeline/single_line_pipeline.rb
ee/lib/ee/banzai/pipeline/single_line_pipeline.rb
+18
-0
lib/banzai/pipeline/gfm_pipeline.rb
lib/banzai/pipeline/gfm_pipeline.rb
+14
-7
lib/banzai/pipeline/post_process_pipeline.rb
lib/banzai/pipeline/post_process_pipeline.rb
+11
-4
lib/banzai/pipeline/single_line_pipeline.rb
lib/banzai/pipeline/single_line_pipeline.rb
+8
-1
No files found.
ee/lib/ee/banzai/pipeline/gfm_pipeline.rb
0 → 100644
View file @
8c2df842
module
EE
module
Banzai
module
Pipeline
module
GfmPipeline
extend
ActiveSupport
::
Concern
class_methods
do
def
reference_filters
[
::
Banzai
::
Filter
::
EpicReferenceFilter
,
*
super
]
end
end
end
end
end
end
ee/lib/ee/banzai/pipeline/post_process_pipeline.rb
0 → 100644
View file @
8c2df842
module
EE
module
Banzai
module
Pipeline
module
PostProcessPipeline
extend
ActiveSupport
::
Concern
class_methods
do
def
internal_link_filters
[
*
super
,
::
Banzai
::
Filter
::
CrossProjectIssuableInformationFilter
]
end
end
end
end
end
end
ee/lib/ee/banzai/pipeline/single_line_pipeline.rb
0 → 100644
View file @
8c2df842
module
EE
module
Banzai
module
Pipeline
module
SingleLinePipeline
extend
ActiveSupport
::
Concern
class_methods
do
def
reference_filters
[
::
Banzai
::
Filter
::
EpicReferenceFilter
,
*
super
]
end
end
end
end
end
end
lib/banzai/pipeline/gfm_pipeline.rb
View file @
8c2df842
module
Banzai
module
Pipeline
class
GfmPipeline
<
BasePipeline
prepend
EE
::
Banzai
::
Pipeline
::
GfmPipeline
# These filters convert GitLab Flavored Markdown (GFM) to HTML.
# The handlers defined in app/assets/javascripts/behaviors/markdown/copy_as_gfm.js
# consequently convert that same HTML to GFM to be copied to the clipboard.
...
...
@@ -24,7 +26,17 @@ module Banzai
Filter
::
AutolinkFilter
,
Filter
::
ExternalLinkFilter
,
Filter
::
EpicReferenceFilter
,
*
reference_filters
,
Filter
::
TaskListFilter
,
Filter
::
InlineDiffFilter
,
Filter
::
SetDirectionFilter
]
end
def
self
.
reference_filters
[
Filter
::
UserReferenceFilter
,
Filter
::
IssueReferenceFilter
,
Filter
::
ExternalIssueReferenceFilter
,
...
...
@@ -33,12 +45,7 @@ module Banzai
Filter
::
CommitRangeReferenceFilter
,
Filter
::
CommitReferenceFilter
,
Filter
::
LabelReferenceFilter
,
Filter
::
MilestoneReferenceFilter
,
Filter
::
TaskListFilter
,
Filter
::
InlineDiffFilter
,
Filter
::
SetDirectionFilter
Filter
::
MilestoneReferenceFilter
]
end
...
...
lib/banzai/pipeline/post_process_pipeline.rb
View file @
8c2df842
module
Banzai
module
Pipeline
class
PostProcessPipeline
<
BasePipeline
prepend
EE
::
Banzai
::
Pipeline
::
PostProcessPipeline
def
self
.
filters
FilterArray
[
@filters
||=
FilterArray
[
*
internal_link_filters
,
Filter
::
AbsoluteLinkFilter
]
end
def
self
.
internal_link_filters
[
Filter
::
RedactorFilter
,
Filter
::
RelativeLinkFilter
,
Filter
::
IssuableStateFilter
,
Filter
::
CrossProjectIssuableInformationFilter
,
Filter
::
AbsoluteLinkFilter
Filter
::
IssuableStateFilter
]
end
...
...
lib/banzai/pipeline/single_line_pipeline.rb
View file @
8c2df842
module
Banzai
module
Pipeline
class
SingleLinePipeline
<
GfmPipeline
prepend
EE
::
Banzai
::
Pipeline
::
SingleLinePipeline
def
self
.
filters
@filters
||=
FilterArray
[
Filter
::
HtmlEntityFilter
,
...
...
@@ -10,7 +12,12 @@ module Banzai
Filter
::
AutolinkFilter
,
Filter
::
ExternalLinkFilter
,
Filter
::
EpicReferenceFilter
,
*
reference_filters
]
end
def
self
.
reference_filters
[
Filter
::
UserReferenceFilter
,
Filter
::
IssueReferenceFilter
,
Filter
::
ExternalIssueReferenceFilter
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment