diff --git a/dashboard/package.json b/dashboard/package.json index 33f47026..8e49c5cc 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -17,6 +17,7 @@ "vue-template-compiler": "^2.6.10" }, "dependencies": { + "buefy": "^0.7.10", "bulma": "^0.7.5", "bulmaswatch": "^0.7.2", "js-cookie": "^2.2.0", diff --git a/dashboard/src/components/docs/Layout.vue b/dashboard/src/components/docs/Layout.vue index bedea88e..4ba0653e 100644 --- a/dashboard/src/components/docs/Layout.vue +++ b/dashboard/src/components/docs/Layout.vue @@ -29,8 +29,14 @@
  • Permissions
  • + + + diff --git a/dashboard/src/components/docs/descriptions/ArgumentTypes.vue b/dashboard/src/components/docs/descriptions/ArgumentTypes.vue new file mode 100644 index 00000000..e371206d --- /dev/null +++ b/dashboard/src/components/docs/descriptions/ArgumentTypes.vue @@ -0,0 +1,52 @@ + + + diff --git a/dashboard/src/components/docs/descriptions/Layout.vue b/dashboard/src/components/docs/descriptions/Layout.vue new file mode 100644 index 00000000..a44ab87b --- /dev/null +++ b/dashboard/src/components/docs/descriptions/Layout.vue @@ -0,0 +1,3 @@ + diff --git a/dashboard/src/components/docs/plugins/LocateUser.vue b/dashboard/src/components/docs/plugins/LocateUser.vue new file mode 100644 index 00000000..1c174139 --- /dev/null +++ b/dashboard/src/components/docs/plugins/LocateUser.vue @@ -0,0 +1,95 @@ + + + diff --git a/dashboard/src/main.ts b/dashboard/src/main.ts index 1c73d9a0..ff700e91 100644 --- a/dashboard/src/main.ts +++ b/dashboard/src/main.ts @@ -1,6 +1,8 @@ import "./style/base.scss"; +import "buefy/dist/buefy.css"; import Vue from "vue"; +import Buefy from "buefy"; import { RootStore } from "./store"; import { router } from "./routes"; @@ -19,6 +21,7 @@ Vue.mixin({ import App from "./components/App.vue"; +Vue.use(Buefy); const app = new Vue({ router, store: RootStore, diff --git a/dashboard/src/routes.ts b/dashboard/src/routes.ts index 2affdb0e..23c0329d 100644 --- a/dashboard/src/routes.ts +++ b/dashboard/src/routes.ts @@ -35,6 +35,16 @@ export const router = new VueRouter({ path: "plugin-configuration", component: () => import("./components/docs/PluginConfiguration.vue"), }, + { + path: "descriptions", + component: () => import("./components/docs/descriptions/Layout.vue"), + children: [ + { + path: "argument-types", + component: () => import("./components/docs/descriptions/ArgumentTypes.vue"), + }, + ], + }, { path: "plugins", component: () => import("./components/docs/plugins/Layout.vue"), @@ -43,6 +53,10 @@ export const router = new VueRouter({ path: "mod-actions", component: () => import("./components/docs/plugins/ModActions.vue"), }, + { + path: "locate-user", + component: () => import("./components/docs/plugins/LocateUser.vue"), + }, ], }, ], @@ -65,4 +79,12 @@ export const router = new VueRouter({ ], }, ], + + scrollBehavior: function(to) { + if (to.hash) { + return { + selector: to.hash, + }; + } + }, }); diff --git a/dashboard/src/style/base.scss b/dashboard/src/style/base.scss index c40f12c3..cf7f1c3d 100644 --- a/dashboard/src/style/base.scss +++ b/dashboard/src/style/base.scss @@ -1,4 +1,5 @@ @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600&display=swap'); +@import url('https://cdn.materialdesignicons.com/2.5.94/css/materialdesignicons.min.css'); @import "~bulma/sass/base/minireset"; body {