Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Project/Sources/DatabaseMethods/onWebConnection.4dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


If ($1="/hello")
WEB SEND TEXT:C677("with text from 4D")
End if
9 changes: 7 additions & 2 deletions Project/Sources/settings.4DSettings
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?><preferences stamp="2">
<?xml version="1.0" encoding="UTF-8"?><preferences stamp="3">
<com.4d>
<web>
<standalone_server>
<configuration https_port_number="8443" port_number="8080"/>
<configuration https_port_number="8443" port_number="8080" publish_at_startup="true"/>
</standalone_server>
</web>
<server>
<network>
<options publication_name="vue"/>
</network>
</server>
</com.4d>
</preferences>
1 change: 1 addition & 0 deletions WebFolder/css/app.e8e21ef1.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion WebFolder/css/app.fb0c6e1c.css

This file was deleted.

2 changes: 1 addition & 1 deletion WebFolder/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>4d-hello-world</title><link href=/css/app.fb0c6e1c.css rel=preload as=style><link href=/js/app.34a16035.js rel=preload as=script><link href=/js/chunk-vendors.f0b6743d.js rel=preload as=script><link href=/css/app.fb0c6e1c.css rel=stylesheet></head><body><noscript><strong>We're sorry but 4d-hello-world doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.f0b6743d.js></script><script src=/js/app.34a16035.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>4d-hello-world</title><link href=/css/app.e8e21ef1.css rel=preload as=style><link href=/js/app.11803c2d.js rel=preload as=script><link href=/js/chunk-vendors.0271637c.js rel=preload as=script><link href=/css/app.e8e21ef1.css rel=stylesheet></head><body><noscript><strong>We're sorry but 4d-hello-world doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.0271637c.js></script><script src=/js/app.11803c2d.js></script></body></html>
2 changes: 2 additions & 0 deletions WebFolder/js/app.11803c2d.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions WebFolder/js/app.11803c2d.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions WebFolder/js/app.34a16035.js

This file was deleted.

1 change: 0 additions & 1 deletion WebFolder/js/app.34a16035.js.map

This file was deleted.

15 changes: 15 additions & 0 deletions WebFolder/js/chunk-vendors.0271637c.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions WebFolder/js/chunk-vendors.0271637c.js.map

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions WebFolder/js/chunk-vendors.f0b6743d.js

This file was deleted.

1 change: 0 additions & 1 deletion WebFolder/js/chunk-vendors.f0b6743d.js.map

This file was deleted.

18 changes: 17 additions & 1 deletion vue/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<h2>{{ remotemsg }}</h2>
<p>
For a guide and recipes on how to configure / customize this project,<br>
check out the
Expand Down Expand Up @@ -31,10 +32,25 @@
</template>

<script>
const https = require("http");
export default {
name: 'HelloWorld',
props: {
msg: String
msg: String,
remotemsg: String
},
methods: {
getRemoteMsg() {
var url = window.location.href+"hello";
https.get(url, (res) => {
res.on('data', (data) => {
this.remotemsg=data;
})
})
}
},
created() {
this.getRemoteMsg();
}
}
</script>
Expand Down