Browse Source

feat: update current swagger ui (#75)

change path to apidocs

Merge branch 'feat/swagger' of git.bubblev.org:bubblev/bubble-web into feat/swagger

Merge branch 'master' of git.bubblev.org:bubblev/bubble-web into feat/swagger

Merge branch 'master' into feat/swagger

feat: implement api docs using vue

feat: update current swagger ui

Co-authored-by: Jonathan Cobb <jonathan@kyuss.org>
Co-authored-by: Tyler <everdev0923@gmail.com>
Reviewed-on: https://git.bubblev.org/bubblev/bubble-web/pulls/75
pull/76/head
Tyler Chen 3 years ago
committed by jonathan
parent
commit
7c69c76eaa
9 changed files with 1349 additions and 8779 deletions
  1. +1283
    -8775
      package-lock.json
  2. +1
    -0
      package.json
  3. +56
    -0
      src/_pages/other/ApiDoc.vue
  4. +5
    -0
      src/_router/index.js
  5. BIN
     
  6. +1
    -1
      src/public/apidocs/swagger-ui-bundle.js
  7. +1
    -1
      src/public/apidocs/swagger-ui-standalone-preset.js
  8. +1
    -1
      src/public/apidocs/swagger-ui.css
  9. +1
    -1
      src/public/apidocs/swagger-ui.js

+ 1283
- 8775
package-lock.json
File diff suppressed because it is too large
View File


+ 1
- 0
package.json View File

@@ -18,6 +18,7 @@
"safe-eval": "^0.4.1",
"sass": "^1.26.10",
"sass-loader": "^9.0.2",
"swagger-ui": "^3.37.2",
"vee-validate": "^2.2.8",
"vue": "^2.6.10",
"vue-click-outside": "^1.1.0",


+ 56
- 0
src/_pages/other/ApiDoc.vue View File

@@ -0,0 +1,56 @@
<template>
<div id="swagger-ui"></div>
</template>

<style lang="scss">
.opblock-post {
border-color: #fca130 !important;
background: rgba(#fca130, 0.1) !important;

.opblock-summary-method {
background: #fca130 !important;
}

.opblock-summary {
border-color: #fca130 !important;
}

.tab-header .tab-item.active h4 span:after {
background: #fca130 !important;
}
}

.opblock-put {
border-color: #49cc90 !important;
background: rgba(#49cc90, 0.1) !important;

.opblock-summary-method {
background: #49cc90 !important;
}

.opblock-summary {
border-color: #49cc90 !important;
}

.tab-header .tab-item.active h4 span:after {
background: #49cc90 !important;
}
}
</style>

<script>
import SwaggerUI from 'swagger-ui';
import 'swagger-ui/dist/swagger-ui.css';

export default {
mounted() {
SwaggerUI({
url: '/api/openapi.json',
dom_id: '#swagger-ui',
deepLinking: true,
apisSorter: 'alpha',
tagsSorter: 'alpha',
});
},
};
</script>

+ 5
- 0
src/_router/index.js View File

@@ -91,6 +91,10 @@ export const router = new Router({
component: () => import('~/_pages/main/Layout'),
children: [
{ path: '', component: DashboardPage },
{
path: 'apidocs',
component: () => import('~/_pages/other/ApiDoc'),
},
{
path: 'bubble',
component: () => import('~/_pages/main/bubble/MyBubble'),
@@ -253,6 +257,7 @@ const publicPages = [
'/activate',
'/legal',
'/support',
'/apidocs',

'/me/action',
];


BIN
View File


+ 1
- 1
src/public/apidocs/swagger-ui-bundle.js
File diff suppressed because it is too large
View File


+ 1
- 1
src/public/apidocs/swagger-ui-standalone-preset.js
File diff suppressed because it is too large
View File


+ 1
- 1
src/public/apidocs/swagger-ui.css
File diff suppressed because it is too large
View File


+ 1
- 1
src/public/apidocs/swagger-ui.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save