update to 1.1.0 #1

Merged
crimsen merged 24 commits from develop into main 2024-10-08 13:27:05 +00:00
2 changed files with 21 additions and 5 deletions
Showing only changes of commit f5288cb8d3 - Show all commits

View File

@ -1,6 +1,6 @@
{
"license": "MIT",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"name": "@flaschengeist/types",
"author": "Ferdinand Thiessen <rpm@fthiessen.de>",
"homepage": "https://flaschengeist.dev/",
@ -17,11 +17,13 @@
"valid": "tsc --noEmit",
"pretty": "prettier --config ./package.json --write '{,!(node_modules)/**/}*.ts'"
},
"dependencies": {
"vue": "^3.1.5",
"vue-router": "^4.0.10"
},
"devDependencies": {
"prettier": "^2.3.0",
"typescript": "^4.2.4",
"vue": "^3.0.11",
"vue-router": "^4.0.8"
"typescript": "^4.2.4"
},
"prettier": {
"singleQuote": true,

16
types/plugin.d.ts vendored
View File

@ -110,6 +110,11 @@ export namespace FG_Plugin {
export interface MenuLink extends MenuEntry {
/** Name of the target route */
link: RouteRecordName;
/**
* Order inside the menu, higher numbers come ahead of lower numbers
* @todo: Promote to required with first beta
*/
order?: number;
}
/**
@ -127,7 +132,16 @@ export namespace FG_Plugin {
*/
export interface Widget {
name: string;
priority: number;
/**
* @deprecated Deprecated in favor of order
* @todo Remove with beta 1
*/
priority?: number;
/**
* Default order on the dashboard, higher numbers come ahead of lower numbers
* @todo Promote to required if priority is removed
*/
order?: number;
permissions: FG.Permission[];
widget: Component;
}