Skip to content

Commit 2861962

Browse files
feat: add electron and app sync utils
0 parents  commit 2861962

26 files changed

+15491
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
*.local
6+
apps

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021-2023 Safdar Jamal
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Procfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
react: npm run react-start
2+
electron: npm run electron-start

README.md

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<h1 align="center">
2+
Vite Template React
3+
</h1>
4+
5+
<p align="center">
6+
<a href="https://github.com/SafdarJamal/vite-template-react/releases">
7+
<img src="https://img.shields.io/github/v/release/SafdarJamal/vite-template-react" alt="GitHub Release (latest by date)" />
8+
</a>
9+
<a href="https://github.com/SafdarJamal/vite-template-react/blob/main/LICENSE">
10+
<img src="https://img.shields.io/github/license/SafdarJamal/vite-template-react" alt="License" />
11+
</a>
12+
</p>
13+
14+
<p align="center">
15+
A <a href="https://vitejs.dev">Vite</a> + <a href="https://react.dev">React</a> starter template.
16+
</p>
17+
18+
![Vite Template React](https://github.com/SafdarJamal/vite-template-react/assets/48409548/4b1eb99e-01b8-4752-91c0-76930e7948c1)
19+
20+
## Folder Structure
21+
22+
No configuration or complicated folder structures, just the files you need to build your app:
23+
24+
```
25+
vite-template-react
26+
├── node_modules
27+
├── public
28+
│ ├── favicon.svg
29+
│ └── robots.txt
30+
└── src
31+
├── App.css
32+
├── App.jsx
33+
├── App.test.jsx
34+
├── index.css
35+
├── index.jsx
36+
└── logo.svg
37+
└── setupTests.js
38+
├── .gitignore
39+
├── index.html
40+
├── package.json
41+
├── README.md
42+
├── vite.config.js
43+
```
44+
45+
## Development
46+
47+
To get a local copy of the code, clone it using git:
48+
49+
```
50+
git clone https://github.com/SafdarJamal/vite-template-react.git
51+
cd vite-template-react
52+
```
53+
54+
Make it your own:
55+
56+
```
57+
rm -rf .git && git init && npm init
58+
git add .
59+
git commit -m "Initial commit"
60+
```
61+
62+
Install dependencies:
63+
64+
```
65+
npm i
66+
```
67+
68+
Now, you can start a local web server by running:
69+
70+
```
71+
npm start
72+
```
73+
74+
And then open http://localhost:3000 to view it in the browser.
75+
76+
#### Available Scripts
77+
78+
In this project, you can run the following scripts:
79+
80+
| Script | Description |
81+
| ------------- | ------------------------------------------------------- |
82+
| npm start | Runs the app in the development mode. |
83+
| npm test | Launches the test runner in the interactive watch mode. |
84+
| npm run build | Builds the app for production to the `dist` folder. |
85+
| npm run serve | Serves the production build from the `dist` folder. |
86+
87+
## Credits
88+
89+
Vite Template React is built and maintained by [Safdar Jamal](https://safdarjamal.github.io).
90+
91+
## License
92+
93+
This project is licensed under the terms of the [MIT license](https://github.com/SafdarJamal/vite-template-react/blob/main/LICENSE).

app-builds.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
cadt: {
3+
tag: "1.2.3",
4+
url: "https://github.com/Chia-Network/cadt-ui/releases/download/{{tag}}/cadt-ui-web-build.tar.gz",
5+
},
6+
climate_explorer: {
7+
tag: "1.1.0",
8+
url: "https://github.com/Chia-Network/climate-explorer-ui/releases/download/{{tag}}/climate-explorer-ui-web-build.tar.gz",
9+
},
10+
climate_tokenization_engine: {
11+
tag: "1.1.2",
12+
url: "https://github.com/Chia-Network/Climate-Tokenization-Engine-UI/releases/download/{{tag}}/climate-tokenization-engine-ui-web-build.tar.gz",
13+
},
14+
};

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Core Registry</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/index.jsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)