Coder Social home page Coder Social logo

jako / colorpicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjamin-vauchel/colorpicker

2.0 2.0 0.0 6.75 MB

Color select custom template variable in MODX Revolution

Home Page: https://jako.github.io/ColorPicker/

License: GNU General Public License v2.0

PHP 40.66% CSS 11.98% JavaScript 28.20% Smarty 16.75% SCSS 2.41%
modx modx-customtv modx-extra modx-revolution

colorpicker's Introduction

Hi, I’m Thomas Jakobi 👋

I am a german web-developer & designer based in Münsterland, Germany. I am the developer and/or maintainer of around 35 open source extras for MODX. I am the owner of Treehill Studio, an agency developing premium extras for MODX.

Open Source

I love open source and I commit some of my spare time in open source projects. Most of these projects are extensions to MODX, a content management system to build fast, secure websites.

If you like my work, you can sponsor me on GitHub Sponsors. You can also buy me a coffee (or two) on Ko-fi. I also offer paid coding of custom MODX extras.

Thomas's GitHub stats

Current work

My last open source extra for MODX was TwoFactorX, a MODX extra that adds a two-factor authentication to the MODX manager. Behind the curtain I am working on Cursus, a premium booking system for MODX on base of Agenda.

colorpicker's People

Contributors

jako avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

colorpicker's Issues

Revolution 3.0.0-alpha1: not work

изображение

console log

Консоль запущена...
Пробуем установить пакет с подписью: colorpicker-1.0.4-pl
Пакет найден... сейчас идёт подготовка к его установке.
Загрузка рабочего пространства пакета...
Рабочее пространство загружено, сейчас устанавливаем пакет...
modx.modNamespace is deprecated since version 3.0. Replace references to class modx.modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modNamespace is deprecated since version 3.0. Replace references to class modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modNamespace is deprecated since version 3.0. Replace references to class modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modx.modCategory is deprecated since version 3.0. Replace references to class modx.modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modCategory is deprecated since version 3.0. Replace references to class modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modCategory is deprecated since version 3.0. Replace references to class modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 50 [event] => OnManagerPageBeforeRender )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 50 [event] => OnTVInputPropertiesList )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 50 [event] => OnTVInputRenderList )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 50 [event] => OnTVOutputRenderList )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 50 [event] => OnTVOutputRenderPropertiesList )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 50 [event] => OnDocFormRender )
Attempting to preserve files at /home/users/9/9017501865/domains/modx.dtls.su/assets/components/colorpicker into archive /home/users/9/9017501865/domains/modx.dtls.su/core/packages/colorpicker-1.0.4-pl/modCategory/cfdf56897f1ce532023f295516320eab.0.preserved.zip
Attempting to preserve files at /home/users/9/9017501865/domains/modx.dtls.su/core/components/colorpicker into archive /home/users/9/9017501865/domains/modx.dtls.su/core/packages/colorpicker-1.0.4-pl/modCategory/cfdf56897f1ce532023f295516320eab.1.preserved.zip
transport.modTransportPackage is deprecated since version 3.0. Replace references to class transport.modTransportPackage with MODX\Revolution\Transport\modTransportPackage to take advantage of PSR-4 autoloading.
Could not find legacy class modTransportPackage after converting to MODX\Revolution\modTransportPackage
Could not load class: modTransportPackage from mysql.modtransportpackage
Could not get table name for class:
transport.modTransportPackage is deprecated since version 3.0. Replace references to class transport.modTransportPackage with MODX\Revolution\Transport\modTransportPackage to take advantage of PSR-4 autoloading.
transport.modTransportPackage is deprecated since version 3.0. Replace references to class transport.modTransportPackage with MODX\Revolution\Transport\modTransportPackage to take advantage of PSR-4 autoloading.
Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS `latestPackage` WHERE `latestPackage`.`package_name` = `modTransp' at line 3 )
Успешно установлен пакет colorpicker-1.0.4-pl

Existing TV values altered and color map not working

I installed this today, and ALL of my TVs got a hash mark inserted at the front, when there was none before! This broke all my existing scripts/chunks. Also, the popup displays only a single color, not a color map:
Screen Shot 2022-02-09 at 3 35 15 PM

MODX 2.8.3 / Colorpicker 2.0.0

Display of Alpha in popup not working properly

When assigning several colorpicker TVs to a template, some of which have Alpha enabled and some don't, the individual Alpha options don't work. ALL of the colorpickers for the template will have the same alpha setting: the one the last TV displayed has.

So, if I have color1 with alpha, color2 without alpha, and color3 without alpha, then when editing a resource with those three colors assigned, color1 will not have alpha enabled in the picker popup. Conversely, if I have color1 without alpha, color2 without alpha, and color3 WITH alpha, then when editing the resource, all three colors will have alpha enabled in the picker popup.

Using ColorPicker 2.0.4-pl with MODX 2.8.4

Allow Blank set to fails breaks colorPicker TV

If i set up the TV and set the setting "allow empty" to "no" - the TV breaks. This breaks probably because the JS has a missing value. In the JS-Code of the manager TV the code is:

allowBlank: ,

I attache 2 Screenshot of the different between allowing empty and disallow it.

Bildschirmfoto 2020-06-17 um 14 06 27

Bildschirmfoto 2020-06-17 um 14 05 36

Colorpicker on Migx - zindex problem

Hi @Jako,

I am migrating from the old colorpicker v1x to the new v2, and found that the new v2 has a zindex problem when used with Migx.
An example:
image

Z-index of Migx box is 9003, while colorpicker's zindex is 1000

v1 was fine:
image

zindex of the older colorpicker was 15000 apparently.

Do you think this can be changed to 15000 to work on all use cases?
Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.