update version to 1.0.0

This commit is contained in:
Tim Gröger 2024-01-16 19:51:03 +01:00
parent 9584774d18
commit 1350e34fd3
2 changed files with 9 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{
"license": "MIT",
"version": "1.0.0-alpha.3",
"version": "1.0.0",
"name": "@flaschengeist/balance",
"author": "Ferdinand Thiessen <rpm@fthiessen.de>",
"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,

View File

@ -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 = <FG.User>store.findUser((<SendFromNotification>message.data).receiver_id);
const author = <FG.User>store.findUser((<SendFromNotification>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 = <FG.User>store.findUser((<SendToNotification>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: [
{