diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..8392d15 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2b5a008..7e7c46a 100755 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,32 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js -Programming/ - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.env +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +Programming/ + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.env + +.envrc +.direnv +flake.nix +flake.lock +.devcontainer +.pnpm-store \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..fff8092 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1755027561, + "narHash": "sha256-IVft239Bc8p8Dtvf7UAACMG5P3ZV+3/aO28gXpGtMXI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "005433b926e16227259a1843015b5b2b7f7d1fc3", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3a3cbf1 --- /dev/null +++ b/flake.nix @@ -0,0 +1,27 @@ +{ + description = "Agrobot Devshell"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + nodejs_20 + pnpm + lefthook + ]; + + shellHook = '' + echo "Dev shell ready: Node.js $(node -v), pnpm $(pnpm -v)" + ''; + }; + }); +} \ No newline at end of file diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..ba85a92 --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,17 @@ +pre-commit: + parallel: true + commands: + lint: + glob: '*.{js,jsx,ts,tsx,vue,json,css,scss,md}' + run: pnpm run lint + stage_fixed: true + + pretty: + glob: '*.{js,jsx,ts,tsx,vue,json,css,scss,md}' + run: pnpm run pretty + stage_fixed: true +# pre-push: +# commands: +# lint-check: +# run: pnpm run lint +# fail_text: "Linting failed. Please fix the issues before pushing." diff --git a/src/components/recruitment/Timeline.tsx b/src/components/recruitment/Timeline.tsx index 297516c..3e35cfb 100644 --- a/src/components/recruitment/Timeline.tsx +++ b/src/components/recruitment/Timeline.tsx @@ -29,8 +29,15 @@ function Timeline() { if (today > end_day || today < start_day) { return (

- We are not taking applications currently. If you are still interested - you can email us at{' '} + Applications for the team are now officially open! Apply using the + following{' '} + + Google Forms Link. + {' '} + Questions? Send us an email at{' '} ubcagrobot@gmail.com