Your branch is up to date with 'origin/main'. Changes to be committed: modified: index.html modified: src/App.jsx new file: src/components/FileUploader/FileUploader.css new file: src/components/FileUploader/FileUploader.jsx new file: sveege-notes-db/.github/copilot-instructions.md new file: sveege-notes-db/.gitignore new file: sveege-notes-db/README.md new file: sveege-notes-db/manifest.yml new file: sveege-notes-db/package-lock.json new file: sveege-notes-db/package.json
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
# This is a sample file for a manifest.yml manifest backend.
|
|
# Read more about the manifest format here: https:/manifest.build/docs
|
|
|
|
name: Sveege Notes
|
|
entities:
|
|
Note:
|
|
properties:
|
|
- name
|
|
- { name: text, type: richText }
|
|
- { name: createdOn, type: timestamp }
|
|
belongsTo:
|
|
- User
|
|
belongsToMany:
|
|
- Image
|
|
policies:
|
|
create:
|
|
- { access: restricted, allow: User, condition: self }
|
|
read:
|
|
- { access: restricted, allow: User, condition: self }
|
|
update:
|
|
- { access: restricted, allow: User, condition: self }
|
|
delete:
|
|
- { access: restricted, allow: User, condition: self }
|
|
|
|
Image:
|
|
mainProp: id
|
|
properties:
|
|
- { name: photo, type: image, options: { sizes: { small: { height: 90, width: 90 }, large: { width: 200 } } } }
|
|
- { name: name, type: text }
|
|
- { name: uploadedOn, type: timestamp }
|
|
belongsTo:
|
|
- Note
|
|
policies:
|
|
create:
|
|
- { access: restricted, allow: User, condition: self }
|
|
read:
|
|
- { access: restricted, allow: User, condition: self }
|
|
update:
|
|
- { access: restricted, allow: User, condition: self }
|
|
delete:
|
|
- { access: restricted, allow: User, condition: self }
|
|
|
|
User:
|
|
authenticable: true
|
|
properties:
|
|
- name
|
|
policies:
|
|
read:
|
|
- access: public
|
|
|
|
Homepage:
|
|
nameSingular: Home content
|
|
single: true
|
|
properties:
|
|
- title
|
|
- { name: description, type: richText }
|
|
- { name: cover, type: image }
|
|
policies:
|
|
read:
|
|
- access: public
|