Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
38866ca
added node modules to gitignore
May 25, 2016
9cb4f94
documentation viewer template with swagger
May 25, 2016
65941de
navigation tab for documentation
May 25, 2016
eb43e3e
added Swagger Petstore json localy
May 25, 2016
e2dd49d
Merge remote-tracking branch 'origin/develop' into feature/documentat…
May 26, 2016
ec1796a
changed panels width
May 26, 2016
4a83223
panel layout for documentation view
May 26, 2016
62739d3
moved link
May 26, 2016
c94a39b
changed titles
May 26, 2016
552e451
renamed
May 26, 2016
4951105
Reorganize files
brylie May 26, 2016
646031e
Reorganize
brylie May 26, 2016
05771bb
cleaned up
May 26, 2016
54b12d2
renamed template
May 26, 2016
7bc7fa5
added style file
May 26, 2016
63089c2
Rename editor to design
brylie May 26, 2016
7568bb0
Merge branch 'feature/documentation-tab' of https://github.com/apinf/…
brylie May 26, 2016
b12ef8a
Pass in API Backend to documentation template
brylie May 26, 2016
44379aa
Remove documentation section
brylie May 26, 2016
03e83ba
i18n strings
May 26, 2016
553d8fc
Add manage button
brylie May 26, 2016
243e504
Initial manage api documentation template
brylie May 26, 2016
cb121b1
Add modal markup; cleanup
brylie May 26, 2016
6943e5b
Add ID to manage-api-documentation button
brylie May 26, 2016
a1277c2
Event handler for manage-api-documentation button
brylie May 26, 2016
8936730
API documentation link autoform; move help-text
brylie May 26, 2016
ec93d0f
Re-structure form to change priority of options
brylie May 26, 2016
0bcbec8
Move legend to parent template
brylie May 26, 2016
a1fdbee
Move help icons for consistency
brylie May 26, 2016
6e29357
Move files
brylie May 26, 2016
3e9ecaf
Move documentation help texts
brylie May 26, 2016
c16afcb
Add documentationId field
brylie May 26, 2016
8df6ca1
Add documentationId field to autoform; restructure
brylie May 26, 2016
8f9cfdf
documentationFileId field is optional
brylie May 26, 2016
c1c8eb5
Pass apiBackend object to modal dialogue
brylie May 26, 2016
1306e0b
Fix apiBackend related code
brylie May 26, 2016
eeae193
reference to instance
May 26, 2016
8cb53c5
Merge remote-tracking branch 'origin/feature/documentation-upload-met…
May 26, 2016
a6dc6a0
updated iron:middleware-stack to resolve error: Handler with name 'ho…
May 27, 2016
31bc592
basic publications for Api Documentation
May 27, 2016
68da1ee
subscription
May 27, 2016
ca66e37
helper to get api documentation object
May 27, 2016
ea6575a
included helper to show url
May 27, 2016
477b165
removed FS Collection related code
May 27, 2016
957797b
cleaned up
May 27, 2016
77b20bd
added toni upload jquery and server packages
May 27, 2016
32292ca
basic upload template
May 27, 2016
032f107
Initialize upload directory and settings
brylie May 27, 2016
0d58cfd
Remove unused files
May 31, 2016
0e9294f
Add collection, permissions, methods, publications
May 31, 2016
1cd311c
Remove unused packages, add UI for upload, delete
May 31, 2016
2c6f9a8
update documentation file id apibackends collection
Jun 1, 2016
4984925
renamed collection
Jun 1, 2016
6e79345
remove documentation object
Jun 1, 2016
b66ff54
helper to hide/show delete button
Jun 1, 2016
5bd81b9
clean up
Jun 1, 2016
4e4287c
cleaned up; comments
Jun 1, 2016
df568bc
check if documentation file is available
Jun 1, 2016
b6503c8
notify user when file is deleted
Jun 1, 2016
464f64b
documentation link helper
Jun 1, 2016
fde6dca
link helper; subscription
Jun 1, 2016
48e3a9b
added helper link
Jun 1, 2016
3648f34
moved helper
Jun 1, 2016
72e93c7
Fix fileName helper
Jun 1, 2016
8799b23
conditionaly show upload/filename/delete
Jun 1, 2016
3d6c51e
helper to show/hide swagger
Jun 2, 2016
af95a8b
cleaned up
Jun 2, 2016
7c2be1d
cleaned up
Jun 2, 2016
bc1915b
ui improvements
Jun 2, 2016
8c6b4da
renamed class
Jun 3, 2016
f201f15
i18n strings
Jun 3, 2016
6f72580
renamed button
Jun 3, 2016
9505230
documentation link field
Jun 3, 2016
cdebd7c
helper to check for documentation link
Jun 3, 2016
270fc52
moved resumable collection insert to on startup
Jun 3, 2016
5a7d63e
moved code
Jun 3, 2016
6df22b5
moved button to it own template
Jun 3, 2016
aeba3fb
autorun function getting updated apibackend
Jun 3, 2016
a6186b1
template for upload button
Jun 3, 2016
2b60ea7
Assign resumable browse to element
Jun 3, 2016
0fa076f
cleaned up; renamed session; added message to the user
Jun 3, 2016
3540d72
i18n strings
Jun 3, 2016
16c7e02
i18n strings
Jun 3, 2016
d197a31
fixed help icons position
Jun 3, 2016
1fe8a05
warning button
Jun 3, 2016
be130db
placeholders text
Jun 3, 2016
1a83ea1
Add confirmation dialog
frenchbread Jun 3, 2016
5171c29
Add i18n tags
frenchbread Jun 3, 2016
04ed2ac
Merge remote-tracking branch 'origin/feature/remove-documentation-con…
Jun 3, 2016
2c83e32
i18n string
Jun 6, 2016
f4a2671
i18n strings
Jun 6, 2016
58793db
changed text
Jun 6, 2016
92c8c63
updated i18n strings
Jun 6, 2016
83b37e5
Add helper functions
frenchbread Jun 6, 2016
b313c60
Add s-alert style
frenchbread Jun 6, 2016
e8c3ddf
Add file extension check
frenchbread Jun 6, 2016
58a0d5f
Add i18n tag
frenchbread Jun 6, 2016
54ae672
permissions updated
Jun 6, 2016
6896218
Merge remote-tracking branch 'origin/feature/documentation-tab' into …
Jun 6, 2016
1f9f5bf
on success message
Jun 6, 2016
e561a80
updated i18n strings
Jun 6, 2016
ec77807
updated i18n string
Jun 6, 2016
1f509f4
cleaned up; moved create documentation button
Jun 6, 2016
5cf0486
i18n strings
Jun 6, 2016
a5f435e
Fix API Documentation Editor field validation
brylie Jun 6, 2016
c90b594
Fix permissions
frenchbread Jun 6, 2016
dada6ba
Cleanup
frenchbread Jun 6, 2016
69e2541
Change publication
frenchbread Jun 6, 2016
f66ad5d
Add Template.subscriptionsReady check
frenchbread Jun 6, 2016
9921b97
Move subscription into autorun
frenchbread Jun 6, 2016
c8d52cc
Add semicolon
frenchbread Jun 6, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ peppelg:bootstrap-3-modal
apinf:api-umbrella
standard-minifier-css
standard-minifier-js
vsivsi:file-collection
3 changes: 2 additions & 1 deletion .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ iron:core@1.0.11
iron:dynamic-template@1.0.12
iron:layout@1.0.12
iron:location@1.0.11
iron:middleware-stack@1.0.11
iron:middleware-stack@1.1.0
iron:router@1.0.12
iron:url@1.0.11
jparker:crypto-core@0.1.0
Expand Down Expand Up @@ -186,6 +186,7 @@ url@1.0.9
useraccounts:bootstrap@1.14.2
useraccounts:core@1.14.2
useraccounts:iron-routing@1.14.2
vsivsi:file-collection@1.3.5
webapp@1.2.8
webapp-hashing@1.0.9
yogiben:autoform-file@0.4.2
Expand Down
28 changes: 0 additions & 28 deletions both/collections/apiDocs.js

This file was deleted.

36 changes: 0 additions & 36 deletions both/collections/apiDocumentation.js

This file was deleted.

4 changes: 4 additions & 0 deletions both/collections/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Schemas.ApiBackendsSchema = new SimpleSchema({
type: String,
optional: false
},
documentationFileId: {
type: String,
optional: true
},
documentation_link: {
type: String,
optional: true,
Expand Down
10 changes: 1 addition & 9 deletions both/collections/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@ Schemas.SettingsSchema = new SimpleSchema({
type: String,
regEx: SimpleSchema.RegEx.Url,
label: "Host",
optional: true, // Optional must be true for custom validation
custom: function () { // Custom validator logic
// get the value of apiDocumentationEditor.enabled field
let enabledFieldValue = this.field("apiDocumentationEditor.enabled").value;
// if enabled is true, host field is required
if (enabledFieldValue === true) {
return "required"; // host field is required
}
}
optional: false
},
apiUmbrella: {
type: Object,
Expand Down
16 changes: 0 additions & 16 deletions client/layouts/master_layout/sidebar/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@
<a href="/catalogue"><i class="fa fa-list-alt"></i><span>{{_ "masterLayout_sidebar_Catalogue"}}</span></a>
</li>
{{# if currentUser }}
<li class="{{isActiveRoute 'documentation'}} {{isActiveRoute 'apiDocumentationEditor'}} treeview">
<a href="#">
<i class="fa fa-book"></i>
<span>{{_ "masterLayout_sidebar_Documentation"}}</span>
</a>
<ul class="treeview-menu">
{{# if apiDocumentationEditorIsEnabled}}
<li class="{{isActiveRoute 'apiDocumentationEditor'}}">
<a href="/documentation/editor"><i class="fa fa-circle-o"></i><span>{{_ "masterLayout_sidebar_DocumentationEditor"}}</span></a>
</li>
{{/ if }}
<li class="{{isActiveRoute 'documentation'}}">
<a href="/documentation"><i class="fa fa-circle-o"></i><span>{{_ "masterLayout_sidebar_DocumentationViewer"}}</span></a>
</li>
</ul>
</li>
{{# if isInRole 'admin' }}
<li class="{{isActiveRoute 'accountsAdmin'}}">
<a href="{{pathFor route='accountsAdmin'}}"><i class="fa fa-users"></i><span>{{_ "masterLayout_sidebar_Users"}}</span></a>
Expand Down
12 changes: 0 additions & 12 deletions client/views/api_backends/edit/form/editApiBackendForm.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,6 @@ <h1>{{_ "apiBackends_Edit_API_Title"}}</h1>
<span class="help-block">{{_ "apiBackends_Matching_Title_Help"}}</span>
{{>showHelp 'url_matches'}}
{{> afQuickField name='url_matches'}}
<legend data-toggle="collapse" data-target="#documentation-block" aria-expanded="false"><i class="fa fa-chevron-right"></i> {{_ "apiBackends_DocumentationTitle"}}</legend>
<div id="documentation-block" class="collapse in">
{{>showHelp 'documentation_link'}}
{{> afQuickField name='documentation_link'}}
<span class="help-block">{{_ "apiBackends_Documentation_Link"}}</span>
{{>showHelp 'importApiDocumentation'}}
{{> importApiDocumentation}}
<legend>Create new documentation</legend>
{{>showHelp 'apiDocumentationEditor'}}
<a href="{{ pathFor 'apiDocumentationEditor' }}" target="_blank" class="btn btn-success"><span class="fa fa-pencil"></span> Create API documentation</a>
<span class="help-block">Create a new API documentation file</span>
</div>
<legend data-toggle="collapse" data-target="#global-request-block" aria-expanded="false"><i class="fa fa-chevron-right"></i> {{_ "apiBackends_GlobalRequestSettings_Title"}}</legend>
<div id="global-request-block" class="collapse in">
{{>showHelp 'append_query_string'}}
Expand Down
18 changes: 0 additions & 18 deletions client/views/api_backends/form_hints/form_hints.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,6 @@ var helpData = {
placement: 'left'
}
},
'documentation_link': {
message: TAPi18n.__('editApi_hints_documentation_link'),
options: {
placement: 'left'
}
},
'apiDocumentationEditor': {
message: TAPi18n.__('editApi_hints_apiDocumentationEditor'),
options: {
placement: 'left'
}
},
'importApiDocumentation': {
message: TAPi18n.__('editApi_hints_importApiDocumentation'),
options: {
placement: 'left'
}
},
'append_query_string': {
message: TAPi18n.__('editApi_hints_append_query_string'),
options: {
Expand Down
3 changes: 0 additions & 3 deletions client/views/api_backends/import_documentation/import.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<template name="importApiDocumentation">
<form id="apiDocumentationUploadForm" class="form" method="post">
<fieldset>
<!-- Form Name -->
<legend>{{_ "import_ApiDocumentation_Title"}}</legend>

<!-- File Button -->
<div class="form-group">
<label class="control-label" for="documentationCofigurationFile">{{_ "import_ApiDocumentation_File"}}</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a
href="{{ pathFor 'editApiBackend' _id=apiBackend._id }}"
class="btn btn-info">
<i class="fa fa-cog"></i>
<i class="fa fa-cog"></i>
{{_ "view_ApiBackend_Details_editButtonText" }}
</a>
</div>
Expand All @@ -24,10 +24,10 @@ <h2 class="panel-title clearfix">
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-3">
<div class="col-md-6">
{{> viewApiBackendStatus apiBackend=apiBackend }}
</div>
<div class="col-md-4">
<div class="col-md-6">
{{> viewApiBackendServers apiBackend=apiBackend }}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
Details
</a>
</li>
<li>
<a href="#api-backend-documentation" data-toggle="pill">
<i class="fa fa-file-text"></i>
Documentation
</a>
</li>
<li>
<a href="#api-backend-metadata" data-toggle="pill">
<i class="fa fa-book"></i>
Expand Down
48 changes: 26 additions & 22 deletions client/views/api_backends/view_api_backend/view_api_backend.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
<template name="viewApiBackend">
{{#if Template.subscriptionsReady }}
{{> viewApiBackendPageHeading apiBackend=apiBackend }}
<div class="row">
{{> viewApiBackendNavigationMenu apiBackend=apiBackend }}
</div>
{{> viewApiBackendPageHeading apiBackend=apiBackend }}
<div class="row">
{{> viewApiBackendNavigationMenu apiBackend=apiBackend }}
</div>

<div class="tab-content">
<div id="api-backend-details" class="tab-pane fade in active">
{{> viewApiBackendDetails apiBackend=apiBackend }}
</div> <!-- /api-backend-details -->
<div class="tab-content">
<div id="api-backend-details" class="tab-pane fade in active">
{{> viewApiBackendDetails apiBackend=apiBackend }}
</div> <!-- /api-backend-details -->

<div id="api-backend-metadata" class="tab-pane fade in">
{{> viewApiBackendMetadata apiBackend=apiBackend metadata=metadata }}
</div> <!-- /api-backend-metadata -->
<div id="api-backend-documentation" class="tab-pane fade in">
{{> documentation apiBackend=apiBackend }}
</div> <!-- /api-backend-Documentation -->

<div id="api-backend-feedback" class="tab-pane fade in">
{{> feedbackList apiBackend=apiBackend }}
</div> <!-- /api-backend-metadata -->
<div id="api-backend-metadata" class="tab-pane fade in">
{{> viewApiBackendMetadata apiBackend=apiBackend metadata=metadata }}
</div> <!-- /api-backend-metadata -->

<div id="api-backend-export" class="tab-pane fade in">
{{> viewApiBackendExport apiBackend=apiBackend }}
</div> <!-- /api-backend-export -->
<div id="api-backend-feedback" class="tab-pane fade in">
{{> feedbackList apiBackend=apiBackend }}
</div> <!-- /api-backend-metadata -->

<div id="api-backend-backlog" class="tab-pane fade in">
{{> apiBacklog apiBackend=apiBackend backlogItems=backlogItems }}
</div> <!-- /api-backend-export -->
<div id="api-backend-export" class="tab-pane fade in">
{{> viewApiBackendExport apiBackend=apiBackend }}
</div> <!-- /api-backend-export -->

</div> <!-- /tab-content -->
<div id="api-backend-backlog" class="tab-pane fade in">
{{> apiBacklog apiBackend=apiBackend backlogItems=backlogItems }}
</div> <!-- /api-backend-export -->

</div> <!-- /tab-content -->
{{ else }}
{{> spinner }}
{{> spinner }}
{{/ if }}
</template>
15 changes: 0 additions & 15 deletions client/views/documentation/select/select.html

This file was deleted.

19 changes: 0 additions & 19 deletions client/views/documentation/select/select.js

This file was deleted.

10 changes: 0 additions & 10 deletions client/views/documentation/view/documentation.css

This file was deleted.

4 changes: 0 additions & 4 deletions client/views/documentation/view/documentation.html

This file was deleted.

59 changes: 0 additions & 59 deletions client/views/documentation/view/documentation.js

This file was deleted.

Loading