nitro-web 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/.github/workflows/deploy.yml +36 -0
  2. package/_example/client/dist/assets/bundle.main.618efe6c61f19b4b02ff.css +2295 -0
  3. package/_example/client/dist/assets/bundle.main.823056518dd8e9935b28.js +1 -0
  4. package/_example/client/dist/assets/bundle.vendor.0330197eefd7ccc95d3b.js +2 -0
  5. package/_example/client/dist/assets/bundle.vendor.0330197eefd7ccc95d3b.js.LICENSE.txt +100 -0
  6. package/_example/client/dist/assets/images/avatar..jpg +0 -0
  7. package/_example/client/dist/assets/images/inter-v13-latin-300..woff2 +0 -0
  8. package/_example/client/dist/assets/images/inter-v13-latin-500..woff2 +0 -0
  9. package/_example/client/dist/assets/images/inter-v13-latin-600..woff2 +0 -0
  10. package/_example/client/dist/assets/images/inter-v13-latin-700..woff2 +0 -0
  11. package/_example/client/dist/assets/images/inter-v13-latin-800..woff2 +0 -0
  12. package/_example/client/dist/assets/images/inter-v13-latin-900..woff2 +0 -0
  13. package/_example/client/dist/assets/images/inter-v13-latin-regular..woff2 +0 -0
  14. package/_example/client/dist/assets/imgs/android-chrome-512x512.png +0 -0
  15. package/_example/client/dist/assets/imgs/favicon.png +0 -0
  16. package/_example/client/dist/assets/imgs/logo/logo-white.svg +20 -0
  17. package/_example/client/dist/assets/imgs/logo/logo.svg +20 -0
  18. package/_example/client/dist/assets/imgs/no-image.jpg +0 -0
  19. package/_example/client/dist/favicon.png +0 -0
  20. package/_example/client/dist/index.html +1 -0
  21. package/_example/client/index.html +2 -2
  22. package/_example/components/index.tsx +13 -22
  23. package/_example/package.json +2 -0
  24. package/_example/server/config.js +20 -0
  25. package/client/app.js +15 -11
  26. package/client/css/fonts.css +9 -9
  27. package/client/imgs/avatar.jpg +0 -0
  28. package/client/index.js +8 -7
  29. package/components/auth/signin.jsx +2 -10
  30. package/components/dashboard/dashboard.jsx +31 -0
  31. package/components/partials/element/avatar.jsx +3 -1
  32. package/components/partials/element/sidebar.jsx +3 -2
  33. package/components/partials/form/select.jsx +2 -3
  34. package/components/partials/layout/layout2.jsx +2 -2
  35. package/components/partials/styleguide.jsx +3 -2
  36. package/package.json +4 -2
  37. package/readme.md +1 -1
  38. package/types/client/app.d.ts.map +1 -1
  39. package/types/client/index.d.ts +3 -2
  40. package/types/components/auth/signin.d.ts.map +1 -1
  41. package/types/components/dashboard/dashboard.d.ts +4 -0
  42. package/types/components/dashboard/dashboard.d.ts.map +1 -0
  43. package/types/components/partials/element/avatar.d.ts.map +1 -1
  44. package/types/components/partials/element/sidebar.d.ts.map +1 -1
  45. package/types/components/partials/styleguide.d.ts.map +1 -1
  46. package/types/util.d.ts +1 -1
  47. package/types/util.d.ts.map +1 -1
  48. package/util.js +25 -3
  49. package/webpack.config.js +39 -4
  50. package/_example/client/fonts/Roboto-Bold.ttf +0 -0
  51. package/_example/client/fonts/Roboto-BoldItalic.ttf +0 -0
  52. package/_example/client/fonts/Roboto-Italic.ttf +0 -0
  53. package/_example/client/fonts/Roboto-Medium.ttf +0 -0
  54. package/_example/client/fonts/Roboto-MediumItalic.ttf +0 -0
  55. package/_example/client/fonts/Roboto-Regular.ttf +0 -0
  56. package/_example/client/imgs/icons/calendar.svg +0 -3
  57. package/_example/client/imgs/icons/email.svg +0 -6
  58. package/_example/client/imgs/icons/eye-open.svg +0 -4
  59. package/_example/client/imgs/icons/eye.svg +0 -5
  60. package/_example/client/imgs/icons/filter.svg +0 -7
  61. package/_example/client/imgs/icons/left-circle.svg +0 -3
  62. package/_example/client/imgs/icons/left.svg +0 -3
  63. package/_example/client/imgs/icons/line-options.svg +0 -5
  64. package/_example/client/imgs/icons/line.svg +0 -3
  65. package/_example/client/imgs/icons/person.svg +0 -7
  66. package/_example/client/imgs/icons/plus-circle.svg +0 -5
  67. package/_example/client/imgs/icons/plus.svg +0 -5
  68. package/_example/client/imgs/icons/right-circle.svg +0 -3
  69. package/_example/client/imgs/icons/right.svg +0 -3
  70. package/_example/client/imgs/icons/search.svg +0 -3
  71. package/_example/client/imgs/icons/shield.svg +0 -6
  72. package/_example/client/imgs/icons/tick-circle-solid.svg +0 -8
  73. package/_example/client/imgs/icons/tick-circle.svg +0 -6
  74. package/_example/client/imgs/icons/tick.svg +0 -5
  75. package/_example/client/imgs/icons/up2-small.svg +0 -4
  76. package/_example/client/imgs/icons/up2.svg +0 -4
  77. package/_example/client/imgs/icons/updown.svg +0 -6
  78. package/_example/client/imgs/icons/v-big-dark.svg +0 -3
  79. package/_example/client/imgs/icons/v-dark.svg +0 -3
  80. package/_example/client/imgs/icons/v.svg +0 -3
  81. package/_example/client/imgs/icons/v2-active.svg +0 -6
  82. package/_example/client/imgs/icons/x1.svg +0 -4
  83. package/_example/client/imgs/user.jpg +0 -0
  84. package/client/imgs/icons/calendar.svg +0 -3
  85. package/client/imgs/icons/email.svg +0 -6
  86. package/client/imgs/icons/eye-open.svg +0 -4
  87. package/client/imgs/icons/eye.svg +0 -5
  88. package/client/imgs/icons/filter.svg +0 -7
  89. package/client/imgs/icons/left-circle.svg +0 -3
  90. package/client/imgs/icons/left.svg +0 -3
  91. package/client/imgs/icons/line-options.svg +0 -5
  92. package/client/imgs/icons/line.svg +0 -3
  93. package/client/imgs/icons/person.svg +0 -7
  94. package/client/imgs/icons/plus-circle.svg +0 -5
  95. package/client/imgs/icons/right-circle.svg +0 -3
  96. package/client/imgs/icons/right.svg +0 -3
  97. package/client/imgs/icons/search.svg +0 -3
  98. package/client/imgs/icons/shield.svg +0 -6
  99. package/client/imgs/icons/tick-circle-solid.svg +0 -8
  100. package/client/imgs/icons/tick-circle.svg +0 -6
  101. package/client/imgs/icons/up2-small.svg +0 -4
  102. package/client/imgs/icons/up2.svg +0 -4
  103. package/client/imgs/icons/updown.svg +0 -6
  104. package/client/imgs/icons/v-big-dark.svg +0 -3
  105. package/client/imgs/icons/v-dark.svg +0 -3
  106. package/client/imgs/icons/v.svg +0 -3
  107. package/client/imgs/icons/v2-active.svg +0 -6
@@ -1,5 +1,6 @@
1
1
  // Component: https://tailwindui.com/components/application-ui/application-shells/sidebar#component-a69d85b6237ea2ad506c00ef1cd39a38
2
2
  import { Dialog, DialogBackdrop, DialogPanel, TransitionChild } from '@headlessui/react'
3
+ import avatarImg from '../../../client/imgs/avatar.jpg'
3
4
  import {
4
5
  Bars3Icon,
5
6
  HomeIcon,
@@ -55,7 +56,7 @@ export function Sidebar({ Logo }) {
55
56
  </button>
56
57
  <div className="flex-1 text-sm/6 font-semibold text-gray-900">Dashboard</div>
57
58
  <Link to="#">
58
- <img alt="" src="/assets/imgs/user.jpg" className="size-8 rounded-full bg-gray-50" />
59
+ <img alt="" src={avatarImg} className="size-8 rounded-full bg-gray-50" />
59
60
  </Link>
60
61
  </div>
61
62
 
@@ -155,7 +156,7 @@ function SidebarContents ({ Logo }) {
155
156
  to="#"
156
157
  className="flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-50"
157
158
  >
158
- <img alt="" src="/assets/imgs/user.jpg" className="size-8 rounded-full bg-gray-50" />
159
+ <img alt="" src={avatarImg} className="size-8 rounded-full bg-gray-50" />
159
160
  <span aria-hidden="true" class="truncate1">{user?.name || 'Guest'}</span>
160
161
  </Link>
161
162
  </li>
@@ -261,9 +261,7 @@ function Option(props) {
261
261
  const DropdownIndicator = (props) => {
262
262
  return (
263
263
  <components.DropdownIndicator {...props}>
264
- {/* <img src="/assets/imgs/icons/v.svg" /> */}
265
264
  <ChevronDownIcon className="size-6 -my-0.5 -mx-1" />
266
- {/* <ChevronDownIcon /> */}
267
265
  </components.DropdownIndicator>
268
266
  )
269
267
  }
@@ -287,8 +285,9 @@ const MultiValueRemove = (props) => {
287
285
 
288
286
  function Flag({ flag }) {
289
287
  if (!flag) return null
288
+ const publicPath = PUBLIC_PATH // eslint-disable-line
290
289
  return (
291
- <span class="flag" style={{ backgroundImage: `url(/assets/imgs/flags/${flag}.svg)` }} />
290
+ <span class="flag" style={{ backgroundImage: `url(${publicPath}assets/imgs/flags/${flag}.svg)` }} />
292
291
  )
293
292
  }
294
293
 
@@ -20,8 +20,8 @@ export function Layout2({ Logo }) {
20
20
  <div class="wrapper-2 w-full px-5 pb-4 flex items-center text-sm text-[#1F1F1F]">
21
21
  <ul class="flex-1 flex gap-4 list-style-none">
22
22
  <li><Link class="underline1" to="/">Home</Link></li>
23
- <li><Link class="underline1" to="/signin">About</Link></li>
24
- <li><Link class="underline1" to="/signin">Support</Link></li>
23
+ <li><Link class="underline1" to="/about">About</Link></li>
24
+ <li><Link class="underline1" to="/support">Support</Link></li>
25
25
  </ul>
26
26
  <div>
27
27
  2025 © Nitro
@@ -142,8 +142,9 @@ export function Styleguide({ config }) {
142
142
  name="multi"
143
143
  isMulti={true}
144
144
  options={[
145
- { value: 'edit', label: 'Edit' },
146
- { value: 'delete', label: 'Delete' },
145
+ { value: 'blue', label: 'Blue' },
146
+ { value: 'green', label: 'Green' },
147
+ { value: 'yellow', label: 'Yellow' },
147
148
  ]}
148
149
  />
149
150
  </div>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "nitro-web",
3
3
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
4
4
  "repository": "github:boycce/nitro-web",
5
- "version": "0.0.7",
5
+ "version": "0.0.8",
6
6
  "main": "./client/index.js",
7
7
  "types": "./types/client/index.d.ts",
8
8
  "type": "module",
@@ -40,11 +40,13 @@
40
40
  "scripts": {
41
41
  "dev": "npm run dev -w example",
42
42
  "dev:client": "npm run dev:client -w example",
43
+ "dev:client-only": "isDemo=true npm run dev:client -w example",
43
44
  "dev:server": "npm run dev:server -w example",
44
- "build": "npm run build -w example",
45
+ "build": "isDemo=true npm run build -w example",
45
46
  "major": "standard-version --release-as major && npm publish",
46
47
  "minor": "standard-version --release-as minor && npm publish",
47
48
  "patch": "standard-version --release-as patch && npm publish",
49
+ "start": "npm run start -w example",
48
50
  "types": "tsc client/*.js components/**/*.jsx --declaration --declarationMap --allowJs --emitDeclarationOnly --jsx react-jsx --esModuleInterop --outDir types"
49
51
  },
50
52
  "dependencies": {
package/readme.md CHANGED
@@ -11,7 +11,7 @@ npm i nitro-web
11
11
  ### Install
12
12
 
13
13
  1. Copy ./_example into your project
14
- 2. In package.json, replace `"nitro-web": "file:.."` with `"nitro-web": "^0.0.7"`
14
+ 2. In package.json, replace `"nitro-web": "file:.."` with `"nitro-web": "^0.0.8"`
15
15
  3. In package.json, replace `"../.eslintrc.json"` with `"./node_modules/nitro-web/.eslintrc.json"`
16
16
  4. Run `npm i`
17
17
 
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../client/app.js"],"names":[],"mappings":"AAKA,mEAcC"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../client/app.js"],"names":[],"mappings":"AAKA,mEAeC"}
@@ -3,6 +3,9 @@ export * from "../util.js";
3
3
  export * as util from "../util.js";
4
4
  export { Signin } from "../components/auth/signin.jsx";
5
5
  export { Signup } from "../components/auth/signup.jsx";
6
+ export { Dashboard } from "../components/dashboard/dashboard.jsx";
7
+ export { NotFound } from "../components/partials/not-found.jsx";
8
+ export { Styleguide } from "../components/partials/styleguide.jsx";
6
9
  export { Accordion } from "../components/partials/element/accordion.jsx";
7
10
  export { Avatar } from "../components/partials/element/avatar.jsx";
8
11
  export { Button } from "../components/partials/element/button.jsx";
@@ -22,7 +25,5 @@ export { Toggle } from "../components/partials/form/toggle.jsx";
22
25
  export { Layout1 } from "../components/partials/layout/layout1.jsx";
23
26
  export { Layout2 } from "../components/partials/layout/layout2.jsx";
24
27
  export { IsFirstRender } from "../components/partials/is-first-render.js";
25
- export { NotFound } from "../components/partials/not-found.jsx";
26
- export { Styleguide } from "../components/partials/styleguide.jsx";
27
28
  export { ResetInstructions, ResetPassword } from "../components/auth/reset.jsx";
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signin.d.ts","sourceRoot":"","sources":["../../../components/auth/signin.jsx"],"names":[],"mappings":"AAOA;;4CAoEC"}
1
+ {"version":3,"file":"signin.d.ts","sourceRoot":"","sources":["../../../components/auth/signin.jsx"],"names":[],"mappings":"AAMA;;4CAmEC"}
@@ -0,0 +1,4 @@
1
+ export function Dashboard({ config }: {
2
+ config: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../components/dashboard/dashboard.jsx"],"names":[],"mappings":"AAEA;;4CAsBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/avatar.jsx"],"names":[],"mappings":"AAGA;;;;;;4CAwBC"}
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/avatar.jsx"],"names":[],"mappings":"AAIA;;;;;;4CAwBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/sidebar.jsx"],"names":[],"mappings":"AAiBA;;4CA+CC"}
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/sidebar.jsx"],"names":[],"mappings":"AAkBA;;4CA+CC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styleguide.d.ts","sourceRoot":"","sources":["../../../components/partials/styleguide.jsx"],"names":[],"mappings":"AASA;;4CAiPC"}
1
+ {"version":3,"file":"styleguide.d.ts","sourceRoot":"","sources":["../../../components/partials/styleguide.jsx"],"names":[],"mappings":"AASA;;4CAkPC"}
package/types/util.d.ts CHANGED
@@ -84,11 +84,11 @@ export function getDirectories(path: any, pwd: any): {
84
84
  componentsDir: any;
85
85
  distDir: any;
86
86
  emailTemplateDir: any;
87
- fontsDir: any;
88
87
  imgsDir: any;
89
88
  tmpDir: any;
90
89
  };
91
90
  export function getLink(obj: any, query: any): string;
91
+ export function getPublicPath(env: any, homepage: any, publicPath: any): string;
92
92
  export function getStripeClientPromise(stripePublishableKey: any): any;
93
93
  export function getResponseErrors(errs: any): any;
94
94
  export function inArray(array: any, key: any, value: any): any;
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../util.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BC;AAED,6DAaC;AAED,4DAQC;AAED,iFAaC;AAED,0EAIC;AAED,gDAEC;AAED,0CAEC;AAED,qFAQC;AAED,uDAIC;AAED,iEAoBC;AAED;;;;EAgIC;AAED,wCASC;AAED,mDAYC;AAED,+DAyBC;AAED,iEAeC;AAED,kFA2BC;AAED,gEAIC;AAED,6CASC;AAED,qEAsEC;AAED,8CAGC;AAED,kDAQC;AAED;;;;IAOC;AAED;;;IAOC;AAED,mFAUC;AAED;;;;;;;;EAWC;AAED,sDAYC;AAED,uEAEC;AAED,kDAsBC;AAED,+DAaC;AAED,0DAEC;AAED,+CAEC;AAED,kDAEC;AAED,6CAIC;AAED,kEAOC;AAED,mDAEC;AAED,6CAiBC;AAED,iDAEC;AAED,iDAGC;AAED,gDAEC;AAED,iDAEC;AAED,0CAEC;AAED,yEAWC;AAED,mFAwCC;AAED;;;;;;;;;;;;;;;;;;;;;;;;EA0CC;AAED,uEAmBC;AAED,oDAKC;AAED,iDAOC;AAED,8EAqDC;AAED,kEAQC;AAED,8CAeC;AAED,+DAiCC;AAED,8CAcC;AAED,yFAiDC;AAED,oDAYC;AAED,4EAmBC;AAED,kDAUC;AAED,mFAiDC;AAED,oEAaC;AAED,8EAIC;AAED,0DAQC;AAED,uDAMC;AAED,mFAwBC;AAED;;;;EAyBC;AAED,8CAIC;AAED,uCAGC;AAED,0CAGC;AAjoCD,6BAAoC"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../util.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BC;AAED,6DAaC;AAED,4DAQC;AAED,iFAaC;AAED,0EAIC;AAED,gDAEC;AAED,0CAEC;AAED,qFAQC;AAED,uDAIC;AAED,iEAoBC;AAED;;;;EAgIC;AAED,wCASC;AAED,mDAYC;AAED,+DAyBC;AAED,iEAeC;AAED,kFA2BC;AAED,gEAIC;AAED,6CASC;AAED,qEAsEC;AAED,8CAGC;AAED,kDAQC;AAED;;;;IAOC;AAED;;;IAOC;AAED,mFAUC;AAED;;;;;;;EAUC;AAED,sDAYC;AAED,gFAoBC;AAED,uEAEC;AAED,kDAsBC;AAED,+DAaC;AAED,0DAEC;AAED,+CAEC;AAED,kDAEC;AAED,6CAIC;AAED,kEAOC;AAED,mDAEC;AAED,6CAiBC;AAED,iDAEC;AAED,iDAGC;AAED,gDAEC;AAED,iDAEC;AAED,0CAEC;AAED,yEAWC;AAED,mFAwCC;AAED;;;;;;;;;;;;;;;;;;;;;;;;EA0CC;AAED,uEAmBC;AAED,oDAKC;AAED,iDAOC;AAED,8EAqDC;AAED,kEAQC;AAED,8CAeC;AAED,+DAiCC;AAED,8CAcC;AAED,yFAiDC;AAED,oDAYC;AAED,4EAoBC;AAED,kDAUC;AAED,mFAiDC;AAED,oEAaC;AAED,8EAIC;AAED,0DAQC;AAED,uDAMC;AAED,mFAwBC;AAED;;;;EAyBC;AAED,8CAIC;AAED,uCAGC;AAED,0CAGC;AAvpCD,6BAAoC"}
package/util.js CHANGED
@@ -497,7 +497,6 @@ export function getDirectories (path, pwd) {
497
497
  componentsDir: path.join(_pwd, process.env.componentsDir || 'components', '/'),
498
498
  distDir: path.join(_pwd, process.env.distDir || ((process.env.clientDir || 'client') + '/dist'), '/'),
499
499
  emailTemplateDir: path.join(_pwd, process.env.emailTemplateDir || 'server/email', '/'),
500
- fontsDir: path.join(_pwd, (process.env.clientDir || 'client'), 'fonts', '/'),
501
500
  imgsDir: path.join(_pwd, (process.env.clientDir || 'client'), 'imgs', '/'),
502
501
  tmpDir: path.join(_pwd, process.env.tmpDir || 'tmp', '/'),
503
502
  }
@@ -517,6 +516,28 @@ export function getLink (obj, query) {
517
516
  return queryString(newQueryObj) || '?'
518
517
  }
519
518
 
519
+ export function getPublicPath(env, homepage, publicPath) {
520
+ /**
521
+ * Returns public path used for webapck (we can't use relative paths)
522
+ * @param {string} env - 'development', 'staging', 'production'
523
+ * @param {string} publicPath - proces.env.publicPath
524
+ * @param {string} homepage - package.json homepage
525
+ */
526
+ if (publicPath) {
527
+ const publicPathObj = new URL(publicPath, 'https://domain.com')
528
+ if (env === 'development') return publicPathObj.pathname
529
+ else return publicPathObj.pathname
530
+
531
+ } else if (homepage) {
532
+ const homepageObj = new URL(homepage, 'https://domain.com')
533
+ if (env === 'development') return homepageObj.pathname
534
+ else return homepageObj.pathname
535
+
536
+ } else {
537
+ return '/'
538
+ }
539
+ }
540
+
520
541
  export function getStripeClientPromise (stripePublishableKey) {
521
542
  return global.stripeClientPromise || (global.stripeClientPromise = loadStripe(stripePublishableKey))
522
543
  }
@@ -975,9 +996,10 @@ export function s3Image (awsUrl, image, size='full', i) {
975
996
  */
976
997
  let lambdaDelay = 7000
977
998
  let usingMilliseconds = true
999
+ let publicPath = PUBLIC_PATH // eslint-disable-line
978
1000
 
979
1001
  if (!isObject(image)) image = (image && image[i]) ? image[i] : null
980
- if (!image) return '/assets/imgs/no-image.jpg'
1002
+ if (!image) return `${publicPath}assets/imgs/no-image.jpg`
981
1003
  // Alway use preview if available
982
1004
  if (image.base64) return image.base64
983
1005
  // Wait a moment before the different sizes are generated by lambda
@@ -1155,4 +1177,4 @@ export function trim (string) {
1155
1177
  export function ucFirst (string) {
1156
1178
  if (!string) return ''
1157
1179
  return string.charAt(0).toUpperCase() + string.slice(1)
1158
- }
1180
+ }
package/webpack.config.js CHANGED
@@ -2,6 +2,7 @@ import axios from '@hokify/axios'
2
2
  import axiosRetry from 'axios-retry'
3
3
  import autoprefixer from 'autoprefixer'
4
4
  import CleanTerminalPlugin from 'clean-terminal-webpack-plugin'
5
+ import { CleanWebpackPlugin } from 'clean-webpack-plugin'
5
6
  import CopyWebpackPlugin from 'copy-webpack-plugin'
6
7
  import HtmlWebpackPlugin from 'html-webpack-plugin'
7
8
  import MiniCssExtractPlugin from 'mini-css-extract-plugin'
@@ -15,7 +16,7 @@ import postcssImport from 'postcss-import'
15
16
  import postcssNested from 'postcss-nested'
16
17
  import postcssFor from 'postcss-for'
17
18
  import { createRequire } from 'module'
18
- import { getDirectories } from './util.js'
19
+ import { getDirectories, getPublicPath } from './util.js'
19
20
 
20
21
  const _require = createRequire(import.meta.url)
21
22
  const pick = (object, list) => list.reduce((o, e) => ((o[e] = object[e]), o), {})
@@ -29,7 +30,8 @@ axiosRetry(axios, {
29
30
 
30
31
  // process.traceDeprecation = true
31
32
  export const getConfig = (config) => {
32
- const { clientDir, componentsDir, distDir, imgsDir, fontsDir } = getDirectories(path, config.pwd)
33
+ const { clientDir, componentsDir, distDir, imgsDir } = getDirectories(path, config.pwd)
34
+ const publicPath = getPublicPath(config.env, config.homepage, config.publicPath)
33
35
 
34
36
  return (env, argv) => [{
35
37
  devtool: isBuild ? false : 'source-map',
@@ -177,6 +179,13 @@ export const getConfig = (config) => {
177
179
  },
178
180
  ],
179
181
  },
182
+ {
183
+ test: /\.(png|jpe?g|gif|woff|woff2|ttf|eot)$/i,
184
+ type: 'asset/resource',
185
+ generator: {
186
+ filename: 'assets/images/[name].[ext][query]',//[hash][ext][query]
187
+ },
188
+ },
180
189
  {
181
190
  test: /\.svg$/,
182
191
  use: [
@@ -237,7 +246,7 @@ export const getConfig = (config) => {
237
246
  // Because of this we manually need to prefix all output filenames with `assets/`.
238
247
  filename: `assets/bundle.[name]${isBuild ? '.[contenthash]' : ''}.js`,
239
248
  path: distDir,
240
- publicPath: '/',
249
+ publicPath: publicPath,
241
250
  },
242
251
  performance: {
243
252
  hints: false,
@@ -257,18 +266,20 @@ export const getConfig = (config) => {
257
266
  },
258
267
  plugins: [
259
268
  // new (require('webpack-bundle-analyzer').BundleAnalyzerPlugin)(),
269
+ new CleanWebpackPlugin(),
260
270
  new CopyWebpackPlugin({
261
271
  patterns: [
262
272
  { from: imgsDir + 'favicon.png', to: './favicon.png' },
263
273
  { from: imgsDir, to: './assets/imgs' },
264
- { from: fontsDir, to: './assets/fonts' },
265
274
  ],
266
275
  }),
267
276
  new webpack.DefinePlugin({
268
277
  CONFIG: JSON.stringify({
269
278
  ...pick(config, config.inject ? config.inject.split(' ') : []),
279
+ isDemo: process.env.isDemo,
270
280
  version: config.version,
271
281
  }),
282
+ PUBLIC_PATH: publicPath,
272
283
  }),
273
284
  new ESLintPlugin({
274
285
  extensions: ['js', 'mjs', 'jsx'],
@@ -276,6 +287,7 @@ export const getConfig = (config) => {
276
287
  }),
277
288
  new MiniCssExtractPlugin({ filename: `assets/bundle.[name]${isBuild ? '.[contenthash]' : ''}.css` }),
278
289
  new HtmlWebpackPlugin({ template: clientDir + 'index.html', filename: distDir + 'index.html' }),
290
+ new InterpolateHtmlPlugin(HtmlWebpackPlugin, { PUBLIC_PATH: publicPath }),
279
291
  new CleanTerminalPlugin({ skipFirstRun: true }),
280
292
  // !isBuild && new ReactRefreshWebpackPlugin({ overlay: false }),
281
293
  ].filter(Boolean),
@@ -301,3 +313,26 @@ export const getConfig = (config) => {
301
313
  },
302
314
  }]
303
315
  }
316
+
317
+ class InterpolateHtmlPlugin {
318
+ constructor(htmlWebpackPlugin, replacements) {
319
+ this.htmlWebpackPlugin = htmlWebpackPlugin
320
+ this.replacements = replacements
321
+ }
322
+ apply(compiler) {
323
+ compiler.hooks.compilation.tap('InterpolateHtmlPlugin', compilation => {
324
+ this.htmlWebpackPlugin
325
+ .getHooks(compilation)
326
+ .afterTemplateExecution.tap('InterpolateHtmlPlugin', data => {
327
+ // Run HTML through a series of user-specified string replacements.
328
+ for (const key in this.replacements) {
329
+ const value = this.replacements[key]
330
+ data.html = data.html.replace(
331
+ new RegExp('{' + key + '}', 'g'),
332
+ value
333
+ )
334
+ }
335
+ })
336
+ })
337
+ }
338
+ }
@@ -1,3 +0,0 @@
1
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M12.5 3.5H13V3V2.5C13 2.0124 12.8443 1.58884 12.4698 1.313C12.1287 1.06182 11.6906 1 11.2778 1H2.72222C2.30939 1 1.87133 1.06182 1.53024 1.313C1.15567 1.58884 1 2.0124 1 2.5V3V3.5H1.5H12.5ZM1.5 4H1V4.5V11.2778C1 11.8402 1.28355 12.2851 1.66974 12.5738C2.0478 12.8564 2.53263 13 3.00698 13H11.2778C11.7597 13 12.2031 12.8506 12.5268 12.5268C12.8506 12.2031 13 11.7597 13 11.2778V4.5V4H12.5H1.5ZM0.5 2.52778C0.5 1.41483 1.41483 0.5 2.52778 0.5H11.4722C12.5852 0.5 13.5 1.41483 13.5 2.52778V11.4722C13.5 12.5852 12.5852 13.5 11.4722 13.5H2.52778C1.41483 13.5 0.5 12.5852 0.5 11.4722V2.52778ZM3.36053 6.47164C3.44909 6.38309 3.5692 6.33333 3.69444 6.33333C3.81969 6.33333 3.9398 6.38309 4.02836 6.47164C4.11692 6.5602 4.16667 6.68032 4.16667 6.80556C4.16667 6.9308 4.11692 7.05091 4.02836 7.13947C3.9398 7.22803 3.81969 7.27778 3.69444 7.27778C3.5692 7.27778 3.44909 7.22803 3.36053 7.13947C3.27197 7.05091 3.22222 6.9308 3.22222 6.80556C3.22222 6.68031 3.27197 6.5602 3.36053 6.47164ZM6.66609 6.47164C6.75465 6.38309 6.87476 6.33333 7 6.33333C7.12524 6.33333 7.24535 6.38309 7.33391 6.47164C7.42247 6.5602 7.47222 6.68031 7.47222 6.80556C7.47222 6.9308 7.42247 7.05091 7.33391 7.13947C7.24535 7.22803 7.12524 7.27778 7 7.27778C6.87476 7.27778 6.75465 7.22803 6.66609 7.13947C6.57753 7.05091 6.52778 6.9308 6.52778 6.80556C6.52778 6.68032 6.57753 6.5602 6.66609 6.47164ZM9.97164 6.47164C10.0602 6.38309 10.1803 6.33333 10.3056 6.33333C10.4308 6.33333 10.5509 6.38309 10.6395 6.47164C10.728 6.5602 10.7778 6.68031 10.7778 6.80556C10.7778 6.9308 10.728 7.05091 10.6395 7.13947C10.5509 7.22803 10.4308 7.27778 10.3056 7.27778C10.1803 7.27778 10.0602 7.22803 9.97164 7.13947C9.88309 7.05091 9.83333 6.9308 9.83333 6.80556C9.83333 6.68031 9.88309 6.5602 9.97164 6.47164ZM3.36053 9.97164C3.44909 9.88309 3.5692 9.83333 3.69444 9.83333C3.81969 9.83333 3.9398 9.88309 4.02836 9.97164C4.11692 10.0602 4.16667 10.1803 4.16667 10.3056C4.16667 10.4308 4.11691 10.5509 4.02836 10.6395C3.9398 10.728 3.81969 10.7778 3.69444 10.7778C3.5692 10.7778 3.44909 10.728 3.36053 10.6395C3.27197 10.5509 3.22222 10.4308 3.22222 10.3056C3.22222 10.1803 3.27197 10.0602 3.36053 9.97164ZM6.66609 9.97164C6.75465 9.88309 6.87476 9.83333 7 9.83333C7.12524 9.83333 7.24535 9.88309 7.33391 9.97164C7.42247 10.0602 7.47222 10.1803 7.47222 10.3056C7.47222 10.4308 7.42247 10.5509 7.33391 10.6395C7.24535 10.728 7.12524 10.7778 7 10.7778C6.87476 10.7778 6.75465 10.728 6.66609 10.6395C6.57753 10.5509 6.52778 10.4308 6.52778 10.3056C6.52778 10.1803 6.57753 10.0602 6.66609 9.97164Z" stroke="#D6CBE2"/>
3
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <rect x="0.85" y="0.85" width="11.3" height="8.3" rx="1.15" stroke="#D6CBE2" stroke-width="1.7"/>
4
- <path d="M1 2.5L5.35117 5.26893C6.04435 5.71004 6.93679 5.68234 7.60127 5.19908L12 2" stroke="#D6CBE2" stroke-width="1.7"/>
5
- </g>
6
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="17" height="12" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M16.1142 5.9414L16.1143 5.94168L16.1462 6.00025L16.1144 6.05878C14.5319 8.96792 11.6062 10.75 8.5 10.75C5.39365 10.75 2.46796 8.96776 0.885708 6.05893C0.885684 6.05889 0.885659 6.05884 0.885634 6.05879L0.853633 5.99993L0.885415 5.94145C2.46806 3.03206 5.39362 1.25 8.5 1.25C11.6062 1.25 14.5319 3.03227 16.1142 5.9414Z" stroke="#8D8399" stroke-width="1.5"/>
3
- <path d="M10.75 6C10.75 7.24264 9.74264 8.25 8.5 8.25C7.25736 8.25 6.25 7.24264 6.25 6C6.25 4.75736 7.25736 3.75 8.5 3.75C9.74264 3.75 10.75 4.75736 10.75 6Z" stroke="#8D8399" stroke-width="1.5"/>
4
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="17" height="12" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M16.1142 5.9414L16.1143 5.94168L16.1462 6.00025L16.1144 6.05878C14.5319 8.96792 11.6062 10.75 8.5 10.75C5.39365 10.75 2.46796 8.96776 0.885708 6.05893C0.885684 6.05889 0.885659 6.05884 0.885634 6.05879L0.853633 5.99993L0.885415 5.94145C2.46806 3.03206 5.39362 1.25 8.5 1.25C11.6062 1.25 14.5319 3.03227 16.1142 5.9414Z" stroke="#8D8399" stroke-width="1.5"/>
3
- <path d="M10.75 6C10.75 7.24264 9.74264 8.25 8.5 8.25C7.25736 8.25 6.25 7.24264 6.25 6C6.25 4.75736 7.25736 3.75 8.5 3.75C9.74264 3.75 10.75 4.75736 10.75 6Z" stroke="#8D8399" stroke-width="1.5"/>
4
- <path d="M2 9.5L15 2.5" stroke="#FBFBFB" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
@@ -1,7 +0,0 @@
1
- <svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <rect width="12" height="2" rx="1" fill="#D6CBE2"/>
4
- <rect x="2" y="4" width="8" height="2" rx="1" fill="#D6CBE2"/>
5
- <rect x="4" y="8" width="4" height="2" rx="1" fill="#D6CBE2"/>
6
- </g>
7
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M7.22222 5.66667L4.88889 8M4.88889 8L7.22222 10.3333M4.88889 8H11.1111M1 8C1 11.866 4.13401 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M5.01779 1.09998L1.01779 5.49998L5.01779 9.89998" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="24" height="37" viewBox="0 0 24 37" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="11.8934" cy="25" r="2" fill="#3A3942"/>
3
- <circle cx="11.8934" cy="18" r="2" fill="#3A3942"/>
4
- <circle cx="11.8934" cy="11" r="2" fill="#3A3942"/>
5
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="3" height="18" viewBox="0 0 3 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <line x1="1.5" y1="2.18557e-08" x2="1.5" y2="18" stroke="#EEEDEF"/>
3
- </svg>
@@ -1,7 +0,0 @@
1
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <path d="M13 7.00002H10.3333M11.6667 8.33335L11.6667 5.66669" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
4
- <path d="M1 11.741C1 10.1323 2.13155 8.76197 3.66936 8.50843L3.80788 8.4856C5.03928 8.28258 6.29405 8.28258 7.52545 8.4856L7.66397 8.50843C9.20178 8.76197 10.3333 10.1323 10.3333 11.741C10.3333 12.4363 9.78768 13 9.11458 13H2.21875C1.54565 13 1 12.4363 1 11.741Z" stroke="white" stroke-width="1.5"/>
5
- <path d="M8.3889 3.625C8.3889 5.07475 7.17012 6.25 5.66668 6.25C4.16324 6.25 2.94446 5.07475 2.94446 3.625C2.94446 2.17525 4.16324 1 5.66668 1C7.17012 1 8.3889 2.17525 8.3889 3.625Z" stroke="white" stroke-width="1.5"/>
6
- </g>
7
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="29" height="29" viewBox="0 0 29 29" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="14.5" cy="14.5" r="13.5" stroke="#E8E8E8" stroke-width="2"/>
3
- <line x1="14.5" y1="18.5" x2="14.5" y2="10.5" stroke="#1E1D20" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
4
- <line x1="18.5" y1="14.5" x2="10.5" y2="14.5" stroke="#1E1D20" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <path d="M1.5 6H10.5M6 1.5L6 10.5" stroke="white" stroke-width="1.8" stroke-linecap="round"/>
4
- </g>
5
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.77778 10.3333L11.1111 8M11.1111 8L8.77778 5.66667M11.1111 8H4.88889M15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15C11.866 15 15 11.866 15 8Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M1.93219 9.90002L5.93219 5.50002L1.93219 1.10002" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="13" height="14" viewBox="0 0 13 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.2275 9.59501C10.2576 9.61776 10.2868 9.64294 10.3145 9.67057L12.752 12.1081C12.8296 12.183 12.8915 12.2727 12.934 12.3718C12.9766 12.4709 12.999 12.5776 13 12.6854C13.0009 12.7933 12.9804 12.9003 12.9395 13.0002C12.8986 13.1 12.8383 13.1907 12.762 13.267C12.6857 13.3433 12.595 13.4036 12.4952 13.4445C12.3953 13.4853 12.2883 13.5059 12.1804 13.505C12.0726 13.504 11.9659 13.4816 11.8668 13.439C11.7677 13.3964 11.678 13.3345 11.6031 13.2569L9.16558 10.8194C9.13839 10.7923 9.11314 10.7632 9.09002 10.7325C7.93912 11.5957 6.50386 11.9906 5.07338 11.8378C3.64289 11.685 2.32346 10.9958 1.38087 9.90897C0.438275 8.82215 -0.0574365 7.41851 -0.006413 5.98079C0.0446105 4.54306 0.638577 3.17809 1.65584 2.16083C2.6731 1.14357 4.03807 0.5496 5.4758 0.498577C6.91352 0.447553 8.31716 0.943264 9.40398 1.88586C10.4908 2.82845 11.18 4.14788 11.3328 5.57837C11.4857 7.00885 11.0907 8.44411 10.2275 9.59501ZM5.67751 10.245C6.75496 10.245 7.78827 9.81699 8.55014 9.05513C9.31201 8.29326 9.74002 7.25995 9.74002 6.1825C9.74002 5.10506 9.31201 4.07175 8.55014 3.30988C7.78827 2.54801 6.75496 2.12 5.67751 2.12C4.60007 2.12 3.56676 2.54801 2.80489 3.30988C2.04302 4.07175 1.61501 5.10506 1.61501 6.1825C1.61501 7.25995 2.04302 8.29326 2.80489 9.05513C3.56676 9.81699 4.60007 10.245 5.67751 10.245Z" fill="#D6CBE2"/>
3
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <path d="M9.90654 13.8235L10.042 13.7264C10.4657 13.4226 10.6776 13.2706 10.8671 13.1077C11.8971 12.2225 12.5888 10.9885 12.8191 9.62598C12.8614 9.37522 12.8835 9.10994 12.9275 8.5794L12.9503 8.30507C13.0232 7.4269 13.0159 6.54361 12.9286 5.66685L12.9015 5.39553C12.7487 3.86121 11.8404 2.51644 10.4983 1.83738C8.29161 0.720874 5.70839 0.720874 3.50169 1.83738C2.15956 2.51644 1.25128 3.86121 1.09845 5.39553L1.07143 5.66685C0.984097 6.54361 0.97683 7.4269 1.04972 8.30507L1.07249 8.5794C1.11653 9.10994 1.13855 9.37522 1.18092 9.62598C1.41116 10.9885 2.10292 12.2225 3.13285 13.1077C3.32239 13.2706 3.53433 13.4226 3.95805 13.7264L4.09346 13.8235C4.66955 14.2366 4.95762 14.4432 5.24631 14.5868C6.35447 15.1377 7.64553 15.1377 8.75369 14.5868C9.04238 14.4432 9.33045 14.2367 9.90654 13.8235Z" stroke="white" stroke-width="1.5"/>
4
- <path d="M4.82291 7.8021L6.40624 9.38544L9.17707 6.41669" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- </g>
6
- </svg>
@@ -1,8 +0,0 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <circle cx="10" cy="10" r="9.25" stroke="#7647DA" stroke-width="1.5"/>
4
- <path d="M6.55145 10.2475L9.27492 13.0064L13.425 7.04828" stroke="#7647DA" stroke-width="1.5" stroke-linejoin="round"/>
5
- <circle cx="10" cy="10" r="10" fill="#8656ED"/>
6
- <path d="M5.88235 9.80394L8.62745 12.549L14.1176 7.05884" stroke="white" stroke-width="2.35294"/>
7
- </g>
8
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <circle cx="10" cy="10" r="9.25" stroke="#7647DA" stroke-width="1.5"/>
4
- <path d="M6.55145 10.2475L9.27492 13.0064L13.425 7.04828" stroke="#7647DA" stroke-width="1.5" stroke-linejoin="round"/>
5
- </g>
6
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <path d="M10.8 1L3.94287 9L1.20001 5.8" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
4
- </g>
5
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="14" height="19" viewBox="0 0 14 19" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0 16.72H14V19H0V16.72Z" fill="#D6CBE2"/>
3
- <path d="M5.64095 12.8102V5.17819C5.64095 5.17819 3.6021 7.65608 2.93926 8.22031C2.27642 8.78454 0.847125 7.52269 1.33939 6.67005C1.64216 6.14565 3.2952 3.64443 4.38675 2.2717C5.4783 0.898964 5.8342 0.624404 6.28508 0.235452C6.73595 -0.153499 7.4478 0.00658673 7.75629 0.235409L7.76852 0.244473C8.07639 0.472719 8.51675 0.799185 9.65465 2.2717C10.8123 3.76972 12.1189 5.7509 12.7031 6.67005C13.2872 7.5892 11.6963 8.69302 11.0862 8.22031C10.476 7.7476 8.40897 5.17819 8.40897 5.17819V12.8102C8.40897 13.8258 5.64095 13.8079 5.64095 12.8102Z" fill="#D6CBE2"/>
4
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="18" height="25" viewBox="0 0 18 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0 22H18V25H0V22Z" fill="#D6CBE2"/>
3
- <path d="M7.25265 16.8555V6.81341C7.25265 6.81341 4.63127 10.0738 3.77905 10.8162C2.92683 11.5586 1.08916 9.89827 1.72208 8.77638C2.11134 8.08638 4.23668 4.7953 5.64011 2.98907C7.04353 1.18285 7.50112 0.821585 8.08081 0.309806C8.66051 -0.201973 9.57574 0.00866675 9.97238 0.309749L9.98809 0.321675C10.3839 0.621999 10.9501 1.05156 12.4131 2.98907C13.9015 4.96016 15.5814 7.56698 16.3325 8.77638C17.0836 9.98579 15.0381 11.4382 14.2536 10.8162C13.4692 10.1942 10.8115 6.81341 10.8115 6.81341V16.8555C10.8115 18.1918 7.25265 18.1683 7.25265 16.8555Z" fill="#D6CBE2"/>
4
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="10" height="15" viewBox="0 0 10 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <path d="M1 10.1818L5 13.3636L9 10.1818" stroke="#D6CBE2" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M1 4.18182L5 1.00001L9 4.18182" stroke="#D6CBE2" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
5
- </g>
6
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="18" height="12" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M3.71043 3.82593L9.0065 8.7079L14.3026 3.82593" stroke="#3A3942" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="14" height="9" viewBox="0 0 14 9" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M2.88589 2.86945L7.00506 6.53092L11.1242 2.86945" stroke="#3A3942" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="14" height="9" viewBox="0 0 14 9" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M2.88589 2.86945L7.00506 6.53092L11.1242 2.86945" stroke="#D6CBE2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="path-1-inside-1_3047_23129" fill="white">
3
- <path d="M5.50001 0.0649414L10.4498 5.01469L5.50001 9.96444L0.55026 5.01469L5.50001 0.0649414Z"/>
4
- </mask>
5
- <path d="M5.50001 9.96444L4.08579 11.3786L5.50001 12.7929L6.91422 11.3786L5.50001 9.96444ZM9.03554 3.60048L4.08579 8.55022L6.91422 11.3786L11.864 6.4289L9.03554 3.60048ZM6.91422 8.55022L1.96447 3.60048L-0.863953 6.4289L4.08579 11.3786L6.91422 8.55022Z" fill="black" mask="url(#path-1-inside-1_3047_23129)"/>
6
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <line y1="-1" x2="16" y2="-1" transform="matrix(0.707104 0.70711 -0.707104 0.70711 1.17761 2.59583)" stroke="black" stroke-width="2"/>
3
- <line y1="-1" x2="16" y2="-1" transform="matrix(0.707107 -0.707107 0.707112 0.707101 2.50867 13.9096)" stroke="black" stroke-width="2"/>
4
- </svg>
Binary file
@@ -1,3 +0,0 @@
1
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M12.5 3.5H13V3V2.5C13 2.0124 12.8443 1.58884 12.4698 1.313C12.1287 1.06182 11.6906 1 11.2778 1H2.72222C2.30939 1 1.87133 1.06182 1.53024 1.313C1.15567 1.58884 1 2.0124 1 2.5V3V3.5H1.5H12.5ZM1.5 4H1V4.5V11.2778C1 11.8402 1.28355 12.2851 1.66974 12.5738C2.0478 12.8564 2.53263 13 3.00698 13H11.2778C11.7597 13 12.2031 12.8506 12.5268 12.5268C12.8506 12.2031 13 11.7597 13 11.2778V4.5V4H12.5H1.5ZM0.5 2.52778C0.5 1.41483 1.41483 0.5 2.52778 0.5H11.4722C12.5852 0.5 13.5 1.41483 13.5 2.52778V11.4722C13.5 12.5852 12.5852 13.5 11.4722 13.5H2.52778C1.41483 13.5 0.5 12.5852 0.5 11.4722V2.52778ZM3.36053 6.47164C3.44909 6.38309 3.5692 6.33333 3.69444 6.33333C3.81969 6.33333 3.9398 6.38309 4.02836 6.47164C4.11692 6.5602 4.16667 6.68032 4.16667 6.80556C4.16667 6.9308 4.11692 7.05091 4.02836 7.13947C3.9398 7.22803 3.81969 7.27778 3.69444 7.27778C3.5692 7.27778 3.44909 7.22803 3.36053 7.13947C3.27197 7.05091 3.22222 6.9308 3.22222 6.80556C3.22222 6.68031 3.27197 6.5602 3.36053 6.47164ZM6.66609 6.47164C6.75465 6.38309 6.87476 6.33333 7 6.33333C7.12524 6.33333 7.24535 6.38309 7.33391 6.47164C7.42247 6.5602 7.47222 6.68031 7.47222 6.80556C7.47222 6.9308 7.42247 7.05091 7.33391 7.13947C7.24535 7.22803 7.12524 7.27778 7 7.27778C6.87476 7.27778 6.75465 7.22803 6.66609 7.13947C6.57753 7.05091 6.52778 6.9308 6.52778 6.80556C6.52778 6.68032 6.57753 6.5602 6.66609 6.47164ZM9.97164 6.47164C10.0602 6.38309 10.1803 6.33333 10.3056 6.33333C10.4308 6.33333 10.5509 6.38309 10.6395 6.47164C10.728 6.5602 10.7778 6.68031 10.7778 6.80556C10.7778 6.9308 10.728 7.05091 10.6395 7.13947C10.5509 7.22803 10.4308 7.27778 10.3056 7.27778C10.1803 7.27778 10.0602 7.22803 9.97164 7.13947C9.88309 7.05091 9.83333 6.9308 9.83333 6.80556C9.83333 6.68031 9.88309 6.5602 9.97164 6.47164ZM3.36053 9.97164C3.44909 9.88309 3.5692 9.83333 3.69444 9.83333C3.81969 9.83333 3.9398 9.88309 4.02836 9.97164C4.11692 10.0602 4.16667 10.1803 4.16667 10.3056C4.16667 10.4308 4.11691 10.5509 4.02836 10.6395C3.9398 10.728 3.81969 10.7778 3.69444 10.7778C3.5692 10.7778 3.44909 10.728 3.36053 10.6395C3.27197 10.5509 3.22222 10.4308 3.22222 10.3056C3.22222 10.1803 3.27197 10.0602 3.36053 9.97164ZM6.66609 9.97164C6.75465 9.88309 6.87476 9.83333 7 9.83333C7.12524 9.83333 7.24535 9.88309 7.33391 9.97164C7.42247 10.0602 7.47222 10.1803 7.47222 10.3056C7.47222 10.4308 7.42247 10.5509 7.33391 10.6395C7.24535 10.728 7.12524 10.7778 7 10.7778C6.87476 10.7778 6.75465 10.728 6.66609 10.6395C6.57753 10.5509 6.52778 10.4308 6.52778 10.3056C6.52778 10.1803 6.57753 10.0602 6.66609 9.97164Z" stroke="#D6CBE2"/>
3
- </svg>
@@ -1,6 +0,0 @@
1
- <svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <rect x="0.85" y="0.85" width="11.3" height="8.3" rx="1.15" stroke="#D6CBE2" stroke-width="1.7"/>
4
- <path d="M1 2.5L5.35117 5.26893C6.04435 5.71004 6.93679 5.68234 7.60127 5.19908L12 2" stroke="#D6CBE2" stroke-width="1.7"/>
5
- </g>
6
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="17" height="12" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M16.1142 5.9414L16.1143 5.94168L16.1462 6.00025L16.1144 6.05878C14.5319 8.96792 11.6062 10.75 8.5 10.75C5.39365 10.75 2.46796 8.96776 0.885708 6.05893C0.885684 6.05889 0.885659 6.05884 0.885634 6.05879L0.853633 5.99993L0.885415 5.94145C2.46806 3.03206 5.39362 1.25 8.5 1.25C11.6062 1.25 14.5319 3.03227 16.1142 5.9414Z" stroke="#8D8399" stroke-width="1.5"/>
3
- <path d="M10.75 6C10.75 7.24264 9.74264 8.25 8.5 8.25C7.25736 8.25 6.25 7.24264 6.25 6C6.25 4.75736 7.25736 3.75 8.5 3.75C9.74264 3.75 10.75 4.75736 10.75 6Z" stroke="#8D8399" stroke-width="1.5"/>
4
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="17" height="12" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M16.1142 5.9414L16.1143 5.94168L16.1462 6.00025L16.1144 6.05878C14.5319 8.96792 11.6062 10.75 8.5 10.75C5.39365 10.75 2.46796 8.96776 0.885708 6.05893C0.885684 6.05889 0.885659 6.05884 0.885634 6.05879L0.853633 5.99993L0.885415 5.94145C2.46806 3.03206 5.39362 1.25 8.5 1.25C11.6062 1.25 14.5319 3.03227 16.1142 5.9414Z" stroke="#8D8399" stroke-width="1.5"/>
3
- <path d="M10.75 6C10.75 7.24264 9.74264 8.25 8.5 8.25C7.25736 8.25 6.25 7.24264 6.25 6C6.25 4.75736 7.25736 3.75 8.5 3.75C9.74264 3.75 10.75 4.75736 10.75 6Z" stroke="#8D8399" stroke-width="1.5"/>
4
- <path d="M2 9.5L15 2.5" stroke="#FBFBFB" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
@@ -1,7 +0,0 @@
1
- <svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g>
3
- <rect width="12" height="2" rx="1" fill="#D6CBE2"/>
4
- <rect x="2" y="4" width="8" height="2" rx="1" fill="#D6CBE2"/>
5
- <rect x="4" y="8" width="4" height="2" rx="1" fill="#D6CBE2"/>
6
- </g>
7
- </svg>