@pushword/js-helper 0.0.70 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -10
- package/src/app.css +1 -1
- package/src/app.js +7 -7
- package/src/encore.js +2 -0
- package/src/tailwind.prose.scss +13 -1
- package/yarn-error.log +0 -82
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushword/js-helper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.73",
|
|
4
4
|
"description": "Pushword front end helpers. ",
|
|
5
5
|
"author": "Robin@PiedWeb <contact@piedweb.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,25 +8,22 @@
|
|
|
8
8
|
"prettier": "prettier ./src/*.{js,scss} --write"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"140.css": "^1.0.1",
|
|
12
11
|
"@symfony/webpack-encore": "^1.7",
|
|
13
|
-
"@tailwindcss/aspect-ratio": "^0.
|
|
14
|
-
"@tailwindcss/forms": "^0.
|
|
12
|
+
"@tailwindcss/aspect-ratio": "^0.4",
|
|
13
|
+
"@tailwindcss/forms": "^0.5",
|
|
15
14
|
"@tailwindcss/line-clamp": "^0.4",
|
|
16
15
|
"@tailwindcss/typography": "^0.5",
|
|
17
|
-
"ace-builds": "^1.
|
|
16
|
+
"ace-builds": "^1.9",
|
|
18
17
|
"autoprefixer": "^10.1.0",
|
|
19
|
-
"babel-preset-stage-2": "^6.24.1",
|
|
20
18
|
"codemirror": "^5.59.0",
|
|
21
19
|
"core-js": "^3.8.1",
|
|
22
20
|
"easymde": "^2.13.0",
|
|
23
|
-
"file-loader": "^6.0",
|
|
24
21
|
"fslightbox": "^3.2.2",
|
|
25
|
-
"node-sass": "^5.0
|
|
22
|
+
"node-sass": "^5.0",
|
|
26
23
|
"postcss": "^8.2.1",
|
|
27
24
|
"postcss-import": "^14.0.0",
|
|
28
|
-
"postcss-loader": "^
|
|
29
|
-
"sass-loader": "^
|
|
25
|
+
"postcss-loader": "^7.0",
|
|
26
|
+
"sass-loader": "^12.0",
|
|
30
27
|
"simple-jekyll-search": "^1.9.1",
|
|
31
28
|
"tailwindcss": "^3",
|
|
32
29
|
"tailwindcss-hero-patterns": "^0.0.1",
|
package/src/app.css
CHANGED
package/src/app.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require('fslightbox');
|
|
2
2
|
import {
|
|
3
3
|
uncloakLinks,
|
|
4
4
|
readableEmail,
|
|
5
5
|
convertImageLinkToWebPLink,
|
|
6
6
|
replaceOn,
|
|
7
7
|
liveBlock,
|
|
8
|
-
} from
|
|
9
|
-
import { allClickable } from
|
|
8
|
+
} from '@pushword/js-helper/src/helpers.js';
|
|
9
|
+
import { allClickable } from '@pushword/js-helper/src/clickable.js';
|
|
10
10
|
|
|
11
11
|
function onDomChanged() {
|
|
12
12
|
liveBlock();
|
|
13
13
|
convertImageLinkToWebPLink();
|
|
14
14
|
uncloakLinks();
|
|
15
|
-
readableEmail(
|
|
15
|
+
readableEmail('.cea');
|
|
16
16
|
replaceOn();
|
|
17
17
|
refreshFsLightbox();
|
|
18
|
-
allClickable(
|
|
18
|
+
allClickable('.clickable');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function onPageLoaded() {
|
|
@@ -23,5 +23,5 @@ function onPageLoaded() {
|
|
|
23
23
|
new FsLightbox();
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
document.addEventListener(
|
|
27
|
-
document.addEventListener(
|
|
26
|
+
document.addEventListener('DOMContentLoaded', onPageLoaded());
|
|
27
|
+
document.addEventListener('DOMChanged', onDomChanged);
|
package/src/encore.js
CHANGED
|
@@ -66,6 +66,8 @@ module.exports = {
|
|
|
66
66
|
outputPath = outputPath ? outputPath : './../public/assets/';
|
|
67
67
|
publicPath = publicPath ? publicPath : '/assets';
|
|
68
68
|
|
|
69
|
+
Encore.configureRuntimeEnvironment('dev');
|
|
70
|
+
|
|
69
71
|
Encore.setOutputPath(outputPath)
|
|
70
72
|
.setPublicPath(publicPath)
|
|
71
73
|
.cleanupOutputBeforeBuild()
|
package/src/tailwind.prose.scss
CHANGED
|
@@ -45,9 +45,21 @@ html {
|
|
|
45
45
|
* Pure css hamburger menu
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
|
-
.show-hide-input:checked ~ div,
|
|
49
48
|
.show-hide-input:checked ~ ul,
|
|
50
49
|
.show-hide-input:checked ~ nav {
|
|
51
50
|
max-height: 100vh;
|
|
52
51
|
padding-top: 1rem;
|
|
53
52
|
}
|
|
53
|
+
|
|
54
|
+
/** Pure CSS accordion and show more
|
|
55
|
+
Example https: //play.tailwindcss.com/VxdXWMH64M
|
|
56
|
+
|
|
57
|
+
**/
|
|
58
|
+
.show-hide-input:checked~div {
|
|
59
|
+
max-height: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.show-more>.show-hide-input:checked~div.show-more-btn {
|
|
63
|
+
max-height: 0;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|
package/yarn-error.log
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
Arguments:
|
|
2
|
-
/usr/bin/node /home/robin/.npm-global/bin/yarn add @tailwind/line-clamp
|
|
3
|
-
|
|
4
|
-
PATH:
|
|
5
|
-
/home/robin/.config/composer/vendor/bin:/home/robin/.symfony/bin:/home/robin/.bin:/home/robin/.npm-global/bin:/home/robin/.config/composer/vendor/bin:/home/robin/.symfony/bin:/home/robin/.bin:/home/robin/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
|
|
6
|
-
|
|
7
|
-
Yarn version:
|
|
8
|
-
1.22.10
|
|
9
|
-
|
|
10
|
-
Node version:
|
|
11
|
-
12.22.5
|
|
12
|
-
|
|
13
|
-
Platform:
|
|
14
|
-
linux x64
|
|
15
|
-
|
|
16
|
-
Trace:
|
|
17
|
-
Error: https://registry.yarnpkg.com/@tailwind%2fline-clamp: Not found
|
|
18
|
-
at Request.params.callback [as _callback] (/home/robin/.npm-global/lib/node_modules/yarn/lib/cli.js:66988:18)
|
|
19
|
-
at Request.self.callback (/home/robin/.npm-global/lib/node_modules/yarn/lib/cli.js:140662:22)
|
|
20
|
-
at Request.emit (events.js:314:20)
|
|
21
|
-
at Request.<anonymous> (/home/robin/.npm-global/lib/node_modules/yarn/lib/cli.js:141634:10)
|
|
22
|
-
at Request.emit (events.js:314:20)
|
|
23
|
-
at IncomingMessage.<anonymous> (/home/robin/.npm-global/lib/node_modules/yarn/lib/cli.js:141556:12)
|
|
24
|
-
at Object.onceWrapper (events.js:420:28)
|
|
25
|
-
at IncomingMessage.emit (events.js:326:22)
|
|
26
|
-
at endReadableNT (_stream_readable.js:1241:12)
|
|
27
|
-
at processTicksAndRejections (internal/process/task_queues.js:84:21)
|
|
28
|
-
|
|
29
|
-
npm manifest:
|
|
30
|
-
{
|
|
31
|
-
"name": "@pushword/js-helper",
|
|
32
|
-
"version": "0.0.69",
|
|
33
|
-
"description": "Pushword front end helpers. ",
|
|
34
|
-
"author": "Robin@PiedWeb <contact@piedweb.com>",
|
|
35
|
-
"license": "MIT",
|
|
36
|
-
"scripts": {
|
|
37
|
-
"prettier": "prettier ./src/*.{js,scss} --write"
|
|
38
|
-
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"140.css": "^1.0.1",
|
|
41
|
-
"@symfony/webpack-encore": "^1.7",
|
|
42
|
-
"@tailwindcss/aspect-ratio": "^0.2",
|
|
43
|
-
"@tailwindcss/forms": "^0.4",
|
|
44
|
-
"@tailwindcss/typography": "^0.5",
|
|
45
|
-
"tailwindcss-multi-column": "^1.0.2",
|
|
46
|
-
"ace-builds": "^1.4.12",
|
|
47
|
-
"autoprefixer": "^10.1.0",
|
|
48
|
-
"babel-preset-stage-2": "^6.24.1",
|
|
49
|
-
"codemirror": "^5.59.0",
|
|
50
|
-
"core-js": "^3.8.1",
|
|
51
|
-
"easymde": "^2.13.0",
|
|
52
|
-
"fslightbox": "^3.2.2",
|
|
53
|
-
"file-loader": "^6.0",
|
|
54
|
-
"node-sass": "^5.0.0",
|
|
55
|
-
"postcss": "^8.2.1",
|
|
56
|
-
"postcss-import": "^14.0.0",
|
|
57
|
-
"postcss-loader": "^4.1",
|
|
58
|
-
"sass-loader": "^10.1.0",
|
|
59
|
-
"simple-jekyll-search": "^1.9.1",
|
|
60
|
-
"tailwindcss": "^3",
|
|
61
|
-
"tailwindcss-hero-patterns": "^0.0.1",
|
|
62
|
-
"webpack-watch-files-plugin": "^1.1.0"
|
|
63
|
-
},
|
|
64
|
-
"repository": {
|
|
65
|
-
"type": "git",
|
|
66
|
-
"url": "git+https://github.com/Pushword/js-helper.git"
|
|
67
|
-
},
|
|
68
|
-
"keywords": [
|
|
69
|
-
"native"
|
|
70
|
-
],
|
|
71
|
-
"bugs": {
|
|
72
|
-
"url": "https://github.com/Pushword/Pushword/issues"
|
|
73
|
-
},
|
|
74
|
-
"homepage": "https://pushword.piedweb.com",
|
|
75
|
-
"gitHead": "242ec54483dca1be93d7a62d8d554c9c08008c28"
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
yarn manifest:
|
|
79
|
-
No manifest
|
|
80
|
-
|
|
81
|
-
Lockfile:
|
|
82
|
-
No lockfile
|