From f6bc57359a54d61cb820cfa941fbf638c5a32130 Mon Sep 17 00:00:00 2001 From: alswl Date: Sun, 12 May 2024 03:46:46 +0000 Subject: [PATCH] deploy: 9c658289ebdf800aa10dd1cbac154696cdc916cb --- p__Home__index.async.js | 4 ++-- p__Home__index.chunk.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p__Home__index.async.js b/p__Home__index.async.js index 79af9fe..b82dd6c 100644 --- a/p__Home__index.async.js +++ b/p__Home__index.async.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunkdbml_editor=self.webpackChunkdbml_editor||[]).push([[3371],{24676:function(X,N,t){t.r(N),t.d(N,{default:function(){return z}});var F=t(48305),y=t.n(F),T=t(21409),Z=t(20240),D=t(87255),P=t(83131),j=t(21375),C=t(47475),A=t(48831),f=t(93236),E=t(30563);function H(e,a,n){var o=e.name;return e.pk&&(o+=" \u{1F511}"),e.not_null&&(o+=" \u{1F6AB}"),{id:"".concat(a,"-").concat(n,"-").concat(e.name),group:"list",attrs:{portNameLabel:{text:o},portTypeLabel:{text:e.type.type_name||"unknown"}}}}function B(e,a,n){return{id:"".concat(a,"-").concat(n,"-note"),group:"note",attrs:{note:{text:e}}}}function O(e,a){for(var n=[],o=0;o users.id // many-to-one -`,l=(0,f.useState)(r),s=y()(l,2),u=s[0],v=s[1],b=(0,f.useState)({}),i=y()(b,2),h=i[0],d=i[1],x=(0,f.useRef)(null),L=new D._b;new T.Me({type:"grid",width:600,height:400,rows:6,cols:4});var V=new T.Vq({type:"dagre",rankdir:"LR",align:"UL",ranksep:80,nodesep:60,controlPoints:!0}),S=V;(0,f.useEffect)(function(){if(x.current){var m=new Z.kJ({container:x.current,connecting:{anchor:{name:"midSide",args:{direction:"H"}},allowBlank:!1,allowEdge:!1,allowNode:!1},background:{color:"#F2F7FA"},interacting:{nodeMovable:!0,edgeMovable:!1,edgeLabelMovable:!1,arrowheadMovable:!1,vertexMovable:!1,vertexAddable:!1,vertexDeletable:!1},panning:!0,mousewheel:!1});m.use(new w.H({enabled:!0})),m.fromJSON(h),m.centerContent()}},[h]);var k=function(R,W){var p=L.parse(u,"dbmlv2"),g=M(p);d(S.layout(g))},I=function(R,W){var p=L.parse(R,"dbmlv2");console.log(p);var g=M(p);console.log(g),d(S.layout(g))},K=(0,A.Z)(I,500),Q=(0,J.useModel)("global"),Y=Q.name;return(0,c.jsx)(G._z,{ghost:!0,header:{title:""},children:(0,c.jsxs)(j.Z,{children:[(0,c.jsx)(C.Z,{span:12,children:(0,c.jsx)(E.ZP,{language:"dbml",theme:"vs-dark",value:u,options:{selectOnLineNumbers:!0,minimap:{enabled:!1}},onChange:K,editorDidMount:k})}),(0,c.jsx)(C.Z,{span:12,children:(0,c.jsx)("div",{className:"react-shape-app",children:(0,c.jsx)("div",{className:"app-content",ref:x})})})]})})}}}]); +`,c=(0,h.useState)(r),s=y()(c,2),u=s[0],v=s[1],x=(0,h.useState)({}),i=y()(x,2),f=i[0],d=i[1],b=(0,h.useRef)(null),L=new j._b;new T.Me({type:"grid",width:600,height:400,rows:6,cols:4});var V=new T.Vq({type:"dagre",rankdir:"LR",align:"UL",ranksep:80,nodesep:60,controlPoints:!0}),S=V;(0,h.useEffect)(function(){if(b.current){var m=new Z.kJ({container:b.current,connecting:{anchor:{name:"midSide",args:{direction:"H"}},allowBlank:!1,allowEdge:!1,allowNode:!1},background:{color:"#F2F7FA"},interacting:{nodeMovable:!0,edgeMovable:!1,edgeLabelMovable:!1,arrowheadMovable:!1,vertexMovable:!1,vertexAddable:!1,vertexDeletable:!1},panning:!0,mousewheel:!1});m.use(new $.H({enabled:!0})),m.fromJSON(f),m.centerContent()}},[f]);var k=function(R,W){var g=L.parse(u,"dbmlv2"),p=M(g);d(S.layout(p))},I=function(R,W){var g=L.parse(R,"dbmlv2");console.log(g);var p=M(g);console.log(p),d(S.layout(p))},K=(0,A.Z)(I,500),Q=(0,J.useModel)("global"),Y=Q.name;return(0,l.jsx)(G._z,{ghost:!0,header:{title:""},children:(0,l.jsxs)(P.Z,{gutter:[8,8],children:[(0,l.jsx)(C.Z,{xxl:12,xl:12,lg:12,md:24,sm:24,xs:24,children:(0,l.jsx)("div",{className:"editor",children:(0,l.jsx)(E.ZP,{width:"100%",language:"dbml",theme:"vs-dark",value:u,options:{selectOnLineNumbers:!0,minimap:{enabled:!1},automaticLayout:!0},onChange:K,editorDidMount:k})})}),(0,l.jsx)(C.Z,{xxl:12,xl:12,lg:12,md:24,sm:24,xs:24,children:(0,l.jsx)("div",{className:"react-shape-app",children:(0,l.jsx)("div",{className:"app-content",ref:b})})})]})})}}}]); diff --git a/p__Home__index.chunk.css b/p__Home__index.chunk.css index 82ae085..14a223e 100644 --- a/p__Home__index.chunk.css +++ b/p__Home__index.chunk.css @@ -1 +1 @@ -.react-shape-app{display:flex;width:100%;padding:0;font-family:sans-serif}.react-shape-app .app-content{flex:1 1;height:800px;margin-right:8px;margin-left:8px;border-radius:5px;box-shadow:0 12px 5px -10px #0000001a,0 0 4px #0000001a}.react-shape-app .custom-react-node{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:#fff;border:1px solid #8f8f8f;border-radius:6px}.react-shape-app .custom-react-node span{display:inline-block;width:100%;height:100%} +.react-shape-app{display:flex;width:100%;padding:0;font-family:sans-serif}.react-shape-app .app-content{flex:1 1;height:800px;border-radius:5px;box-shadow:0 12px 5px -10px #0000001a,0 0 4px #0000001a}.react-shape-app .custom-react-node{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:#fff;border:1px solid #8f8f8f;border-radius:6px}.react-shape-app .custom-react-node span{display:inline-block;width:100%;height:100%}.editor{width:100%;height:800px}