fastapi-voyager 0.14.0__py3-none-any.whl → 0.14.1__py3-none-any.whl

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.
@@ -1,2 +1,2 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.14.0"
2
+ __version__ = "0.14.1"
@@ -151,11 +151,6 @@ export class GraphUI {
151
151
  } else {
152
152
  self.currentSelection = [obj];
153
153
  self._highlight();
154
- try {
155
- self.options.resetCb();
156
- } catch (e) {
157
- console.warn("resetCb callback failed", e);
158
- }
159
154
  }
160
155
  });
161
156
 
@@ -62,6 +62,15 @@
62
62
  border-top: 0; */
63
63
  }
64
64
 
65
+ .inherit-flow {
66
+ /* stroke-width:2; */
67
+ stroke-dasharray: 8 6; /* dash pattern */
68
+ stroke-linecap: round;
69
+ animation: dash 2s linear infinite;
70
+ animation-direction: reverse;
71
+ }
72
+ @keyframes dash { to { stroke-dashoffset: -14; } }
73
+
65
74
  .adjust-fit {
66
75
  height: calc(100vh - 54px);
67
76
  }
@@ -140,6 +149,7 @@
140
149
  </div>
141
150
  <div class="col-auto row items-center q-gutter-sm">
142
151
  <q-select
152
+ v-show="!store.state.search.invisible"
143
153
  dense
144
154
  outlined
145
155
  use-input
@@ -170,6 +180,7 @@
170
180
  </q-select>
171
181
 
172
182
  <q-select
183
+ v-show="!store.state.search.invisible"
173
184
  dense
174
185
  outlined
175
186
  v-model="store.state.search.fieldName"
@@ -380,7 +391,7 @@
380
391
  title="show module cluster"
381
392
  />
382
393
  </div>
383
- <div class="q-mt-sm" v-if="store.state.config.enable_pydantic_resolve_meta">
394
+ <div class="q-mt-sm" v-if="store.state.mode == 'voyager' && store.state.config.enable_pydantic_resolve_meta">
384
395
  <q-toggle
385
396
  v-model="store.state.modeControl.pydanticResolveMetaEnabled"
386
397
  @update:model-value="(val) => togglePydanticResolveMeta(val)"
@@ -56,6 +56,7 @@ const state = reactive({
56
56
  // schema options, schema, fields
57
57
  search: {
58
58
  mode: false,
59
+ invisible: false,
59
60
  schemaName: null,
60
61
  fieldName: null,
61
62
  schemaOptions: [],
@@ -380,12 +380,19 @@ const app = createApp({
380
380
 
381
381
  async function onModeChange(val) {
382
382
  if (val === "er-diagram") {
383
+ // clear search
384
+ store.state.search.schemaName = null
385
+ store.state.search.fieldName = null
386
+ store.state.search.invisible = true
387
+
383
388
  if (store.state.leftPanel.width > 0) {
384
389
  store.state.leftPanel.previousWidth = store.state.leftPanel.width;
385
390
  }
386
391
  store.state.leftPanel.width = 0;
387
392
  await renderErDiagram();
388
393
  } else {
394
+ store.state.search.invisible = false
395
+
389
396
  const fallbackWidth = store.state.leftPanel.previousWidth || 300;
390
397
  store.state.leftPanel.width = fallbackWidth;
391
398
  await onGenerate();
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastapi-voyager
3
- Version: 0.14.0
3
+ Version: 0.14.1
4
4
  Summary: Visualize FastAPI application's routing tree and dependencies
5
5
  Project-URL: Homepage, https://github.com/allmonday/fastapi-voyager
6
6
  Project-URL: Source, https://github.com/allmonday/fastapi-voyager
@@ -53,7 +53,8 @@ app.mount('/voyager',
53
53
  swagger_url="/docs",
54
54
  ga_id="G-XXXXXXXXVL",
55
55
  initial_page_policy='first',
56
- online_repo_url='https://github.com/allmonday/composition-oriented-development-pattern/blob/master'))
56
+ online_repo_url='https://github.com/allmonday/composition-oriented-development-pattern/blob/master',
57
+ enable_pydantic_resolve_meta=True))
57
58
  ```
58
59
 
59
60
  https://github.com/allmonday/composition-oriented-development-pattern/blob/master/src/main.py#L48
@@ -158,6 +159,11 @@ app.mount('/voyager',
158
159
 
159
160
  <img width="1276" height="613" alt="image" src="https://github.com/user-attachments/assets/ea0091bb-ee11-4f71-8be3-7129d956c910" />
160
161
 
162
+ ### Show pydantic resolve meta info
163
+
164
+ setting `enable_pydantic_resolve_meta=True` in `create_voyager`, toggle `pydantic resolve meta`.
165
+
166
+ <img width="1604" height="535" alt="image" src="https://github.com/user-attachments/assets/d1639555-af41-4a08-9970-4b8ef314596a" />
161
167
 
162
168
 
163
169
  ## Command Line Usage
@@ -8,16 +8,16 @@ fastapi_voyager/render.py,sha256=jST413qpp4JEkgc6OftpWXYnjLkjTM4zUagAmZpQkLo,117
8
8
  fastapi_voyager/server.py,sha256=DN4KP37lD_lt4ISg7yoJwzVvw3nKn6qr9C6aH75mR-g,8928
9
9
  fastapi_voyager/type.py,sha256=zluWvh5vpnjXJ9aAmyNJTSmXZPjAHCvgRT5oQRAjHrg,2104
10
10
  fastapi_voyager/type_helper.py,sha256=FmfrZAI3Z4uDdh3sH_kH7UGoY6yNVPapneSN86qY_wo,10209
11
- fastapi_voyager/version.py,sha256=Z7SMv33jTyy1f3GgVRf2iMDpmp7vVS5MXyRZTWhZoSg,49
11
+ fastapi_voyager/version.py,sha256=MpoZvuQGxW8JYonuGmdFFp029C74ulzgiWGtVznOmBw,49
12
12
  fastapi_voyager/voyager.py,sha256=4vonmL-xt54C5San-DRBq4mjoV8Q96eoWRy68MJ1IJw,14169
13
- fastapi_voyager/web/graph-ui.js,sha256=hTsZO1Ly1JuoRg0kZWQ62jeLiD2kbnzACfbSPd0F95U,6634
13
+ fastapi_voyager/web/graph-ui.js,sha256=DlSRHoTCpWMS6EQsW8naLr8yRn6ofF6wIUL-OsvEjvs,6480
14
14
  fastapi_voyager/web/graphviz.svg.css,sha256=zDCjjpT0Idufu5YOiZI76PL70-avP3vTyzGPh9M85Do,1563
15
15
  fastapi_voyager/web/graphviz.svg.js,sha256=wZwz_lBztoXmujEN21P0w-HMpdmbqPwTQQ6Ebxd9rGo,18569
16
- fastapi_voyager/web/index.html,sha256=-3i9ZsgbePj1tQ6AeAY-orL0b5_5M6QO3yLC-LcDfzA,19847
16
+ fastapi_voyager/web/index.html,sha256=wRfWeAEJI0ZGUPjIlVNn0S6NfHb59FOgnTB_o0kvtY4,20264
17
17
  fastapi_voyager/web/quasar.min.css,sha256=F5jQe7X2XT54VlvAaa2V3GsBFdVD-vxDZeaPLf6U9CU,203145
18
18
  fastapi_voyager/web/quasar.min.js,sha256=h0ftyPMW_CRiyzeVfQqiup0vrVt4_QWojpqmpnpn07E,502974
19
- fastapi_voyager/web/store.js,sha256=2-SpyfiQDtl2mCCOpCoJuxOP_pSIRnlIaY4Tm2H0SOQ,2191
20
- fastapi_voyager/web/vue-main.js,sha256=3kaHd4B1V6IcsHie-MQ5QdaKwmGmZlSwR4XaZUsFj6o,17308
19
+ fastapi_voyager/web/store.js,sha256=vdQ-375K1AQcSdR0qTKkYzNTKOdJLwu6teHdpifN7cE,2217
20
+ fastapi_voyager/web/vue-main.js,sha256=Cuf1gfb1kDEBgGciFaoqMfQICQnCzAcs8QyillLq2VU,17521
21
21
  fastapi_voyager/web/component/demo.js,sha256=bQb16Un4XZ3Mf8qL6gvyrXe_mmA3V3mSIRMQAWg2MNk,352
22
22
  fastapi_voyager/web/component/render-graph.js,sha256=e8Xgh2Kl-nYU0P1gstEmAepCgFnk2J6UdxW8TlMafGs,2322
23
23
  fastapi_voyager/web/component/route-code-display.js,sha256=8NJPPjNRUC21gjpY8XYEQs4RBbhX1pCiqEhJp39ku6k,3678
@@ -29,8 +29,8 @@ fastapi_voyager/web/icon/favicon-16x16.png,sha256=JC07jEzfIYxBIoQn_FHXvyHuxESdhW
29
29
  fastapi_voyager/web/icon/favicon-32x32.png,sha256=C7v1h58cfWOsiLp9yOIZtlx-dLasBcq3NqpHVGRmpt4,1859
30
30
  fastapi_voyager/web/icon/favicon.ico,sha256=tZolYIXkkBcFiYl1A8ksaXN2VjGamzcSdes838dLvNc,15406
31
31
  fastapi_voyager/web/icon/site.webmanifest,sha256=ep4Hzh9zhmiZF2At3Fp1dQrYQuYF_3ZPZxc1KcGBvwQ,263
32
- fastapi_voyager-0.14.0.dist-info/METADATA,sha256=uLASxCBmhDKf6-ab8CUkTrKP2HBVclemXmsbc5_OPQA,7869
33
- fastapi_voyager-0.14.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
34
- fastapi_voyager-0.14.0.dist-info/entry_points.txt,sha256=pEIKoUnIDXEtdMBq8EmXm70m16vELIu1VPz9-TBUFWM,53
35
- fastapi_voyager-0.14.0.dist-info/licenses/LICENSE,sha256=lNVRR3y_bFVoFKuK2JM8N4sFaj3m-7j29kvL3olFi5Y,1067
36
- fastapi_voyager-0.14.0.dist-info/RECORD,,
32
+ fastapi_voyager-0.14.1.dist-info/METADATA,sha256=jYSRfxQ8vzsbmklJqGbFNJy4k5JeDNQLYyh8ra23I4A,8184
33
+ fastapi_voyager-0.14.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
34
+ fastapi_voyager-0.14.1.dist-info/entry_points.txt,sha256=pEIKoUnIDXEtdMBq8EmXm70m16vELIu1VPz9-TBUFWM,53
35
+ fastapi_voyager-0.14.1.dist-info/licenses/LICENSE,sha256=lNVRR3y_bFVoFKuK2JM8N4sFaj3m-7j29kvL3olFi5Y,1067
36
+ fastapi_voyager-0.14.1.dist-info/RECORD,,