-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved submodules to corresponding modules
- Loading branch information
Showing
26 changed files
with
167 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
<script lang="ts"> | ||
import Wrapper from "$lib/components/generics/containers/Wrapper.svelte"; | ||
import { _ } from "svelte-i18n"; | ||
</script> | ||
|
||
<h1>Santé financière - mink</h1> | ||
<p>Analysez la santé de votre société</p> | ||
<svelte:head> | ||
<title>{$_('app.generic.accounting')} - mink</title> | ||
</svelte:head> | ||
|
||
<div class="grid grid-cols-2 gap-6 mt-6"> | ||
<h1>{$_('app.generic.accounting')}</h1> | ||
<p>{$_('app.accounting.description')}</p> | ||
|
||
<Wrapper /> <!-- Charts --> | ||
<Wrapper /> <!-- Charts --> | ||
|
||
<div class="grid grid-cols-2 gap-6 mt-6"> | ||
<Wrapper> | ||
<h2>Flux entrants</h2> | ||
<!-- Charts --> | ||
</Wrapper> | ||
<Wrapper> | ||
<h2>Flux sortants</h2> | ||
<!-- Charts --> | ||
</Wrapper> | ||
</div> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { LayoutServerLoad } from "./$types"; | ||
|
||
export const ssr = true; | ||
|
||
export const load = (async ({ locals }) => { | ||
|
||
const inboundSuppliesCount = await locals.prisma.scm_order_rows.count({ where: { order: { state: { in: ["acknowledged"] }}, received_quantity: { lt: locals.prisma.scm_order_rows.fields.needed_quantity } }}); | ||
|
||
return { | ||
session: locals.session, | ||
user: locals.user, | ||
appSettings: locals.appSettings, | ||
inboundSuppliesCount | ||
} | ||
|
||
}) satisfies LayoutServerLoad; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script lang="ts"> | ||
import Flex from "$lib/components/generics/layout/flex.svelte"; | ||
import Menu from "$lib/components/generics/menu/Menu.svelte"; | ||
import MenuItem from "$lib/components/generics/menu/MenuItem.svelte"; | ||
import MenuSeparator from "$lib/components/generics/menu/MenuGroup.svelte"; | ||
import { ChevronLeft, ChevronRight, CircleStack, Truck } from "@steeze-ui/heroicons"; | ||
import type { LayoutData } from "./$types"; | ||
import { _ } from "svelte-i18n"; | ||
import { validatePermission } from "$lib/permission"; | ||
export let data: LayoutData; | ||
</script> | ||
|
||
<Flex gap={0} class="h-screen w-screen overflow-hidden" direction={data.userSettings?.app_menu_left === false ? "rowReverse" : "row"}> | ||
<Menu> | ||
<MenuItem icon={data.userSettings?.app_menu_left ? ChevronLeft : ChevronRight} href="/app" label={$_('app.generic.home')} /> | ||
|
||
<MenuSeparator items={[ | ||
!validatePermission(data.user, "project", "r") ? undefined : { icon: CircleStack, href: "/app/pm/projects", label: $_('app.generic.projects') }, | ||
!validatePermission(data.user, "manufacturing_order", "r") ? undefined : { icon: Truck, href: "/app/pm/manufacturing_orders", label: $_('app.generic.manufacturing_orders') }, | ||
]}>{$_('app.generic.project_manager')}</MenuSeparator> | ||
</Menu> | ||
|
||
<div class="relative grow overflow-x-hidden overflow-y-scroll p-10 pl-6" id="main_content"> | ||
<slot /> | ||
</div> | ||
</Flex> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script lang="ts"> | ||
import { _ } from "svelte-i18n"; | ||
</script> | ||
|
||
<svelte:head> | ||
<title>{$_('app.generic.project_manager')} - mink</title> | ||
</svelte:head> | ||
|
||
<h1>{$_('app.generic.project_manager')}</h1> | ||
<p>{$_('app.pm.description')}</p> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.