release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 62af4f5026 - Show all commits

View File

@ -77,7 +77,7 @@ module.exports = {
rules: {
// VueStuff
// Defaults to error on eslint-plugin-vue 8.0.3, but let us be not too strict with names
'vue/multi-word-component-names': 'warn',
'vue/multi-word-component-names': 'off',
// Rejects on promises should always be of the Error type (and allow empty rejects as well)
'prefer-promise-reject-errors': ["error", {"allowEmptyReject": true}],

View File

@ -27,7 +27,7 @@
</template>
<script lang="ts">
import { computed, defineComponent, PropType } from 'vue';
import { defineComponent, PropType } from 'vue';
import { hasPermissions } from '@flaschengeist/api';
import { FG_Plugin } from '@flaschengeist/types';
@ -43,12 +43,12 @@ export default defineComponent({
emits: {
addShortCut: (val: FG_Plugin.MenuLink) => val.link,
},
setup(props, { emit }) {
setup(_, { emit }) {
function isGranted(val: FG_Plugin.MenuLink) {
return computed(() => hasPermissions(val.permissions || [])).value;
return hasPermissions(val.permissions || []);
}
function getTitle(entry: FG_Plugin.MenuLink) {
return computed(() => (typeof entry.title === 'function' ? entry.title() : entry.title)).value;
return typeof entry.title === 'function' ? entry.title() : entry.title;
}
function addShortCut(val: FG_Plugin.MenuLink) {