Skip to content

Commit

Permalink
feat: ✨ changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrnoch committed Jul 17, 2024
1 parent 4f66de5 commit 7ad9171
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 22 deletions.
3 changes: 0 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"useKeyWithClickEvents": "off",
"useKeyWithMouseEvents": "off"
},
"correctness": {
"useJsxKeyInIterable": "off"
},
"recommended": true
},
"ignore": ["node_modules/", ".next/", "dist/", "data/", "src-tauri/"]
Expand Down
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions public/tauri.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

6 changes: 3 additions & 3 deletions src-tauri/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ model Settings {
// tax Float
invoicePrefix String @default("I202400000")
invoiceCounter Int @default(1)
invoiceCounter Int @default(0)
proformaPrefix String @default("P")
proformaCounter Int @default(1)
proformaCounter Int @default(0)
receivePrefix String @default("R")
receiveCounter Int @default(1)
receiveCounter Int @default(0)
}

model Currency {
Expand Down
6 changes: 5 additions & 1 deletion src-tauri/src/commands/company.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ pub async fn create_company(
.template()
.create(
"Default Invoice".to_string(),
"<html><body><h1>Invoice</h1></body></html>".to_string(),
"
"
.to_string(),
company::id::equals(company.id),
vec![],
)
Expand Down
1 change: 0 additions & 1 deletion src/assets/logo.svg

This file was deleted.

3 changes: 2 additions & 1 deletion src/i18n/dict/cs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"setup": {
"welcome": "Vítejte",
"welcome": "Pojďme začít",
"welcome_message": "Vítejte ve fakturační aplikaci",
"get_started": "Začít",
"continue": "Pokračovat",
"finalize": "Dokončit",
Expand Down
5 changes: 2 additions & 3 deletions src/i18n/dict/en.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"hello": "Hello",
"world": "World",
"setup": {
"welcome": "Welcome to the app",
"welcome": "Let's get started",
"welcome_message": "Welcome to the invoicing app",
"get_started": "Get started",
"continue": "Continue",
"finalize": "Finalize",
Expand Down
15 changes: 12 additions & 3 deletions src/screens/Setup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,18 @@ const SetupWizard: Component = () => {

<div class="w-full h-full bg-primary rounded-xl drop-shadow-xl relative overflow-auto mx-auto p-8 px-15% lg:px-23%">
<Show when={currentStep() === 0}>
<div class="flex justify-center items-center h-full flex-col gap-8">
<Title>{t("setup.welcome")}</Title>
<Button onClick={() => setCurrentStep(1)}>{t("setup.get_started")}</Button>
<div class="flex flex-col items-center space-y-8 text-white">
<img src="logo.png" alt="Welcome Icon" class="w-24 h-24" />
<div class="flex flex-col items-center space-y-4">
<Title>{t("setup.welcome")}</Title>
<p class="text-xl text-center max-w-md">{t("setup.welcome_message")}</p>
</div>
<Button
onClick={() => setCurrentStep(1)}
class="mt-8 px-8 py-3 bg-white text-blue-600 rounded-full text-lg font-medium hover:bg-opacity-90 transition-colors"
>
{t("setup.get_started")}
</Button>
</div>
</Show>

Expand Down

0 comments on commit 7ad9171

Please sign in to comment.