Compare commits

4 Commits
main ... dev

Author SHA1 Message Date
eric
158356f5a8 s 2025-10-16 22:07:06 -04:00
eric
334fdbfe42 s 2025-10-17 02:02:13 +00:00
eric
be7f773e79 s 2025-10-16 15:58:07 +00:00
eric
55acd3a301 's' 2025-10-16 23:25:37 +08:00
24 changed files with 24345 additions and 0 deletions

BIN
pb_data/auxiliary.db Normal file

Binary file not shown.

BIN
pb_data/auxiliary.db-shm Normal file

Binary file not shown.

BIN
pb_data/auxiliary.db-wal Normal file

Binary file not shown.

BIN
pb_data/data.db Normal file

Binary file not shown.

BIN
pb_data/data.db-shm Normal file

Binary file not shown.

0
pb_data/data.db-wal Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

View File

@@ -0,0 +1 @@
{"user.cache_control":"","user.content_disposition":"","user.content_encoding":"","user.content_language":"","user.content_type":"image/png","user.metadata":{"original-filename":"20251016204244.png"},"md5":"IhQ9XkDOONHKIGDKOx8TrA=="}

View File

@@ -0,0 +1 @@
{"user.cache_control":"","user.content_disposition":"","user.content_encoding":"","user.content_language":"","user.content_type":"image/png","user.metadata":null,"md5":"If5Sclu0M+wrf7ux24QwIw=="}

23816
pb_data/types.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,77 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = new Collection({
"createRule": null,
"deleteRule": null,
"fields": [
{
"autogeneratePattern": "[a-z0-9]{15}",
"hidden": false,
"id": "text3208210256",
"max": 15,
"min": 15,
"name": "id",
"pattern": "^[a-z0-9]+$",
"presentable": false,
"primaryKey": true,
"required": true,
"system": true,
"type": "text"
},
{
"hidden": false,
"id": "file3309110367",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"image/jpeg",
"image/png",
"image/svg+xml",
"image/gif",
"image/webp"
],
"name": "image",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
},
{
"hidden": false,
"id": "autodate2990389176",
"name": "created",
"onCreate": true,
"onUpdate": false,
"presentable": false,
"system": false,
"type": "autodate"
},
{
"hidden": false,
"id": "autodate3332085495",
"name": "updated",
"onCreate": true,
"onUpdate": true,
"presentable": false,
"system": false,
"type": "autodate"
}
],
"id": "pbc_2878493088",
"indexes": [],
"listRule": null,
"name": "file",
"system": false,
"type": "base",
"updateRule": null,
"viewRule": null
});
return app.save(collection);
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088");
return app.delete(collection);
})

View File

@@ -0,0 +1,35 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// add field
collection.fields.addAt(2, new Field({
"hidden": false,
"id": "file2359244304",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"application/pdf",
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
],
"name": "file",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// remove field
collection.fields.removeById("file2359244304")
return app.save(collection)
})

View File

@@ -0,0 +1,34 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// add field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "file2093472300",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"video/mp4",
"video/x-ms-wmv",
"video/quicktime",
"video/3gpp"
],
"name": "video",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// remove field
collection.fields.removeById("file2093472300")
return app.save(collection)
})

View File

@@ -0,0 +1,26 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// update collection data
unmarshal({
"createRule": "",
"listRule": "",
"updateRule": "",
"viewRule": ""
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// update collection data
unmarshal({
"createRule": null,
"listRule": null,
"updateRule": null,
"viewRule": null
}, collection)
return app.save(collection)
})

View File

@@ -0,0 +1,71 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = new Collection({
"createRule": null,
"deleteRule": null,
"fields": [
{
"autogeneratePattern": "[a-z0-9]{15}",
"hidden": false,
"id": "text3208210256",
"max": 15,
"min": 15,
"name": "id",
"pattern": "^[a-z0-9]+$",
"presentable": false,
"primaryKey": true,
"required": true,
"system": true,
"type": "text"
},
{
"autogeneratePattern": "",
"hidden": false,
"id": "text2655826506",
"max": 0,
"min": 0,
"name": "cityName",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
},
{
"hidden": false,
"id": "autodate2990389176",
"name": "created",
"onCreate": true,
"onUpdate": false,
"presentable": false,
"system": false,
"type": "autodate"
},
{
"hidden": false,
"id": "autodate3332085495",
"name": "updated",
"onCreate": true,
"onUpdate": true,
"presentable": false,
"system": false,
"type": "autodate"
}
],
"id": "pbc_173434244",
"indexes": [],
"listRule": null,
"name": "city",
"system": false,
"type": "base",
"updateRule": null,
"viewRule": null
});
return app.save(collection);
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244");
return app.delete(collection);
})

View File

@@ -0,0 +1,29 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
// add field
collection.fields.addAt(8, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text31680599",
"max": 0,
"min": 0,
"name": "openid",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
// remove field
collection.fields.removeById("text31680599")
return app.save(collection)
})

View File

@@ -0,0 +1,29 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// add field
collection.fields.addAt(2, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text3078290644",
"max": 0,
"min": 0,
"name": "cityCode",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// remove field
collection.fields.removeById("text3078290644")
return app.save(collection)
})

View File

@@ -0,0 +1,24 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// add field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "geoPoint1542800728",
"name": "field",
"presentable": false,
"required": false,
"system": false,
"type": "geoPoint"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// remove field
collection.fields.removeById("geoPoint1542800728")
return app.save(collection)
})

View File

@@ -0,0 +1,32 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "geoPoint1542800728",
"name": "geo",
"presentable": false,
"required": false,
"system": false,
"type": "geoPoint"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "geoPoint1542800728",
"name": "field",
"presentable": false,
"required": false,
"system": false,
"type": "geoPoint"
}))
return app.save(collection)
})

View File

@@ -0,0 +1,29 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// add field
collection.fields.addAt(4, new Field({
"hidden": false,
"id": "file3760176746",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [],
"name": "images",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_173434244")
// remove field
collection.fields.removeById("file3760176746")
return app.save(collection)
})

View File

@@ -0,0 +1,140 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// update field
collection.fields.addAt(1, new Field({
"hidden": false,
"id": "file3309110367",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"image/jpeg",
"image/png",
"image/svg+xml",
"image/gif",
"image/webp"
],
"name": "images",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
// update field
collection.fields.addAt(2, new Field({
"hidden": false,
"id": "file2359244304",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"application/pdf",
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
],
"name": "files",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "file2093472300",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"video/mp4",
"video/x-ms-wmv",
"video/quicktime",
"video/3gpp"
],
"name": "videos",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2878493088")
// update field
collection.fields.addAt(1, new Field({
"hidden": false,
"id": "file3309110367",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"image/jpeg",
"image/png",
"image/svg+xml",
"image/gif",
"image/webp"
],
"name": "image",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
// update field
collection.fields.addAt(2, new Field({
"hidden": false,
"id": "file2359244304",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"application/pdf",
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
],
"name": "file",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "file2093472300",
"maxSelect": 99,
"maxSize": 0,
"mimeTypes": [
"video/mp4",
"video/x-ms-wmv",
"video/quicktime",
"video/3gpp"
],
"name": "video",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
})

BIN
pocketbase Normal file → Executable file

Binary file not shown.

1
pocketbase.sh Normal file
View File

@@ -0,0 +1 @@
./pocketbase serve