Editor Module List

Link to code

/**********************************************
/* Wikidot Extension
/* Copyright (c) Kenneth Tsang 2013
/* All rights reserved.
/*
/* No part of the code below can be reproduced
/* for any purpose without the permission of
/* the author(s)
/*********************************************/
var jxeeno = {}; //put all extension into here
jxeeno.moduleList = {
    'ListDrafts': {
        params: {
            pageType: 'exists|notexists'
        },
        singleLine: false,
        onlySingleLine: false,
        importance: 0
    },
    'ListPages': {
        params: {
            pagetype: 'normal|hidden|*',
            category: '.|*',
            tags: '-|=|==',
            parent: '-|=|-=|.',
            link_to: '.',
            created_at: '=|yyyy|yyyy.mm|last n unit',
            created_by: '=|-=',
            rating: 'n|=',
            offset: 'n',
            range: '.|before|after|others',
 
            order: 'property desc',
 
            limit: 'n',
            perPage: 'n',
            reverse: 'yes|no',
 
            separate: 'yes|no',
            prependLine: 'str',
            appendLine: 'str',
 
            rss: 'str',
            rssDescription: 'str',
            rssHome: 'uri',
            rssLimit: 'n',
            rssOnly: 'true',
 
            urlAttrPrefix: 'str'
        },
        singleLine: true,
        onlySingleLine: false,
        importance: 2
    },
    'CountPages': {
        params: {
            pagetype: 'normal|hidden|*',
            category: '.|*',
            tags: '-|=|==',
            parent: '-|=|-=|.',
            link_to: '.',
            created_at: '=|yyyy|yyyy.mm|last n unit',
            created_by: '=|-=',
            rating: 'n|=',
            offset: 'n',
            range: '.|before|after|others',
 
            prependLine: '',
            appendLine: '',
 
            urlAttrPrefix: ''
        },
        singleLine: false,
        onlySingleLine: false,
        importance: 1
    },
    'ListUsers': {
        params: {
            users: '.'
        },
        singleLine: false,
        onlySingleLine: false,
        importance: 2
    },
    'TagCloud': {
        params: {
            mode:'3d',
            maxFontSize: 'px|pt|em|%',
            minFontSize: 'px|pt|em|%',
            maxColor: 'RRR,GGG,BBB',
            minColor: 'RRR,GGG,BBB',
            limit: 'int',
            target: 'unix_pagename',
            category: 'category',
            showHidden: 'true|false',
            urlAttrPrefix: 'str',
            skipCategoryFromUrl: 'true|false',
            width: 'int',
            height: 'int'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'PageCalendar': {
        params: {
            category: '*|category1,category2',
            tags: 'tag1,tag2',
            startPage: 'unix_pagename',
            targetPage: 'unix_pagename',
            urlAttrPrefix: 'str'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'PageTree': {
        params: {
            root: 'unix_pagename',
            showRoot: 'true|false',
            depth: 'int'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'Backlinks': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'WantedPages': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'OrphanedPages': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'Categories': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    //Users, Members
    'Watchers': {
        params: {
            noActions: 'true|false'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'Members': {
        params: {
            group: 'members|admins|moderators',
            showSince: 'no|yes',
            order: 'userID|joined|name[Desc]'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'Join': {
        params: {
            button: 'Join this site!',
            class: 'my-join-button'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 1
    },
    'SendInvitations': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'WhoInvited': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    //Misc
    'CSS': {
        params: {show: 'true|false', disable: 'true|false'},
        singleLine: false,
        onlySingleLine: false,
        importance: 2
    },
    'NewPage': {
        params: {
            category: 'category',
            template: 'unix_pagename',
            size: 'int',
            button: 'create page',
            format: '/^Reg?Exp$/',
            tags: 'tag1 tag2',
            parent: 'unix_pagename',
            mode: 'edit|save-and-refresh|save-and-go',
            goTo: 'unix_pagename'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 2
    },
    'Redirect': {
        params: {
            destination: 'url'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 1
    },
    'ThemePreviewer': {
        params: {
            noUi: 'true|false'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'MailForm': {
        params: {
            to: 'user1,user2',
            button: 'str',
            format: 'csv',
            title: 'Email Title',
            successPage: 'unix_pagename'
        },
        singleLine: false,
        onlySingleLine: false,
        importance: 0
    },
    'PetitionAdmin': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'SiteGrid': {
        params: {
            limit: 'int'
        },
        singleLine: false,
        onlySingleLine: false,
        importance: 0
    },
    'FeaturedSite': {
        params: {},
        singleLine: false,
        onlySingleLine: false,
        importance: 0
    },
    //News and Feeds
    'Feed': {
        params: {
            src: 'http://path.to/feed.xml',
            limit: 'int',
            offset: 'int'
        },
        singleLine: false,
        onlySingleLine: false,
        importance: 1
    },
    'FrontForum': {
        params: {
            category: '12,102',
            feed: 'str',
            feedTitle: 'sitename feed',
            limit: 'int',
            offset: 'int',
            fixRelativeLinks: 'true|false'
        },
        singleLine: true,
        onlySingleLine: false,
        importance: 1
    },
    //Forum & discussion
    'Comments': {
        params: {
            title: "Comments",
            hide: 'true|false',
            hideForm: 'true|false',
            order: 'reverse|forwards'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 2
    },
    'RecentPosts': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'MiniRecentThreads': {
        params: {
            limit: "int"
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'MiniActiveThreads': {
        params: {
            limit: "int"
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'MiniRecentPosts': {
        params: {
            limit: "int"
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    //Page Rating
    'Rate': {
        params: {},
        singleLine: true,
        onlySingleLine: false,
        importance: 2
    },
    'RatedPages': {
        params: {
            category: "category-name",
            order: "date-created-|rating-[desc|asc]",
            minRating: "int",
            maxRating: "int",
            limit: 'int',
            comments: 'true|false'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    //Photos, galleries, files
    //gallery is not a module
    'FlickrGallery': {
        params: {
            userName: 'flickr-user',
            tags: 'tag1, tag2',
            tagMode: 'all|any',
            sort: 'date-posted-|date-taken-|interestingness-[desc|asc]|relevance',
            photosetId: 'photoset-id',
            groupId: 'group-name',
            groupUrl: 'flickr-url',
            perPage: 'int (1-100)',
            limitPages: 'int',
            size: 'square|thumbnail|small|medium',
            disableBrowsing: 'true|false',
            contentType: 'photos|screenshots|other|all'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'Files': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 1
    },
    //Searching
    'Search': {
        params: {
            mini: 'true',
            a: 'p|pf|f'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 1
    },
    'SearchAll': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'SearchUsers': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    //Changes
    'SiteChanges': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    //Admin/moderation
    'ManageSite': {
        params: {},
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    },
    'Clone': {
        params: {
            source: '.|site-unix-name',
            button: 'str'
        },
        singleLine: true,
        onlySingleLine: true,
        importance: 0
    }
};
 
jxeeno.moduleListArr = [];
jQuery.each(jxeeno.moduleList, function(i,v){ jxeeno.moduleListArr.push(i); });
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License