Skip to content

Commit 3cabfa8

Browse files
authored
Merge pull request #2177 from apinf/develop
Merging for release 0.41.0
2 parents c37dfaa + 492ed95 commit 3cabfa8

File tree

193 files changed

+3316
-1623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+3316
-1623
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ indent_size = 2
2020
charset = utf-8
2121
indent_style = space
2222
indent_size = 2
23+
24+
# CSS styles
25+
[*.{css, less}]
26+
charset = utf-8
27+
indent_style = space
28+
indent_size = 2

.eslintignore

Lines changed: 1 addition & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -5,106 +5,4 @@ core/client/lib/chartsjs/*
55
apis/client/profile/visibility/lib/bootstrap-switch.js
66
/dashboard/client/charts/filtering/datepicker/
77
/dashboard/client/charts/filtering/selectpicker/
8-
9-
10-
######################################################################
11-
## Temporarily ignored ##
12-
######################################################################
13-
## We want to lint all those files ##
14-
## Please remove the line on this file if you are changing the file ##
15-
######################################################################
16-
documentation/client/codegenerator/autoform.js
17-
documentation/client/codegenerator/codegenerator.js
18-
documentation/client/codegenerator/codgeneratorSpecificLanguages.js
19-
documentation/client/design/documentation-editor.js
20-
documentation/client/lib/router.js
21-
documentation/client/manage/autoform.js
22-
documentation/client/manage/manage.js
23-
documentation/client/manage/uploadButton/uploadButton.js
24-
documentation/client/swaggerUI/swaggerUi.js
25-
documentation/client/view/documentation.js
26-
documentation/client/view/resumable.js
27-
documentation/collection/collection.js
28-
documentation/collection/server/permissions.js
29-
documentation/collection/server/publications.js
30-
documentation/server/methods/files.js
31-
documentation/server/methods/swagger.js
32-
documentation/server/publications.js
33-
elasticsearch/server/methods.js
34-
feedback_votes/collection/index.js
35-
feedback/client/form/autoform.js
36-
feedback/client/item/item.js
37-
feedback/client/list/list.js
38-
feedback/collection/index.js
39-
feedback/collection/schema.js
40-
feedback/collection/server/publications.js
41-
feedback/server/methods.js
42-
home/client/body/homeBody.js
43-
home/client/contact/autoform.js
44-
home/client/footer/homeFooter.js
45-
home/client/home.js
46-
home/client/lib/router.js
47-
metadata/client/edit/autoform.js
48-
metadata/collection/index.js
49-
metadata/collection/permissions.js
50-
metadata/collection/server/publication.js
51-
monitoring/client/autoform.js
52-
monitoring/client/monitoring.js
53-
monitoring/collection/index.js
54-
monitoring/collection/schema.js
55-
monitoring/collection/server/publications.js
56-
monitoring/server/cron.js
57-
proxies/api_umbrella/collections/api_umbrella_admins.js
58-
proxies/api_umbrella/collections/api_umbrella_users.js
59-
proxies/api_umbrella/collections/server/api_umbrella_admins_publications.js
60-
proxies/api_umbrella/collections/server/api_umbrella_users_publications.js
61-
proxies/client/form/autoform.js
62-
proxies/client/form/validation.js
63-
proxies/client/lib/router.js
64-
proxies/client/proxyItem/proxyItem.js
65-
proxies/collection/index.js
66-
proxies/collection/server/publications.js
67-
proxies/helper_functions/api_umbrella.js
68-
proxies/server/methods/api_umbrella.js
69-
proxy_backends/client/form/autoform.js
70-
proxy_backends/client/form/form.js
71-
proxy_backends/client/methods/convert_to_apiUmbrella_object.js
72-
proxy_backends/client/methods/delete_proxy_backend.js
73-
proxy_backends/client/modal_form/remove_selected_proxy/remove_selected_proxy.js
74-
proxy_backends/collection/apiUmbrellaSchema.js
75-
proxy_backends/collection/helpers.js
76-
proxy_backends/collection/index.js
77-
proxy_backends/collection/permissions.js
78-
proxy_backends/collection/regex.js
79-
proxy_backends/collection/schema.js
80-
proxy_backends/collection/server/publications.js
81-
proxy_backends/server/methods.js
82-
ratings/client/rating.js
83-
ratings/collection/index.js
84-
ratings/collection/permissions.js
85-
ratings/collection/schema.js
86-
ratings/collection/server/publications.js
87-
search/client/lib/router.js
88-
search/client/search.js
89-
search/server/publications.js
90-
settings/client/autoform.js
91-
settings/client/lib/router.js
92-
settings/collection/index.js
93-
settings/collection/permissions.js
94-
settings/collection/server/publications.js
95-
settings/server/methods.js
96-
setup/client/modal.js
97-
setup/server/methods.js
98-
status/client/lib/router.js
99-
status/client/status.js
100-
status/server/status.js
101-
users/client/account/account.js
102-
users/client/account/password/autoform.js
103-
users/client/lib/accounts_config.js
104-
users/collection/roles_schema.js
105-
users/collection/server/publications.js
106-
users/collection/users_permissions.js
107-
users/server/accounts_hooks.js
108-
users/server/login_verify.js
109-
users/server/methods.js
110-
users/server/startup_roles.js
8+
/api_media/lib/client/jquery.oembed.all.js

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"env": {
3+
"browser": true,
4+
"jquery": true,
5+
},
26
"parser": "babel-eslint",
37
"parserOptions": {
48
"allowImportExportEverywhere": true,

.test/manageapibackend.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ test.describe('Manage API Backend', function() {
3737
var newDescription = ' Date:' + new Date();
3838
driver.findElement(By.css('#apiBackendForm textarea[name="description"]')).sendKeys(newDescription);
3939
// Save settings
40+
4041
driver.findElement(By.id('save-settings')).click()
4142
.then(function() {
4243
driver.sleep(1000);

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ if (missingWidgets) {
215215
let missingWidgetsCount = missingWidgets.length
216216

217217
// Alert the boss!
218-
console.log(missingWidgetsCount, "widgets are missing!");
218+
219219
}
220220
```
221221

@@ -411,7 +411,7 @@ Migrations.add({
411411
});
412412
```
413413

414-
We are using *percolate:migrations* package for migrations. For additional info check
414+
We are using *percolate:migrations* package for migrations. For additional info check
415415
[README](https://github.com/percolatestudio/meteor-migrations/edit/master/README.md).
416416

417417
**References:**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For API consumers APInf provides simple key management, key usage analytics and
4545
## Source code visualization
4646
Our project source code has changed throughout the project lifespan.
4747

48-
[![source code structure](https://ia601503.us.archive.org/33/items/ApinfDevelopmentActivityUpTo0.33.1/Apinf-developmentActivity-upTo-0.33.1.gif)](https://archive.org/details/ApinfDevelopmentActivityUpTo0.33.1)
48+
[![source code structure](public/Apinf-developmentActivity-upTo-0.33.1.gif)](https://archive.org/details/ApinfDevelopmentActivityUpTo0.33.1)
4949

5050
See the [high definition video (with music) of Apinf Development Activity up to version 0.33.1](https://archive.org/details/ApinfDevelopmentActivityUpTo0.33.1) on the Internet Archive.
5151

about/client/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3>
2828
Apinf
2929
</dt>
3030
<dd>
31-
0.40.0
31+
0.41.0
3232
</dd>
3333
<dt>
3434
API Umbrella

api_catalog/client/api_catalog.html

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,25 @@
33
<h1 class="page-header">
44
{{_ "catalogue_Title" }}
55
</h1>
6-
76
{{> apiCatalogToolbar apis=apis }}
87

9-
<!-- if viewMode is table, show table -->
10-
{{# if gridViewMode }}
11-
{{# if Template.subscriptionsReady }}
8+
{{# if Template.subscriptionsReady }}
9+
<!-- if viewMode is grid, show grid -->
10+
{{# if gridViewMode }}
1211
{{> apiCatalogGrid apis=apis }}
13-
{{ else }}
14-
{{> spinner }}
1512
{{/ if }}
16-
{{/ if }}
17-
18-
<!-- if viewMode is table, show table -->
19-
{{# if tableViewMode }}
20-
{{# if Template.subscriptionsReady }}
13+
14+
<!-- if viewMode is table, show table -->
15+
{{# if tableViewMode }}
2116
{{> apiCatalogTable apis=apis }}
22-
{{ else }}
23-
{{> spinner }}
2417
{{/ if }}
18+
19+
<!-- show pagination button only if APIs are available -->
20+
{{# if apis }}
21+
{{> defaultBootstrapPaginator pagination=templatePagination limit=10 containerClass="text-center" }}
22+
{{/ if }}
23+
{{ else }}
24+
{{> spinner }}
2525
{{/ if }}
26-
27-
{{> defaultBootstrapPaginator pagination=templatePagination limit=10 containerClass="text-center" }}
2826
</div>
2927
</template>

api_catalog/client/api_catalog.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Roles } from 'meteor/alanning:roles';
44
import { FlowRouter } from 'meteor/kadira:flow-router';
55
import Apis from '/apis/collection';
66
import ApiBookmarks from '/bookmarks/collection';
7-
import $ from 'jquery';
87

98
Template.apiCatalog.onCreated(function () {
109
// Get reference to template instance

api_catalog/client/table/table.html

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,64 @@
22
<div class="table-responsive">
33
<table class="table table-striped table-bordered api-catalogue-table">
44
<tbody>
5-
{{# each api in apis }}
5+
{{# each api in apis }}
66
{{# if api.currentUserCanView }}
7-
<tr>
8-
<td class="col-sm-1">
9-
{{> viewApiStatus api=api width="0.6" }}
10-
<div class="api-catalogue-table-logo center-block">
11-
{{> viewApiLogo api=api }}
12-
</div>
13-
</td>
14-
<td class="col-sm-9">
15-
<h4 class="api-catalogue-table-title">
16-
<a href="{{ pathFor 'viewApi' _id=api._id }}">
17-
{{ api.name }}
18-
</a>
19-
</h4>
20-
<!-- Api LifeCycleStatus Label -->
21-
{{> apiLifecycleStatus api=api }}
7+
<tr>
8+
<td class="col-sm-1">
9+
{{> viewApiStatus api=api width="0.6" }}
10+
<div class="api-catalogue-table-logo center-block">
11+
{{> viewApiLogo api=api }}
12+
</div>
13+
</td>
14+
<td class="col-sm-9">
15+
<h4 class="api-catalogue-table-title">
16+
<a href="{{ pathFor 'viewApi' _id=api._id }}">
17+
{{ api.name }}
18+
</a>
19+
</h4>
20+
<!-- Api LifeCycleStatus Label -->
21+
{{> apiLifecycleStatus api=api }}
2222

23-
{{# unless api.isPublic }}
24-
<span class="label label-default label-align">
23+
{{# unless api.isPublic }}
24+
<span class="label label-default">
2525
{{_ "catalogueTable_labelText_private" }}
26-
</span>
27-
{{/ unless }}
28-
<div>
29-
<i>
30-
{{_ "catalogueTable_addedBy" }}
31-
{{ api.getApiManagersByName }}
32-
</i>
33-
<br>
34-
<i>
35-
{{_ "catalogueTable_added" }}
36-
{{ api.relativeCreatedAt }}
37-
</i>
38-
{{# if api.description }}
39-
<p class="api-catalogue-table-description">
40-
{{ api.description }}
41-
</p>
26+
</span>
27+
{{/ unless }}
28+
<div>
29+
<i>
30+
{{_ "catalogueTable_addedBy" }}
31+
{{ api.getApiManagersByName }}
32+
</i>
33+
<br>
34+
<i>
35+
{{_ "catalogueTable_added" }}
36+
{{ api.relativeCreatedAt }}
37+
</i>
38+
{{# if api.description }}
39+
<p class="api-catalogue-table-description">
40+
{{ api.description }}
41+
</p>
42+
{{/ if }}
43+
</div>
44+
</td>
45+
<td class="col-sm-1" style="vertical-align:middle">
46+
{{> apiBackendRating api }}
47+
</td>
48+
<td class="col-sm-1 text-center">
49+
{{# if currentUser }}
50+
<span class="api-card-bookmark">
51+
{{> bookmark api=api catalogueView=true }}
52+
</span>
53+
{{ else }}
54+
<span class="api-card-bookmark">
55+
<i class="fa fa-bookmark bookmark-default"></i>
56+
{{ api.bookmarkCount }}
57+
</span>
4258
{{/ if }}
43-
</div>
44-
</td>
45-
<td class="col-sm-1" style="vertical-align:middle">
46-
{{> apiBackendRating api }}
47-
</td>
48-
<td class="col-sm-1 text-center">
49-
{{# if currentUser }}
50-
<span class="api-card-bookmark">
51-
{{> bookmark api=api catalogueView=true }}
52-
</span>
53-
{{ else }}
54-
<span class="api-card-bookmark">
55-
<i class="fa fa-bookmark bookmark-default"></i>
56-
{{ api.bookmarkCount }}
57-
</span>
58-
{{ /if }}
59-
</td>
60-
</tr>
59+
</td>
60+
</tr>
6161
{{/ if }}
62-
{{/ each }}
62+
{{/ each }}
6363
</tbody>
6464
</table>
6565
</div>

0 commit comments

Comments
 (0)