This repository was archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/fe structure #20
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
07c6ed2
changed favicon & logos
Gimleux e72f4f2
Added Console comments to index.html
Gimleux 3619258
Streched ui to 100%
Gimleux c638be3
Manage CSS for NavBar, Main & Footer
Gimleux c2e6537
WIP
Gimleux ff85ffa
Removed code smell
Gimleux 09c02e5
Merge branch 'feature/feStructure' into review
Gimleux 3161326
Merge pull request #16 from FileFighter/review
Gimleux 8f94485
trying to save to world aka restore wrong PR
Gimleux d764328
deleted warning
Gimleux 992b3f2
Fixed missing catch in Health
Gimleux 3d56228
Deleted outdated Health.tsx
Gimleux b46fa54
Update README.md
Gimleux 801de5e
Merge branch 'review' into feature/feStructure
Gimleux dc626d5
Added Submit Runner
Gimleux 2e753ff
Added classes instead of inline styles to submit runner
Gimleux 9faa587
Added NavBar
Gimleux 25d464f
Added Footer
Gimleux 9fcb4c6
Fixed wrong bootstrap in NavBar
Gimleux 78bdee7
fixed expansion of navbar on mobile
qvalentin 8b006a7
Merge branch 'master' into review
Gimleux 5624a11
Merged Review
Gimleux 3495a9b
minpr fixes
Gimleux 44bf3de
added link to file
qvalentin b2a9e45
use selfhosted corsanywhere
qvalentin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang="en" class="h-100"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
|
@@ -24,20 +24,25 @@ | |
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>React App</title> | ||
<title>FileFighter</title> | ||
</head> | ||
<body> | ||
<body class="h-100"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. <3 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do my best to follow your instructions, your grace |
||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
<div id="root" class="d-flex flex-column h-100"></div> | ||
<!--Black Lives Matter!--> | ||
<!--Queer Lives Matter!--> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can also add this to the banner of our blog if you want |
||
<!-- ################### --> | ||
<!-- ._____..._..._.........._____..._..........._......._................. --> | ||
<!-- |..___|.(_).|.|...___..|..___|.(_)...____..|.|__...|.|_....___...____. --> | ||
<!-- |.|_....|.|.|.|../._.\.|.|_....|.|../._\`|.|.'_.\..|.__|../._.\.|.'__| --> | ||
<!-- |.._|...|.|.|.|.|..__/.|.._|...|.|.|.(_|.|.|.|.|.|.|.|_..|..__/.|.|... --> | ||
<!-- |_|.....|_|.|_|..\___|.|_|.....|_|..\__,.|.|_|.|_|..\__|..\___|.|_|... --> | ||
<!-- ------------------------------------|___/----------------------------- --> | ||
<!-- FileFighter's documentation & code: https://filefighter.github.io/--> | ||
<!-- ################### --> | ||
<!-- Made with <3 by: --> | ||
<!-- https://github.com/Gimleux --> | ||
<!-- https://github.com/open-schnick --> | ||
<!-- https://github.com/qvalentin --> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
const internRedirect = (history: any, path: string, event?: { preventDefault: () => void; }): void => { | ||
if (event) event.preventDefault(); | ||
if (path) { | ||
const element = document.getElementById(path) | ||
if (element) { | ||
element.scrollIntoView() | ||
} | ||
const scrollToElement = (history: { push: (path:string) => void; }, id: string, event?: { preventDefault: () => void; }): void => { | ||
//Replaces anchor for React | ||
console.log("Scrolled to " + id) | ||
event?.preventDefault(); | ||
if (id) { | ||
const element = document.getElementById(id) | ||
element?.scrollIntoView() | ||
} | ||
}; | ||
const externRedirect = (event: { preventDefault: () => void; }, history: any[], path: string): void => { | ||
event.preventDefault(); | ||
history.push(path); | ||
const redirect = (history:{ push: (path:string) => void; } , path: string, event?: { preventDefault: () => void; }): void => { | ||
console.log("Redirected to " + path) | ||
event?.preventDefault(); | ||
if (path !== window.location.pathname) history.push(path); | ||
}; | ||
|
||
export {externRedirect, internRedirect} | ||
export {redirect, scrollToElement} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export function getStyleValue(element, strCssRule) { | ||
//https://stackoverflow.com/questions/5227909/how-to-get-an-elements-padding-value-using-javascript | ||
let strValue = ""; | ||
if (document.defaultView && document.defaultView.getComputedStyle) { | ||
strValue = document.defaultView.getComputedStyle(element, "").getPropertyValue(strCssRule); | ||
} else if (element.currentStyle) { | ||
strCssRule = strCssRule.replace(/(\w)/g, function (strMatch, p1) { | ||
return p1.toUpperCase(); | ||
}); | ||
strValue = element.currentStyle[strCssRule]; | ||
} | ||
return strValue; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
export interface getWindowSize_Interface { | ||
viewportWidth: number, | ||
viewportHeight: number | ||
} | ||
export function getWindowSize():getWindowSize_Interface { | ||
|
||
let viewportwidth:number; | ||
let viewportheight:number; | ||
|
||
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight | ||
|
||
if (typeof window.innerWidth != 'undefined') { | ||
viewportwidth = window.innerWidth | ||
viewportheight = window.innerHeight | ||
} | ||
|
||
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document) | ||
|
||
else if (typeof document.documentElement != 'undefined' && | ||
typeof document.documentElement.clientWidth != ('undefined' || 0)){ | ||
viewportwidth = document.documentElement.clientWidth | ||
viewportheight = document.documentElement.clientHeight | ||
} | ||
|
||
// older versions of IE | ||
|
||
else { | ||
viewportwidth = document.getElementsByTagName('body')[0].clientWidth | ||
viewportheight = document.getElementsByTagName('body')[0].clientHeight | ||
} | ||
return { | ||
viewportHeight: viewportheight, | ||
viewportWidth: viewportwidth | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you really put styles on this element?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, works totally fine