Skip to content

Commit

Permalink
Merge branch 'main' into CA-141-prevent-deleting-a-library-that-is-in…
Browse files Browse the repository at this point in the history
…-use-in-an-assessment
  • Loading branch information
nas-tabchiche committed Feb 12, 2024
2 parents d23b0ee + 525473f commit a70bba8
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 38 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,6 @@ jobs:
working-directory: ${{ env.working-directory }}
run: |
touch .env
echo DEFAULT_FROM_EMAIL='[email protected]' >> .env
echo EMAIL_HOST='localhost' >> .env
echo EMAIL_PORT=1025 >> .env
echo EMAIL_HOST_USER='user' >> .env
echo EMAIL_HOST_PASSWORD='pass' >> .env
echo EMAIL_USE_TLS=True >> .env
echo EMAIL_HOST_RESCUE='localhost' >> .env
echo EMAIL_PORT_RESCUE=1025 >> .env
echo EMAIL_HOST_USER_RESCUE='' >> .env
echo EMAIL_HOST_PASSWORD_RESCUE='' >> .env
echo EMAIL_USE_TLS_RESCUE=False >> .env
echo PUBLIC_BACKEND_API_URL=http://127.0.0.1:8000/api >> .env
- name: Create backend environment variables file
Expand All @@ -80,11 +69,6 @@ jobs:
echo POSTGRES_USER=postgres >> .env
echo POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} >> .env
echo DB_HOST=localhost >> .env
echo EMAIL_HOST=localhost >> .env
echo EMAIL_PORT=1025 >> .env
echo EMAIL_HOST_USER='' >> .env
echo EMAIL_HOST_PASSWORD='' >> .env
echo DEFAULT_FROM_EMAIL='[email protected]' >> .env
echo CISO_ASSISTANT_SUPERUSER_EMAIL='' >> .env
echo CISO_ASSISTANT_URL=http://127.0.0.1:4173 >> .env
- name: Run migrations
Expand Down
13 changes: 1 addition & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
!__init__.py
*.pyc
__pycache__
*.DS_Store
*~$*
staticfiles/*
*.mo
.env
dump.json
node_modules/
**/node_modules/
.vscode
*.sqlite3
backend/staticfiles/
backend/venv/
temp/
backend/db/attachments/
backend/db/django_secret_key
backend/db/pg_password.txt
./db/
18 changes: 18 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
!__init__.py
*.pyc
__pycache__
*.DS_Store
*~$*
staticfiles/*
*.mo
.env
.vscode
*.sqlite3
staticfiles/
venv/
temp/
db/attachments/
db/django_secret_key
db/pg_password.txt
./db/
.coverage
2 changes: 1 addition & 1 deletion backend/ciso_assistant/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.6
0.9.7
28 changes: 19 additions & 9 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
}
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
199 changes: 199 additions & 0 deletions frontend/package-lock.json

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

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"autoprefixer": "^10.4.14",
"eslint": "^8.53.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.35.1",
"jsdom": "^22.1.0",
"postcss": "^8.4.23",
"prettier": "^2.8.0",
Expand Down

0 comments on commit a70bba8

Please sign in to comment.