Added Dockerfile and CI/CD for Imapsync
Added Core Functionality for Imapsync
This commit is contained in:
@@ -3,9 +3,9 @@ definePageMeta({
|
||||
middleware: "auth"
|
||||
})
|
||||
|
||||
const {find, findOne,create, update} = useStrapi4()
|
||||
//const {find, findOne,create, update} = useStrapi4()
|
||||
const route = useRoute()
|
||||
let project = (await findOne('projects',route.params.id)).data
|
||||
//let project = (await findOne('projects',route.params.id)).data
|
||||
const tabItems = [
|
||||
{
|
||||
key: "phases",
|
||||
@@ -13,6 +13,9 @@ const tabItems = [
|
||||
},{
|
||||
key: "forms",
|
||||
label: "Formulare"
|
||||
},{
|
||||
key: "description",
|
||||
label: "Dokumentation"
|
||||
},{
|
||||
key: "timetracking",
|
||||
label: "Zeiterfassung"
|
||||
@@ -22,8 +25,110 @@ const selectedPhase = ref({})
|
||||
const changesSaved = ref(true)
|
||||
|
||||
|
||||
const default_data = {
|
||||
time: 1660335428612,
|
||||
blocks: [
|
||||
{
|
||||
id: "MnGi61oxdF",
|
||||
type: "header",
|
||||
data: {
|
||||
text: "Welcome to nuxt-editorjs!",
|
||||
level: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "b_Ju7U6wPl",
|
||||
type: "paragraph",
|
||||
data: {
|
||||
text: "This is a nuxt3 plugin for editorjs.",
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "R3o5BpI-r9",
|
||||
type: "paragraph",
|
||||
data: {
|
||||
text: "<b>A paragraph of text:</b> Lorem ipsum dolor sit amet consectetur adipisicing elit. Labore perspiciatis molestias neque autem cumque provident? Laudantium ad, quisquam quos nulla amet, perferendis recusandae voluptates eligendi cupiditate consectetur veniam! Ipsum, ullam?",
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "b9mkw6ZO92",
|
||||
type: "header",
|
||||
data: {
|
||||
text: "Heading 1",
|
||||
level: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "P2PZsHo2lq",
|
||||
type: "header",
|
||||
data: {
|
||||
text: "Heading 2",
|
||||
level: 2,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "hHJZjkW-TO",
|
||||
type: "header",
|
||||
data: {
|
||||
text: "Heading 3",
|
||||
level: 3,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "k8EDwa0oVG",
|
||||
type: "header",
|
||||
data: {
|
||||
text: "Heading 4",
|
||||
level: 4,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "62ciFnEFjZ",
|
||||
type: "header",
|
||||
data: {
|
||||
text: "Heading 5",
|
||||
level: 5,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "YCBcKhNqib",
|
||||
type: "header",
|
||||
data: {
|
||||
text: "Heading 6",
|
||||
level: 6,
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "s_J3d5U8DA",
|
||||
type: "list",
|
||||
data: {
|
||||
style: "ordered",
|
||||
items: [
|
||||
"An ordered list item",
|
||||
"Another ordered list item",
|
||||
"One more",
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "kMyQbO156y",
|
||||
type: "list",
|
||||
data: {
|
||||
style: "unordered",
|
||||
items: ["An unordered list item!", "In italics?", "Or bold?"],
|
||||
},
|
||||
},
|
||||
],
|
||||
version: "2.25.0",
|
||||
};
|
||||
const dat = ref(default_data);
|
||||
const save = () => {
|
||||
console.log(foo);
|
||||
};
|
||||
|
||||
|
||||
const updatePhases = async () => {
|
||||
await update('projects', route.params.id, {phases: project.attributes.phases})
|
||||
//await update('projects', route.params.id, {phases: project.attributes.phases})
|
||||
changesSaved.value = true
|
||||
console.log("Updated")
|
||||
}
|
||||
@@ -33,7 +138,7 @@ const phaseInfo = ref({
|
||||
notes: ""
|
||||
})
|
||||
|
||||
const addPhase = async (phaseBefore) => {
|
||||
/*const addPhase = async (phaseBefore) => {
|
||||
|
||||
|
||||
let posBefore = phaseBefore.position
|
||||
@@ -48,7 +153,7 @@ const addPhase = async (phaseBefore) => {
|
||||
|
||||
await updatePhases()
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
</script>
|
||||
@@ -60,7 +165,7 @@ const addPhase = async (phaseBefore) => {
|
||||
<div v-if="item.key === 'phases'" class="space-y-3">
|
||||
<div id="phaseList">
|
||||
<a
|
||||
v-for="phase in project.attributes.phases"
|
||||
v-for="phase in []"
|
||||
@click="selectedPhase = phase"
|
||||
>
|
||||
<div
|
||||
@@ -80,6 +185,9 @@ const addPhase = async (phaseBefore) => {
|
||||
<div v-else-if="item.key === 'password'" class="space-y-3">
|
||||
|
||||
</div>
|
||||
<div v-else-if="item.key === 'description'" class="space-y-3">
|
||||
<client-only><editor-js v-model="dat" /></client-only>
|
||||
</div>
|
||||
</template>
|
||||
</UTabs>
|
||||
<!-- <div id="left">
|
||||
|
||||
Reference in New Issue
Block a user