diff --git a/Policies.png b/Policies.png new file mode 100644 index 00000000..263b1e1f Binary files /dev/null and b/Policies.png differ diff --git a/preview.png b/preview.png new file mode 100644 index 00000000..e96e3c7b Binary files /dev/null and b/preview.png differ diff --git a/roadrecon/.dockerignore b/roadrecon/.dockerignore new file mode 100644 index 00000000..13c3b7dc --- /dev/null +++ b/roadrecon/.dockerignore @@ -0,0 +1 @@ +roadrecon.db \ No newline at end of file diff --git a/roadrecon/Dockerfile b/roadrecon/Dockerfile new file mode 100644 index 00000000..f417a1be --- /dev/null +++ b/roadrecon/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.11-slim AS dev +COPY . /app +WORKDIR /app +RUN pip install . +CMD [ "python3","/app/roadtools/roadrecon/server.py","--debug" ] + +FROM python:3.11-slim AS prod +COPY . /app +WORKDIR /app +RUN pip install . +CMD [ "python3","/app/roadtools/roadrecon/server.py" ] \ No newline at end of file diff --git a/roadrecon/docker-compose.yml b/roadrecon/docker-compose.yml new file mode 100644 index 00000000..14500b69 --- /dev/null +++ b/roadrecon/docker-compose.yml @@ -0,0 +1,21 @@ +services: + frontend: + build: + context: frontend-ng + target: ${TARGET:-prod} + ports: + - 5173:5173 + volumes: + - ./frontend-ng/:/usr/src/app/ + restart: always + depends_on: + - backend + backend: + build: + context: . + target: ${TARGET:-prod} + volumes: + - ./:/app/ + ports: + - 5000:5000 + restart: always diff --git a/roadrecon/frontend-ng/.gitignore b/roadrecon/frontend-ng/.gitignore new file mode 100644 index 00000000..53f7466a --- /dev/null +++ b/roadrecon/frontend-ng/.gitignore @@ -0,0 +1,5 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local \ No newline at end of file diff --git a/roadrecon/frontend-ng/CHANGELOG.md b/roadrecon/frontend-ng/CHANGELOG.md new file mode 100644 index 00000000..a4386b3c --- /dev/null +++ b/roadrecon/frontend-ng/CHANGELOG.md @@ -0,0 +1,57 @@ +# CHANGELOG.md + +## [3.0.0] - 2024-07-05 + +- Mosaic Redesign + +## [2.1.0] - 2023-12-08 + +Update to Vite 5 +Update dependencies + +## [2.0.1] - 2023-10-04 + +- Dependencies update + +## [2.0.0] - 2023-06-01 + +- Dark version added + +## [1.4.3] - 2023-04-11 + +- Update dependencies + +## [1.4.2] - 2023-02-13 + +- Update dependencies +- Improve sidebar icons color logic + +## [1.4.0] - 2022-08-30 + +- Update sidebar + +## [1.3.0] - 2022-07-15 + +- Replace Sass with CSS files +- Update dependencies + +## [1.1.0] - 2021-12-13 + +- Update Tailwind 3 +- Several improvements + +## [1.0.3] - 2021-12-10 + +- Alignment issue + +## [1.0.2] - 2021-11-23 + +- Alignment issue + +## [1.0.1] - 2021-11-22 + +Fix dashboard icon color + +## [1.0.0] - 2021-11-22 + +First release \ No newline at end of file diff --git a/roadrecon/frontend-ng/Dockerfile b/roadrecon/frontend-ng/Dockerfile new file mode 100644 index 00000000..a6a71b47 --- /dev/null +++ b/roadrecon/frontend-ng/Dockerfile @@ -0,0 +1,29 @@ +# Build stage +FROM node:latest AS builder + +COPY package*.json /usr/src/ +WORKDIR /usr/src/ +RUN npm install +ENV PATH /usr/src/node_modules/.bin:$PATH +COPY . /usr/src/app +WORKDIR /usr/src/app +RUN npm run docker + +# Development stage +FROM node:latest AS dev +COPY package*.json /usr/src/ +WORKDIR /usr/src/ +RUN npm install --include=dev +ENV PATH /usr/src/node_modules/.bin:$PATH +COPY . /usr/src/app +WORKDIR /usr/src/app +EXPOSE 5173 +CMD ["npm", "run", "dev"] + +# Production stage +FROM nginx:alpine AS prod +COPY ./nginx.conf /etc/nginx/conf.d/default.conf +COPY --from=builder /usr/src/app/dist /usr/share/nginx/html + +EXPOSE 5173 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/roadrecon/frontend-ng/README.md b/roadrecon/frontend-ng/README.md new file mode 100644 index 00000000..70ced9ec --- /dev/null +++ b/roadrecon/frontend-ng/README.md @@ -0,0 +1,13 @@ +# Roadrecon UI NG + +## New features + +- New Frontend based on Vite, VueJS and PrimeVue framework +- Backend pagination for better performance on large databases +- Added a Policies detail page + +## Credits + +- Dirk-jan Mollema as the original author of the backend and the tool suite +- Kevin Tellier for the new UI +- Template by [Cruip.com](https://cruip.com/) \ No newline at end of file diff --git a/roadrecon/frontend-ng/index.html b/roadrecon/frontend-ng/index.html new file mode 100644 index 00000000..c74165c7 --- /dev/null +++ b/roadrecon/frontend-ng/index.html @@ -0,0 +1,20 @@ + + +
+ + + +{{index}}:
+{{objectType}}
+{{index}}:
+{{ objectType.displayName }}
+{{index}}:
+{{ objectType.displayName }}
+{{index}}:
+{{ objectType.displayName }}
+{{index}}:
+{{ objectType }}
+{{index}}:
+{{ objectType.displayName }}
+{{index}}:
+{{ objectType.displayName }}
+{{index}}:
+{{ objectType.displayName }}
+{{index}}:
+{{ objectType.displayName }}
+{{index}}:
+{{ objectType.displayName }}
+{{ element.displayName }}
+{{ element.displayName }}
+All ClientTypes
+{{ element }}
+All ClientTypes
+{{ element }}
+All Platforms
+{{ element }}
+All Platforms
+{{ element }}
+Rule : {{item }}
+Device State: {{ item }}
+Rule : {{ item }}
+Device State: {{ item }}
+{{ item }}
+{{ control }}
+Deny logon
+{{ resolve_authstrength(stid) }}
+{{ item }} : {{ policy.policyDetail.SignInFrequencyTimeSpan.split(".")[0] }} day(s) {{ policy.policyDetail.SignInFrequencyTimeSpan.split(".")[1] }}
+{{ item }} : {{ policy.policyDetail.PersistentBrowserSessionMode }}
+{{ item }}
+
+
+ {{ policy.raw }}
+
+
+ No policies
+ +
+
+ {{ location.raw }}
+
+
+ Loading...
+ +{{ err }}
++++