-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8263 from ballerina-platform/master
Sync master into etl
- Loading branch information
Showing
1,172 changed files
with
48,915 additions
and
2,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"articles": [ | ||
{ | ||
"url": "https://www.slant.co/topics/20337/~visual-programming-languages", | ||
"title": "What are the best visual programming languages?", | ||
"author": "", | ||
"source": "Slant", | ||
"date": "Oct 3, 2023" | ||
}, | ||
{ | ||
"url": "https://bestcodinglanguage.com/for-cloud-computing/", | ||
"title": "Best Programming Languages For Cloud Computing", | ||
"author": "Awais Yaseen", | ||
"source": "Best coding language", | ||
"date": "Sep 15, 2023" | ||
}, | ||
{ | ||
"url": "https://www.hyperlinkinfosystem.com/blog/popular-microservices-frameworks", | ||
"title": "10 Most Popular Microservices Framework", | ||
"author": "Harnil Oza", | ||
"source": "Hyperlink InfoSystem", | ||
"date": "Sep 14, 2023" | ||
}, | ||
{ | ||
"url": "https://levelup.gitconnected.com/10-lesser-known-programming-languages-revolutionizing-the-tech-industry-july-2023-edition-64f356d0df8d", | ||
"title": "10 lesser-known programming languages revolutionizing the tech industry", | ||
"author": "Arslan Mirza", | ||
"source": "Level Up Coding", | ||
"date": "Jul 4, 2023" | ||
}, | ||
{ | ||
"url": "https://www.cmarix.com/blog/best-microservices-frameworks/", | ||
"title": "Top microservices frameworks to build scalable applications", | ||
"author": "Parth Patel", | ||
"source": "Cmarix", | ||
"date": "June 19, 2023" | ||
}, | ||
{ | ||
"url": "https://www.codelivly.com/lesser-known-programming-languages-worth-exploring/", | ||
"title": "8 lesser-known programming languages worth exploring", | ||
"author": "Rocky Sah", | ||
"source": "Codelivly", | ||
"date": "June 13, 2023" | ||
}, | ||
{ | ||
"url": "https://www.tatvasoft.com/blog/top-12-microservices-frameworks/", | ||
"title": "Top 12 microservices frameworks", | ||
"author": "Vishal Shah", | ||
"source": "Tatvasoft", | ||
"date": "Apr 25, 2023" | ||
}, | ||
{ | ||
"url": "https://levelup.gitconnected.com/14-mind-blowing-programming-languages-youve-probably-never-heard-of-b96550980661", | ||
"title": "14 programming languages you've probably never heard of", | ||
"author": "Clement Brian", | ||
"source": "Level Up Coding", | ||
"date": "Apr 12, 2023" | ||
}, | ||
{ | ||
"url": "https://camunda.com/blog/2022/09/seven-best-programming-languages-for-microservices/", | ||
"title": "7 best programming languages for microservices", | ||
"author": "Josh Wulf", | ||
"source": "Camunda", | ||
"date": "Sep 29, 2022" | ||
}, | ||
{ | ||
"url": "https://www.simform.com/blog/microservices-framework/", | ||
"title": "The Top Go-To Microservices Frameworks for a Scalable Application", | ||
"author": "Hiren Dhaduk", | ||
"source": "SIMFORM", | ||
"date": "March 15, 2022" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"version":"1.2.45", | ||
"release-date":"2023-10-15", | ||
"windows-installer":"ballerina-windows-installer-x64-1.2.45.msi", | ||
"version":"1.2.46", | ||
"release-date":"2023-11-01", | ||
"windows-installer":"ballerina-windows-installer-x64-1.2.46.msi", | ||
"windows-installer-size":"148mb", | ||
"linux-installer":"ballerina-linux-installer-x64-1.2.45.deb", | ||
"linux-installer":"ballerina-linux-installer-x64-1.2.46.deb", | ||
"linux-installer-size":"145mb", | ||
"macos-installer":"ballerina-macos-installer-x64-1.2.45.pkg", | ||
"macos-installer":"ballerina-macos-installer-x64-1.2.46.pkg", | ||
"macos-installer-size":"165mb", | ||
"rpm-installer":"ballerina-linux-installer-x64-1.2.45.rpm", | ||
"rpm-installer":"ballerina-linux-installer-x64-1.2.46.rpm", | ||
"rpm-installer-size":"168mb", | ||
"other-artefacts":[ | ||
"ballerina-1.2.45.zip", | ||
"ballerina-1.2.45.vsix" | ||
], | ||
"api-docs":"ballerina-api-docs-1.2.45.zip", | ||
"release-notes":"ballerina-release-notes-1.2.45.md" | ||
"other-artefacts":[ | ||
"ballerina-1.2.46.zip", | ||
"ballerina-1.2.46.vsix" | ||
], | ||
"api-docs":"ballerina-api-docs-1.2.46.zip", | ||
"release-notes":"ballerina-release-notes-1.2.46.md" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/** | ||
* Copyright (c) 2023, WSO2 LLC (http://www.wso2.com) All Rights Reserved. | ||
* | ||
* WSO2 LLC licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import React from "react"; | ||
|
||
// Add id attributes to headings | ||
const extractText = (value) => { | ||
if (typeof value === "string") { | ||
return value; | ||
} else { | ||
return value.props.children; | ||
} | ||
}; | ||
|
||
const scanArray = (array) => { | ||
const newArray = array.map(extractText); | ||
let newId = newArray | ||
.join("") | ||
.replace(/[&\/\\#,+()!$~%.'’":*?<>{}]/g, "") | ||
.toLowerCase(); | ||
newId = newId.replace(/ /g, "-"); | ||
return newId; | ||
}; | ||
|
||
const getLink = (element, id) => { | ||
if (element.tagName.toLowerCase() === "path") element = element.parentElement; | ||
|
||
const elementNodeList = document.querySelectorAll(`#${id}`); | ||
const elementArray = Array.prototype.slice.call(elementNodeList); | ||
const count = elementArray.indexOf(element.parentElement); | ||
|
||
if (count === 0) { | ||
location.hash = `#${id}`; | ||
} else { | ||
location.hash = `#${id}-${count}`; | ||
} | ||
|
||
navigator.clipboard.writeText(window.location.href); | ||
element.parentElement.scrollIntoView(); | ||
}; | ||
|
||
function Heading(level, children, setShowToc) { | ||
const id = | ||
Array.isArray(children) && children.length === 1 | ||
? children[0] | ||
.toLowerCase() | ||
.replace(/[&\/\\#,+()!$~%.'’":*?<>{}]/g, "") | ||
.replace(/ /g, "-") | ||
: scanArray(children); | ||
|
||
setShowToc(true); | ||
|
||
const handleLinkClick = (e) => getLink(e.target, id); | ||
|
||
return React.createElement( | ||
`h${level}`, | ||
{ id, "data-section": id, className: "section" }, | ||
React.createElement( | ||
"svg", | ||
{ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
width: "30", | ||
height: "30", | ||
fill: "currentColor", | ||
className: "bi bi-link-45deg mdButton pe-2", | ||
viewBox: "0 0 16 16", | ||
onClick: handleLinkClick, | ||
}, | ||
React.createElement("path", { | ||
d: "M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z", | ||
}), | ||
React.createElement("path", { | ||
d: "M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z", | ||
}) | ||
), | ||
children | ||
); | ||
} | ||
|
||
export default function GenerateHeadingComponent(level, setShowToc) { | ||
return ({ children }) => Heading(level, children, setShowToc); | ||
} |
Oops, something went wrong.