Remove ionic, create custom layout
This commit is contained in:
parent
b8bee291b3
commit
681440eb4d
23 changed files with 627 additions and 635 deletions
24
pb_migrations/1702072403_updated_lists.js
Normal file
24
pb_migrations/1702072403_updated_lists.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("i42xt9r6ykqdq3j")
|
||||
|
||||
collection.listRule = ""
|
||||
collection.viewRule = ""
|
||||
collection.createRule = ""
|
||||
collection.updateRule = ""
|
||||
collection.deleteRule = ""
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("i42xt9r6ykqdq3j")
|
||||
|
||||
collection.listRule = null
|
||||
collection.viewRule = null
|
||||
collection.createRule = null
|
||||
collection.updateRule = null
|
||||
collection.deleteRule = null
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
||||
24
pb_migrations/1702072411_updated_tasks.js
Normal file
24
pb_migrations/1702072411_updated_tasks.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41")
|
||||
|
||||
collection.listRule = ""
|
||||
collection.viewRule = ""
|
||||
collection.createRule = ""
|
||||
collection.updateRule = ""
|
||||
collection.deleteRule = ""
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41")
|
||||
|
||||
collection.listRule = null
|
||||
collection.viewRule = null
|
||||
collection.createRule = null
|
||||
collection.updateRule = null
|
||||
collection.deleteRule = null
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
||||
24
pb_migrations/1702072418_updated_completions.js
Normal file
24
pb_migrations/1702072418_updated_completions.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("jebj4y3fqo5gtte")
|
||||
|
||||
collection.listRule = ""
|
||||
collection.viewRule = ""
|
||||
collection.createRule = ""
|
||||
collection.updateRule = ""
|
||||
collection.deleteRule = ""
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("jebj4y3fqo5gtte")
|
||||
|
||||
collection.listRule = null
|
||||
collection.viewRule = null
|
||||
collection.createRule = null
|
||||
collection.updateRule = null
|
||||
collection.deleteRule = null
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
||||
57
pb_migrations/1702118911_created_icons.js
Normal file
57
pb_migrations/1702118911_created_icons.js
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const collection = new Collection({
|
||||
"id": "jqwhs45vpzq2ig5",
|
||||
"created": "2023-12-09 10:48:31.784Z",
|
||||
"updated": "2023-12-09 10:48:31.784Z",
|
||||
"name": "icons",
|
||||
"type": "base",
|
||||
"system": false,
|
||||
"schema": [
|
||||
{
|
||||
"system": false,
|
||||
"id": "ne3yufop",
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"required": false,
|
||||
"presentable": false,
|
||||
"unique": false,
|
||||
"options": {
|
||||
"min": null,
|
||||
"max": null,
|
||||
"pattern": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"system": false,
|
||||
"id": "dulswobh",
|
||||
"name": "image",
|
||||
"type": "file",
|
||||
"required": false,
|
||||
"presentable": false,
|
||||
"unique": false,
|
||||
"options": {
|
||||
"maxSelect": 1,
|
||||
"maxSize": 5242880,
|
||||
"mimeTypes": [],
|
||||
"thumbs": [],
|
||||
"protected": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"indexes": [],
|
||||
"listRule": null,
|
||||
"viewRule": null,
|
||||
"createRule": null,
|
||||
"updateRule": null,
|
||||
"deleteRule": null,
|
||||
"options": {}
|
||||
});
|
||||
|
||||
return Dao(db).saveCollection(collection);
|
||||
}, (db) => {
|
||||
const dao = new Dao(db);
|
||||
const collection = dao.findCollectionByNameOrId("jqwhs45vpzq2ig5");
|
||||
|
||||
return dao.deleteCollection(collection);
|
||||
})
|
||||
33
pb_migrations/1702118927_updated_tasks.js
Normal file
33
pb_migrations/1702118927_updated_tasks.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41")
|
||||
|
||||
// add
|
||||
collection.schema.addField(new SchemaField({
|
||||
"system": false,
|
||||
"id": "zvbjddln",
|
||||
"name": "icon",
|
||||
"type": "relation",
|
||||
"required": false,
|
||||
"presentable": false,
|
||||
"unique": false,
|
||||
"options": {
|
||||
"collectionId": "jqwhs45vpzq2ig5",
|
||||
"cascadeDelete": false,
|
||||
"minSelect": null,
|
||||
"maxSelect": 1,
|
||||
"displayFields": null
|
||||
}
|
||||
}))
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41")
|
||||
|
||||
// remove
|
||||
collection.schema.removeField("zvbjddln")
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
||||
16
pb_migrations/1702123774_updated_icons.js
Normal file
16
pb_migrations/1702123774_updated_icons.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("jqwhs45vpzq2ig5")
|
||||
|
||||
collection.viewRule = ""
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("jqwhs45vpzq2ig5")
|
||||
|
||||
collection.viewRule = null
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue