Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linode and Oracle code generation module and plugin by Partik GSoC2023 #184

Merged
merged 75 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
48d252d
Initialised Linode
partik03 Mar 20, 2023
3001a56
Revert "Initialised Linode"
partik03 Mar 25, 2023
2dc8d86
Initialised OCI
partik03 Mar 27, 2023
7ea58c4
Fixed Bugs
partik03 Apr 5, 2023
e600384
initialised transformer for oracle
partik03 Apr 7, 2023
f63a587
Added
partik03 May 26, 2023
f0c7c26
Added dummy class
partik03 Jun 2, 2023
9cbd5d8
Added linode parser
partik03 Jun 9, 2023
41992fa
Added Parser
partik03 Jun 9, 2023
4864f33
Done
partik03 Jun 9, 2023
ea3a8c0
Done
partik03 Jun 9, 2023
8f857f7
Added Linode Class
partik03 Jun 11, 2023
dbb0766
Added Linode Parser
partik03 Jun 22, 2023
ea1e704
Added linode data extractor
partik03 Jun 22, 2023
c048ed7
changed main.ts
partik03 Jun 23, 2023
4fecde6
Added generator
partik03 Jun 23, 2023
3822bbf
Added generator
partik03 Jun 23, 2023
7c74be5
Changed Data Extractor
partik03 Jun 23, 2023
674350b
Changed Data Extractor
partik03 Jun 23, 2023
6632dbe
Added Data extrator
partik03 Jun 29, 2023
6c84020
Added Oracle extractor
partik03 Jun 29, 2023
5f8fec0
Added Oracle extractor
partik03 Jun 29, 2023
1b3d934
Removed unwanted files
partik03 Jun 29, 2023
3f70a91
Changed Generator function
partik03 Jul 7, 2023
4194ff9
Added Transformer
partik03 Jul 7, 2023
e20a4fc
Added transformer
partik03 Jul 7, 2023
6bf329c
Added Parser Oracle
partik03 Jul 13, 2023
d4e0600
Oracle Data Extractor function
partik03 Jul 13, 2023
25a90da
Oracle Data Extractor function
partik03 Jul 13, 2023
f6de0fc
Added dummy class
partik03 Jul 21, 2023
d3ee492
Added Transformer
partik03 Jul 21, 2023
af610d6
Added Tests for Oracle
partik03 Jul 28, 2023
599e918
Added tests for linode
partik03 Aug 6, 2023
e7ff01c
Added tests for linode
partik03 Aug 6, 2023
63e3695
Added Linode package
partik03 Aug 6, 2023
83b3fad
done
partik03 Aug 7, 2023
30c65a8
Formatted code
partik03 Aug 7, 2023
45cf7ee
Changed Transformer
partik03 Aug 8, 2023
8ec8606
Added all tests
partik03 Aug 8, 2023
649fc0b
Completed the package
partik03 Aug 19, 2023
f700b63
Added Examples
partik03 Aug 22, 2023
56a1e5e
Added Examples
partik03 Aug 22, 2023
9a1e27b
Added Examples
partik03 Aug 22, 2023
adefa56
Completed Tests
partik03 Aug 25, 2023
525dbff
Completed Tests
partik03 Aug 25, 2023
d150ac7
Prettier and linting issue
partik03 Aug 25, 2023
b358ba1
Merge pull request #170 from partik03/oracle_dummy_class
mbcse Aug 25, 2023
b9fc456
Merge pull request #171 from partik03/linode_dummy_class
mbcse Aug 25, 2023
166f668
Merge pull request #172 from partik03/linode_parser
mbcse Aug 25, 2023
f90e55b
Merge branch 'partik-gsoc2023' into oracle_parser
partik03 Aug 25, 2023
715a17f
Merge pull request #173 from partik03/oracle_parser
mbcse Aug 25, 2023
6e1a117
Merge branch 'partik-gsoc2023' into oracle_data_extractor
partik03 Aug 25, 2023
ed524b9
Merge pull request #174 from partik03/oracle_data_extractor
mbcse Aug 25, 2023
9171549
Merge branch 'partik-gsoc2023' into linode_data_extractor
partik03 Aug 25, 2023
4062259
Merge pull request #175 from partik03/linode_data_extractor
mbcse Aug 25, 2023
f2ef9ee
Merge pull request #176 from partik03/oracle_transformer
mbcse Aug 25, 2023
6a25385
Merge pull request #177 from partik03/linode_transformer
mbcse Aug 25, 2023
d8c2fc9
Merge branch 'partik-gsoc2023' into linode_tests
partik03 Aug 25, 2023
21135ea
Merge pull request #180 from partik03/linode_tests
mbcse Aug 25, 2023
549a97c
Merge branch 'partik-gsoc2023' into oracle_tests
partik03 Aug 25, 2023
dbf0148
Merge pull request #181 from partik03/oracle_tests
mbcse Aug 25, 2023
5df7bf5
Merge branch 'partik-gsoc2023' into linode_package
partik03 Aug 25, 2023
5368c13
Merge pull request #182 from partik03/linode_package
mbcse Aug 25, 2023
c882b6d
Added the oracle plugin
partik03 Aug 26, 2023
2a894c0
Added examples
partik03 Aug 26, 2023
5783750
Merge pull request #186 from partik03/oracle_package2
mbcse Aug 26, 2023
3a2bc89
Pretty and lint
mbcse Aug 26, 2023
9130d75
Reverting to old lock file
mbcse Aug 26, 2023
8dbee05
Some changes
partik03 Aug 27, 2023
037e679
Some changes
partik03 Aug 27, 2023
5c4196a
Final changes
partik03 Aug 27, 2023
d92b986
Used Readme
partik03 Aug 27, 2023
b097c86
Changed the linode and oracle dummy class
partik03 Aug 27, 2023
88dcb88
Final Changes
partik03 Aug 28, 2023
a3fc0a1
Merge pull request #189 from partik03/final_gsoc23
mbcse Sep 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
239 changes: 129 additions & 110 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/generator/high_level_diagrams/linode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/generator/high_level_diagrams/oracle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/generator/high_level_diagrams/oracle2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,702 changes: 1,000 additions & 702 deletions docs/AWS_ArchivalStorage.html

Large diffs are not rendered by default.

1,515 changes: 894 additions & 621 deletions docs/AWS_BlockStorage.html

Large diffs are not rendered by default.

2,460 changes: 1,423 additions & 1,037 deletions docs/AWS_ComputeInstance.html

Large diffs are not rendered by default.

1,510 changes: 891 additions & 619 deletions docs/AWS_Container.html

Large diffs are not rendered by default.

1,514 changes: 902 additions & 612 deletions docs/AWS_DNS.html

Large diffs are not rendered by default.

1,690 changes: 1,007 additions & 683 deletions docs/AWS_IAM.html

Large diffs are not rendered by default.

1,711 changes: 1,006 additions & 705 deletions docs/AWS_KeyManagement.html

Large diffs are not rendered by default.

2,661 changes: 1,551 additions & 1,110 deletions docs/AWS_Kubernetes.html

Large diffs are not rendered by default.

1,709 changes: 1,002 additions & 707 deletions docs/AWS_LoadBalancer.html

Large diffs are not rendered by default.

1,517 changes: 903 additions & 614 deletions docs/AWS_Monitoring.html

Large diffs are not rendered by default.

1,870 changes: 1,111 additions & 759 deletions docs/AWS_NoSql.html

Large diffs are not rendered by default.

2,477 changes: 1,444 additions & 1,033 deletions docs/AWS_NoSqlIndexed.html

Large diffs are not rendered by default.

2,291 changes: 1,335 additions & 956 deletions docs/AWS_NotificationService.html

Large diffs are not rendered by default.

3,752 changes: 2,140 additions & 1,612 deletions docs/AWS_PaaS.html

Large diffs are not rendered by default.

1,890 changes: 1,119 additions & 771 deletions docs/AWS_RDBMS.html

Large diffs are not rendered by default.

1,624 changes: 956 additions & 668 deletions docs/AWS_StorageBucket.html

Large diffs are not rendered by default.

1,731 changes: 1,014 additions & 717 deletions docs/AWS_Translation.html

Large diffs are not rendered by default.

1,079 changes: 611 additions & 468 deletions docs/AWS_appServices_aws-paaS.js.html

Large diffs are not rendered by default.

711 changes: 426 additions & 285 deletions docs/AWS_artificialinteligence_aws-translation.js.html

Large diffs are not rendered by default.

843 changes: 494 additions & 349 deletions docs/AWS_compute_aws-computeInstance.js.html

Large diffs are not rendered by default.

678 changes: 409 additions & 269 deletions docs/AWS_compute_aws-container.js.html

Large diffs are not rendered by default.

876 changes: 511 additions & 365 deletions docs/AWS_compute_aws-kubernetes.js.html

Large diffs are not rendered by default.

744 changes: 443 additions & 301 deletions docs/AWS_database_aws-RDBMS.js.html

Large diffs are not rendered by default.

744 changes: 443 additions & 301 deletions docs/AWS_database_aws-noSql.js.html

Large diffs are not rendered by default.

843 changes: 494 additions & 349 deletions docs/AWS_database_aws-noSqlIndexed.js.html

Large diffs are not rendered by default.

711 changes: 426 additions & 285 deletions docs/AWS_management_aws-keyManagement.js.html

Large diffs are not rendered by default.

678 changes: 409 additions & 269 deletions docs/AWS_management_aws-monitoring.js.html

Large diffs are not rendered by default.

810 changes: 477 additions & 333 deletions docs/AWS_management_aws-notificationService.js.html

Large diffs are not rendered by default.

678 changes: 409 additions & 269 deletions docs/AWS_network_aws-DNS.js.html

Large diffs are not rendered by default.

711 changes: 426 additions & 285 deletions docs/AWS_network_aws-loadBalancer.js.html

Large diffs are not rendered by default.

3,752 changes: 2,140 additions & 1,612 deletions docs/AWS_paas.html

Large diffs are not rendered by default.

711 changes: 426 additions & 285 deletions docs/AWS_security_aws-IAM.js.html

Large diffs are not rendered by default.

711 changes: 426 additions & 285 deletions docs/AWS_storage_aws-archivalStorage.js.html

Large diffs are not rendered by default.

678 changes: 409 additions & 269 deletions docs/AWS_storage_aws-blockStorage.js.html

Large diffs are not rendered by default.

709 changes: 425 additions & 284 deletions docs/AWS_storage_aws-storageBucket.js.html

Large diffs are not rendered by default.

2,166 changes: 1,301 additions & 865 deletions docs/Azure_BlockStorage.html

Large diffs are not rendered by default.

2,452 changes: 1,466 additions & 986 deletions docs/Azure_ComputeInstance.html

Large diffs are not rendered by default.

1,847 changes: 1,109 additions & 738 deletions docs/Azure_Container.html

Large diffs are not rendered by default.

1,964 changes: 1,199 additions & 765 deletions docs/Azure_DNS.html

Large diffs are not rendered by default.

2,351 changes: 1,429 additions & 922 deletions docs/Azure_KeyManagement.html

Large diffs are not rendered by default.

3,814 changes: 2,300 additions & 1,514 deletions docs/Azure_Kubernetes.html

Large diffs are not rendered by default.

2,217 changes: 1,338 additions & 879 deletions docs/Azure_LoadBalancer.html

Large diffs are not rendered by default.

2,186 changes: 1,321 additions & 865 deletions docs/Azure_Monitoring.html

Large diffs are not rendered by default.

2,443 changes: 1,491 additions & 952 deletions docs/Azure_NoSql.html

Large diffs are not rendered by default.

4,439 changes: 2,678 additions & 1,761 deletions docs/Azure_PaaS.html

Large diffs are not rendered by default.

2,562 changes: 1,573 additions & 989 deletions docs/Azure_RDBMS.html

Large diffs are not rendered by default.

1,723 changes: 1,048 additions & 675 deletions docs/Azure_StorageBucket.html

Large diffs are not rendered by default.

1,168 changes: 584 additions & 584 deletions docs/Azure_appServices_azure-paaS.js.html

Large diffs are not rendered by default.

830 changes: 456 additions & 374 deletions docs/Azure_compute_azure-computeInstance.js.html

Large diffs are not rendered by default.

740 changes: 416 additions & 324 deletions docs/Azure_compute_azure-container.js.html

Large diffs are not rendered by default.

1,066 changes: 541 additions & 525 deletions docs/Azure_compute_azure-kubernetes.js.html

Large diffs are not rendered by default.

852 changes: 445 additions & 407 deletions docs/Azure_database_azure-RDBMS.js.html

Large diffs are not rendered by default.

827 changes: 442 additions & 385 deletions docs/Azure_database_azure-noSql.js.html

Large diffs are not rendered by default.

801 changes: 440 additions & 361 deletions docs/Azure_management_azure-keyManagement.js.html

Large diffs are not rendered by default.

786 changes: 437 additions & 349 deletions docs/Azure_management_azure-monitoring.js.html

Large diffs are not rendered by default.

750 changes: 419 additions & 331 deletions docs/Azure_network_azure-DNS.js.html

Large diffs are not rendered by default.

798 changes: 438 additions & 360 deletions docs/Azure_network_azure-loadBalancer.js.html

Large diffs are not rendered by default.

4,439 changes: 2,678 additions & 1,761 deletions docs/Azure_paas.html

Large diffs are not rendered by default.

781 changes: 437 additions & 344 deletions docs/Azure_storage_azure-blockStorage.js.html

Large diffs are not rendered by default.

706 changes: 399 additions & 307 deletions docs/Azure_storage_azure-storageBucket.js.html

Large diffs are not rendered by default.

1,508 changes: 895 additions & 613 deletions docs/DO_BlockStorage.html

Large diffs are not rendered by default.

1,651 changes: 988 additions & 663 deletions docs/DO_ComputeInstance.html

Large diffs are not rendered by default.

2,019 changes: 1,233 additions & 786 deletions docs/DO_DNS.html

Large diffs are not rendered by default.

1,623 changes: 970 additions & 653 deletions docs/DO_KeyManagement.html

Large diffs are not rendered by default.

2,566 changes: 1,534 additions & 1,032 deletions docs/DO_Kubernetes.html

Large diffs are not rendered by default.

1,470 changes: 874 additions & 596 deletions docs/DO_LoadBalancer.html

Large diffs are not rendered by default.

1,664 changes: 1,008 additions & 656 deletions docs/DO_NoSql.html

Large diffs are not rendered by default.

1,664 changes: 1,008 additions & 656 deletions docs/DO_RDBMS.html

Large diffs are not rendered by default.

661 changes: 394 additions & 267 deletions docs/DO_compute_do-computeInstance.js.html

Large diffs are not rendered by default.

769 changes: 446 additions & 323 deletions docs/DO_compute_do-kubernetes.js.html

Large diffs are not rendered by default.

661 changes: 394 additions & 267 deletions docs/DO_database_do-RDBMS.js.html

Large diffs are not rendered by default.

661 changes: 394 additions & 267 deletions docs/DO_database_do-noSql.js.html

Large diffs are not rendered by default.

659 changes: 393 additions & 266 deletions docs/DO_management_do-keyManagement.js.html

Large diffs are not rendered by default.

697 changes: 411 additions & 286 deletions docs/DO_network_do-DNS.js.html

Large diffs are not rendered by default.

648 changes: 390 additions & 258 deletions docs/DO_network_do-loadBalancer.js.html

Large diffs are not rendered by default.

648 changes: 390 additions & 258 deletions docs/DO_storage_do-blockStorage.js.html

Large diffs are not rendered by default.

2,015 changes: 1,197 additions & 818 deletions docs/GCP_KeyManagement.html

Large diffs are not rendered by default.

2,942 changes: 1,742 additions & 1,200 deletions docs/GCP_Kubernetes.html

Large diffs are not rendered by default.

2,165 changes: 1,282 additions & 883 deletions docs/GCP_Monitoring.html

Large diffs are not rendered by default.

1,712 changes: 1,023 additions & 689 deletions docs/GCP_NoSql.html

Large diffs are not rendered by default.

2,718 changes: 1,602 additions & 1,116 deletions docs/GCP_NotificationService.html

Large diffs are not rendered by default.

2,464 changes: 1,465 additions & 999 deletions docs/GCP_RDBMS.html

Large diffs are not rendered by default.

1,971 changes: 1,171 additions & 800 deletions docs/GCP_Translation.html

Large diffs are not rendered by default.

2,116 changes: 1,274 additions & 842 deletions docs/GCP_dns.html

Large diffs are not rendered by default.

6,228 changes: 3,666 additions & 2,562 deletions docs/GCP_storage.html

Large diffs are not rendered by default.

948 changes: 948 additions & 0 deletions docs/Linode_BlockStorage.html

Large diffs are not rendered by default.

949 changes: 949 additions & 0 deletions docs/Linode_ComputeInstance.html

Large diffs are not rendered by default.

1,192 changes: 1,192 additions & 0 deletions docs/Linode_DNS.html

Large diffs are not rendered by default.

1,293 changes: 1,293 additions & 0 deletions docs/Linode_Firewalls.html

Large diffs are not rendered by default.

1,260 changes: 1,260 additions & 0 deletions docs/Linode_Images.html

Large diffs are not rendered by default.

1,262 changes: 1,262 additions & 0 deletions docs/Linode_Kubernetes.html

Large diffs are not rendered by default.

956 changes: 956 additions & 0 deletions docs/Linode_LoadBalancer.html

Large diffs are not rendered by default.

1,583 changes: 1,583 additions & 0 deletions docs/Linode_Monitoring.html

Large diffs are not rendered by default.

1,294 changes: 1,294 additions & 0 deletions docs/Linode_NoSql.html

Large diffs are not rendered by default.

408 changes: 408 additions & 0 deletions docs/Linode_compute_linode-computeInstance.js.html

Large diffs are not rendered by default.

437 changes: 437 additions & 0 deletions docs/Linode_compute_linode-kubernetes.js.html

Large diffs are not rendered by default.

439 changes: 439 additions & 0 deletions docs/Linode_database_linode-noSql.js.html

Large diffs are not rendered by default.

447 changes: 447 additions & 0 deletions docs/Linode_firewalls_linode-firewalls.js.html

Large diffs are not rendered by default.

438 changes: 438 additions & 0 deletions docs/Linode_images_linode-images.js.html

Large diffs are not rendered by default.

475 changes: 475 additions & 0 deletions docs/Linode_management_linode-monitoring.js.html

Large diffs are not rendered by default.

435 changes: 435 additions & 0 deletions docs/Linode_network_linode-DNS.js.html

Large diffs are not rendered by default.

408 changes: 408 additions & 0 deletions docs/Linode_network_linode-loadBalancer.js.html

Large diffs are not rendered by default.

408 changes: 408 additions & 0 deletions docs/Linode_storage_linode-blockStorage.js.html

Large diffs are not rendered by default.

703 changes: 418 additions & 285 deletions docs/googleCloud_artificialinteligence_gcp-translation.js.html

Large diffs are not rendered by default.

833 changes: 480 additions & 353 deletions docs/googleCloud_compute_gcp-kubernetes.js.html

Large diffs are not rendered by default.

754 changes: 442 additions & 312 deletions docs/googleCloud_database_gcp-RDBMS.js.html

Large diffs are not rendered by default.

653 changes: 393 additions & 260 deletions docs/googleCloud_database_gcp-noSql.js.html

Large diffs are not rendered by default.

703 changes: 417 additions & 286 deletions docs/googleCloud_management_gcp-keyManagement.js.html

Large diffs are not rendered by default.

719 changes: 425 additions & 294 deletions docs/googleCloud_management_gcp-monitoring.js.html

Large diffs are not rendered by default.

804 changes: 467 additions & 337 deletions docs/googleCloud_management_gcp-notificationService.js.html

Large diffs are not rendered by default.

697 changes: 413 additions & 284 deletions docs/googleCloud_network_gcp-DNS.js.html

Large diffs are not rendered by default.

708 changes: 418 additions & 290 deletions docs/googleCloud_storage_gcp-archivalStorage.js.html

Large diffs are not rendered by default.

708 changes: 418 additions & 290 deletions docs/googleCloud_storage_gcp-storageBucket.js.html

Large diffs are not rendered by default.

1,985 changes: 1,178 additions & 807 deletions docs/index.html

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions docs/scripts/app.min.js
Original file line number Diff line number Diff line change
@@ -1,91 +1,91 @@
"use strict";
'use strict';
$().ready(function() {});
var sidebarIsVisible = !1,
toggleSidebar = function(e) {
var a = !(0 < arguments.length && void 0 !== e) || e;
$("#sidebarNav").toggleClass("sticky", a),
$("#stickyNavbarOverlay").toggleClass("active", a),
$("#hamburger").toggleClass("is-active"),
(sidebarIsVisible = a);
};
toggleSidebar = function(e) {
var a = !(0 < arguments.length && void 0 !== e) || e;
$('#sidebarNav').toggleClass('sticky', a),
$('#stickyNavbarOverlay').toggleClass('active', a),
$('#hamburger').toggleClass('is-active'),
(sidebarIsVisible = a);
};
$().ready(function() {
$("#hamburger").click(function() {
toggleSidebar(!sidebarIsVisible);
}),
$("#stickyNavbarOverlay").click(function() {
sidebarIsVisible && toggleSidebar(!1);
});
$('#hamburger').click(function() {
toggleSidebar(!sidebarIsVisible);
}),
$('#stickyNavbarOverlay').click(function() {
sidebarIsVisible && toggleSidebar(!1);
});
});
var OFFSET = 150;
$().ready(function() {
var o = $("#side-nav"),
c = [];
if (
($(".vertical-section").length || o.hide(),
$(".vertical-section").each(function(e, a) {
var i = $(a),
t = i.find("> h1").text();
if (t) {
o.append($("<h3/>").text(t));
var s = $("<ul></ul>");
i.find(".members h4.name").each(function(e, a) {
var i = $(a),
t = i
.find(".code-name")
.clone()
.children()
.remove()
.end()
.text(),
n = i.find("a").attr("href"),
r = $('<a href="'.concat(n, '" />')).text(t);
s.append($("<li></li>").append(r)),
c.push({ link: r, offset: i.offset().top });
}),
o.append(s);
} else
i.find(".members h4.name").each(function(e, a) {
var i = $(a),
t = i
.find(".code-name")
.clone()
.children()
.remove()
.end()
.text(),
n = i.find("a").attr("href"),
r = $('<a href="'.concat(n, '" />')).text(t);
o.append(r), c.push({ link: r, offset: i.offset().top });
});
}),
!$.trim(o.text()))
)
return o.hide();
function e() {
for (var e = n.scrollTop(), a = !1, i = c.length - 1; 0 <= i; i--) {
var t = c[i];
t.link.removeClass("is-active"),
e + OFFSET >= t.offset
? a
? t.link.addClass("is-past")
: (t.link.addClass("is-active"), (a = !0))
: t.link.removeClass("is-past");
}
}
var n = $("#main-content-wrapper");
n.on("scroll", e),
e(),
c.forEach(function(e) {
e.link.click(function() {
n.animate({ scrollTop: e.offset - OFFSET + 1 }, 500);
});
});
var o = $('#side-nav'),
c = [];
if (
($('.vertical-section').length || o.hide(),
$('.vertical-section').each(function(e, a) {
var i = $(a),
t = i.find('> h1').text();
if (t) {
o.append($('<h3/>').text(t));
var s = $('<ul></ul>');
i.find('.members h4.name').each(function(e, a) {
var i = $(a),
t = i
.find('.code-name')
.clone()
.children()
.remove()
.end()
.text(),
n = i.find('a').attr('href'),
r = $('<a href="'.concat(n, '" />')).text(t);
s.append($('<li></li>').append(r)),
c.push({ link: r, offset: i.offset().top });
}),
o.append(s);
} else
i.find('.members h4.name').each(function(e, a) {
var i = $(a),
t = i
.find('.code-name')
.clone()
.children()
.remove()
.end()
.text(),
n = i.find('a').attr('href'),
r = $('<a href="'.concat(n, '" />')).text(t);
o.append(r), c.push({ link: r, offset: i.offset().top });
});
}),
!$.trim(o.text()))
)
return o.hide();
function e() {
for (var e = n.scrollTop(), a = !1, i = c.length - 1; 0 <= i; i--) {
var t = c[i];
t.link.removeClass('is-active'),
e + OFFSET >= t.offset
? a
? t.link.addClass('is-past')
: (t.link.addClass('is-active'), (a = !0))
: t.link.removeClass('is-past');
}
}
var n = $('#main-content-wrapper');
n.on('scroll', e),
e(),
c.forEach(function(e) {
e.link.click(function() {
n.animate({ scrollTop: e.offset - OFFSET + 1 }, 500);
});
});
}),
$().ready(function() {
$("#sidebarNav a").each(function(e, a) {
var i = $(a).attr("href");
window.location.pathname.match("/" + i) &&
($(a).addClass("active"),
$("#sidebarNav").scrollTop($(a).offset().top - 150));
});
});
$().ready(function() {
$('#sidebarNav a').each(function(e, a) {
var i = $(a).attr('href');
window.location.pathname.match('/' + i) &&
($(a).addClass('active'),
$('#sidebarNav').scrollTop($(a).offset().top - 150));
});
});
40 changes: 20 additions & 20 deletions docs/scripts/linenumber.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
/*global document */

(function() {
var source = document.getElementsByClassName("prettyprint source linenums");
var i = 0;
var lineNumber = 0;
var lineId;
var lines;
var totalLines;
var anchorHash;
var source = document.getElementsByClassName('prettyprint source linenums');
var i = 0;
var lineNumber = 0;
var lineId;
var lines;
var totalLines;
var anchorHash;

if (source && source[0]) {
anchorHash = document.location.hash.substring(1);
lines = source[0].getElementsByTagName("li");
totalLines = lines.length;
if (source && source[0]) {
anchorHash = document.location.hash.substring(1);
lines = source[0].getElementsByTagName('li');
totalLines = lines.length;

for (; i < totalLines; i++) {
lineNumber++;
lineId = "line" + lineNumber;
lines[i].id = lineId;
if (lineId === anchorHash) {
lines[i].className += " selected";
}
}
}
for (; i < totalLines; i++) {
lineNumber++;
lineId = 'line' + lineNumber;
lines[i].id = lineId;
if (lineId === anchorHash) {
lines[i].className += ' selected';
}
}
}
})();
79 changes: 43 additions & 36 deletions docs/scripts/search.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,49 @@
(function() {
const input = document.querySelector("#search");
const targets = [...document.querySelectorAll("#sidebarNav li")];
input.addEventListener("keyup", () => {
// loop over each targets and hide the not corresponding ones
targets.forEach(target => {
if (!target.innerText.toLowerCase().includes(input.value.toLowerCase())) {
target.style.display = "none";
const input = document.querySelector('#search');
const targets = [...document.querySelectorAll('#sidebarNav li')];
input.addEventListener('keyup', () => {
// loop over each targets and hide the not corresponding ones
targets.forEach(target => {
if (
!target.innerText
.toLowerCase()
.includes(input.value.toLowerCase())
) {
target.style.display = 'none';

/**
* Detects an empty list
* Remove the list and the list's title if the list is not displayed
*/
const list = [...target.parentNode.childNodes].filter(
elem => elem.style.display !== "none"
);
/**
* Detects an empty list
* Remove the list and the list's title if the list is not displayed
*/
const list = [...target.parentNode.childNodes].filter(
elem => elem.style.display !== 'none'
);

if (!list.length) {
target.parentNode.style.display = "none";
target.parentNode.previousSibling.style.display = "none";
}
if (!list.length) {
target.parentNode.style.display = 'none';
target.parentNode.previousSibling.style.display = 'none';
}

/**
* Detects empty category
* Remove the entire category if no item is displayed
*/
const category = [...target.parentNode.parentNode.childNodes].filter(
elem => elem.tagName !== "H2" && elem.style.display !== "none"
);
/**
* Detects empty category
* Remove the entire category if no item is displayed
*/
const category = [
...target.parentNode.parentNode.childNodes,
].filter(
elem =>
elem.tagName !== 'H2' && elem.style.display !== 'none'
);

if (!category.length) {
target.parentNode.parentNode.style.display = "none";
}
} else {
target.parentNode.style.display = "block";
target.parentNode.previousSibling.style.display = "block";
target.parentNode.parentNode.style.display = "block";
target.style.display = "block";
}
});
});
if (!category.length) {
target.parentNode.parentNode.style.display = 'none';
}
} else {
target.parentNode.style.display = 'block';
target.parentNode.previousSibling.style.display = 'block';
target.parentNode.parentNode.style.display = 'block';
target.style.display = 'block';
}
});
});
})();
Loading
Loading