Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
AUTH_TRUST_HOST=http://localhost:4173
AUTH_GITHUB_ID=2
AUTH_GITHUB_SECRET=3
AUTH_SECRET=random_secret_with_high_entropy
DATABASE_URL="postgres://postgres:1234@localhost:5432/postgres"
DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres"
DIRECT_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres"
ADMIN_DATABASE_URL="postgresql://supabase_admin:postgres@127.0.0.1:54322/postgres"

PUBLIC_SUPABASE_URL="http://127.0.0.1:54321"
PUBLIC_SUPABASE_ANON_KEY=""
SERVICE_ROLE_KEY=""

PUBLIC_ENVIRONMENT="development"
FILESYSTEM="SUPABASE"

SAML_METADATA_IDP_URL=""
PUBLIC_SAML_IDP_DOMAIN="example.org"
PUBLIC_SRAM_SAML_IDP_DOMAIN="example.org"
25 changes: 0 additions & 25 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ node_modules
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/.idea
reports
.snaplet
static/uploadedFiles
Expand Down
10 changes: 10 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/CAIT.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22
26
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ This will spawn a new shell with all the dependencies needed to run CAIT (includ

### Using an imperative package manager (or running in windows) (not recommended)

[//]: # (TODO)

### Running the application

First, make sure all the dependencies are installed and the correct prisma client is generated by running the following
Expand Down
65 changes: 65 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';

export default tseslint.config(
js.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs['flat/recommended'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-implicit-any': 'off',
'svelte/no-navigation-without-resolve': 'warn',
'svelte/require-each-key': 'warn',
'svelte/require-event-dispatcher-types': 'warn',
'svelte/no-reactive-reassign': 'warn',
'svelte/infinite-reactive-loop': 'warn',
'svelte/no-immutable-reactive-statements': 'warn',
'svelte/no-useless-mustaches': 'warn',
'svelte/no-reactive-functions': 'warn',
'svelte/no-reactive-literals': 'warn',
'@typescript-eslint/no-unused-expressions': 'warn',
'@typescript-eslint/no-wrapper-object-types': 'warn',
'no-useless-catch': 'warn',
'no-undef': 'warn',
'no-control-regex': 'warn',
'prefer-const': 'warn',
},
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
extraFileExtensions: ['.svelte'],
},
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'warn',
},
},
{
ignores: [
'.svelte-kit/',
'build/',
'node_modules/',
'static/',
'coverage/',
'playwright-report/',
],
},
);
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
nodejs_20
nodePackages.yarn
nodePackages.node-gyp
nodejs_26
yarn
node-gyp
vips
python3
prisma-engines
prisma-engines_6
openssl
docker-compose
];
Expand All @@ -41,10 +41,10 @@
];

shellHook = ''
export PRISMA_SCHEMA_ENGINE_BINARY="${pkgs.prisma-engines}/bin/schema-engine"
export PRISMA_QUERY_ENGINE_BINARY="${pkgs.prisma-engines}/bin/query-engine"
export PRISMA_QUERY_ENGINE_LIBRARY="${pkgs.prisma-engines}/lib/libquery_engine.node"
export PRISMA_FMT_BINARY="${pkgs.prisma-engines}/bin/prisma-fmt"
export PRISMA_SCHEMA_ENGINE_BINARY="${pkgs.prisma-engines_6}/bin/schema-engine"
export PRISMA_QUERY_ENGINE_BINARY="${pkgs.prisma-engines_6}/bin/query-engine"
export PRISMA_QUERY_ENGINE_LIBRARY="${pkgs.prisma-engines_6}/lib/libquery_engine.node"
export PRISMA_FMT_BINARY="${pkgs.prisma-engines_6}/bin/prisma-fmt"
export PATH="$PWD/node_modules/.bin/:$PATH"
'';
};
Expand Down
Loading