diff --git a/.gitignore b/.gitignore index b598c343e..87b76ef66 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,8 @@ tags node_modules +dist/ +mobile/dev-dist raven/public/raven raven/public/node_modules raven/www/raven.html diff --git a/README.md b/README.md index 6df3379df..a76dd81e3 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The frontend is built using React and the following tools: 2. [frappe-react-sdk](https://github.com/nikkothari22/frappe-react-sdk) - simple React hooks to interface with a Frappe framework backend - built and maintained by us at The Commit Company. 3. [react-icons](https://react-icons.github.io) - Icon set 4. [Framer Motion](https://www.framer.com/motion/) - Animations -5. [react-quill](https://www.npmjs.com/package/react-quill) +5. [Tiptap](https://www.tiptap.dev) The mobile app is built using [Ionic](https://ionicframework.com), [Tailwind CSS](tailwindcss.com) and [Capacitor](https://capacitorjs.com). diff --git a/api_docs/Chat/Get Channel Members.bru b/api_docs/Chat/Get Channel Members.bru new file mode 100644 index 000000000..5ad94b8ee --- /dev/null +++ b/api_docs/Chat/Get Channel Members.bru @@ -0,0 +1,21 @@ +meta { + name: Get Channel Members + type: http + seq: 1 +} + +get { + url: {{url}}:{{port}}/api/method/raven.api.chat.get_channel_members?channel_id=general + body: none + auth: none +} + +query { + channel_id: general + ~channel_id: admin-private + ~channel_id: does-not-exist +} + +headers { + Authorization: token {{api_key}}:{{api_secret}} +} diff --git a/api_docs/Preview Links/Get Preview Link.bru b/api_docs/Preview Links/Get Preview Link.bru new file mode 100644 index 000000000..4b79a70cc --- /dev/null +++ b/api_docs/Preview Links/Get Preview Link.bru @@ -0,0 +1,20 @@ +meta { + name: Get Preview Link + type: http + seq: 1 +} + +get { + url: {{url}}:{{port}}/api/method/raven.api.preview_links.get_preview_link?urls=["https://ravenapp.info"] + body: none + auth: none +} + +query { + urls: ["https://ravenapp.info"] + ~urls: ["http://192.168.0.0"] +} + +headers { + Authorization: token {{api_key}}:{{api_secret}} +} diff --git a/api_docs/Raven Users/Get List.bru b/api_docs/Raven Users/Get List.bru new file mode 100644 index 000000000..debed6cc7 --- /dev/null +++ b/api_docs/Raven Users/Get List.bru @@ -0,0 +1,15 @@ +meta { + name: Get List + type: http + seq: 1 +} + +get { + url: {{url}}:{{port}}/api/method/raven.api.raven_users.get_list + body: none + auth: none +} + +headers { + Authorization: token {{api_key}}:{{api_secret}} +} diff --git a/api_docs/Reactions/React.bru b/api_docs/Reactions/React.bru new file mode 100644 index 000000000..f1bc19222 --- /dev/null +++ b/api_docs/Reactions/React.bru @@ -0,0 +1,27 @@ +meta { + name: React + type: http + seq: 1 +} + +post { + url: {{url}}:{{port}}/api/method/raven.api.reactions.react?message_id=7a46635aff&reaction=🐶 + body: none + auth: none +} + +query { + message_id: 7a46635aff + reaction: 🐶 + ~message_id: 4ba126d7ba +} + +headers { + Authorization: token {{api_key}}:{{api_secret}} +} + +docs { + API to toggle a reaction to a Message + + The API first checks if the user has permission for the message. If yes, then it checks if the user has already reacted to the message. If not, it creates a new reaction, else it deletes the existing reaction. +} diff --git a/api_docs/User Availability/Get Active Users.bru b/api_docs/User Availability/Get Active Users.bru new file mode 100644 index 000000000..e0adb4a57 --- /dev/null +++ b/api_docs/User Availability/Get Active Users.bru @@ -0,0 +1,15 @@ +meta { + name: Get Active Users + type: http + seq: 1 +} + +get { + url: {{url}}:{{port}}/api/method/raven.api.user_availability.get_active_users + body: none + auth: none +} + +headers { + Authorization: token {{api_key}}:{{api_secret}} +} diff --git a/api_docs/User Availability/Refresh User Active State.bru b/api_docs/User Availability/Refresh User Active State.bru new file mode 100644 index 000000000..43a72dd56 --- /dev/null +++ b/api_docs/User Availability/Refresh User Active State.bru @@ -0,0 +1,19 @@ +meta { + name: Refresh User Active State + type: http + seq: 2 +} + +get { + url: {{url}}:{{port}}/api/method/raven.api.user_availability.refresh_user_active_state + body: none + auth: none +} + +query { + ~deactivate: true +} + +headers { + Authorization: token {{api_key}}:{{api_secret}} +} diff --git a/api_docs/bruno.json b/api_docs/bruno.json new file mode 100644 index 000000000..4e6323b0c --- /dev/null +++ b/api_docs/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "Raven", + "type": "collection" +} \ No newline at end of file diff --git a/api_docs/environments/Dev.bru b/api_docs/environments/Dev.bru new file mode 100644 index 000000000..b7088ce75 --- /dev/null +++ b/api_docs/environments/Dev.bru @@ -0,0 +1,8 @@ +vars { + url: http://localhost + port: 8000 + api_key: d0e4a68bf14f25d +} +vars:secret [ + api_secret +] diff --git a/mobile/index.html b/mobile/index.html index 16dab3ea6..6667bf5fa 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -6,10 +6,11 @@