Skip to content

Commit

Permalink
add xgo tool test-explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed May 20, 2024
1 parent b1fa6d6 commit 8351a3b
Show file tree
Hide file tree
Showing 15 changed files with 680 additions and 15 deletions.
16 changes: 16 additions & 0 deletions cmd/go-tool-test-explorer/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"fmt"
"os"

test_explorer "github.com/xhd2015/xgo/cmd/xgo/test-explorer"
)

func main() {
err := test_explorer.Main(os.Args[1:])
if err != nil {
fmt.Fprintf(os.Stderr, "%v", err)
os.Exit(1)
}
}
4 changes: 2 additions & 2 deletions cmd/xgo/runtime_gen/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

const VERSION = "1.0.36"
const REVISION = "e44373cb3c83b85599797e1f0cb302f81a95d598+1"
const NUMBER = 225
const REVISION = "b1fa6d6f3a19df8888bf2c0eb103ddff88257582+1"
const NUMBER = 226

// these fields will be filled by compiler
const XGO_VERSION = ""
Expand Down
25 changes: 25 additions & 0 deletions cmd/xgo/test-explorer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en" style="height: 100%;">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
</style>
<script>
window.onload = function(){
const {renderReact,UrlXgoTestingExplorer} = Open
renderReact(root,UrlXgoTestingExplorer,{
apiPrefix:"http://localhost:8080"
})
}
</script>
</head>
<body style="height: 100%;">
<div id="root" style="height: 100%;"></div>
</body>
<!--after body because document.body may be null-->
<!--available in CN and Global-->
<script src="https://cdn.jsdelivr.net/npm/xgo-explorer/index.js"></script>
<!-- <script src="http://127.0.0.1:8080/npm-publish/index.js"></script> -->
</html>
Loading

0 comments on commit 8351a3b

Please sign in to comment.