浏览代码

fix typo

master
nitowa 1年前
父节点
当前提交
d1d576edfa
共有 5 个文件被更改,包括 15 次插入6 次删除
  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 查看文件

@@ -1,6 +1,6 @@
1 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 5
 # How it works
6 6
 

+ 5
- 2
gateway/index.html 查看文件

@@ -1,15 +1,18 @@
1 1
 <!doctype html>
2 2
 <html lang="en">
3
+
3 4
 <head>
4 5
   <script src="https://bundle.run/browserify-zlib@0.2.0"></script>
5 6
   <script src="https://bundle.run/buffer@6.0.3"></script>
6 7
   <script src="https://cdn.jsdelivr.net/npm/ripple-lib@1.10.0/build/ripple-latest-min.min.js"></script>
7 8
   <script src="https://cdn.jsdelivr.net/npm/xrpl@2.1.1"></script>
8 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 11
 </head>
12
+
10 13
 <body>
11
-  Loading ...
14
+  <div style="text-align: center;">Downloading the application from the blockchain</div>
15
+  <script src="main.js"></script>
12 16
 </body>
13
-<script src="main.js"></script>
14 17
 
15 18
 </html>

+ 2
- 1
package.json 查看文件

@@ -12,7 +12,8 @@
12 12
     "build-gui": "cd src/frontend && npm run build",
13 13
     "copy-gui": "cp src/frontend/build/index.html gui",
14 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 18
   "author": "",
18 19
   "license": "ISC",

+ 0
- 1
src/Gateway.ts 查看文件

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

+ 7
- 1
src/frontend/src/index.html 查看文件

@@ -1,6 +1,10 @@
1 1
 <!DOCTYPE html>
2 2
 <html lang="en">
3 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 8
     <meta charset="utf-8" />
5 9
     <title>httXrp</title>
6 10
     <base href="" />
@@ -11,6 +15,8 @@
11 15
   </head>
12 16
 
13 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 21
   </body>
16 22
 </html>

正在加载...
取消
保存