Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move slick carousel theme to global #6164

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import "./fonts.css";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

document.addEventListener("DOMContentLoaded", () => {
/** init gtm after 3500 seconds - this could be adjusted */
Expand Down
1 change: 0 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = {
},
trailingSlash: "never",
plugins: [
"@mediacurrent/gatsby-plugin-silence-css-order-warning",
{
resolve: "gatsby-plugin-webpack-bundle-analyser-v2",
options: {
Expand Down
9 changes: 0 additions & 9 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const path = require("path");
const slugify = require("./src/utils/slugify");
const { paginate } = require("gatsby-awesome-pagination");
const { createFilePath } = require("gatsby-source-filesystem");
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
const config = require("./gatsby-config");
const {
componentsData,
Expand Down Expand Up @@ -988,14 +987,6 @@ exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
},
},
});
actions.setWebpackConfig({
plugins: [
new FilterWarningsPlugin({
exclude:
/mini-css-extract-plugin[^]*Conflicting order. Following module has been added:/,
}),
],
});

if (stage === "build-javascript") {
const config = getConfig();
Expand Down
3 changes: 1 addition & 2 deletions src/components/Related-Posts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Link } from "gatsby";
import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward";
Expand Down
3 changes: 1 addition & 2 deletions src/components/Related-Resources/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Link } from "gatsby";
import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Community/slider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import Slider from "react-slick";
import styled from "styled-components";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Home/Partners-home/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Container, Row } from "../../../reusecore/Layout";
import SectionTitle from "../../../reusecore/SectionTitle";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Home/So-Special-Section/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import Slider from "react-slick";
import SoSpecialWrapper from "./so-special-style";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Learn/Books-grid/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { graphql, useStaticQuery } from "gatsby";
import PageHeader from "../../../reusecore/PageHeader";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Learn/LearnPage-Sections/workshops.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { graphql, useStaticQuery, Link } from "gatsby";
import { Row, Col } from "../../../reusecore/Layout";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Meshery/Features-section/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import { Row, Col } from "../../../reusecore/Layout";
import Button from "../../../reusecore/Button";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import styled from "styled-components";
import Slider from "react-slick";

Expand Down
3 changes: 1 addition & 2 deletions src/sections/Meshery/meshery-operator/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";import React from "react";
import React from "react";
import { StaticImage } from "gatsby-plugin-image";


Expand Down
3 changes: 1 addition & 2 deletions src/sections/Pricing/review-slider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";
import styled from "styled-components";
import Customers from "../../reusecore/Blockquote/Blockquote-image";
Expand Down
3 changes: 1 addition & 2 deletions src/sections/Projects/Image-Hub/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import React from "react";


Expand Down
Loading