Browse Source

fix typo

master
nitowa 1 year ago
parent
commit
d1d576edfa
5 changed files with 15 additions and 6 deletions
  1. 1
    1
      README.md
  2. 5
    2
      gateway/index.html
  3. 2
    1
      package.json
  4. 0
    1
      src/Gateway.ts
  5. 7
    1
      src/frontend/src/index.html

+ 1
- 1
README.md View File

1
 # Overview 
1
 # Overview 
2
 
2
 
3
-httXrp is a proof of concept for a truly serverless web architecture. If serverless simply means "a server owned by someone else", httXrp pushes that definition to its limit -or- perhaps its logical conclusion: What if that "someone else" never even intended that server to be used that way but can't do anything about it?
3
+httXrp is a proof of concept for a truly serverless web architecture. If cloud simply means "a server owned by someone else", httXrp pushes that definition to its limit -or- perhaps its logical conclusion: What if that "someone else" never even intended that server to be used that way but can't do anything about it?
4
 
4
 
5
 # How it works
5
 # How it works
6
 
6
 

+ 5
- 2
gateway/index.html View File

1
 <!doctype html>
1
 <!doctype html>
2
 <html lang="en">
2
 <html lang="en">
3
+
3
 <head>
4
 <head>
4
   <script src="https://bundle.run/browserify-zlib@0.2.0"></script>
5
   <script src="https://bundle.run/browserify-zlib@0.2.0"></script>
5
   <script src="https://bundle.run/buffer@6.0.3"></script>
6
   <script src="https://bundle.run/buffer@6.0.3"></script>
6
   <script src="https://cdn.jsdelivr.net/npm/ripple-lib@1.10.0/build/ripple-latest-min.min.js"></script>
7
   <script src="https://cdn.jsdelivr.net/npm/ripple-lib@1.10.0/build/ripple-latest-min.min.js"></script>
7
   <script src="https://cdn.jsdelivr.net/npm/xrpl@2.1.1"></script>
8
   <script src="https://cdn.jsdelivr.net/npm/xrpl@2.1.1"></script>
8
   <script src="https://cdn.jsdelivr.net/npm/xrpio@0.1.7/lib/browser/xrpio.browser.js"></script>
9
   <script src="https://cdn.jsdelivr.net/npm/xrpio@0.1.7/lib/browser/xrpio.browser.js"></script>
10
+  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
9
 </head>
11
 </head>
12
+
10
 <body>
13
 <body>
11
-  Loading ...
14
+  <div style="text-align: center;">Downloading the application from the blockchain</div>
15
+  <script src="main.js"></script>
12
 </body>
16
 </body>
13
-<script src="main.js"></script>
14
 
17
 
15
 </html>
18
 </html>

+ 2
- 1
package.json View File

12
     "build-gui": "cd src/frontend && npm run build",
12
     "build-gui": "cd src/frontend && npm run build",
13
     "copy-gui": "cp src/frontend/build/index.html gui",
13
     "copy-gui": "cp src/frontend/build/index.html gui",
14
     "webpack-gateway": "webpack --config webpack.gateway.js --progress && cp build/gateway/main.js gateway",
14
     "webpack-gateway": "webpack --config webpack.gateway.js --progress && cp build/gateway/main.js gateway",
15
-    "deploy": "node ./lib/Deploy.js"
15
+    "deploy": "node ./lib/Deploy.js",
16
+    "github": "cp gateway/* ~/caisar.github.io && cd ~/caisar.github.io && git add -A && git commit -m \"update\" --allow-empty && git push origin master"
16
   },
17
   },
17
   "author": "",
18
   "author": "",
18
   "license": "ISC",
19
   "license": "ISC",

+ 0
- 1
src/Gateway.ts View File

7
 const api = new xrpIO("wss://s.altnet.rippletest.net:51233")
7
 const api = new xrpIO("wss://s.altnet.rippletest.net:51233")
8
 api.connect().then(async _ => {
8
 api.connect().then(async _ => {
9
     const data = await api.treeRead([DATA_HASH]);
9
     const data = await api.treeRead([DATA_HASH]);
10
-    alert("Writing to document now")
11
     document.write(data)
10
     document.write(data)
12
 })
11
 })

+ 7
- 1
src/frontend/src/index.html View File

1
 <!DOCTYPE html>
1
 <!DOCTYPE html>
2
 <html lang="en">
2
 <html lang="en">
3
   <head>
3
   <head>
4
+    <meta http-equiv='cache-control' content='no-cache'> 
5
+    <meta http-equiv='expires' content='0'> 
6
+    <meta http-equiv='pragma' content='no-cache'>
7
+  
4
     <meta charset="utf-8" />
8
     <meta charset="utf-8" />
5
     <title>httXrp</title>
9
     <title>httXrp</title>
6
     <base href="" />
10
     <base href="" />
11
   </head>
15
   </head>
12
 
16
 
13
   <body cds-text="body">
17
   <body cds-text="body">
14
-    <app-root></app-root>
18
+    <app-root>
19
+      <div style="text-align: center;">Loading application state</div>
20
+    </app-root>
15
   </body>
21
   </body>
16
 </html>
22
 </html>

Loading…
Cancel
Save