create-protobase 0.64.0 → 0.65.1
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/templates/erp/config/categories/ui.ts +1 -0
- package/dist/templates/erp/config/companies/ui.ts +1 -0
- package/dist/templates/erp/config/countries/ui.ts +1 -0
- package/dist/templates/erp/config/currencies/ui.ts +1 -0
- package/dist/templates/erp/config/invoices/ui.ts +1 -0
- package/dist/templates/erp/config/locations/ui.ts +1 -0
- package/dist/templates/erp/config/orders/ui.ts +1 -0
- package/dist/templates/erp/config/organizations/ui.ts +1 -0
- package/dist/templates/erp/config/people/ui.ts +1 -0
- package/dist/templates/erp/config/products/ui.ts +1 -0
- package/dist/templates/erp/config/tags/ui.ts +1 -0
- package/dist/templates/erp/config/users/ui.ts +1 -0
- package/dist/templates/erp/config/warehouses/ui.ts +1 -0
- package/dist/templates/erp/package.json +6 -6
- package/dist/templates/property-portal/package.json +6 -6
- package/dist/templates/real-estate/config/organizations/ui.ts +1 -0
- package/dist/templates/real-estate/config/users/ui.ts +1 -0
- package/dist/templates/real-estate/package.json +6 -6
- package/dist/templates/scratch/package.json +6 -6
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import type { categories } from './data'
|
|
|
3
3
|
|
|
4
4
|
export const categoriesView = view<typeof categories>('categories')
|
|
5
5
|
.names({ singular: 'Category', plural: 'Categories' })
|
|
6
|
+
.icon('tags')
|
|
6
7
|
.list((r) => ({ columns: [r.name, r.slug, r.position] }))
|
|
7
8
|
.layout((r) => [
|
|
8
9
|
l.section('Category', [r.name, r.slug, r.parent_id, r.position]),
|
|
@@ -4,6 +4,7 @@ import type { companies } from './data'
|
|
|
4
4
|
export const companiesView = view<typeof companies>('companies')
|
|
5
5
|
.title((r) => r.name)
|
|
6
6
|
.names({ singular: 'Company', plural: 'Companies' })
|
|
7
|
+
.icon('building')
|
|
7
8
|
.fields((r) => ({
|
|
8
9
|
name: r.name.help('The registered name, as it should appear on invoices.'),
|
|
9
10
|
status: r.status.help('Leads have not ordered yet; dormant companies have not ordered in a year.').format('badge')
|
|
@@ -4,6 +4,7 @@ import type { invoices } from './data'
|
|
|
4
4
|
export const invoicesView = view<typeof invoices>('invoices')
|
|
5
5
|
.title((r) => r.number)
|
|
6
6
|
.names({ singular: 'Invoice', plural: 'Invoices' })
|
|
7
|
+
.icon('file-text')
|
|
7
8
|
.nav({ recent: { status: 'status', tones: { draft: 'neutral', sent: 'info', overdue: 'danger' }, filter: 'status != "paid"', orderBy: 'issued_at desc', limit: 3 } })
|
|
8
9
|
.fields((r) => ({
|
|
9
10
|
number: r.number.help('Assigned when the invoice is created.').format('code'),
|
|
@@ -3,4 +3,5 @@ import type { organizations } from './data'
|
|
|
3
3
|
|
|
4
4
|
export const organizationsView = view<typeof organizations>('organizations')
|
|
5
5
|
.names({ singular: 'Organization', plural: 'Organizations' })
|
|
6
|
+
.icon('settings')
|
|
6
7
|
.list((r) => ({ columns: [r.name, r.slug, r.country_code, r.currency_code] }))
|
|
@@ -3,5 +3,6 @@ import type { products } from './data'
|
|
|
3
3
|
|
|
4
4
|
export const productsView = view<typeof products>('products')
|
|
5
5
|
.names({ singular: 'Product', plural: 'Products' })
|
|
6
|
+
.icon('package')
|
|
6
7
|
.fields((r) => ({ sku: r.sku.format('code') }))
|
|
7
8
|
.list((r) => ({ columns: [r.sku, r.name, r.price, r.active] }))
|
|
@@ -3,6 +3,7 @@ import type { users } from './data'
|
|
|
3
3
|
|
|
4
4
|
export const usersView = view<typeof users>('users')
|
|
5
5
|
.names({ singular: 'User', plural: 'Users' })
|
|
6
|
+
.icon('users')
|
|
6
7
|
// Reached from the records that name a user; the profile menu's Users is the accounts page.
|
|
7
8
|
.nav({ hidden: true })
|
|
8
9
|
.fields((r) => ({ role: r.role.valueLabels({ admin: 'Admin', sales: 'Sales', finance: 'Finance', warehouse: 'Warehouse' }) }))
|
|
@@ -3,5 +3,6 @@ import type { warehouses } from './data'
|
|
|
3
3
|
|
|
4
4
|
export const warehousesView = view<typeof warehouses>('warehouses')
|
|
5
5
|
.names({ singular: 'Warehouse', plural: 'Warehouses' })
|
|
6
|
+
.icon('warehouse')
|
|
6
7
|
.fields((r) => ({ code: r.code.format('code') }))
|
|
7
8
|
.list((r) => ({ columns: [r.code, r.name, r.city] }))
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"zod": "^4.6.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@protobase/cli": "^0.
|
|
31
|
-
"@protobase/config": "^0.
|
|
32
|
-
"@protobase/layout": "^0.
|
|
33
|
-
"@protobase/schema": "^0.
|
|
34
|
-
"@protobase/server": "^0.
|
|
35
|
-
"@protobase/ui": "^0.
|
|
30
|
+
"@protobase/cli": "^0.65.1",
|
|
31
|
+
"@protobase/config": "^0.65.1",
|
|
32
|
+
"@protobase/layout": "^0.65.1",
|
|
33
|
+
"@protobase/schema": "^0.65.1",
|
|
34
|
+
"@protobase/server": "^0.65.1",
|
|
35
|
+
"@protobase/ui": "^0.65.1",
|
|
36
36
|
"@types/node": "^22.20.5",
|
|
37
37
|
"@types/pg": "^8.23.1",
|
|
38
38
|
"@types/react": "^19.3.0",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"zod": "^4.6.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@protobase/cli": "^0.
|
|
31
|
-
"@protobase/config": "^0.
|
|
32
|
-
"@protobase/layout": "^0.
|
|
33
|
-
"@protobase/schema": "^0.
|
|
34
|
-
"@protobase/server": "^0.
|
|
35
|
-
"@protobase/ui": "^0.
|
|
30
|
+
"@protobase/cli": "^0.65.1",
|
|
31
|
+
"@protobase/config": "^0.65.1",
|
|
32
|
+
"@protobase/layout": "^0.65.1",
|
|
33
|
+
"@protobase/schema": "^0.65.1",
|
|
34
|
+
"@protobase/server": "^0.65.1",
|
|
35
|
+
"@protobase/ui": "^0.65.1",
|
|
36
36
|
"@types/node": "^22.20.5",
|
|
37
37
|
"@types/pg": "^8.23.1",
|
|
38
38
|
"@types/react": "^19.3.0",
|
|
@@ -3,5 +3,6 @@ import type { organizations } from './data'
|
|
|
3
3
|
|
|
4
4
|
export const organizationsView = view<typeof organizations>('organizations')
|
|
5
5
|
.names({ singular: 'Organization', plural: 'Organizations' })
|
|
6
|
+
.icon('settings')
|
|
6
7
|
.fields((r) => ({ kvk_number: r.kvk_number.label('KvK number').help('Chamber of Commerce registration.').format('code') }))
|
|
7
8
|
.list((r) => ({ columns: [r.name, r.slug, r.city, r.kvk_number] }))
|
|
@@ -4,6 +4,7 @@ import type { users } from './data'
|
|
|
4
4
|
export const usersView = view<typeof users>('users')
|
|
5
5
|
.title((r) => r.name)
|
|
6
6
|
.names({ singular: 'User', plural: 'Users' })
|
|
7
|
+
.icon('users')
|
|
7
8
|
// Reached from the records that name a user; the profile menu's Users is the accounts page.
|
|
8
9
|
.nav({ hidden: true })
|
|
9
10
|
.fields((r) => ({ role: r.role.format('badge').valueLabels({ admin: 'Admin', manager: 'Manager', finance: 'Finance', maintenance: 'Maintenance' }) }))
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"zod": "^4.6.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@protobase/cli": "^0.
|
|
31
|
-
"@protobase/config": "^0.
|
|
32
|
-
"@protobase/layout": "^0.
|
|
33
|
-
"@protobase/schema": "^0.
|
|
34
|
-
"@protobase/server": "^0.
|
|
35
|
-
"@protobase/ui": "^0.
|
|
30
|
+
"@protobase/cli": "^0.65.1",
|
|
31
|
+
"@protobase/config": "^0.65.1",
|
|
32
|
+
"@protobase/layout": "^0.65.1",
|
|
33
|
+
"@protobase/schema": "^0.65.1",
|
|
34
|
+
"@protobase/server": "^0.65.1",
|
|
35
|
+
"@protobase/ui": "^0.65.1",
|
|
36
36
|
"@types/node": "^22.20.5",
|
|
37
37
|
"@types/pg": "^8.23.1",
|
|
38
38
|
"@types/react": "^19.3.0",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"zod": "^4.6.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@protobase/cli": "^0.
|
|
28
|
-
"@protobase/config": "^0.
|
|
29
|
-
"@protobase/layout": "^0.
|
|
30
|
-
"@protobase/schema": "^0.
|
|
31
|
-
"@protobase/server": "^0.
|
|
32
|
-
"@protobase/ui": "^0.
|
|
27
|
+
"@protobase/cli": "^0.65.1",
|
|
28
|
+
"@protobase/config": "^0.65.1",
|
|
29
|
+
"@protobase/layout": "^0.65.1",
|
|
30
|
+
"@protobase/schema": "^0.65.1",
|
|
31
|
+
"@protobase/server": "^0.65.1",
|
|
32
|
+
"@protobase/ui": "^0.65.1",
|
|
33
33
|
"@types/node": "^22.20.5",
|
|
34
34
|
"@types/pg": "^8.23.1",
|
|
35
35
|
"@types/react": "^19.3.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-protobase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.1",
|
|
4
4
|
"description": "npm create protobase: starts a new Protobase project from one of its presets, or on an existing Postgres database.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"postgres": "^3.4.9"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@protobase/cli": "0.
|
|
31
|
+
"@protobase/cli": "0.65.1"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|