Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fc39ce369 |
55
.vscode/launch.json
vendored
@ -1,21 +1,38 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "FastAPI: Uvicorn",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"module": "uvicorn",
|
||||
"args": [
|
||||
"app.main:app",
|
||||
"--reload"
|
||||
],
|
||||
"jinja": true,
|
||||
"justMyCode": true,
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/app",
|
||||
}
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Server",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"module": "uvicorn",
|
||||
"args": [
|
||||
"app.main:app",
|
||||
"--reload"
|
||||
],
|
||||
"jinja": true,
|
||||
"justMyCode": true,
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/app",
|
||||
"DATA_DIR": "${workspaceFolder}/app/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"name": "Client",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceFolder}/frontend",
|
||||
"runtimeExecutable": "npm",
|
||||
"runtimeArgs": ["run", "dev"],
|
||||
"env": {
|
||||
"/data": "${workspaceFolder}/app/data",
|
||||
}
|
||||
}
|
||||
],
|
||||
"compounds": [
|
||||
{
|
||||
"name": "Run FastAPI + Svelte",
|
||||
"configurations": ["Server", "Client"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
362
app/data/dropout.json
Normal file
@ -0,0 +1,362 @@
|
||||
[
|
||||
{
|
||||
"SHOW": "Game Changer",
|
||||
"URL": "https://www.dropout.tv/game-changer",
|
||||
"LINK": "game-changer",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Game_Changer.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Cloudward, Ho!",
|
||||
"URL": "https://www.dropout.tv/dimension-20-cloudward-ho",
|
||||
"LINK": "dimension-20-cloudward-ho",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Cloudward_Ho.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20's Adventuring Party",
|
||||
"URL": "https://www.dropout.tv/dimension-20-s-adventuring-party",
|
||||
"LINK": "dimension-20-s-adventuring-party",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20s_Adventuring_Party.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dirty Laundry",
|
||||
"URL": "https://www.dropout.tv/dirty-laundry",
|
||||
"LINK": "dirty-laundry",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dirty_Laundry.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Parlor Room",
|
||||
"URL": "https://www.dropout.tv/parlor-room",
|
||||
"LINK": "parlor-room",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Parlor_Room.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Smartypants",
|
||||
"URL": "https://www.dropout.tv/smartypants",
|
||||
"LINK": "smartypants",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Smartypants.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Adventuring Academy",
|
||||
"URL": "https://www.dropout.tv/adventuring-academy",
|
||||
"LINK": "adventuring-academy",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Adventuring_Academy.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20",
|
||||
"URL": "https://www.dropout.tv/dimension-20",
|
||||
"LINK": "dimension-20",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20 Live",
|
||||
"URL": "https://www.dropout.tv/dimension-20-live",
|
||||
"LINK": "dimension-20-live",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Live.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Fatal Decision",
|
||||
"URL": "https://www.dropout.tv/fatal-decision",
|
||||
"LINK": "fatal-decision",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Fatal_Decision.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Um, Actually",
|
||||
"URL": "https://www.dropout.tv/um-actually",
|
||||
"LINK": "um-actually",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Um_Actually.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Very Important People",
|
||||
"URL": "https://www.dropout.tv/very-important-people",
|
||||
"LINK": "very-important-people",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Very_Important_People.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Titan Takedown",
|
||||
"URL": "https://www.dropout.tv/dimension-20-titan-takedown",
|
||||
"LINK": "dimension-20-titan-takedown",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Titan_Takedown.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Make Some Noise",
|
||||
"URL": "https://www.dropout.tv/make-some-noise",
|
||||
"LINK": "make-some-noise",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Make_Some_Noise.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Dungeons and Drag Queens",
|
||||
"URL": "https://www.dropout.tv/dimension-20-dungeons-and-drag-queens",
|
||||
"LINK": "dimension-20-dungeons-and-drag-queens",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Dungeons_and_Drag_Queens.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Nobody Asked",
|
||||
"URL": "https://www.dropout.tv/nobody-asked",
|
||||
"LINK": "nobody-asked",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Nobody_Asked.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Game Changer Animated",
|
||||
"URL": "https://www.dropout.tv/game-changer-animated",
|
||||
"LINK": "game-changer-animated",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Game_Changer_Animated.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20 Live: Time Quangle",
|
||||
"URL": "https://www.dropout.tv/dimension-20-live-time-quangle",
|
||||
"LINK": "dimension-20-live-time-quangle",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Live_Time_Quangle.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Gastronauts",
|
||||
"URL": "https://www.dropout.tv/gastronauts",
|
||||
"LINK": "gastronauts",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Gastronauts.png"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Misfits and Magic",
|
||||
"URL": "https://www.dropout.tv/dimension-20-misfits-and-magic",
|
||||
"LINK": "dimension-20-misfits-and-magic",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Misfits_and_Magic.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Breaking News: No Laugh Newsroom",
|
||||
"URL": "https://www.dropout.tv/breaking-news-no-laugh-newsroom",
|
||||
"LINK": "breaking-news-no-laugh-newsroom",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Breaking_News_No_Laugh_Newsroom.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Mon\u00e9t's Slumber Party",
|
||||
"URL": "https://www.dropout.tv/monet-s-slumber-party",
|
||||
"LINK": "monet-s-slumber-party",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Monts_Slumber_Party.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Never Stop Blowing Up",
|
||||
"URL": "https://www.dropout.tv/dimension-20-never-stop-blowing-up",
|
||||
"LINK": "dimension-20-never-stop-blowing-up",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Never_Stop_Blowing_Up.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Thousandaires",
|
||||
"URL": "https://www.dropout.tv/thousandaires",
|
||||
"LINK": "thousandaires",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Thousandaires.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Fantasy High Junior Year",
|
||||
"URL": "https://www.dropout.tv/dimension-20-fantasy-high-junior-year",
|
||||
"LINK": "dimension-20-fantasy-high-junior-year",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Fantasy_High_Junior_Year.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Burrow's End",
|
||||
"URL": "https://www.dropout.tv/dimension-20-burrow-s-end",
|
||||
"LINK": "dimension-20-burrow-s-end",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Burrows_End.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Play It By Ear",
|
||||
"URL": "https://www.dropout.tv/play-it-by-ear",
|
||||
"LINK": "play-it-by-ear",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Play_It_By_Ear.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Mentopolis",
|
||||
"URL": "https://www.dropout.tv/dimension-20-mentopolis",
|
||||
"LINK": "dimension-20-mentopolis",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Mentopolis.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: The Ravening War",
|
||||
"URL": "https://www.dropout.tv/dimension-20-the-ravening-war",
|
||||
"LINK": "dimension-20-the-ravening-war",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_The_Ravening_War.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Game Changer: Battle Royale",
|
||||
"URL": "https://www.dropout.tv/game-changer-battle-royale",
|
||||
"LINK": "game-changer-battle-royale",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Game_Changer_Battle_Royale.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Neverafter",
|
||||
"URL": "https://www.dropout.tv/dimension-20-neverafter",
|
||||
"LINK": "dimension-20-neverafter",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Neverafter.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: A Court of Fey & Flowers",
|
||||
"URL": "https://www.dropout.tv/dimension-20-a-court-of-fey-flowers",
|
||||
"LINK": "dimension-20-a-court-of-fey-flowers",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_A_Court_of_Fey__Flowers.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Fantasy High",
|
||||
"URL": "https://www.dropout.tv/dimension-20-fantasy-high",
|
||||
"LINK": "dimension-20-fantasy-high",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Fantasy_High.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: A Crown Of Candy",
|
||||
"URL": "https://www.dropout.tv/dimension-20-a-crown-of-candy",
|
||||
"LINK": "dimension-20-a-crown-of-candy",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_A_Crown_Of_Candy.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Coffin Run",
|
||||
"URL": "https://www.dropout.tv/dimension-20-coffin-run",
|
||||
"LINK": "dimension-20-coffin-run",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Coffin_Run.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Total Forgiveness",
|
||||
"URL": "https://www.dropout.tv/total-forgiveness",
|
||||
"LINK": "total-forgiveness",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Total_Forgiveness.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20 [Audio Only]",
|
||||
"URL": "https://www.dropout.tv/dimension-20-audio-only",
|
||||
"LINK": "dimension-20-audio-only",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Audio_Only.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: A Starstruck Odyssey",
|
||||
"URL": "https://www.dropout.tv/dimension-20-a-starstruck-odyssey",
|
||||
"LINK": "dimension-20-a-starstruck-odyssey",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_A_Starstruck_Odyssey.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Bad Internet",
|
||||
"URL": "https://www.dropout.tv/bad-internet",
|
||||
"LINK": "bad-internet",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Bad_Internet.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Shriek Week",
|
||||
"URL": "https://www.dropout.tv/dimension-20-shriek-week",
|
||||
"LINK": "dimension-20-shriek-week",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Shriek_Week.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20 Animated",
|
||||
"URL": "https://www.dropout.tv/dimension-20-animated",
|
||||
"LINK": "dimension-20-animated",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Animated.png"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: The Seven",
|
||||
"URL": "https://www.dropout.tv/dimension-20-the-seven",
|
||||
"LINK": "dimension-20-the-seven",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_The_Seven.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Mice & Murder",
|
||||
"URL": "https://www.dropout.tv/mice-murder",
|
||||
"LINK": "mice-murder",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Mice__Murder.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Troopers: Animated",
|
||||
"URL": "https://www.dropout.tv/troopers-animated",
|
||||
"LINK": "troopers-animated",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Troopers_Animated.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Erotic Clubhouse",
|
||||
"URL": "https://www.dropout.tv/erotic-clubhouse",
|
||||
"LINK": "erotic-clubhouse",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Erotic_Clubhouse.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: The Unsleeping City",
|
||||
"URL": "https://www.dropout.tv/dimension-20-the-unsleeping-city",
|
||||
"LINK": "dimension-20-the-unsleeping-city",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_The_Unsleeping_City.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Fantasy High: Extra Credit",
|
||||
"URL": "https://www.dropout.tv/fantasy-high-extra-credit",
|
||||
"LINK": "fantasy-high-extra-credit",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Fantasy_High_Extra_Credit.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Escape From the Bloodkeep",
|
||||
"URL": "https://www.dropout.tv/dimension-20-escape-from-the-bloodkeep",
|
||||
"LINK": "dimension-20-escape-from-the-bloodkeep",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Escape_From_the_Bloodkeep.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Tiny Heist",
|
||||
"URL": "https://www.dropout.tv/dimension-20-tiny-heist",
|
||||
"LINK": "dimension-20-tiny-heist",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Tiny_Heist.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Dimension 20: Leviathan",
|
||||
"URL": "https://www.dropout.tv/dimension-20-leviathan",
|
||||
"LINK": "dimension-20-leviathan",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Dimension_20_Leviathan.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Ultramechatron Team Go!",
|
||||
"URL": "https://www.dropout.tv/ultramechatron-team-go-1",
|
||||
"LINK": "ultramechatron-team-go-1",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Ultramechatron_Team_Go.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Total Forgiveness: Early Payoff",
|
||||
"URL": "https://www.dropout.tv/total-forgiveness-early-payoff",
|
||||
"LINK": "total-forgiveness-early-payoff",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Total_Forgiveness_Early_Payoff.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Troopers",
|
||||
"URL": "https://www.dropout.tv/troopers-1",
|
||||
"LINK": "troopers-1",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Troopers.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "WTF 101",
|
||||
"URL": "https://www.dropout.tv/wtf-101",
|
||||
"LINK": "wtf-101",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/WTF_101.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "What the Facts 101",
|
||||
"URL": "https://www.dropout.tv/what-the-facts-101",
|
||||
"LINK": "what-the-facts-101",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/What_the_Facts_101.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Cartoon Hell",
|
||||
"URL": "https://www.dropout.tv/cartoon-hell",
|
||||
"LINK": "cartoon-hell",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Cartoon_Hell.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Paranoia",
|
||||
"URL": "https://www.dropout.tv/paranoia",
|
||||
"LINK": "paranoia",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Paranoia.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Where in the Eff is Sarah Cincinnati",
|
||||
"URL": "https://www.dropout.tv/where-in-the-eff-is-sarah-cincinnati",
|
||||
"LINK": "where-in-the-eff-is-sarah-cincinnati",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Where_in_the_Eff_is_Sarah_Cincinnati.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Gods of Food",
|
||||
"URL": "https://www.dropout.tv/gods-of-food",
|
||||
"LINK": "gods-of-food",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Gods_of_Food.jpg"
|
||||
},
|
||||
{
|
||||
"SHOW": "Kingpin Katie",
|
||||
"URL": "https://www.dropout.tv/kingpin-katie",
|
||||
"LINK": "kingpin-katie",
|
||||
"POSTER": "/Users/tyler/Documents/GitHub/syllabus/app/data/posters/Kingpin_Katie.jpg"
|
||||
}
|
||||
]
|
||||
45
app/data/logs/syllabus.log
Normal file
@ -0,0 +1,45 @@
|
||||
2025-07-26 06:43:39,675 - INFO - request_client=127.0.0.1:61250, request_method=GET, request_url=http://127.0.0.1:8000/, status_code=500
|
||||
2025-07-26 06:43:39,782 - INFO - request_client=127.0.0.1:61250, request_method=GET, request_url=http://127.0.0.1:8000/favicon.ico, status_code=404
|
||||
2025-07-26 06:43:44,039 - INFO - request_client=127.0.0.1:61250, request_method=GET, request_url=http://127.0.0.1:8000/docs, status_code=200
|
||||
2025-07-26 06:43:44,297 - INFO - request_client=127.0.0.1:61250, request_method=GET, request_url=http://127.0.0.1:8000/openapi.json, status_code=200
|
||||
2025-07-26 06:43:49,749 - INFO - request_client=127.0.0.1:61258, request_method=GET, request_url=http://127.0.0.1:8000/docs, status_code=200
|
||||
2025-07-26 06:43:49,811 - INFO - request_client=127.0.0.1:61258, request_method=GET, request_url=http://127.0.0.1:8000/openapi.json, status_code=200
|
||||
2025-07-26 07:01:30,665 - INFO - request_client=127.0.0.1:62205, request_method=GET, request_url=http://127.0.0.1:8000/dropout, status_code=500
|
||||
2025-07-26 07:13:42,415 - INFO - request_client=127.0.0.1:62742, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:13:59,487 - INFO - request_client=127.0.0.1:62744, request_method=GET, request_url=http://127.0.0.1:8000/dropout/update, status_code=500
|
||||
2025-07-26 07:16:10,070 - INFO - request_client=127.0.0.1:62896, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:16:17,027 - INFO - request_client=127.0.0.1:62896, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:16:52,735 - INFO - request_client=127.0.0.1:62997, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:17:39,236 - INFO - request_client=127.0.0.1:63017, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:18:32,238 - INFO - request_client=127.0.0.1:63094, request_method=GET, request_url=http://127.0.0.1:8000/.well-known/appspecific/com.chrome.devtools.json, status_code=404
|
||||
2025-07-26 07:20:15,403 - INFO - request_client=127.0.0.1:63209, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:20:39,381 - INFO - request_client=127.0.0.1:63215, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:22:18,292 - INFO - request_client=127.0.0.1:63367, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:23:42,194 - INFO - request_client=127.0.0.1:63467, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:25:06,534 - INFO - request_client=127.0.0.1:63502, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:26:26,274 - INFO - request_client=127.0.0.1:63508, request_method=GET, request_url=http://127.0.0.1:8000/dropout/update, status_code=200
|
||||
2025-07-26 07:26:31,503 - INFO - request_client=127.0.0.1:63510, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:27:44,038 - INFO - request_client=127.0.0.1:63534, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:28:11,207 - INFO - request_client=127.0.0.1:63544, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:28:17,562 - INFO - request_client=127.0.0.1:63551, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:28:21,421 - INFO - request_client=127.0.0.1:63556, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:31:17,961 - INFO - request_client=127.0.0.1:63938, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:33:19,790 - INFO - request_client=127.0.0.1:63978, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:33:32,260 - INFO - request_client=127.0.0.1:64042, request_method=GET, request_url=http://127.0.0.1:8000/dropout/series, status_code=200
|
||||
2025-07-26 07:34:21,229 - INFO - request_client=127.0.0.1:64131, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-26 08:06:05,007 - INFO - request_client=127.0.0.1:65325, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:11:26,063 - INFO - request_client=127.0.0.1:54260, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:15:30,578 - INFO - request_client=127.0.0.1:54329, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:16:10,175 - INFO - request_client=127.0.0.1:54340, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:16:10,251 - INFO - request_client=127.0.0.1:54340, request_method=GET, request_url=http://localhost:8000/favicon.ico, status_code=404
|
||||
2025-07-27 13:16:54,705 - INFO - request_client=127.0.0.1:54358, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:17:51,810 - INFO - request_client=127.0.0.1:54370, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:18:27,819 - INFO - request_client=127.0.0.1:54382, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:18:29,264 - INFO - request_client=127.0.0.1:54382, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:18:32,449 - INFO - request_client=127.0.0.1:54382, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:18:33,023 - INFO - request_client=127.0.0.1:54382, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:18:33,608 - INFO - request_client=127.0.0.1:54382, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 13:28:36,283 - INFO - request_client=127.0.0.1:54475, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 17:55:59,835 - INFO - request_client=127.0.0.1:60472, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 19:20:51,674 - INFO - request_client=127.0.0.1:49204, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
2025-07-27 20:23:38,460 - INFO - request_client=127.0.0.1:50407, request_method=GET, request_url=http://localhost:8000/dropout/series, status_code=200
|
||||
BIN
app/data/posters/Adventuring_Academy.jpg
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
app/data/posters/Bad_Internet.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
app/data/posters/Breaking_News_No_Laugh_Newsroom.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
app/data/posters/Cartoon_Hell.jpg
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
app/data/posters/Dimension_20.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
app/data/posters/Dimension_20_A_Court_of_Fey__Flowers.jpg
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
app/data/posters/Dimension_20_A_Crown_Of_Candy.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
app/data/posters/Dimension_20_A_Starstruck_Odyssey.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
app/data/posters/Dimension_20_Animated.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
app/data/posters/Dimension_20_Audio_Only.jpg
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
app/data/posters/Dimension_20_Burrows_End.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
app/data/posters/Dimension_20_Cloudward_Ho.jpg
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
app/data/posters/Dimension_20_Coffin_Run.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
app/data/posters/Dimension_20_Dungeons_and_Drag_Queens.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
app/data/posters/Dimension_20_Escape_From_the_Bloodkeep.jpg
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
app/data/posters/Dimension_20_Fantasy_High.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
app/data/posters/Dimension_20_Fantasy_High_Junior_Year.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
app/data/posters/Dimension_20_Leviathan.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
app/data/posters/Dimension_20_Live.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
app/data/posters/Dimension_20_Live_Time_Quangle.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
app/data/posters/Dimension_20_Mentopolis.jpg
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
app/data/posters/Dimension_20_Mice__Murder.jpg
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
app/data/posters/Dimension_20_Misfits_and_Magic.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
app/data/posters/Dimension_20_Never_Stop_Blowing_Up.jpg
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
app/data/posters/Dimension_20_Neverafter.jpg
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
app/data/posters/Dimension_20_Shriek_Week.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
app/data/posters/Dimension_20_The_Ravening_War.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
app/data/posters/Dimension_20_The_Seven.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
app/data/posters/Dimension_20_The_Unsleeping_City.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app/data/posters/Dimension_20_Tiny_Heist.jpg
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
app/data/posters/Dimension_20_Titan_Takedown.jpg
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
app/data/posters/Dimension_20s_Adventuring_Party.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
app/data/posters/Dirty_Laundry.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
app/data/posters/Erotic_Clubhouse.jpg
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
app/data/posters/Fantasy_High_Extra_Credit.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
app/data/posters/Fatal_Decision.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
app/data/posters/Game_Changer.jpg
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
app/data/posters/Game_Changer_Animated.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
app/data/posters/Game_Changer_Battle_Royale.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
app/data/posters/Gastronauts.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
app/data/posters/Gods_of_Food.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/data/posters/Kingpin_Katie.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
app/data/posters/Make_Some_Noise.jpg
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
app/data/posters/Monts_Slumber_Party.jpg
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
app/data/posters/Nobody_Asked.jpg
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
app/data/posters/Paranoia.jpg
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
app/data/posters/Parlor_Room.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
app/data/posters/Play_It_By_Ear.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
app/data/posters/Smartypants.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
app/data/posters/Thousandaires.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
app/data/posters/Total_Forgiveness.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
app/data/posters/Total_Forgiveness_Early_Payoff.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/data/posters/Troopers.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
app/data/posters/Troopers_Animated.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
app/data/posters/Ultramechatron_Team_Go.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/data/posters/Um_Actually.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
app/data/posters/Very_Important_People.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
app/data/posters/WTF_101.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
app/data/posters/What_the_Facts_101.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
app/data/posters/Where_in_the_Eff_is_Sarah_Cincinnati.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
@ -7,6 +7,8 @@ logger = logging.getLogger("syllabus")
|
||||
# Global or outer-scope tracking dictionary
|
||||
last_logged_percent = {}
|
||||
|
||||
DATA_DIR = os.getenv("DATA_DIR", "/data")
|
||||
|
||||
def my_hook(d): #logging hook
|
||||
status = d.get('status')
|
||||
filename = d.get('filename')
|
||||
@ -70,7 +72,7 @@ class grab():
|
||||
seasons = [item.replace(url+'/season:', '') for item in option_values]
|
||||
return seasons
|
||||
|
||||
def poster(url, name, force_download, save_dir='/data/posters/'):
|
||||
def poster(url, name, force_download, save_dir=f'{DATA_DIR}/posters/'):
|
||||
# Use alt for filename if available, fallback to a generic name
|
||||
alt_value = name
|
||||
path = urlsplit(url).path
|
||||
@ -114,7 +116,7 @@ class ArchiveOnlyYDL(yt_dlp.YoutubeDL):
|
||||
|
||||
class dropout():
|
||||
def archive(show, season):
|
||||
with open('/data/dropout.json', 'r') as json_file:
|
||||
with open(f'{DATA_DIR}/dropout.json', 'r') as json_file:
|
||||
url_mapping = json.load(json_file)
|
||||
|
||||
url = next((item['URL'] for item in url_mapping if item['SHOW'] == show), None)
|
||||
@ -125,8 +127,8 @@ class dropout():
|
||||
|
||||
dl_opts = {
|
||||
'quiet': True,
|
||||
'cookiefile': '/data/dropout.cookies.txt',
|
||||
'download_archive': '/data/logs/dropout.archive.log',
|
||||
'cookiefile': f'{DATA_DIR}/dropout.cookies.txt',
|
||||
'download_archive': f'{DATA_DIR}/logs/dropout.archive.log',
|
||||
'skip_download': True, # Prevent actual downloads
|
||||
}
|
||||
|
||||
@ -138,14 +140,14 @@ class dropout():
|
||||
|
||||
dl_opts = {
|
||||
'progress_hooks': [my_hook],
|
||||
'download_archive': '/data/logs/dropout.archive.log',
|
||||
'download_archive': f'{DATA_DIR}/logs/dropout.archive.log',
|
||||
'format': 'bestvideo+bestaudio/best',
|
||||
'audio_quality': '256K',
|
||||
'paths': {
|
||||
'temp': '/temp',
|
||||
'home': directory,
|
||||
},
|
||||
'cookiefile': '/data/dropout.cookies.txt',
|
||||
'cookiefile': f'{DATA_DIR}/dropout.cookies.txt',
|
||||
'writesubtitles': True,
|
||||
'subtitleslangs': ['en'],
|
||||
'outtmpl': filename_template,
|
||||
@ -160,7 +162,7 @@ class dropout():
|
||||
directory = f"/tv/{show}/{'Specials' if specials else f'Season {season}'}"
|
||||
os.makedirs(directory, exist_ok=True)
|
||||
|
||||
with open('/data/dropout.json', 'r') as json_file:
|
||||
with open(f'{DATA_DIR}/dropout.json', 'r') as json_file:
|
||||
url_mapping = json.load(json_file)
|
||||
|
||||
url = next((item['URL'] for item in url_mapping if item['SHOW'] == show), None)
|
||||
@ -183,7 +185,7 @@ class dropout():
|
||||
ydl_opts = {
|
||||
'quiet': True,
|
||||
'skip_download': True,
|
||||
'cookiefile': '/data/dropout.cookies.txt',
|
||||
'cookiefile': f'{DATA_DIR}/dropout.cookies.txt',
|
||||
}
|
||||
|
||||
# Extract playlist info
|
||||
@ -201,14 +203,14 @@ class dropout():
|
||||
|
||||
dl_opts = {
|
||||
'progress_hooks': [my_hook],
|
||||
'download_archive': '/data/logs/dropout.archive.log',
|
||||
'download_archive': f'{DATA_DIR}/logs/dropout.archive.log',
|
||||
'format': 'bestvideo+bestaudio/best',
|
||||
'audio_quality': '256K',
|
||||
'paths': {
|
||||
'temp': '/temp',
|
||||
'home': directory
|
||||
},
|
||||
'cookiefile': '/data/dropout.cookies.txt',
|
||||
'cookiefile': f'{DATA_DIR}/dropout.cookies.txt',
|
||||
'writesubtitles': True,
|
||||
'subtitleslangs': ['en'],
|
||||
'outtmpl': filename_template,
|
||||
@ -248,7 +250,7 @@ class dropout():
|
||||
|
||||
# Sort the json_data by the 'SHOW' key
|
||||
# sorted_json_data = sorted(json_data, key=lambda x: x['SHOW'])
|
||||
with open('/data/dropout.json', 'w') as json_file:
|
||||
with open(f'{DATA_DIR}/dropout.json', 'w') as json_file:
|
||||
json.dump(json_data, json_file, indent=4)
|
||||
|
||||
class youtube():
|
||||
@ -256,7 +258,7 @@ class youtube():
|
||||
logger.info(f'message=Received download request for {url}.')
|
||||
dl_ops = {
|
||||
'progress_hooks': [my_hook],
|
||||
'download_archive': '/data/logs/youtube.archive.log',
|
||||
'download_archive': f'{DATA_DIR}/logs/youtube.archive.log',
|
||||
'paths': {
|
||||
'temp': '/temp',
|
||||
'home': location
|
||||
@ -285,7 +287,7 @@ class youtube():
|
||||
}]
|
||||
elif dl_ops['paths']['home'] == '/youtube':
|
||||
dl_ops['format'] = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best'
|
||||
dl_ops['cookiefile'] = '/data/youtube.cookies.txt'
|
||||
dl_ops['cookiefile'] = f'{DATA_DIR}/youtube.cookies.txt'
|
||||
else:
|
||||
dl_ops['format'] = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best'
|
||||
|
||||
|
||||
50
app/main.py
@ -8,25 +8,32 @@ from typing import Optional
|
||||
import logging, os
|
||||
from logging.handlers import TimedRotatingFileHandler
|
||||
|
||||
# Ensure log directory exists
|
||||
os.makedirs("/data/logs", exist_ok=True)
|
||||
# Setup paths
|
||||
DATA_DIR = os.getenv("DATA_DIR", "/data")
|
||||
LOGS_DIR = os.path.join(DATA_DIR, "logs")
|
||||
LOG_FILE = os.path.join(LOGS_DIR, "syllabus.log")
|
||||
|
||||
# Setup timed rotating logger
|
||||
# log_path = "/data/logs/syllabus.log"
|
||||
# Ensure logs directory exists
|
||||
os.makedirs(LOGS_DIR, exist_ok=True)
|
||||
|
||||
# Ensure log file exists
|
||||
if not os.path.exists(LOG_FILE):
|
||||
with open(LOG_FILE, "w") as f:
|
||||
f.write("")
|
||||
|
||||
# Set up logger
|
||||
logger = logging.getLogger("syllabus")
|
||||
logger.setLevel(logging.DEBUG)
|
||||
logger.handlers = [] # Remove default handlers
|
||||
|
||||
# Remove any default handlers
|
||||
logger.handlers = []
|
||||
|
||||
# Set up TimedRotatingFileHandler
|
||||
# Use correct path here:
|
||||
handler = TimedRotatingFileHandler(
|
||||
filename="/data/logs/syllabus.log",
|
||||
when="midnight", # Rotate at midnight
|
||||
interval=30, # Every 30 day
|
||||
backupCount=12, # Keep last 7 logs
|
||||
filename=LOG_FILE,
|
||||
when="midnight",
|
||||
interval=30,
|
||||
backupCount=12,
|
||||
encoding="utf-8",
|
||||
utc=False # Use UTC for time reference
|
||||
utc=False
|
||||
)
|
||||
|
||||
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
|
||||
@ -35,15 +42,13 @@ logger.addHandler(handler)
|
||||
|
||||
# App setup
|
||||
app = FastAPI()
|
||||
app.mount("/data", StaticFiles(directory="/data"), name="data")
|
||||
app.mount("/data", StaticFiles(directory=DATA_DIR), name="data")
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
# Optional cache
|
||||
cached_data = None
|
||||
|
||||
|
||||
|
||||
# Middleware
|
||||
@app.middleware("http")
|
||||
async def log_requests(request: Request, call_next):
|
||||
@ -87,21 +92,22 @@ async def dropoutUpdate(force: bool = False):
|
||||
global cached_data
|
||||
try:
|
||||
download.dropout.series(force)
|
||||
with open('/data/dropout.json') as f:
|
||||
with open(f'{DATA_DIR}/dropout.json') as f:
|
||||
cached_data = json.load(f)
|
||||
return JSONResponse(status_code=200, content={"status": "success", "message": "Series grab complete."})
|
||||
except Exception as e:
|
||||
return JSONResponse(status_code=500, content={"status": "error", "message": str(e)})
|
||||
|
||||
@app.get("/dropout/series")
|
||||
async def dropoutSeries():
|
||||
async def dropout_series():
|
||||
global cached_data
|
||||
if cached_data is None:
|
||||
await dropoutUpdate()
|
||||
try:
|
||||
return JSONResponse(content=cached_data)
|
||||
except:
|
||||
return JSONResponse(content={"error": "File not found"}, status_code=404)
|
||||
|
||||
if cached_data is None:
|
||||
raise JSONResponse(status_code=404, detail="No data available")
|
||||
|
||||
return cached_data # FastAPI auto-converts to JSON
|
||||
|
||||
async def get_show_data(show: str, force: bool = False):
|
||||
global cached_data
|
||||
|
||||
24
frontend/.gitignore
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
3
frontend/.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["svelte.svelte-vscode"]
|
||||
}
|
||||
47
frontend/README.md
Normal file
@ -0,0 +1,47 @@
|
||||
# Svelte + Vite
|
||||
|
||||
This template should help get you started developing with Svelte in Vite.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode).
|
||||
|
||||
## Need an official Svelte framework?
|
||||
|
||||
Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also powered by Vite. Deploy anywhere with its serverless-first approach and adapt to various platforms, with out of the box support for TypeScript, SCSS, and Less, and easily-added support for mdsvex, GraphQL, PostCSS, Tailwind CSS, and more.
|
||||
|
||||
## Technical considerations
|
||||
|
||||
**Why use this over SvelteKit?**
|
||||
|
||||
- It brings its own routing solution which might not be preferable for some users.
|
||||
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
|
||||
|
||||
This template contains as little as possible to get started with Vite + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
|
||||
|
||||
Should you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate.
|
||||
|
||||
**Why `global.d.ts` instead of `compilerOptions.types` inside `jsconfig.json` or `tsconfig.json`?**
|
||||
|
||||
Setting `compilerOptions.types` shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding `svelte` and `vite/client` type information.
|
||||
|
||||
**Why include `.vscode/extensions.json`?**
|
||||
|
||||
Other templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project.
|
||||
|
||||
**Why enable `checkJs` in the JS template?**
|
||||
|
||||
It is likely that most cases of changing variable types in runtime are likely to be accidental, rather than deliberate. This provides advanced typechecking out of the box. Should you like to take advantage of the dynamically-typed nature of JavaScript, it is trivial to change the configuration.
|
||||
|
||||
**Why is HMR not preserving my local component state?**
|
||||
|
||||
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state).
|
||||
|
||||
If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
|
||||
|
||||
```js
|
||||
// store.js
|
||||
// An extremely simple external store
|
||||
import { writable } from 'svelte/store'
|
||||
export default writable(0)
|
||||
```
|
||||
13
frontend/index.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Syllabus</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
32
frontend/jsconfig.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "bundler",
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
/**
|
||||
* svelte-preprocess cannot figure out whether you have
|
||||
* a value or a type, so tell TypeScript to enforce using
|
||||
* `import type` instead of `import` for Types.
|
||||
*/
|
||||
"verbatimModuleSyntax": true,
|
||||
"isolatedModules": true,
|
||||
"resolveJsonModule": true,
|
||||
/**
|
||||
* To have warnings / errors of the Svelte compiler at the
|
||||
* correct position, enable source maps by default.
|
||||
*/
|
||||
"sourceMap": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
/**
|
||||
* Typecheck JS in `.svelte` and `.js` files by default.
|
||||
* Disable this if you'd like to use dynamic types.
|
||||
*/
|
||||
"checkJs": true
|
||||
},
|
||||
/**
|
||||
* Use global.d.ts instead of compilerOptions.types
|
||||
* to avoid limiting type declarations.
|
||||
*/
|
||||
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
|
||||
}
|
||||
1310
frontend/package-lock.json
generated
Normal file
19
frontend/package.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
||||
"svelte": "^5.35.5",
|
||||
"vite": "^7.0.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"svelte-boxicons": "^1.0.4"
|
||||
}
|
||||
}
|
||||
1
frontend/public/vite.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
41
frontend/src/App.svelte
Normal file
@ -0,0 +1,41 @@
|
||||
<script>
|
||||
import Navbar from './lib/Navbar.svelte'
|
||||
import { onMount } from 'svelte';
|
||||
import Tile from './lib/Tile.svelte';
|
||||
|
||||
let items = [];
|
||||
let loading = true;
|
||||
let error = null;
|
||||
|
||||
onMount(async () => {
|
||||
try {
|
||||
const res = await fetch('http://localhost:8000/dropout/series');
|
||||
if (!res.ok) throw new Error(`Server responded with ${res.status}`);
|
||||
items = await res.json();
|
||||
} catch (err) {
|
||||
console.error('Fetch error:', err);
|
||||
error = err.message;
|
||||
} finally {
|
||||
loading = false;
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<Navbar />
|
||||
|
||||
{#if loading}
|
||||
<p>Loading...</p>
|
||||
{:else if error}
|
||||
<p style="color: red;">{error}</p>
|
||||
{:else}
|
||||
<div style="display: flex; flex-wrap: wrap;">
|
||||
{#each items as item (item.ID)}
|
||||
<Tile
|
||||
id={item.ID}
|
||||
link={item.LINK}
|
||||
show={item.SHOW}
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
79
frontend/src/app.css
Normal file
@ -0,0 +1,79 @@
|
||||
:root {
|
||||
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: inherit;
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
1
frontend/src/assets/svelte.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="26.6" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 308"><path fill="#FF3E00" d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244"></path><path fill="#FFF" d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
10
frontend/src/lib/Counter.svelte
Normal file
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
let count = $state(0)
|
||||
const increment = () => {
|
||||
count += 1
|
||||
}
|
||||
</script>
|
||||
|
||||
<button onclick={increment}>
|
||||
count is {count}
|
||||
</button>
|
||||
109
frontend/src/lib/Navbar.svelte
Normal file
@ -0,0 +1,109 @@
|
||||
<script>
|
||||
import { BxsHome, BxsInfoCircle, BxsPhone, BxMenu } from 'svelte-boxicons';
|
||||
let isOpen = false;
|
||||
|
||||
const toggleMenu = () => {
|
||||
isOpen = !isOpen;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: #1f1f1f;
|
||||
color: #f5f5f5;
|
||||
z-index: 50;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.75rem 1rem;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #66ccff;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-color: #2a2a2a;
|
||||
padding: 1rem;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
button {
|
||||
background: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.desktop-only {
|
||||
display: flex;
|
||||
}
|
||||
.mobile-only {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.desktop-only {
|
||||
display: none;
|
||||
}
|
||||
.mobile-only {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<nav>
|
||||
<div class="flex items-center gap-2">
|
||||
<BxsHome size="26" color="currentColor" />
|
||||
<span class="font-semibold text-lg">MyApp</span>
|
||||
</div>
|
||||
|
||||
<!-- Desktop Links -->
|
||||
<div class="nav-links desktop-only">
|
||||
<a href="#"><BxsHome size="20" /> Home</a>
|
||||
<a href="#"><BxsInfoCircle size="20" /> About</a>
|
||||
<a href="#"><BxsPhone size="20" /> Contact</a>
|
||||
</div>
|
||||
|
||||
<!-- Mobile toggle -->
|
||||
<button class="mobile-only" on:click={toggleMenu} aria-label="Toggle Menu">
|
||||
<BxMenu size="28" />
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
{#if isOpen}
|
||||
<div class="mobile-menu mobile-only">
|
||||
<a href="#" on:click={() => (isOpen = false)}><BxsHome size="20" /> Home</a>
|
||||
<a href="#" on:click={() => (isOpen = false)}><BxsInfoCircle size="20" /> About</a>
|
||||
<a href="#" on:click={() => (isOpen = false)}><BxsPhone size="20" /> Contact</a>
|
||||
</div>
|
||||
{/if}
|
||||
82
frontend/src/lib/Tile.svelte
Normal file
@ -0,0 +1,82 @@
|
||||
<script>
|
||||
export let id;
|
||||
export let link;
|
||||
// export let poster;
|
||||
export let show;
|
||||
|
||||
let favorited = false;
|
||||
|
||||
function toggleFavorite() {
|
||||
favorited = !favorited;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.tile {
|
||||
width: 400px;
|
||||
margin: 10px;
|
||||
text-align: center;
|
||||
border: 1px solid #030000;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
box-shadow: #00000069 0px 5px 10px;
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tile:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: #00000069 0px 10px 15px;
|
||||
}
|
||||
|
||||
.tile img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tile .title {
|
||||
padding: 10px;
|
||||
color: #eeeeee;
|
||||
background-color: #030000be;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
transform: translateY(100%);
|
||||
opacity: 0;
|
||||
transition: transform 0.3s ease, opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.tile:hover .title {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.favorite-star {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: 8px;
|
||||
font-size: 30px;
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
text-shadow: #000000 1px 1px 10px;
|
||||
}
|
||||
|
||||
.tile:hover .favorite-star {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.favorite-star.favorited {
|
||||
color: gold;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="tile" data-id={id}>
|
||||
<a href={`/show/${link}`}>
|
||||
<!-- <img src={poster} alt={show} /> -->
|
||||
</a>
|
||||
<div class="title">{show}</div>
|
||||
</div>
|
||||
9
frontend/src/main.js
Normal file
@ -0,0 +1,9 @@
|
||||
import { mount } from 'svelte'
|
||||
import './app.css'
|
||||
import App from './App.svelte'
|
||||
|
||||
const app = mount(App, {
|
||||
target: document.getElementById('app'),
|
||||
})
|
||||
|
||||
export default app
|
||||
2
frontend/src/vite-env.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/// <reference types="svelte" />
|
||||
/// <reference types="vite/client" />
|
||||
7
frontend/svelte.config.js
Normal file
@ -0,0 +1,7 @@
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
|
||||
|
||||
export default {
|
||||
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
|
||||
// for more information about preprocessors
|
||||
preprocess: vitePreprocess(),
|
||||
}
|
||||
15
frontend/vite.config.js
Normal file
@ -0,0 +1,15 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/dropout': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/dropout/, '/dropout')
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||