Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ GoogleClientId=
AuthProductionBaseURL=https:/web-jam-back-dev.herokuapp.com
userRoles={"roles" : ["Rolename1", "Rolename2"]}
AllowUrl={"urls": ["http://something.com", "https://something.com", "http://localhost:7000", "http://localhost:9000"]}
BUILD_BRANCH=master
BUILD_BRANCH=main
HashString=
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appersonautomotive.com",
"version": "3.0.1",
"version": "3.0.3",
"description": "appersonautomotive.com",
"main": "dist/index.html",
"repository": {
Expand All @@ -14,7 +14,6 @@
"files": [
"vite.config.ts",
"src/",
"static/",
"public/"
],
"keywords": [
Expand All @@ -31,7 +30,7 @@
"build": "vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit",
"test:stylelint": "stylelint \"static/**/*.scss\"",
"test:stylelint": "stylelint \"src/**/*.scss\"",
"lint:fix": "eslint . --fix",
"test:lint-fix": "npm run test:stylelint && npm run lint:fix",
"test:lint": "npm run test:stylelint && eslint .",
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
5 changes: 1 addition & 4 deletions src/App/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import React from 'react';
const footerLinks = () => (
<>
<div style={{ textAlign: 'center', padding: '6px' }} className="footerLinks">
<a aria-label="Facebook" href="https://www.facebook.com/pages/Apperson-Automotive/361511727202422">
<i style={{ color: '#45c9ff' }} className="fab fa-facebook-square fa-2x" aria-hidden="true" />
</a>
<a href="https://www.yellowpages.com/salem-va/mip/apperson-automotive-482421530" style={{ marginLeft: '40px' }}>
<a href="https://www.yellowpages.com/salem-va/mip/apperson-automotive-482421530">
<img
style={{ marginBottom: '15px', verticalAlign: 'middle' }}
src="https://insightmg.com/wp-content/uploads/2015/12/YP_Insight-Marketing-Group_Marketing-for-Medical-Practices.png"
Expand Down
5 changes: 4 additions & 1 deletion src/components/pic-slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ import Caption from './PicSlider/caption';

const settings = {
autoplay: true,
autoplaySpeed: 3000,
autoplaySpeed: 5000,
infinite: true,
speed: 1000,
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
fade: true,
// even out the first slide's interval (react-slick fade+autoplay quirk
// makes the first photo otherwise linger longer than the rest)
waitForAnimate: false,
};
export interface IpicData {
_id: string, url: string, title: string, comments: string
Expand Down
2 changes: 1 addition & 1 deletion src/containers/AutoMaintenance/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class AutoMaintenance extends Component<AutoMaintenanceProps> {
coupon() { // eslint-disable-line class-methods-use-this
return (
<div style={{ width: '295px', margin: 'auto' }}>
<img id="coupon" alt="graphic coupon" src="../static/imgs/banner5.png" />
<img id="coupon" alt="graphic coupon" src="/imgs/banner5.png" />
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Contact/NarrowMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const NarrowMap = () => (
<br />
Cash and Personal Checks
<br />
<img alt="Accepted Credit Cards" src="/static/imgs/creditCards.gif" />
<img alt="Accepted Credit Cards" src="/imgs/creditCards.gif" />
<br />
Fleet Maintenance Cards
<br />
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Contact/WideMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const WideMap = () => (
<br />
Cash and Personal Checks
<br />
<img alt="Accepted Credit Cards" src="/static/imgs/creditCards.gif" />
<img alt="Accepted Credit Cards" src="/imgs/creditCards.gif" />
<br />
Fleet Maintenance Cards
<br />
Expand Down
2 changes: 1 addition & 1 deletion src/containers/GeneralAutoRepair/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class General extends Component<GeneralAutoRepairProps> {
coupon() { // eslint-disable-line class-methods-use-this
return (
<div style={{ width: '295px', margin: 'auto' }}>
<img id="coupon" alt="graphic coupon" src="../static/imgs/banner5.png" />
<img id="coupon" alt="graphic coupon" src="/imgs/banner5.png" />
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Homepage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Homepage extends Component<HomepageProps, unknown> {
coupon() { // eslint-disable-line class-methods-use-this
return (
<div style={{ width: '295px', margin: 'auto' }}>
<img id="coupon" alt="graphic coupon" src="../static/imgs/banner5.png" />
<img id="coupon" alt="graphic coupon" src="/imgs/banner5.png" />
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/MajorAutoRepair/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Major extends React.Component<MajorAutoProps, unknown> {
coupon() { // eslint-disable-line class-methods-use-this
return (
<div style={{ width: '295px', margin: 'auto' }}>
<img id="coupon" alt="graphic coupon" src="../static/imgs/banner5.png" />
<img id="coupon" alt="graphic coupon" src="/imgs/banner5.png" />
</div>
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/slides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ export default [
_id: '2',
url: 'https://dl.dropboxusercontent.com/scl/fi/q83bcnvyyla2zavixfc5m/2-Jimmy-sized.jpg?rlkey=wecrucndun8vtj9gxcblo42l1&dl=0',
},
{ _id: '3', url: '../../static/imgs/photo3.png' },
{ _id: '4', url: '../../static/imgs/photo4.png' },
{ _id: '9', url: '../../static/imgs/photo9.png' },
{ _id: '3', url: '/imgs/photo3.png' },
{ _id: '4', url: '/imgs/photo4.png' },
{ _id: '9', url: '/imgs/photo9.png' },
{
_id: '10',
url: 'https://dl.dropboxusercontent.com/scl/fi/qmy8rex28nlhgdv1qblqo/5-red-truck-lifted-sized.jpg?rlkey=j10z4papyvkcwc5tt8vz3hyiv&dl=0',
Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { App } from './App';
import '../static/styles.scss';
import './styles/styles.scss';

const root = createRoot(document.getElementById('root') as HTMLElement);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion static/styles.scss → src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ tbody.regformtbody td {
color: white;
font-size: 19pt;
font-weight: 500;
font-family: 'TrajanProRegular', Times, 'Times New Roman', serif;
font-family: 'Habibi', sans-serif;
}

.header-text-card {
Expand Down
Binary file removed static/favicon.ico
Binary file not shown.
19 changes: 4 additions & 15 deletions test/App/__snapshots__/App.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ exports[`App component > renders the component 1`] = `

<img
class="slide-images"
src="../../static/imgs/photo3.png"
src="/imgs/photo3.png"
/>

</div>
Expand All @@ -277,7 +277,7 @@ exports[`App component > renders the component 1`] = `

<img
class="slide-images"
src="../../static/imgs/photo4.png"
src="/imgs/photo4.png"
/>

</div>
Expand All @@ -298,7 +298,7 @@ exports[`App component > renders the component 1`] = `

<img
class="slide-images"
src="../../static/imgs/photo9.png"
src="/imgs/photo9.png"
/>

</div>
Expand Down Expand Up @@ -650,7 +650,7 @@ exports[`App component > renders the component 1`] = `
<img
alt="graphic coupon"
id="coupon"
src="../static/imgs/banner5.png"
src="/imgs/banner5.png"
/>
</div>
</div>
Expand All @@ -666,19 +666,8 @@ exports[`App component > renders the component 1`] = `
class="footerLinks"
style="text-align: center; padding: 6px;"
>
<a
aria-label="Facebook"
href="https://www.facebook.com/pages/Apperson-Automotive/361511727202422"
>
<i
aria-hidden="true"
class="fab fa-facebook-square fa-2x"
style="color: rgb(69, 201, 255);"
/>
</a>
<a
href="https://www.yellowpages.com/salem-va/mip/apperson-automotive-482421530"
style="margin-left: 40px;"
>
<img
alt="yellowpages"
Expand Down
22 changes: 0 additions & 22 deletions test/App/__snapshots__/AppTemplate.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,8 @@ exports[`AppTemplate > calls the mobile menu 1`] = `
class="footerLinks"
style="text-align: center; padding: 6px;"
>
<a
aria-label="Facebook"
href="https://www.facebook.com/pages/Apperson-Automotive/361511727202422"
>
<i
aria-hidden="true"
class="fab fa-facebook-square fa-2x"
style="color: rgb(69, 201, 255);"
/>
</a>
<a
href="https://www.yellowpages.com/salem-va/mip/apperson-automotive-482421530"
style="margin-left: 40px;"
>
<img
alt="yellowpages"
Expand Down Expand Up @@ -469,19 +458,8 @@ exports[`AppTemplate > renders the component 1`] = `
class="footerLinks"
style="text-align: center; padding: 6px;"
>
<a
aria-label="Facebook"
href="https://www.facebook.com/pages/Apperson-Automotive/361511727202422"
>
<i
aria-hidden="true"
class="fab fa-facebook-square fa-2x"
style="color: rgb(69, 201, 255);"
/>
</a>
<a
href="https://www.yellowpages.com/salem-va/mip/apperson-automotive-482421530"
style="margin-left: 40px;"
>
<img
alt="yellowpages"
Expand Down
11 changes: 0 additions & 11 deletions test/App/__snapshots__/Footer.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,8 @@ exports[`Footer > renders component 1`] = `
class="footerLinks"
style="text-align: center; padding: 6px;"
>
<a
aria-label="Facebook"
href="https://www.facebook.com/pages/Apperson-Automotive/361511727202422"
>
<i
aria-hidden="true"
class="fab fa-facebook-square fa-2x"
style="color: rgb(69, 201, 255);"
/>
</a>
<a
href="https://www.yellowpages.com/salem-va/mip/apperson-automotive-482421530"
style="margin-left: 40px;"
>
<img
alt="yellowpages"
Expand Down
10 changes: 5 additions & 5 deletions test/components/__snapshots__/picSlider.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports[`picture slider component test > renders the component 1`] = `

<img
class="slide-images"
src="../static/imgs/ohaf/slideshow2.png"
src="/imgs/ohaf/slideshow2.png"
/>

<div
Expand Down Expand Up @@ -57,7 +57,7 @@ exports[`picture slider component test > renders the component 1`] = `

<img
class="slide-images"
src="../static/imgs/ohaf/slideshow3.png"
src="/imgs/ohaf/slideshow3.png"
/>

</div>
Expand All @@ -78,7 +78,7 @@ exports[`picture slider component test > renders the component 1`] = `

<img
class="slide-images"
src="../static/imgs/ohaf/slideshow4.png"
src="/imgs/ohaf/slideshow4.png"
/>

</div>
Expand All @@ -99,7 +99,7 @@ exports[`picture slider component test > renders the component 1`] = `

<img
class="slide-images"
src="../static/imgs/ohaf/slideshow5.png"
src="/imgs/ohaf/slideshow5.png"
/>

</div>
Expand All @@ -120,7 +120,7 @@ exports[`picture slider component test > renders the component 1`] = `

<img
class="slide-images"
src="../static/imgs/ohaf/slideshow6.png"
src="/imgs/ohaf/slideshow6.png"
/>

</div>
Expand Down
10 changes: 5 additions & 5 deletions test/components/picSlider.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { PicSlider } from 'src/components/pic-slider';
describe('picture slider component test', () => {
it('renders the component', () => {
const data:any = [
{ _id: 1, url: '../static/imgs/ohaf/slideshow2.png', comments: 'showCaption' },
{ _id: 2, url: '../static/imgs/ohaf/slideshow3.png' },
{ _id: 3, url: '../static/imgs/ohaf/slideshow4.png' },
{ _id: 4, url: '../static/imgs/ohaf/slideshow5.png' },
{ _id: 5, url: '../static/imgs/ohaf/slideshow6.png' },
{ _id: 1, url: '/imgs/ohaf/slideshow2.png', comments: 'showCaption' },
{ _id: 2, url: '/imgs/ohaf/slideshow3.png' },
{ _id: 3, url: '/imgs/ohaf/slideshow4.png' },
{ _id: 4, url: '/imgs/ohaf/slideshow5.png' },
{ _id: 5, url: '/imgs/ohaf/slideshow6.png' },
];
const result = render(<PicSlider data={data} />).container;
expect(result).toMatchSnapshot();
Expand Down
Loading