diff --git a/package.json b/package.json index 2ca3961..2e427fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "license": "MIT", - "version": "1.0.0-alpha.3", + "version": "1.0.0", "name": "@flaschengeist/balance", "author": "Ferdinand Thiessen ", "homepage": "https://flaschengeist.dev/Flaschengeist", @@ -19,8 +19,8 @@ "lint": "eslint --ext .js,.ts,.vue ./src" }, "devDependencies": { - "@flaschengeist/api": "^1.0.0-alpha.8", - "@flaschengeist/types": "^1.0.0-alpha.10", + "@flaschengeist/api": "^1.0.0", + "@flaschengeist/types": "^1.0.0", "@quasar/app-webpack": "^3.7.2", "@typescript-eslint/eslint-plugin": "^5.8.0", "@typescript-eslint/parser": "^5.8.0", @@ -37,8 +37,8 @@ "typescript": "^4.5.4" }, "peerDependencies": { - "@flaschengeist/api": "1.0.0-alpha.8", - "@flaschengeist/users": "1.0.0-alpha.4" + "@flaschengeist/api": "1.0.0", + "@flaschengeist/users": "1.0.0" }, "prettier": { "singleQuote": true, diff --git a/src/index.ts b/src/index.ts index d7c138c..e6dbf07 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ const BalanceTypes = { sub_from: 0x04, }; -function transpile(msg: FG_Plugin.Notification) { +function transpile (msg: FG_Plugin.Notification) { console.log('notification:', msg); const message = msg as BalanceNotification; message.icon = 'mdi-cash'; @@ -20,9 +20,8 @@ function transpile(msg: FG_Plugin.Notification) { if (message.data.type === BalanceTypes.send_from) { const receiver = store.findUser((message.data).receiver_id); const author = store.findUser((message.data).author_id); - message.text = `${author.display_name} hat ${message.data.amount.toFixed(2)}€ von dir zu ${ - receiver.display_name - } überwiesen.`; + message.text = `${author.display_name} hat ${message.data.amount.toFixed(2)}€ von dir zu ${receiver.display_name + } überwiesen.`; } else if (message.data.type === BalanceTypes.send_to) { const sender = store.findUser((message.data).sender_id); console.log(sender); @@ -40,7 +39,7 @@ const plugin: FG_Plugin.Plugin = { name: 'Balance', innerRoutes: routes, requiredModules: [['balance']], - version: '0.0.2', + version: '1.0.0', notification: transpile, widgets: [ {