godprotocol 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/html/create.js +2 -2
- package/html/index.js +1 -1
- package/html/load.js +2 -2
- package/html/run.js +1 -1
- package/package.json +1 -1
package/html/create.js
CHANGED
|
@@ -13,7 +13,7 @@ const account_id_el = document.getElementById('account_id'), account_password_el
|
|
|
13
13
|
|
|
14
14
|
create_account.addEventListener('click', e=>{
|
|
15
15
|
e.preventDefault();
|
|
16
|
-
console.log('click click', "
|
|
16
|
+
console.log('click click', "${manager.options.server_domain}")
|
|
17
17
|
|
|
18
18
|
let name = account_id_el.value.trim(), password = account_password_el.value.trim();
|
|
19
19
|
|
|
@@ -26,7 +26,7 @@ const account_id_el = document.getElementById('account_id'), account_password_el
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
fetch("
|
|
29
|
+
fetch("${manager.options.server_domain.concat('/create_account')}", {
|
|
30
30
|
method: 'POST',
|
|
31
31
|
header: {
|
|
32
32
|
'Content-Type': 'application/json',
|
package/html/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const forms = (route, manager)=>{
|
|
|
20
20
|
|
|
21
21
|
const header_script = (manager)=>{
|
|
22
22
|
return ` let ftch = async(path, body)=>{
|
|
23
|
-
let fch = await fetch("
|
|
23
|
+
let fch = await fetch("${manager.options.server_domain}".concat(path), {
|
|
24
24
|
method: 'POST',
|
|
25
25
|
header: {
|
|
26
26
|
'Content-Type': 'application/json',
|
package/html/load.js
CHANGED
|
@@ -22,7 +22,7 @@ id_el = document.getElementById('ID'),
|
|
|
22
22
|
console.log(account)
|
|
23
23
|
|
|
24
24
|
if (!account){
|
|
25
|
-
message_box.innerHTML = 'Provide an account, or <a href="
|
|
25
|
+
message_box.innerHTML = 'Provide an account, or <a href="${manager.options.server_domain}/create_account">create one here</a>'
|
|
26
26
|
|
|
27
27
|
setTimeout(() => {
|
|
28
28
|
message_box.textContent = ''
|
|
@@ -72,7 +72,7 @@ load.addEventListener('click', e=>{
|
|
|
72
72
|
let id = id_el.value.trim(), address = address_el.value.trim(), sequence = sequence_el.value.trim(), account = account_selection_el.selectedIndex, compiler = should_compile.checked;
|
|
73
73
|
|
|
74
74
|
if (!account){
|
|
75
|
-
message_box.innerHTML = 'Provide an account, or <a href="
|
|
75
|
+
message_box.innerHTML = 'Provide an account, or <a href="${manager.options.server_domain}/create_account">create one here</a>'
|
|
76
76
|
|
|
77
77
|
setTimeout(() => {
|
|
78
78
|
message_box.textContent = ''
|
package/html/run.js
CHANGED
|
@@ -42,7 +42,7 @@ run.addEventListener('click', e=>{
|
|
|
42
42
|
let id = id_el.value.trim(), address = address_el.value.trim(), config = config_el.value.trim(), account = account_selection_el.selectedIndex, callback = callback_el.value.trim();
|
|
43
43
|
|
|
44
44
|
if (!account){
|
|
45
|
-
message_box.innerHTML = 'Provide an account, or <a href="
|
|
45
|
+
message_box.innerHTML = 'Provide an account, or <a href="${manager.options.server_domain}/create_account">create one here</a>'
|
|
46
46
|
|
|
47
47
|
setTimeout(() => {
|
|
48
48
|
message_box.textContent = ''
|