浏览代码

Add script

olivermrbl 2 年之前
父节点
当前提交
29a00b6f27
共有 41 个文件被更改,包括 1569 次插入2 次删除
  1. 1 0
      build/assets/404-c566c6bb.js
  2. 二进制
      build/assets/Inter-Regular-85169bc3.ttf
  3. 二进制
      build/assets/Inter-SemiBold-5169d358.ttf
  4. 二进制
      build/assets/RobotoMono-Bold-57c46d1e.ttf
  5. 二进制
      build/assets/RobotoMono-Regular-6762d1fb.ttf
  6. 0 0
      build/assets/a-14d94dc6.js
  7. 0 0
      build/assets/a-d8ab0fea.css
  8. 1 0
      build/assets/auto-track-4c453922.js
  9. 1 0
      build/assets/error-messages-d2d0bb30.js
  10. 1 0
      build/assets/helpers-562b3d1f.js
  11. 16 0
      build/assets/icon-minus-gray-eddb428c.svg
  12. 16 0
      build/assets/icon-plus-gray-efa967be.svg
  13. 8 0
      build/assets/index-0d8158eb.js
  14. 1 0
      build/assets/index-4c868466.js
  15. 0 0
      build/assets/index-5ccbabb8.js
  16. 1 0
      build/assets/index-77086f94.js
  17. 0 0
      build/assets/index-845e4de2.js
  18. 0 0
      build/assets/index-9af9f9f3.js
  19. 1 0
      build/assets/index-9d45b50e.js
  20. 1 0
      build/assets/index-ab427eee.js
  21. 1 0
      build/assets/index-aba65090.js
  22. 1 0
      build/assets/index-ae9752a7.js
  23. 1488 0
      build/assets/index-b36504b3.js
  24. 0 0
      build/assets/index-c0b93546.js
  25. 0 0
      build/assets/index-cac28dfc.css
  26. 0 0
      build/assets/index.esm-07f1e6d3.js
  27. 1 0
      build/assets/index.modern-c903a5d6.js
  28. 0 0
      build/assets/index.umd-910feecf.js
  29. 0 0
      build/assets/invite-0748e99e.js
  30. 1 0
      build/assets/is-plan-event-enabled-a83d33b8.js
  31. 0 0
      build/assets/layout-9e52ad07.js
  32. 0 0
      build/assets/login-5ae15a5e.js
  33. 1 0
      build/assets/login-layout-d129ef85.js
  34. 0 0
      build/assets/reset-password-95003483.js
  35. 0 0
      build/assets/use-notification-56391e62.js
  36. 1 0
      build/build-manifest.json
  37. 15 0
      build/index.html
  38. 10 0
      build/logo.svg
  39. 1 2
      medusa-config.js
  40. 二进制
      medusa-db.sql
  41. 1 0
      package.json

+ 1 - 0
build/assets/404-c566c6bb.js

@@ -0,0 +1 @@
+import{j as o,a as t}from"./index-0d8158eb.js";import{S as r}from"./index-845e4de2.js";import{L as s}from"./layout-9e52ad07.js";import"./use-notification-56391e62.js";import"./index-aba65090.js";import"./error-messages-d2d0bb30.js";import"./index.esm-07f1e6d3.js";const h=()=>o(s,{children:[t(r,{title:"404: Not found"}),t("h1",{children:"NOT FOUND"}),t("p",{children:"You just hit a route that doesn't exist... the sadness."})]});export{h as default};

二进制
build/assets/Inter-Regular-85169bc3.ttf


二进制
build/assets/Inter-SemiBold-5169d358.ttf


二进制
build/assets/RobotoMono-Bold-57c46d1e.ttf


二进制
build/assets/RobotoMono-Regular-6762d1fb.ttf


文件差异内容过多而无法显示
+ 0 - 0
build/assets/a-14d94dc6.js


文件差异内容过多而无法显示
+ 0 - 0
build/assets/a-d8ab0fea.css


+ 1 - 0
build/assets/auto-track-4c453922.js

@@ -0,0 +1 @@
+import{q as m}from"./a-14d94dc6.js";import"./index-0d8158eb.js";import"./layout-9e52ad07.js";import"./use-notification-56391e62.js";import"./index-aba65090.js";import"./error-messages-d2d0bb30.js";import"./index.esm-07f1e6d3.js";import"./index-845e4de2.js";import"./index-c0b93546.js";import"./index-9af9f9f3.js";function d(t){var r=t;return!!(r.ctrlKey||r.shiftKey||r.metaKey||r.button&&r.button==1)}function b(t,r){return!!(t.target==="_blank"&&r)}function D(t,r,e,i){var f=this,u=[];return t?(t instanceof Element?u=[t]:"toArray"in t?u=t.toArray():u=t,u.forEach(function(n){n.addEventListener("click",function(a){var c,o,s=r instanceof Function?r(n):r,v=e instanceof Function?e(n):e,h=n.getAttribute("href")||n.getAttributeNS("http://www.w3.org/1999/xlink","href")||n.getAttribute("xlink:href")||((c=n.getElementsByTagName("a")[0])===null||c===void 0?void 0:c.getAttribute("href")),l=m(f.track(s,v,i??{}),(o=f.settings.timeout)!==null&&o!==void 0?o:500);!b(n,h)&&!d(a)&&h&&(a.preventDefault?a.preventDefault():a.returnValue=!1,l.catch(console.error).then(function(){window.location.href=h}).catch(console.error))},!1)}),this):this}function L(t,r,e,i){var f=this;if(!t)return this;t instanceof HTMLFormElement&&(t=[t]);var u=t;return u.forEach(function(n){if(!(n instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var a=function(o){var s;o.preventDefault?o.preventDefault():o.returnValue=!1;var v=r instanceof Function?r(n):r,h=e instanceof Function?e(n):e,l=m(f.track(v,h,i??{}),(s=f.settings.timeout)!==null&&s!==void 0?s:500);l.catch(console.error).then(function(){n.submit()}).catch(console.error)},c=window.jQuery||window.Zepto;c?c(n).submit(a):n.addEventListener("submit",a,!1)}),this}export{L as form,D as link};

+ 1 - 0
build/assets/error-messages-d2d0bb30.js

@@ -0,0 +1 @@
+const t=s=>{var a,g;let e=(g=(a=s==null?void 0:s.response)==null?void 0:a.data)==null?void 0:g.message;return e[0].message&&(e=e[0].message),e||(e="Something went wrong, Please try again."),e};export{t as g};

+ 1 - 0
build/assets/helpers-562b3d1f.js

@@ -0,0 +1 @@
+function e(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()==="object"}export{e as i};

+ 16 - 0
build/assets/icon-minus-gray-eddb428c.svg

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg width="13px" height="3px" viewBox="0 0 13 3" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 40 (33762) - http://www.bohemiancoding.com/sketch -->
+    <title>Combined Shape</title>
+    <desc>Created with Sketch.</desc>
+    <defs></defs>
+    <g id="05_Navigation" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="Navigation_New-item1" transform="translate(-444.000000, -376.000000)" fill="#979797">
+            <g id="teat-area" transform="translate(424.000000, 146.000000)">
+                <g id="organization" transform="translate(0.000000, 201.000000)">
+                    <rect id="Combined-Shape" x="20" y="29.5" width="13" height="2" rx="1"></rect>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>

+ 16 - 0
build/assets/icon-plus-gray-efa967be.svg

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg width="14px" height="13px" viewBox="0 0 14 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 40 (33762) - http://www.bohemiancoding.com/sketch -->
+    <title>Combined Shape</title>
+    <desc>Created with Sketch.</desc>
+    <defs></defs>
+    <g id="05_Navigation" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="Navigation_New-item1" transform="translate(-444.000000, -281.000000)" fill="#979797">
+            <g id="teat-area" transform="translate(424.000000, 146.000000)">
+                <g id="knowledge-hub" transform="translate(0.000000, 111.000000)">
+                    <path d="M25.5622066,29.5 L21.0477946,29.5 C20.4954882,29.5 20.0469484,29.9477153 20.0469484,30.5 C20.0469484,31.0561352 20.4950425,31.5 21.0477946,31.5 L25.5622066,31.5 L25.5622066,36.014412 C25.5622066,36.5667183 26.0099218,37.0152582 26.5622066,37.0152582 C27.1183418,37.0152582 27.5622066,36.5671641 27.5622066,36.014412 L27.5622066,31.5 L32.0766186,31.5 C32.6289249,31.5 33.0774648,31.0522847 33.0774648,30.5 C33.0774648,29.9438648 32.6293707,29.5 32.0766186,29.5 L27.5622066,29.5 L27.5622066,24.985588 C27.5622066,24.4332817 27.1144913,23.9847418 26.5622066,23.9847418 C26.0060714,23.9847418 25.5622066,24.4328359 25.5622066,24.985588 L25.5622066,29.5 Z" id="Combined-Shape"></path>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>

文件差异内容过多而无法显示
+ 8 - 0
build/assets/index-0d8158eb.js


+ 1 - 0
build/assets/index-4c868466.js

@@ -0,0 +1 @@
+import{H as e}from"./index-0d8158eb.js";import{_ as n,a as p}from"./a-14d94dc6.js";import"./layout-9e52ad07.js";import"./use-notification-56391e62.js";import"./index-aba65090.js";import"./error-messages-d2d0bb30.js";import"./index.esm-07f1e6d3.js";import"./index-845e4de2.js";import"./index-c0b93546.js";import"./index-9af9f9f3.js";function v(i){return n(this,void 0,void 0,function(){var r;return p(this,function(t){switch(t.label){case 0:return[4,e(()=>import("./index.umd-910feecf.js").then(o=>o.i),["assets/index.umd-910feecf.js","assets/index-0d8158eb.js","assets/index-cac28dfc.css"])];case 1:return r=t.sent(),i._plugins=r,[2]}})})}export{v as loadLegacyVideoPlugins};

文件差异内容过多而无法显示
+ 0 - 0
build/assets/index-5ccbabb8.js


+ 1 - 0
build/assets/index-77086f94.js

@@ -0,0 +1 @@
+import{c as a}from"./a-14d94dc6.js";import{i as m}from"./is-plan-event-enabled-a83d33b8.js";import"./index-0d8158eb.js";import"./layout-9e52ad07.js";import"./use-notification-56391e62.js";import"./index-aba65090.js";import"./error-messages-d2d0bb30.js";import"./index.esm-07f1e6d3.js";import"./index-845e4de2.js";import"./index-c0b93546.js";import"./index-9af9f9f3.js";function c(r,u){var n,i;if(!r||!Object.keys(r))return{};var o=r.integrations?Object.keys(r.integrations).filter(function(e){return r.integrations[e]===!1}):[],s=[];return((n=u.remotePlugins)!==null&&n!==void 0?n:[]).forEach(function(e){o.forEach(function(t){(e.name.includes(t)||t.includes(e.name))&&s.push(e.name)})}),((i=u.remotePlugins)!==null&&i!==void 0?i:[]).reduce(function(e,t){return t.settings.subscriptions&&s.includes(t.name)&&t.settings.subscriptions.forEach(function(f){return e["".concat(t.name," ").concat(f.partnerAction)]=!1}),e},{})}function A(r,u){function n(i){var o=r,s=i.event.event;if(o&&s){var e=o[s];if(m(o,e)){var t=c(e,u);i.updateEvent("integrations",a(a(a({},i.event.integrations),e==null?void 0:e.integrations),t))}else return i.updateEvent("integrations",a(a({},i.event.integrations),{All:!1,"Segment.io":!0})),i}return i}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:n,alias:n,track:n,identify:n,group:n}}export{A as schemaFilter};

文件差异内容过多而无法显示
+ 0 - 0
build/assets/index-845e4de2.js


文件差异内容过多而无法显示
+ 0 - 0
build/assets/index-9af9f9f3.js


+ 1 - 0
build/assets/index-9d45b50e.js

@@ -0,0 +1 @@
+import{r as k}from"./a-14d94dc6.js";import{i as O}from"./helpers-562b3d1f.js";import"./index-0d8158eb.js";import"./layout-9e52ad07.js";import"./use-notification-56391e62.js";import"./index-aba65090.js";import"./error-messages-d2d0bb30.js";import"./index.esm-07f1e6d3.js";import"./index-845e4de2.js";import"./index-c0b93546.js";import"./index-9af9f9f3.js";function m(a,e){return Object.keys(e).reduce(function(i,t){if(t.startsWith(a)){var r=t.substr(a.length);i[r]=e[t]}return i},{})}function z(a,e){var i=document.createElement("a");i.href=e;var t=i.search.slice(1),r=t.split("&").reduce(function(d,P){var v=P.split("="),b=v[0],S=v[1];return d[b]=k(S),d},{}),s=[],j=r.ajs_uid,f=r.ajs_event,c=r.ajs_aid,o=O(a.options.useQueryString)?a.options.useQueryString:{},n=o.aid,l=n===void 0?/.+/:n,u=o.uid,A=u===void 0?/.+/:u;if(c){var p=Array.isArray(r.ajs_aid)?r.ajs_aid[0]:r.ajs_aid;l.test(p)&&a.setAnonymousId(p)}if(j){var _=Array.isArray(r.ajs_uid)?r.ajs_uid[0]:r.ajs_uid;if(A.test(_)){var h=m("ajs_trait_",r);s.push(a.identify(_,h))}}if(f){var y=Array.isArray(r.ajs_event)?r.ajs_event[0]:r.ajs_event,g=m("ajs_prop_",r);s.push(a.track(y,g))}return Promise.all(s)}export{z as queryString};

+ 1 - 0
build/assets/index-ab427eee.js

@@ -0,0 +1 @@
+import{u as a,r,j as t,a as e,S as n}from"./index-0d8158eb.js";import{S as i}from"./index-845e4de2.js";const f=()=>{const s=a();return r.useEffect(()=>{s("/a/orders")},[]),t("div",{className:"bg-grey-5 text-grey-90 flex h-screen w-full items-center justify-center",children:[e(i,{title:"Home"}),e(n,{variant:"secondary"})]})};export{f as default};

+ 1 - 0
build/assets/index-aba65090.js

@@ -0,0 +1 @@
+import{j as n,a as t}from"./index-0d8158eb.js";const i=({size:o="24",color:r="currentColor",...e})=>n("svg",{width:o,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t("path",{d:"M10 17.5C14.1422 17.5 17.5 14.1422 17.5 10C17.5 5.85775 14.1422 2.5 10 2.5C5.85775 2.5 2.5 5.85775 2.5 10C2.5 14.1422 5.85775 17.5 10 17.5Z",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M7.5 9.99998L9.16667 11.6666L12.5 8.33331",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});export{i as C};

+ 1 - 0
build/assets/index-ae9752a7.js

@@ -0,0 +1 @@
+import{_ as f,a as v,h as b,g as M,l as _}from"./a-14d94dc6.js";import"./index-0d8158eb.js";import"./layout-9e52ad07.js";import"./use-notification-56391e62.js";import"./index-aba65090.js";import"./error-messages-d2d0bb30.js";import"./index.esm-07f1e6d3.js";import"./index-845e4de2.js";import"./index-c0b93546.js";import"./index-9af9f9f3.js";function O(o,w,h){var i;return f(this,void 0,void 0,function(){var s,l,c,d,a,g=this;return v(this,function(m){switch(m.label){case 0:return b()?[2,[]]:(s=M(),l=(i=w.enabledMiddleware)!==null&&i!==void 0?i:{},c=Object.entries(l).filter(function(r){r[0];var e=r[1];return e}).map(function(r){var e=r[0];return e}),d=c.map(function(r){return f(g,void 0,void 0,function(){var e,n,u,p;return v(this,function(t){switch(t.label){case 0:e=r.replace("@segment/",""),n=e,h&&(n=btoa(e).replace(/=/g,"")),u="".concat(s,"/middleware/").concat(n,"/latest/").concat(n,".js.gz"),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,_(u)];case 2:return t.sent(),[2,window["".concat(e,"Middleware")]];case 3:return p=t.sent(),o.log("error",p),o.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}})})}),[4,Promise.all(d)]);case 1:return a=m.sent(),a=a.filter(Boolean),[2,a]}})})}export{O as remoteMiddlewares};

文件差异内容过多而无法显示
+ 1488 - 0
build/assets/index-b36504b3.js


文件差异内容过多而无法显示
+ 0 - 0
build/assets/index-c0b93546.js


文件差异内容过多而无法显示
+ 0 - 0
build/assets/index-cac28dfc.css


文件差异内容过多而无法显示
+ 0 - 0
build/assets/index.esm-07f1e6d3.js


+ 1 - 0
build/assets/index.modern-c903a5d6.js

@@ -0,0 +1 @@
+import"./index-0d8158eb.js";function p(r){try{if(r.split(".").length!==3||typeof r!="string")return null;var e=r.split(".")[1],n="=".repeat((4-e.length%4)%4),o=e.replace("-","+").replace("_","/")+n,a=decodeURIComponent(window.atob(o).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a);return i}catch{return null}}export{p as d};

文件差异内容过多而无法显示
+ 0 - 0
build/assets/index.umd-910feecf.js


文件差异内容过多而无法显示
+ 0 - 0
build/assets/invite-0748e99e.js


+ 1 - 0
build/assets/is-plan-event-enabled-a83d33b8.js

@@ -0,0 +1 @@
+function l(e,d){var o,i;return typeof(d==null?void 0:d.enabled)=="boolean"?d.enabled:(i=(o=e==null?void 0:e.__default)===null||o===void 0?void 0:o.enabled)!==null&&i!==void 0?i:!0}export{l as i};

文件差异内容过多而无法显示
+ 0 - 0
build/assets/layout-9e52ad07.js


文件差异内容过多而无法显示
+ 0 - 0
build/assets/login-5ae15a5e.js


+ 1 - 0
build/assets/login-layout-d129ef85.js

@@ -0,0 +1 @@
+import{R as w,r,j as o,c as d,a as e}from"./index-0d8158eb.js";import{L as b,a as y,E as v}from"./index-9af9f9f3.js";const F=w.forwardRef(({placeholder:a,name:l,key:u,required:N,onChange:f,onFocus:m,className:h,type:s,...t},x)=>{const i=r.useRef(null),[n,p]=r.useState(!1),[g,c]=r.useState(s);return r.useEffect(()=>{s==="password"&&n&&c("text"),s==="password"&&!n&&c("password")},[s,n]),r.useImperativeHandle(x,()=>i.current),o("div",{className:d("mb-xsmall rounded-rounded h-[48px] w-[320px] overflow-hidden border last:mb-0","bg-grey-5 inter-base-regular placeholder:text-grey-40","focus-within:shadow-input focus-within:border-violet-60","flex items-center",{"text-grey-40 pointer-events-none focus-within:border-none focus-within:shadow-none":t.readOnly},h),children:[t.readOnly&&e(b,{size:16,className:"text-grey-40 ml-base"}),e("input",{className:d("remove-number-spinner leading-base w-full bg-transparent py-3 px-4 outline-none outline-0",{"pl-xsmall":t.readOnly}),ref:i,name:l,placeholder:a||"Placeholder",onChange:f,onFocus:m,type:g,...t},u||l),s==="password"&&e("button",{type:"button",onClick:()=>p(!n),className:"text-grey-40 focus:text-violet-60 px-4 focus:outline-none",children:n?e(y,{}):e(v,{})})]})}),L=({children:a})=>e("div",{className:"flex min-h-screen flex-col",children:e("div",{className:"grid min-h-screen grid-cols-1 grid-rows-1",children:o("div",{className:"flex flex-col items-center",style:{background:"linear-gradient(73.29deg, #7C53FF 0%, #F796FF 100%)"},children:[a,o("div",{className:"text-grey-0 inter-base-regular pb-12",children:["© Medusa Commerce ",e("span",{children:"·"})," ",e("a",{style:{color:"inherit",textDecoration:"none"},href:"mailto:hello@medusajs.com",children:"Contact"})]})]})})});export{L,F as S};

文件差异内容过多而无法显示
+ 0 - 0
build/assets/reset-password-95003483.js


文件差异内容过多而无法显示
+ 0 - 0
build/assets/use-notification-56391e62.js


+ 1 - 0
build/build-manifest.json

@@ -0,0 +1 @@
+{"build":{},"globals":{"base":"app"}}

+ 15 - 0
build/index.html

@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <link rel="icon" type="image/svg+xml" href="/app/logo.svg" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>Medusa</title>
+    <script type="module" crossorigin src="/app/assets/index-0d8158eb.js"></script>
+    <link rel="stylesheet" href="/app/assets/index-cac28dfc.css">
+  </head>
+  <body>
+    <div id="root"></div>
+    
+  </body>
+</html>

+ 10 - 0
build/logo.svg

@@ -0,0 +1,10 @@
+<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
+    xmlns="http://www.w3.org/2000/svg">
+    <path d="M26.4471 5.86972L19.6283 1.96144C17.3973 0.679521 14.6635 0.679521 12.4325 1.96144L5.58223 5.86972C3.38261 7.15164 2 9.52788 2 12.0604V19.9083C2 22.4721 3.38261 24.8171 5.58223 26.099L12.401 30.0386C14.6321 31.3205 17.3659 31.3205 19.5969 30.0386L26.4157 26.099C28.6468 24.8171 29.9979 22.4721 29.9979 19.9083V12.0604C30.0608 9.52788 28.6782 7.15164 26.4471 5.86972ZM16.0147 22.9724C12.1496 22.9724 9.00734 19.8458 9.00734 16C9.00734 12.1542 12.1496 9.02762 16.0147 9.02762C19.8797 9.02762 23.0534 12.1542 23.0534 16C23.0534 19.8458 19.9111 22.9724 16.0147 22.9724Z" fill="url(#paint0_linear_362_938)"/>
+    <defs>
+        <linearGradient id="paint0_linear_362_938" x1="2" y1="31" x2="35.7561" y2="21.5406" gradientUnits="userSpaceOnUse">
+            <stop stop-color="#7C53FF"/>
+            <stop offset="1" stop-color="#F796FF"/>
+        </linearGradient>
+    </defs>
+</svg>

+ 1 - 2
medusa-config.js

@@ -36,8 +36,7 @@ const plugins = [
     resolve: "@medusajs/admin",
     /** @type {import('@medusajs/admin').PluginOptions} */
     options: {
-      path: "app",
-      outDir: "admin-build",
+      autoRebuild: true
     },
   },
 ];

二进制
medusa-db.sql


+ 1 - 0
package.json

@@ -7,6 +7,7 @@
   "scripts": {
     "seed": "medusa seed -f ./data/seed.json",
     "build": "babel src -d dist --extensions \".ts,.js\"",
+    "build:admin": "medusa-admin build",
     "start": "medusa develop"
   },
   "dependencies": {

部分文件因为文件数量过多而无法显示