forked from gfroidcourt/iut-onboarding
-
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.
* prepared 2 pages for admin dashboard * Added shadcn for vue and tailwindcss * Made login page frontend * Css fixes * Made layout of the main dashboard page * Added forgotten files * Commit before pc reset * Added announcement (#3) * Update app.vue (#5) * Updated announcements (#6) * Update app.vue (#7) * Reworked Hyperplanning backend (#8) * Reworked Hyperplanning backend * Removed unused code and unused files. * Removed unused code + fixes for images * Thème de noel (#9) * Want maintainer ;( * Fixed EDT for empty rooms (#11) * CI/CD rework to drop netlify (#12) * Create main.yml * Added preview script, corrected main script name * Updated preview script to ditch Github CLI * removing line that caused the script to crash * Added small test to ensure we are pulling the right thing. Will be removed during the next commit. * Pulled the right thing, removing test. Added files for podman * Corrected auto deploy script * Renamed dockerfile * Correcting dockerfile * Added root url to support reverse proxy custom paths * Added forgotten commas * Test for images * Test to import images as ES modules. Switched the proxy from nuxt to the reverse proxy (Caddy) * Test image import from bg * Corrected image paths * Added cleanup steps * Removed sudo because sudo is not needed and user is not sudoer. * Corrected proxying for hyperplanning * Replaced every image link with a valid one. Removed every files linked to netlify, attempt to fix menus. * Added logo for new year * Attempt to fix plannings. Fixed bad image link * Corrected link to build * Same as last commit but just because of one capital letter >:( * Attempt to correct plannings and allow the code to compile * Added failing condition to deploys * Test to see if what i am trying to correct is really the problem :/ * 2nd test that SHOULD pass * NO >:( Driving me crazy * Tried to switch the page to client side * Testing with everything on server side * May have found the problem. Sending test fix * Import fix * Correction attempt for planning url * Test to see everything working (or not) * Test for menus * Test fixes for HP and menus * missing async fix * Multiple fixes in crous menus. * Fully repaired menus. * Fixed plannings. Things should be ready to merge. Code unhacked. * Update deploy-preview.yml * Corrected service name * Changed icals for some classes because they finished their semester (#13) * Added shadcn for vue and tailwindcss * Made login page frontend * Commit before pc reset * Responsive design for admin panel * Better responsive * Added ui/ux elements * Added automatic change detection and made detection for unwanted meals more stict * Made partial doc for API * Added swagger ui * Database schema * Pre no GSM area commit * Added forgotten files * Made most of the CRUD logic * Started to switch to the dotenv lib to read env vars. * Made all methods in jwt.js * Removed potential hash leak from getUsers function * Switched to JOSE for JWT. //TODO: FIX JWT CHECK * Added exemple.env * Fixed authenticated access problems * Made events route (UNTESTED)' * Disabled slides are from now on really disabled * The slides are now staying the time defined in the database. * Added setup script * Added all information viewing for PC * Added UI components * Corrected date formatting * Some fixes * Added cache update for event, created all function needed for events to be added, modified or deleted. Only event deletion is linked to the GUI. * Split admin panel into different components in order to be maintainable * Done event editing. //TODO: Fix CRUD OP in DB and set modification field default values to the current event value * Added missing UI Elements * Date field modifying the display of an already existing event are now default to the database values. * Updated icals for S2 * Readded the file * Included volumes for .env files in compose.yaml * Fixed building * Fixed event editing * Tried to fix container bootloop * Added some alpine packages required for prisma to work. * Removed cleanup steps as they are not necessary since the storage driver switch on the remote server. * Switched to pnpm to try having a more efficient package install
- Loading branch information
Showing
114 changed files
with
10,558 additions
and
2,964 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,54 @@ | ||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default { | ||
compatibilityDate: '2024-04-03', | ||
compatibilityDate: "2024-04-03", | ||
devtools: { enabled: true }, | ||
modules: ['@nuxtjs/google-fonts'], | ||
|
||
modules: [ | ||
"@nuxtjs/google-fonts", | ||
"@nuxtjs/tailwindcss", | ||
"shadcn-nuxt", | ||
"nuxt-lucide-icons", | ||
], | ||
|
||
lucide: { | ||
namePrefix: "Lucide" | ||
}, | ||
|
||
css: ["./stylesheets/global.css"], | ||
|
||
app: { | ||
baseURL: '/preview/info/' | ||
baseURL: "/preview/info/" | ||
}, | ||
|
||
googleFonts: { | ||
display: 'swap', | ||
outputDir: 'assets/fonts/', | ||
families: { | ||
Fredoka: { | ||
wght: ["75..125",500] | ||
}, | ||
Poppins: { | ||
wght: 300 | ||
display: "swap", | ||
outputDir: "assets/fonts/", | ||
families: { | ||
Fredoka: { | ||
wght: ["75..125",500] | ||
}, | ||
Poppins: { | ||
wght: 300 | ||
} | ||
} | ||
} | ||
}, | ||
|
||
routeRules: { | ||
"/api/hp/**": { | ||
proxy: "https://hyperplanning.iut.u-bordeaux.fr/Telechargements/ical/**" | ||
} | ||
"api/hp/**": { | ||
proxy: "https://hyperplanning.iut.u-bordeaux.fr/Telechargements/ical/**" | ||
}, | ||
// Add cors headers | ||
"/api/v1/**": { cors: true }, | ||
}, | ||
|
||
shadcn: { | ||
/** | ||
* Prefix for all the imported component | ||
*/ | ||
prefix: "", | ||
/** | ||
* Directory that the component lives in. | ||
* @default "./components/ui" | ||
*/ | ||
componentDir: "./components/ui" | ||
} | ||
}; | ||
}; |
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,6 +1,8 @@ | ||
FROM docker.io/node:20-alpine | ||
WORKDIR /server | ||
COPY . /server | ||
RUN npm ci | ||
RUN npm run build | ||
CMD node .output/server/index.mjs | ||
RUN apk update && apk add openssl musl zlib libgcc | ||
RUN npm i -g pnpm | ||
RUN pnpm install | ||
RUN pnpm run build | ||
CMD ["sh","setup.sh"] |
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
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,18 @@ | ||
{ | ||
"$schema": "https://shadcn-vue.com/schema.json", | ||
"style": "default", | ||
"typescript": true, | ||
"tsConfigPath": ".nuxt/tsconfig.json", | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "stylesheets/global.css", | ||
"baseColor": "slate", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"framework": "nuxt", | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script setup lang="ts"> | ||
import type { HTMLAttributes } from 'vue' | ||
import { cn } from '@/lib/utils' | ||
import { Primitive, type PrimitiveProps } from 'radix-vue' | ||
import { type ButtonVariants, buttonVariants } from '.' | ||
interface Props extends PrimitiveProps { | ||
variant?: ButtonVariants['variant'] | ||
size?: ButtonVariants['size'] | ||
class?: HTMLAttributes['class'] | ||
} | ||
const props = withDefaults(defineProps<Props>(), { | ||
as: 'button', | ||
}) | ||
</script> | ||
|
||
<template> | ||
<Primitive | ||
:as="as" | ||
:as-child="asChild" | ||
:class="cn(buttonVariants({ variant, size }), props.class)" | ||
> | ||
<slot /> | ||
</Primitive> | ||
</template> |
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,35 @@ | ||
import { cva, type VariantProps } from 'class-variance-authority' | ||
|
||
export { default as Button } from './Button.vue' | ||
|
||
export const buttonVariants = cva( | ||
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', | ||
{ | ||
variants: { | ||
variant: { | ||
default: | ||
'bg-primary text-primary-foreground shadow hover:bg-primary/90', | ||
destructive: | ||
'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90', | ||
outline: | ||
'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground', | ||
secondary: | ||
'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80', | ||
ghost: 'hover:bg-accent hover:text-accent-foreground', | ||
link: 'text-primary underline-offset-4 hover:underline', | ||
}, | ||
size: { | ||
default: 'h-9 px-4 py-2', | ||
sm: 'h-8 rounded-md px-3 text-xs', | ||
lg: 'h-10 rounded-md px-8', | ||
icon: 'h-9 w-9', | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: 'default', | ||
size: 'default', | ||
}, | ||
}, | ||
) | ||
|
||
export type ButtonVariants = VariantProps<typeof buttonVariants> |
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 @@ | ||
<script setup lang="ts"> | ||
import type { HTMLAttributes } from 'vue' | ||
import { cn } from '@/lib/utils' | ||
const props = defineProps<{ | ||
class?: HTMLAttributes['class'] | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div | ||
:class=" | ||
cn( | ||
'rounded-lg border bg-card text-card-foreground shadow-sm', | ||
props.class, | ||
) | ||
" | ||
> | ||
<slot /> | ||
</div> | ||
</template> |
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 @@ | ||
<script setup lang="ts"> | ||
import type { HTMLAttributes } from 'vue' | ||
import { cn } from '@/lib/utils' | ||
const props = defineProps<{ | ||
class?: HTMLAttributes['class'] | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div :class="cn('p-6 pt-0', props.class)"> | ||
<slot /> | ||
</div> | ||
</template> |
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 @@ | ||
<script setup lang="ts"> | ||
import type { HTMLAttributes } from 'vue' | ||
import { cn } from '@/lib/utils' | ||
const props = defineProps<{ | ||
class?: HTMLAttributes['class'] | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<p :class="cn('text-sm text-muted-foreground', props.class)"> | ||
<slot /> | ||
</p> | ||
</template> |
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 @@ | ||
<script setup lang="ts"> | ||
import type { HTMLAttributes } from 'vue' | ||
import { cn } from '@/lib/utils' | ||
const props = defineProps<{ | ||
class?: HTMLAttributes['class'] | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div :class="cn('flex items-center p-6 pt-0', props.class)"> | ||
<slot /> | ||
</div> | ||
</template> |
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 @@ | ||
<script setup lang="ts"> | ||
import type { HTMLAttributes } from 'vue' | ||
import { cn } from '@/lib/utils' | ||
const props = defineProps<{ | ||
class?: HTMLAttributes['class'] | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div :class="cn('flex flex-col gap-y-1.5 p-6', props.class)"> | ||
<slot /> | ||
</div> | ||
</template> |
Oops, something went wrong.