mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
Merge pull request 'develop' (#1) from develop into main
Reviewed-on: https://gitea.gofwd.group/dstrawsb/ballistic-builder/pulls/1
This commit is contained in:
25
Example Code/BasicClassComponent/index.js
Normal file
25
Example Code/BasicClassComponent/index.js
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css'
|
||||||
|
|
||||||
|
export default class BasicClassComponent extends Component {
|
||||||
|
constructor(props){
|
||||||
|
super(props)
|
||||||
|
this.state = {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
render(){
|
||||||
|
return (
|
||||||
|
<div >
|
||||||
|
<h1>Basic Component</h1>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
BasicClassComponent.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
23
Example Code/BasicClassComponent/package.json
Normal file
23
Example Code/BasicClassComponent/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "basicclasscomponent",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
Example Code/BasicClassComponent/styles.module.css
Normal file
0
Example Code/BasicClassComponent/styles.module.css
Normal file
10
Example Code/BasicFunctionComponent /index.js
Normal file
10
Example Code/BasicFunctionComponent /index.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import styles from './styles.module.css'
|
||||||
|
|
||||||
|
export const BasicFunctionComponent = () => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default BasicFunctionComponent;
|
||||||
23
Example Code/BasicFunctionComponent /package.json
Normal file
23
Example Code/BasicFunctionComponent /package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "basicfunctioncomponent",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
14
Example Code/Card/index.css
Normal file
14
Example Code/Card/index.css
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
.card {
|
||||||
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
||||||
|
max-width: 80%;
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
font-size: 1.5em;
|
||||||
|
float: right;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
23
Example Code/Card/index.tsx
Normal file
23
Example Code/Card/index.tsx
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import React from "react";
|
||||||
|
import "./index.css";
|
||||||
|
class Card extends React.Component {
|
||||||
|
|
||||||
|
constructor( props ) {
|
||||||
|
super(props)
|
||||||
|
this.state = { show : true };
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div className="card" >
|
||||||
|
<span
|
||||||
|
className="close" onClick={this.props.dataclick}
|
||||||
|
datatitle={this.props.title}>×</span>
|
||||||
|
<h3>{this.props.title}</h3>
|
||||||
|
<p>{this.props.content}</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
export default Card;
|
||||||
3
Example Code/CardList/index.css
Normal file
3
Example Code/CardList/index.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.cardList {
|
||||||
|
|
||||||
|
}
|
||||||
38
Example Code/CardList/index.js
Normal file
38
Example Code/CardList/index.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import React from "react";
|
||||||
|
import ReactDOM from "react-dom";
|
||||||
|
import Card from "../Card/";
|
||||||
|
import data from "../../data.json";
|
||||||
|
|
||||||
|
class CardList extends React.Component {
|
||||||
|
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = { cards: data.cards };
|
||||||
|
}
|
||||||
|
|
||||||
|
remove() {
|
||||||
|
|
||||||
|
}
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
this.state.cards.map((card, index) => {
|
||||||
|
return <Card
|
||||||
|
key={index}
|
||||||
|
title={card.title}
|
||||||
|
content={card.content}
|
||||||
|
dataclick={this.remove}
|
||||||
|
/>
|
||||||
|
})
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
export default CardList;
|
||||||
|
|
||||||
38
Example Code/Weather/index.js
Normal file
38
Example Code/Weather/index.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import React from "react";
|
||||||
|
import styles from "./styles.module.css";
|
||||||
|
class Weather extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
show: true,
|
||||||
|
|
||||||
|
};
|
||||||
|
this.props = {
|
||||||
|
name : '',
|
||||||
|
temperature : '',
|
||||||
|
temperatureUnit : '',
|
||||||
|
detailedForecast : '',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div className="card">
|
||||||
|
<span
|
||||||
|
className="close"
|
||||||
|
onClick={this.props.dataclick}
|
||||||
|
datatitle={this.props.title}
|
||||||
|
>×
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<p>{this.props.name}</p>
|
||||||
|
<p>{this.props.temperature}</p>
|
||||||
|
<p>{this.props.temperatureUnit}</p>
|
||||||
|
<p>{this.props.detailedForecast}</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Weather;
|
||||||
14
Example Code/Weather/styles.module.css
Normal file
14
Example Code/Weather/styles.module.css
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
.card {
|
||||||
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
||||||
|
max-width: 80%;
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
font-size: 1.5em;
|
||||||
|
float: right;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
3
Example Code/WeatherList/index.css
Normal file
3
Example Code/WeatherList/index.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.cardList {
|
||||||
|
|
||||||
|
}
|
||||||
54
Example Code/WeatherList/index.js
Normal file
54
Example Code/WeatherList/index.js
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
import React from "react";
|
||||||
|
import ReactDOM from "react-dom";
|
||||||
|
import Weather from "../Weather";
|
||||||
|
|
||||||
|
class WeatherList extends React.Component {
|
||||||
|
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = { periods: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
remove() {
|
||||||
|
|
||||||
|
}
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
this.state.periods.map((period, index) => {
|
||||||
|
return <Weather
|
||||||
|
key={index}
|
||||||
|
name={period.name}
|
||||||
|
temperature={period.temperature}
|
||||||
|
temperatureUnit={period.temperatureUnit}
|
||||||
|
detailedForecast={period.detailedForecast}
|
||||||
|
dataclick={this.remove}
|
||||||
|
/>
|
||||||
|
})
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
getData() {
|
||||||
|
fetch("https://api.weather.gov/gridpoints/MLB/25,69/forecast")
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(data => this.setState({ periods : data.properties.periods}))
|
||||||
|
.then(data => console.log(data));
|
||||||
|
this.setState({
|
||||||
|
detailedForcast : 'Test Detailed forcast',
|
||||||
|
name : 'Test data',
|
||||||
|
temperature : '90',
|
||||||
|
temperatureUnit : 'Celcius'});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
this.getData();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
export default WeatherList;
|
||||||
11
Example Code/fetchData.tsx
Normal file
11
Example Code/fetchData.tsx
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
export default async function Page() {
|
||||||
|
let data = await fetch('https://api.vercel.app/blog')
|
||||||
|
let posts = await data.json()
|
||||||
|
return (
|
||||||
|
<ul>
|
||||||
|
{posts.map((post) => (
|
||||||
|
<li key={post.id}>{post.title}</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
)
|
||||||
|
}
|
||||||
29
app/Fragments/Armory/index.tsx
Normal file
29
app/Fragments/Armory/index.tsx
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import { sectionLinks } from "@/app/lib/linkList/sectionLinks";
|
||||||
|
import Link from "next/link";
|
||||||
|
import armoryLinks from "@/app/lib/linkList/sectionLinks";
|
||||||
|
|
||||||
|
let linksArray = [
|
||||||
|
sectionLinks.UPPERS,
|
||||||
|
sectionLinks.LOWERS,
|
||||||
|
sectionLinks.BARRELS,
|
||||||
|
sectionLinks.OPTICS,
|
||||||
|
sectionLinks.ACCESSORIES,
|
||||||
|
];
|
||||||
|
export const Armory = (props) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{armoryLinks.length}
|
||||||
|
<h4>{props.titleText}</h4>
|
||||||
|
<ul>
|
||||||
|
{linksArray.map((link, index) => (
|
||||||
|
<li key={index}>
|
||||||
|
<Link href={link.URL}>
|
||||||
|
<a>{link.TEXT}</a>
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default Armory;
|
||||||
23
app/Fragments/Armory/package.json
Normal file
23
app/Fragments/Armory/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "armory",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
1
app/Fragments/Armory/style.module.scss
Normal file
1
app/Fragments/Armory/style.module.scss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
@import '../../scss/variables.scss';
|
||||||
38
app/Fragments/Button/index.js
Normal file
38
app/Fragments/Button/index.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
import styles from './style.module.scss'
|
||||||
|
|
||||||
|
const Button = ({
|
||||||
|
children,
|
||||||
|
className,
|
||||||
|
color = 'black',
|
||||||
|
type = 'button',
|
||||||
|
...props
|
||||||
|
}) => (
|
||||||
|
<button
|
||||||
|
className={`${className} Button Button_${color}`}
|
||||||
|
type={type}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
|
||||||
|
const ButtonUnobtrusive = ({
|
||||||
|
children,
|
||||||
|
className,
|
||||||
|
type = 'button',
|
||||||
|
...props
|
||||||
|
}) => (
|
||||||
|
<button
|
||||||
|
className={`${className} Button_unobtrusive`}
|
||||||
|
type={type}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
|
||||||
|
export { ButtonUnobtrusive };
|
||||||
|
|
||||||
|
export default Button;
|
||||||
23
app/Fragments/Button/package.json
Normal file
23
app/Fragments/Button/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "button",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
46
app/Fragments/Button/style.module.scss
Normal file
46
app/Fragments/Button/style.module.scss
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
.Button {
|
||||||
|
padding: 10px;
|
||||||
|
background: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.25s ease-in-out;
|
||||||
|
transition: background 0.25s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Button_white {
|
||||||
|
border: 1px solid #fff;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Button_white:hover {
|
||||||
|
color: #000;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Button_black {
|
||||||
|
border: 1px solid #000;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Button_black:hover {
|
||||||
|
color: #fff;
|
||||||
|
background: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Button_unobtrusive {
|
||||||
|
padding: 0;
|
||||||
|
color: #000;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity 0.25s ease-in-out;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Button_unobtrusive:hover {
|
||||||
|
opacity: 0.35;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Button_unobtrusive:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
8
app/Fragments/DSTPageHeader/index.js
Normal file
8
app/Fragments/DSTPageHeader/index.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
const DSTPageHeader = props => {
|
||||||
|
return (
|
||||||
|
<div>{props.title}</div>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default DSTPageHeader
|
||||||
23
app/Fragments/DSTPageHeader/package.json
Normal file
23
app/Fragments/DSTPageHeader/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "DSTPageHeader",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/Fragments/DSTPageHeader/styles.module.css
Normal file
0
app/Fragments/DSTPageHeader/styles.module.css
Normal file
11
app/Fragments/Error/index.js
Normal file
11
app/Fragments/Error/index.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
import styles from './style.module.css';
|
||||||
|
|
||||||
|
const ErrorMessage = ({ error }) => (
|
||||||
|
<div className="ErrorMessage">
|
||||||
|
<small>{error.toString()}</small>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default ErrorMessage;
|
||||||
23
app/Fragments/Error/package.json
Normal file
23
app/Fragments/Error/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "error",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
5
app/Fragments/Error/style.module.css
Normal file
5
app/Fragments/Error/style.module.css
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
.ErrorMessage {
|
||||||
|
margin: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
13
app/Fragments/FooterLink/index.tsx
Normal file
13
app/Fragments/FooterLink/index.tsx
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { ListItemText, Link } from "@mui/material";
|
||||||
|
import styles from './styles.module.css'
|
||||||
|
import { withStyles } from '@mui/material/styles';
|
||||||
|
import styled from '@emotion/styled'
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export default function FooterLink(props) {
|
||||||
|
return (
|
||||||
|
<ListItemText inset >
|
||||||
|
<Link href={props.href}><a className={styles.navLinks}>{props.title}</a></Link>
|
||||||
|
</ListItemText>
|
||||||
|
)
|
||||||
|
}
|
||||||
23
app/Fragments/FooterLink/package.json
Normal file
23
app/Fragments/FooterLink/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "footerlink",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
5
app/Fragments/FooterLink/styles.module.css
Normal file
5
app/Fragments/FooterLink/styles.module.css
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
.navLinks:hover {
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration : none;
|
||||||
|
}
|
||||||
28
app/Fragments/GroundZero/index.tsx
Normal file
28
app/Fragments/GroundZero/index.tsx
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import { sectionLinks } from "@/app/lib/linkList/sectionLinks";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
let linksArray = [
|
||||||
|
sectionLinks.BLOG,
|
||||||
|
sectionLinks.PRICEDROPS,
|
||||||
|
sectionLinks.BUILDS,
|
||||||
|
sectionLinks.BUILDGUIDES,
|
||||||
|
];
|
||||||
|
|
||||||
|
export const GroundZero = (props) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h4>{props.titleText}</h4>
|
||||||
|
<ul>
|
||||||
|
{linksArray.map((link, index) => (
|
||||||
|
<li key={index}>
|
||||||
|
<Link href={link.URL}>
|
||||||
|
<a>{link.TEXT}</a>
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default GroundZero;
|
||||||
23
app/Fragments/GroundZero/package.json
Normal file
23
app/Fragments/GroundZero/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "groundzero",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
1
app/Fragments/GroundZero/style.module.scss
Normal file
1
app/Fragments/GroundZero/style.module.scss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
@import '../../scss/variables.scss';
|
||||||
27
app/Fragments/Information/index.tsx
Normal file
27
app/Fragments/Information/index.tsx
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import { infoLinks } from "@/app/lib/linkList/infoLinks";
|
||||||
|
import Link from "next/link";
|
||||||
|
let linksArray = [
|
||||||
|
infoLinks.ABOUT,
|
||||||
|
infoLinks.FAQ,
|
||||||
|
infoLinks.DISCLOSURE,
|
||||||
|
infoLinks.PRIVACYPOLICY,
|
||||||
|
infoLinks.PIP,
|
||||||
|
infoLinks.TOS
|
||||||
|
];
|
||||||
|
export const Information = (props) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h4>{props.titleText}</h4>
|
||||||
|
<ul>
|
||||||
|
{linksArray.map((link, index) => (
|
||||||
|
<li key={index}>
|
||||||
|
<Link href={link.URL}>
|
||||||
|
<a>{link.TEXT}</a>
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default Information;
|
||||||
23
app/Fragments/Information/package.json
Normal file
23
app/Fragments/Information/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "information",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
1
app/Fragments/Information/style.module.scss
Normal file
1
app/Fragments/Information/style.module.scss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
@import '../../scss/variables.scss';
|
||||||
70
app/Fragments/States/index.tsx
Normal file
70
app/Fragments/States/index.tsx
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { makeStyles } from '@mui/material/styles';
|
||||||
|
import InputLabel from '@mui/material/InputLabel';
|
||||||
|
import FormHelperText from '@mui/material/FormHelperText';
|
||||||
|
import FormControl from '@mui/material/FormControl';
|
||||||
|
import Select from '@mui/material/Select';
|
||||||
|
import NativeSelect from '@mui/material/NativeSelect';
|
||||||
|
import { useQuery, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
|
||||||
|
const useStyles = makeStyles((theme) => ({
|
||||||
|
formControl: {
|
||||||
|
margin: theme.spacing(1),
|
||||||
|
minWidth: 120,
|
||||||
|
},
|
||||||
|
selectEmpty: {
|
||||||
|
marginTop: theme.spacing(2),
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
const GET_STATES = gql`
|
||||||
|
{
|
||||||
|
states {
|
||||||
|
abbrev
|
||||||
|
name
|
||||||
|
}
|
||||||
|
}`
|
||||||
|
|
||||||
|
export default function StateNativeSelects() {
|
||||||
|
const classes = useStyles();
|
||||||
|
const [state, setState] = React.useState({
|
||||||
|
abbrev: '',
|
||||||
|
name: '',
|
||||||
|
});
|
||||||
|
|
||||||
|
const handleChange = (event) => {
|
||||||
|
const name = event.target.name;
|
||||||
|
setState({
|
||||||
|
...state,
|
||||||
|
[name]: event.target.value,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_STATES);
|
||||||
|
|
||||||
|
if (loading) return <p>Loading...</p>;
|
||||||
|
if (error) return <p>Error :(</p>;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<FormControl className={classes.formControl}>
|
||||||
|
<InputLabel htmlFor="state-native-simple">State</InputLabel>
|
||||||
|
<Select
|
||||||
|
native
|
||||||
|
value={state.abbrev}
|
||||||
|
onChange={handleChange}
|
||||||
|
inputProps={{
|
||||||
|
name: 'abbrev',
|
||||||
|
id: 'abbrev-native-simple',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<option aria-label="None" value="" />
|
||||||
|
{data.states.map(({ abbrev, name }) => (
|
||||||
|
<option value={abbrev}>{name}</option>
|
||||||
|
))}
|
||||||
|
</Select>
|
||||||
|
</FormControl>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
74
app/components/Footer/FooterLinks/index copy.js
Normal file
74
app/components/Footer/FooterLinks/index copy.js
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css'
|
||||||
|
import List from '@mui/material/List'
|
||||||
|
import ListItem from '@mui/material/ListItem';
|
||||||
|
import ListItemText from '@mui/material/ListItemText';
|
||||||
|
import TypoGraphy from '@mui/material/Typography'
|
||||||
|
import Link from 'next/link'
|
||||||
|
import { makeStyles } from '@mui/material/styles';
|
||||||
|
|
||||||
|
const useStyles = makeStyles((theme) => ({
|
||||||
|
root: {
|
||||||
|
width: '75%',
|
||||||
|
maxWidth: 260,
|
||||||
|
/* backgroundColor: theme.palette.background.paper, */
|
||||||
|
float : 'right',
|
||||||
|
marginRight:'2%',
|
||||||
|
fontSize : '.80em'
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
export default function FooterLinks() {
|
||||||
|
|
||||||
|
const classes = useStyles();
|
||||||
|
return (
|
||||||
|
<div className={classes.root}>
|
||||||
|
<TypoGraphy variant="subtitle1" color="inherit" >
|
||||||
|
<List component="nav" >
|
||||||
|
|
||||||
|
<ListItemText inset >
|
||||||
|
<TypoGraphy color="inherit" variant="subtitle2">
|
||||||
|
<Link href="/info/faq"><a className={styles.navLinks}>FAQ</a></Link>
|
||||||
|
</TypoGraphy>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset >
|
||||||
|
<TypoGraphy color="inherit" variant="subtitle2">
|
||||||
|
<Link href="/info/tos"><a className={styles.navLinks}>Terms Of Service</a></Link>
|
||||||
|
</TypoGraphy>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset>
|
||||||
|
<TypoGraphy color="inherit" variant="subtitle2">
|
||||||
|
<Link href="/info/contactus"><a className={styles.navLinks}>Contact Us</a></Link>
|
||||||
|
</TypoGraphy>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset>
|
||||||
|
<TypoGraphy color="inherit" variant="subtitle2">
|
||||||
|
<Link href="/info/privacypolicy"><a className={styles.navLinks}>Privacy Policy</a></Link>
|
||||||
|
</TypoGraphy>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset>
|
||||||
|
<TypoGraphy color="inherit" variant="subtitle2">
|
||||||
|
<Link href="/info/pip"><a className={styles.navLinks}>Personal Information Policy</a></Link>
|
||||||
|
</TypoGraphy>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset>
|
||||||
|
<TypoGraphy color="inherit" variant="subtitle2">
|
||||||
|
<Link href="/info/disclosure"><a className={styles.navLinks}>Disclosure</a></Link>
|
||||||
|
</TypoGraphy>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
|
||||||
|
</List>
|
||||||
|
</TypoGraphy>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
53
app/components/Footer/FooterLinks/index.js
Normal file
53
app/components/Footer/FooterLinks/index.js
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css'
|
||||||
|
import List from '@mui/material/List'
|
||||||
|
import ListItem from '@mui/material/ListItem';
|
||||||
|
import ListItemText from '@mui/material/ListItemText';
|
||||||
|
import TypoGraphy from '@mui/material/Typography'
|
||||||
|
import Link from 'next/link'
|
||||||
|
import { withStyles } from '@mui/material/styles';
|
||||||
|
import styled from '@emotion/styled'
|
||||||
|
import FooterLink from '@/app/Fragments/FooterLink';
|
||||||
|
|
||||||
|
|
||||||
|
class FooterLinks extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props)
|
||||||
|
this.state = {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
const { classes } = this.props;
|
||||||
|
return (
|
||||||
|
<FooterLinksStyled>
|
||||||
|
<div className="footer-links">
|
||||||
|
<List component="nav" >
|
||||||
|
<React.Fragment>
|
||||||
|
<FooterLink href="/info/faq" title="FAQ" />
|
||||||
|
<FooterLink href="/info/tos" title="Terms Of Service" />
|
||||||
|
<FooterLink href="/info/contactus" title="Contact Us" />
|
||||||
|
<FooterLink href="/info/privacypolicy" title="Privacy Policy" />
|
||||||
|
<FooterLink href="/info/pip" title="Personal Information Policy" />
|
||||||
|
<FooterLink href="/info/disclosure" title="Disclosure" />
|
||||||
|
<FooterLink href="/info/about" title="About Us" />
|
||||||
|
</React.Fragment>
|
||||||
|
</List>
|
||||||
|
</div>
|
||||||
|
</FooterLinksStyled>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const FooterLinksStyled = styled.div`
|
||||||
|
.footer-links nav {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
// export default withStyles(useStyles)(FooterLinks);
|
||||||
|
|
||||||
|
export default FooterLinks;
|
||||||
23
app/components/Footer/FooterLinks/package.json
Normal file
23
app/components/Footer/FooterLinks/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "footerlinks",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
7
app/components/Footer/FooterLinks/styles.module.css
Normal file
7
app/components/Footer/FooterLinks/styles.module.css
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.navLinks {
|
||||||
|
color:#000;
|
||||||
|
}
|
||||||
|
.navLinks:hover {
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration : none;
|
||||||
|
}
|
||||||
43
app/components/Footer/index.tsx
Normal file
43
app/components/Footer/index.tsx
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
import React, { Component } from "react";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
import styles from './styles.module.scss';
|
||||||
|
import Copyright from "@/app/components/Info/Copyright";
|
||||||
|
import FooterLinks from "./FooterLinks";
|
||||||
|
import Link from "next/link";
|
||||||
|
import { infoLinks } from "@/app/lib/linkList/infoLinks";
|
||||||
|
import { sectionLinks } from "@/app/lib/linkList/sectionLinks";
|
||||||
|
import Armory from '@/app/Fragments/Armory';
|
||||||
|
import GroundZero from "@/app/Fragments/GroundZero";
|
||||||
|
import Information from "@/app/Fragments/Information";
|
||||||
|
export const Footer = () => {
|
||||||
|
|
||||||
|
return (
|
||||||
|
// <div className={styles.Footer}>
|
||||||
|
// <FooterLinks></FooterLinks>
|
||||||
|
// <Copyright></Copyright>
|
||||||
|
// </div>
|
||||||
|
<>
|
||||||
|
<footer className={styles.footer}>
|
||||||
|
<nav className={styles.linksContainer}>
|
||||||
|
<div className={styles.brand}>
|
||||||
|
<div className={styles.logo}>
|
||||||
|
<span>Logo</span>
|
||||||
|
</div>
|
||||||
|
<p>Find Parts.</p>
|
||||||
|
<p>Build Guns.</p>
|
||||||
|
<p>Freedom On.</p>
|
||||||
|
</div>
|
||||||
|
<Armory titleText="Armory"/>
|
||||||
|
<GroundZero titleText="Ground Zero"/>
|
||||||
|
<Information titleText="Information"/>
|
||||||
|
</nav>
|
||||||
|
</footer>
|
||||||
|
<Copyright></Copyright>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Footer.propTypes = {};
|
||||||
|
|
||||||
|
export default Footer;
|
||||||
23
app/components/Footer/package.json
Normal file
23
app/components/Footer/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "footer",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
59
app/components/Footer/styles.module.scss
Normal file
59
app/components/Footer/styles.module.scss
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
@import '../../scss/variables.scss';
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background: #4c5c3f;
|
||||||
|
min-height: 300px;
|
||||||
|
height: 100%;
|
||||||
|
padding: 1rem 0;
|
||||||
|
border-top: 2px solid #000;
|
||||||
|
|
||||||
|
.brand {
|
||||||
|
font-weight: bolder;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
font-size: 1.25em;
|
||||||
|
color:#FFF;
|
||||||
|
|
||||||
|
.logo span {
|
||||||
|
display: inline-block;
|
||||||
|
height: 100px;
|
||||||
|
width: 100px;
|
||||||
|
background: #FFF;
|
||||||
|
color:#4c5c3f;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.linksContainer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: flex-start;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
color:#FFF;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #fff;
|
||||||
|
transition: all 500ms ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #ADA17B;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
color: #FFF;
|
||||||
|
border-bottom: 2px solid #fff;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
108
app/components/Header/index.tsx
Normal file
108
app/components/Header/index.tsx
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import PropTypes from 'prop-types'; //ES6
|
||||||
|
import styles from './styles.module.css';
|
||||||
|
import Link from 'next/link';
|
||||||
|
import AppBar from '@mui/material/AppBar';
|
||||||
|
import Toolbar from '@mui/material/Toolbar';
|
||||||
|
import List from '@mui/material/List';
|
||||||
|
import ListItem from '@mui/material/ListItem';
|
||||||
|
import ListItemText from '@mui/material//ListItemText';
|
||||||
|
// import TypoGraphy from '@mui/material/Typography';
|
||||||
|
import Button from '@mui/material//Button';
|
||||||
|
import { infoLinks } from '@/app/lib/linkList/infoLinks';
|
||||||
|
import sectionLinks from '@/app/lib/linkList/sectionLinks';
|
||||||
|
|
||||||
|
export default class Header extends Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props)
|
||||||
|
this.state = {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div className="topheader">
|
||||||
|
<Link href="/"><a className="logo">Gun Builder</a>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<AppBar position="static">
|
||||||
|
<Toolbar>
|
||||||
|
<List component="nav">
|
||||||
|
<ListItem component="div" className="nav-item">
|
||||||
|
<ListItemText inset>
|
||||||
|
<Link href={sectionLinks.UPPERS.URL}><a className={styles.navLinks}>{sectionLinks.UPPERS.TEXT}</a></Link>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset>
|
||||||
|
<Link href={sectionLinks.PARTSLIST.URL}><a className={styles.navLinks}>{sectionLinks.PARTSLIST.TEXT}</a></Link>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset>
|
||||||
|
<Link href={sectionLinks.BUILDS.URL}><a className={styles.navLinks}>{sectionLinks.BUILDS.TEXT}</a></Link>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
<ListItemText inset>
|
||||||
|
<Link href={sectionLinks.BLOG.URL}><a className={styles.navLinks}>{sectionLinks.BLOG.TEXT}</a></Link>
|
||||||
|
</ListItemText>
|
||||||
|
|
||||||
|
{/* <ListItemText inset>
|
||||||
|
<Link href="/admin"><a className={styles.navLinks}>Admin</a></Link>
|
||||||
|
</ListItemText> */}
|
||||||
|
</ListItem>
|
||||||
|
|
||||||
|
</List>
|
||||||
|
</Toolbar>
|
||||||
|
</AppBar>
|
||||||
|
|
||||||
|
<style jsx>{`
|
||||||
|
header {
|
||||||
|
background:#101010;
|
||||||
|
color:#fff;
|
||||||
|
}
|
||||||
|
.topheader {
|
||||||
|
background:#111;
|
||||||
|
height: 4em;
|
||||||
|
color: #000;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topheader a {
|
||||||
|
color:#fff;
|
||||||
|
padding-left: 15px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
|
.nav {
|
||||||
|
display: flex;
|
||||||
|
background: #4c5d34;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
ul li {
|
||||||
|
margin-right: 10px;
|
||||||
|
padding:1em 1.5em;
|
||||||
|
border-right:2px solid rgba(0,0,0,.3);
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight:bold;
|
||||||
|
letter-spacing:2px;
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Header.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
23
app/components/Header/package.json
Normal file
23
app/components/Header/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "header",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
13
app/components/Header/styles.module.css
Normal file
13
app/components/Header/styles.module.css
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
.navLinks {
|
||||||
|
color:white;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
font-weight: bold;
|
||||||
|
transition: all 500ms ease;
|
||||||
|
}
|
||||||
|
.navLinks:hover {
|
||||||
|
text-decoration : none;
|
||||||
|
}
|
||||||
|
.nav-item:hover {
|
||||||
|
background-color: pink;
|
||||||
|
}
|
||||||
45
app/components/Hero/index.tsx
Normal file
45
app/components/Hero/index.tsx
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import Typography from '@mui/material/Typography';
|
||||||
|
import MuiLink from '@mui/material/Link';
|
||||||
|
import Button from '@mui/material/Button';
|
||||||
|
|
||||||
|
export default class Hero extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
show: true,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
|
||||||
|
<div className="hero" styles={{ backgroundImage:`url({${this.props.image}})` }}>
|
||||||
|
<div className="hero-text">
|
||||||
|
<h3>{this.props.heading}</h3>
|
||||||
|
<p>{this.props.subheading}</p>
|
||||||
|
<Button href={this.props.link} variant="contained" color="primary">
|
||||||
|
{this.props.linktext}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style jsx>{`
|
||||||
|
.hero {
|
||||||
|
// background:url('/gb-hero.jpg');
|
||||||
|
background-size:cover;
|
||||||
|
min-height:35vw;
|
||||||
|
color: #fff;
|
||||||
|
display:flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.hero-text {
|
||||||
|
padding: 2em;
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
23
app/components/Hero/package.json
Normal file
23
app/components/Hero/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "hero",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/components/Hero/styles.module.css
Normal file
0
app/components/Hero/styles.module.css
Normal file
35
app/components/Info/About/index.tsx
Normal file
35
app/components/Info/About/index.tsx
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css'
|
||||||
|
import { useQuery, useMutation, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export default function About(props) {
|
||||||
|
|
||||||
|
const GET_SITE_CONTENT = gql`
|
||||||
|
query Get_Site_Content {
|
||||||
|
site_contents(where: {content_id: {_eq: "ABOUTUS"}}, order_by: {content: asc}) {
|
||||||
|
id
|
||||||
|
content_id
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_SITE_CONTENT);
|
||||||
|
if (loading) return "Loading ...";
|
||||||
|
if (error) return `Error! ${error.message}`;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div >
|
||||||
|
<h1>About</h1>
|
||||||
|
{data.site_contents.map((site_content: { content: any; }) => (
|
||||||
|
<span dangerouslySetInnerHTML={{ __html: site_content.content }} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
About.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
23
app/components/Info/About/package.json
Normal file
23
app/components/Info/About/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "about",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/components/Info/About/styles.module.css
Normal file
0
app/components/Info/About/styles.module.css
Normal file
39
app/components/Info/ContactUs/index.tsx
Normal file
39
app/components/Info/ContactUs/index.tsx
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import TypoGraphy from '@mui/material/Typography';
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css';
|
||||||
|
import constants from '@/app/lib/constants'
|
||||||
|
|
||||||
|
import { useQuery, useMutation, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export default function ContactUs(props) {
|
||||||
|
|
||||||
|
const GET_SITE_CONTENT = gql`
|
||||||
|
query Get_Site_Content {
|
||||||
|
site_contents(where: {content_id: {_eq: "CONTACTUS"}}, order_by: {content: asc}) {
|
||||||
|
id
|
||||||
|
content_id
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_SITE_CONTENT);
|
||||||
|
if (loading) return "Loading ...";
|
||||||
|
if (error) return `Error! ${error.message}`;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<TypoGraphy paragraph='true' variant="body" color="inherit" >
|
||||||
|
{data.site_contents.map((site_content: { content: any; }) => (
|
||||||
|
<span dangerouslySetInnerHTML={{ __html: site_content.content }} />
|
||||||
|
))}
|
||||||
|
</TypoGraphy>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ContactUs.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
23
app/components/Info/ContactUs/package.json
Normal file
23
app/components/Info/ContactUs/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "contactus",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/components/Info/ContactUs/styles.module.css
Normal file
0
app/components/Info/ContactUs/styles.module.css
Normal file
41
app/components/Info/Copyright/index.tsx
Normal file
41
app/components/Info/Copyright/index.tsx
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import { COMPANY_NAME, COMPANY_URL } from '@/app/lib/constants';
|
||||||
|
import Typography from '@mui/material/Typography';
|
||||||
|
import MuiLink from '@mui/material/Link';
|
||||||
|
import styles from './styles.module.css'
|
||||||
|
import Link from 'next/link'
|
||||||
|
import styled from '@emotion/styled'
|
||||||
|
|
||||||
|
|
||||||
|
export default class Copyright extends Component {
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<CopyStyled>
|
||||||
|
<div className="copyright">© {new Date().getFullYear()} {' '}
|
||||||
|
<Link href={COMPANY_URL}>
|
||||||
|
<a>{COMPANY_NAME}</a>
|
||||||
|
</Link>{' '}
|
||||||
|
<span>All Rights Reserved.</span>
|
||||||
|
</div>
|
||||||
|
</CopyStyled>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const CopyStyled = styled.div`
|
||||||
|
.copyright {
|
||||||
|
background: #4c5c3f;
|
||||||
|
font-size:.80em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color:#FFF;
|
||||||
|
display: block;
|
||||||
|
width:100%;
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color:#FFF;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
23
app/components/Info/Copyright/package.json
Normal file
23
app/components/Info/Copyright/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "copyright",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
7
app/components/Info/Copyright/styles.module.css
Normal file
7
app/components/Info/Copyright/styles.module.css
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.white {
|
||||||
|
color: white;
|
||||||
|
font-size: .5em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
font-family: "hind";
|
||||||
|
}
|
||||||
54
app/components/Info/Disclosure/index.tsx
Normal file
54
app/components/Info/Disclosure/index.tsx
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import TypoGraphy from '@mui/material/Typography';
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css';
|
||||||
|
import constants from '@/app/lib/constants'
|
||||||
|
import {SITE_CONT_TYPE} from '@/app/lib/constants'
|
||||||
|
import { useQuery, useMutation, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export default function Disclosure(props) {
|
||||||
|
|
||||||
|
const GET_SITE_CONTENT = gql`
|
||||||
|
query Get_Site_Content {
|
||||||
|
site_contents(where: {content_id: {_eq: ${SITE_CONT_TYPE.DISCLOSURE}}}, order_by: {content: asc}) {
|
||||||
|
id
|
||||||
|
content_id
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_SITE_CONTENT);
|
||||||
|
if (loading) return "Loading ...";
|
||||||
|
if (error) return `Error! ${error.message}`;
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<TypoGraphy paragraph={true} variant="body1" color="inherit" >
|
||||||
|
{constants.SITE_NAME}, owned by {constants.COMPANY_NAME}, receives compensation through affiliate relationships with merchants listed on this site. Please know that this in no way affects reviews, benchmarks, content, or this site's opinions of products, services, manufacturers, partners, or merchants.
|
||||||
|
</TypoGraphy>
|
||||||
|
<TypoGraphy paragraph={true} variant="body1" color="inherit" >
|
||||||
|
The mission of {constants.SITE_NAME} is to provide the best functionality for this site's users, regardless of any potential affiliate commissions.
|
||||||
|
{constants.SITE_NAME} does not accept donations. Instead, income received from affiliate relationships funds site maintenance and feature development. If you desire to donate to PCPartPicker, I kindly ask that you consider donating to a charitable organization instead. I am particularly fond of the NRA, a non-profit organization that provides safety training to gun owners.
|
||||||
|
</TypoGraphy>
|
||||||
|
<div>
|
||||||
|
{data.site_contents.map((site_content: { content: any; }) => (
|
||||||
|
<span dangerouslySetInnerHTML={{ __html: site_content.content }} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<TypoGraphy paragraph={true} variant="body1" color="inherit" >
|
||||||
|
Thanks,
|
||||||
|
</TypoGraphy>
|
||||||
|
<TypoGraphy paragraph={true} variant="body1" color="inherit" >
|
||||||
|
{constants.COMPANY_NAME}
|
||||||
|
</TypoGraphy>
|
||||||
|
<TypoGraphy paragraph={true} variant="body1" color="inherit" >
|
||||||
|
{constants.SITE_NAME} is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com.
|
||||||
|
</TypoGraphy>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Disclosure.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
23
app/components/Info/Disclosure/package.json
Normal file
23
app/components/Info/Disclosure/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "disclosure",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/components/Info/Disclosure/styles.module.css
Normal file
0
app/components/Info/Disclosure/styles.module.css
Normal file
34
app/components/Info/Faq/index.tsx
Normal file
34
app/components/Info/Faq/index.tsx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import styles from './styles.module.css'
|
||||||
|
import { useQuery, useMutation, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export default function Faq(props) {
|
||||||
|
|
||||||
|
const GET_SITE_CONTENT_FAQ = gql`
|
||||||
|
query Get_Site_Content_Faq {
|
||||||
|
site_contents(where: {content_id: {_eq: "FAQ"}}, order_by: {content: asc}) {
|
||||||
|
id
|
||||||
|
content_id
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_SITE_CONTENT_FAQ);
|
||||||
|
if(loading) return "Loading ...";
|
||||||
|
if(error) return `Error! ${error.message}` ;
|
||||||
|
|
||||||
|
return (
|
||||||
|
|
||||||
|
<div className="faq container">
|
||||||
|
{props.children}
|
||||||
|
<h3>Frequently Asked Questions</h3>
|
||||||
|
<div>
|
||||||
|
{data.site_contents.map((site_content: { content: any; }) => (
|
||||||
|
<span dangerouslySetInnerHTML={{__html: site_content.content}}/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
23
app/components/Info/Faq/package.json
Normal file
23
app/components/Info/Faq/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "faq",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/components/Info/Faq/styles.module.css
Normal file
0
app/components/Info/Faq/styles.module.css
Normal file
39
app/components/Info/PIP/index.tsx
Normal file
39
app/components/Info/PIP/index.tsx
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import Head from 'next/head';
|
||||||
|
import TypoGraphy from '@mui/material/Typography';
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css';
|
||||||
|
import constants from '@/app/lib/constants'
|
||||||
|
import { useQuery, useMutation, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export default function PIP(props) {
|
||||||
|
const GET_SITE_CONTENT = gql`
|
||||||
|
query Get_Site_Content {
|
||||||
|
site_contents(where: {content_id: {_eq: "PIP"}}, order_by: {content: asc}) {
|
||||||
|
id
|
||||||
|
content_id
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_SITE_CONTENT);
|
||||||
|
if (loading) return "Loading ...";
|
||||||
|
if (error) return `Error! ${error.message}`;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Head title="Personal Information" />
|
||||||
|
<TypoGraphy paragraph='true' variant="body" color="inherit" >
|
||||||
|
|
||||||
|
{data.site_contents.map((site_content: { content: any; }) => (
|
||||||
|
<span dangerouslySetInnerHTML={{ __html: site_content.content }} />
|
||||||
|
))}
|
||||||
|
</TypoGraphy>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
PIP.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
23
app/components/Info/PIP/package.json
Normal file
23
app/components/Info/PIP/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "pip",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/components/Info/PIP/styles.module.css
Normal file
0
app/components/Info/PIP/styles.module.css
Normal file
35
app/components/Info/PrivacyPolicy/index.tsx
Normal file
35
app/components/Info/PrivacyPolicy/index.tsx
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import TypoGraphy from '@mui/material/Typography';
|
||||||
|
import Head from 'next/head';
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import styles from './styles.module.css';
|
||||||
|
import constants from '@/app/lib/constants'
|
||||||
|
import { useQuery, useMutation, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export default function PrivacyPolicy(props) {
|
||||||
|
const GET_SITE_CONTENT = gql`
|
||||||
|
query Get_Site_Content {
|
||||||
|
site_contents(where: {content_id: {_eq: "PP"}}, order_by: {content: asc}) {
|
||||||
|
id
|
||||||
|
content_id
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_SITE_CONTENT);
|
||||||
|
if (loading) return "Loading ...";
|
||||||
|
if (error) return `Error! ${error.message}`;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Head title="Privacy Policy" />
|
||||||
|
<TypoGraphy paragraph='true' variant="body" color="inherit" >
|
||||||
|
{data.site_contents.map((site_content: { content: any; }) => (
|
||||||
|
<span dangerouslySetInnerHTML={{ __html: site_content.content }} />
|
||||||
|
))}
|
||||||
|
</TypoGraphy>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
23
app/components/Info/PrivacyPolicy/package.json
Normal file
23
app/components/Info/PrivacyPolicy/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "privacypolicy",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
0
app/components/Info/PrivacyPolicy/styles.module.css
Normal file
0
app/components/Info/PrivacyPolicy/styles.module.css
Normal file
38
app/components/Info/TermsOfService/index.tsx
Normal file
38
app/components/Info/TermsOfService/index.tsx
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import React, { Component } from 'react'
|
||||||
|
import Head from 'next/head';
|
||||||
|
import TypoGraphy from '@mui/material/Typography';
|
||||||
|
import PropTypes from 'prop-types' //ES6
|
||||||
|
import constants from '@/app/lib/constants'
|
||||||
|
import { useQuery, useMutation, gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export default function TermsOfService(props) {
|
||||||
|
const GET_SITE_CONTENT = gql`
|
||||||
|
query Get_Site_Content {
|
||||||
|
site_contents(where: {content_id: {_eq: "TOS"}}, order_by: {content: asc}) {
|
||||||
|
id
|
||||||
|
content_id
|
||||||
|
content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_SITE_CONTENT);
|
||||||
|
if (loading) return "Loading ...";
|
||||||
|
if (error) return `Error! ${error.message}`;
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Head title="Terms Of Service" />
|
||||||
|
<TypoGraphy paragraph='true' variant="body" color="inherit" >
|
||||||
|
<div>
|
||||||
|
{data.site_contents.map((site_content: { content: any; }) => (
|
||||||
|
<span dangerouslySetInnerHTML={{ __html: site_content.content }} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</TypoGraphy>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
TermsOfService.propTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
23
app/components/Info/TermsOfService/package.json
Normal file
23
app/components/Info/TermsOfService/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "termsofservice",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index.tsx",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
132
app/components/SignIn/index.tsx
Normal file
132
app/components/SignIn/index.tsx
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import Avatar from '@mui/material/Avatar';
|
||||||
|
import Button from '@mui/material/Button';
|
||||||
|
import CssBaseline from '@mui/material/CssBaseline';
|
||||||
|
import TextField from '@mui/material/TextField';
|
||||||
|
import FormControlLabel from '@mui/material/FormControlLabel';
|
||||||
|
import Checkbox from '@mui/material/Checkbox';
|
||||||
|
import Link from '@mui/material/Link';
|
||||||
|
import Paper from '@mui/material/Paper';
|
||||||
|
import Box from '@mui/material/Box';
|
||||||
|
import Grid from '@mui/material/Grid';
|
||||||
|
import LockOutlinedIcon from '@material-ui/icons/LockOutlined';
|
||||||
|
import Typography from '@mui/material/Typography';
|
||||||
|
import { makeStyles } from '@mui/material/styles';
|
||||||
|
import styles from "./styles.module.css";
|
||||||
|
|
||||||
|
function Copyright() {
|
||||||
|
return (
|
||||||
|
<Typography variant="body2" color="textSecondary" align="center">
|
||||||
|
{'Copyright © '}
|
||||||
|
<Link color="inherit" href="https://material-ui.com/">
|
||||||
|
Your Website
|
||||||
|
</Link>{' '}
|
||||||
|
{new Date().getFullYear()}
|
||||||
|
{'.'}
|
||||||
|
</Typography>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const useStyles = makeStyles((theme) => ({
|
||||||
|
root: {
|
||||||
|
height: '100vh',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
backgroundImage: 'url(https://source.unsplash.com/random)',
|
||||||
|
backgroundRepeat: 'no-repeat',
|
||||||
|
backgroundColor:
|
||||||
|
theme.palette.type === 'light' ? theme.palette.grey[50] : theme.palette.grey[900],
|
||||||
|
backgroundSize: 'cover',
|
||||||
|
backgroundPosition: 'center',
|
||||||
|
},
|
||||||
|
paper: {
|
||||||
|
margin: theme.spacing(8, 4),
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
alignItems: 'center',
|
||||||
|
},
|
||||||
|
avatar: {
|
||||||
|
margin: theme.spacing(1),
|
||||||
|
backgroundColor: theme.palette.secondary.main,
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
width: '100%', // Fix IE 11 issue.
|
||||||
|
marginTop: theme.spacing(1),
|
||||||
|
},
|
||||||
|
submit: {
|
||||||
|
margin: theme.spacing(3, 0, 2),
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
export default function SignInSide() {
|
||||||
|
const classes = useStyles();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Grid container component="main" className={classes.root}>
|
||||||
|
<CssBaseline />
|
||||||
|
<Grid item xs={false} sm={4} md={7} className={classes.image} />
|
||||||
|
<Grid item xs={12} sm={8} md={5} component={Paper} elevation={6} square>
|
||||||
|
<div className={classes.paper}>
|
||||||
|
<Avatar className={classes.avatar}>
|
||||||
|
<LockOutlinedIcon />
|
||||||
|
</Avatar>
|
||||||
|
<Typography component="h1" variant="h5">
|
||||||
|
Sign in
|
||||||
|
</Typography>
|
||||||
|
<form className={classes.form} noValidate>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
margin="normal"
|
||||||
|
required
|
||||||
|
fullWidth
|
||||||
|
id="email"
|
||||||
|
label="Email Address"
|
||||||
|
name="email"
|
||||||
|
autoComplete="email"
|
||||||
|
autoFocus
|
||||||
|
/>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
margin="normal"
|
||||||
|
required
|
||||||
|
fullWidth
|
||||||
|
name="password"
|
||||||
|
label="Password"
|
||||||
|
type="password"
|
||||||
|
id="password"
|
||||||
|
autoComplete="current-password"
|
||||||
|
/>
|
||||||
|
<FormControlLabel
|
||||||
|
control={<Checkbox value="remember" color="primary" />}
|
||||||
|
label="Remember me"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
type="submit"
|
||||||
|
fullWidth
|
||||||
|
variant="contained"
|
||||||
|
color="primary"
|
||||||
|
className={classes.submit}
|
||||||
|
>
|
||||||
|
Sign In
|
||||||
|
</Button>
|
||||||
|
<Grid container>
|
||||||
|
<Grid item xs>
|
||||||
|
<Link href="#" variant="body2">
|
||||||
|
Forgot password?
|
||||||
|
</Link>
|
||||||
|
</Grid>
|
||||||
|
<Grid item>
|
||||||
|
<Link href="#" variant="body2">
|
||||||
|
{"Don't have an account? Sign Up"}
|
||||||
|
</Link>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
<Box mt={5}>
|
||||||
|
<Copyright />
|
||||||
|
</Box>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
);
|
||||||
|
}
|
||||||
23
app/components/SignIn/package.json
Normal file
23
app/components/SignIn/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "signin",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./index",
|
||||||
|
"author": {
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Don Strawsburg",
|
||||||
|
"email": "don@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sean Strawsburg",
|
||||||
|
"email": "sean@goforward.group",
|
||||||
|
"url": "https://goforward.group/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
1
app/components/SignIn/styles.module.css
Normal file
1
app/components/SignIn/styles.module.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
5
app/lib/client.ts
Normal file
5
app/lib/client.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { PrismaClient } from '@prisma/client'
|
||||||
|
|
||||||
|
let prisma = new PrismaClient()
|
||||||
|
|
||||||
|
export default prisma
|
||||||
28
app/lib/constants.ts
Normal file
28
app/lib/constants.ts
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
export const APP_NAME = "The Gun Bag - Gun Builder";
|
||||||
|
export const COMPANY_NAME = "DarkShark Technologies, LLC";
|
||||||
|
export const COMPANY_URL = "https://goforward.group";
|
||||||
|
export const AUTHOR = "DarkShark Technologies, LLC";
|
||||||
|
export const META_KEYWORDS = "Pew Pew";
|
||||||
|
export const META_DESCRIPTION = "Pow Pow";
|
||||||
|
export default {
|
||||||
|
APP_NAME: 'The Gun Bag - Gun Builder',
|
||||||
|
SITE_NAME: 'Gun Builder',
|
||||||
|
COMPANY_NAME: 'DarkShark Technologies, LLC',
|
||||||
|
COMPANY_URL: 'https://goforward.group',
|
||||||
|
AUTHOR: 'DarkShark Technologies, LLC',
|
||||||
|
META_KEYWORDS: 'Pew Pew',
|
||||||
|
META_DESCRIPTION: 'Pow Pow',
|
||||||
|
PJAM_RAINIER: 'https://api.pepperjamnetwork.com/20120402/publisher/creative/product?apiKey=17c11367569cc10dce51e6a5900d0c7c8b390c9cb2d2cecc25b3ed53a3b8649b&format=json&programIds=8713',
|
||||||
|
PJAM_BARRETTA: 'https://api.pepperjamnetwork.com/20120402/publisher/creative/product?apiKey=17c11367569cc10dce51e6a5900d0c7c8b390c9cb2d2cecc25b3ed53a3b8649b&format=json&programIds=8342'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export enum SITE_CONT_TYPE {
|
||||||
|
CONTACTUS = "CONTACTUS",
|
||||||
|
PRIVACYPOLICY = "PP",
|
||||||
|
PERSONALINFOPOLICY = "PIP",
|
||||||
|
FAQ = "FAQ",
|
||||||
|
TERMSOFSERVICE = "TOS",
|
||||||
|
ABOUTUS="ABOUTUS",
|
||||||
|
DISCLOSURE="DISCLOSURE"
|
||||||
|
}
|
||||||
38
app/lib/linkList/infoLinks.js
Normal file
38
app/lib/linkList/infoLinks.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
export const infoLinks = {
|
||||||
|
ABOUT: {
|
||||||
|
URL: "/info/about",
|
||||||
|
TEXT: "About Us",
|
||||||
|
TIP: "About Us"
|
||||||
|
},
|
||||||
|
TOS: {
|
||||||
|
URL: "/info/tos",
|
||||||
|
TEXT: "Terms Of Service",
|
||||||
|
TIP: "Terms Of Service"
|
||||||
|
},
|
||||||
|
PRIVACYPOLICY: {
|
||||||
|
URL: "/info/privacypolicy",
|
||||||
|
TEXT: "Privacy Policy",
|
||||||
|
TIP: "Privacy Policy"
|
||||||
|
},
|
||||||
|
FAQ: {
|
||||||
|
URL: "/info/faq",
|
||||||
|
TEXT: "FAQ",
|
||||||
|
TIP: "FAQ"
|
||||||
|
},
|
||||||
|
DISCLOSURE: {
|
||||||
|
URL: "/info/disclosure",
|
||||||
|
TEXT: "Disclosure",
|
||||||
|
TIP: "Disclosure",
|
||||||
|
},
|
||||||
|
PIP: {
|
||||||
|
URL: "/info/pip",
|
||||||
|
TEXT: "Personal Information Policy",
|
||||||
|
TIP: "Personal Information Policy"
|
||||||
|
},
|
||||||
|
CONTACTUS: {
|
||||||
|
URL: "/info/contactus",
|
||||||
|
TEXT: "Contact Us",
|
||||||
|
TIP: "Contact Us"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export default infoLinks;
|
||||||
86
app/lib/linkList/sectionLinks.js
Normal file
86
app/lib/linkList/sectionLinks.js
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
export const sectionLinks = {
|
||||||
|
UPPERS: {
|
||||||
|
URL: "/products/rifleuppers",
|
||||||
|
TEXT: "Rifle Uppers",
|
||||||
|
TIP: "Rifle Uppers"
|
||||||
|
},
|
||||||
|
LOWERS: {
|
||||||
|
URL: "/products/lowers",
|
||||||
|
TEXT: "Lowers",
|
||||||
|
TIP: "Lowers"
|
||||||
|
},
|
||||||
|
PARTSLIST: {
|
||||||
|
URL: "/products/partslist",
|
||||||
|
TEXT: "Parts List",
|
||||||
|
TIP: "Parts List"
|
||||||
|
},
|
||||||
|
OPTICS: {
|
||||||
|
URL: "/products/optics",
|
||||||
|
TEXT: "Optics",
|
||||||
|
TIP: "Optics"
|
||||||
|
},
|
||||||
|
BARRELS: {
|
||||||
|
URL: "/products/barrels",
|
||||||
|
TEXT: "Barrels",
|
||||||
|
TIP: "Barrels"
|
||||||
|
},
|
||||||
|
ACCESSORIES: {
|
||||||
|
URL: "/products/accessories",
|
||||||
|
TEXT: "Accessories",
|
||||||
|
TIP: "Accessories"
|
||||||
|
},
|
||||||
|
BUILDGUIDES: {
|
||||||
|
URL: "/knowledge/guides",
|
||||||
|
TEXT: "Guides",
|
||||||
|
TIP: "Guides",
|
||||||
|
},
|
||||||
|
BLOG: {
|
||||||
|
URL: "/blog",
|
||||||
|
TEXT: "Blog",
|
||||||
|
TIP: "Blog"
|
||||||
|
},
|
||||||
|
PRICEDROPS: {
|
||||||
|
URL: "/knowledge/pricedrops",
|
||||||
|
TEXT: "Price Drops",
|
||||||
|
TIP: "Price Drops"
|
||||||
|
},
|
||||||
|
BUILDS: {
|
||||||
|
URL: "/builds",
|
||||||
|
TEXT: "Builds",
|
||||||
|
TIP: "Builds"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export const armoryLinks = [
|
||||||
|
{UPPERS: {
|
||||||
|
URL: "/products/rifleuppers",
|
||||||
|
TEXT: "Rifle Uppers",
|
||||||
|
TIP: "Rifle Uppers"
|
||||||
|
}},
|
||||||
|
{LOWERS: {
|
||||||
|
URL: "/products/lowers",
|
||||||
|
TEXT: "Lowers",
|
||||||
|
TIP: "Lowers"
|
||||||
|
}},
|
||||||
|
{PARTSLIST: {
|
||||||
|
URL: "/products/partslist",
|
||||||
|
TEXT: "Parts List",
|
||||||
|
TIP: "Parts List"
|
||||||
|
}},
|
||||||
|
{OPTICS: {
|
||||||
|
URL: "/products/optics",
|
||||||
|
TEXT: "Optics",
|
||||||
|
TIP: "Optics"
|
||||||
|
}},
|
||||||
|
{BARRELS: {
|
||||||
|
URL: "/products/barrels",
|
||||||
|
TEXT: "Barrels",
|
||||||
|
TIP: "Barrels"
|
||||||
|
}},
|
||||||
|
{ACCESSORIES: {
|
||||||
|
URL: "/products/accessories",
|
||||||
|
TEXT: "Accessories",
|
||||||
|
TIP: "Accessories"
|
||||||
|
}}];
|
||||||
|
|
||||||
|
export default sectionLinks;
|
||||||
17
app/lib/script.ts
Normal file
17
app/lib/script.ts
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import { PrismaClient } from '@prisma/client'
|
||||||
|
|
||||||
|
const prisma = new PrismaClient()
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
// ... you will write your Prisma Client queries here
|
||||||
|
}
|
||||||
|
|
||||||
|
main()
|
||||||
|
.then(async () => {
|
||||||
|
await prisma.$disconnect()
|
||||||
|
})
|
||||||
|
.catch(async (e) => {
|
||||||
|
console.error(e)
|
||||||
|
await prisma.$disconnect()
|
||||||
|
process.exit(1)
|
||||||
|
})
|
||||||
@@ -20,7 +20,7 @@ export default function Home() {
|
|||||||
</code>
|
</code>
|
||||||
.
|
.
|
||||||
</li>
|
</li>
|
||||||
<li>Save and see your changes instantly.</li>
|
<li>Save and see your changes instantly!</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<div className="flex gap-4 items-center flex-col sm:flex-row">
|
<div className="flex gap-4 items-center flex-col sm:flex-row">
|
||||||
|
|||||||
1782
package-lock.json
generated
1782
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@@ -9,18 +9,30 @@
|
|||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "19.0.0-rc-66855b96-20241106",
|
"@emotion/react": "^11.13.3",
|
||||||
"react-dom": "19.0.0-rc-66855b96-20241106",
|
"@emotion/styled": "^11.13.0",
|
||||||
"next": "15.0.3"
|
"@mui/icons-material": "^6.1.7",
|
||||||
|
"@mui/joy": "^5.0.0-beta.48",
|
||||||
|
"@mui/material": "^6.1.7",
|
||||||
|
"@mui/styles": "^6.1.7",
|
||||||
|
"@mui/system": "^6.1.7",
|
||||||
|
"@mui/x-data-grid": "^7.22.2",
|
||||||
|
"@prisma/client": "^5.22.0",
|
||||||
|
"fontsource-roboto": "^4.0.0",
|
||||||
|
"next": "15.0.3",
|
||||||
|
"react": "18.2.0",
|
||||||
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5",
|
"@types/node": "^20.17.6",
|
||||||
"@types/node": "^20",
|
|
||||||
"@types/react": "^18",
|
"@types/react": "^18",
|
||||||
"@types/react-dom": "^18",
|
"@types/react-dom": "^18",
|
||||||
"postcss": "^8",
|
|
||||||
"tailwindcss": "^3.4.1",
|
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "15.0.3"
|
"eslint-config-next": "15.0.3",
|
||||||
|
"postcss": "^8",
|
||||||
|
"prisma": "^5.22.0",
|
||||||
|
"tailwindcss": "^3.4.1",
|
||||||
|
"tsx": "^4.19.2",
|
||||||
|
"typescript": "^5.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
122
prisma/schema.prisma
Normal file
122
prisma/schema.prisma
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
generator client {
|
||||||
|
provider = "prisma-client-js"
|
||||||
|
}
|
||||||
|
|
||||||
|
datasource db {
|
||||||
|
provider = "postgresql"
|
||||||
|
url = env("DATABASE_URL")
|
||||||
|
}
|
||||||
|
|
||||||
|
model Post {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime
|
||||||
|
title String?
|
||||||
|
content String?
|
||||||
|
published Boolean @default(false)
|
||||||
|
authorId Int
|
||||||
|
User User @relation(fields: [authorId], references: [id])
|
||||||
|
|
||||||
|
@@index([id])
|
||||||
|
}
|
||||||
|
|
||||||
|
model Profile {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
bio String?
|
||||||
|
userId Int @unique
|
||||||
|
User User @relation(fields: [userId], references: [id])
|
||||||
|
|
||||||
|
@@index([id])
|
||||||
|
}
|
||||||
|
|
||||||
|
model User {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
email String @unique
|
||||||
|
name String?
|
||||||
|
Post Post[]
|
||||||
|
Profile Profile?
|
||||||
|
|
||||||
|
@@index([id])
|
||||||
|
}
|
||||||
|
|
||||||
|
model lipseycatalog {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
itemno String @db.VarChar(20)
|
||||||
|
description1 String?
|
||||||
|
description2 String?
|
||||||
|
upc String? @db.VarChar(20)
|
||||||
|
manufacturermodelno String? @db.VarChar(30)
|
||||||
|
msrp Float?
|
||||||
|
model String?
|
||||||
|
calibergauge String?
|
||||||
|
manufacturer String?
|
||||||
|
type String?
|
||||||
|
action String?
|
||||||
|
barrellength String?
|
||||||
|
capacity String?
|
||||||
|
finish String?
|
||||||
|
overalllength String?
|
||||||
|
receiver String?
|
||||||
|
safety String?
|
||||||
|
sights String?
|
||||||
|
stockframegrips String?
|
||||||
|
magazine String?
|
||||||
|
weight String?
|
||||||
|
imagename String?
|
||||||
|
chamber String?
|
||||||
|
drilledandtapped String?
|
||||||
|
rateoftwist String?
|
||||||
|
itemtype String?
|
||||||
|
additionalfeature1 String?
|
||||||
|
additionalfeature2 String?
|
||||||
|
additionalfeature3 String?
|
||||||
|
shippingweight String?
|
||||||
|
boundbookmanufacturer String?
|
||||||
|
boundbookmodel String?
|
||||||
|
boundbooktype String?
|
||||||
|
nfathreadpattern String?
|
||||||
|
nfaattachmentmethod String?
|
||||||
|
nfabaffletype String?
|
||||||
|
silencercanbedisassembled String?
|
||||||
|
silencerconstructionmaterial String?
|
||||||
|
nfadbreduction String?
|
||||||
|
silenceroutsidediameter String?
|
||||||
|
nfaform3caliber String?
|
||||||
|
opticmagnification String?
|
||||||
|
maintubesize String?
|
||||||
|
adjustableobjective String?
|
||||||
|
objectivesize String?
|
||||||
|
opticadjustments String?
|
||||||
|
illuminatedreticle String?
|
||||||
|
reticle String?
|
||||||
|
exclusive String?
|
||||||
|
quantity String? @db.VarChar(10)
|
||||||
|
allocated String?
|
||||||
|
onsale String?
|
||||||
|
price Float?
|
||||||
|
currentprice Float?
|
||||||
|
retailmap Float?
|
||||||
|
fflrequired String?
|
||||||
|
sotrequired String?
|
||||||
|
exclusivetype String?
|
||||||
|
scopecoverincluded String?
|
||||||
|
special String?
|
||||||
|
sightstype String?
|
||||||
|
case String?
|
||||||
|
choke String?
|
||||||
|
dbreduction String?
|
||||||
|
family String?
|
||||||
|
finishtype String?
|
||||||
|
frame String?
|
||||||
|
griptype String? @db.VarChar(30)
|
||||||
|
handgunslidematerial String?
|
||||||
|
countryoforigin String? @db.VarChar(4)
|
||||||
|
itemlength String?
|
||||||
|
itemwidth String?
|
||||||
|
itemheight String?
|
||||||
|
packagelength Float?
|
||||||
|
packagewidth Float?
|
||||||
|
packageheight Float?
|
||||||
|
itemgroup String? @db.VarChar(40)
|
||||||
|
createdon DateTime? @db.Timestamp(6)
|
||||||
|
}
|
||||||
@@ -19,8 +19,30 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"],
|
||||||
}
|
"@/components/*": [
|
||||||
|
"./app/components/*"
|
||||||
|
],
|
||||||
|
"@/layouts/*": [
|
||||||
|
"./app/components/layouts/*"
|
||||||
|
],
|
||||||
|
"@/fragments/*": [
|
||||||
|
"./app/Fragments/*"
|
||||||
|
],
|
||||||
|
"@/lib/*": [
|
||||||
|
"./app/lib/*"
|
||||||
|
],
|
||||||
|
"@/scss/*": [
|
||||||
|
"./scss/*"
|
||||||
|
],
|
||||||
|
"@/admin/*": [
|
||||||
|
"./app/components/Admin/*"
|
||||||
|
],
|
||||||
|
"@/products/*": [
|
||||||
|
"./app/components/Products/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
|||||||
Reference in New Issue
Block a user