<commit_before>import h from '../h';
import m from 'mithril';
import projectsShow from '../root/projects-show';

const projectPreview = {
    view(ctrl, args) {
        const permalink = args.project().permalink;
        return args.project() ? m('div', [
            m('.u-text-center',
                m('.w-container',
                    m('.w-row', [
                        m('.w-col.w-col-8.w-col-push-2', [
                            m('.fontweight-semibold.fontsize-large.u-margintop-40',
                                'É hora dos feedbacks!'
                            ),
                            m('p.fontsize-base',
                                'Compartilhe o link abaixo com seus amigos e aproveite o momento para fazer ajustes finos que ajudem na sua campanha.'
                            ),
                            m('.w-row.u-marginbottom-30', [
                                m('.w-col.w-col-3'),
                                m('.w-col.w-col-6',
                                    m(`input.w-input.text-field[type='text'][value='https://www.catarse.me/${permalink}']`)
                                ),
                                m('.w-col.w-col-3')
                            ])
                        ]),
                        m('.w-col.w-col-2')
                    ])
                )
            ),
            m(projectsShow, args)
        ]) : h.loader() ;
    }
};

export default projectPreview;<commit_msg>wait project load to get permalink<commit_after>import h from '../h';
import m from 'mithril';
import projectsShow from '../root/projects-show';

const projectPreview = {
    view(ctrl, args) {
        return args.project() ? m('div', [
            m('.u-text-center',
                m('.w-container',
                    m('.w-row', [
                        m('.w-col.w-col-8.w-col-push-2', [
                            m('.fontweight-semibold.fontsize-large.u-margintop-40',
                                'É hora dos feedbacks!'
                            ),
                            m('p.fontsize-base',
                                'Compartilhe o link abaixo com seus amigos e aproveite o momento para fazer ajustes finos que ajudem na sua campanha.'
                            ),
                            m('.w-row.u-marginbottom-30', [
                                m('.w-col.w-col-3'),
                                m('.w-col.w-col-6',
                                    m(`input.w-input.text-field[type='text'][value='https://www.catarse.me/${args.project().permalink}']`)
                                ),
                                m('.w-col.w-col-3')
                            ])
                        ]),
                        m('.w-col.w-col-2')
                    ])
                )
            ),
            m(projectsShow, args)
        ]) : h.loader() ;
    }
};

export default projectPreview;
{'fraction_non_alphanumeric': 0.13804945054945056, 'fraction_numerical': 0.006868131868131868, 'mean_word_length': 0.9064136125654451, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7192316', 'n_tokens_mistral': 811, 'n_tokens_neox': 777, 'n_words': 129}