Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 76: Line 76:
     const FN_SEARCH = 'Search & Monitor';
     const FN_SEARCH = 'Search & Monitor';
     const FN_POST = 'Post & Schedule';
     const FN_POST = 'Post & Schedule';
    const FN_ANALYSIS = 'Analysis';


     const getUrl = title =>  title ? '/index.php/Special:FilePath/' + title : title;
     const getUrl = title =>  title ? '/index.php/Special:FilePath/' + title : title;
Line 113: Line 114:
             'Post time optimization',
             'Post time optimization',
             'Content library'
             'Content library'
        ];
        const analysisFunctions = [
            'Text analysis',
            'Image analysis',
            'Video analysis',
            'Topic analysis',
            'Sentiment analysis',
            'Trend analysis'
         ];
         ];


Line 140: Line 149:
             if (hasFunction(dctResult, searchFunctions)) dct.functions.push(FN_SEARCH);
             if (hasFunction(dctResult, searchFunctions)) dct.functions.push(FN_SEARCH);
             if (hasFunction(dctResult, postFunctions)) dct.functions.push(FN_POST);
             if (hasFunction(dctResult, postFunctions)) dct.functions.push(FN_POST);
            if (hasFunction(dctResult, analysisFunctions)) dct.functions.push(FN_ANALYSIS);


             return dct;
             return dct;

Revision as of 15:59, 9 June 2022

Development verstion of the DCT List.
Not ready for production!