Amber Shopify Project created using ReactJS+React-Redux with GraphQL API integration. Storefront Shopify API: https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/storefront-api-client#readme
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.js 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import React from 'react';
  2. import ReactDOM from 'react-dom/client';
  3. import './index.css';
  4. import App from './App';
  5. import { Provider } from 'react-redux';
  6. import store from './redux/store';
  7. // CSS STUFF
  8. import 'swiper/css';
  9. import 'swiper/css/navigation';
  10. import 'swiper/css/pagination';
  11. import 'animate.css';
  12. import '@fontsource/roboto/300.css';
  13. import '@fontsource/roboto/400.css';
  14. import '@fontsource/roboto/500.css';
  15. import '@fontsource/roboto/700.css';
  16. // import reportWebVitals from './reportWebVitals';
  17. // JS MODULE STUFF
  18. /**
  19. * NOTE: Dear future programmer of this project, before you judge me on how fucked up this codebase is, I already take everything into consideration and
  20. * this code is really the most spegatthi that you'll ever seen, I only have 2 weeks to figure everything out
  21. * and somehow I don't have time to refactor everything since the client and management want this project to be done as soon as possible
  22. * with that in mind, if you have free time, do help me refactor everything. I know I should be the one doing it, but it seems I don't have time to do it
  23. * and my mind is already elsewhere. I pray that you'll have the perservernce to deal with the refactor and wish you the best of luck, you'll might need all of it
  24. * TLDR: to much things to do, to little time time to refactor
  25. */
  26. const root = ReactDOM.createRoot(document.getElementById('root'));
  27. root.render(
  28. <Provider store={store}>
  29. <App />
  30. </Provider>
  31. );
  32. // // If you want to start measuring performance in your app, pass a function
  33. // // to log results (for example: reportWebVitals(console.log))
  34. // // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  35. // reportWebVitals();