This is an automated email from the ASF dual-hosted git repository.
ako pushed a commit to branch ageviewer_go
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/ageviewer_go by this push:
new a534affc [AGE-VIEWER-GO]Some necessary links (#797)
a534affc is described below
commit a534affc5d3e5a913de784c66a671b39dff14aac
Author: Nimra-1234 <[email protected]>
AuthorDate: Tue Apr 11 03:41:43 2023 +0500
[AGE-VIEWER-GO]Some necessary links (#797)
* first page
firstpage created
* Update App.jsx
* Add files via upload
* Add files via upload
* Add files via upload
* Update README.md
* Update main.go
---
age-viewer/README.md | 4 +++-
age-viewer/bin/myproject.exe | Bin 0 -> 19802112 bytes
age-viewer/build/appicon.png | Bin 132625 -> 1092 bytes
age-viewer/build/windows/icon.ico | Bin 21017 -> 4286 bytes
age-viewer/frontend/src/App.jsx | 17 ++++++++++++-----
age-viewer/main.go | 2 +-
6 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/age-viewer/README.md b/age-viewer/README.md
index 4db88f69..3eb837c2 100644
--- a/age-viewer/README.md
+++ b/age-viewer/README.md
@@ -16,4 +16,6 @@ to this in your browser, and you can call your Go code from
devtools.
## Building
-To build a redistributable, production mode package, use `wails build`.
+To build a redistributable, production mode package, use `wails build`or
either use `wails dev`.
+
+If you want to see the demo then .exe file is available in
ageviewer->build->bin-> .exe
diff --git a/age-viewer/bin/myproject.exe b/age-viewer/bin/myproject.exe
new file mode 100644
index 00000000..9fa52c44
Binary files /dev/null and b/age-viewer/bin/myproject.exe differ
diff --git a/age-viewer/build/appicon.png b/age-viewer/build/appicon.png
index 63617fe4..42be2df0 100644
Binary files a/age-viewer/build/appicon.png and b/age-viewer/build/appicon.png
differ
diff --git a/age-viewer/build/windows/icon.ico
b/age-viewer/build/windows/icon.ico
index f3347984..7a0d6eea 100644
Binary files a/age-viewer/build/windows/icon.ico and
b/age-viewer/build/windows/icon.ico differ
diff --git a/age-viewer/frontend/src/App.jsx b/age-viewer/frontend/src/App.jsx
index 09ea03ba..5782362e 100644
--- a/age-viewer/frontend/src/App.jsx
+++ b/age-viewer/frontend/src/App.jsx
@@ -22,12 +22,19 @@ import 'bootstrap/dist/css/bootstrap.min.css';
import 'antd/dist/antd.css';
import './static/style.css';
import './static/navbar-fixed-left.css';
+import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import MainPage from './pages/Main/MainPage';
+import First from './pages/Main/First';
-const App = () => (
- <React.StrictMode>
- <MainPage />
- </React.StrictMode>
-);
+function App(){
+ return (
+ <Router>
+ <Routes>
+ <Route exact path="/" element={<First/>} />
+ <Route exact path="/second" element={<MainPage/>} />
+ </Routes>
+ </Router>
+ );
+ }
export default App;
diff --git a/age-viewer/main.go b/age-viewer/main.go
index 08ab803d..ab2ac2e4 100644
--- a/age-viewer/main.go
+++ b/age-viewer/main.go
@@ -17,7 +17,7 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
- Title: "myproject",
+ Title: "Apache_Age_Viewer",
Width: 1024,
Height: 768,
AssetServer: &assetserver.Options{