Skip to content

Commit

Permalink
Add json viewer package (#38)
Browse files Browse the repository at this point in the history
* Add json viewer package
  • Loading branch information
AlexAndBear authored Jul 31, 2024
1 parent e3b5747 commit 0ab416a
Show file tree
Hide file tree
Showing 13 changed files with 4,290 additions and 1 deletion.
1 change: 1 addition & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ APPS = [
"draw-io",
"external-sites",
"progress-bars",
"json-viewer",
]

def main(ctx):
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Extensions are provided by apps. These are the apps, that are provided by this r
- [web-app-draw-io](./packages/web-app-draw-io/)
- [web-app-external-sites](./packages/web-app-external-sites/)
- [web-app-progress-bars](./packages/web-app-progress-bars/)
- [web-app-json-viewer](./packages/web-app-json-viewer/)

## Adding a new app

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
- ./packages/web-app-draw-io/dist:/web/apps/draw-io
- ./packages/web-app-external-sites/dist:/web/apps/external-sites
- ./packages/web-app-progress-bars/dist:/web/apps/progress-bars
- ./packages/web-app-json-viewer/dist:/web/apps/json-viewer
depends_on:
- traefik

Expand Down
9 changes: 8 additions & 1 deletion docker/ocis.web.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
"response_type": "code",
"scope": "openid profile email"
},
"apps": ["files", "text-editor", "pdf-viewer", "search", "external", "admin-settings"]
"apps": [
"files",
"text-editor",
"pdf-viewer",
"search",
"external",
"admin-settings"
]
}
3 changes: 3 additions & 0 deletions packages/web-app-json-viewer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# web-app-json-viewer

This application can be used for viewing `.json` files in a prettified way.
31 changes: 31 additions & 0 deletions packages/web-app-json-viewer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "json-viewer",
"version": "0.0.0",
"private": true,
"description": "ownCloud Web json-viewer",
"license": "AGPL-3.0",
"type": "module",
"scripts": {
"build": "pnpm vite build",
"build:w": "pnpm vite build --watch --mode development",
"check:types": "vue-tsc --noEmit",
"test:unit": "NODE_OPTIONS=--unhandled-rejections=throw vitest"
},
"dependencies": {
"vanilla-jsoneditor": "^0.23.8"
},
"peerDependencies": {
"@ownclouders/web-client": "0.0.3",
"@ownclouders/web-pkg": "0.0.6",
"typescript": "5.5.4",
"vitest": "2.0.4",
"vue": "^3.4.21",
"vue-tsc": "2.0.29",
"vue3-gettext": "3.0.0-beta.5"
},
"devDependencies": {
"@vue/compiler-dom": "3.4.34",
"@vue/server-renderer": "3.4.34",
"happy-dom": "^14.0.0"
}
}
Loading

0 comments on commit 0ab416a

Please sign in to comment.