Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/enhance-pattern-matching #11

Open
wants to merge 4 commits into
base: 1.x-1.x
Choose a base branch
from
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
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
*.module linguist-language=php
*.inc linguist-language=php

/.gitignore export-ignore
/.github export-ignore
/composer.json export-ignore
/composer.lock export-ignore
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
/tmp/
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "tawk/tawk-backdrop",
"description": "tawk.to Live Chat module for Backdrop CMS",
"type": "project",
"license": "GPLv3",
"require": {
"tawk/url-utils": "2.0.1"
},
"repositories": {
"tawk-url-utils": {
"type": "vcs",
"url": "https://github.com/tawk/tawk-url-utils.git"
}
},
"scripts": {
"build:prod": "COMPOSER_VENDOR_DIR=libraries composer install --no-dev",
"package": "composer run clean && mkdir -p ./tmp/tawk_to && cp -r ./css ./tmp/tawk_to && cp -r ./includes ./tmp/tawk_to && cp -r ./js ./tmp/tawk_to && cp -r ./libraries ./tmp/tawk_to && cp ./tawk_to.* ./tmp/tawk_to && cp README.md ./tmp/tawk_to && cp LICENSE.txt ./tmp/tawk_to && (cd ./tmp && zip -9 -rq ./tawk_to.zip ./tawk_to)",
"clean": "rm -rf ./tmp"
}
}
68 changes: 68 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 42 additions & 1 deletion css/tawk_to.admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

/**
* Notification
* Notification
* Initially hide the status message. Jquery is used to show after updating settings
*/
.success-message-container {
Expand All @@ -22,3 +22,44 @@
border: none;
margin: 5px 0;
}

/* Tooltip */
.tooltip {
position: relative;
display: inline;
color: #03a84e;
}

.tooltip .tooltiptext {
visibility: hidden;
background-color: #545454;
color: #fff;
text-align: center;
padding: 0.5rem;
max-width: 300px;
border-radius: 0.5rem;
font-size: 0.8rem;
line-height: 0.9;

/* Position the tooltip text - see examples below! */
position: absolute;
z-index: 1000;
top: 14px;
}

.tooltip .tooltiptext::before {
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #545454;
top: -5px;
left: 5px;
}

.tooltip:hover .tooltiptext {
visibility: visible;
}
7 changes: 7 additions & 0 deletions libraries/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To anyone that might ask why these composer files are included is because Backdrop has its own release workflow that retrieves and builds the module when a release is published. I looked for other modules that has external libraries being used and they all included the library within their repository. Here are some of them:


// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitd8ab09fafac53bceb56f69ead1a4d644::getLoader();
Loading