Skip to content

Commit

Permalink
Merge pull request #9 from FabianFelixKraus/develop
Browse files Browse the repository at this point in the history
Add App-title and Logo
  • Loading branch information
FabianFelixKraus authored Oct 30, 2023
2 parents 3620596 + 77a2ca9 commit 0ab69f1
Show file tree
Hide file tree
Showing 9 changed files with 523 additions and 24 deletions.
4 changes: 2 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="/favicon.svg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>Kassenbuch</title>
</head>
<body>
<div id="app"></div>
Expand Down
File renamed without changes
Binary file removed frontend/public/favicon.ico
Binary file not shown.
504 changes: 504 additions & 0 deletions frontend/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
8 changes: 1 addition & 7 deletions frontend/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
<div class="d-flex justify-content-between align-items-center start-end-content">
<h1>{{$t("cashBook")}}</h1>
<button class="btn-outline-primary" @click="toggleLanguage">
<img :src="flagIconClass" :alt="explanationText">
switch language
</button>
</div>
</template>

<script>
import germanFlag from "@/assets/german-flag.svg";
import britishFlag from "@/assets/british-flag.svg";
export default {
name: "Header",
data() {
Expand All @@ -25,9 +22,6 @@ export default {
}
},
computed: {
flagIconClass() {
return this.selectedLanguage === "de" ? germanFlag : britishFlag;
},
explanationText() {
if (this.selectedLanguage === "de") {
return this.$t("germanFlagTitle");
Expand Down
25 changes: 12 additions & 13 deletions frontend/src/components/SelectTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
data () {
return {
selectedTemplate: undefined,
templateNames: ["card4Vend", "sumUp", "payOne", "rentStudentWERK", "invoice", "telekom", "cleaningService", "electricityBill", "accountMaintenanceFee", "deposit", "vodafone", "empty"],
templateNames: ["card4Vend", "sumUp", "payOne", "rentStudentWERK", "invoice", "telekom", "cleaningService", "electricityBill", "accountMaintenanceFee", "deposit", "GC_re_home", "vodafone", "empty"],
templates: {
"card4Vend": {
"date": new Date().toISOString().split('T')[0],
"description": "Card4Vent GmbH",
"statementOfAccountId": null,
"isExpense": false,
"location": "Waschbar",
"amount": null,
Expand All @@ -32,7 +31,6 @@
"sumUp": {
"date": new Date().toISOString().split('T')[0],
"description": "Sum up",
"statementOfAccountId": null,
"isExpense": false,
"location": "Gemeinschaftsraum",
"amount": null,
Expand All @@ -44,7 +42,6 @@
"payOne": {
"date": new Date().toISOString().split('T')[0],
"description": "PAYONE GmbH",
"statementOfAccountId": null,
"isExpense": false,
"location": "Waschbar",
"amount": null,
Expand All @@ -56,7 +53,6 @@
"rentStudentWERK": {
"date": new Date().toISOString().split('T')[0],
"description": "Miete StudierendenWERK",
"statementOfAccountId": null,
"isExpense": true,
"location": "Waschbar",
"amount": 160.00,
Expand All @@ -68,7 +64,6 @@
"invoice": {
"date": new Date().toISOString().split('T')[0],
"description": "",
"statementOfAccountId": null,
"isExpense": true,
"location": "Gemeinschaftsraum",
"amount": null,
Expand All @@ -80,7 +75,6 @@
"telekom": {
"date": new Date().toISOString().split('T')[0],
"description": "Telekom",
"statementOfAccountId": null,
"isExpense": true,
"location": "Gemeinschaftsraum",
"amount": 34.94,
Expand All @@ -92,7 +86,6 @@
"cleaningService": {
"date": new Date().toISOString().split('T')[0],
"description": "3B Dienstleistungen",
"statementOfAccountId": null,
"isExpense": true,
"location": "Gemeinschaftsraum",
"amount": 32.33,
Expand All @@ -104,7 +97,6 @@
"electricityBill": {
"date": new Date().toISOString().split('T')[0],
"description": "Naturstromhandel GmbH",
"statementOfAccountId": null,
"isExpense": true,
"location": "Waschbar",
"amount": null,
Expand All @@ -116,7 +108,6 @@
"accountMaintenanceFee": {
"date": new Date().toISOString().split('T')[0],
"description": "Kontoführungsgebühren",
"statementOfAccountId": null,
"isExpense": true,
"location": "Sonstiges",
"amount": 30.35,
Expand All @@ -128,7 +119,6 @@
"deposit": {
"date": new Date().toISOString().split('T')[0],
"description": "Kaution ",
"statementOfAccountId": null,
"isExpense": false,
"location": "Gemeinschaftsraum",
"amount": 100.00,
Expand All @@ -140,7 +130,6 @@
"flaschenport": {
"date": new Date().toISOString().split('T')[0],
"description": "Erstattung Getränkelieferung Flaschenpost SE",
"statementOfAccountId": null,
"isExpense": true,
"location": "Gemeinschaftsraum",
"amount": null,
Expand All @@ -152,7 +141,6 @@
"vodafone": {
"date": new Date().toISOString().split('T')[0],
"description": "Vodafone GmbH",
"statementOfAccountId": null,
"isExpense": true,
"location": "Waschbar",
"amount": 26.73,
Expand All @@ -161,6 +149,17 @@
"taxGroup": "WBA",
"taxRate": 19
},
"GC_re_home": {
"date": new Date().toISOString().split('T')[0],
"description": "GC re homee GmbH Abschlag (Strom) <Monat>",
"isExpense": true,
"location": "Waschbar",
"amount": 184.00,
"account": "Commerzbank",
"taxClass": "MwSt. voll",
"taxGroup": "WBA",
"taxRate": 19
},
"empty": {
"date": new Date().toISOString().split('T')[0],
"description": "",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/locales/de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"GC_re_home": "Waschbar Strom",
"account": "Konto",
"accountMaintenanceFee": "Kontoführungsgebühren",
"addNewTransaction": "Neue Transaktion hinzufügen",
Expand All @@ -8,6 +9,7 @@
"balanceCash": "Kontostand Kasse, bar",
"balanceCommerzbank": "Kontostand Commerbank",
"card4Vend": "Card4Vend",
"cashBook": "Kassenbuch",
"changeOfBalance": "Veränderung",
"cleaningService": "3B Dienstleistungen",
"close": "Schließen",
Expand Down Expand Up @@ -37,7 +39,6 @@
"result": "Ergebnis",
"save": "Speichern",
"selectTemplate": "Vorlage auswählen",
"cashBook": "Kassenbuch",
"startBalance": "Kontostand zu Beginn des Semesters",
"statementOfAccountId": "K-Nr",
"statementOfAccountIdDescription": "Kontoauszugsnummer",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"GC_re_home": "Waschbar Electricity",
"account": "Account",
"accountMaintenanceFee": "Account Maintenance Fee",
"addNewTransaction": "Add new transaction",
Expand All @@ -8,6 +9,7 @@
"balanceCash": "Balance Cash",
"balanceCommerzbank": "Balance Commerzbank",
"card4Vend": "Card4Vend",
"cashBook": "Cash book",
"changeOfBalance": "Change",
"cleaningService": "3B Dienstleistungen",
"close": "Close",
Expand Down Expand Up @@ -36,7 +38,6 @@
"result": "Result",
"save": "Save",
"selectTemplate": "select template",
"cashBook": "Cash book",
"startBalance": "Balance at the beginning of semester",
"statementOfAccountId": "K-No",
"statementOfAccountIdDescription": "Statement of Account Number",
Expand Down

0 comments on commit 0ab69f1

Please sign in to comment.