Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async API Studio Added #165

Open
wants to merge 22 commits into
base: feature/studio-ui
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4b47fd4
Studio UI Code Added
Tafseerhussain Dec 2, 2024
0adf1c6
Studio Sub Directory Added
Tafseerhussain Dec 2, 2024
dee2b47
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 3, 2024
782a803
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 9, 2024
ed1f913
Websocket Connection Added
Tafseerhussain Dec 9, 2024
592d8c5
Function and Views Update
Tafseerhussain Dec 16, 2024
41ddf37
Validations Added, Auth Page APIs Added
Tafseerhussain Dec 17, 2024
a71b31e
Update app.js
Tafseerhussain Dec 17, 2024
e006873
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 19, 2024
70940ca
Storage APIs Added
Tafseerhussain Dec 19, 2024
7b9c16f
Dummy Data Removed from Functions
Tafseerhussain Dec 19, 2024
c21bd90
Websocket Connection Changed
Tafseerhussain Dec 19, 2024
5aaa381
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 19, 2024
e66f5ec
Websocket Sending Message Fix
Tafseerhussain Dec 19, 2024
a0b0ebd
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 20, 2024
8925f04
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 20, 2024
442d9c5
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 20, 2024
e68a812
Connection added with PGSQL, APIs Fixes
Tafseerhussain Dec 20, 2024
543e58d
Fix for ZTable
Tafseerhussain Dec 20, 2024
6016c39
Merge branch 'aklivity:feature/studio-ui' into feature/studio-ui
Tafseerhussain Dec 26, 2024
5b8491d
Changes for Async APIs
Tafseerhussain Dec 26, 2024
1310eb9
Async API Changes
Tafseerhussain Dec 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions studio/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
href="icons/favicon-16x16.png"
/>
<link rel="icon" type="image/ico" href="favicon.ico" />
<script type="module" src="/async-api.js"></script>
<link rel="stylesheet" href="/async-api.css">
</head>
<body>
<!-- quasar:entry-point -->
Expand Down
1 change: 1 addition & 0 deletions studio/public/async-api.css

Large diffs are not rendered by default.

393 changes: 393 additions & 0 deletions studio/public/async-api.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions studio/quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ module.exports = configure(function (/* ctx */) {

// extendViteConf (viteConf) {},
// viteVuePluginOptions: {},
vueLoaderOptions: {
compilerOptions: {
isCustomElement: tag => tag === 'async-api',
},
},

vitePlugins: [
[
Expand Down
6 changes: 5 additions & 1 deletion studio/src/pages/shared/CommonTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,12 @@
<template v-slot:body-cell-actions="props">
<q-td :props="props">
<q-btn
v-if="tableName === 'function-table'"
v-if="tableName === 'function-table'"
flat
dense
icon="img:/icons/eye.svg"
class="icon-outline text-default-light-green q-mr-md"
@click="viewRow(props.row)"
/>
<q-btn
flat
Expand Down Expand Up @@ -494,6 +495,9 @@ export default defineComponent({
},
},
methods: {
viewRow(row) {
this.$emit("view-row", row);
},
editRow(row) {
this.$emit("edit-row", row);
},
Expand Down
19 changes: 8 additions & 11 deletions studio/src/pages/user_account/ApiDocComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,25 @@
<q-icon name="img:/icons/export.svg" class="filter-light-green" size="sm" />
</div>
<div class="q-py-md iframe">
<iframe
:src="iframeSrc"
width="100%"
height="400px"
frameborder="0"
allowfullscreen
style="display: block; border: none"
>
</iframe>
<async-api :schema="iframeSrc"></async-api>
</div>
</template>
<script>
import { appApiDocs } from "src/services/api";
import { defineComponent } from "vue";

export default defineComponent({
name: "ApiDocComponent",
components: {},
data() {
return {
iframeSrc:
"/asyncapi.html", // Change this URL as needed
iframeSrc: "",
};
},
mounted() {
appApiDocs("http-asyncapi").then(({ data }) => {
this.iframeSrc = data;
});
},
});
</script>
Loading
Loading