-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add svelte-sonner for notifications and update URL handling in routes
- Loading branch information
1 parent
d95c3e7
commit e734f97
Showing
16 changed files
with
724 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "@request.data.id != \"\" && @request.auth.id = @collection.users.id" | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "" | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
// add | ||
collection.schema.addField(new SchemaField({ | ||
"system": false, | ||
"id": "oqmxf691", | ||
"name": "created_by", | ||
"type": "relation", | ||
"required": false, | ||
"presentable": false, | ||
"unique": false, | ||
"options": { | ||
"collectionId": "_pb_users_auth_", | ||
"cascadeDelete": false, | ||
"minSelect": null, | ||
"maxSelect": 1, | ||
"displayFields": null | ||
} | ||
})) | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
// remove | ||
collection.schema.removeField("oqmxf691") | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.listRule = "@request.auth.id = @collection.urls.created_by" | ||
collection.viewRule = "@request.auth.id = @collection.urls.created_by" | ||
collection.updateRule = "@request.auth.id = @collection.urls.created_by" | ||
collection.deleteRule = "@request.auth.id = @collection.urls.created_by" | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.listRule = "" | ||
collection.viewRule = "" | ||
collection.updateRule = "" | ||
collection.deleteRule = "" | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "@request.data.id != \"\"" | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "@request.data.id != \"\" && @request.auth.id = @collection.users.id" | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "" | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "@request.data.id != \"\"" | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "@request.auth.id != ''" | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.createRule = "" | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.listRule = "@request.auth.id != ''" | ||
collection.viewRule = "@request.auth.id != ''" | ||
collection.updateRule = "@request.auth.id != ''" | ||
collection.deleteRule = "@request.auth.id != ''" | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.listRule = "@request.auth.id = @collection.urls.created_by" | ||
collection.viewRule = "@request.auth.id = @collection.urls.created_by" | ||
collection.updateRule = "@request.auth.id = @collection.urls.created_by" | ||
collection.deleteRule = "@request.auth.id = @collection.urls.created_by" | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/// <reference path="../pb_data/types.d.ts" /> | ||
migrate((db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.listRule = "" | ||
collection.viewRule = "" | ||
collection.updateRule = "" | ||
collection.deleteRule = "" | ||
|
||
return dao.saveCollection(collection) | ||
}, (db) => { | ||
const dao = new Dao(db) | ||
const collection = dao.findCollectionByNameOrId("yq7y9q93v9mlxmq") | ||
|
||
collection.listRule = "@request.auth.id != ''" | ||
collection.viewRule = "@request.auth.id != ''" | ||
collection.updateRule = "@request.auth.id != ''" | ||
collection.deleteRule = "@request.auth.id != ''" | ||
|
||
return dao.saveCollection(collection) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.