fastapi-voyager 0.15.0__py3-none-any.whl → 0.15.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,119 +1,115 @@
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
+ tag: null,
45
+ _tag: null,
46
+ routeId: null,
47
+ },
48
+
49
+ graph: {
50
+ schemaId: null,
51
+ schemaKeys: new Set(),
52
+ schemaMap: {},
53
+ routeItems: [],
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
+ // route information
67
+ routeDetail: {
68
+ show: false,
69
+ routeCodeId: "",
70
+ },
71
+
72
+ // schema information
73
+ schemaDetail: {
74
+ show: false,
75
+ schemaCodeName: "",
76
+ },
77
+
78
+ searchDialog: {
79
+ show: false,
80
+ schema: null,
81
+ },
82
+
83
+ // global status
84
+ status: {
85
+ generating: false,
86
+ loading: false,
87
+ initializing: true,
88
+ },
89
+
90
+ // brief, hide primitive ...
91
+ modeControl: {
92
+ focus: false, // control the schema param
93
+ briefModeEnabled: false, // show brief mode toggle
94
+ pydanticResolveMetaEnabled: false, // show pydantic resolve meta toggle
95
+ },
96
+
97
+ // api filters
98
+ filter: {
99
+ hidePrimitiveRoute: false,
100
+ showFields: "object",
101
+ brief: false,
102
+ showModule: false,
103
+ },
106
104
  })
107
105
 
108
-
109
106
  const mutations = {
110
- increment() {
111
- state.item.count += 1
112
- }
107
+ increment() {
108
+ state.item.count += 1
109
+ },
113
110
  }
114
111
 
115
-
116
112
  export const store = {
117
- state,
118
- mutations
119
- }
113
+ state,
114
+ mutations,
115
+ }