Skip to content

Commit 235b6c6

Browse files
authored
Merge pull request #83 from Sanjeet990/development
Development
2 parents 3ac0e74 + 2f5834c commit 235b6c6

File tree

151 files changed

+6091
-1825
lines changed

Some content is hidden

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

151 files changed

+6091
-1825
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,6 @@ server/app
140140
app
141141
storage
142142

143-
**/package-lock.json
143+
**/package-lock.json
144+
145+
server/public/uploads

client/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@
2929
"react-drag-drop-files": "^2.4.0",
3030
"react-helmet": "^6.1.0",
3131
"react-icons": "^5.1.0",
32+
"react-modern-drawer": "^1.4.0",
3233
"react-router-dom": "^6.23.0",
34+
"react-select": "^5.9.0",
3335
"react-syntax-highlighter": "^15.5.0",
3436
"react-toastify": "^10.0.5",
3537
"recoil": "^0.7.7",
3638
"recoil-persist": "^5.1.0",
39+
"semver": "^7.6.3",
3740
"totp-generator": "^1.0.0"
3841
},
3942
"devDependencies": {

client/public/snippet.png

7.95 KB
Loading

client/src/App.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useRecoilValue } from 'recoil';
33
import { colorThemeState } from './atoms';
44
import { BrowserRouter, Route, Routes, useNavigate } from 'react-router-dom';
55
import "react-toastify/dist/ReactToastify.css";
6+
import 'react-modern-drawer/dist/index.css'
67
import { useEffect, useState } from 'react';
78
import { ToastContainer } from 'react-toastify';
89
import { Helmet } from "react-helmet"
@@ -18,14 +19,15 @@ import EditLink from './components/Listing/EditLink';
1819
import CategoryListing from './components/Listing/CategoryListing';
1920
import TodoListing from './components/Todo/TodoListing';
2021
import EditTodo from './components/Todo/EditTodo';
21-
import AppListing from './components/Integration/AppListing';
2222
import InstalledApps from './components/Integration/InstalledApps';
23+
import InstallApps from './components/Integration/InstallApps';
2324
import EditStream from './components/Listing/EditStream';
2425
import StreamListing from './components/Listing/StreamListing';
2526
import WakeListings from './components/Networkdevice/WakeListings';
2627
import EditDevice from './components/Networkdevice/EditDevice';
2728
import WakeFrontListing from './components/Networkdevice/WakeFrontListing';
2829
import NetworkError from './components/Misc/NetworkError';
30+
import DatabaseError from './components/Misc/DatabaseError';
2931
import ContentLoader from './components/Layout/ContentLoader';
3032
import AccountList from './components/Accounts/AccountList';
3133
import EditUser from './components/Accounts/EditUser';
@@ -45,6 +47,7 @@ import IconPacks from './components/IconPacks/index';
4547
import AddIconPack from './components/IconPacks/AddIconPack';
4648

4749
import SystemThemes from './utils/SystemThemes';
50+
import UserProfile from './components/Accounts/UserProfile';
4851

4952
const App = () => {
5053
const [themeType, setThemeType] = useState("dark");
@@ -79,7 +82,7 @@ const App = () => {
7982
<Loader>
8083
<ToastContainer style={{ zIndex: 100000 }} theme={themeType} />
8184

82-
<ImageSelectorModal title="Select icon" />
85+
<ImageSelectorModal />
8386

8487
<BrowserRouter
8588
future={{
@@ -115,7 +118,7 @@ const App = () => {
115118
<Route key={Math.random()} path="/networkdevices" element={<WakeFrontListing />} />
116119
<Route key={Math.random()} path="/manage" element={<Settings />} />
117120
<Route key={Math.random()} path="/manage/apps" element={<InstalledApps />} />
118-
<Route key={Math.random()} path="/manage/apps/all" element={<AppListing />} />
121+
<Route key={Math.random()} path="/manage/apps/install" element={<InstallApps />} />
119122
<Route key={Math.random()} path="/manage/listing" element={<Listings type="listing" />} />
120123
<Route key={Math.random()} path="/manage/streaming" element={<Listings type="streaming" />} />
121124
<Route key={Math.random()} path="/manage/listing/save/folder" element={<EditFolder />} />
@@ -140,6 +143,7 @@ const App = () => {
140143
<Route key={Math.random()} path="/manage/networkdevices" element={<WakeListings />} />
141144
<Route key={Math.random()} path="/manage/networkdevices/save" element={<EditDevice />} />
142145
<Route key={Math.random()} path="/manage/networkdevices/save/:deviceId" element={<EditDevice />} />
146+
<Route key={Math.random()} path="/manage/profile" element={<UserProfile />} />
143147
<Route key={Math.random()} path="/manage/accounts" element={<AccountList />} />
144148
<Route key={Math.random()} path="/manage/accounts/add" element={<EditUser />} />
145149
<Route key={Math.random()} path="/manage/accounts/:userId" element={<EditUser />} />
@@ -165,6 +169,7 @@ const App = () => {
165169
<Route path="/client-error" element={<ClientError />} />
166170
<Route path="/server-error" element={<NotFound />} />
167171
<Route path="/network-error" element={<NetworkError />} />
172+
<Route path="/database-error" element={<DatabaseError />} />
168173
</Routes>
169174
</div>
170175
</div>

client/src/atoms.js

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -130,27 +130,6 @@ export const addedTodoState = atom({
130130
default: null,
131131
});
132132

133-
export const integrationInstallModalState = atom({
134-
key: 'integrationInstallModalState',
135-
default: {
136-
isOpen: false,
137-
data: null,
138-
},
139-
});
140-
141-
export const deleteIntegrationModalState = atom({
142-
key: 'deleteIntegrationModalState',
143-
default: {
144-
isOpen: false,
145-
data: null,
146-
},
147-
});
148-
149-
export const deletedIntegrationState = atom({
150-
key: 'deletedIntegrationState',
151-
default: null,
152-
});
153-
154133
export const activeRouteState = atom({
155134
key: 'activeRouteState',
156135
default: "/",
@@ -315,3 +294,32 @@ export const quickPreviewStreamState = atom({
315294
},
316295
],
317296
});
297+
298+
export const isHostModeState = atom({
299+
key: 'isHostModeState',
300+
default: false,
301+
effects_UNSTABLE: [persistAtom]
302+
});
303+
304+
export const removeBrandingModalState = atom({
305+
key: 'removeBrandingModalState',
306+
default: {
307+
isOpen: false
308+
},
309+
});
310+
311+
export const removeInstalledIntegrationModalState = atom({
312+
key: 'removeInstalledIntegrationModalState',
313+
default: {
314+
isOpen: false,
315+
data: null,
316+
},
317+
});
318+
319+
export const integrationConfigureModalState = atom({
320+
key: 'integrationConfigureModalState',
321+
default: {
322+
isOpen: false,
323+
data: null,
324+
},
325+
});

0 commit comments

Comments
 (0)