Skip to content

Commit

Permalink
WIP: [chore] redesign (#294)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Veit <[email protected]>
  • Loading branch information
sijav and aquamatthias authored Sep 6, 2024
1 parent 16328c1 commit 97823f2
Show file tree
Hide file tree
Showing 167 changed files with 3,725 additions and 2,618 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# URL to main fix landing page (if empty, it will get the url is currently on)
VITE_FIX_LANDING_PAGE_URL=https://example.org
# URL to fix document (if empty, it will get the url is currently on)
VITE_FIX_DOCS_URL=https://example.org
# API URL server to use (if empty, it will get the url is currently on)
VITE_SERVER=https://example.org
# WS URL server for events (if empty, it will get the url is currently on)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Create env file
run: |
echo "VITE_FIX_LANDING_PAGE_URL=${{ vars.FIX_LANDING_PAGE_URL }}" > .env.production
echo "VITE_FIX_DOCS_URL=${{ vars.VITE_FIX_DOCS_URL }}" > .env.production
echo "VITE_VIDEOS_ASSETS_URL=${{ vars.VIDEOS_ASSETS_URL }}" >> .env.production
echo "VITE_IMAGES_ASSETS_URL=${{ vars.IMAGES_ASSETS_URL }}" >> .env.production
echo "VITE_USE_PROXY=false" >> .env.production
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Create env file
run: |
echo "VITE_FIX_LANDING_PAGE_URL=${{ vars.FIX_LANDING_PAGE_URL }}" > .env.production
echo "VITE_FIX_DOCS_URL=${{ vars.VITE_FIX_DOCS_URL }}" > .env.production
echo "VITE_VIDEOS_ASSETS_URL=${{ vars.VIDEOS_ASSETS_URL }}" >> .env.production
echo "VITE_IMAGES_ASSETS_URL=${{ vars.IMAGES_ASSETS_URL }}" >> .env.production
echo "VITE_USE_PROXY=false" >> .env.production
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- name: Create env file
run: |
echo "VITE_FIX_LANDING_PAGE_URL=${{ vars.FIX_LANDING_PAGE_URL }}" > .env.production
echo "VITE_FIX_DOCS_URL=${{ vars.VITE_FIX_DOCS_URL }}" > .env.production
echo "VITE_VIDEOS_ASSETS_URL=${{ vars.VIDEOS_ASSETS_URL }}" >> .env.production
echo "VITE_IMAGES_ASSETS_URL=${{ vars.IMAGES_ASSETS_URL }}" >> .env.production
echo "VITE_USE_PROXY=false" >> .env.production
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This project requires [NodeJS](https://nodejs.org) version 18 (>= v18.17.1) and
| Variable | Type | Description | Default value |
| ----------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| `VITE_FIX_LANDING_PAGE_URL` | `string` | URL of main landing page | `location.origin` |
| `VITE_FIX_DOCS_URL` | `string` | URL of fix document | `location.origin` |
| `VITE_SERVER` | `string` | Server address for API calls (ignored in test environments or when `VITE_USE_PROXY=true`) | `location.origin` |
| `VITE_WS_SERVER` | `string` | WS server address for events (ignored in test environments or when `VITE_USE_PROXY=true`) | `location.origin.replace('http', 'ws')` |
| `VITE_VIDEOS_ASSETS_URL` | `string` | URL to CDN containing videos assets | `location.origin` |
Expand Down
165 changes: 80 additions & 85 deletions index.html

Large diffs are not rendered by default.

63 changes: 32 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,34 @@
"dependencies": {
"@dagrejs/dagre": "^1.1.4",
"@emotion/cache": "11.13.1",
"@emotion/react": "^11.13.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@fontsource-variable/plus-jakarta-sans": "^5.0.21",
"@lingui/macro": "^4.11.3",
"@lingui/react": "^4.11.3",
"@mui/icons-material": "^5.16.7",
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.7",
"@mui/system": "^5.16.7",
"@mui/x-charts-pro": "^7.0.0-alpha.1",
"@mui/x-data-grid-premium": "^7.13.0",
"@mui/x-date-pickers-pro": "^7.13.0",
"@mui/x-tree-view": "^7.13.0",
"@tanstack/react-query": "^5.51.23",
"@fontsource-variable/plus-jakarta-sans": "^5.0.22",
"@lingui/macro": "^4.11.4",
"@lingui/react": "^4.11.4",
"@mui/icons-material": "^6.0.2",
"@mui/lab": "^6.0.0-beta.8",
"@mui/material": "^6.0.2",
"@mui/system": "^6.0.2",
"@mui/x-charts": "^7.15.0",
"@mui/x-charts-pro": "^7.0.0-alpha.3",
"@mui/x-data-grid-premium": "^7.15.0",
"@mui/x-date-pickers-pro": "^7.15.0",
"@mui/x-tree-view": "^7.15.0",
"@tanstack/react-query": "^5.53.3",
"@uidotdev/usehooks": "^2.4.1",
"axios": "^1.7.4",
"axios": "^1.7.7",
"d3": "^7.9.0",
"dayjs": "^1.11.12",
"diff": "^5.2.0",
"dayjs": "^1.11.13",
"diff": "^6.0.0",
"flag-icons": "^7.2.3",
"hast-util-to-jsx-runtime": "^2.3.0",
"highlight.js": "^11.10.0",
"immer": "^10.1.1",
"js-cookie": "^3.0.5",
"lowlight": "^3.1.0",
"mustache": "^4.2.0",
"posthog-js": "^1.155.4",
"posthog-js": "^1.160.2",
"qrcode": "^1.5.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand All @@ -78,23 +79,23 @@
"@emotion/styled": "^11.13.0",
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@lingui/cli": "^4.11.3",
"@eslint/js": "^9.9.1",
"@lingui/cli": "^4.11.4",
"@lingui/swc-plugin": "^4.0.8",
"@lingui/vite-plugin": "^4.11.3",
"@lingui/vite-plugin": "^4.11.4",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
"@storybook/blocks": "^8.2.9",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@storybook/test": "^8.2.9",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/jest-dom": "^6.5.0",
"@types/d3": "^7.4.3",
"@types/diff": "^5.2.1",
"@types/diff": "^5.2.2",
"@types/js-cookie": "^3.0.6",
"@types/mustache": "^4.2.5",
"@types/qrcode": "^1.5.5",
"@types/react": "^18.3.3",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/react-is": "^18.3.0",
"@types/react-lazy-load-image-component": "^1.6.4",
Expand All @@ -103,28 +104,28 @@
"@vitest/coverage-v8": "^2.0.5",
"@vitest/ui": "^2.0.5",
"babel-plugin-macros": "3.1.0",
"esbuild": "^0.23.0",
"eslint": "^9.9.0",
"esbuild": "^0.23.1",
"eslint": "^9.9.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-storybook": "^0.8.0",
"globals": "^15.9.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.9",
"husky": "^9.1.5",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0",
"prop-types": "15",
"react-refresh": "^0.14.2",
"shx": "^0.3.4",
"storybook": "^8.2.9",
"tsc-files": "^1.1.4",
"type-fest": "^4.24.0",
"type-fest": "^4.26.0",
"typescript": "^5.5.4",
"typescript-eslint": "^8.1.0",
"typescript-eslint": "^8.4.0",
"unique-names-generator": "^4.7.1",
"uuid": "^10.0.0",
"vite": "^5.4.1",
"vite": "^5.4.2",
"vite-plugin-html": "^3.2.2",
"vite-plugin-mock-dev-server": "^1.7.1",
"vite-plugin-svgr": "^4.2.0",
Expand Down
Binary file added public/apple-icon-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1125-2436.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1136-640.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1170-2532.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1179-2556.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1242-2208.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1242-2688.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1284-2778.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1290-2796.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1334-750.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1488-2266.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1536-2048.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1620-2160.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1640-2360.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1668-2224.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1668-2388.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-1792-828.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2048-1536.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2048-2732.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2160-1620.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2208-1242.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2224-1668.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2266-1488.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2360-1640.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2388-1668.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-splash-2436-1125.jpg
Binary file added public/apple-splash-2532-1170.jpg
Binary file added public/apple-splash-2556-1179.jpg
Binary file added public/apple-splash-2688-1242.jpg
Binary file added public/apple-splash-2732-2048.jpg
Binary file added public/apple-splash-2778-1284.jpg
Binary file added public/apple-splash-2796-1290.jpg
Binary file added public/apple-splash-640-1136.jpg
Binary file added public/apple-splash-750-1334.jpg
Binary file added public/apple-splash-828-1792.jpg
Binary file removed public/apple-touch-icon.png
Diff not rendered.
Binary file removed public/favicon-16x16.png
Diff not rendered.
Binary file added public/favicon-196.png
Binary file removed public/favicon-32x32.png
Diff not rendered.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file removed public/logo192.png
Diff not rendered.
Binary file removed public/logo512.png
Diff not rendered.
Binary file added public/manifest-icon-192.maskable.png
Binary file added public/manifest-icon-512.maskable.png
30 changes: 22 additions & 8 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,36 @@
"description": "Mission control for your AWS security. Fix is an all-in-one dashboard for security engineers. Prioritize top risks by combining user, resource, and configuration data. Plus, get actionable remediation recommendations for your DevOps team.",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
"src": "manifest-icon-192.maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "manifest-icon-192.maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "logo192.png",
"src": "manifest-icon-512.maskable.png",
"sizes": "512x512",
"type": "image/png",
"sizes": "192x192"
"purpose": "any"
},
{
"src": "logo512.png",
"src": "manifest-icon-512.maskable.png",
"sizes": "512x512",
"type": "image/png",
"sizes": "512x512"
"purpose": "maskable"
},
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"display": "standalone",
"theme_color": "#3d58d3",
"theme_color": "#7640EB",
"background_color": "#ffffff"
}
Binary file added public/mstile-icon-128.png
Binary file added public/mstile-icon-270.png
Binary file added public/mstile-icon-558-270.png
Binary file added public/mstile-icon-558.png
1 change: 0 additions & 1 deletion public/particles.min.js

This file was deleted.

4 changes: 4 additions & 0 deletions src/assets/icons/account-circle-icon.svg
4 changes: 4 additions & 0 deletions src/assets/icons/cancel-icon.svg
3 changes: 3 additions & 0 deletions src/assets/icons/check-icon.svg
4 changes: 4 additions & 0 deletions src/assets/icons/cloud-icon.svg
4 changes: 4 additions & 0 deletions src/assets/icons/code-blocks-icon.svg
6 changes: 3 additions & 3 deletions src/assets/icons/createIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Palette, useTheme } from '@mui/material'
import { FC, FunctionComponent, SVGProps, forwardRef } from 'react'
import { FC, SVGProps, forwardRef } from 'react'

type SvgIconProps = SVGProps<SVGSVGElement> & { title?: string; nonce?: string }
export type SvgIconProps = SVGProps<SVGSVGElement> & { title?: string; nonce?: string }

export const createIcon = (Icon: FunctionComponent<SvgIconProps>, colors?: [string, string?]) => {
export const createIcon = (Icon: FC<SvgIconProps>, colors?: [string, string?]) => {
const whiteColor = colors?.[0]
const darkColor = colors?.[1]
const SvgIconComp: FC<SvgIconProps> = forwardRef(({ color, fill, ...props }, ref) => {
Expand Down
4 changes: 4 additions & 0 deletions src/assets/icons/dashboard-icon.svg
4 changes: 4 additions & 0 deletions src/assets/icons/description-icon.svg
3 changes: 3 additions & 0 deletions src/assets/icons/double-arrow-icon.svg
15 changes: 0 additions & 15 deletions src/assets/icons/fix-beta-logo.svg
Diff not rendered.
4 changes: 4 additions & 0 deletions src/assets/icons/fix-logo-no-background.svg
21 changes: 5 additions & 16 deletions src/assets/icons/fix-logo.svg
5 changes: 2 additions & 3 deletions src/assets/icons/github-seb-icon.svg
Loading

0 comments on commit 97823f2

Please sign in to comment.