| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | /*! * * Angle - Bootstrap Admin Template * * Version: 4.8 * Author: @themicon_co * Website: http://themicon.co * License: https://wrapbootstrap.com/help/licenses * */// Polyfills// ======================import '../polyfills.js';// App// ======================import App from 'next/app';import React from 'react';// Redux supportimport { Provider } from 'react-redux';import withReduxStore from '../store/with-redux-store';// Translation supportimport * as Translate from '@/components/Common/Translate';// Base Layoutimport Base from '@/components/Layout/Base';// import BaseHorizontal from '@/components/Layout/BaseHorizontal';// Global Vendor// ======================// Whirlimport 'whirl/dist/whirl.css';// Font Awesomeimport '@fortawesome/fontawesome-free/css/brands.css';import '@fortawesome/fontawesome-free/css/regular.css';import '@fortawesome/fontawesome-free/css/solid.css';import '@fortawesome/fontawesome-free/css/fontawesome.css';// Animate.CSSimport 'animate.css/animate.min.css';// Simple line iconsimport 'simple-line-icons/css/simple-line-icons.css';// Weather Iconsimport 'weather-icons/css/weather-icons.min.css';import 'weather-icons/css/weather-icons-wind.min.css';// App Styes// ======================import '../styles/bootstrap.scss';import '../styles/app.scss';// https://nextjs.org/docs/#custom-appclass MyApp extends App {    static async getInitialProps({ Component, ctx }) {        let pageProps = {};        if (Component.getInitialProps) {            pageProps = await Component.getInitialProps(ctx);        }        // Require the initial dictionary.        // Use require to avoid 'fs' module        Translate.setDict('en', require('@/public/static/locales/en/translations.json'));        // The store has been updated in previous call,        // pass it down as initial prop so client can use it.        return { pageProps, store: Translate.store };    }    render() {        const { Component, pageProps, reduxStore, store } = this.props;        const Layout = Component.Layout ? Component.Layout : Base;        const ComponentWithTranslation = Translate.withTranslation(Component);        return (            <Provider store={reduxStore}>                <Translate.Provider store={store}>                    <Layout>                        <ComponentWithTranslation {...pageProps} />                    </Layout>                </Translate.Provider>            </Provider>        );    }}export default withReduxStore(MyApp);
 |