Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sidebar, properly add awesome font icons and adjusting css. #197

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ target
/.settings
/RUNNING_PID
/public
.bsp
.bsp
.DS_store
project.*
6 changes: 0 additions & 6 deletions ui/.eslintrc

This file was deleted.

6 changes: 3 additions & 3 deletions ui/src/App.test.js → ui/__tests__/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from "react";
import { createRoot } from "react-dom/client";
import { act } from "react-dom/test-utils";

import App from "./App";
import Client from "./Client";
import App from "../src/App";
import Client from "../src/utils/Client";

globalThis.IS_REACT_ACT_ENVIRONMENT = true;

Expand All @@ -15,7 +15,7 @@ const render = () => {
});
};

jest.mock("../src/Client");
jest.mock("../src/utils/Client");

describe("App tests", () => {
it("renders without crashing", () => {
Expand Down
5 changes: 4 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.1",
"react-scripts": "^5.0.1"
"react-scripts": "^5.0.1",
"@fortawesome/react-fontawesome": "^0.1.15",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/free-brands-svg-icons": "5.15.4"
},
"devDependencies": {
"ncp": "^2.0.0",
Expand Down
11 changes: 11 additions & 0 deletions ui/public/css/plugins/animate.min.css

Large diffs are not rendered by default.

279 changes: 279 additions & 0 deletions ui/public/css/plugins/fancybox.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp {
padding: 0;
margin: 0;
border: 0;
outline: 0;
vertical-align: top
}

.fancybox-wrap {
position: absolute;
top: 0;
left: 0;
z-index: 8020
}

.fancybox-skin {
position: relative;
background: #f9f9f9;
color: #444;
text-shadow: none;
border-radius: 4px
}

.fancybox-opened {
z-index: 8030
}

.fancybox-opened .fancybox-skin {
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
box-shadow: 0 10px 25px rgba(0, 0, 0, .5)
}

.fancybox-outer,
.fancybox-inner {
position: relative
}

.fancybox-inner {
overflow: hidden
}

.fancybox-type-iframe .fancybox-inner {
-webkit-overflow-scrolling: touch
}

.fancybox-error {
color: #444;
font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0;
padding: 15px;
white-space: nowrap
}

.fancybox-image,
.fancybox-iframe {
display: block;
width: 100%;
height: 100%
}

.fancybox-image {
max-width: 100%;
max-height: 100%
}

#fancybox-loading,
.fancybox-close,
.fancybox-prev span,
.fancybox-next span {
background-image: url(fancybox_sprite.png)
}
.fancybox-close{
background-image: url(../../../src/assets/images/banner/shape/close.png);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
height: 40px;
width: 40px;
}

#fancybox-loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -22px;
margin-left: -22px;
background-position: 0 -108px;
opacity: .8;
cursor: pointer;
z-index: 8060
}

#fancybox-loading div {
width: 44px;
height: 44px;
background: url(fancybox_loading.gif) center center no-repeat
}

.fancybox-close {
position: absolute;
top: -18px;
right: -18px;
width: 18px;
height: 18px;
cursor: pointer;
z-index: 8040
}

.fancybox-nav {
position: absolute;
top: 0;
width: 40%;
height: 100%;
cursor: pointer;
text-decoration: none;
background: transparent url(blank.gif);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
z-index: 8040
}

.fancybox-prev {
left: 0
}

.fancybox-next {
right: 0
}

.fancybox-nav span {
position: absolute;
top: 50%;
width: 36px;
height: 34px;
margin-top: -18px;
cursor: pointer;
z-index: 8040;
visibility: hidden
}

.fancybox-prev span {
left: 10px;
background-position: 0 -36px
}

.fancybox-next span {
right: 10px;
background-position: 0 -72px
}

.fancybox-nav:hover span {
visibility: visible
}

.fancybox-tmp {
position: absolute;
top: -99999px;
left: -99999px;
visibility: hidden;
max-width: 99999px;
max-height: 99999px;
overflow: visible !important
}

.fancybox-lock {
overflow: hidden !important;
width: auto
}

.fancybox-lock body {
overflow: hidden !important
}

.fancybox-lock-test {
overflow-y: hidden !important
}

.fancybox-overlay {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
display: none;
z-index: 8010;
background: #000000f0;
}

.fancybox-overlay-fixed {
position: fixed;
bottom: 0;
right: 0
}

.fancybox-lock .fancybox-overlay {
overflow: auto;
overflow-y: scroll
}

.fancybox-title {
visibility: hidden;
font: 400 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
position: relative;
text-shadow: none;
z-index: 8050
}

.fancybox-opened .fancybox-title {
visibility: visible
}

.fancybox-title-float-wrap {
position: absolute;
bottom: 0;
right: 50%;
margin-bottom: -35px;
z-index: 8050;
text-align: center
}

.fancybox-title-float-wrap .child {
display: inline-block;
margin-right: -100%;
padding: 2px 20px;
background: transparent;
background: rgba(0, 0, 0, .8);
border-radius: 15px;
text-shadow: 0 1px 2px #222;
color: #FFF;
font-weight: 700;
line-height: 24px;
white-space: nowrap
}

.fancybox-title-outside-wrap {
position: relative;
margin-top: 10px;
color: #fff
}

.fancybox-title-inside-wrap {
padding-top: 10px
}

.fancybox-title-over-wrap {
position: absolute;
bottom: 0;
left: 0;
color: #fff;
padding: 10px;
background: #000;
background: rgba(0, 0, 0, .8)
}

@media only screen and (-webkit-min-device-pixel-ratio:1.5),
only screen and (min--moz-device-pixel-ratio:1.5),
only screen and (min-device-pixel-ratio:1.5) {

#fancybox-loading,
.fancybox-close,
.fancybox-prev span,
.fancybox-next span {
background-image: url(../../../src/assets/images/banner/shape/close.png);
background-size: 44px 152px
}

#fancybox-loading div {
/* background-image: url([email protected]); */
background-size: 24px 24px
}
}
5 changes: 5 additions & 0 deletions ui/public/css/plugins/fontawesome-5.css

Large diffs are not rendered by default.

Loading
Loading