Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view data #3

Merged
merged 10 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
/node_modules
/.pnp
.pnp.js
# Yarn (https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored)
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# testing
/coverage
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@ This is a web application designed to explore and visualize VStorage. It provide
To set up and run the project locally, follow these steps:

1. **Clone the repository:**

```bash
git clone https://github.com/agoric-labs/vstorage-viewer.git
cd vstorage-viewer
```

2. **Install dependencies:**

```bash
npm install
yarn install
```

3. **Start the development server:**

```bash
npm start
yarn start
```

Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

4. **Build for production:**

```bash
npm run build
yarn run build
```

This will create an optimized production build in the `build` folder.
Expand Down
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="VStorage Viewer" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>VStorage Viewer</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
35 changes: 16 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
{
"name": "vstorage",
"version": "0.1.0",
"private": true,
"homepage": "/",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"predeploy": "yarn build",
"deploy": "gh-pages -d build"
},
"dependencies": {
"@agoric/client-utils": "dev",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-json-view": "^1.21.3",
"react-scripts": "5.0.1",
"react-split-pane": "^0.1.92"
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"gh-pages": "^6.1.1",
"prettier": "^3.4.2",
"vite": "^6.0.3"
},
"browserslist": {
"production": [
Expand All @@ -40,7 +39,5 @@
"last 1 safari version"
]
},
"devDependencies": {
"gh-pages": "^6.1.1"
}
"packageManager": "[email protected]"
}
43 changes: 0 additions & 43 deletions public/index.html

This file was deleted.

12 changes: 6 additions & 6 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
width: auto;
}

input::placeholder {
color: #e0e0e0; /* Lighter gray color for better visibility */
}
input::placeholder {
color: #e0e0e0; /* Lighter gray color for better visibility */
}

/* Remove default spinner controls in number input */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
input[type="number"] {
-moz-appearance: textfield;
}

Expand Down
Loading