<commit_before><template>

    <div class="uk-form-horizontal">

        <div class="uk-form-row">
            <label for="form-url" class="uk-form-label">{{ 'Url' | trans }}</label>
            <div class="uk-form-controls">
                <input-link id="form-url" class="uk-form-width-large" name="link" :link.sync="node.link" required></input-link>
                <div class="uk-form-help-block uk-text-danger" v-show="form.link.invalid">{{ 'Invalid url.' | trans }}</div>
            </div>
        </div>

        <div class="uk-form-row">
            <label for="form-type" class="uk-form-label">{{ 'Type' | trans }}</label>

            <div class="uk-form-controls">
                <select id="form-type" class="uk-form-width-large" v-model="behavior">
                    <option value="link">{{ 'Link' | trans }}</option>
                    <option value="alias">{{ 'URL Alias' | trans }}</option>
                    <option value="redirect">{{ 'Redirect' | trans }}</option>
                </select>
            </div>
        </div>

        <partial name="settings"></partial>

    </div>

</template>

<script>

    module.exports = {

        section: {
            label: 'Settings',
            priority: 0,
            active: 'link'
        },

        props: ['node'],

        created: function () {
            
            this.$options.partials = this.$parent.$options.partials;

            if (this.behavior === 'redirect') {
                this.node.link = this.node.data.redirect;
            }
<commit_msg>fix missing roles at link settings<commit_after><template>

    <div class="uk-form-horizontal">

        <div class="uk-form-row">
            <label for="form-url" class="uk-form-label">{{ 'Url' | trans }}</label>
            <div class="uk-form-controls">
                <input-link id="form-url" class="uk-form-width-large" name="link" :link.sync="node.link" required></input-link>
                <div class="uk-form-help-block uk-text-danger" v-show="form.link.invalid">{{ 'Invalid url.' | trans }}</div>
            </div>
        </div>

        <div class="uk-form-row">
            <label for="form-type" class="uk-form-label">{{ 'Type' | trans }}</label>

            <div class="uk-form-controls">
                <select id="form-type" class="uk-form-width-large" v-model="behavior">
                    <option value="link">{{ 'Link' | trans }}</option>
                    <option value="alias">{{ 'URL Alias' | trans }}</option>
                    <option value="redirect">{{ 'Redirect' | trans }}</option>
                </select>
            </div>
        </div>

        <partial name="settings"></partial>

    </div>

</template>

<script>

    module.exports = {

        section: {
            label: 'Settings',
            priority: 0,
            active: 'link'
        },

        props: ['node', 'roles', 'form'],

        created: function () {
            
            this.$options.partials = this.$parent.$options.partials;

            if (this.behavior === 'redirect') {
                this.node.link = this.node.data.redirect;
            }

{'fraction_non_alphanumeric': 0.18117797695262483, 'fraction_numerical': 0.0006402048655569782, 'mean_word_length': 1.760600706713781, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '7482161', 'n_tokens_mistral': 939, 'n_tokens_neox': 892, 'n_words': 179}