diff --git a/swan-lake/by-example/access-json-elements/content.jsx b/swan-lake/by-example/access-json-elements/content.jsx index ca54933d704..572ed369266 100644 --- a/swan-lake/by-example/access-json-elements/content.jsx +++ b/swan-lake/by-example/access-json-elements/content.jsx @@ -88,7 +88,7 @@ export function AccessJsonElements({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/access-json-elements/access_json_elements.md", + "https://play.ballerina.io/?gist=e841a45f3e27484fcd739171b0d4170a&file=access_json_elements.bal", "_blank", ); }} @@ -96,140 +96,16 @@ export function AccessJsonElements({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -237,7 +113,7 @@ export function AccessJsonElements({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/access-json-elements", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/access-json-elements", "_blank", ); }} diff --git a/swan-lake/by-example/access-optional-json-elements/content.jsx b/swan-lake/by-example/access-optional-json-elements/content.jsx index 711d680f6be..b2722a69073 100644 --- a/swan-lake/by-example/access-optional-json-elements/content.jsx +++ b/swan-lake/by-example/access-optional-json-elements/content.jsx @@ -62,7 +62,7 @@ export function AccessOptionalJsonElements({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/access-optional-json-elements/access_optional_json_elements.md", + "https://play.ballerina.io/?gist=fe616421a37281798ae2b0b92143ae18&file=access_optional_json_elements.bal", "_blank", ); }} @@ -70,140 +70,16 @@ export function AccessOptionalJsonElements({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -211,7 +87,7 @@ export function AccessOptionalJsonElements({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/access-optional-json-elements", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/access-optional-json-elements", "_blank", ); }} diff --git a/swan-lake/by-example/aggregation/content.jsx b/swan-lake/by-example/aggregation/content.jsx index b9f09a12fbe..08448863e7f 100644 --- a/swan-lake/by-example/aggregation/content.jsx +++ b/swan-lake/by-example/aggregation/content.jsx @@ -84,7 +84,7 @@ export function Aggregation({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/aggregation/aggregation.md", + "https://play.ballerina.io/?gist=333cd26d653231237aee45e0d2977468&file=aggregation.bal", "_blank", ); }} @@ -92,140 +92,16 @@ export function Aggregation({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -233,7 +109,7 @@ export function Aggregation({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/aggregation", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/aggregation", "_blank", ); }} diff --git a/swan-lake/by-example/alternate-wait/content.jsx b/swan-lake/by-example/alternate-wait/content.jsx index cc474c50508..3814163216a 100644 --- a/swan-lake/by-example/alternate-wait/content.jsx +++ b/swan-lake/by-example/alternate-wait/content.jsx @@ -68,7 +68,7 @@ export function AlternateWait({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/alternate-wait/alternate_wait.md", + "https://play.ballerina.io/?gist=ee5a195493a9c91761f58b44fcf5ae87&file=alternate_wait.bal", "_blank", ); }} @@ -76,140 +76,16 @@ export function AlternateWait({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -217,7 +93,7 @@ export function AlternateWait({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/alternate-wait", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/alternate-wait", "_blank", ); }} diff --git a/swan-lake/by-example/annotations/content.jsx b/swan-lake/by-example/annotations/content.jsx index 51d1a5345c9..36aeedb7d80 100644 --- a/swan-lake/by-example/annotations/content.jsx +++ b/swan-lake/by-example/annotations/content.jsx @@ -72,7 +72,7 @@ export function Annotations({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/annotations/annotations.md", + "https://play.ballerina.io/?gist=af4a6df96f864d0b1d8c7887ec68d5d4&file=annotations.bal", "_blank", ); }} @@ -80,140 +80,16 @@ export function Annotations({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -221,7 +97,7 @@ export function Annotations({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/annotations", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/annotations", "_blank", ); }} diff --git a/swan-lake/by-example/anonymous-function/content.jsx b/swan-lake/by-example/anonymous-function/content.jsx index 196c8f564b9..122b831a54a 100644 --- a/swan-lake/by-example/anonymous-function/content.jsx +++ b/swan-lake/by-example/anonymous-function/content.jsx @@ -62,7 +62,7 @@ export function AnonymousFunction({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/anonymous-function/anonymous_function.md", + "https://play.ballerina.io/?gist=9a46089001c8658dc34da799149073dd&file=anonymous_function.bal", "_blank", ); }} @@ -70,140 +70,16 @@ export function AnonymousFunction({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -211,7 +87,7 @@ export function AnonymousFunction({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/anonymous-function", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/anonymous-function", "_blank", ); }} diff --git a/swan-lake/by-example/any-type/content.jsx b/swan-lake/by-example/any-type/content.jsx index a726901d706..ccf1c92e3ae 100644 --- a/swan-lake/by-example/any-type/content.jsx +++ b/swan-lake/by-example/any-type/content.jsx @@ -60,7 +60,7 @@ export function AnyType({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/any-type/any_type.md", + "https://play.ballerina.io/?gist=b0647e925982faad29043ca6e310d4f5&file=any_type.bal", "_blank", ); }} @@ -68,140 +68,16 @@ export function AnyType({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -209,7 +85,7 @@ export function AnyType({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/any-type", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/any-type", "_blank", ); }} diff --git a/swan-lake/by-example/anydata-type/content.jsx b/swan-lake/by-example/anydata-type/content.jsx index ef2711cbc9a..3f74c37a92b 100644 --- a/swan-lake/by-example/anydata-type/content.jsx +++ b/swan-lake/by-example/anydata-type/content.jsx @@ -58,7 +58,7 @@ export function AnydataType({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/anydata-type/anydata_type.md", + "https://play.ballerina.io/?gist=7ff59f5752e54549f71f718f7b0b3f8d&file=anydata_type.bal", "_blank", ); }} @@ -66,140 +66,16 @@ export function AnydataType({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -207,7 +83,7 @@ export function AnydataType({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/anydata-type", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/anydata-type", "_blank", ); }} diff --git a/swan-lake/by-example/array-map-symmetry/content.jsx b/swan-lake/by-example/array-map-symmetry/content.jsx index f538e901556..8088f80cef8 100644 --- a/swan-lake/by-example/array-map-symmetry/content.jsx +++ b/swan-lake/by-example/array-map-symmetry/content.jsx @@ -120,7 +120,7 @@ export function ArrayMapSymmetry({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/array-map-symmetry/array_map_symmetry.md", + "https://play.ballerina.io/?gist=8d7f0747eff8bd13f73d1752d064ad08&file=array_map_symmetry.bal", "_blank", ); }} @@ -128,140 +128,16 @@ export function ArrayMapSymmetry({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -269,7 +145,7 @@ export function ArrayMapSymmetry({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/array-map-symmetry", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/array-map-symmetry", "_blank", ); }} diff --git a/swan-lake/by-example/arrays/content.jsx b/swan-lake/by-example/arrays/content.jsx index cdfe279a556..2ccd5539ab9 100644 --- a/swan-lake/by-example/arrays/content.jsx +++ b/swan-lake/by-example/arrays/content.jsx @@ -99,7 +99,7 @@ export function Arrays({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/arrays/arrays.md", + "https://play.ballerina.io/?gist=804da0b46091c930077233d6740450c3&file=arrays.bal", "_blank", ); }} @@ -107,140 +107,16 @@ export function Arrays({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -248,7 +124,7 @@ export function Arrays({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/arrays", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/arrays", "_blank", ); }} diff --git a/swan-lake/by-example/asynchronize-message-passing/content.jsx b/swan-lake/by-example/asynchronize-message-passing/content.jsx index 20632b597a6..da8a3d9ef25 100644 --- a/swan-lake/by-example/asynchronize-message-passing/content.jsx +++ b/swan-lake/by-example/asynchronize-message-passing/content.jsx @@ -63,7 +63,7 @@ export function AsynchronizeMessagePassing({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/asynchronize-message-passing/asynchronize_message_passing.md", + "https://play.ballerina.io/?gist=80a3428d3a90a21c28ac5208e8973f5a&file=asynchronize_message_passing.bal", "_blank", ); }} @@ -71,140 +71,16 @@ export function AsynchronizeMessagePassing({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -212,7 +88,7 @@ export function AsynchronizeMessagePassing({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/asynchronize-message-passing", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/asynchronize-message-passing", "_blank", ); }} diff --git a/swan-lake/by-example/asynchronous-function-calls/content.jsx b/swan-lake/by-example/asynchronous-function-calls/content.jsx index 33cf7c65eb6..63d24725f4f 100644 --- a/swan-lake/by-example/asynchronous-function-calls/content.jsx +++ b/swan-lake/by-example/asynchronous-function-calls/content.jsx @@ -58,7 +58,7 @@ export function AsynchronousFunctionCalls({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "vscode://wso2.ballerina/open-file?repoFileUrl=https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/asynchronous-function-calls/asynchronous_function_calls.md", + "https://play.ballerina.io/?gist=118bf1cdbefcefe110e77509b5a8dde9&file=asynchronous_function_calls.bal", "_blank", ); }} @@ -66,140 +66,16 @@ export function AsynchronousFunctionCalls({ codeSnippets }) { aria-label="Open in Ballerina Playground" > - Open in Ballerina Visual Studio Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Open in Ballerina Playground + + @@ -207,7 +83,7 @@ export function AsynchronousFunctionCalls({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/asynchronous-function-calls", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/asynchronous-function-calls", "_blank", ); }} diff --git a/swan-lake/by-example/aws-lambda-dynamodb-trigger/content.jsx b/swan-lake/by-example/aws-lambda-dynamodb-trigger/content.jsx index 84e38712752..fcbe98195bd 100644 --- a/swan-lake/by-example/aws-lambda-dynamodb-trigger/content.jsx +++ b/swan-lake/by-example/aws-lambda-dynamodb-trigger/content.jsx @@ -150,7 +150,7 @@ export function AwsLambdaDynamodbTrigger({ codeSnippets }) { className="bg-transparent border-0 m-0 p-2 ms-auto" onClick={() => { window.open( - "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.2/examples/aws-lambda-dynamodb-trigger", + "https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.8.0/examples/aws-lambda-dynamodb-trigger", "_blank", ); }} @@ -438,7 +438,7 @@ export function AwsLambdaDynamodbTrigger({ codeSnippets }) {