diff --git a/.github/workflows/purge-cdn.yml b/.github/workflows/purge-cdn.yml new file mode 100644 index 0000000..528695e --- /dev/null +++ b/.github/workflows/purge-cdn.yml @@ -0,0 +1,35 @@ +name: Flush Cache + +on: + release: + types: [published] + +jobs: + purge-jsdelivr-cache: + runs-on: ubuntu-20.04 + steps: + - uses: gacts/purge-jsdelivr-cache@v1 + with: + url: | + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/button.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/distico.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/facebook.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/faq.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/index.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/instagram.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/leggianche.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/mediahubPhoto.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/previewAdv.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/product.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/reddit.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/searchPublicApi.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/shortcodeList.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/spoiler.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/survey.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/tiktok.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/tmdb.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/trivia.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/twitter.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/widgetbay.js + https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/youtube.js + diff --git a/src/shortcodeList.js b/src/shortcodeList.js index 5ab0d7a..5f2409a 100644 --- a/src/shortcodeList.js +++ b/src/shortcodeList.js @@ -88,36 +88,22 @@ tinymce.PluginManager.add('shortcodeList', function (editor, url) { description: 'Insert a tiktok frame' }, { - title: 'Movie - CulturaPop*', - code: '[movie id="1"]', - description: 'Insert a movie' - }, - { - title: 'TV - CulturaPop*', - code: '[tv id="1"]', - description: 'Insert a TV show' - }, - { - title: 'Video - CulturaPop*', - code: '[video id="1"]', - description: 'Insert a video' - }, - { - title: 'Quiz - CulturaPop*', - code: '[quiz id="1"]', - description: 'Insert a quiz' + title: 'Merchandise Product - Spaziogames*', + code: '[product id="1,2,3" amztag="nosp-guide" ebaycampaignid="123456"]', + description: 'Insert a Merchandise Product' }, { - title: 'Challenge - CulturaPop*', - code: '[challenge id="1"]', - description: 'Insert a challenge' + title: 'Survey', + code: '[survey id="1"]', + description: 'Insert a survey in the article' }, { - title: 'Merchandise Product - Spaziogames*', - code: '[product id="1,2,3" amztag="nosp-guide" ebaycampaignid="123456"]', - description: 'Insert a Merchandise Product' + title: 'Products', + code: '[products]', + description: 'Move the products block in BestOf article - Tom\'s Hardware* Spaziogames*' } ] + shortcodes.sort((a, b) => a.title.localeCompare(b.title)) const content = `