kanban board make with vanila js
drag and drop features, crud operations and ect
live preview: https://vanila-kanban.vercel.app/index.html?workspaceID=5nabaxci-XwKg-g1Kq-LNlq
refactor + workspace features
fix: cant delete workspace when there is only one
'kanban' is set in localstorage
JSON.parse(localStorage.getItem('kanban'))
returns
{
workspaces: {
workspaceID: string,
workspaceName: string,
sections: {
sectionID: string,
sectionName: string,
todos: {
todoID: string,
todoName: string,
description: string,
}[]
}[]
}[]
}
generateUniqueID()
=> returns unique id; used to set pk for workspace, section, and todos- ect...
getKanbanData()
=> gets kaban data from localStorage then returns data parsed to an js objectupdateKanbanData(updatedKanbanData)
=> takes an object of workspaces, stringifies then updates to localstorage
function modifiesKanbanData() {
const DATA = getKanbanData();
// modify data...
updateKanbanData();
}