update version to 1.0.0
This commit is contained in:
parent
9584774d18
commit
1350e34fd3
10
package.json
10
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "1.0.0-alpha.3",
|
"version": "1.0.0",
|
||||||
"name": "@flaschengeist/balance",
|
"name": "@flaschengeist/balance",
|
||||||
"author": "Ferdinand Thiessen <rpm@fthiessen.de>",
|
"author": "Ferdinand Thiessen <rpm@fthiessen.de>",
|
||||||
"homepage": "https://flaschengeist.dev/Flaschengeist",
|
"homepage": "https://flaschengeist.dev/Flaschengeist",
|
||||||
|
@ -19,8 +19,8 @@
|
||||||
"lint": "eslint --ext .js,.ts,.vue ./src"
|
"lint": "eslint --ext .js,.ts,.vue ./src"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@flaschengeist/api": "^1.0.0-alpha.8",
|
"@flaschengeist/api": "^1.0.0",
|
||||||
"@flaschengeist/types": "^1.0.0-alpha.10",
|
"@flaschengeist/types": "^1.0.0",
|
||||||
"@quasar/app-webpack": "^3.7.2",
|
"@quasar/app-webpack": "^3.7.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
||||||
"@typescript-eslint/parser": "^5.8.0",
|
"@typescript-eslint/parser": "^5.8.0",
|
||||||
|
@ -37,8 +37,8 @@
|
||||||
"typescript": "^4.5.4"
|
"typescript": "^4.5.4"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@flaschengeist/api": "1.0.0-alpha.8",
|
"@flaschengeist/api": "1.0.0",
|
||||||
"@flaschengeist/users": "1.0.0-alpha.4"
|
"@flaschengeist/users": "1.0.0"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
|
|
|
@ -11,7 +11,7 @@ const BalanceTypes = {
|
||||||
sub_from: 0x04,
|
sub_from: 0x04,
|
||||||
};
|
};
|
||||||
|
|
||||||
function transpile(msg: FG_Plugin.Notification) {
|
function transpile (msg: FG_Plugin.Notification) {
|
||||||
console.log('notification:', msg);
|
console.log('notification:', msg);
|
||||||
const message = msg as BalanceNotification;
|
const message = msg as BalanceNotification;
|
||||||
message.icon = 'mdi-cash';
|
message.icon = 'mdi-cash';
|
||||||
|
@ -20,9 +20,8 @@ function transpile(msg: FG_Plugin.Notification) {
|
||||||
if (message.data.type === BalanceTypes.send_from) {
|
if (message.data.type === BalanceTypes.send_from) {
|
||||||
const receiver = <FG.User>store.findUser((<SendFromNotification>message.data).receiver_id);
|
const receiver = <FG.User>store.findUser((<SendFromNotification>message.data).receiver_id);
|
||||||
const author = <FG.User>store.findUser((<SendFromNotification>message.data).author_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 ${
|
message.text = `${author.display_name} hat ${message.data.amount.toFixed(2)}€ von dir zu ${receiver.display_name
|
||||||
receiver.display_name
|
} überwiesen.`;
|
||||||
} überwiesen.`;
|
|
||||||
} else if (message.data.type === BalanceTypes.send_to) {
|
} else if (message.data.type === BalanceTypes.send_to) {
|
||||||
const sender = <FG.User>store.findUser((<SendToNotification>message.data).sender_id);
|
const sender = <FG.User>store.findUser((<SendToNotification>message.data).sender_id);
|
||||||
console.log(sender);
|
console.log(sender);
|
||||||
|
@ -40,7 +39,7 @@ const plugin: FG_Plugin.Plugin = {
|
||||||
name: 'Balance',
|
name: 'Balance',
|
||||||
innerRoutes: routes,
|
innerRoutes: routes,
|
||||||
requiredModules: [['balance']],
|
requiredModules: [['balance']],
|
||||||
version: '0.0.2',
|
version: '1.0.0',
|
||||||
notification: transpile,
|
notification: transpile,
|
||||||
widgets: [
|
widgets: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue