Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github export-ignore
.gitignore export-ignore
.gitattributes export-ignore
README.md export-ignore
index.js export-ignore
package.json export-ignore
_config.yml export-ignore
multitv.zip export-ignore
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Grunt Build
on:
release:
types: [published]
jobs:
build:
name: Сборка проекта
runs-on: ubuntu-latest
strategy:
matrix:
node: [24]
steps:
- uses: actions/checkout@v6
- name: Установка Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

- name: NPM установка пакетов
run: |
npm run inst

- name: Сборка плагина
run: |
npm run build

- name: Загрузка реализа
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: multitv.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
!/.github
!/.gitignore
!/.gitattributes
!/install
!/README*
!/index.js
!/package.json
2 changes: 1 addition & 1 deletion assets/tvs/multitv/css/colorbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Colorbox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:100; overflow:hidden;}
#cboxWrapper {max-width:none;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
Expand Down
144 changes: 102 additions & 42 deletions assets/tvs/multitv/includes/multitv.class.php

Large diffs are not rendered by default.

221 changes: 153 additions & 68 deletions assets/tvs/multitv/js/multitv.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const zl = require("zip-lib"),
fs = require("node:fs"),
pack = "multitv",
folders = [`assets`, `install`];

if(fs.existsSync(`${pack}.zip`)) {
console.log(`Delete file ${pack}.zip`);
fs.unlinkSync(`${pack}.zip`);
}

const zip = new zl.Zip();

for(var value of folders){
zip.addFolder(`${value}`, `${pack}/${value}`);
}

zip.archive(`${pack}.zip`);
console.log(`Archive ${pack}.zip`);
15 changes: 14 additions & 1 deletion install/assets/snippets/multiTV.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@
* Custom Template Variabe containing a sortable multi item list or a datatable
*
* @category snippet, tv
* @version 2.0.16
* @version 2.0.18
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @author Jako
* @internal @modx_category Content
* @internal @installset base, sample
*/

/**
* multiTV
*
* Custom Template Variabe containing a sortable multi item list or a datatable
*
* @category snippet, tv
* @version 2.0.18
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @author Jako
* @internal @modx_category Content
Expand Down
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "multitv",
"version": "1.0.0",
"description": "Custom TV for Evolution CMS: Transform a template variables into a sortable multi item list for the Evolution content management framework",
"homepage": "https://github.com/extras-evolution/multitv#readme",
"bugs": {
"url": "https://github.com/extras-evolution/multitv/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/extras-evolution/multitv.git"
},
"license": "GPL-3.0",
"author": "",
"type": "commonjs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"inst": "npm i",
"build": "node index.js"
},
"dependencies": {
"zip-lib": "^1.4.0"
}
}