Skip to content

Commit

Permalink
feat: example space manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Nov 28, 2022
1 parent 08bc15a commit f162fd8
Show file tree
Hide file tree
Showing 14 changed files with 564 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/react/space-manager/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
24 changes: 24 additions & 0 deletions examples/react/space-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Example

To run this example:

- Clone the w3ui repository and enter the `w3ui` directory

```sh
git clone https://github.com/web3-storage/w3ui
cd w3ui
```

- Install dependencies and build:

```sh
npm install
npm run build
```

- Change to this example directory and run the example:

```sh
cd examples/react/file-upload
npm start
```
43 changes: 43 additions & 0 deletions examples/react/space-manager/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@w3ui/example-space-manager",
"version": "0.0.0",
"private": true,
"dependencies": {
"@w3ui/react-keyring": "^1.0.1",
"@w3ui/react-uploader": "^2.0.0",
"@w3ui/react-uploads-list": "^1.1.2",
"@ipld/dag-ucan": "^2.0.1",
"blueimp-md5": "^2.19.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.3",
"react-scripts": "5.0.1"
},
"devDependencies": {
"eslint-config-standard-jsx": "^11.0.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"standard",
"standard-jsx"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file not shown.
12 changes: 12 additions & 0 deletions examples/react/space-manager/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<title>W3UI File Upload Example App</title>
</head>
<body class="sans-serif near-white" style="background-color:#1d2027;">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
3 changes: 3 additions & 0 deletions examples/react/space-manager/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
Loading

0 comments on commit f162fd8

Please sign in to comment.