|
26 | 26 | // The path is relative to the app's directory. |
27 | 27 | DefaultVuePath = "vue" |
28 | 28 |
|
29 | | - // DefaultReactPath defines the default relative path to use when scaffolding a React app. |
30 | | - // The path is relative to the app's directory. |
31 | | - DefaultReactPath = "react" |
32 | | - |
33 | 29 | // DefaultVuexPath defines the default relative path to use when generating Vuex stores for a Vue app. |
34 | 30 | // The path is relative to the app's directory. |
35 | 31 | DefaultVuexPath = "vue/src/store" |
|
38 | 34 | // The path is relative to the app's directory. |
39 | 35 | DefaultComposablesPath = "vue/src/composables" |
40 | 36 |
|
41 | | - // DefaultHooksPath defines the default relative path to use when generating useQuery hooks for a React app. |
42 | | - // The path is relative to the app's directory. |
43 | | - DefaultHooksPath = "react/src/hooks" |
| 37 | + // DefaultVueTypesPath defines the default vue types path. |
| 38 | + DefaultVueTypesPath = "vue/src/views/Types.vue" |
44 | 39 |
|
45 | 40 | // DefaultOpenAPIPath defines the default relative path to use when generating an OpenAPI schema. |
46 | 41 | // The path is relative to the app's directory. |
@@ -112,16 +107,6 @@ func ComposablesPath(conf *Config) string { |
112 | 107 | return DefaultComposablesPath |
113 | 108 | } |
114 | 109 |
|
115 | | -// HooksPath returns the relative path to the React useQuery hooks directory. |
116 | | -// Path is relative to the app's directory. |
117 | | -func HooksPath(conf *Config) string { |
118 | | - if path := strings.TrimSpace(conf.Client.Hooks.Path); path != "" { |
119 | | - return filepath.Clean(path) |
120 | | - } |
121 | | - |
122 | | - return DefaultHooksPath |
123 | | -} |
124 | | - |
125 | 110 | // LocateDefault locates the default path for the config file. |
126 | 111 | // Returns ErrConfigNotFound when no config file found. |
127 | 112 | func LocateDefault(root string) (path string, err error) { |
|
0 commit comments