-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve Invitations API and add new Frontend components
- Improved the `get` method in `InvitationsListAPI` to simplify code and provide a more concise response. - Added `loads` and `dumps` functions from the `json` module for better serialization of API responses. - Updated `package-lock.json` and `package.json` in the Frontend to add the new Vue packages `vue-collapsed`. - Added new SCSS animations for fade, fade-fast, fade-between, collapse, expand, and slide-fade. - Created a new component `OptionalInput.vue` in the FormKit directory. - Deleted the `TooltipInput.vue` component. - Added a new form `InviteForm.vue` with various input fields and advanced options.
- Loading branch information
1 parent
ace59c4
commit a236a09
Showing
25 changed files
with
891 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<template> | ||
<label :class="context.classes.label" :for="context.id"> | ||
<span class="mr-1">{{ context.label }}</span> | ||
<span class="mr-1 text-gray-500">(optional)</span> | ||
</label> | ||
<input type="text" v-bind="attrs" :class="context.classes.input" :id="context.id" /> | ||
</template> | ||
|
||
<style lang="scss"> | ||
.formkit-outer[data-type="optionalInput"] > .formkit-wrapper > label { | ||
display: none; | ||
} | ||
</style> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from "vue"; | ||
// Define the props type | ||
interface MyProps { | ||
context: { | ||
id: string; | ||
classes: { | ||
input: string; | ||
label: string; | ||
}; | ||
label: string; | ||
value: string; | ||
node: { | ||
input: (value: string) => void; | ||
}; | ||
required: boolean; | ||
attrs: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
} | ||
// Create the component | ||
export default defineComponent({ | ||
props: { | ||
context: { | ||
type: Object as () => MyProps["context"], | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
attrs() { | ||
return Object.keys(this.context.attrs).reduce( | ||
(acc, key) => { | ||
acc[key] = this.context.attrs[key]; | ||
return acc; | ||
}, | ||
{} as { [key: string]: string }, | ||
); | ||
}, | ||
}, | ||
mounted() { | ||
// Set the initial value | ||
// this.tmp = this.context.value; | ||
console.log("this.context", this.context); | ||
}, | ||
}); | ||
</script> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.