Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
32b4502
navigation cleanup, polished code generator
doebi Oct 27, 2023
4d38527
fixed password field type toggle with bootstrap 5
doebi Oct 27, 2023
8671fec
used icon from react-icons
doebi Oct 27, 2023
cca6723
further refactoring and ui improvements
doebi Oct 27, 2023
2d22b8d
filetree
doebi Oct 27, 2023
d5a957a
allow git head as version
doebi Oct 27, 2023
b811249
restored original proxy url
doebi Oct 27, 2023
055e1d8
file tree improvements and create folder
doebi Oct 27, 2023
043e56c
further improvements
doebi Oct 29, 2023
1ca7a71
file list and grid
doebi Oct 29, 2023
dfdcf03
filelist css fixes
doebi Oct 29, 2023
400361e
added more ux features
doebi Oct 29, 2023
1687174
file select across views
doebi Oct 29, 2023
e781939
minor improvements
doebi Oct 29, 2023
6a5d9a6
added drop to upload in filebrowser
doebi Oct 29, 2023
00f3fb2
added modal for create folder
doebi Oct 29, 2023
cd68180
added metadata to file list/grid
doebi Nov 1, 2023
5da631e
file upload via button and tree update
doebi Nov 1, 2023
53de15e
Merge branch 'master' of https://github.com/davidpkj/rmfakecloud
davidpkj Sep 4, 2024
6d56640
Upgrade UI dependencies
davidpkj Sep 4, 2024
0a479aa
Move UI code to JSX
davidpkj Sep 4, 2024
397f4fa
Update UI bootstrap dependencies
davidpkj Sep 5, 2024
66ea008
Update UI About content
davidpkj Sep 5, 2024
27951e9
Moved most UI style rules to SCSS
davidpkj Sep 5, 2024
d8a886e
Add a working drop area on Documents page
davidpkj Sep 5, 2024
ac89be0
Move About page to Home page
davidpkj Sep 5, 2024
09046d2
Update Home page tips
davidpkj Sep 5, 2024
dfb941e
Move Upload.js to Documents
davidpkj Sep 5, 2024
04c2448
Fix uppercase extensions breaking upload
davidpkj Sep 5, 2024
fec0ece
Fix mobile file tree overlap
davidpkj Sep 5, 2024
060732a
Delete a lost yarn.lock file
davidpkj Sep 5, 2024
6ec7c04
Fix UI not using full screen width
davidpkj Sep 26, 2024
f36e803
Fix files not auto refreshing on upload
davidpkj Sep 26, 2024
a223569
Merge branch 'ddvk:master' into new_ui
davidpkj Sep 26, 2024
9c11b1a
Add differentiability for selecting & opening/closing folders
davidpkj Oct 5, 2024
2cabb21
Add notes regarding upload functionality & rmapi
davidpkj Oct 5, 2024
409530d
UI: Bump react-arborist to 3.4.0
davidpkj Oct 10, 2024
a13039c
Show a throbber instead of text while uploading
davidpkj Oct 10, 2024
208539e
Extract NameTag into own component file
davidpkj Oct 10, 2024
456e1bc
UI: Refactor how files are represented & more
davidpkj Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION :=$(shell git describe --tags)
VERSION :=$(shell git describe --tags --always)
LDFLAGS := "-s -w -X main.version=$(VERSION)"
OUT_DIR := dist
CMD := ./cmd/rmfakecloud
Expand Down
2 changes: 1 addition & 1 deletion dockerbuild.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export DOCKER_BUILDKIT=1
docker build -t rmfakecloud --no-cache --build-arg VERSION="$(git describe --tags)" .
docker build -t rmfakecloud --no-cache --build-arg VERSION="$(git describe --tags --always)" .
69 changes: 1 addition & 68 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn run eject`

**Note: this is a one-way operation. Once you `eject`, you can鈥檛 go back!**

If you aren鈥檛 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.

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鈥檙e on your own.

You don鈥檛 have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn鈥檛 feel obligated to use this feature. However we understand that this tool wouldn鈥檛 be useful if you couldn鈥檛 customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
# UI for rmfakecloud
12 changes: 9 additions & 3 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
"private": true,
"dependencies": {
"autoprefixer": "10.4.5",
"bootstrap": "5.2.0-beta1",
"bootstrap": "^5.3.3",
"jwt-decode": "^3.1.2",
"moment": "^2.29.4",
"react": "^17.0.1",
"react-bootstrap": "^1.4.3",
"react-arborist": "^3.4.0",
"react-bootstrap": "^2.10.0",
"react-dom": "^17.0.1",
"react-dropzone": "^11.3.2",
"react-dropzone-uploader": "^2.11.0",
Expand All @@ -17,6 +19,7 @@
"react-router-dom": "^5.3.0",
"react-toastify": "^8.1.1",
"react-treebeard": "^3.2.4",
"sass": "^1.69.5",
"typescript": "^4.4.4"
},
"scripts": {
Expand All @@ -41,14 +44,17 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"@types/node": "^16.11.4",
"@types/react": "^17.0.31",
"@types/react-dom": "^17.0.10",
"@types/react-router-dom": "^5.3.1",
"react-scripts": "5.0.1"
"react-scripts": "5.0.1",
"sass-loader": "^13.3.2",
"webpack": "^5.89.0"
},
"proxy": "http://localhost:3000"
}
5 changes: 1 addition & 4 deletions ui/public/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="RM FakeApi"
/>
<title>rmfakecloud</title>
</head>
<body>
Expand Down
47 changes: 47 additions & 0 deletions ui/src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React, {useEffect} from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import { ToastContainer } from 'react-toastify';

import apiService from "./services/api.service";
import { AuthProvider } from "./common/useAuthContext";
import Role from "./common/Role";
import { PrivateRoute } from "./components/PrivateRoute";
import Navigationbar from "./components/Navigation";

import Login from "./pages/Login";
import Home from "./pages/Home";
import Connect from "./pages/Connect";
import Documents from "./pages/Documents";
import Admin from "./pages/Admin";
import NoMatch from "./pages/404";

import "react-toastify/dist/ReactToastify.css";

import "./App.scss"

export default function App() {

useEffect(() => {
apiService.checkLogin()
}, [])

return (
<>
<AuthProvider>
<Router>
<Navigationbar />
<Switch>
<PrivateRoute exact path="/" component={Home} />
<PrivateRoute path="/documents" component={Documents} />
<PrivateRoute path="/connect" component={Connect} />
<PrivateRoute path="/admin" roles={[Role.Admin]} component={Admin} />

<Route path="/login" component={Login} />
<Route component={NoMatch} />
</Switch>
</Router>
</AuthProvider>
<ToastContainer autoClose={2000} />
</>
);
}
Loading