|
70 | 70 | - And for returning your solution count should append your `{SOLUTION_TYPE}` in the `count_dict` in `count_solutions` method in the same module |
71 | 71 |
|
72 | 72 | ## Add app in frontend |
73 | | -- In the frontend, you just need to add your app object in `apps` dict in `packages/marketplace/frontend/App.vue` |
74 | | - ```js |
75 | | - { |
76 | | - name: "App Name in frontend", |
77 | | - type: "{SOLUTION_TYPE}", |
78 | | - path: "/{your_app_name}", |
79 | | - meta: { icon: "app_icon" }, |
80 | | - } |
81 | | - ``` |
| 73 | +- In the frontend, you just need to add your app object as below in `apps` dict under the section you want to list your app in `packages/marketplace/frontend/data.js` |
| 74 | + - If you need to add another section, just create new one in the `SECTIONS` object with the same structure: |
| 75 | + ```js |
| 76 | + "SECTION NAME": { |
| 77 | + titleToolTip: "Tooltip shown on hovering on section title in the frontend", |
| 78 | + apps: { |
| 79 | + // list your applications objects as below structure |
| 80 | + "App Name": { |
| 81 | + name: "App Name in frontend", |
| 82 | + type: "{SOLUTION_TYPE}", // defined in the previous steps |
| 83 | + image: "./assets/appImage.png", // add your app image in the assets dir |
| 84 | + disable: false, // make it true if you want to hide your app in the marketplace frontend |
| 85 | + helpLink: "https://now10.threefold.io/docs", // link to application manual |
| 86 | + description: "Description of your application" |
| 87 | + }, |
| 88 | + }, |
| 89 | + }, |
| 90 | + ``` |
| 91 | + - If you just need to add your application in an existing section, add a new app object with below structure in the section object you want to list in: |
| 92 | + ```js |
| 93 | + { |
| 94 | + "App Name": { |
| 95 | + name: "App Name in frontend", |
| 96 | + type: "{SOLUTION_TYPE}", // defined in the previous steps |
| 97 | + image: "./assets/appImage.png", // add your app image in the assets dir |
| 98 | + disable: false, // make it true if you want to hide your app in the marketplace frontend |
| 99 | + helpLink: "https://now10.threefold.io/docs", // link to application manual |
| 100 | + description: "Description of your application" |
| 101 | + }, |
| 102 | + } |
| 103 | + ``` |
0 commit comments