This commit is contained in:
Michael Zhang 2024-06-23 22:41:54 -05:00
parent 5ec49db2ce
commit 99d50db212
6 changed files with 44 additions and 13 deletions

1
apps/codetrack/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
main.wasm

3
apps/codetrack/go.mod Normal file
View file

@ -0,0 +1,3 @@
module panorama/codetrack
go 1.21.6

7
apps/codetrack/main.go Normal file
View file

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello, WebAssembly!")
}

View file

@ -0,0 +1,28 @@
name: panorama/codetrack
version: 0.1.0
panorama_version: 0.1.0
description: Code tracking app similar to WakaTime
node_types:
- name: heartbeat
keys:
- name: start_time
type: date
- name: end_time
type: date
- name: project
type: text
indexes:
- type: rtree
start: panorama/codetrack/start_time
end: panorama/codetrack/start_time
endpoints:
profiles:
release:
module: ./main.wasm

View file

@ -1,4 +1,4 @@
name: "@panorama/journal" name: panorama/journal
version: 0.1.0 version: 0.1.0
panorama_version: 0.1.0 panorama_version: 0.1.0
description: Note taking app description: Note taking app
@ -22,6 +22,4 @@ endpoints:
method: GET method: GET
export_name: get_date_info export_name: get_date_info
permissions: permissions:
- "@panorama/current_time" - @panorama/current_time
triggers:

View file

@ -35,13 +35,9 @@ To develop a custom app, you will need to provide:
- none: the app isn't allowed to write to the specified field - none: the app isn't allowed to write to the specified field
- -
A list of relations your app will use. List of endpoints and triggers, along with their handlers.
For example, the journal app will use `journal` for keeping track of regular pages, but may use another relation `journal_day` for keeping track of mapping days to journals. (**TODO:** not a good example, these could be combined) The handlers take the form `
The indexes for the relations should also be listed.
-
A list of services your app will run in the background.
## App ownership of nodes ## App ownership of nodes
@ -65,6 +61,4 @@ Apps automatically own nodes they create.
### Mail ### Mail
### Calendar ### Codetrack
### Contacts