This commit is contained in:
2026-03-26 14:12:15 -06:00
parent 4d934f27f3
commit da66872690
3 changed files with 24 additions and 5 deletions

View File

@@ -21,3 +21,5 @@ courses:
name: adv-frontend-old name: adv-frontend-old
- path: ./1810/2026-spring-alex/modules/ - path: ./1810/2026-spring-alex/modules/
name: Web Intro name: Web Intro
- path: ./1810/2025-spring-alex/in-person/
name: web-2025

View File

@@ -2,3 +2,21 @@
### ###
GET https://snow.instructure.com/api/v1/courses/1155200/tabs GET https://snow.instructure.com/api/v1/courses/1155200/tabs
Authorization: Bearer {{$dotenv CANVAS_TOKEN}} Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
###
GET https://snow.instructure.com/api/v1/users/self
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
# https://developerdocs.instructure.com/services/canvas/TokensController/create
###
POST https://snow.instructure.com/api/v1/users/self/tokens
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
Content-Type: application/json
{
"token": {
"purpose": "canvas-management-test",
"expires_at": "2027-01-01T00:00:00Z"
}
}

View File

@@ -12,12 +12,11 @@ export interface DraggingContextInterface {
itemDropOnDay: (e: DragEvent, droppedOnDay: string) => void; itemDropOnDay: (e: DragEvent, droppedOnDay: string) => void;
itemDropOnModule: (e: DragEvent, moduleName: string) => void; itemDropOnModule: (e: DragEvent, moduleName: string) => void;
} }
const defaultDraggingValue: DraggingContextInterface = { export const DraggingContext =
createContext<DraggingContextInterface>({
itemDropOnDay: () => {}, itemDropOnDay: () => {},
itemDropOnModule: () => {}, itemDropOnModule: () => {},
}; });
export const DraggingContext =
createContext<DraggingContextInterface>(defaultDraggingValue);
export function useDraggingContext() { export function useDraggingContext() {
return useContext(DraggingContext); return useContext(DraggingContext);