-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
754338f
commit 0594edc
Showing
36 changed files
with
2,948 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_API_URL=http://localhost:5000 |
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 @@ | ||
# React + Vite + TypeScript Template (react-vite-ui) | ||
|
||
A React + Vite template powered by shadcn/ui. | ||
|
||
- See root package.json for node + pnpm version | ||
- Run: `pnpm install` to install dependencies | ||
|
||
Vite uses .env.local when running with `pnpm dev` and .env.production when running with `pnpm build`. | ||
|
||
Create a .env.local file with: | ||
|
||
``` | ||
VITE_API_URL=http://localhost:5000 | ||
``` | ||
|
||
- Run: `pnpm dev` to start the development server |
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,6 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"linter": { | ||
"ignore": ["dist"] | ||
} | ||
} |
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,21 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "default", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/styles/globals.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
}, | ||
"iconLibrary": "lucide" | ||
} |
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,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Kvitteringsskjema</title> | ||
<script defer data-domain="kvittering.online.ntnu.no" src="https://plausible.io/js/script.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
</html> |
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,46 @@ | ||
{ | ||
"name": "@dotkomonline/kvittering-frontend", | ||
"private": true, | ||
"version": "0.0.1", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"lint": "biome check --write --unsafe .", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"@hookform/resolvers": "^4.0.0", | ||
"@radix-ui/react-label": "^2.0.2", | ||
"@radix-ui/react-radio-group": "^1.2.1", | ||
"@radix-ui/react-select": "^2.1.2", | ||
"@radix-ui/react-slot": "^1.1.2", | ||
"@sentry/browser": "^9.4.0", | ||
"@sentry/react": "^9.4.0", | ||
"browser-image-compression": "^2.0.2", | ||
"class-variance-authority": "^0.7.0", | ||
"clsx": "^2.0.0", | ||
"lucide-react": "^0.475.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-dropzone": "^14.3.8", | ||
"react-hook-form": "^7.48.2", | ||
"sonner": "^2.0.1", | ||
"tailwindcss-animate": "^1.0.7", | ||
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.3", | ||
"@types/node": "^22.0.0", | ||
"@types/react": "^18.3.11", | ||
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react": "4.3.4", | ||
"autoprefixer": "^10.4.16", | ||
"globals": "^15.14.0", | ||
"postcss": "^8.4.31", | ||
"tailwind-merge": "^3.0.1", | ||
"tailwindcss": "^3.3.5", | ||
"typescript": "^5.8", | ||
"vite": "6.2.0" | ||
} | ||
} |
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,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
import { Toaster } from "sonner"; | ||
import { Header } from "./components/header"; | ||
import ReceiptForm from "./components/receipt-form"; | ||
|
||
function App() { | ||
return ( | ||
<div> | ||
<Header /> | ||
<main className="px-8 lg:px-0"> | ||
<ReceiptForm /> | ||
</main> | ||
<Toaster position="top-center" expand={true} /> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 @@ | ||
export const Header = () => { | ||
return ( | ||
<header className="bg-[#0d5474] grid justify-center box-border w-full"> | ||
<img | ||
src={"https://wiki.online.ntnu.no/attachments/681-Online_hvit.png"} | ||
alt="Linjeforeningen Online" | ||
className="w-[26rem] max-w-[100vw] box-border p-6" | ||
/> | ||
<h2 className="text-white text-center tracking-wider mb-4"> | ||
Kvitteringsskjema TEST | ||
</h2> | ||
</header> | ||
); | ||
}; |
Oops, something went wrong.