@spree/cli 2.4.8 → 3.0.0
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/dist/index.js +742 -222
- package/dist/templates/dashboard-starter/README.md +1 -1
- package/dist/templates/dashboard-starter/index.html +3 -0
- package/dist/templates/dashboard-starter/package.json +2 -2
- package/dist/templates/dashboard-starter/public/android-chrome-192x192.png +0 -0
- package/dist/templates/dashboard-starter/public/android-chrome-512x512.png +0 -0
- package/dist/templates/dashboard-starter/public/apple-touch-icon.png +0 -0
- package/dist/templates/dashboard-starter/public/favicon-16x16.png +0 -0
- package/dist/templates/dashboard-starter/public/favicon-32x32.png +0 -0
- package/dist/templates/dashboard-starter/public/favicon.ico +0 -0
- package/dist/templates/dashboard-starter/public/favicon.svg +9 -0
- package/dist/templates/dashboard-starter/src/routeTree.gen.ts +1054 -51
- package/dist/templates/dashboard-starter/vite.config.ts +11 -2
- package/dist/templates/seller-dashboard-starter/.env.example +7 -0
- package/dist/templates/seller-dashboard-starter/biome.json +60 -0
- package/dist/templates/seller-dashboard-starter/gitignore.template +3 -0
- package/dist/templates/seller-dashboard-starter/index.html +27 -0
- package/dist/templates/seller-dashboard-starter/package.json +32 -0
- package/dist/templates/seller-dashboard-starter/pnpm-workspace.yaml +11 -0
- package/dist/templates/seller-dashboard-starter/src/main.tsx +29 -0
- package/dist/templates/seller-dashboard-starter/src/plugins.ts +30 -0
- package/dist/templates/seller-dashboard-starter/src/routeTree.gen.ts +590 -0
- package/dist/templates/seller-dashboard-starter/src/styles.css +8 -0
- package/dist/templates/seller-dashboard-starter/tsconfig.json +21 -0
- package/dist/templates/seller-dashboard-starter/vite.config.ts +27 -0
- package/package.json +3 -3
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// noinspection JSUnusedGlobalSymbols
|
|
6
|
+
|
|
7
|
+
// This file was automatically generated by TanStack Router.
|
|
8
|
+
// You should NOT make any changes in this file as it will be overwritten.
|
|
9
|
+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
10
|
+
|
|
11
|
+
import { Route as rootRouteImport } from './../../seller-dashboard/src/routes/__root'
|
|
12
|
+
import { Route as resetPasswordRouteImport } from './../../seller-dashboard/src/routes/reset-password'
|
|
13
|
+
import { Route as loginRouteImport } from './../../seller-dashboard/src/routes/login'
|
|
14
|
+
import { Route as forgotPasswordRouteImport } from './../../seller-dashboard/src/routes/forgot-password'
|
|
15
|
+
import { Route as authenticatedRouteImport } from './../../seller-dashboard/src/routes/_authenticated'
|
|
16
|
+
import { Route as authenticatedIndexRouteImport } from './../../seller-dashboard/src/routes/_authenticated/index'
|
|
17
|
+
import { Route as acceptInvitationDotinvitationIdRouteImport } from './../../seller-dashboard/src/routes/accept-invitation.$invitationId'
|
|
18
|
+
import { Route as authenticatedSellerIdRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId'
|
|
19
|
+
import { Route as IndexRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/index'
|
|
20
|
+
import { Route as SettingsRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/settings'
|
|
21
|
+
import { Route as ProfileRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/profile'
|
|
22
|
+
import { Route as OnboardingRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/onboarding'
|
|
23
|
+
import { Route as SettingsIndexRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/settings/index'
|
|
24
|
+
import { Route as ProductsIndexRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/products/index'
|
|
25
|
+
import { Route as PayoutsIndexRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/payouts/index'
|
|
26
|
+
import { Route as OrdersIndexRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/orders/index'
|
|
27
|
+
import { Route as EarningsIndexRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/earnings/index'
|
|
28
|
+
import { Route as SettingsTeamRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/settings/team'
|
|
29
|
+
import { Route as SettingsStockLocationsRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/settings/stock-locations'
|
|
30
|
+
import { Route as SettingsPoliciesRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/settings/policies'
|
|
31
|
+
import { Route as SettingsPackageTypesRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/settings/package-types'
|
|
32
|
+
import { Route as SettingsDeliveryMethodsRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/settings/delivery-methods'
|
|
33
|
+
import { Route as ProductsNewRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/products/new'
|
|
34
|
+
import { Route as ProductsProductIdRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/products/$productId'
|
|
35
|
+
import { Route as PayoutsPayoutIdRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/payouts/$payoutId'
|
|
36
|
+
import { Route as OrdersOrderIdRouteImport } from './../../seller-dashboard/src/routes/_authenticated/$sellerId/orders/$orderId'
|
|
37
|
+
|
|
38
|
+
const resetPasswordRoute = resetPasswordRouteImport.update({
|
|
39
|
+
id: '/reset-password',
|
|
40
|
+
path: '/reset-password',
|
|
41
|
+
getParentRoute: () => rootRouteImport,
|
|
42
|
+
} as any)
|
|
43
|
+
const loginRoute = loginRouteImport.update({
|
|
44
|
+
id: '/login',
|
|
45
|
+
path: '/login',
|
|
46
|
+
getParentRoute: () => rootRouteImport,
|
|
47
|
+
} as any)
|
|
48
|
+
const forgotPasswordRoute = forgotPasswordRouteImport.update({
|
|
49
|
+
id: '/forgot-password',
|
|
50
|
+
path: '/forgot-password',
|
|
51
|
+
getParentRoute: () => rootRouteImport,
|
|
52
|
+
} as any)
|
|
53
|
+
const authenticatedRoute = authenticatedRouteImport.update({
|
|
54
|
+
id: '/_authenticated',
|
|
55
|
+
getParentRoute: () => rootRouteImport,
|
|
56
|
+
} as any)
|
|
57
|
+
const authenticatedIndexRoute = authenticatedIndexRouteImport.update({
|
|
58
|
+
id: '/',
|
|
59
|
+
path: '/',
|
|
60
|
+
getParentRoute: () => authenticatedRoute,
|
|
61
|
+
} as any)
|
|
62
|
+
const acceptInvitationDotinvitationIdRoute =
|
|
63
|
+
acceptInvitationDotinvitationIdRouteImport.update({
|
|
64
|
+
id: '/accept-invitation/$invitationId',
|
|
65
|
+
path: '/accept-invitation/$invitationId',
|
|
66
|
+
getParentRoute: () => rootRouteImport,
|
|
67
|
+
} as any)
|
|
68
|
+
const authenticatedSellerIdRoute = authenticatedSellerIdRouteImport.update({
|
|
69
|
+
id: '/$sellerId',
|
|
70
|
+
path: '/$sellerId',
|
|
71
|
+
getParentRoute: () => authenticatedRoute,
|
|
72
|
+
} as any)
|
|
73
|
+
const IndexRoute = IndexRouteImport.update({
|
|
74
|
+
id: '/',
|
|
75
|
+
path: '/',
|
|
76
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
77
|
+
} as any)
|
|
78
|
+
const SettingsRoute = SettingsRouteImport.update({
|
|
79
|
+
id: '/settings',
|
|
80
|
+
path: '/settings',
|
|
81
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
82
|
+
} as any)
|
|
83
|
+
const ProfileRoute = ProfileRouteImport.update({
|
|
84
|
+
id: '/profile',
|
|
85
|
+
path: '/profile',
|
|
86
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
87
|
+
} as any)
|
|
88
|
+
const OnboardingRoute = OnboardingRouteImport.update({
|
|
89
|
+
id: '/onboarding',
|
|
90
|
+
path: '/onboarding',
|
|
91
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
92
|
+
} as any)
|
|
93
|
+
const SettingsIndexRoute = SettingsIndexRouteImport.update({
|
|
94
|
+
id: '/',
|
|
95
|
+
path: '/',
|
|
96
|
+
getParentRoute: () => SettingsRoute,
|
|
97
|
+
} as any)
|
|
98
|
+
const ProductsIndexRoute = ProductsIndexRouteImport.update({
|
|
99
|
+
id: '/products/',
|
|
100
|
+
path: '/products/',
|
|
101
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
102
|
+
} as any)
|
|
103
|
+
const PayoutsIndexRoute = PayoutsIndexRouteImport.update({
|
|
104
|
+
id: '/payouts/',
|
|
105
|
+
path: '/payouts/',
|
|
106
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
107
|
+
} as any)
|
|
108
|
+
const OrdersIndexRoute = OrdersIndexRouteImport.update({
|
|
109
|
+
id: '/orders/',
|
|
110
|
+
path: '/orders/',
|
|
111
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
112
|
+
} as any)
|
|
113
|
+
const EarningsIndexRoute = EarningsIndexRouteImport.update({
|
|
114
|
+
id: '/earnings/',
|
|
115
|
+
path: '/earnings/',
|
|
116
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
117
|
+
} as any)
|
|
118
|
+
const SettingsTeamRoute = SettingsTeamRouteImport.update({
|
|
119
|
+
id: '/team',
|
|
120
|
+
path: '/team',
|
|
121
|
+
getParentRoute: () => SettingsRoute,
|
|
122
|
+
} as any)
|
|
123
|
+
const SettingsStockLocationsRoute = SettingsStockLocationsRouteImport.update({
|
|
124
|
+
id: '/stock-locations',
|
|
125
|
+
path: '/stock-locations',
|
|
126
|
+
getParentRoute: () => SettingsRoute,
|
|
127
|
+
} as any)
|
|
128
|
+
const SettingsPoliciesRoute = SettingsPoliciesRouteImport.update({
|
|
129
|
+
id: '/policies',
|
|
130
|
+
path: '/policies',
|
|
131
|
+
getParentRoute: () => SettingsRoute,
|
|
132
|
+
} as any)
|
|
133
|
+
const SettingsPackageTypesRoute = SettingsPackageTypesRouteImport.update({
|
|
134
|
+
id: '/package-types',
|
|
135
|
+
path: '/package-types',
|
|
136
|
+
getParentRoute: () => SettingsRoute,
|
|
137
|
+
} as any)
|
|
138
|
+
const SettingsDeliveryMethodsRoute = SettingsDeliveryMethodsRouteImport.update({
|
|
139
|
+
id: '/delivery-methods',
|
|
140
|
+
path: '/delivery-methods',
|
|
141
|
+
getParentRoute: () => SettingsRoute,
|
|
142
|
+
} as any)
|
|
143
|
+
const ProductsNewRoute = ProductsNewRouteImport.update({
|
|
144
|
+
id: '/products/new',
|
|
145
|
+
path: '/products/new',
|
|
146
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
147
|
+
} as any)
|
|
148
|
+
const ProductsProductIdRoute = ProductsProductIdRouteImport.update({
|
|
149
|
+
id: '/products/$productId',
|
|
150
|
+
path: '/products/$productId',
|
|
151
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
152
|
+
} as any)
|
|
153
|
+
const PayoutsPayoutIdRoute = PayoutsPayoutIdRouteImport.update({
|
|
154
|
+
id: '/payouts/$payoutId',
|
|
155
|
+
path: '/payouts/$payoutId',
|
|
156
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
157
|
+
} as any)
|
|
158
|
+
const OrdersOrderIdRoute = OrdersOrderIdRouteImport.update({
|
|
159
|
+
id: '/orders/$orderId',
|
|
160
|
+
path: '/orders/$orderId',
|
|
161
|
+
getParentRoute: () => authenticatedSellerIdRoute,
|
|
162
|
+
} as any)
|
|
163
|
+
|
|
164
|
+
export interface FileRoutesByFullPath {
|
|
165
|
+
'/': typeof authenticatedIndexRoute
|
|
166
|
+
'/forgot-password': typeof forgotPasswordRoute
|
|
167
|
+
'/login': typeof loginRoute
|
|
168
|
+
'/reset-password': typeof resetPasswordRoute
|
|
169
|
+
'/$sellerId': typeof authenticatedSellerIdRouteWithChildren
|
|
170
|
+
'/accept-invitation/$invitationId': typeof acceptInvitationDotinvitationIdRoute
|
|
171
|
+
'/$sellerId/onboarding': typeof OnboardingRoute
|
|
172
|
+
'/$sellerId/profile': typeof ProfileRoute
|
|
173
|
+
'/$sellerId/settings': typeof SettingsRouteWithChildren
|
|
174
|
+
'/$sellerId/': typeof IndexRoute
|
|
175
|
+
'/$sellerId/orders/$orderId': typeof OrdersOrderIdRoute
|
|
176
|
+
'/$sellerId/payouts/$payoutId': typeof PayoutsPayoutIdRoute
|
|
177
|
+
'/$sellerId/products/$productId': typeof ProductsProductIdRoute
|
|
178
|
+
'/$sellerId/products/new': typeof ProductsNewRoute
|
|
179
|
+
'/$sellerId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
|
|
180
|
+
'/$sellerId/settings/package-types': typeof SettingsPackageTypesRoute
|
|
181
|
+
'/$sellerId/settings/policies': typeof SettingsPoliciesRoute
|
|
182
|
+
'/$sellerId/settings/stock-locations': typeof SettingsStockLocationsRoute
|
|
183
|
+
'/$sellerId/settings/team': typeof SettingsTeamRoute
|
|
184
|
+
'/$sellerId/earnings/': typeof EarningsIndexRoute
|
|
185
|
+
'/$sellerId/orders/': typeof OrdersIndexRoute
|
|
186
|
+
'/$sellerId/payouts/': typeof PayoutsIndexRoute
|
|
187
|
+
'/$sellerId/products/': typeof ProductsIndexRoute
|
|
188
|
+
'/$sellerId/settings/': typeof SettingsIndexRoute
|
|
189
|
+
}
|
|
190
|
+
export interface FileRoutesByTo {
|
|
191
|
+
'/forgot-password': typeof forgotPasswordRoute
|
|
192
|
+
'/login': typeof loginRoute
|
|
193
|
+
'/reset-password': typeof resetPasswordRoute
|
|
194
|
+
'/accept-invitation/$invitationId': typeof acceptInvitationDotinvitationIdRoute
|
|
195
|
+
'/': typeof authenticatedIndexRoute
|
|
196
|
+
'/$sellerId/onboarding': typeof OnboardingRoute
|
|
197
|
+
'/$sellerId/profile': typeof ProfileRoute
|
|
198
|
+
'/$sellerId': typeof IndexRoute
|
|
199
|
+
'/$sellerId/orders/$orderId': typeof OrdersOrderIdRoute
|
|
200
|
+
'/$sellerId/payouts/$payoutId': typeof PayoutsPayoutIdRoute
|
|
201
|
+
'/$sellerId/products/$productId': typeof ProductsProductIdRoute
|
|
202
|
+
'/$sellerId/products/new': typeof ProductsNewRoute
|
|
203
|
+
'/$sellerId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
|
|
204
|
+
'/$sellerId/settings/package-types': typeof SettingsPackageTypesRoute
|
|
205
|
+
'/$sellerId/settings/policies': typeof SettingsPoliciesRoute
|
|
206
|
+
'/$sellerId/settings/stock-locations': typeof SettingsStockLocationsRoute
|
|
207
|
+
'/$sellerId/settings/team': typeof SettingsTeamRoute
|
|
208
|
+
'/$sellerId/earnings': typeof EarningsIndexRoute
|
|
209
|
+
'/$sellerId/orders': typeof OrdersIndexRoute
|
|
210
|
+
'/$sellerId/payouts': typeof PayoutsIndexRoute
|
|
211
|
+
'/$sellerId/products': typeof ProductsIndexRoute
|
|
212
|
+
'/$sellerId/settings': typeof SettingsIndexRoute
|
|
213
|
+
}
|
|
214
|
+
export interface FileRoutesById {
|
|
215
|
+
__root__: typeof rootRouteImport
|
|
216
|
+
'/_authenticated': typeof authenticatedRouteWithChildren
|
|
217
|
+
'/forgot-password': typeof forgotPasswordRoute
|
|
218
|
+
'/login': typeof loginRoute
|
|
219
|
+
'/reset-password': typeof resetPasswordRoute
|
|
220
|
+
'/_authenticated/$sellerId': typeof authenticatedSellerIdRouteWithChildren
|
|
221
|
+
'/accept-invitation/$invitationId': typeof acceptInvitationDotinvitationIdRoute
|
|
222
|
+
'/_authenticated/': typeof authenticatedIndexRoute
|
|
223
|
+
'/_authenticated/$sellerId/onboarding': typeof OnboardingRoute
|
|
224
|
+
'/_authenticated/$sellerId/profile': typeof ProfileRoute
|
|
225
|
+
'/_authenticated/$sellerId/settings': typeof SettingsRouteWithChildren
|
|
226
|
+
'/_authenticated/$sellerId/': typeof IndexRoute
|
|
227
|
+
'/_authenticated/$sellerId/orders/$orderId': typeof OrdersOrderIdRoute
|
|
228
|
+
'/_authenticated/$sellerId/payouts/$payoutId': typeof PayoutsPayoutIdRoute
|
|
229
|
+
'/_authenticated/$sellerId/products/$productId': typeof ProductsProductIdRoute
|
|
230
|
+
'/_authenticated/$sellerId/products/new': typeof ProductsNewRoute
|
|
231
|
+
'/_authenticated/$sellerId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
|
|
232
|
+
'/_authenticated/$sellerId/settings/package-types': typeof SettingsPackageTypesRoute
|
|
233
|
+
'/_authenticated/$sellerId/settings/policies': typeof SettingsPoliciesRoute
|
|
234
|
+
'/_authenticated/$sellerId/settings/stock-locations': typeof SettingsStockLocationsRoute
|
|
235
|
+
'/_authenticated/$sellerId/settings/team': typeof SettingsTeamRoute
|
|
236
|
+
'/_authenticated/$sellerId/earnings/': typeof EarningsIndexRoute
|
|
237
|
+
'/_authenticated/$sellerId/orders/': typeof OrdersIndexRoute
|
|
238
|
+
'/_authenticated/$sellerId/payouts/': typeof PayoutsIndexRoute
|
|
239
|
+
'/_authenticated/$sellerId/products/': typeof ProductsIndexRoute
|
|
240
|
+
'/_authenticated/$sellerId/settings/': typeof SettingsIndexRoute
|
|
241
|
+
}
|
|
242
|
+
export interface FileRouteTypes {
|
|
243
|
+
fileRoutesByFullPath: FileRoutesByFullPath
|
|
244
|
+
fullPaths:
|
|
245
|
+
| '/'
|
|
246
|
+
| '/forgot-password'
|
|
247
|
+
| '/login'
|
|
248
|
+
| '/reset-password'
|
|
249
|
+
| '/$sellerId'
|
|
250
|
+
| '/accept-invitation/$invitationId'
|
|
251
|
+
| '/$sellerId/onboarding'
|
|
252
|
+
| '/$sellerId/profile'
|
|
253
|
+
| '/$sellerId/settings'
|
|
254
|
+
| '/$sellerId/'
|
|
255
|
+
| '/$sellerId/orders/$orderId'
|
|
256
|
+
| '/$sellerId/payouts/$payoutId'
|
|
257
|
+
| '/$sellerId/products/$productId'
|
|
258
|
+
| '/$sellerId/products/new'
|
|
259
|
+
| '/$sellerId/settings/delivery-methods'
|
|
260
|
+
| '/$sellerId/settings/package-types'
|
|
261
|
+
| '/$sellerId/settings/policies'
|
|
262
|
+
| '/$sellerId/settings/stock-locations'
|
|
263
|
+
| '/$sellerId/settings/team'
|
|
264
|
+
| '/$sellerId/earnings/'
|
|
265
|
+
| '/$sellerId/orders/'
|
|
266
|
+
| '/$sellerId/payouts/'
|
|
267
|
+
| '/$sellerId/products/'
|
|
268
|
+
| '/$sellerId/settings/'
|
|
269
|
+
fileRoutesByTo: FileRoutesByTo
|
|
270
|
+
to:
|
|
271
|
+
| '/forgot-password'
|
|
272
|
+
| '/login'
|
|
273
|
+
| '/reset-password'
|
|
274
|
+
| '/accept-invitation/$invitationId'
|
|
275
|
+
| '/'
|
|
276
|
+
| '/$sellerId/onboarding'
|
|
277
|
+
| '/$sellerId/profile'
|
|
278
|
+
| '/$sellerId'
|
|
279
|
+
| '/$sellerId/orders/$orderId'
|
|
280
|
+
| '/$sellerId/payouts/$payoutId'
|
|
281
|
+
| '/$sellerId/products/$productId'
|
|
282
|
+
| '/$sellerId/products/new'
|
|
283
|
+
| '/$sellerId/settings/delivery-methods'
|
|
284
|
+
| '/$sellerId/settings/package-types'
|
|
285
|
+
| '/$sellerId/settings/policies'
|
|
286
|
+
| '/$sellerId/settings/stock-locations'
|
|
287
|
+
| '/$sellerId/settings/team'
|
|
288
|
+
| '/$sellerId/earnings'
|
|
289
|
+
| '/$sellerId/orders'
|
|
290
|
+
| '/$sellerId/payouts'
|
|
291
|
+
| '/$sellerId/products'
|
|
292
|
+
| '/$sellerId/settings'
|
|
293
|
+
id:
|
|
294
|
+
| '__root__'
|
|
295
|
+
| '/_authenticated'
|
|
296
|
+
| '/forgot-password'
|
|
297
|
+
| '/login'
|
|
298
|
+
| '/reset-password'
|
|
299
|
+
| '/_authenticated/$sellerId'
|
|
300
|
+
| '/accept-invitation/$invitationId'
|
|
301
|
+
| '/_authenticated/'
|
|
302
|
+
| '/_authenticated/$sellerId/onboarding'
|
|
303
|
+
| '/_authenticated/$sellerId/profile'
|
|
304
|
+
| '/_authenticated/$sellerId/settings'
|
|
305
|
+
| '/_authenticated/$sellerId/'
|
|
306
|
+
| '/_authenticated/$sellerId/orders/$orderId'
|
|
307
|
+
| '/_authenticated/$sellerId/payouts/$payoutId'
|
|
308
|
+
| '/_authenticated/$sellerId/products/$productId'
|
|
309
|
+
| '/_authenticated/$sellerId/products/new'
|
|
310
|
+
| '/_authenticated/$sellerId/settings/delivery-methods'
|
|
311
|
+
| '/_authenticated/$sellerId/settings/package-types'
|
|
312
|
+
| '/_authenticated/$sellerId/settings/policies'
|
|
313
|
+
| '/_authenticated/$sellerId/settings/stock-locations'
|
|
314
|
+
| '/_authenticated/$sellerId/settings/team'
|
|
315
|
+
| '/_authenticated/$sellerId/earnings/'
|
|
316
|
+
| '/_authenticated/$sellerId/orders/'
|
|
317
|
+
| '/_authenticated/$sellerId/payouts/'
|
|
318
|
+
| '/_authenticated/$sellerId/products/'
|
|
319
|
+
| '/_authenticated/$sellerId/settings/'
|
|
320
|
+
fileRoutesById: FileRoutesById
|
|
321
|
+
}
|
|
322
|
+
export interface RootRouteChildren {
|
|
323
|
+
authenticatedRoute: typeof authenticatedRouteWithChildren
|
|
324
|
+
forgotPasswordRoute: typeof forgotPasswordRoute
|
|
325
|
+
loginRoute: typeof loginRoute
|
|
326
|
+
resetPasswordRoute: typeof resetPasswordRoute
|
|
327
|
+
acceptInvitationDotinvitationIdRoute: typeof acceptInvitationDotinvitationIdRoute
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare module '@tanstack/react-router' {
|
|
331
|
+
interface FileRoutesByPath {
|
|
332
|
+
'/reset-password': {
|
|
333
|
+
id: '/reset-password'
|
|
334
|
+
path: '/reset-password'
|
|
335
|
+
fullPath: '/reset-password'
|
|
336
|
+
preLoaderRoute: typeof resetPasswordRouteImport
|
|
337
|
+
parentRoute: typeof rootRouteImport
|
|
338
|
+
}
|
|
339
|
+
'/login': {
|
|
340
|
+
id: '/login'
|
|
341
|
+
path: '/login'
|
|
342
|
+
fullPath: '/login'
|
|
343
|
+
preLoaderRoute: typeof loginRouteImport
|
|
344
|
+
parentRoute: typeof rootRouteImport
|
|
345
|
+
}
|
|
346
|
+
'/forgot-password': {
|
|
347
|
+
id: '/forgot-password'
|
|
348
|
+
path: '/forgot-password'
|
|
349
|
+
fullPath: '/forgot-password'
|
|
350
|
+
preLoaderRoute: typeof forgotPasswordRouteImport
|
|
351
|
+
parentRoute: typeof rootRouteImport
|
|
352
|
+
}
|
|
353
|
+
'/_authenticated': {
|
|
354
|
+
id: '/_authenticated'
|
|
355
|
+
path: ''
|
|
356
|
+
fullPath: '/'
|
|
357
|
+
preLoaderRoute: typeof authenticatedRouteImport
|
|
358
|
+
parentRoute: typeof rootRouteImport
|
|
359
|
+
}
|
|
360
|
+
'/_authenticated/': {
|
|
361
|
+
id: '/_authenticated/'
|
|
362
|
+
path: '/'
|
|
363
|
+
fullPath: '/'
|
|
364
|
+
preLoaderRoute: typeof authenticatedIndexRouteImport
|
|
365
|
+
parentRoute: typeof authenticatedRoute
|
|
366
|
+
}
|
|
367
|
+
'/accept-invitation/$invitationId': {
|
|
368
|
+
id: '/accept-invitation/$invitationId'
|
|
369
|
+
path: '/accept-invitation/$invitationId'
|
|
370
|
+
fullPath: '/accept-invitation/$invitationId'
|
|
371
|
+
preLoaderRoute: typeof acceptInvitationDotinvitationIdRouteImport
|
|
372
|
+
parentRoute: typeof rootRouteImport
|
|
373
|
+
}
|
|
374
|
+
'/_authenticated/$sellerId': {
|
|
375
|
+
id: '/_authenticated/$sellerId'
|
|
376
|
+
path: '/$sellerId'
|
|
377
|
+
fullPath: '/$sellerId'
|
|
378
|
+
preLoaderRoute: typeof authenticatedSellerIdRouteImport
|
|
379
|
+
parentRoute: typeof authenticatedRoute
|
|
380
|
+
}
|
|
381
|
+
'/_authenticated/$sellerId/': {
|
|
382
|
+
id: '/_authenticated/$sellerId/'
|
|
383
|
+
path: '/'
|
|
384
|
+
fullPath: '/$sellerId/'
|
|
385
|
+
preLoaderRoute: typeof IndexRouteImport
|
|
386
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
387
|
+
}
|
|
388
|
+
'/_authenticated/$sellerId/settings': {
|
|
389
|
+
id: '/_authenticated/$sellerId/settings'
|
|
390
|
+
path: '/settings'
|
|
391
|
+
fullPath: '/$sellerId/settings'
|
|
392
|
+
preLoaderRoute: typeof SettingsRouteImport
|
|
393
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
394
|
+
}
|
|
395
|
+
'/_authenticated/$sellerId/profile': {
|
|
396
|
+
id: '/_authenticated/$sellerId/profile'
|
|
397
|
+
path: '/profile'
|
|
398
|
+
fullPath: '/$sellerId/profile'
|
|
399
|
+
preLoaderRoute: typeof ProfileRouteImport
|
|
400
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
401
|
+
}
|
|
402
|
+
'/_authenticated/$sellerId/onboarding': {
|
|
403
|
+
id: '/_authenticated/$sellerId/onboarding'
|
|
404
|
+
path: '/onboarding'
|
|
405
|
+
fullPath: '/$sellerId/onboarding'
|
|
406
|
+
preLoaderRoute: typeof OnboardingRouteImport
|
|
407
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
408
|
+
}
|
|
409
|
+
'/_authenticated/$sellerId/settings/': {
|
|
410
|
+
id: '/_authenticated/$sellerId/settings/'
|
|
411
|
+
path: '/'
|
|
412
|
+
fullPath: '/$sellerId/settings/'
|
|
413
|
+
preLoaderRoute: typeof SettingsIndexRouteImport
|
|
414
|
+
parentRoute: typeof SettingsRoute
|
|
415
|
+
}
|
|
416
|
+
'/_authenticated/$sellerId/products/': {
|
|
417
|
+
id: '/_authenticated/$sellerId/products/'
|
|
418
|
+
path: '/products'
|
|
419
|
+
fullPath: '/$sellerId/products/'
|
|
420
|
+
preLoaderRoute: typeof ProductsIndexRouteImport
|
|
421
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
422
|
+
}
|
|
423
|
+
'/_authenticated/$sellerId/payouts/': {
|
|
424
|
+
id: '/_authenticated/$sellerId/payouts/'
|
|
425
|
+
path: '/payouts'
|
|
426
|
+
fullPath: '/$sellerId/payouts/'
|
|
427
|
+
preLoaderRoute: typeof PayoutsIndexRouteImport
|
|
428
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
429
|
+
}
|
|
430
|
+
'/_authenticated/$sellerId/orders/': {
|
|
431
|
+
id: '/_authenticated/$sellerId/orders/'
|
|
432
|
+
path: '/orders'
|
|
433
|
+
fullPath: '/$sellerId/orders/'
|
|
434
|
+
preLoaderRoute: typeof OrdersIndexRouteImport
|
|
435
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
436
|
+
}
|
|
437
|
+
'/_authenticated/$sellerId/earnings/': {
|
|
438
|
+
id: '/_authenticated/$sellerId/earnings/'
|
|
439
|
+
path: '/earnings'
|
|
440
|
+
fullPath: '/$sellerId/earnings/'
|
|
441
|
+
preLoaderRoute: typeof EarningsIndexRouteImport
|
|
442
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
443
|
+
}
|
|
444
|
+
'/_authenticated/$sellerId/settings/team': {
|
|
445
|
+
id: '/_authenticated/$sellerId/settings/team'
|
|
446
|
+
path: '/team'
|
|
447
|
+
fullPath: '/$sellerId/settings/team'
|
|
448
|
+
preLoaderRoute: typeof SettingsTeamRouteImport
|
|
449
|
+
parentRoute: typeof SettingsRoute
|
|
450
|
+
}
|
|
451
|
+
'/_authenticated/$sellerId/settings/stock-locations': {
|
|
452
|
+
id: '/_authenticated/$sellerId/settings/stock-locations'
|
|
453
|
+
path: '/stock-locations'
|
|
454
|
+
fullPath: '/$sellerId/settings/stock-locations'
|
|
455
|
+
preLoaderRoute: typeof SettingsStockLocationsRouteImport
|
|
456
|
+
parentRoute: typeof SettingsRoute
|
|
457
|
+
}
|
|
458
|
+
'/_authenticated/$sellerId/settings/policies': {
|
|
459
|
+
id: '/_authenticated/$sellerId/settings/policies'
|
|
460
|
+
path: '/policies'
|
|
461
|
+
fullPath: '/$sellerId/settings/policies'
|
|
462
|
+
preLoaderRoute: typeof SettingsPoliciesRouteImport
|
|
463
|
+
parentRoute: typeof SettingsRoute
|
|
464
|
+
}
|
|
465
|
+
'/_authenticated/$sellerId/settings/package-types': {
|
|
466
|
+
id: '/_authenticated/$sellerId/settings/package-types'
|
|
467
|
+
path: '/package-types'
|
|
468
|
+
fullPath: '/$sellerId/settings/package-types'
|
|
469
|
+
preLoaderRoute: typeof SettingsPackageTypesRouteImport
|
|
470
|
+
parentRoute: typeof SettingsRoute
|
|
471
|
+
}
|
|
472
|
+
'/_authenticated/$sellerId/settings/delivery-methods': {
|
|
473
|
+
id: '/_authenticated/$sellerId/settings/delivery-methods'
|
|
474
|
+
path: '/delivery-methods'
|
|
475
|
+
fullPath: '/$sellerId/settings/delivery-methods'
|
|
476
|
+
preLoaderRoute: typeof SettingsDeliveryMethodsRouteImport
|
|
477
|
+
parentRoute: typeof SettingsRoute
|
|
478
|
+
}
|
|
479
|
+
'/_authenticated/$sellerId/products/new': {
|
|
480
|
+
id: '/_authenticated/$sellerId/products/new'
|
|
481
|
+
path: '/products/new'
|
|
482
|
+
fullPath: '/$sellerId/products/new'
|
|
483
|
+
preLoaderRoute: typeof ProductsNewRouteImport
|
|
484
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
485
|
+
}
|
|
486
|
+
'/_authenticated/$sellerId/products/$productId': {
|
|
487
|
+
id: '/_authenticated/$sellerId/products/$productId'
|
|
488
|
+
path: '/products/$productId'
|
|
489
|
+
fullPath: '/$sellerId/products/$productId'
|
|
490
|
+
preLoaderRoute: typeof ProductsProductIdRouteImport
|
|
491
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
492
|
+
}
|
|
493
|
+
'/_authenticated/$sellerId/payouts/$payoutId': {
|
|
494
|
+
id: '/_authenticated/$sellerId/payouts/$payoutId'
|
|
495
|
+
path: '/payouts/$payoutId'
|
|
496
|
+
fullPath: '/$sellerId/payouts/$payoutId'
|
|
497
|
+
preLoaderRoute: typeof PayoutsPayoutIdRouteImport
|
|
498
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
499
|
+
}
|
|
500
|
+
'/_authenticated/$sellerId/orders/$orderId': {
|
|
501
|
+
id: '/_authenticated/$sellerId/orders/$orderId'
|
|
502
|
+
path: '/orders/$orderId'
|
|
503
|
+
fullPath: '/$sellerId/orders/$orderId'
|
|
504
|
+
preLoaderRoute: typeof OrdersOrderIdRouteImport
|
|
505
|
+
parentRoute: typeof authenticatedSellerIdRoute
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
interface SettingsRouteChildren {
|
|
511
|
+
SettingsDeliveryMethodsRoute: typeof SettingsDeliveryMethodsRoute
|
|
512
|
+
SettingsPackageTypesRoute: typeof SettingsPackageTypesRoute
|
|
513
|
+
SettingsPoliciesRoute: typeof SettingsPoliciesRoute
|
|
514
|
+
SettingsStockLocationsRoute: typeof SettingsStockLocationsRoute
|
|
515
|
+
SettingsTeamRoute: typeof SettingsTeamRoute
|
|
516
|
+
SettingsIndexRoute: typeof SettingsIndexRoute
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
const SettingsRouteChildren: SettingsRouteChildren = {
|
|
520
|
+
SettingsDeliveryMethodsRoute: SettingsDeliveryMethodsRoute,
|
|
521
|
+
SettingsPackageTypesRoute: SettingsPackageTypesRoute,
|
|
522
|
+
SettingsPoliciesRoute: SettingsPoliciesRoute,
|
|
523
|
+
SettingsStockLocationsRoute: SettingsStockLocationsRoute,
|
|
524
|
+
SettingsTeamRoute: SettingsTeamRoute,
|
|
525
|
+
SettingsIndexRoute: SettingsIndexRoute,
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
const SettingsRouteWithChildren = SettingsRoute._addFileChildren(
|
|
529
|
+
SettingsRouteChildren,
|
|
530
|
+
)
|
|
531
|
+
|
|
532
|
+
interface authenticatedSellerIdRouteChildren {
|
|
533
|
+
OnboardingRoute: typeof OnboardingRoute
|
|
534
|
+
ProfileRoute: typeof ProfileRoute
|
|
535
|
+
SettingsRoute: typeof SettingsRouteWithChildren
|
|
536
|
+
IndexRoute: typeof IndexRoute
|
|
537
|
+
OrdersOrderIdRoute: typeof OrdersOrderIdRoute
|
|
538
|
+
PayoutsPayoutIdRoute: typeof PayoutsPayoutIdRoute
|
|
539
|
+
ProductsProductIdRoute: typeof ProductsProductIdRoute
|
|
540
|
+
ProductsNewRoute: typeof ProductsNewRoute
|
|
541
|
+
EarningsIndexRoute: typeof EarningsIndexRoute
|
|
542
|
+
OrdersIndexRoute: typeof OrdersIndexRoute
|
|
543
|
+
PayoutsIndexRoute: typeof PayoutsIndexRoute
|
|
544
|
+
ProductsIndexRoute: typeof ProductsIndexRoute
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
const authenticatedSellerIdRouteChildren: authenticatedSellerIdRouteChildren = {
|
|
548
|
+
OnboardingRoute: OnboardingRoute,
|
|
549
|
+
ProfileRoute: ProfileRoute,
|
|
550
|
+
SettingsRoute: SettingsRouteWithChildren,
|
|
551
|
+
IndexRoute: IndexRoute,
|
|
552
|
+
OrdersOrderIdRoute: OrdersOrderIdRoute,
|
|
553
|
+
PayoutsPayoutIdRoute: PayoutsPayoutIdRoute,
|
|
554
|
+
ProductsProductIdRoute: ProductsProductIdRoute,
|
|
555
|
+
ProductsNewRoute: ProductsNewRoute,
|
|
556
|
+
EarningsIndexRoute: EarningsIndexRoute,
|
|
557
|
+
OrdersIndexRoute: OrdersIndexRoute,
|
|
558
|
+
PayoutsIndexRoute: PayoutsIndexRoute,
|
|
559
|
+
ProductsIndexRoute: ProductsIndexRoute,
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
const authenticatedSellerIdRouteWithChildren =
|
|
563
|
+
authenticatedSellerIdRoute._addFileChildren(
|
|
564
|
+
authenticatedSellerIdRouteChildren,
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
interface authenticatedRouteChildren {
|
|
568
|
+
authenticatedSellerIdRoute: typeof authenticatedSellerIdRouteWithChildren
|
|
569
|
+
authenticatedIndexRoute: typeof authenticatedIndexRoute
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
const authenticatedRouteChildren: authenticatedRouteChildren = {
|
|
573
|
+
authenticatedSellerIdRoute: authenticatedSellerIdRouteWithChildren,
|
|
574
|
+
authenticatedIndexRoute: authenticatedIndexRoute,
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
const authenticatedRouteWithChildren = authenticatedRoute._addFileChildren(
|
|
578
|
+
authenticatedRouteChildren,
|
|
579
|
+
)
|
|
580
|
+
|
|
581
|
+
const rootRouteChildren: RootRouteChildren = {
|
|
582
|
+
authenticatedRoute: authenticatedRouteWithChildren,
|
|
583
|
+
forgotPasswordRoute: forgotPasswordRoute,
|
|
584
|
+
loginRoute: loginRoute,
|
|
585
|
+
resetPasswordRoute: resetPasswordRoute,
|
|
586
|
+
acceptInvitationDotinvitationIdRoute: acceptInvitationDotinvitationIdRoute,
|
|
587
|
+
}
|
|
588
|
+
export const routeTree = rootRouteImport
|
|
589
|
+
._addFileChildren(rootRouteChildren)
|
|
590
|
+
._addFileTypes<FileRouteTypes>()
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* CSS entry. The Spree stylesheet chain provides Tailwind v4 layers, design
|
|
2
|
+
* tokens, and base styles; the Vite plugin appends `@source` directives here
|
|
3
|
+
* at build time so Tailwind scans every Spree dashboard package for class
|
|
4
|
+
* usage.
|
|
5
|
+
*
|
|
6
|
+
* Add your own styles below the import. */
|
|
7
|
+
|
|
8
|
+
@import "@spree/seller-dashboard/styles.css";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"ignoreDeprecations": "6.0",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"types": ["vite/client"],
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"verbatimModuleSyntax": true,
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"strict": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"noUncheckedSideEffectImports": true
|
|
19
|
+
},
|
|
20
|
+
"include": ["src", "vite.config.ts"]
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { spreeSellerDashboardPlugin } from '@spree/seller-dashboard/vite'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
import { defineConfig, loadEnv } from 'vite'
|
|
4
|
+
|
|
5
|
+
export default defineConfig(({ mode }) => {
|
|
6
|
+
// loadEnv, not process.env: Vite doesn't load .env files before evaluating
|
|
7
|
+
// this config, and .env.local is where the proxy target is written.
|
|
8
|
+
const env = loadEnv(mode, process.cwd(), 'VITE_')
|
|
9
|
+
const proxyTarget = env.VITE_API_PROXY_TARGET || 'http://localhost:3000'
|
|
10
|
+
|
|
11
|
+
return {
|
|
12
|
+
base: process.env.VITE_BASE_PATH,
|
|
13
|
+
// spreeSellerDashboardPlugin bundles Tailwind, injects @source directives
|
|
14
|
+
// for every Spree dashboard package, and composes the panel's file routes
|
|
15
|
+
// into src/routeTree.gen.ts on each dev start/build — commit that file.
|
|
16
|
+
plugins: [spreeSellerDashboardPlugin(), react()],
|
|
17
|
+
// Proxy /api to Rails so the panel is same-origin with the API in dev,
|
|
18
|
+
// keeping the refresh-token cookie working under SameSite=Lax without
|
|
19
|
+
// HTTPS. /rails covers Active Storage's presigned URLs.
|
|
20
|
+
server: {
|
|
21
|
+
proxy: {
|
|
22
|
+
'/api': { target: proxyTarget, changeOrigin: true },
|
|
23
|
+
'/rails': { target: proxyTarget, changeOrigin: true },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spree/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "CLI for managing Spree Commerce projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
46
|
"vitest": "^4.1.5",
|
|
47
47
|
"yaml": "^2.8.4",
|
|
48
|
-
"@spree/admin-sdk": "^0.
|
|
48
|
+
"@spree/admin-sdk": "^1.0.0-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=20"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "node scripts/bundle-spec.mjs && node ../../scripts/sync-dashboard-starter.mjs templates/dashboard-starter && tsup",
|
|
54
|
+
"build": "node scripts/bundle-spec.mjs && node ../../scripts/sync-starter.mjs templates/dashboard-starter && node ../../scripts/sync-starter.mjs templates/seller-dashboard-starter seller-dashboard-starter && tsup",
|
|
55
55
|
"dev": "tsup --watch",
|
|
56
56
|
"test": "vitest run",
|
|
57
57
|
"typecheck": "tsc --noEmit",
|