fastapi-voyager 0.15.0__py3-none-any.whl → 0.15.2__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,119 +1,117 @@
1
- const { reactive } = window.Vue;
1
+ const { reactive } = window.Vue
2
2
 
3
3
  const state = reactive({
4
- item: {
5
- count: 0
6
- },
7
-
8
- version: '',
9
- config: {
10
- initial_page_policy: 'first',
11
- has_er_diagram: false,
12
- enable_pydantic_resolve_meta: false,
13
- },
14
-
15
- mode: 'voyager', // voyager / er-diagram
16
-
17
- previousTagRoute: { // for shift + click, store previous tag/route, and populate back when needed
18
- hasValue: false,
19
- tag: null,
20
- routeId: null
21
- },
22
-
23
- swagger: {
24
- url: ''
25
- },
26
-
27
- rightDrawer: {
28
- drawer: false,
29
- width: 300
30
- },
31
-
32
- fieldOptions: [
33
- { label: "No field", value: "single" },
34
- { label: "Object fields", value: "object" },
35
- { label: "All fields", value: "all" },
36
- ],
37
-
38
- // tags and routes
39
- leftPanel: {
40
- width: 300,
41
- previousWidth: 300,
42
- tags: null,
43
- tag: null,
44
- _tag: null,
45
- routeId: null,
46
- },
47
-
48
- graph: {
49
- schemaId: null,
50
- schemaKeys: new Set(),
51
- schemaMap: {},
52
- routeItems: []
53
- },
54
-
55
-
56
- // schema options, schema, fields
57
- search: {
58
- mode: false,
59
- invisible: false,
60
- schemaName: null,
61
- fieldName: null,
62
- schemaOptions: [],
63
- fieldOptions: [],
64
- },
65
-
66
-
67
- // route information
68
- routeDetail: {
69
- show: false,
70
- routeCodeId: ''
71
- },
72
-
73
- // schema information
74
- schemaDetail: {
75
- show: false,
76
- schemaCodeName: '',
77
- },
78
-
79
- searchDialog: {
80
- show: false,
81
- schema: null
82
- },
83
-
84
- // global status
85
- status: {
86
- generating: false,
87
- loading: false,
88
- initializing: true,
89
- },
90
-
91
- // brief, hide primitive ...
92
- modeControl: {
93
- focus: false, // control the schema param
94
- briefModeEnabled: false, // show brief mode toggle
95
- pydanticResolveMetaEnabled: false, // show pydantic resolve meta toggle
96
- },
97
-
98
- // api filters
99
- filter: {
100
- hidePrimitiveRoute: false,
101
- showFields: 'object',
102
- brief: false,
103
- showModule: false,
104
- }
105
-
4
+ item: {
5
+ count: 0,
6
+ },
7
+
8
+ version: "",
9
+ config: {
10
+ initial_page_policy: "first",
11
+ has_er_diagram: false,
12
+ enable_pydantic_resolve_meta: false,
13
+ },
14
+
15
+ mode: "voyager", // voyager / er-diagram
16
+
17
+ previousTagRoute: {
18
+ // for shift + click, store previous tag/route, and populate back when needed
19
+ hasValue: false,
20
+ tag: null,
21
+ routeId: null,
22
+ },
23
+
24
+ swagger: {
25
+ url: "",
26
+ },
27
+
28
+ rightDrawer: {
29
+ drawer: false,
30
+ width: 300,
31
+ },
32
+
33
+ fieldOptions: [
34
+ { label: "No field", value: "single" },
35
+ { label: "Object fields", value: "object" },
36
+ { label: "All fields", value: "all" },
37
+ ],
38
+
39
+ // tags and routes
40
+ leftPanel: {
41
+ width: 300,
42
+ previousWidth: 300,
43
+ tags: null,
44
+ fullTagsCache: null, // Cache for full tags (before search)
45
+ tag: null,
46
+ _tag: null,
47
+ routeId: null,
48
+ collapsed: false,
49
+ },
50
+
51
+ graph: {
52
+ schemaId: null,
53
+ schemaKeys: new Set(),
54
+ schemaMap: {},
55
+ routeItems: [],
56
+ },
57
+
58
+ // schema options, schema, fields
59
+ search: {
60
+ mode: false,
61
+ invisible: false,
62
+ schemaName: null,
63
+ fieldName: null,
64
+ schemaOptions: [],
65
+ fieldOptions: [],
66
+ },
67
+
68
+ // route information
69
+ routeDetail: {
70
+ show: false,
71
+ routeCodeId: "",
72
+ },
73
+
74
+ // schema information
75
+ schemaDetail: {
76
+ show: false,
77
+ schemaCodeName: "",
78
+ },
79
+
80
+ searchDialog: {
81
+ show: false,
82
+ schema: null,
83
+ },
84
+
85
+ // global status
86
+ status: {
87
+ generating: false,
88
+ loading: false,
89
+ initializing: true,
90
+ },
91
+
92
+ // brief, hide primitive ...
93
+ modeControl: {
94
+ focus: false, // control the schema param
95
+ briefModeEnabled: false, // show brief mode toggle
96
+ pydanticResolveMetaEnabled: false, // show pydantic resolve meta toggle
97
+ },
98
+
99
+ // api filters
100
+ filter: {
101
+ hidePrimitiveRoute: false,
102
+ showFields: "object",
103
+ brief: false,
104
+ showModule: false,
105
+ },
106
106
  })
107
107
 
108
-
109
108
  const mutations = {
110
- increment() {
111
- state.item.count += 1
112
- }
109
+ increment() {
110
+ state.item.count += 1
111
+ },
113
112
  }
114
113
 
115
-
116
114
  export const store = {
117
- state,
118
- mutations
119
- }
115
+ state,
116
+ mutations,
117
+ }