Update database connection details and enhance course management functionality. Changed DATABASE_URL in deployment workflow to a direct connection string. Added course pruning logic in seed script to maintain database integrity. Updated faculty and registration forms to include additional fields for better data capture. Refined layout components for improved user experience and responsiveness.
This commit is contained in:
1 parent
0874b968ba
commit
6909a935fd
74 files changed
+1506
-420
No files matched your search
+108
@@ -0,0 +1,108 @@
|
||||
[
|
||||
{
|
||||
"label": "json",
|
||||
"kind": 6,
|
||||
"isExtraImport": true,
|
||||
"importPath": "json",
|
||||
"description": "json",
|
||||
"detail": "json",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "Image",
|
||||
"importPath": "PIL",
|
||||
"description": "PIL",
|
||||
"isExtraImport": true,
|
||||
"detail": "PIL",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "Path",
|
||||
"importPath": "pathlib",
|
||||
"description": "pathlib",
|
||||
"isExtraImport": true,
|
||||
"detail": "pathlib",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "_Known",
|
||||
"kind": 6,
|
||||
"importPath": "node_modules.flatted.python.flatted",
|
||||
"description": "node_modules.flatted.python.flatted",
|
||||
"peekOfCode": "class _Known:\n def __init__(self):\n self.key = []\n self.value = []\nclass _String:\n def __init__(self, value):\n self.value = value\ndef _array_keys(value):\n for i in range(len(value)):\n yield i",
|
||||
"detail": "node_modules.flatted.python.flatted",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "_String",
|
||||
"kind": 6,
|
||||
"importPath": "node_modules.flatted.python.flatted",
|
||||
"description": "node_modules.flatted.python.flatted",
|
||||
"peekOfCode": "class _String:\n def __init__(self, value):\n self.value = value\ndef _array_keys(value):\n for i in range(len(value)):\n yield i\ndef _object_keys(value):\n for key in value:\n yield key\ndef _is_array(value):",
|
||||
"detail": "node_modules.flatted.python.flatted",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "parse",
|
||||
"kind": 2,
|
||||
"importPath": "node_modules.flatted.python.flatted",
|
||||
"description": "node_modules.flatted.python.flatted",
|
||||
"peekOfCode": "def parse(value, *args, **kwargs):\n json = _json.loads(value, *args, **kwargs)\n wrapped = []\n for value in json:\n wrapped.append(_wrap(value))\n input = []\n for value in wrapped:\n if isinstance(value, _String):\n input.append(value.value)\n else:",
|
||||
"detail": "node_modules.flatted.python.flatted",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "stringify",
|
||||
"kind": 2,
|
||||
"importPath": "node_modules.flatted.python.flatted",
|
||||
"description": "node_modules.flatted.python.flatted",
|
||||
"peekOfCode": "def stringify(value, *args, **kwargs):\n known = _Known()\n input = []\n output = []\n i = int(_index(known, input, value))\n while i < len(input):\n output.append(_transform(known, input, input[i]))\n i += 1\n return _json.dumps(output, *args, **kwargs)",
|
||||
"detail": "node_modules.flatted.python.flatted",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "to_white_transparent",
|
||||
"kind": 2,
|
||||
"importPath": "scripts.make-white-logo",
|
||||
"description": "scripts.make-white-logo",
|
||||
"peekOfCode": "def to_white_transparent(src: Path, dest: Path) -> None:\n img = Image.open(src).convert(\"RGBA\")\n pixels = list(img.getdata())\n out = []\n for r, g, b, a in pixels:\n lum = (r + g + b) // 3\n out.append((255, 255, 255, lum if a > 0 else 0))\n img.putdata(out)\n dest.parent.mkdir(parents=True, exist_ok=True)\n img.save(dest, \"PNG\")",
|
||||
"detail": "scripts.make-white-logo",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "root",
|
||||
"kind": 5,
|
||||
"importPath": "scripts.make-white-logo",
|
||||
"description": "scripts.make-white-logo",
|
||||
"peekOfCode": "root = Path(r\"e:\\TeamProjects\\AUT\\ManagementWebsite\")\nsrc = root / \"public\" / \"brand\" / \"amirkabir.png\"\nbackup = root / \"public\" / \"brand\" / \"amirkabir-black-bg.png\"\nif not backup.exists():\n Image.open(src).save(backup)\n print(f\"backup {backup}\")\nto_white_transparent(backup, src)\nto_white_transparent(backup, root / \"src\" / \"app\" / \"icon.png\")\nto_white_transparent(backup, root / \"src\" / \"app\" / \"apple-icon.png\")\nto_white_transparent(backup, root / \"public\" / \"favicon.png\")",
|
||||
"detail": "scripts.make-white-logo",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "src",
|
||||
"kind": 5,
|
||||
"importPath": "scripts.make-white-logo",
|
||||
"description": "scripts.make-white-logo",
|
||||
"peekOfCode": "src = root / \"public\" / \"brand\" / \"amirkabir.png\"\nbackup = root / \"public\" / \"brand\" / \"amirkabir-black-bg.png\"\nif not backup.exists():\n Image.open(src).save(backup)\n print(f\"backup {backup}\")\nto_white_transparent(backup, src)\nto_white_transparent(backup, root / \"src\" / \"app\" / \"icon.png\")\nto_white_transparent(backup, root / \"src\" / \"app\" / \"apple-icon.png\")\nto_white_transparent(backup, root / \"public\" / \"favicon.png\")\nimg = Image.open(src).convert(\"RGBA\")",
|
||||
"detail": "scripts.make-white-logo",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "backup",
|
||||
"kind": 5,
|
||||
"importPath": "scripts.make-white-logo",
|
||||
"description": "scripts.make-white-logo",
|
||||
"peekOfCode": "backup = root / \"public\" / \"brand\" / \"amirkabir-black-bg.png\"\nif not backup.exists():\n Image.open(src).save(backup)\n print(f\"backup {backup}\")\nto_white_transparent(backup, src)\nto_white_transparent(backup, root / \"src\" / \"app\" / \"icon.png\")\nto_white_transparent(backup, root / \"src\" / \"app\" / \"apple-icon.png\")\nto_white_transparent(backup, root / \"public\" / \"favicon.png\")\nimg = Image.open(src).convert(\"RGBA\")\nimg.save(root / \"public\" / \"favicon.ico\", format=\"ICO\", sizes=[(32, 32), (16, 16)])",
|
||||
"detail": "scripts.make-white-logo",
|
||||
"documentation": {}
|
||||
},
|
||||
{
|
||||
"label": "img",
|
||||
"kind": 5,
|
||||
"importPath": "scripts.make-white-logo",
|
||||
"description": "scripts.make-white-logo",
|
||||
"peekOfCode": "img = Image.open(src).convert(\"RGBA\")\nimg.save(root / \"public\" / \"favicon.ico\", format=\"ICO\", sizes=[(32, 32), (16, 16)])\nprint(\"done\")",
|
||||
"detail": "scripts.make-white-logo",
|
||||
"documentation": {}
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user