@zenuml/core 3.24.1 → 3.24.3

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.
package/.dockerignore ADDED
@@ -0,0 +1,19 @@
1
+ node_modules
2
+ .git
3
+ .gitignore
4
+ .github
5
+ *.md
6
+ dist
7
+ .watchmanconfig
8
+ .prettierrc
9
+ .prettierignore
10
+ .editorconfig
11
+ .eslintignore
12
+ .eslintrc.js
13
+ .git-blame-ignore-revs
14
+ .vscode
15
+ cypress
16
+ cypress.config.ts
17
+ docs
18
+ test
19
+ vite.config.lib.js
package/Dockerfile ADDED
@@ -0,0 +1,36 @@
1
+ FROM node:20-slim AS base
2
+
3
+ # Set environment variables for pnpm
4
+ ENV PNPM_HOME="/pnpm"
5
+ ENV PATH="$PNPM_HOME:$PATH"
6
+ ENV DOCKER=true
7
+
8
+ # Enable corepack to use pnpm
9
+ RUN corepack enable
10
+
11
+ # Set the working directory
12
+ WORKDIR /app
13
+
14
+ # Copy the project files to the working directory
15
+ COPY . .
16
+
17
+ RUN pnpm add -g serve
18
+
19
+ FROM base As prod-deps
20
+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
21
+ FROM base AS deps
22
+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
23
+
24
+ FROM base AS build
25
+ COPY --from=deps /app/node_modules /app/node_modules
26
+ RUN pnpm build:site
27
+
28
+ FROM base
29
+ COPY --from=prod-deps /app/node_modules /app/node_modules
30
+ COPY --from=build /app/dist /app/dist
31
+
32
+ # Expose the port the app runs on
33
+ EXPOSE 8080
34
+
35
+ # Command to run the application
36
+ CMD ["serve", "-s", "dist", "-l", "8080"]
package/README.md CHANGED
@@ -90,6 +90,31 @@ tunnels for this.
90
90
  3. You will be given a command that install a service locally. Run it.
91
91
  4. Your localhost:8080 will be available at `air.zenuml.com`.
92
92
 
93
+ ### Docker
94
+
95
+ To run the application using Docker, follow these steps:
96
+
97
+ 1. **Build the Docker image**:
98
+ Navigate to the root directory of the project and run the following command to build the Docker image:
99
+
100
+ ```bash
101
+ docker build -t zenuml-core .
102
+ ```
103
+
104
+ 2. **Run the Docker container**:
105
+ After building the image, you can run the Docker container with the following command:
106
+
107
+ ```bash
108
+ docker run -p 8080:8080 zenuml-core
109
+ ```
110
+
111
+ This will start the application and map port 8080 of the container to port 8080 on your local machine.
112
+
113
+ 3. **Access the application**:
114
+ Open your web browser and navigate to `http://localhost:8080` to access the application.
115
+
116
+ Make sure Docker is installed and running on your machine before executing these commands.
117
+
93
118
  # Code Structure
94
119
 
95
120
  This repository contains both the DSL parser and the renderer.
@@ -1,4 +1,4 @@
1
- import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ve, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, P as bt, o as Pe, z as Ct, A as At, a as ge, c as Ot, B as Tt, C as St, D as Rt, E as Et, G as Pt, H as Lt } from "./core.0addea29.js";
1
+ import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ve, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, P as bt, o as Pe, z as Ct, A as At, a as ge, c as Ot, B as Tt, C as St, D as Rt, E as Et, G as Pt, H as Lt } from "./core.a4f74b20.js";
2
2
  const Ie = ["top", "right", "bottom", "left"], Le = ["start", "end"], Fe = /* @__PURE__ */ Ie.reduce((e, t) => e.concat(t, t + "-" + Le[0], t + "-" + Le[1]), []), Z = Math.min, q = Math.max, ae = Math.round, le = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
@@ -1789,6 +1789,8 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1789
1789
  }
1790
1790
  ];
1791
1791
  return (d, g) => (Pe(), Ct(H(_n), {
1792
+ "vue-transition": "",
1793
+ id: "style-panel",
1792
1794
  key: "tool",
1793
1795
  onInitial: c,
1794
1796
  placement: "top",
@@ -1819,4 +1821,4 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1819
1821
  export {
1820
1822
  Un as default
1821
1823
  };
1822
- //# sourceMappingURL=StylePanel.18813bbe.js.map
1824
+ //# sourceMappingURL=StylePanel.1da89652.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.0addea29.js";
1
+ import { o as e, c as o, a as t } from "./core.a4f74b20.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -21,4 +21,4 @@ export {
21
21
  i as default,
22
22
  c as render
23
23
  };
24
- //# sourceMappingURL=close.4da8e38d.js.map
24
+ //# sourceMappingURL=close.56231193.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.0addea29.js";
1
+ import { o as e, c as o, a as t } from "./core.a4f74b20.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -16,4 +16,4 @@ export {
16
16
  h as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=collapse-expanded.dcee2ef9.js.map
19
+ //# sourceMappingURL=collapse-expanded.6fe2e173.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.0addea29.js";
1
+ import { o, c as t, a as e } from "./core.a4f74b20.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "currentColor",
@@ -29,4 +29,4 @@ export {
29
29
  i as default,
30
30
  s as render
31
31
  };
32
- //# sourceMappingURL=collapse-unexpanded.b022972f.js.map
32
+ //# sourceMappingURL=collapse-unexpanded.6b5b7eda.js.map