Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dummy-vue-grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vig
provee
dummy-vue-grpc
Commits
df578a09
Commit
df578a09
authored
4 years ago
by
IsolatedSushi
Browse files
Options
Downloads
Patches
Plain Diff
Port changes
parent
22061141
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
envoy.yaml
+2
-2
2 additions, 2 deletions
envoy.yaml
frontend/README.md
+1
-1
1 addition, 1 deletion
frontend/README.md
frontend/src/components/gRPCDaprClient.vue
+6
-5
6 additions, 5 deletions
frontend/src/components/gRPCDaprClient.vue
with
9 additions
and
8 deletions
envoy.yaml
+
2
−
2
View file @
df578a09
...
@@ -2,7 +2,7 @@ static_resources:
...
@@ -2,7 +2,7 @@ static_resources:
listeners
:
listeners
:
-
name
:
listener_0
-
name
:
listener_0
address
:
address
:
socket_address
:
{
address
:
0.0.0.0
,
port_value
:
4949
}
socket_address
:
{
address
:
0.0.0.0
,
port_value
:
7050
}
filter_chains
:
filter_chains
:
-
filters
:
-
filters
:
-
name
:
envoy.http_connection_manager
-
name
:
envoy.http_connection_manager
...
@@ -36,4 +36,4 @@ static_resources:
...
@@ -36,4 +36,4 @@ static_resources:
type
:
logical_dns
type
:
logical_dns
http2_protocol_options
:
{}
http2_protocol_options
:
{}
lb_policy
:
round_robin
lb_policy
:
round_robin
hosts
:
[{
socket_address
:
{
address
:
192.168.1.34
,
port_value
:
50459
}}]
hosts
:
[{
socket_address
:
{
address
:
host.docker.internal
,
port_value
:
50460
}}]
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
frontend/README.md
+
1
−
1
View file @
df578a09
...
@@ -9,4 +9,4 @@ For some reason with vue it cant get the dapr.HTTP environment variable (even th
...
@@ -9,4 +9,4 @@ For some reason with vue it cant get the dapr.HTTP environment variable (even th
docker run -d -v C:
\U
sers
\s
imen
\O
neDrive
\D
ocuments
\G
itHub
\d
ummy-vue-grpc
\e
nvoy.yaml:/etc/envoy/envoy.yaml:ro -p 4949:4949 -p 50459:50459 envoyproxy/envoy:v1.15.0
docker run -d -v C:
\U
sers
\s
imen
\O
neDrive
\D
ocuments
\G
itHub
\d
ummy-vue-grpc
\e
nvoy.yaml:/etc/envoy/envoy.yaml:ro -p 7050:7050 -p 50460:50460 envoyproxy/envoy:v1.15.0
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
frontend/src/components/gRPCDaprClient.vue
+
6
−
5
View file @
df578a09
...
@@ -32,6 +32,8 @@ export default {
...
@@ -32,6 +32,8 @@ export default {
axios
.
get
(
dapr_url
+
"
/method/url
"
).
then
(
response
=>
axios
.
get
(
dapr_url
+
"
/method/url
"
).
then
(
response
=>
{
{
console
.
log
(
"
Response:
"
);
console
.
log
(
response
);
console
.
log
(
"
Dapr backend running on:
"
+
response
.
data
[
"
ip_address
"
]
+
"
:
"
+
response
.
data
[
"
port
"
]);
console
.
log
(
"
Dapr backend running on:
"
+
response
.
data
[
"
ip_address
"
]
+
"
:
"
+
response
.
data
[
"
port
"
]);
}
}
...
@@ -39,9 +41,9 @@ export default {
...
@@ -39,9 +41,9 @@ export default {
);
);
var
r
=
axios
.
post
(
dapr_url
+
"
/method/start
"
,
1
).
then
((
Response
)
=>
{
var
r
=
axios
.
post
(
dapr_url
+
"
/method/start
"
,
1
).
then
((
Response
)
=>
{
if
(
Response
.
data
[
"
successful
"
])
{
if
(
Response
.
data
[
"
successful
"
])
{
console
.
log
(
"
Grpc
"
);
console
.
log
(
Response
.
data
);
var
connectURL
=
"
http://
"
+
Response
.
data
[
"
url
"
];
var
connectURL
=
Response
.
data
[
"
url
"
];
connectURL
=
"
http://
0.0.0.0:4949
"
connectURL
=
"
http://
"
+
window
.
location
.
hostname
+
"
:7050
"
console
.
log
(
connectURL
)
console
.
log
(
connectURL
)
var
client
=
new
ProjectorClient
(
var
client
=
new
ProjectorClient
(
connectURL
,
connectURL
,
...
@@ -55,8 +57,7 @@ export default {
...
@@ -55,8 +57,7 @@ export default {
var
stream
=
client
.
getProjectionPoints
(
param
);
var
stream
=
client
.
getProjectionPoints
(
param
);
stream
.
on
(
"
data
"
,
(
response
)
=>
{
stream
.
on
(
"
data
"
,
(
response
)
=>
{
console
.
log
(
"
response
"
);
this
.
$emit
(
'
newPoint
'
,
response
);
console
.
log
(
response
);
});
});
stream
.
on
(
"
error
"
,
(
err
)
=>
{
stream
.
on
(
"
error
"
,
(
err
)
=>
{
this
.
errorAlert
=
true
this
.
errorAlert
=
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment