<commit_before><template lang="pug">
    .col-sm-offset-2.col-xs-12.insert-destination.debug(:class="isMindsetRoadmap ? 'col-sm-12' : 'col-sm-8'")
        .row.new-story.alignWithStoryList.debug
            .input-group
                input#storyInsert(v-model="summary" @keyup.enter="insertStory"
                    type="text" autocomplete="off" tabindex="1").form-control

                span.input-group-btn
                    button(@click="insertStory" tabindex="3").btn.btn-default.pull-right Add task

            textarea(v-model="description" autosize placeholder="Task description ..." tabindex="2").form-control
</template>

<script>
export default {
    props: {
        story: Object,
        mindset: String
    },
    data: function () {
        return {
            summary: "",
            description: ""
        }
    },
    methods: {
        insertStory: function () {
            this.$emit('insert-story', {
                task: {
                    summary: this.summary,
                    description: this.description,
                },
                nextStory: this.story
            });

            // Clear out data for another story entry
            this.summary = "";
            this.description = "";
        }
    },
    computed: {
        isMindsetRoadmap: function () {
            return this.mindset === 'roadmap';
        }
    }
}
</script><commit_msg>Vue: Migrate autosize on Insert Story<commit_after><template lang="pug">
    .col-sm-offset-2.col-xs-12.insert-destination.debug(:class="isMindsetRoadmap ? 'col-sm-12' : 'col-sm-8'")
        .row.new-story.alignWithStoryList.debug
            .input-group
                input#storyInsert(v-model="summary" @keyup.enter="insertStory"
                    type="text" autocomplete="off" tabindex="1").form-control

                span.input-group-btn
                    button(@click="insertStory" tabindex="3").btn.btn-default.pull-right Add task

            textarea#task-description(v-model="description" placeholder="Task description ..." tabindex="2").form-control
</template>

<script>
import Autosize from 'autosize'

export default {
    props: {
        story: Object,
        mindset: String
    },
    data: function () {
        return {
            summary: "",
            description: ""
        }
    },
    methods: {
        insertStory: function () {
            this.$emit('insert-story', {
                task: {
                    summary: this.summary,
                    description: this.description,
                },
                nextStory: this.story
            });

            // Clear out data for another story entry
            this.summary = "";
            this.description = "";
        }
    },
    computed: {
        isMindsetRoadmap: function () {
            return this.mindset === 'roadmap';
        }
    },
    mounted: function () {
        Autosize(document.getElementById('task-description'));
    }
}
</script>
{'fraction_non_alphanumeric': 0.13373655913978494, 'fraction_numerical': 0.006048387096774193, 'mean_word_length': 1.674752920035939, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2485306', 'n_tokens_mistral': 844, 'n_tokens_neox': 792, 'n_words': 136}