Skip to content
Snippets Groups Projects
Commit 1189d34a authored by ForkBench's avatar ForkBench
Browse files

Got rid of index.html and unused files/folders

parent a3487d73
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@ tasks:
summary: Builds the application for Windows
deps:
- task: go:mod:tidy
- task: build:frontend
vars:
BUILD_FLAGS: "{{.BUILD_FLAGS}}"
- task: generate:icons
......@@ -78,7 +77,6 @@ tasks:
summary: Creates a production build of the application
deps:
- task: go:mod:tidy
- task: build:frontend
vars:
BUILD_FLAGS: "{{.BUILD_FLAGS}}"
- task: generate:icons
......@@ -353,46 +351,10 @@ tasks:
# Generates both .ico and .icns files
- wails3 generate icons -input appicon.png
install:frontend:deps:
summary: Install frontend dependencies
dir: frontend
sources:
- package.json
- package-lock.json
generates:
- node_modules/*
preconditions:
- sh: bun -v
msg: "Looks like bun isn't installed. Bun is part of the bun installer: curl -fsSL https://bun.sh/install | bash"
cmds:
- bun install
build:frontend:
summary: Build the frontend project
dir: frontend
sources:
- "**/*"
generates:
- dist/*
deps:
- install:frontend:deps
- task: generate:bindings
vars:
BUILD_FLAGS: "{{.BUILD_FLAGS}}"
cmds:
- bun run build
generate:bindings:
summary: Generates bindings for the frontend
sources:
- "**/*.go"
- go.mod
- go.sum
generates:
- "frontend/bindings/**/*"
cmds:
# For a complete list of options, run `wails3 generate bindings -help`
- wails3 generate bindings -f '{{.BUILD_FLAGS}}' -ts
- templ generate
go:mod:tidy:
summary: Runs `go mod tidy`
......@@ -423,18 +385,9 @@ tasks:
cmds:
- "{{.BIN_DIR}}/{{.APP_NAME}}"
dev:frontend:
summary: Runs the frontend in development mode
dir: frontend
deps:
- task: install:frontend:deps
cmds:
- bun run dev -- --port {{.VITE_PORT}} --strictPort
dev:
summary: Runs the application in development mode
cmds:
- task: build:frontend
- wails3 dev -config ./build/devmode.config.yaml -port {{.VITE_PORT}}
dev:reload:
......
......@@ -16,8 +16,6 @@ config:
- "*.go"
git_ignore: true
executes:
- cmd: wails3 task dev:frontend
type: background
- cmd: go mod tidy
type: blocking
- cmd: wails3 task build
......
File deleted
This diff is collapsed.
{
"name": "frontend",
"version": "0.0.0",
"devDependencies": {
"autoprefixer": "^10.4.19",
"install": "^0.13.0",
"npm": "^10.8.2",
"postcss": "^8.4.39",
"tailwindcss": "^3.4.4",
"vite": "^5.3.3"
},
"private": true,
"scripts": {
"dev": "bunx --bun vite",
"build": "bunx --bun vite build --minify false --mode development",
"preview": "bunx --bun vite preview",
"check": "bunx --bun vite check"
},
"type": "module"
}
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
This diff is collapsed.
This diff is collapsed.
[
{
"region_name": "AUVERGNE RHONE ALPES",
"region_id": 0
},
{
"region_name": "BOURGOGNE FRANCHE COMTE",
"region_id": 1
},
{
"region_name": "BRETAGNE",
"region_id": 2
},
{
"region_name": "CENTRE VAL DE LOIRE",
"region_id": 3
},
{
"region_name": "CORSE",
"region_id": 4
},
{
"region_name": "FFE",
"region_id": 5
},
{
"region_name": "GRAND EST",
"region_id": 6
},
{
"region_name": "GUADELOUPE",
"region_id": 7
},
{
"region_name": "GUYANE",
"region_id": 8
},
{
"region_name": "HAUTS DE FRANCE",
"region_id": 9
},
{
"region_name": "ILE DE FRANCE",
"region_id": 10
},
{
"region_name": "LA REUNION",
"region_id": 11
},
{
"region_name": "MARTINIQUE",
"region_id": 12
},
{
"region_name": "NORMANDIE",
"region_id": 13
},
{
"region_name": "NOUVELLE AQUITAINE",
"region_id": 14
},
{
"region_name": "NOUVELLE CALEDONIE",
"region_id": 15
},
{
"region_name": "OCCITANIE",
"region_id": 16
},
{
"region_name": "PACA",
"region_id": 17
},
{
"region_name": "PAYS DE LA LOIRE",
"region_id": 18
}
]
\ No newline at end of file
:root {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
"Helvetica Neue", sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: rgba(27, 38, 54, 1);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
* {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 400;
src: local(""), url("./Inter-Medium.ttf") format("truetype");
}
h3 {
font-size: 3em;
line-height: 1.1;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
.result {
height: 20px;
line-height: 20px;
}
body {
margin: 0;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
button {
padding: 10px;
border: none;
border-radius: 5px;
background-color: #003566;
color: white;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
}
.input-box .btn:hover {
background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
color: #333333;
}
.input-box .input {
border: none;
border-radius: 3px;
outline: none;
height: 30px;
line-height: 30px;
padding: 0 10px;
color: black;
background-color: rgba(240, 240, 240, 1);
-webkit-font-smoothing: antialiased;
}
.input-box .input:hover {
border: none;
background-color: rgba(255, 255, 255, 1);
}
.input-box .input:focus {
border: none;
background-color: rgba(255, 255, 255, 1);
}
table {
font-size: small;
width: 70%;
border-collapse: separate;
border-spacing: 0 20px;
}
th,
.el {
margin: 3px;
padding-left: 20px;
text-align: left;
border-left: dashed rgba(119, 141, 169, 30%) 3px;
}
tr {
border-radius: 20px;
}
.first,
th:first-child {
border-left: none;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.last,
th:last-child {
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
tr:nth-child(even) .el {
background-color: #e9ecef;
}
tr:nth-child(odd) .el {
background-color: #dee2e6;
}
tr:last-child {
background: none;
}
th {
background-color: #f8f9fa;
cursor: pointer;
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["../components/*.templ"],
theme: {
extend: {},
},
plugins: [require("daisyui")],
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment