1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

updated _master app UI

This commit is contained in:
Michael Shanks 2020-02-26 15:59:27 +00:00
parent 4245d429b9
commit cb9b48c73b
26 changed files with 7656 additions and 3153 deletions

View file

@ -1,78 +1 @@
builder/*
.data/
.temp/
packages/server/runtime_apps/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
dist/

View file

@ -1,14 +0,0 @@
{
"name": "Login Screen",
"description": "",
"inherits": "@budibase/standard-components/login",
"props": {
"logo": "_shared/budibase-logo.png"
},
"tags": [
"login",
"credentials",
"password",
"logon"
]
}

View file

@ -1,228 +0,0 @@
{
"name": "Main View Switcher",
"description": "",
"inherits": "@budibase/standard-components/nav",
"props": {
"items": [
{
"_component": "#items#array_element",
"title": "Apps List",
"component": {
"_component": "apps/Apps List",
"direction": "horizontal",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "apps/Create App List Item",
"text": "Create New",
"component": {
"_component": ""
},
"containerClass": "",
"background": "",
"border": "1px solid black",
"borderRadius": "2px",
"font": "",
"color": "",
"padding": "10px",
"margin": "20px",
"hoverColor": "",
"hoverBackground": "gainsboro",
"height": "100px",
"width": "100px",
"onClick": [
{
"##eventHandlerType": "Get New Record",
"parameters": {
"collectionKey": "/applications",
"childRecordType": "application",
"statePath": "currentApplication"
}
}
]
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": "allApplications",
"##bbsource": "store"
},
"dataItemComponent": {
"_component": "apps/Application List Item",
"text": "",
"component": {
"_component": "@budibase/standard-components/stackpanel",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "@budibase/standard-components/text",
"value": "",
"containerClass": "",
"font": "",
"color": "",
"textAlign": "inline",
"verticalAlign": "inline",
"display": "inline"
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": ""
},
"dataItemComponent": {
"_component": ""
},
"onLoad": []
},
"containerClass": "",
"background": "",
"border": "1px solid dimgray",
"borderRadius": "2px",
"font": "",
"color": "black",
"padding": "10px",
"margin": "20px",
"hoverColor": "",
"hoverBackground": "",
"height": "",
"width": "",
"onClick": [
{
"##eventHandlerType": "Load Record",
"parameters": {
"recordKey": {
"##bbstate": "key",
"##bbsource": "context"
},
"statePath": "currentApp"
}
}
],
"display": "inline"
},
"onLoad": [
{
"##eventHandlerType": "List Records",
"parameters": {
"indexKey": "/all_applications",
"statePath": "allApplications"
}
}
],
"component": {
"_component": "@budibase/standard-components/stackpanel",
"direction": "horizontal",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "@budibase/standard-components/text",
"value": "",
"containerClass": "",
"font": "",
"color": "",
"textAlign": "inline",
"verticalAlign": "inline",
"display": "inline"
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": "allApplications",
"##bbsource": "store"
},
"dataItemComponent": {
"_component": "apps/Application List Item",
"text": {
"##bbstate": "name",
"##bbstatefallback": "My App Name",
"##bbsource": "context"
},
"component": {
"_component": "@budibase/standard-components/stackpanel",
"direction": "horizontal",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "@budibase/standard-components/text",
"value": "",
"containerClass": "",
"font": "",
"color": "",
"textAlign": "inline",
"verticalAlign": "inline",
"display": "inline"
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": "allApplications",
"##bbsource": "store"
},
"dataItemComponent": {
"_component": ""
},
"onLoad": []
},
"containerClass": "",
"background": "",
"border": "1px solid dimgray",
"borderRadius": "2px",
"font": "",
"color": "black",
"padding": "10px",
"margin": "20px",
"hoverColor": "",
"hoverBackground": "",
"height": "",
"width": "",
"onClick": [
{
"##eventHandlerType": "Load Record",
"parameters": {
"recordKey": {
"##bbstate": "key",
"##bbsource": "context"
},
"statePath": "currentApplication"
}
}
],
"display": ""
},
"onLoad": []
}
}
}
],
"selectedItem": {
"##bbstate": "currentView",
"##bbstatefallback": "Apps List",
"##bbsource": "store"
}
},
"tags": [
"nav",
"navigation",
"sidebar"
]
}

View file

@ -1,25 +0,0 @@
{
"name": "apps/App Form",
"description": "",
"inherits": "@budibase/standard-components/form",
"props": {
"formControls": [
{
"_component": "#formControls#array_element",
"label": "Name",
"control": {
"_component": "@budibase/standard-components/textbox",
"value": {
"##bbstate": "currentApplication.name",
"##bbsource": "store"
},
"hideValue": false,
"className": "default"
}
}
]
},
"tags": [
"form"
]
}

View file

@ -1,65 +0,0 @@
{
"name": "apps/Application List Item",
"description": "",
"inherits": "@budibase/standard-components/panel",
"props": {
"border": "1px solid dimgray",
"borderRadius": "2px",
"color": "black",
"padding": "10px",
"margin": "20px",
"onClick": [
{
"##eventHandlerType": "Load Record",
"parameters": {
"recordKey": {
"##bbstate": "key",
"##bbsource": "context"
},
"statePath": "currentApplication"
}
}
],
"component": {
"_component": "@budibase/standard-components/stackpanel",
"direction": "horizontal",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "@budibase/standard-components/text",
"value": "",
"containerClass": "",
"font": "",
"color": "",
"textAlign": "inline",
"verticalAlign": "inline",
"display": "inline"
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": "allApplications",
"##bbsource": "store"
},
"dataItemComponent": {
"_component": ""
},
"onLoad": []
},
"display": "",
"text": {
"##bbstate": "name",
"##bbstatefallback": "My App Name",
"##bbsource": "context"
}
},
"tags": [
"div",
"container"
]
}

View file

@ -1,210 +0,0 @@
{
"name": "Main App Screen",
"description": "",
"inherits": "@budibase/standard-components/stackpanel",
"props": {
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "apps/Create App List Item",
"text": "Create New",
"component": {
"_component": ""
},
"containerClass": "",
"background": "",
"border": "1px solid black",
"borderRadius": "2px",
"font": "",
"color": "",
"padding": "10px",
"margin": "20px",
"hoverColor": "",
"hoverBackground": "gainsboro",
"height": "100px",
"width": "100px",
"onClick": [
{
"##eventHandlerType": "Get New Record",
"parameters": {
"collectionKey": "/applications",
"childRecordType": "application",
"statePath": "currentApplication"
}
}
]
}
}
],
"onLoad": [
{
"##eventHandlerType": "List Records",
"parameters": {
"indexKey": "/all_applications",
"statePath": "allApplications"
}
}
],
"data": {
"##bbstate": "allApplications",
"##bbsource": "store"
},
"dataItemComponent": {
"_component": "apps/Application List Item",
"text": "",
"component": {
"_component": "@budibase/standard-components/stackpanel",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "@budibase/standard-components/text",
"value": "",
"containerClass": "",
"font": "",
"color": "",
"textAlign": "inline",
"verticalAlign": "inline",
"display": "inline"
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": ""
},
"dataItemComponent": {
"_component": ""
},
"onLoad": []
},
"containerClass": "",
"background": "",
"border": "1px solid dimgray",
"borderRadius": "2px",
"font": "",
"color": "black",
"padding": "10px",
"margin": "20px",
"hoverColor": "",
"hoverBackground": "",
"height": "",
"width": "",
"onClick": [
{
"##eventHandlerType": "Load Record",
"parameters": {
"recordKey": {
"##bbstate": "key",
"##bbsource": "context"
},
"statePath": "currentApp"
}
}
],
"display": "inline"
},
"component": {
"_component": "@budibase/standard-components/stackpanel",
"direction": "horizontal",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "@budibase/standard-components/text",
"value": "",
"containerClass": "",
"font": "",
"color": "",
"textAlign": "inline",
"verticalAlign": "inline",
"display": "inline"
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": "allApplications",
"##bbsource": "store"
},
"dataItemComponent": {
"_component": "apps/Application List Item",
"text": {
"##bbstate": "name",
"##bbstatefallback": "My App Name",
"##bbsource": "context"
},
"component": {
"_component": "@budibase/standard-components/stackpanel",
"direction": "horizontal",
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "@budibase/standard-components/text",
"value": "",
"containerClass": "",
"font": "",
"color": "",
"textAlign": "inline",
"verticalAlign": "inline",
"display": "inline"
}
}
],
"width": "auto",
"height": "auto",
"containerClass": "",
"itemContainerClass": "",
"data": {
"##bbstate": "allApplications",
"##bbsource": "store"
},
"dataItemComponent": {
"_component": ""
},
"onLoad": []
},
"containerClass": "",
"background": "",
"border": "1px solid dimgray",
"borderRadius": "2px",
"font": "",
"color": "black",
"padding": "10px",
"margin": "20px",
"hoverColor": "",
"hoverBackground": "",
"height": "",
"width": "",
"onClick": [
{
"##eventHandlerType": "Load Record",
"parameters": {
"recordKey": {
"##bbstate": "key",
"##bbsource": "context"
},
"statePath": "currentApplication"
}
}
],
"display": ""
},
"onLoad": []
}
},
"tags": [
"div",
"container",
"layout",
"panel"
]
}

View file

@ -1,30 +0,0 @@
{
"name": "apps/Create App List Item",
"description": "",
"inherits": "@budibase/standard-components/panel",
"props": {
"text": "Create New",
"padding": "10px",
"hoverColor": "",
"margin": "20px",
"border": "1px solid black",
"borderRadius": "2px",
"hoverBackground": "gainsboro",
"height": "100px",
"width": "100px",
"onClick": [
{
"##eventHandlerType": "Get New Record",
"parameters": {
"collectionKey": "/applications",
"childRecordType": "application",
"statePath": "currentApplication"
}
}
]
},
"tags": [
"div",
"container"
]
}

View file

@ -1,37 +0,0 @@
{
"name": "apps/Edit App ",
"description": "",
"inherits": "@budibase/standard-components/stackpanel",
"props": {
"children": [
{
"_component": "#children#array_element",
"control": {
"_component": "apps/App Form",
"containerClass": "",
"formControls": [
{
"_component": "#formControls#array_element",
"label": "Name",
"control": {
"_component": "@budibase/standard-components/textbox",
"value": {
"##bbstate": "currentApplication.name",
"##bbsource": "store"
},
"hideValue": false,
"className": "default"
}
}
]
}
}
]
},
"tags": [
"div",
"container",
"layout",
"panel"
]
}

View file

@ -0,0 +1,247 @@
{
"name": "masterui",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@budibase/materialdesign-components": {
"version": "0.0.16",
"resolved": "https://registry.npmjs.org/@budibase/materialdesign-components/-/materialdesign-components-0.0.16.tgz",
"integrity": "sha512-4nXZ2UXJNgZwcbl3ZvE+vLWbwpId6Xg0QIO1bsh8Kh9aRE2oX2oWwr/+f6PT4AcCeM+oU144maXPgK2a8k1e7Q==",
"requires": {
"@material/checkbox": "^4.0.0",
"@material/data-table": "4.0.0",
"@material/form-field": "^4.0.0",
"@material/radio": "^4.0.0",
"@material/textfield": "^4.0.0"
}
},
"@budibase/standard-components": {
"version": "0.0.16",
"resolved": "https://registry.npmjs.org/@budibase/standard-components/-/standard-components-0.0.16.tgz",
"integrity": "sha512-QSbnuAfBa1+lWgBZiY2WbD8NUh3/WAuh6HWmFlcKCrVblPFH/3nz3fGuWKRFbvz8uZvWaai6pC3Es4NiefUViw=="
},
"@material/animation": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/animation/-/animation-4.0.0.tgz",
"integrity": "sha512-IfzXzstWdtKQcsNWu+s2Hpz5dBwkTHtgtzoesr+FC7TqENH+SJdsF1ntnZI1XVi2C9ZlBf7f4BSmXpWHD0MIlw==",
"requires": {
"tslib": "^1.9.3"
}
},
"@material/base": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/base/-/base-4.0.0.tgz",
"integrity": "sha512-vHm7fkqXzjdfxifXvlmaZColoIfKuWmO+1rvdzDORTWP+A8Dq70cgKd2I1SBqxzDGjOasMzHbQI6f9MISQf2vQ==",
"requires": {
"tslib": "^1.9.3"
}
},
"@material/checkbox": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/checkbox/-/checkbox-4.0.0.tgz",
"integrity": "sha512-2ONHncYAmyIQewvedKDJGeiMvLjmX7wBH5Lx0OBYSwa9nuwjXGWEQR8tNOHIZzevV+nPyGexl6HyvgZ2QNUVZg==",
"requires": {
"@material/animation": "^4.0.0",
"@material/base": "^4.0.0",
"@material/density": "^4.0.0",
"@material/dom": "^4.0.0",
"@material/feature-targeting": "^4.0.0",
"@material/ripple": "^4.0.0",
"@material/theme": "^4.0.0",
"@material/touch-target": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/data-table": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/data-table/-/data-table-4.0.0.tgz",
"integrity": "sha512-tCjdynaqPATCIi8YWOCo9ie8tyHlxlIpyfMuRx3dVD90P8aIdNEc74LoeAQc2TuOwKZJJqG8WYkA2p6uUNaz2Q==",
"requires": {
"@material/animation": "^4.0.0",
"@material/base": "^4.0.0",
"@material/checkbox": "^4.0.0",
"@material/density": "^4.0.0",
"@material/dom": "^4.0.0",
"@material/elevation": "^4.0.0",
"@material/feature-targeting": "^4.0.0",
"@material/ripple": "^4.0.0",
"@material/rtl": "^4.0.0",
"@material/shape": "^4.0.0",
"@material/theme": "^4.0.0",
"@material/typography": "^4.0.0",
"tslib": "^1.10.0"
}
},
"@material/density": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/density/-/density-4.0.0.tgz",
"integrity": "sha512-PuOCPCXlWjimTq+OuCS8biAb1JE9aXCZwT1dRG9REAIAK7bN8KeeTzkeJp6jTj+ggZjWphwKF0lKeX6Gv+e/lw=="
},
"@material/dom": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/dom/-/dom-4.0.0.tgz",
"integrity": "sha512-GRCJT9+PGWqygZwGf1XLTrbmzP35YWG7+T0hpfhoIJO8VDiMTeyfvhJXFuA2wh9pD0noEjte0lmbdBlykrbWZw==",
"requires": {
"tslib": "^1.9.3"
}
},
"@material/elevation": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/elevation/-/elevation-4.0.0.tgz",
"integrity": "sha512-wKffoZcqkwAMWYbfGJJ95RDeOFz/IMvF7ye4VamjUwLb1iPiKxUZKUcd40XpuEvsn794HSIEWfGDsRq7BxJAMQ==",
"requires": {
"@material/animation": "^4.0.0",
"@material/feature-targeting": "^4.0.0",
"@material/theme": "^4.0.0"
}
},
"@material/feature-targeting": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/feature-targeting/-/feature-targeting-4.0.0.tgz",
"integrity": "sha512-0gk+f151vqmEdWkrQ9ocPlQRU9aUtSGsVBhletqIbsthLUsZIz9qk25FHjV1wHd/bGHknd9NH+T8ENprv3KLFg=="
},
"@material/floating-label": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/floating-label/-/floating-label-4.0.0.tgz",
"integrity": "sha512-ovuZKhH7U+YmZk8kXftYCdEaU9InJdkBsPe4TP+dg4HiO1lWmd7ZxVsMo6iTl4yaFofkBPj3VDkbE1fLnHxKPA==",
"requires": {
"@material/animation": "^4.0.0",
"@material/base": "^4.0.0",
"@material/rtl": "^4.0.0",
"@material/theme": "^4.0.0",
"@material/typography": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/form-field": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/form-field/-/form-field-4.0.0.tgz",
"integrity": "sha512-M5+c7mitD4NIH+3kU2+uX1mUJJJPNYSUN3bAmhjbMxMISY9jkrbv9k5T9jlWRaIqvO6qJ1aDFOQASV8CsWstYQ==",
"requires": {
"@material/base": "^4.0.0",
"@material/feature-targeting": "^4.0.0",
"@material/ripple": "^4.0.0",
"@material/rtl": "^4.0.0",
"@material/theme": "^4.0.0",
"@material/typography": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/line-ripple": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/line-ripple/-/line-ripple-4.0.0.tgz",
"integrity": "sha512-+vrgKlb2gUBIKxlzVKLn/tX76qJ0Z19RkH2i7mh4IdH8KxeEai8NQQYWqeOOKtyp8JbH0ObGyqJCwPo2VbHDmw==",
"requires": {
"@material/animation": "^4.0.0",
"@material/base": "^4.0.0",
"@material/theme": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/notched-outline": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/notched-outline/-/notched-outline-4.0.0.tgz",
"integrity": "sha512-9WNG7dZS83nu72kmoknA3XyvZQIxx8QBjEB2Q2KGyRp4Q8zrzWxfcvTYgiOsYgvz013JnTqaqe4g0wjl6v789g==",
"requires": {
"@material/base": "^4.0.0",
"@material/floating-label": "^4.0.0",
"@material/rtl": "^4.0.0",
"@material/shape": "^4.0.0",
"@material/theme": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/radio": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/radio/-/radio-4.0.0.tgz",
"integrity": "sha512-3+TkORjxHwhI1SdiBWG3uvfx87LNBFlLMqLJISQsEUegUWGChNnp1DnkZIUqAJ1lXBHZsCjJFUrxKWE4RZ5hVA==",
"requires": {
"@material/animation": "^4.0.0",
"@material/base": "^4.0.0",
"@material/density": "^4.0.0",
"@material/dom": "^4.0.0",
"@material/feature-targeting": "^4.0.0",
"@material/ripple": "^4.0.0",
"@material/theme": "^4.0.0",
"@material/touch-target": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/ripple": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/ripple/-/ripple-4.0.0.tgz",
"integrity": "sha512-9BLIOvyCP5sM+fQpLlcJZWyrHguusJq8E5A1pxg0wQwputOyaPBM7recHhYkJmVjzRpTcPgf1PkvkpN6DKGcNg==",
"requires": {
"@material/animation": "^4.0.0",
"@material/base": "^4.0.0",
"@material/dom": "^4.0.0",
"@material/feature-targeting": "^4.0.0",
"@material/theme": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/rtl": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/rtl/-/rtl-4.0.0.tgz",
"integrity": "sha512-AP8zByVDEWAJVJoxByVccUbH+BX24IeG7ol+L6Qd8JjzPpz1fzPVJ4BeDNaF0a6sXtHsRmj2zN5dsx/BGC3IHg=="
},
"@material/shape": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/shape/-/shape-4.0.0.tgz",
"integrity": "sha512-wmr05YBrEL462QPiJ+t9xh5RqxzylXYo/8DVZnb/1WA9GZ6m38UK/8Awtip1cZAN34pzD/9p5AydyywlQVoI+g==",
"requires": {
"@material/feature-targeting": "^4.0.0"
}
},
"@material/textfield": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/textfield/-/textfield-4.0.0.tgz",
"integrity": "sha512-1Xg+nriTqFB8+5k8sGkR8LBeD3dRgNuhvwyU8XrUeAs5l/HMfn4CWgbEyZTaJ2EEtFPxnKGedAYqCEwXngwGWg==",
"requires": {
"@material/animation": "^4.0.0",
"@material/base": "^4.0.0",
"@material/density": "^4.0.0",
"@material/dom": "^4.0.0",
"@material/floating-label": "^4.0.0",
"@material/line-ripple": "^4.0.0",
"@material/notched-outline": "^4.0.0",
"@material/ripple": "^4.0.0",
"@material/rtl": "^4.0.0",
"@material/shape": "^4.0.0",
"@material/theme": "^4.0.0",
"@material/typography": "^4.0.0",
"tslib": "^1.9.3"
}
},
"@material/theme": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/theme/-/theme-4.0.0.tgz",
"integrity": "sha512-vS4G4rusJTatTH50kSYO1U3UGN8EY9kGRvPaFsEFKikJBOqcR6KWK9H9/wCLqqd6nDNifEj9H2sdWw1AV4NA6Q==",
"requires": {
"@material/feature-targeting": "^4.0.0"
}
},
"@material/touch-target": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/touch-target/-/touch-target-4.0.0.tgz",
"integrity": "sha512-TM8xK1WwTZtP4vYQ7E7aZLdGKyP1GuG5Ilb0qlytX/gmC8Di/kRn6muDSZyeCCUcMXYth5Et0ceWtpNrcAQHMQ==",
"requires": {
"@material/feature-targeting": "^4.0.0"
}
},
"@material/typography": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@material/typography/-/typography-4.0.0.tgz",
"integrity": "sha512-lUG4yjG9fl1ryNX4OVnOmi+EjhiV4WsWcYt4yzffHrFg1RfKuCAV59j7TtmlMfZIkNDwqK5jvk3oOpTRDFpL8Q==",
"requires": {
"@material/feature-targeting": "^4.0.0"
}
},
"tslib": {
"version": "1.11.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.0.tgz",
"integrity": "sha512-BmndXUtiTn/VDDrJzQE7Mm22Ix3PxgLltW9bSNLoeCY31gnG2OPx0QqJnuc9oMIKioYrz487i6K9o4Pdn0j+Kg=="
}
}
}

View file

@ -1,15 +1,14 @@
{
"name": "budibase-master",
"name": "masterui",
"version": "1.0.0",
"description": "",
"main": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "GPL-3.0",
"license": "ISC",
"dependencies": {
"@budibase/client": "file:../../../client",
"@budibase/standard-components": "file:../../../standard-components"
"@budibase/standard-components": "^0.0.16",
"@budibase/materialdesign-components": "^0.0.16"
}
}

View file

@ -1,18 +0,0 @@
{
"main": {
"index": {
"title": "Budibase"
},
"appBody": "apps/Apps List"
},
"unauthenticated": {
"index": {
"title": "Budibase - Login"
},
"appBody": "Login Screen"
},
"componentLibraries": [
"@budibase/standard-components"
],
"stylesheets": []
}

View file

@ -0,0 +1,199 @@
{
"componentLibraries": [
"@budibase/standard-components",
"@budibase/materialdesign-components"
],
"title": "Test App",
"favicon": "./_shared/favicon.png",
"stylesheets": [],
"props": {
"_component": "@budibase/standard-components/container",
"_children": [
{
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"",
"",
"",
""
],
"height": [
"45px"
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_id": "87243e59-d4f3-48fb-b601-ce659c99ab92",
"_code": "",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "0px 0px 1px 0px",
"borderColor": "#ddd",
"borderStyle": "solid",
"_children": [
{
"_component": "@budibase/standard-components/image",
"_styles": {
"position": {},
"layout": {}
},
"_id": "972b8b5a-4dff-4afc-87c4-ee0530973e8d",
"_code": "",
"url": "/_shared/logo.png",
"className": "",
"description": "",
"height": "40px",
"width": "",
"_children": []
},
{
"_component": "@budibase/standard-components/text",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"auto",
"15px"
],
"padding": [
"",
"",
"auto",
""
],
"height": [
""
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_id": "fb6ad867-df0f-47c2-8dc4-3bcc20d4b1ca",
"_code": "",
"text": "Budibase Admin",
"font": "1.5em Verdana",
"color": "rgb(23, 49, 87)",
"textAlign": "inline",
"verticalAlign": "inline",
"formattingTag": "<em> - emphasized"
}
]
},
{
"_component": "##builtin/screenslot",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"10px",
"10px",
"10px",
"20px"
],
"height": [
""
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_id": "a76adeb7-ba09-4671-807e-0a52784143f4",
"_code": "",
"_children": []
}
],
"_id": 0,
"type": "div",
"_styles": {
"layout": {},
"position": {}
},
"_code": "",
"className": "",
"onLoad": [],
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none"
},
"uiFunctions": ""
}

View file

@ -0,0 +1,131 @@
{
"name": "Apps List",
"description": "",
"url": "",
"uiFunctions": "",
"props": {
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {},
"layout": {}
},
"_id": "dc9992bb-fd7a-4f9e-ae49-d36073bf5047",
"_code": "",
"className": "",
"onLoad": [
{
"##eventHandlerType": "List Records",
"parameters": {
"indexKey": "/all_applications",
"statePath": "all_applications"
}
}
],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": [
{
"_component": "@budibase/materialdesign-components/H4",
"_styles": {
"position": {},
"layout": {}
},
"_id": "3a36045a-a9e5-43fc-8e54-0ba69eab2270",
"_code": "",
"text": "Applications",
"_children": []
},
{
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"10px",
"10px",
"10px",
"10px"
],
"height": [
""
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_id": "8036b218-133e-4403-920d-19b79425bc8a",
"_code": "if (!state.all_applications) return\n\nfor (let application of state.all_applications) {\n const newcontext = {\n screenUrl: `/application/${application.id}`,\n application\n }\n render(newcontext)\n}",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": [
{
"_component": "@budibase/materialdesign-components/Body2",
"_styles": {
"position": {},
"layout": {}
},
"_id": "2b8521fd-329f-49e1-80e5-0bea3e4e6513",
"_code": "",
"text": "context.application.name",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Button",
"_styles": {
"position": {},
"layout": {}
},
"_id": "9bd8e4d7-3f65-4490-8178-31d39a47aad1",
"_code": "",
"onClick": [],
"variant": "text",
"colour": "primary",
"size": "medium",
"href": "context.screenUrl",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"text": "Manage",
"disabled": false
}
]
}
]
},
"route": "*"
}

View file

@ -0,0 +1,292 @@
{
"name": "Manage App",
"description": "",
"url": "",
"uiFunctions": "",
"props": {
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {},
"layout": {}
},
"_id": "981e9bcc-a672-4c98-b78d-1b107a380fee",
"_code": "const routeId = route && route.id ? route.id : \"(no route)\"\n\nconst newcontext = {\n instancesKey: `/applications/${routeId}/allinstances`,\n newInstanceUrl: `/application/${routeId}/newinstance`,\n}\n\nrender(newcontext)",
"className": "",
"onLoad": [
{
"##eventHandlerType": "List Records",
"parameters": {
"indexKey": "context.instancesKey",
"statePath": "instances"
}
}
],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": [
{
"_component": "@budibase/materialdesign-components/H3",
"_styles": {
"position": {},
"layout": {}
},
"_id": "eb288d6b-d5e6-4b13-92c9-31953114cae4",
"_code": "",
"text": "Application Instances",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Button",
"_styles": {
"position": {
"row": [
"",
""
],
"column": [
"",
""
],
"padding": [
"",
"",
"",
""
],
"margin": [
"",
"",
"",
""
],
"width": [
""
],
"height": [
""
],
"zindex": [
""
]
},
"layout": {
"templatecolumns": [
""
],
"templaterows": [
""
]
}
},
"_id": "a4e41226-8dcb-4667-b70d-5a1853800ef8",
"_code": "",
"onClick": [],
"variant": "text",
"colour": "primary",
"size": "medium",
"href": "context.newInstanceUrl",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"text": "Create New instance",
"disabled": false
},
{
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"",
"",
"",
""
],
"height": [
"20px"
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_id": "fcdaab55-ad2a-40a3-9602-91e32da00e69",
"_code": "",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Datatable",
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableHead",
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableRow",
"isHeader": true,
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "active",
"_id": "43b17a4a-3ed8-46f4-bb89-d8c20bd45387"
}
],
"_id": "825b4b47-1bba-4a58-ab02-25b81e02bb2a"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "datastoreconfig",
"_id": "3d8e10ed-fc3a-463f-8d46-eba6a07d7ae8"
}
],
"_id": "e34bfd4b-5cc8-4680-869e-b0c1e799212d"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "name",
"_id": "d62a01b9-e954-4962-a92b-a1f669c1ad0a"
}
],
"_id": "a81b5a57-9670-47c8-96d1-20b1458997ad"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "version",
"_id": "5d6f4b14-ed98-440e-9adf-412625e9fb50"
}
],
"_id": "8e99113d-b570-4aa1-ac63-5cf1e9a1973b"
}
],
"_id": "155b0085-54da-4915-821b-0d6362aa9e2e"
}
],
"_id": "40db1d3e-df70-4024-b767-17b296ae2688"
},
{
"_component": "@budibase/materialdesign-components/DatatableBody",
"_children": [
{
"_code": "\nif (!state.allinstances) return\n\nfor (let allinstances_item of state.allinstances) \n render( { allinstances_item } )",
"_component": "@budibase/materialdesign-components/DatatableRow",
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.active",
"_id": "5601c20e-9f10-41ec-8221-16fc670ea1e4"
}
],
"_id": "f3195be2-76d4-4ecb-9327-0e12cff92b36"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.datastoreconfig",
"_id": "8300947e-53cf-4e9f-9209-a9b7fa74284e"
}
],
"_id": "6c49969d-faf2-439c-93d9-616aca161ed2"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.name",
"_id": "9ba84672-52ab-4602-ab33-311bd34b4004"
}
],
"_id": "3d699892-5ad8-4463-a8d7-fc2a61644be9"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.version",
"_id": "9337bc93-93ea-4757-87ac-97ac7b69c575"
}
],
"_id": "e0dfb4dc-45c4-4db4-84a0-7afa5ebb82e3"
}
],
"_id": "91e964ee-a78e-468a-b80f-cad992702f87",
"_styles": {
"position": {},
"layout": {}
}
}
],
"_id": "4b353e07-30f3-4f8f-9224-40845b9f5b4f"
}
],
"_id": "19a6a5ee-1a69-471e-97f4-fbd1df65aaac"
}
]
},
"route": "/application/:id"
}

View file

@ -0,0 +1,410 @@
{
"name": "New App",
"description": "",
"url": "",
"uiFunctions": "",
"props": {
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {},
"layout": {}
},
"_id": "03e2505d-5544-49c0-b964-22cdbd8e4065",
"_code": "",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": [
{
"_component": "@budibase/standard-components/container",
"_code": "",
"type": "div",
"onLoad": [
{
"##eventHandlerType": "Get New Record",
"parameters": {
"collectionKey": "/applications",
"childRecordType": "application",
"statePath": "application"
}
}
],
"_children": [
{
"_component": "@budibase/standard-components/container",
"borderWidth": "1px 0px 0px 0px",
"borderColor": "lightgray",
"borderStyle": "solid",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"30px",
"",
"",
""
],
"height": [
""
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_children": [
{
"_component": "@budibase/materialdesign-components/Button",
"_styles": {
"position": {
"row": [
"",
""
],
"column": [
"",
""
],
"padding": [
"",
"",
"",
""
],
"margin": [
"",
"",
"",
"10px"
],
"width": [
""
],
"height": [
""
],
"zindex": [
""
]
},
"layout": {
"templatecolumns": [
""
],
"templaterows": [
""
]
}
},
"onClick": [
{
"##eventHandlerType": "Navigate To",
"parameters": {
"url": "/applications"
}
}
],
"colour": "secondary",
"text": "Cancel",
"_id": "c24bc4f7-77b3-49ba-b104-43e15d23b130",
"_code": "",
"variant": "text",
"size": "medium",
"href": "",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"disabled": false
},
{
"_component": "@budibase/materialdesign-components/Button",
"onClick": [
{
"##eventHandlerType": "Save Record",
"parameters": {
"statePath": "application"
}
},
{
"##eventHandlerType": "Navigate To",
"parameters": {
"url": "/applications"
}
}
],
"variant": "raised",
"colour": "primary",
"size": "medium",
"text": "Save Application",
"_id": "35aac80a-f968-4927-ae80-6d158254f401",
"_styles": {
"position": {},
"layout": {}
},
"_code": "",
"href": "",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"disabled": false
}
],
"_id": "5838e5ea-e6bb-4188-8d98-390faa986ba9",
"_code": "",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": ""
},
{
"_component": "@budibase/materialdesign-components/H3",
"text": "Application",
"_id": "08aa6332-4b0d-43e5-b498-4849b78b54e5",
"_styles": {
"position": {},
"layout": {}
},
"_code": "",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/H3",
"text": "Application",
"_id": "711f6c0e-4fd4-4401-a929-99ce7d634e50",
"_styles": {
"position": {},
"layout": {}
},
"_code": "",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Textfield",
"label": "Name",
"variant": "filled",
"disabled": false,
"fullwidth": false,
"colour": "primary",
"maxLength": 500,
"placeholder": "Name",
"value": "state.application.name",
"_id": "89226755-6c92-4c4b-ad3d-0437f542790a",
"_styles": {
"position": {},
"layout": {}
},
"_code": "",
"onChange": [],
"size": "medium",
"type": "text",
"required": false,
"minLength": 0,
"helperText": "",
"errorText": "",
"icon": "",
"trailingIcon": false,
"textarea": false,
"rows": 0,
"cols": 0,
"validation": false,
"persistent": false,
"_children": []
},
{
"_component": "@budibase/standard-components/container",
"borderWidth": "1px 0px 0px 0px",
"borderColor": "lightgray",
"borderStyle": "solid",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"30px",
"",
"",
""
],
"height": [
""
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_children": [
{
"_component": "@budibase/materialdesign-components/Button",
"_styles": {
"position": {
"row": [
"",
""
],
"column": [
"",
""
],
"padding": [
"",
"",
"",
""
],
"margin": [
"",
"",
"",
"10px"
],
"width": [
""
],
"height": [
""
],
"zindex": [
""
]
},
"layout": {
"templatecolumns": [
""
],
"templaterows": [
""
]
}
},
"onClick": [
{
"##eventHandlerType": "Navigate To",
"parameters": {
"url": "/applications"
}
}
],
"colour": "secondary",
"text": "Cancel",
"_id": "bb55c61d-6636-4034-b563-b204af17aef0",
"_code": "",
"variant": "text",
"size": "medium",
"href": "",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"disabled": false
},
{
"_component": "@budibase/materialdesign-components/Button",
"onClick": [
{
"##eventHandlerType": "Save Record",
"parameters": {
"statePath": "application"
}
},
{
"##eventHandlerType": "Navigate To",
"parameters": {
"url": "/applications"
}
}
],
"variant": "raised",
"colour": "primary",
"size": "medium",
"text": "Save Application",
"_id": "bbc67f2c-f304-4159-bd98-8fcce8fc4295",
"_styles": {
"position": {},
"layout": {}
},
"_code": "",
"href": "",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"disabled": false
}
],
"_id": "38ae0429-67b7-4d79-b5e2-78bec984754e",
"_code": "",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": ""
}
],
"_id": "f1fbe91b-00d9-4bd7-a524-e03ed0f080c8",
"_styles": {
"position": {},
"layout": {}
},
"className": "",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none"
}
]
},
"route": "/createapp"
}

View file

@ -0,0 +1,227 @@
{
"name": "New Instance",
"description": "",
"url": "",
"uiFunctions": "",
"props": {
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {},
"layout": {}
},
"_id": "68a36c10-4c45-47fe-a435-3e05ff5ff91a",
"_code": "const routeId = route && route.id ? route.id : \"(no route id)\"\n\nrender({\n instanceCollectionKey: `/applications/${routeId}/instances`,\n applicationUrl: `/application/${routeId}`, \n usersCollectionKey: `/applications/${routeId}/users`\n})",
"className": "",
"onLoad": [
{
"##eventHandlerType": "Get New Record",
"parameters": {
"collectionKey": "context.instanceCollectionKey",
"childRecordType": "instance",
"statePath": "instance"
}
},
{
"##eventHandlerType": "Get New Record",
"parameters": {
"collectionKey": "context.usersCollectionKey",
"childRecordType": "user",
"statePath": "user"
}
}
],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": [
{
"_component": "@budibase/materialdesign-components/H4",
"_styles": {
"position": {},
"layout": {}
},
"_id": "6f7c34e3-9f26-4710-bd92-123577bb7bf1",
"_code": "",
"text": "Create New Instance",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Textfield",
"_styles": {
"position": {},
"layout": {}
},
"_id": "f81c06f3-1dbc-47f8-ac3e-d62f24f5b421",
"_code": "",
"onChange": [],
"value": "state.instance.name",
"label": "Instance Name",
"variant": "standard",
"disabled": false,
"fullwidth": false,
"colour": "primary",
"size": "medium",
"type": "text",
"required": false,
"minLength": 0,
"maxLength": 0,
"helperText": "",
"errorText": "",
"placeholder": "",
"icon": "",
"trailingIcon": false,
"textarea": false,
"rows": 0,
"cols": 0,
"validation": false,
"persistent": false,
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Textfield",
"_styles": {
"position": {},
"layout": {}
},
"_id": "02450f9e-b84b-4edb-ad3d-b241f75ee042",
"_code": "",
"onChange": [],
"value": "state.user.name",
"label": "Initial User Name",
"variant": "standard",
"disabled": false,
"fullwidth": false,
"colour": "primary",
"size": "medium",
"type": "text",
"required": false,
"minLength": 0,
"maxLength": 0,
"helperText": "",
"errorText": "",
"placeholder": "",
"icon": "",
"trailingIcon": false,
"textarea": false,
"rows": 0,
"cols": 0,
"validation": false,
"persistent": false,
"_children": []
},
{
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"",
"",
"",
""
],
"height": [
""
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
"auto auto"
]
}
},
"_id": "8269245d-45c2-40b8-bd69-a1db904a9f54",
"_code": "",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": [
{
"_component": "@budibase/materialdesign-components/Button",
"_styles": {
"position": {},
"layout": {}
},
"_id": "4978fe3d-7b44-4d5d-bb02-fe001c3a11b2",
"_code": "",
"onClick": [
{
"##eventHandlerType": "Set State",
"parameters": {
"path": "instance.active",
"value": "true"
}
},
{
"##eventHandlerType": "Save Record",
"parameters": {
"statePath": "instance"
}
},
{
"##eventHandlerType": "Set State",
"parameters": {
"path": "user.active",
"value": "true"
}
},
{
"##eventHandlerType": "Set State",
"parameters": {
"path": "user.instance.key",
"value": "state.instance.key"
}
},
{
"##eventHandlerType": "Save Record",
"parameters": {
"statePath": "user"
}
}
],
"variant": "text",
"colour": "primary",
"size": "medium",
"href": "",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"text": "Create Instance",
"disabled": false
}
]
}
]
},
"route": "/application/:id/newinstance"
}

View file

@ -0,0 +1,83 @@
{
"componentLibraries": [
"@budibase/standard-components",
"@budibase/materialdesign-components"
],
"title": "Test App",
"favicon": "./_shared/favicon.png",
"stylesheets": [],
"props": {
"_component": "@budibase/standard-components/container",
"_children": [
{
"_component": "@budibase/standard-components/login",
"_styles": {
"position": {},
"layout": {}
},
"_id": "a345ca0f-126b-466c-91df-8ff6b0d9c710",
"_code": "",
"logo": "",
"loginRedirect": "",
"usernameLabel": "Username",
"passwordLabel": "Password",
"loginButtonLabel": "Login",
"buttonClass": "",
"inputClass": "",
"_children": []
}
],
"_id": 1,
"type": "div",
"_styles": {
"layout": {
"templatecolumns": [
""
],
"templaterows": [
""
]
},
"position": {
"row": [
"",
""
],
"column": [
"",
""
],
"padding": [
"",
"",
"",
""
],
"margin": [
"",
"",
"",
""
],
"width": [
""
],
"height": [
""
],
"zindex": [
""
]
}
},
"_code": "",
"className": "",
"onLoad": [],
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none"
},
"uiFunctions": ""
}

File diff suppressed because one or more lines are too long

View file

@ -1,665 +0,0 @@
window["##BUDIBASE_APPDEFINITION##"] = {
hierarchy: {
name: "root",
type: "root",
children: [
{
name: "application",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 500,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "domain",
type: "string",
typeOptions: {
maxLength: 500,
values: null,
allowDeclaredValuesOnly: false,
},
label: "domain",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "application_resolve_strategy",
type: "string",
typeOptions: {
maxLength: 100,
values: ["domain", "path"],
allowDeclaredValuesOnly: true,
},
label: "Resolve Application By",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "defaultVersion",
type: "reference",
typeOptions: {
indexNodeKey: "/applications/1-{id}/all_versions",
reverseIndexNodeKeys: [
"/applications/1-{id}/versions/3-{id}/isdefault",
],
displayValue: "name",
},
label: "Default Version",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [
{
name: "user",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 200,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name (unique)",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "active",
type: "bool",
typeOptions: { allowNulls: false },
label: "Is Active",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "createdByMaster",
type: "bool",
typeOptions: { allowNulls: false },
label: "Created by Master",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instance",
type: "reference",
typeOptions: {
indexNodeKey: "/applications/1-{id}/allinstances",
reverseIndexNodeKeys: [
"/applications/1-{id}/instances/2-{id}/users_on_this_instance",
],
displayValue: "name",
},
label: "Instance",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 8,
indexes: [],
allidsShardFactor: "64",
collectionName: "users",
isSingle: false,
},
{
name: "instance",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 1000,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "active",
type: "bool",
typeOptions: { allowNulls: false },
label: "Is Active",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "version",
type: "reference",
typeOptions: {
indexNodeKey: "/applications/1-{id}/all_versions",
reverseIndexNodeKeys: [
"/applications/1-{id}/versions/3-{id}/instances_on_this_version",
],
displayValue: "name",
},
label: "Version",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "datastoreconfig",
type: "string",
typeOptions: {
maxLength: 1000,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Datastore Config",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 2,
indexes: [
{
name: "users_on_this_instance",
type: "index",
map: "return {...record};",
filter: "",
indexType: "reference",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 15,
},
],
allidsShardFactor: 1,
collectionName: "instances",
isSingle: false,
},
{
name: "version",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 200,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "defaultAccessLevel",
type: "string",
typeOptions: {
maxLength: 200,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Default Access Level",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 3,
indexes: [
{
name: "instances_for_this_version",
type: "index",
map: "return {name:record.name};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 9,
},
{
name: "instances_on_this_version",
type: "index",
map: "return {...record};",
filter: "",
indexType: "reference",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 10,
},
{
name: "isdefault",
type: "index",
map: "return {};",
filter: "",
indexType: "reference",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 28,
},
],
allidsShardFactor: 1,
collectionName: "versions",
isSingle: false,
},
{
name: "session",
type: "record",
fields: [
{
name: "created",
type: "number",
typeOptions: {
minValue: 0,
maxValue: 99999999999999,
decimalPlaces: 0,
},
label: "Created",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "user_json",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User Json",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instanceDatastoreConfig",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Instance Datastore Config",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instanceKey",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Instance Key",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instanceVersion",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Instance Version",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "username",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 16,
indexes: [],
allidsShardFactor: 1,
collectionName: "sessions",
isSingle: false,
},
],
validationRules: [],
nodeId: 1,
indexes: [
{
name: "allinstances",
type: "index",
map: "return {...record};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [2],
nodeId: 23,
},
{
name: "sessions_by_user",
type: "index",
map: "return {username:record.username};",
filter: "",
indexType: "ancestor",
getShardName: "return record.username.substring(0,2)",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [16],
nodeId: 24,
},
{
name: "user_name_lookup",
type: "index",
map:
"return ({name:record.name, instanceKey:record.instance.key ? record.instance.key : '', instanceDatastoreConfig:record.instance.datastoreconfig ? record.instance.datastoreconfig : 'nothing'});",
filter: "",
indexType: "ancestor",
getShardName: "return record.name.substring(0,2)",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [8],
nodeId: 25,
},
{
name: "all_versions",
type: "index",
map: "return {...record};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [3],
nodeId: 26,
},
],
allidsShardFactor: 64,
collectionName: "applications",
isSingle: false,
},
{
name: "mastersession",
type: "record",
fields: [
{
name: "user_json",
type: "string",
typeOptions: {
maxLength: 10000,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User Json",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "username",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 17,
indexes: [],
allidsShardFactor: 64,
collectionName: "sessions",
isSingle: false,
},
],
pathMaps: [],
indexes: [
{
name: "all_applications",
type: "index",
map: "return {...record};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [1],
nodeId: 22,
},
{
name: "mastersessions_by_user",
type: "index",
map: "return {username:record.username};",
filter: "",
indexType: "ancestor",
getShardName: "return record.username.substring(0,2)",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [17],
nodeId: 27,
},
],
nodeId: 0,
},
componentLibraries: [
{
importPath:
"/lib/node_modules/@budibase/standard-components/dist/index.js",
libName: "@budibase/standard-components",
},
],
appRootPath: "/_master",
props: {
_component: "@budibase/standard-components/stackpanel",
direction: "horizontal",
children: [
{
_component: "children#array_element#",
control: {
_component: "@budibase/standard-components/panel",
text: "Create New",
component: { _component: "" },
containerClass: "",
background: "",
border: "1px solid black",
borderRadius: "2px",
font: "",
color: "",
padding: "10px",
margin: "20px",
hoverColor: "",
hoverBackground: "gainsboro",
height: "100px",
width: "100px",
onClick: [
{
"##eventHandlerType": "Get New Record",
parameters: {
collectionKey: "/applications",
childRecordType: "application",
statePath: "currentApplication",
},
},
],
display: "inline",
},
},
],
width: "auto",
height: "auto",
containerClass: "",
itemContainerClass: "",
data: { "##bbstate": "allApplications", "##bbsource": "store" },
dataItemComponent: {
_component: "@budibase/standard-components/panel",
text: "",
component: {
_component: "@budibase/standard-components/stackpanel",
direction: "horizontal",
children: [
{
_component: "children#array_element#",
control: {
_component: "@budibase/standard-components/text",
value: "",
containerClass: "",
font: "",
color: "",
textAlign: "inline",
verticalAlign: "inline",
display: "inline",
},
},
],
width: "auto",
height: "auto",
containerClass: "",
itemContainerClass: "",
data: { "##bbstate": "" },
dataItemComponent: { _component: "" },
onLoad: [],
},
containerClass: "",
background: "",
border: "1px solid dimgray",
borderRadius: "2px",
font: "",
color: "black",
padding: "10px",
margin: "20px",
hoverColor: "",
hoverBackground: "",
height: "",
width: "",
onClick: [
{
"##eventHandlerType": "Load Record",
parameters: {
recordKey: { "##bbstate": "key", "##bbsource": "context" },
statePath: "currentApp",
},
},
],
display: "inline",
},
onLoad: [
{
"##eventHandlerType": "List Records",
parameters: {
indexKey: "/all_applications",
statePath: "allApplications",
},
},
],
component: {
_component: "@budibase/standard-components/stackpanel",
direction: "horizontal",
children: [
{
_component: "#children#array_element",
control: {
_component: "@budibase/standard-components/text",
value: "",
containerClass: "",
font: "",
color: "",
textAlign: "inline",
verticalAlign: "inline",
display: "inline",
},
},
],
width: "auto",
height: "auto",
containerClass: "",
itemContainerClass: "",
data: { "##bbstate": "allApplications", "##bbsource": "store" },
dataItemComponent: {
_component: "apps/Application List Item",
text: {
"##bbstate": "name",
"##bbstatefallback": "My App Name",
"##bbsource": "context",
},
component: {
_component: "@budibase/standard-components/stackpanel",
direction: "horizontal",
children: [
{
_component: "#children#array_element",
control: {
_component: "@budibase/standard-components/text",
value: "",
containerClass: "",
font: "",
color: "",
textAlign: "inline",
verticalAlign: "inline",
display: "inline",
},
},
],
width: "auto",
height: "auto",
containerClass: "",
itemContainerClass: "",
data: { "##bbstate": "allApplications", "##bbsource": "store" },
dataItemComponent: { _component: "" },
onLoad: [],
},
containerClass: "",
background: "",
border: "1px solid dimgray",
borderRadius: "2px",
font: "",
color: "black",
padding: "10px",
margin: "20px",
hoverColor: "",
hoverBackground: "",
height: "",
width: "",
onClick: [
{
"##eventHandlerType": "Load Record",
parameters: {
recordKey: { "##bbstate": "key", "##bbsource": "context" },
statePath: "currentApplication",
},
},
],
display: "",
},
onLoad: [],
},
},
}

View file

@ -4,17 +4,35 @@
<meta charset='utf8'>
<meta name='viewport' content='width=device-width'>
<title>Budibase</title>
<link rel='icon' type='image/png' href='/_master//_shared/favicon.png'>
<title>Test App</title>
<link rel='icon' type='image/png' href='/_master/./_shared/favicon.png'>
<style>
html, body {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
}
</style>
<link rel='stylesheet' href='/_master/css/4ced8b29af217917f92d6d8fdf8fe057.css'>
<link rel='stylesheet' href='/_master/css/c07d11d550e54bf0cdd2aef50222e0a7.css'>
<link rel='stylesheet' href='/_master/css/27ad4d23d18c2480bb25afb79561a264.css'>
<link rel='stylesheet' href='/_master/css/beda1ecf5d846a6fdc1773da594b8304.css'>
<link rel='stylesheet' href='/_master/css/6e6849b44a1b03b12ba15d1fc9c30671.css'>
<script src='/_master/clientFrontendDefinition.js'></script>
<script src='/_master/clientBackendDefinition.js'></script>
<script src='/_master/budibase-client.js'></script>

File diff suppressed because one or more lines are too long

View file

@ -1,491 +0,0 @@
window["##BUDIBASE_APPDEFINITION##"] = {
hierarchy: {
name: "root",
type: "root",
children: [
{
name: "application",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 500,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "domain",
type: "string",
typeOptions: {
maxLength: 500,
values: null,
allowDeclaredValuesOnly: false,
},
label: "domain",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "application_resolve_strategy",
type: "string",
typeOptions: {
maxLength: 100,
values: ["domain", "path"],
allowDeclaredValuesOnly: true,
},
label: "Resolve Application By",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "defaultVersion",
type: "reference",
typeOptions: {
indexNodeKey: "/applications/1-{id}/all_versions",
reverseIndexNodeKeys: [
"/applications/1-{id}/versions/3-{id}/isdefault",
],
displayValue: "name",
},
label: "Default Version",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [
{
name: "user",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 200,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name (unique)",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "active",
type: "bool",
typeOptions: { allowNulls: false },
label: "Is Active",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "createdByMaster",
type: "bool",
typeOptions: { allowNulls: false },
label: "Created by Master",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instance",
type: "reference",
typeOptions: {
indexNodeKey: "/applications/1-{id}/allinstances",
reverseIndexNodeKeys: [
"/applications/1-{id}/instances/2-{id}/users_on_this_instance",
],
displayValue: "name",
},
label: "Instance",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 8,
indexes: [],
allidsShardFactor: "64",
collectionName: "users",
isSingle: false,
},
{
name: "instance",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 1000,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "active",
type: "bool",
typeOptions: { allowNulls: false },
label: "Is Active",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "version",
type: "reference",
typeOptions: {
indexNodeKey: "/applications/1-{id}/all_versions",
reverseIndexNodeKeys: [
"/applications/1-{id}/versions/3-{id}/instances_on_this_version",
],
displayValue: "name",
},
label: "Version",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "datastoreconfig",
type: "string",
typeOptions: {
maxLength: 1000,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Datastore Config",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 2,
indexes: [
{
name: "users_on_this_instance",
type: "index",
map: "return {...record};",
filter: "",
indexType: "reference",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 15,
},
],
allidsShardFactor: 1,
collectionName: "instances",
isSingle: false,
},
{
name: "version",
type: "record",
fields: [
{
name: "name",
type: "string",
typeOptions: {
maxLength: 200,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Name",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "defaultAccessLevel",
type: "string",
typeOptions: {
maxLength: 200,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Default Access Level",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 3,
indexes: [
{
name: "instances_for_this_version",
type: "index",
map: "return {name:record.name};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 9,
},
{
name: "instances_on_this_version",
type: "index",
map: "return {...record};",
filter: "",
indexType: "reference",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 10,
},
{
name: "isdefault",
type: "index",
map: "return {};",
filter: "",
indexType: "reference",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [],
nodeId: 28,
},
],
allidsShardFactor: 1,
collectionName: "versions",
isSingle: false,
},
{
name: "session",
type: "record",
fields: [
{
name: "created",
type: "number",
typeOptions: {
minValue: 0,
maxValue: 99999999999999,
decimalPlaces: 0,
},
label: "Created",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "user_json",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User Json",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instanceDatastoreConfig",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Instance Datastore Config",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instanceKey",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Instance Key",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "instanceVersion",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "Instance Version",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "username",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 16,
indexes: [],
allidsShardFactor: 1,
collectionName: "sessions",
isSingle: false,
},
],
validationRules: [],
nodeId: 1,
indexes: [
{
name: "allinstances",
type: "index",
map: "return {...record};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [2],
nodeId: 23,
},
{
name: "sessions_by_user",
type: "index",
map: "return {username:record.username};",
filter: "",
indexType: "ancestor",
getShardName: "return record.username.substring(0,2)",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [16],
nodeId: 24,
},
{
name: "user_name_lookup",
type: "index",
map:
"return ({name:record.name, instanceKey:record.instance.key ? record.instance.key : '', instanceDatastoreConfig:record.instance.datastoreconfig ? record.instance.datastoreconfig : 'nothing'});",
filter: "",
indexType: "ancestor",
getShardName: "return record.name.substring(0,2)",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [8],
nodeId: 25,
},
{
name: "all_versions",
type: "index",
map: "return {...record};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [3],
nodeId: 26,
},
],
allidsShardFactor: 64,
collectionName: "applications",
isSingle: false,
},
{
name: "mastersession",
type: "record",
fields: [
{
name: "user_json",
type: "string",
typeOptions: {
maxLength: 10000,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User Json",
getInitialValue: "default",
getUndefinedValue: "default",
},
{
name: "username",
type: "string",
typeOptions: {
maxLength: null,
values: null,
allowDeclaredValuesOnly: false,
},
label: "User",
getInitialValue: "default",
getUndefinedValue: "default",
},
],
children: [],
validationRules: [],
nodeId: 17,
indexes: [],
allidsShardFactor: 64,
collectionName: "sessions",
isSingle: false,
},
],
pathMaps: [],
indexes: [
{
name: "all_applications",
type: "index",
map: "return {...record};",
filter: "",
indexType: "ancestor",
getShardName: "",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [1],
nodeId: 22,
},
{
name: "mastersessions_by_user",
type: "index",
map: "return {username:record.username};",
filter: "",
indexType: "ancestor",
getShardName: "return record.username.substring(0,2)",
getSortKey: "record.id",
aggregateGroups: [],
allowedRecordNodeIds: [17],
nodeId: 27,
},
],
nodeId: 0,
},
componentLibraries: [
{
importPath:
"/lib/node_modules/@budibase/standard-components/dist/index.js",
libName: "@budibase/standard-components",
},
],
appRootPath: "/_master",
props: {
_component: "@budibase/standard-components/login",
logo: "_shared/budibase-logo.png",
loginRedirect: "",
usernameLabel: "Username",
passwordLabel: "Password",
loginButtonLabel: "Login",
buttonClass: "",
inputClass: "",
},
}

View file

@ -4,17 +4,27 @@
<meta charset='utf8'>
<meta name='viewport' content='width=device-width'>
<title>Budibase - Login</title>
<link rel='icon' type='image/png' href='/_master//_shared/favicon.png'>
<title>Test App</title>
<link rel='icon' type='image/png' href='/_master/./_shared/favicon.png'>
<style>
html, body {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
}
</style>
<link rel='stylesheet' href='/_master/css/718591ba76129222eded13a89cd9cd18.css'>
<script src='/_master/clientFrontendDefinition.js'></script>
<script src='/_master/clientBackendDefinition.js'></script>
<script src='/_master/budibase-client.js'></script>

View file

@ -1,47 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@budibase/client@file:../../../client":
version "0.0.3"
dependencies:
"@nx-js/compiler-util" "^2.0.0"
lodash "^4.17.15"
lunr "^2.3.5"
shortid "^2.2.8"
svelte "^3.9.2"
"@budibase/standard-components@file:../../../standard-components":
version "0.0.5"
"@nx-js/compiler-util@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@nx-js/compiler-util/-/compiler-util-2.0.0.tgz#c74c12165fa2f017a292bb79af007e8fce0af297"
integrity sha512-AxSQbwj9zqt8DYPZ6LwZdytqnwfiOEdcFdq4l8sdjkZmU2clTht7RDLCI8xvkp7KqgcNaOGlTeCM55TULWruyQ==
lodash@^4.17.15:
version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
lunr@^2.3.5:
version "2.3.6"
resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.6.tgz#f278beee7ffd56ad86e6e478ce02ab2b98c78dd5"
integrity sha512-swStvEyDqQ85MGpABCMBclZcLI/pBIlu8FFDtmX197+oEgKloJ67QnB+Tidh0340HmLMs39c4GrkPY3cmkXp6Q==
nanoid@^2.1.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-2.1.1.tgz#524fd4acd45c126e0c87cd43ab5ee8346e695df9"
integrity sha512-0YbJdaL4JFoejIOoawgLcYValFGJ2iyUuVDIWL3g8Es87SSOWFbWdRUMV3VMSiyPs3SQ3QxCIxFX00q5DLkMCw==
shortid@^2.2.8:
version "2.2.15"
resolved "https://registry.yarnpkg.com/shortid/-/shortid-2.2.15.tgz#2b902eaa93a69b11120373cd42a1f1fe4437c122"
integrity sha512-5EaCy2mx2Jgc/Fdn9uuDuNIIfWBpzY4XIlhoqtXF6qsf+/+SGZ+FxDdX/ZsMZiWupIWNqAEmiNY4RC+LSmCeOw==
dependencies:
nanoid "^2.1.0"
svelte@^3.9.2:
version "3.12.1"
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.12.1.tgz#ddfacd43272ac3255907c682b74ee7d3d8b06b0c"
integrity sha512-t29WJNjHIqfrdMcVXqIyRfgLEaNz7MihKXTpb8qHlbzvf0WyOOIhIlwIGvl6ahJ9+9CLJwz0sjhFNAmPgo8BHg==