-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f11875
commit 8621b69
Showing
8 changed files
with
159 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\App.js":"1","C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\index.js":"2","C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\Components\\Header.js":"3"},{"size":161,"mtime":1612216895143,"results":"4","hashOfConfig":"5"},{"size":216,"mtime":1612216073478,"results":"6","hashOfConfig":"5"},{"size":449,"mtime":1612218265772,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"10"},"18opz5d",{"filePath":"11","messages":"12","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"10"},{"filePath":"13","messages":"14","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\App.js",[],["15","16","17","18","19"],"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\index.js",[],"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\Components\\Header.js",[],{"ruleId":"20","replacedBy":"21"},{"ruleId":"22","replacedBy":"23"},{"ruleId":"24","replacedBy":"25"},{"ruleId":"26","replacedBy":"27"},{"ruleId":"28","replacedBy":"29"},"lines-around-directive",["30"],"global-require",[],"no-buffer-constructor",[],"no-new-require",[],"no-path-concat",[],"padding-line-between-statements"] | ||
[{"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\App.js":"1","C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\index.js":"2","C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\Components\\Header.js":"3","C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\Components\\Content.js":"4"},{"size":591,"mtime":1612231944551,"results":"5","hashOfConfig":"6"},{"size":216,"mtime":1612216073478,"results":"7","hashOfConfig":"6"},{"size":449,"mtime":1612218412467,"results":"8","hashOfConfig":"6"},{"size":1364,"mtime":1612231958190,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"18opz5d",{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"14"},{"filePath":"15","messages":"16","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"14"},{"filePath":"17","messages":"18","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\App.js",[],"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\index.js",[],["19","20","21","22","23"],"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\Components\\Header.js",[],"C:\\Users\\loren\\Documents\\GitHub\\csgo-inventory-creator\\src\\Components\\Content.js",[],{"ruleId":"24","replacedBy":"25"},{"ruleId":"26","replacedBy":"27"},{"ruleId":"28","replacedBy":"29"},{"ruleId":"30","replacedBy":"31"},{"ruleId":"32","replacedBy":"33"},"lines-around-directive",["34"],"global-require",[],"no-buffer-constructor",[],"no-new-require",[],"no-path-concat",[],"padding-line-between-statements"] |
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 +1,3 @@ | ||
# csgo-inventory-creator | ||
|
||
**Project Abandoned**, here's a screenshot in its current, unfinished state: ![](https://i.plexidev.org/yXJ6lKc) |
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,11 +1,31 @@ | ||
import './App.css'; | ||
|
||
import { useState, useEffect } from 'react'; | ||
// import SteamMarketFetcher from 'steam-market-fetcher'; | ||
|
||
import { Header } from './Components/Header'; | ||
import { Content } from './Components/Content'; | ||
|
||
const App = () => { | ||
console.log('Running...'); | ||
const [state, setState] = useState({}); | ||
|
||
useEffect(() => { | ||
const fetchMarketInfo = () => { | ||
// TODO: Fetch CS:GO Items | ||
// Limitations: You can't fetch enough items before Steam ratelimits you. | ||
setState({}); | ||
}; | ||
|
||
fetchMarketInfo(); | ||
}); | ||
|
||
return <Header />; | ||
console.log(state); | ||
return ( | ||
<> | ||
<Header /> | ||
<Content /> | ||
</> | ||
); | ||
}; | ||
|
||
export default App; |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { | ||
Jumbotron, | ||
Container, | ||
Table, | ||
Navbar, | ||
Nav, | ||
Form, | ||
} from 'react-bootstrap'; | ||
|
||
import weapons from '../Data/weapons.json'; | ||
|
||
export const Content = () => { | ||
console.log(weapons); | ||
|
||
return ( | ||
<Jumbotron fluid style={{ margin: 0 }}> | ||
<Container> | ||
<Navbar bg='dark' variant='dark'> | ||
<Navbar.Brand href='#home'>CSGO Items</Navbar.Brand> | ||
<Nav className='mr-auto' /> | ||
<Navbar.Collapse className='justify-content-end'> | ||
<Navbar.Text> | ||
Total: <span style={{ color: 'white' }}>$XX</span> | ||
</Navbar.Text> | ||
</Navbar.Collapse> | ||
</Navbar> | ||
<Table striped bordered> | ||
<thead> | ||
<tr> | ||
<th>Weapon</th> | ||
<th>Skin</th> | ||
<th>Price</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{Object.keys(weapons).map(category => ( | ||
<> | ||
<tr> | ||
<td colSpan='3'> | ||
<b>{category}</b> | ||
</td> | ||
</tr> | ||
{Object.keys(weapons[category]).map(weapon => ( | ||
<tr> | ||
<td>{weapon}</td> | ||
<td> | ||
<Form.Control | ||
size='sm' | ||
type='text' | ||
placeholder='Skin' | ||
/> | ||
</td> | ||
<td> | ||
<b>$XX</b> | ||
</td> | ||
</tr> | ||
))} | ||
</> | ||
))} | ||
</tbody> | ||
</Table> | ||
</Container> | ||
</Jumbotron> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"Pistol": { | ||
"Glock-18": { "default": true }, | ||
"USP-S": { "default": true }, | ||
"P2000": { "default": false }, | ||
"Dual Berettas": { "default": true }, | ||
"P250": { "default": true }, | ||
"Tec-9": { "default": true }, | ||
"Five-SeveN": { "default": true }, | ||
"CZ75-Auto": { "default": false }, | ||
"Desert Eagle": { "default": true }, | ||
"R8 Revolver": { "default": false } | ||
}, | ||
"SMG": { | ||
"MAC-10": { "default": true }, | ||
"MP9": { "default": true }, | ||
"MP7": { "default": true }, | ||
"MP5-SD": { "default": false }, | ||
"UMP-45": { "default": true }, | ||
"P90": { "default": true }, | ||
"PP-Bizon": { "default": true } | ||
}, | ||
"Rifle": { | ||
"Galil AR": { "default": true }, | ||
"FAMAS": { "default": true }, | ||
"AK-47": { "default": true }, | ||
"M4A4": { "default": true }, | ||
"M4A1-S": { "default": false }, | ||
"SSG 08": { "default": true }, | ||
"SG 553": { "default": true }, | ||
"AUG": { "default": true }, | ||
"AWP": { "default": true }, | ||
"G3SG1": { "default": true }, | ||
"SCAR-20": { "default": true } | ||
}, | ||
"Heavy": { | ||
"Nova": { "default": true }, | ||
"XM1014": { "default": true }, | ||
"Sawed-Off": { "default": true }, | ||
"MAG-7": { "default": true }, | ||
"M249": { "default": true }, | ||
"Negev": { "default": true } | ||
}, | ||
"Melee": { | ||
"Knife": { "default": false } | ||
}, | ||
"Gloves": { | ||
"Gloves": { "default": false } | ||
}, | ||
"Agents": { | ||
"Local T Agent": { "default": false }, | ||
"Local CT Agent": { "default": false } | ||
} | ||
} |
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