Skip to content

Commit fc83008

Browse files
New UI
1 parent 8ffcd6b commit fc83008

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+8177
-20520
lines changed

client/.env

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
VITE_BACKEND_URL=https://v-test-vkux.onrender.com
2+
# VITE_BACKEND_URL=https://5000-idx-backendofvision-1730719510987.cluster-bec2e4635ng44w7ed22sa22hes.cloudworkstations.dev
3+
4+
VITE_STABLE_DEFFUSION_API=sk-GheTiMlU4MsYXd0aw3nW3mNSNH9pdKHtwRpQpKHNhyuZs1mW
5+
# VITE_STABLE_DEFFUSION_API=sk-XDftGXTk7RqKVog10fk6OxnMis5iHXmaftyBrgeOoBr2E0Rr
6+
# VITE_STABLE_DEFFUSION_API=sk-d82sWj6vGBOJvmGEcWMOcQ4XZJl6YcPuQF2I9sT0l1vgnqYC
7+
VITE_STABLE_DEFFUSION_API2=sk-vUbxKqQ5W1RG1tV2sCHD7LMzoRbXQPCsE59pFxPaj3Gw69kK
8+
VITE_STABLE_DEFFUSION_API3=sk-ZTeCuff9YT0ox9MX5Sn0jZNDJ2j03IuK8JI27in518IGLY6o
9+
VITE_STABLE_DEFFUSION_API4=sk-ohbsKOy968p8OMRcMEoj4roiz6GjRFvCVKjLHv3W8W4aOchl
10+
VITE_STABLE_DEFFUSION_API5=sk-awvaLYk6HNjlZ6TDdAsUXWNpkUQ91UPnXvF5NDrv9fNebgmx
11+
12+
13+
14+
15+
16+
17+

client/.gitignore

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# production
12-
/build
13-
14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
1+
# Logs
2+
logs
3+
*.log
214
npm-debug.log*
225
yarn-debug.log*
236
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

client/.idx/dev.nix

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# To learn more about how to use Nix to configure your environment
2+
# see: https://developers.google.com/idx/guides/customize-idx-env
3+
{ pkgs, ... }: {
4+
# Which nixpkgs channel to use.
5+
channel = "stable-23.11"; # or "unstable"
6+
# Use https://search.nixos.org/packages to find packages
7+
packages = [
8+
pkgs.nodejs_20
9+
];
10+
# Sets environment variables in the workspace
11+
env = {};
12+
idx = {
13+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
14+
extensions = [
15+
# "vscodevim.vim"
16+
];
17+
workspace = {
18+
# Runs when a workspace is first created with this `dev.nix` file
19+
onCreate = {
20+
npm-install = "npm ci --no-audit --prefer-offline --no-progress --timing";
21+
# Open editors for the following files by default, if they exist:
22+
default.openFiles = [ "src/App.tsx" "src/App.ts" "src/App.js" "src/App.js" ];
23+
};
24+
# To run something each time the workspace is (re)started, use the `onStart` hook
25+
};
26+
# Enable previews and customize configuration
27+
previews = {
28+
enable = true;
29+
previews = {
30+
web = {
31+
command = ["npm" "run" "dev" "--" "--port" "$PORT" "--host" "0.0.0.0"];
32+
manager = "web";
33+
};
34+
};
35+
};
36+
};
37+
}

client/.idx/icon.png

8.46 KB
Loading

client/README.md

Lines changed: 5 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,8 @@
1-
# Getting Started with Create React App
1+
# React + Vite
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
44

5-
## Available Scripts
5+
Currently, two official plugins are available:
66

7-
In the project directory, you can run:
8-
9-
### `npm start`
10-
11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
13-
14-
The page will reload when you make changes.\
15-
You may also see any lint errors in the console.
16-
17-
### `npm test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
22-
### `npm run build`
23-
24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
26-
27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
35-
36-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37-
38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
39-
40-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
41-
42-
## Learn More
43-
44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45-
46-
To learn React, check out the [React documentation](https://reactjs.org/).
47-
48-
### Code Splitting
49-
50-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51-
52-
### Analyzing the Bundle Size
53-
54-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55-
56-
### Making a Progressive Web App
57-
58-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59-
60-
### Advanced Configuration
61-
62-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63-
64-
### Deployment
65-
66-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67-
68-
### `npm run build` fails to minify
69-
70-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

0 commit comments

Comments
 (0)