diff --git a/apps/codetrack/.gitignore b/apps/codetrack/.gitignore new file mode 100644 index 0000000..bb6a440 --- /dev/null +++ b/apps/codetrack/.gitignore @@ -0,0 +1 @@ +main.wasm \ No newline at end of file diff --git a/apps/codetrack/go.mod b/apps/codetrack/go.mod new file mode 100644 index 0000000..832cdf4 --- /dev/null +++ b/apps/codetrack/go.mod @@ -0,0 +1,3 @@ +module panorama/codetrack + +go 1.21.6 diff --git a/apps/codetrack/main.go b/apps/codetrack/main.go new file mode 100644 index 0000000..6de382f --- /dev/null +++ b/apps/codetrack/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello, WebAssembly!") +} diff --git a/apps/codetrack/manifest.yml b/apps/codetrack/manifest.yml new file mode 100644 index 0000000..391b5c6 --- /dev/null +++ b/apps/codetrack/manifest.yml @@ -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 \ No newline at end of file diff --git a/apps/journal/manifest.yml b/apps/journal/manifest.yml index f199e68..f64cf8f 100644 --- a/apps/journal/manifest.yml +++ b/apps/journal/manifest.yml @@ -1,4 +1,4 @@ -name: "@panorama/journal" +name: panorama/journal version: 0.1.0 panorama_version: 0.1.0 description: Note taking app @@ -22,6 +22,4 @@ endpoints: method: GET export_name: get_date_info permissions: - - "@panorama/current_time" - -triggers: \ No newline at end of file + - @panorama/current_time diff --git a/docs/src/custom_apps.md b/docs/src/custom_apps.md index 5d78013..0e50667 100644 --- a/docs/src/custom_apps.md +++ b/docs/src/custom_apps.md @@ -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 - - 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 indexes for the relations should also be listed. -- - A list of services your app will run in the background. + The handlers take the form ` ## App ownership of nodes @@ -65,6 +61,4 @@ Apps automatically own nodes they create. ### Mail -### Calendar - -### Contacts \ No newline at end of file +### Codetrack