Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
5f1853a5
Commit
5f1853a5
authored
Jan 17, 2015
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove discovery plugin
parent
17551718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
discovery.coffee
h/static/scripts/plugin/discovery.coffee
+0
-29
No files found.
h/static/scripts/plugin/discovery.coffee
deleted
100644 → 0
View file @
17551718
class
Annotator
.
Plugin
.
Discovery
extends
Annotator
.
Plugin
pluginInit
:
->
svc
=
$
(
'link'
)
.
filter
->
this
.
rel
is
'service'
and
this
.
type
is
'application/annotatorsvc+json'
.
filter
->
this
.
href
return
unless
svc
.
length
href
=
svc
[
0
].
href
$
.
getJSON
href
,
(
data
)
=>
return
unless
data
?
.
links
?
options
=
prefix
:
href
.
replace
/\/$/
,
''
urls
:
{}
if
data
.
links
.
search
?
.
url
?
options
.
urls
.
search
=
data
.
links
.
search
.
url
for
action
,
info
of
(
data
.
links
.
annotation
or
{})
when
info
.
url
?
options
.
urls
[
action
]
=
info
.
url
for
action
,
url
of
options
.
urls
options
.
urls
[
action
]
=
url
.
replace
(
options
.
prefix
,
''
)
@
annotator
.
publish
'serviceDiscovery'
,
options
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