Plugin Directory

Changeset 3354699


Ignore:
Timestamp:
09/02/2025 12:35:42 PM (7 months ago)
Author:
deeping2019
Message:

Fixed some issues

Location:
chating/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • chating/trunk/build/inline-chatbot-block/render.php

    r3324369 r3354699  
    2020        '1.1.0'
    2121    );
     22    wp_enqueue_style('dashicons');
    2223    wp_enqueue_script(
    2324        'chating-block-script',
     
    3233    ob_start();
    3334
     35    $wrapper = get_block_wrapper_attributes();
     36
    3437    ?>
    3538
    3639    <?php if (strlen($attributes["assistant"]) == 0): ?>
    37         <div id="chatbot">
     40        <div <?php echo $wrapper; ?> id="chatbot">
    3841            <h3>Der Chatbot steht zurzeit leider nicht zur Verfügung</h3>
    3942            <p>Wenn du der Websiteinhaber bist, wähle einen Assistant im Editor/Shortcode aus.</p>
    4043        </div>
    4144    <?php else: ?>
    42         <div id="chatbot">
     45        <div <?php echo $wrapper; ?> id="chatbot">
    4346            <div id="chat-history">
    4447                <?php
  • chating/trunk/build/inline-chatbot-block/style-index-rtl.css

    r3324369 r3354699  
    1 #chatbot{display:flex;flex-direction:column;position:relative;scroll-behavior:smooth;width:500px}#chatbot #chat-history{overflow-y:scroll;padding-bottom:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}.alignfull #chatbot{max-width:1200px;width:100%}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}
     1#chatbot{display:flex;flex-direction:column;position:relative;scroll-behavior:smooth}#chatbot #chat-history{overflow-y:scroll;padding-bottom:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}
  • chating/trunk/build/inline-chatbot-block/style-index.css

    r3324369 r3354699  
    1 #chatbot{display:flex;flex-direction:column;position:relative;scroll-behavior:smooth;width:500px}#chatbot #chat-history{overflow-y:scroll;padding-bottom:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}.alignfull #chatbot{max-width:1200px;width:100%}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}
     1#chatbot{display:flex;flex-direction:column;position:relative;scroll-behavior:smooth}#chatbot #chat-history{overflow-y:scroll;padding-bottom:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}
  • chating/trunk/build/popup-chatbot-block/render.php

    r3324369 r3354699  
    2020        '1.1.0'
    2121    );
     22    wp_enqueue_style('dashicons');
    2223    wp_enqueue_script(
    2324        'chating-block-script',
  • chating/trunk/build/popup-chatbot-block/style-index-rtl.css

    r3324369 r3354699  
    1 #chatbot{display:flex;flex-direction:column;height:100%;position:relative;scroll-behavior:smooth;width:500px}#chatbot #chat-history{flex-grow:100;overflow-y:scroll;padding-bottom:50px;padding-top:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}.alignfull #chatbot{max-width:1200px;width:100%}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}dialog{border:none;border-radius:20px;box-shadow:0 5px 100px 10px rgba(0,0,0,.2);height:400px;margin:auto;max-height:80vh;max-width:80vw;position:fixed;top:50%;transform:translateY(-50%);width:800px}.chatbot-button{bottom:15px;gap:5px;min-height:60px;min-width:60px;position:fixed;left:15px;transition:all .2s;z-index:99999}.chatbot-button,.close-dialog{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:50%;display:flex;justify-content:center}.close-dialog{aspect-ratio:1;background-color:#000;color:#fff;height:40px;position:absolute;left:10px;top:10px;width:40px;z-index:10}
     1#chatbot{display:flex;flex-direction:column;height:100%;position:relative;scroll-behavior:smooth}#chatbot #chat-history{flex-grow:100;overflow-y:scroll;padding-bottom:50px;padding-top:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}dialog{border:none;border-radius:20px;box-shadow:0 5px 100px 10px rgba(0,0,0,.2);height:400px;margin:auto;max-height:80vh;max-width:80vw;position:fixed;top:50%;transform:translateY(-50%);width:800px}.chatbot-button{bottom:15px;gap:5px;min-height:60px;min-width:60px;position:fixed;left:15px;transition:all .2s;z-index:99999}.chatbot-button,.close-dialog{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:50%;display:flex;justify-content:center}.close-dialog{aspect-ratio:1;background-color:#000;color:#fff;height:40px;position:absolute;left:10px;top:10px;width:40px;z-index:10}
  • chating/trunk/build/popup-chatbot-block/style-index.css

    r3324369 r3354699  
    1 #chatbot{display:flex;flex-direction:column;height:100%;position:relative;scroll-behavior:smooth;width:500px}#chatbot #chat-history{flex-grow:100;overflow-y:scroll;padding-bottom:50px;padding-top:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}.alignfull #chatbot{max-width:1200px;width:100%}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}dialog{border:none;border-radius:20px;box-shadow:0 5px 100px 10px rgba(0,0,0,.2);height:400px;margin:auto;max-height:80vh;max-width:80vw;position:fixed;top:50%;transform:translateY(-50%);width:800px}.chatbot-button{bottom:15px;gap:5px;min-height:60px;min-width:60px;position:fixed;right:15px;transition:all .2s;z-index:99999}.chatbot-button,.close-dialog{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:50%;display:flex;justify-content:center}.close-dialog{aspect-ratio:1;background-color:#000;color:#fff;height:40px;position:absolute;right:10px;top:10px;width:40px;z-index:10}
     1#chatbot{display:flex;flex-direction:column;height:100%;position:relative;scroll-behavior:smooth}#chatbot #chat-history{flex-grow:100;overflow-y:scroll;padding-bottom:50px;padding-top:50px}#chatbot #chat-history:has(.suggestions){align-content:end}#chatbot .bot-error,#chatbot .bot-response,#chatbot .user-message{border-radius:20px;clear:both;margin-bottom:8px;max-width:80%;padding:8px 12px;word-wrap:break-word}#chatbot .user-message{border-radius:20px 20px 5px 20px;float:right;text-align:right}#chatbot .bot-error,#chatbot .bot-response{border-radius:20px 20px 20px 5px;float:left;text-align:left}#chatbot .suggestions{align-items:stretch;display:flex;gap:16px;justify-content:center}#chatbot .suggestions p{border-radius:8px;flex:1;max-width:200px;padding:16px;transition:transform .2s;transition-timing-function:ease}#chatbot .suggestions p:hover{transform:translateY(-10px)}#chatbot .input-row{align-items:center;display:flex;gap:10px;justify-content:center}#chatbot .input-row button{align-items:center;aspect-ratio:1;border-radius:50%;display:flex;height:40px;justify-content:center;transition:all .2s}#chatbot .input-row #chat-input,#chatbot .input-row button{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}#chatbot .input-row #chat-input{border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:1em;padding:8px 12px;width:100%}@media only print{#chatbot #chat-history{overflow:visible}#chatbot .input-row{display:none}}@keyframes load{0%{transform:translateY(0)}25%{transform:translateY(-10px)}50%{transform:translateY(0)}to{transform:translateY(0)}}#chatbot .loading{align-items:center;display:flex;gap:5px;justify-content:center}#chatbot .loading-dot{border-radius:50%;height:10px;width:10px}#chatbot .loading-dot:first-of-type{animation:load 1.7s ease-in-out 0s infinite forwards}#chatbot .loading-dot:nth-of-type(2){animation:load 1.7s ease-in-out .2s infinite forwards}#chatbot .loading-dot:nth-of-type(3){animation:load 1.7s ease-in-out .4s infinite forwards}dialog{border:none;border-radius:20px;box-shadow:0 5px 100px 10px rgba(0,0,0,.2);height:400px;margin:auto;max-height:80vh;max-width:80vw;position:fixed;top:50%;transform:translateY(-50%);width:800px}.chatbot-button{bottom:15px;gap:5px;min-height:60px;min-width:60px;position:fixed;right:15px;transition:all .2s;z-index:99999}.chatbot-button,.close-dialog{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:50%;display:flex;justify-content:center}.close-dialog{aspect-ratio:1;background-color:#000;color:#fff;height:40px;position:absolute;right:10px;top:10px;width:40px;z-index:10}
  • chating/trunk/readme.txt

    r3324314 r3354699  
    4444== Changelog ==
    4545
     46= 1.1.1 =
     47* Fixed settings for width of inline block
     48* Fixed a layout issue in the popup block
     49* Fixed icons not showing
     50
    4651= 1.1 =
    4752* Added new popup chatbot
Note: See TracChangeset for help on using the changeset viewer.