Provides a Vue.js/Vuetify component to quickly switch between apps provided by an appswitcher-server instance.
npm install @muenchen/appswitcher-vue
Starting with release 2.x appswitcher-vue
requires Vue.js 3.x and Vuetify 3.x as peer dependencies, to be exact:
Required Peer Dependencies:
"@mdi/font": "> 5", // see Icon font
"vue": "^3.2.0",
"vuetify": "^^3.0.0"
If you are using Vue.js 2.X and Vuetify 2.X, you still can use release 1.0.0:
npm install @muenchen/appswitcher-vue@1.0.0
import { AppSwitcher } from "@muenchen/appswitcher-vue";
export default {
name: "MyApp",
components: {
AppSwitcher
}
});
<template>
<v-app id="app">
<v-app-bar id="app-bar" app clipped-left dark color="primary">
<!-- [....] -->
<v-spacer />
<app-switcher base-url="https://my-appswitcher-server-instance.example.com" :tags="['global', 'finance']"/>
</v-app>
</template>
By default it is expected that your Vuetify application uses MDI icons via CSS (@mdi/fonts
) and the default icon used for the activator button is mdi-apps
.
If you are not using MDI icons via CSS (@mdi/fonts
), you can
- provide a icon by setting the
icon
prop or - provide a custom
activator
slot
Property | Description | Type | Default |
---|---|---|---|
baseUrl | Base-URL to an instance of appswitcher-server | string | undefined |
id | HTML id attribute prefix | string | appswitcher |
appswitcherDownHeader | If appswitcher-server is not available: Header text | string | appswitcher-server is not available |
appswitcherDownText | If appswitcher-server is not available: Paragraph text | string | Your apps could not be retrieved from appswitcher-server. Please try again later. |
tags | Tags for request | string[] | [] |
width | Width | string | 315 |
height | Height | string | 300 |
icon | Icon for activator button | string | mdi-apps |
Default:
<v-btn icon v-bind="props">
<v-icon>{{ icon }}</v-icon>
</v-btn>
Custom example:
<app-switcher
base-url="https://my-appswitcher-server-instance.example.com"
:tags="['global', 'finance']"
>
<template #activator="{ props }">
<v-btn v-bind="props">CUSTOM activator</v-btn>
</template>
</app-switcher>
# Do dev stuff
npm run serve
# Run build process
npm run build
# Run demo app
npm run dev
This project uses semantic-release!
Commit message | Release type |
---|---|
fix(pencil): stop graphite breaking when too much pressure applied |
Patch Release |
feat(pencil): add 'graphiteWidth' option |
|
perf(pencil): remove graphiteWidth option BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reasons. |
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please open an issue with the tag "enhancement", fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Open an issue with the tag "enhancement"
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE file for more information.
it@M - opensource@muenchen.de