Skip to content

Commit

Permalink
- Fixed #152
Browse files Browse the repository at this point in the history
    - Now Caldav registration is done via a POST request.
- Fixed problems of duplication of calendars post adding a new CalDAV account.
- Fixed list of caldav accounts not updating after adding or deleting a caldav account.
- Fixed Force sync button's function in /accounts/caldav page.
- Logout now deletes the local dexie db for security.
  • Loading branch information
aa-tree committed Mar 2, 2024
1 parent 04976a7 commit 9d1fee9
Show file tree
Hide file tree
Showing 16 changed files with 466 additions and 323 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ v0.4.5
- Changed button size in AddTask bar.
-Dark mode
- Now has dark mode for users of the vampiric persuasion.
- Fixed #152
- Now Caldav registration is done via a POST request.
- Fixed problems of duplication of calendars post adding a new CalDAV account.
- Fixed list of caldav accounts not updating after adding or deleting a caldav account.
- Fixed Force sync button's function in /accounts/caldav page.
- Logout now deletes the local dexie db for security.

v0.4.4
- Version bump to 0.4.4
Expand Down
9 changes: 6 additions & 3 deletions COMMITMESSAGE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Dark mode
- Now has dark mode for users of the vampiric persuasion.
- Partially completes #137
- Fixed #152
- Now Caldav registration is done via a POST request.
- Fixed problems of duplication of calendars post adding a new CalDAV account.
- Fixed list of caldav accounts not updating after adding or deleting a caldav account.
- Fixed Force sync button's function in /accounts/caldav page.
- Logout now deletes the local dexie db for security.
105 changes: 105 additions & 0 deletions package-lock.json

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

1 change: 0 additions & 1 deletion src/components/common/AddTask/AddInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ type ChildProps = {
}
const AddInfo: FC<ChildProps> = () => {
const [showModal, setShow]=useState(false)

const onClickInfo = () =>{
setShow(true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,18 @@ export default class AddCaldavAccount extends Component{
async makeServerRequest()
{
this.setState({requestPending: true})
const url_api=getAPIURL()+"v2/caldav/register?url="+ addTrailingSlashtoURL(this.state.serverURL)+"&&username="+this.state.username+"&&password="+this.state.password+"&&accountname="+this.state.accountName
const url_api=getAPIURL()+"v2/caldav/register"
const authorisationData=await getAuthenticationHeadersforUser()

const requestOptions =
{
method: 'GET',
url: this.state.serverURL,
username: this.state.username,
password: this.state.password,
accountname: this.state.accountName,
headers: new Headers({'authorization': authorisationData}),
method: 'POST',
body: JSON.stringify({url: this.state.serverURL,
username: this.state.username,
password: this.state.password,
accountname: this.state.accountName,
}),
headers: new Headers({'authorization': authorisationData, 'Content-Type':'application/json'}),
}

return new Promise( (resolve, reject) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface functionalProps {
caldavAccountDeleteClicked: Function;
context: any;
makeDeleteRequest: Function;
updated: any
}

// Generated by https://quicktype.io
Expand Down Expand Up @@ -58,7 +59,7 @@ export const CaldavAccountTable = (props: functionalProps) => {
getCalDAVSummaryFromDexie().then(response => {
setCalDAVAccounts(response)
})
}, [updated])
}, [updated, props.updated])

function makeDeleteRequest(calToDelete) {
setShowDeleteAccountModal(false)
Expand Down
Loading

0 comments on commit 9d1fee9

Please sign in to comment.