forked from ecamp/ecamp3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3626b6a
commit 769b444
Showing
14 changed files
with
225 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineMigrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
final class Version20240416120000 extends AbstractMigration { | ||
public function getDescription(): string { | ||
return 'Adds new content types'; | ||
} | ||
|
||
public function up(Schema $schema): void { | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->addSql('INSERT INTO public.content_type (id, name, active, entityclass, jsonconfig, createtime, updatetime) VALUES (\'c462edd869f3\', \'LearningObjectives\', true, \'App\Entity\ContentNode\SingleText\', \'[]\', \'2024-04-16 12:00:00\', \'2024-04-16 12:00:00\');'); | ||
$this->addSql('INSERT INTO public.content_type (id, name, active, entityclass, jsonconfig, createtime, updatetime) VALUES (\'5e2028c55ee4\', \'LearningTopics\', true, \'App\Entity\ContentNode\SingleText\', \'[]\', \'2024-04-16 12:00:00\', \'2024-04-16 12:00:00\');'); | ||
} | ||
|
||
public function down(Schema $schema): void { | ||
// this down() migration is auto-generated, please modify it to your needs | ||
$this->addSql('DELETE FROM public.content_type WHERE id IN (\'c462edd869f3\', \'5e2028c55ee4\')'); | ||
} | ||
} |
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
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
29 changes: 29 additions & 0 deletions
29
frontend/src/components/activity/content/LearningObjectives.vue
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,29 @@ | ||
<template> | ||
<ContentNodeCard v-bind="$props"> | ||
<api-richtext | ||
:uri="contentNode._meta.self" | ||
path="data.html" | ||
:placeholder="$tc('contentNode.learningObjectives.name')" | ||
rows="2" | ||
:disabled="layoutMode || disabled" | ||
class="grow-v-slot" | ||
/> | ||
</ContentNodeCard> | ||
</template> | ||
|
||
<script> | ||
import ApiRichtext from '@/components/form/api/ApiRichtext.vue' | ||
import ContentNodeCard from '@/components/activity/content/layout/ContentNodeCard.vue' | ||
import { contentNodeMixin } from '@/mixins/contentNodeMixin.js' | ||
export default { | ||
name: 'LearningObjectives', | ||
components: { | ||
ContentNodeCard, | ||
ApiRichtext, | ||
}, | ||
mixins: [contentNodeMixin], | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
29 changes: 29 additions & 0 deletions
29
frontend/src/components/activity/content/LearningTopics.vue
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,29 @@ | ||
<template> | ||
<ContentNodeCard v-bind="$props"> | ||
<api-richtext | ||
:uri="contentNode._meta.self" | ||
path="data.html" | ||
:placeholder="$tc('contentNode.learningTopics.name')" | ||
rows="2" | ||
:disabled="layoutMode || disabled" | ||
class="grow-v-slot" | ||
/> | ||
</ContentNodeCard> | ||
</template> | ||
|
||
<script> | ||
import ApiRichtext from '@/components/form/api/ApiRichtext.vue' | ||
import ContentNodeCard from '@/components/activity/content/layout/ContentNodeCard.vue' | ||
import { contentNodeMixin } from '@/mixins/contentNodeMixin.js' | ||
export default { | ||
name: 'LearningTopics', | ||
components: { | ||
ContentNodeCard, | ||
ApiRichtext, | ||
}, | ||
mixins: [contentNodeMixin], | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
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
24 changes: 24 additions & 0 deletions
24
pdf/src/campPrint/scheduleEntry/contentNode/LearningObjectives.vue
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,24 @@ | ||
<template> | ||
<View class="content-node"> | ||
<InstanceName :content-node="contentNode" /> | ||
<View style="line-height: 1.4"> | ||
<RichText :rich-text="contentNode.data.html" /> | ||
</View> | ||
</View> | ||
</template> | ||
<script> | ||
import PdfComponent from '@/PdfComponent.js' | ||
import InstanceName from '../InstanceName.vue' | ||
import RichText from '../../RichText.vue' | ||
export default { | ||
name: 'LearningObjectives', | ||
components: { RichText, InstanceName }, | ||
extends: PdfComponent, | ||
props: { | ||
contentNode: { type: Object, required: true }, | ||
}, | ||
} | ||
</script> | ||
<pdf-style> | ||
</pdf-style> |
24 changes: 24 additions & 0 deletions
24
pdf/src/campPrint/scheduleEntry/contentNode/LearningTopics.vue
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,24 @@ | ||
<template> | ||
<View class="content-node"> | ||
<InstanceName :content-node="contentNode" /> | ||
<View style="line-height: 1.4"> | ||
<RichText :rich-text="contentNode.data.html" /> | ||
</View> | ||
</View> | ||
</template> | ||
<script> | ||
import PdfComponent from '@/PdfComponent.js' | ||
import InstanceName from '../InstanceName.vue' | ||
import RichText from '../../RichText.vue' | ||
export default { | ||
name: 'LearningTopics', | ||
components: { RichText, InstanceName }, | ||
extends: PdfComponent, | ||
props: { | ||
contentNode: { type: Object, required: true }, | ||
}, | ||
} | ||
</script> | ||
<pdf-style> | ||
</pdf-style> |
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
26 changes: 26 additions & 0 deletions
26
print/components/scheduleEntry/contentNode/LearningObjectives.vue
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,26 @@ | ||
<template> | ||
<content-node-content :content-node="contentNode" :icon-path="mdiSchool"> | ||
<rich-text :rich-text="contentNode.data.html" /> | ||
</content-node-content> | ||
</template> | ||
|
||
<script> | ||
import RichText from '../../generic/RichText.vue' | ||
import ContentNodeContent from './ContentNodeContent.vue' | ||
import { mdiSchool } from '@mdi/js' | ||
export default { | ||
components: { | ||
RichText, | ||
ContentNodeContent, | ||
}, | ||
props: { | ||
contentNode: { type: Object, required: true }, | ||
}, | ||
data() { | ||
return { | ||
mdiSchool, | ||
} | ||
}, | ||
} | ||
</script> |
26 changes: 26 additions & 0 deletions
26
print/components/scheduleEntry/contentNode/LearningTopics.vue
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,26 @@ | ||
<template> | ||
<content-node-content :content-node="contentNode" :icon-path="mdiSchool"> | ||
<rich-text :rich-text="contentNode.data.html" /> | ||
</content-node-content> | ||
</template> | ||
|
||
<script> | ||
import RichText from '../../generic/RichText.vue' | ||
import ContentNodeContent from './ContentNodeContent.vue' | ||
import { mdiSchool } from '@mdi/js' | ||
export default { | ||
components: { | ||
RichText, | ||
ContentNodeContent, | ||
}, | ||
props: { | ||
contentNode: { type: Object, required: true }, | ||
}, | ||
data() { | ||
return { | ||
mdiSchool, | ||
} | ||
}, | ||
} | ||
</script> |