-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/upstash/react-ui
- Loading branch information
Showing
34 changed files
with
371 additions
and
200 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json", | ||
"organizeImports": { | ||
"enabled": false | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"a11y": { | ||
"noSvgWithoutTitle": "off", | ||
"useButtonType": "warn" | ||
}, | ||
"correctness": { | ||
"noUnusedVariables": "warn" | ||
}, | ||
"security": { | ||
"recommended": true | ||
}, | ||
"style": { | ||
"useBlockStatements": "error", | ||
"noNonNullAssertion": "off" | ||
}, | ||
"performance": { | ||
"recommended": true | ||
}, | ||
"suspicious": { | ||
"noArrayIndexKey": "off" | ||
} | ||
}, | ||
"ignore": ["node_modules", ".next", "dist", ".turbo"] | ||
}, | ||
"formatter": { | ||
"indentStyle": "space", | ||
"indentSize": 2, | ||
"enabled": true, | ||
"lineWidth": 120, | ||
"ignore": ["node_modules", ".next", "dist", ".turbo"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,8 @@ yarn-error.log* | |
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
.env* | ||
.env* | ||
|
||
# vscode | ||
|
||
.vscode |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CLI Playground</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/playground.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@upstash/react-cli", | ||
"version": "1.0.7", | ||
"version": "1.0.10", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"license": "MIT", | ||
|
@@ -17,19 +17,22 @@ | |
], | ||
"author": "Andreas Thomas <[email protected]>", | ||
"scripts": { | ||
"build": "tsup" | ||
"build": "tsup", | ||
"dev": "vite" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.15.11", | ||
"@types/react": "^18.0.37", | ||
"@types/react-dom": "^18.0.11", | ||
"autoprefixer": "^10.4.14", | ||
"postcss": "^8.4.22", | ||
"postcss": "^8.4.31", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"tailwindcss": "^3.3.1", | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.0.4" | ||
"typescript": "^5.0.4", | ||
"@vitejs/plugin-react": "^4.1.0", | ||
"vite": "^4.4.10" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { RedisCli } from "./redis-cli"; | ||
import "./cli.css"; | ||
|
||
ReactDOM.createRoot(document.getElementById("root")!).render( | ||
<React.StrictMode> | ||
<main | ||
style={{ | ||
height: "100vh", | ||
width: "100vw", | ||
display: "flex", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
flexDirection: "column", | ||
background: "rgb(250,250,250)", | ||
}} | ||
> | ||
<div | ||
style={{ | ||
height: "100%", | ||
width: "100%", | ||
maxHeight: "32rem", | ||
maxWidth: "48rem", | ||
borderRadius: "0.5rem", | ||
overflow: "hidden", | ||
}} | ||
> | ||
<RedisCli | ||
token={process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_TOKEN!} | ||
url={process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_URL!} | ||
/> | ||
</div> | ||
</main> | ||
</React.StrictMode>, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { defineConfig, loadEnv } from "vite"; | ||
import react from "@vitejs/plugin-react"; | ||
|
||
export default ({ mode }: { mode: string }) => { | ||
const env = loadEnv(mode, process.cwd(), ""); | ||
return defineConfig({ | ||
define: { | ||
"process.env": env, | ||
}, | ||
plugins: [react()], | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1be17a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-ui – ./
upstash-react-cli.vercel.app
react-ui-git-main-upstash.vercel.app
react-ui-upstash.vercel.app