-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 💡 Run linter on codebase
✅ Closes: #151
- Loading branch information
1 parent
3263c98
commit ffa19ab
Showing
131 changed files
with
3,725 additions
and
2,867 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,15 @@ | ||
const prompt = require('prompt-sync')(); | ||
const versiony = require('versiony'); | ||
const prompt = require("prompt-sync")(); | ||
const versiony = require("versiony"); | ||
|
||
const version = prompt('Is it 1) Major 2) Minor 3) Patch? Default is Patch. '); | ||
const version = prompt("Is it 1) Major 2) Minor 3) Patch? Default is Patch. "); | ||
|
||
switch(version) { | ||
case '1': | ||
versiony.from('package.json').major().minor(0).patch(0).to(); | ||
break; | ||
case '2': | ||
versiony.from('package.json').minor().patch(0).to(); | ||
break; | ||
default: | ||
versiony.from('package.json').patch().to(); | ||
}; | ||
switch (version) { | ||
case "1": | ||
versiony.from("package.json").major().minor(0).patch(0).to(); | ||
break; | ||
case "2": | ||
versiony.from("package.json").minor().patch(0).to(); | ||
break; | ||
default: | ||
versiony.from("package.json").patch().to(); | ||
} |
This file contains 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,14 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script> | ||
const l = window.location.href; | ||
const s = l.split('index.html')[0]; | ||
window.location.href = s + 'main_window/index.html' | ||
</script> | ||
<!-- the document has no actual content; neither character encoding nor styles and scripts are needed --> | ||
</head> | ||
<body> | ||
<!-- no body content in case of redirect --> | ||
</body> | ||
</html> | ||
<head> | ||
<script> | ||
const l = window.location.href; | ||
const s = l.split("index.html")[0]; | ||
window.location.href = s + "main_window/index.html"; | ||
</script> | ||
<!-- the document has no actual content; neither character encoding nor styles and scripts are needed --> | ||
</head> | ||
<body> | ||
<!-- no body content in case of redirect --> | ||
</body> | ||
</html> |
This file contains 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 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,14 +1,14 @@ | ||
import { createRoot } from 'react-dom/client'; | ||
import Main from './components/Main'; | ||
import { createRoot } from "react-dom/client"; | ||
import Main from "./components/Main"; | ||
|
||
const el = document.getElementById('root'); | ||
const el = document.getElementById("root"); | ||
|
||
if (el) { | ||
// If the root element is found, render the app into it | ||
const root = createRoot(el); | ||
root.render(<Main />); | ||
// If the root element is found, render the app into it | ||
const root = createRoot(el); | ||
root.render(<Main />); | ||
} else { | ||
// If the root element is not found, create a new one | ||
const root = createRoot(document.body); | ||
root.render(<Main />); | ||
} | ||
// If the root element is not found, create a new one | ||
const root = createRoot(document.body); | ||
root.render(<Main />); | ||
} |
This file contains 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,21 +1,18 @@ | ||
class Character { | ||
constructor() { | ||
|
||
if (this) { | ||
this.start(); | ||
requestAnimationFrame(this.update); | ||
} | ||
constructor() { | ||
if (this) { | ||
this.start(); | ||
requestAnimationFrame(this.update); | ||
} | ||
} | ||
|
||
start() { | ||
|
||
} | ||
start() {} | ||
|
||
update(tick: number) { | ||
if (this) { | ||
requestAnimationFrame(this.update); | ||
} | ||
update(tick: number) { | ||
if (this) { | ||
requestAnimationFrame(this.update); | ||
} | ||
} | ||
} | ||
|
||
export default Character; | ||
export default Character; |
Oops, something went wrong.