snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s

This commit is contained in:
upstream-mirror
2026-09-18 01:22:23 +05:00
commit 7e385fc126
8391 changed files with 1766236 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
namespaces:
ns1:
name: ns1 name

View File

@@ -0,0 +1,69 @@
# Provides a complete set of things to cover regarding modules and module fields.
# mod1: defines more complicated fields, relates to mod2
# mod2: defines a self-ref, relates to mod3
# mod3: just a placeholder
namespace: ns1
modules:
mod1:
name: mod1 name
fields:
f1:
label: f1 label
kind: String
required: true
f2:
label: f2 label
kind: Select
options:
options:
- f2 opt 1
- f2 opt 2
- f2 opt 3
f3:
label: f3 label
kind: Select
options:
options:
- ☆☆☆☆☆
- ★☆☆☆☆
f4:
label: f4 label
kind: Record
options:
labelField: f_label
module: mod2
queryFields:
- f1
mod2:
name: mod2 name
fields:
f_label:
label: f_label record label
f_ref_self:
label: f_ref_self label
kind: Record
options:
labelField: f_label
module: mod2
queryFields:
- f1
f1:
label: f1 label
kind: String
required: true
f2:
label: f2 label
kind: Record
options:
labelField: f_label
module: mod3
queryFields:
- f1
mod3:
name: mod3 name
fields:
f_label:
label: f_label record label

View File

@@ -0,0 +1,47 @@
namespace: ns1
pages:
pg1:
title: pg1 title
blocks:
- title: pg1 b1
kind: Content
xywh: [0, 0, 1, 1]
options:
body: pg1 b1 content body
- title: pg1 b2
kind: RecordList
xywh: [0, 1, 1, 1]
options:
module: mod1
fields:
- name: f1
- name: f2
variants:
bodyBg: white
border: primary
headerBg: white
headerText: primary
- title: pg1 b3
kind: Chart
xywh: [0, 2, 1, 1]
options:
chart: chr1
variants:
bodyBg: white
border: primary
headerBg: white
headerText: primary
rpg2:
handle: rpg2
module: mod1
title: Record page for module "mod1"
blocks:
- title: rpg2 b1 title
kind: Record
options:
fields:
- name: f1
- name: f2

View File

@@ -0,0 +1,18 @@
namespace: ns1
charts:
chr1:
name: chr1 name
config:
reports:
- dimensions:
- field: Status
modifier: (no grouping / buckets)
filter: ""
metrics:
- backgroundColor: '#11ff57'
field: count
fixTooltips: true
type: pie
module: mod1
renderer: {}
colorScheme: tableau.Tableau10

View File

@@ -0,0 +1,3 @@
namespaces:
ns1:
name: ns1 name

View File

@@ -0,0 +1,17 @@
namespace: ns1
modules:
mod1:
name: mod1 name
fields:
f1:
label: f1 label
kind: String
required: true
f2:
label: f2 label
kind: Select
options:
options:
- f2 opt 1
- f2 opt 2
- f2 opt 3

View File

@@ -0,0 +1,60 @@
namespace: ns1
pages:
pg1:
title: pg1 title
blocks:
- title: pg1 b1
kind: Content
xywh: [0, 0, 1, 1]
options:
body: pg1 b1 content body
- title: pg1 b2
kind: RecordList
xywh: [0, 1, 1, 1]
options:
module: mod1
fields:
- name: f1
- name: f2
- title: pg1 b3 automation 1
kind: Automation
xywh: [0, 0, 0, 0]
options:
buttons:
- label: workflow button
resourceType: compose:record
workflow: wf1
stepID: 4
- title: pg1 b3 automation 2
kind: Automation
xywh: [0, 0, 0, 0]
options:
buttons:
- label: script button
script: /client-scripts/compose/test.js:default
- title: pg1 b3 automation 3
kind: Automation
xywh: [0, 0, 0, 0]
options:
buttons:
- label: placeholder button
- title: pg1 b3 automation 4
kind: Automation
xywh: [0, 0, 0, 0]
rpg2:
handle: rpg2
module: mod1
title: Record page for module "mod1"
blocks:
- title: rpg2 b1 title
kind: Record
options:
fields:
- name: f1
- name: f2

View File

@@ -0,0 +1,36 @@
workflows:
wf1:
meta:
name: wf1
enabled: true
keepSessions: 0
triggers:
- resourceType: compose:record
eventType: beforeCreate
constraints:
- name: namespace.handle
op: =
values:
- ns1
enabled: true
stepID: 4
steps:
- id: 4
kind: prompt
ref: alert
arguments:
- target: message
source: ""
expr: ""
value: Test
type: String
tests: []
results: []
meta:
name: ""
description: ""
visual:
id: "4"
parent: "1"
value: null
xywh: [0, 0, 0, 0]

View File

@@ -0,0 +1,3 @@
namespaces:
ns1:
name: ns1 name

View File

@@ -0,0 +1,3 @@
namespaces:
ns1:
name: ns1 name

View File

@@ -0,0 +1,42 @@
namespace: ns1
modules:
mod1:
name: mod1 name
fields:
f1:
label: f1 label
kind: String
required: true
f2:
label: f2 label
kind: Select
options:
options:
- f2 opt 1
- f2 opt 2
- f2 opt 3
f3:
label: f3 label
kind: Record
options:
labelField: f_label
module: mod2
queryFields:
- f1
mod2:
name: mod2 name
fields:
f_label:
label: f_label record label
f1:
label: f1 label
kind: String
required: true
mod3:
name: mod3 name
fields:
f1:
label: f1 label
kind: String

View File

@@ -0,0 +1,47 @@
namespace: ns1
pages:
pg1:
title: pg1 title
blocks:
- title: pg1 b1
kind: Content
xywh: [0, 0, 1, 1]
options:
body: pg1 b1 content body
- title: pg1 b2
kind: RecordList
xywh: [0, 1, 1, 1]
options:
module: mod1
fields:
- name: f1
- name: f2
- title: pg1 b3
kind: Chart
xywh: [0, 2, 1, 1]
options:
chart: chr1
rpg2:
handle: rpg2
module: mod1
title: Record page for module "mod1"
blocks:
- title: rpg2 b1 title
kind: Record
options:
fields:
- name: f1
- name: f2
pages:
pg2:
title: pg2 title
blocks:
- title: pg2 b1
kind: Content
xywh: [0, 0, 1, 1]
options:
body: pg2 b1 content body

View File

@@ -0,0 +1,18 @@
namespace: ns1
charts:
chr1:
name: chr1 name
config:
reports:
- dimensions:
- field: Status
modifier: (no grouping / buckets)
filter: ""
metrics:
- backgroundColor: '#11ff57'
field: count
fixTooltips: true
type: pie
module: mod1
renderer: {}
colorScheme: tableau.Tableau10

View File

@@ -0,0 +1,3 @@
namespaces:
ns1:
name: ns1 name

View File

@@ -0,0 +1,42 @@
namespace: ns1
modules:
mod1:
name: mod1 name
fields:
f1:
label: f1 label
kind: String
required: true
f2:
label: f2 label
kind: Select
options:
options:
- f2 opt 1
- f2 opt 2
- f2 opt 3
f3:
label: f3 label
kind: Record
options:
labelField: f_label
module: mod2
queryFields:
- f1
mod2:
name: mod2 name
fields:
f_label:
label: f_label record label
f1:
label: f1 label
kind: String
required: true
mod3:
name: mod3 name
fields:
f1:
label: f1 label
kind: String

View File

@@ -0,0 +1,47 @@
namespace: ns1
pages:
pg1:
title: pg1 title
blocks:
- title: pg1 b1
kind: Content
xywh: [0, 0, 1, 1]
options:
body: pg1 b1 content body
- title: pg1 b2
kind: RecordList
xywh: [0, 1, 1, 1]
options:
module: mod1
fields:
- name: f1
- name: f2
- title: pg1 b3
kind: Chart
xywh: [0, 2, 1, 1]
options:
chart: chr1
rpg2:
handle: rpg2
module: mod1
title: Record page for module "mod1"
blocks:
- title: rpg2 b1 title
kind: Record
options:
fields:
- name: f1
- name: f2
pages:
pg2:
title: pg2 title
blocks:
- title: pg2 b1
kind: Content
xywh: [0, 0, 1, 1]
options:
body: pg2 b1 content body

View File

@@ -0,0 +1,18 @@
namespace: ns1
charts:
chr1:
name: chr1 name
config:
reports:
- dimensions:
- field: Status
modifier: (no grouping / buckets)
filter: ""
metrics:
- backgroundColor: '#11ff57'
field: count
fixTooltips: true
type: pie
module: mod1
renderer: {}
colorScheme: tableau.Tableau10

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,30 @@
namespaces:
ns1:
name: ns1 name
modules:
mod1:
name: mod1 name
fields:
f1:
label: f1 label
kind: String
required: true
f2:
label: f2 label
kind: Select
options:
options:
- f2 opt 1
- f2 opt 2
- f2 opt 3
records:
mod1:
- createdBy: user_createdby
updatedBy: user_updatedby
deletedBy: user_deletedby
ownedBy: user_ownedby
values:
f1: "mod1 f1 v1"
f2: "f2 opt 1"

View File

@@ -0,0 +1,49 @@
users:
user_createdby:
email: user_createdby@test.tld
name: creator
user_updatedby:
email: user_updatedby@test.tld
name: updater
user_deletedby:
email: user_deletedby@test.tld
name: deleter
user_ownedby:
email: user_ownedby@test.tld
name: owner
roles:
owner:
name: Owner
meta:
context:
expr: resource.ownedBy == userID
resourceType:
- corteza::compose:record
creator:
name: Creator
meta:
context:
expr: resource.createdBy == userID
resourceType:
- corteza::compose:record
updater:
name: Updater
meta:
context:
expr: resource.updatedBy == userID
resourceType:
- corteza::compose:record
deleter:
name: Deleter
meta:
context:
expr: resource.deletedBy == userID
resourceType:
- corteza::compose:record

View File

@@ -0,0 +1,6 @@
John,Doe,120 jefferson st.,Riverside, NJ, 08075
Jack,McGinnis,220 hobo Av.,Phila, PA,09119
"John ""Da Man""",Repici,120 Jefferson St.,Riverside, NJ,08075
Stephen,Tyler,"7452 Terrace ""At the Plaza"" road",SomeTown,SD, 91234
,Blankman,,SomeTown, SD, 00298
"Joan ""the bone"", Anne",Jet,"9th, at Terrace plc",Desert City,CO,00123
1 John Doe 120 jefferson st. Riverside NJ 08075
2 Jack McGinnis 220 hobo Av. Phila PA 09119
3 John "Da Man" Repici 120 Jefferson St. Riverside NJ 08075
4 Stephen Tyler 7452 Terrace "At the Plaza" road SomeTown SD 91234
5 Blankman SomeTown SD 00298
6 Joan "the bone", Anne Jet 9th, at Terrace plc Desert City CO 00123

BIN
server/tests/compose/testdata/test.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB