Skip to content

Commit c55cdf4

Browse files
committed
Merge remote-tracking branch 'origin' into shubham1172/fix-e2e-pipeline-2
2 parents 4b8478e + e56f31d commit c55cdf4

File tree

183 files changed

+2630
-86
lines changed

Some content is hidden

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

183 files changed

+2630
-86
lines changed

.devcontainer/Dockerfile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
#-------------------------------------------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation and Dapr Contributors. All rights reserved.
3-
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
4-
#-------------------------------------------------------------------------------------------------------------
1+
#
2+
# Copyright 2022 The Dapr Authors
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
513

614
FROM ubuntu:20.04
715

.eslintrc.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"root": true,
33
"parser": "@typescript-eslint/parser",
44
"plugins": [
5-
"@typescript-eslint"
5+
"@typescript-eslint",
6+
"header"
67
],
78
"extends": [
89
"eslint:recommended",
@@ -16,9 +17,23 @@
1617
"rules": {
1718
"@typescript-eslint/ban-ts-comment": "off",
1819
"@typescript-eslint/no-explicit-any": "off",
19-
"@typescript-eslint/no-unused-vars": ["warn", {
20+
"@typescript-eslint/no-unused-vars": ["error", {
2021
"varsIgnorePattern": "^_",
2122
"argsIgnorePattern": "^_"
22-
}]
23+
}],
24+
"header/header": ["error", "block", [
25+
"",
26+
{"pattern": "Copyright \\d{4} The Dapr Authors", "template": "Copyright 2022 The Dapr Authors"},
27+
"Licensed under the Apache License, Version 2.0 (the \"License\");",
28+
"you may not use this file except in compliance with the License.",
29+
"You may obtain a copy of the License at",
30+
" http://www.apache.org/licenses/LICENSE-2.0",
31+
"Unless required by applicable law or agreed to in writing, software",
32+
"distributed under the License is distributed on an \"AS IS\" BASIS,",
33+
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
34+
"See the License for the specific language governing permissions and",
35+
"limitations under the License.",
36+
""
37+
], 2]
2338
}
2439
}

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
#
2+
# Copyright 2022 The Dapr Authors
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
114
name: Node.js CI
215

316
on:

.github/workflows/dapr-bot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
#
2+
# Copyright 2022 The Dapr Authors
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
114
name: dapr-bot
215

316
on:

.github/workflows/test-e2e.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
#
2+
# Copyright 2022 The Dapr Authors
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
114
name: Test - E2E
215

316
on:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright 2021 The Dapr Authors.
190+
Copyright 2022 The Dapr Authors.
191191

192192
and others that have contributed code to the public domain.
193193

daprdocs/content/en/js-sdk-docs/_index.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,45 @@ no_list: true
99

1010
The Dapr JS SDK will allow you to interface with the Dapr process that abstracts several commonly used functionalities such as Service-to-Service invocation, State Management, PubSub, and more.
1111

12+
## Installation
13+
14+
To get started with the Javascript SDK, you can download the Dapr Javascript SDK package from [NPM](https://npmjs.org/package/dapr-client) by running the following:
15+
16+
```bash
17+
npm install --save dapr-client
18+
```
19+
20+
## Structure
21+
22+
The Dapr Javascript SDK contains two major components:
23+
24+
* **DaprServer:** The Dapr Server manages all communication from the Dapr Sidecar to your application
25+
* **DaprClient:** The Dapr Client manages all communication from your application to the Dapr Sidecar
26+
27+
The above communication can be configured to use either of the gRPC or HTTP protocols.
28+
29+
![Dapr Server](./js-server/dapr-server.jpg)
30+
![Dapr Client](./js-client/dapr-client.jpg)
31+
32+
## Get Started
33+
34+
To help you get started, check out the resources below:
1235

1336
<div class="card-deck">
1437
<div class="card">
1538
<div class="card-body">
1639
<h5 class="card-title"><b>Client</b></h5>
17-
<p class="card-text">Create a JavaScript client and interact with a Dapr sidecar and other Dapr applications.</p>
40+
<p class="card-text">Create a JavaScript client and interact with a Dapr sidecar and other Dapr applications. (e.g., publishing events, output binding support, etc.)</p>
1841
<a href="{{< ref js-client >}}" class="stretched-link"></a>
1942
</div>
2043
</div>
44+
<div class="card">
45+
<div class="card-body">
46+
<h5 class="card-title"><b>Server</b></h5>
47+
<p class="card-text">Create a JavaScript server and let the Dapr sidecar interact with your application. (e.g., subscribing to events, input binding support, etc.)</p>
48+
<a href="{{< ref js-server >}}" class="stretched-link"></a>
49+
</div>
50+
</div>
2151
<div class="card">
2252
<div class="card-body">
2353
<h5 class="card-title"><b>Actors</b></h5>

0 commit comments

Comments
 (0)