Yusmardianto vor 4 Jahren
Ursprung
Commit
ee14cead9c
11 geänderte Dateien mit 71 neuen und 32 gelöschten Zeilen
  1. +3
    -0
      .env.local.bak
  2. +15
    -0
      ecosystem.config.js
  3. +12
    -10
      next.config.js
  4. +0
    -1
      package.json
  5. +5
    -5
      pages/chart.js
  6. +6
    -6
      pages/landing.js
  7. +3
    -3
      pages/service.js
  8. +3
    -3
      pages/simulasicicilan.js
  9. +3
    -3
      pages/testdrive.js
  10. +20
    -0
      server.js
  11. +1
    -1
      yarn.lock

+ 3
- 0
.env.local.bak Datei anzeigen

@@ -0,0 +1,3 @@
API_URL=http://172.16.1.8:14009
API_GRAPHQL_URI=http://172.16.1.8:14009/graphql
BACKEND_SERVER_URI = http://172.16.1.8:14009

+ 15
- 0
ecosystem.config.js Datei anzeigen

@@ -0,0 +1,15 @@
module.exports = {
apps: [
{
name: "tbg-company-ecomm",
script: "server.js",
time: true,
env: {
NODE_ENV: "development",
},
env_production: {
NODE_ENV: "production",
},
},
],
};

+ 12
- 10
next.config.js Datei anzeigen

@@ -3,15 +3,17 @@ const withImages = require("next-images");
const withSass = require("@zeit/next-sass"); const withSass = require("@zeit/next-sass");
const webpack = require("webpack"); const webpack = require("webpack");
const path = require("path"); const path = require("path");
require('dotenv').config()


module.exports = withPlugins([[withSass], [withImages]], {
env: {
API_URL: process.env.API_URL
},
// require("dotenv").config();


webpack(config, options) {
config.resolve.modules.push(path.resolve("./"));
return config;
}
});
module.exports = withPlugins([[withSass], [withImages]], {
// env: {
// API_URL: process.env.API_URL,
// },
trailingSlash: true,
webpack(config, options) {
config.resolve.modules.push(path.resolve("./"));
return config;
},
generateEtags: false,
});

+ 0
- 1
package.json Datei anzeigen

@@ -40,7 +40,6 @@
"apollo-upload-client": "^14.1.3", "apollo-upload-client": "^14.1.3",
"classnames": "2.2.6", "classnames": "2.2.6",
"cross-fetch": "^3.0.6", "cross-fetch": "^3.0.6",
"dotenv": "^8.2.0",
"graphql": "^15.3.0", "graphql": "^15.3.0",
"mdbreact": "^5.0.1", "mdbreact": "^5.0.1",
"moment": "2.25.3", "moment": "2.25.3",


+ 5
- 5
pages/chart.js Datei anzeigen

@@ -12,9 +12,9 @@ import HeaderLinks from "components/Header/HeaderLinks.js";
import Footer from "components/Footer/Footer.js"; import Footer from "components/Footer/Footer.js";
import GridContainer from "components/Grid/GridContainer.js"; import GridContainer from "components/Grid/GridContainer.js";
import GridItem from "components/Grid/GridItem.js"; import GridItem from "components/Grid/GridItem.js";
import SectionChart from "pages-sections/Components-Sections/SectionChart.js";
// import SectionChart from "pages-sections/Components-Sections/SectionChart.js";
import Parallax from "components/Parallax/Parallax.js"; import Parallax from "components/Parallax/Parallax.js";
import styles from "assets/jss/nextjs-material-kit/pages/components.js";
import styles from "../assets/jss/nextjs-material-kit/pages/components.js";


const useStyles = makeStyles(styles); const useStyles = makeStyles(styles);


@@ -24,12 +24,12 @@ export default function Components(props) {
return ( return (
<div> <div>
<Header <Header
rightLinks={<HeaderLinks/>}
rightLinks={<HeaderLinks />}
fixed fixed
color="info" color="info"
changeColorOnScroll={{ changeColorOnScroll={{
height: 400, height: 400,
color: "white"
color: "white",
}} }}
{...rest} {...rest}
/> />
@@ -48,7 +48,7 @@ export default function Components(props) {
</div> </div>
</Parallax> </Parallax>
<div className={classNames(classes.main, classes.mainRaised)}> <div className={classNames(classes.main, classes.mainRaised)}>
<SectionChart />
{/* <SectionChart /> */}
</div> </div>
<Footer /> <Footer />
</div> </div>


+ 6
- 6
pages/landing.js Datei anzeigen

@@ -18,9 +18,9 @@ import Parallax from "components/Parallax/Parallax.js";
import styles from "assets/jss/nextjs-material-kit/pages/landingPage.js"; import styles from "assets/jss/nextjs-material-kit/pages/landingPage.js";


// Sections for this page // Sections for this page
import ProductSection from "pages-sections/LandingPage-Sections/ProductSection.js";
import TeamSection from "pages-sections/LandingPage-Sections/TeamSection.js";
import WorkSection from "pages-sections/LandingPage-Sections/WorkSection.js";
// import ProductSection from "pages-sections/LandingPage-Sections/ProductSection.js";
// import TeamSection from "pages-sections/LandingPage-Sections/TeamSection.js";
// import WorkSection from "pages-sections/LandingPage-Sections/WorkSection.js";


const dashboardRoutes = []; const dashboardRoutes = [];


@@ -39,7 +39,7 @@ export default function LandingPage(props) {
fixed fixed
changeColorOnScroll={{ changeColorOnScroll={{
height: 400, height: 400,
color: "white"
color: "white",
}} }}
{...rest} {...rest}
/> />
@@ -71,9 +71,9 @@ export default function LandingPage(props) {
</Parallax> </Parallax>
<div className={classNames(classes.main, classes.mainRaised)}> <div className={classNames(classes.main, classes.mainRaised)}>
<div className={classes.container}> <div className={classes.container}>
<ProductSection />
{/*<ProductSection />
<TeamSection /> <TeamSection />
<WorkSection />
<WorkSection />*/}
</div> </div>
</div> </div>
<Footer /> <Footer />


+ 3
- 3
pages/service.js Datei anzeigen

@@ -12,7 +12,7 @@ import HeaderLinks from "components/Header/HeaderLinks.js";
import Footer from "components/Footer/Footer.js"; import Footer from "components/Footer/Footer.js";
import GridContainer from "components/Grid/GridContainer.js"; import GridContainer from "components/Grid/GridContainer.js";
import GridItem from "components/Grid/GridItem.js"; import GridItem from "components/Grid/GridItem.js";
import SectionService from "pages-sections/Components-Sections/SectionService.js";
//import SectionService from "pages-sections/Components-Sections/SectionService.js";
import Parallax from "components/Parallax/Parallax.js"; import Parallax from "components/Parallax/Parallax.js";
import styles from "assets/jss/nextjs-material-kit/pages/components.js"; import styles from "assets/jss/nextjs-material-kit/pages/components.js";


@@ -29,7 +29,7 @@ export default function Components(props) {
color="info" color="info"
changeColorOnScroll={{ changeColorOnScroll={{
height: 400, height: 400,
color: "white"
color: "white",
}} }}
{...rest} {...rest}
/> />
@@ -48,7 +48,7 @@ export default function Components(props) {
</div> </div>
</Parallax> </Parallax>
<div className={classNames(classes.main, classes.mainRaised)}> <div className={classNames(classes.main, classes.mainRaised)}>
<SectionService />
{/*<SectionService /> */}
</div> </div>
<Footer /> <Footer />
</div> </div>


+ 3
- 3
pages/simulasicicilan.js Datei anzeigen

@@ -12,7 +12,7 @@ import HeaderLinks from "components/Header/HeaderLinks.js";
import Footer from "components/Footer/Footer.js"; import Footer from "components/Footer/Footer.js";
import GridContainer from "components/Grid/GridContainer.js"; import GridContainer from "components/Grid/GridContainer.js";
import GridItem from "components/Grid/GridItem.js"; import GridItem from "components/Grid/GridItem.js";
import SectionSimulasiCicilan from "pages-sections/Components-Sections/SectionSimulasiCicilan.js";
// import SectionSimulasiCicilan from "pages-sections/Components-Sections/SectionSimulasiCicilan.js";
import Parallax from "components/Parallax/Parallax.js"; import Parallax from "components/Parallax/Parallax.js";
import styles from "assets/jss/nextjs-material-kit/pages/components.js"; import styles from "assets/jss/nextjs-material-kit/pages/components.js";


@@ -29,7 +29,7 @@ export default function Components(props) {
color="info" color="info"
changeColorOnScroll={{ changeColorOnScroll={{
height: 400, height: 400,
color: "white"
color: "white",
}} }}
{...rest} {...rest}
/> />
@@ -48,7 +48,7 @@ export default function Components(props) {
</div> </div>
</Parallax> </Parallax>
<div className={classNames(classes.main, classes.mainRaised)}> <div className={classNames(classes.main, classes.mainRaised)}>
<SectionSimulasiCicilan />
{/*<SectionSimulasiCicilan /> */}
</div> </div>
<Footer /> <Footer />
</div> </div>


+ 3
- 3
pages/testdrive.js Datei anzeigen

@@ -12,7 +12,7 @@ import HeaderLinks from "components/Header/HeaderLinks.js";
import Footer from "components/Footer/Footer.js"; import Footer from "components/Footer/Footer.js";
import GridContainer from "components/Grid/GridContainer.js"; import GridContainer from "components/Grid/GridContainer.js";
import GridItem from "components/Grid/GridItem.js"; import GridItem from "components/Grid/GridItem.js";
import SectionTestDrive from "pages-sections/Components-Sections/SectionTestDrive.js";
// import SectionTestDrive from "pages-sections/Components-Sections/SectionTestDrive.js";
import Parallax from "components/Parallax/Parallax.js"; import Parallax from "components/Parallax/Parallax.js";
import styles from "assets/jss/nextjs-material-kit/pages/components.js"; import styles from "assets/jss/nextjs-material-kit/pages/components.js";


@@ -29,7 +29,7 @@ export default function Components(props) {
color="info" color="info"
changeColorOnScroll={{ changeColorOnScroll={{
height: 400, height: 400,
color: "white"
color: "white",
}} }}
{...rest} {...rest}
/> />
@@ -48,7 +48,7 @@ export default function Components(props) {
</div> </div>
</Parallax> </Parallax>
<div className={classNames(classes.main, classes.mainRaised)}> <div className={classNames(classes.main, classes.mainRaised)}>
<SectionTestDrive />
{/*<SectionTestDrive /> */}
</div> </div>
<Footer /> <Footer />
</div> </div>


+ 20
- 0
server.js Datei anzeigen

@@ -0,0 +1,20 @@
const { createServer } = require("http");
const { parse } = require("url");
const next = require("next");

const dev = process.env.NODE_ENV !== "production";
const app = next({ dev });
const handle = app.getRequestHandler();

const port = process.env.PORT || "14009";

app.prepare().then(() => {
createServer((req, res) => {
const parsedUrl = parse(req.url, true);
const { pathname, query } = parsedUrl;
app.render(req, res, "/", query);
}).listen(port, (err) => {
if (err) throw err;
console.log(`Ready on port ${port}`);
});
});

+ 1
- 1
yarn.lock Datei anzeigen

@@ -3681,7 +3681,7 @@ dot-prop@^5.2.0:
dependencies: dependencies:
is-obj "^2.0.0" is-obj "^2.0.0"


dotenv@^8.0.0, dotenv@^8.2.0:
dotenv@^8.0.0:
version "8.2.0" version "8.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw== integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==


Laden…
Abbrechen
Speichern