bitwrench 1.2.16 → 2.0.7
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/README.md +160 -158
- package/bin/bitwrench.js +3 -0
- package/dist/bitwrench-code-edit.cjs.js +639 -0
- package/dist/bitwrench-code-edit.es5.js +875 -0
- package/dist/bitwrench-code-edit.es5.min.js +15 -0
- package/dist/bitwrench-code-edit.esm.js +628 -0
- package/dist/bitwrench-code-edit.esm.min.js +15 -0
- package/dist/bitwrench-code-edit.umd.js +645 -0
- package/dist/bitwrench-code-edit.umd.min.js +15 -0
- package/dist/bitwrench.cjs.js +6983 -0
- package/dist/bitwrench.cjs.min.js +62 -0
- package/dist/bitwrench.css +5100 -0
- package/dist/bitwrench.es5.js +8446 -0
- package/dist/bitwrench.es5.min.js +31 -0
- package/dist/bitwrench.esm.js +6981 -0
- package/dist/bitwrench.esm.min.js +62 -0
- package/dist/bitwrench.umd.js +6989 -0
- package/dist/bitwrench.umd.min.js +62 -0
- package/dist/builds.json +127 -0
- package/dist/sri.json +18 -0
- package/package.json +86 -24
- package/readme.html +288 -0
- package/src/bitwrench-code-edit.js +627 -0
- package/src/bitwrench-color-utils.js +311 -0
- package/src/bitwrench-component-base.js +736 -0
- package/src/bitwrench-components-inline.js +374 -0
- package/src/bitwrench-components-v2.js +1879 -0
- package/src/bitwrench-components.js +610 -0
- package/src/bitwrench-styles.js +3240 -0
- package/src/bitwrench.js +3367 -0
- package/src/cli/convert.js +205 -0
- package/src/cli/index.js +122 -0
- package/src/cli/inject.js +55 -0
- package/src/cli/layout-default.js +142 -0
- package/src/generate-css.js +381 -0
- package/src/vendor/quikdown.js +654 -0
- package/src/version.js +16 -0
- package/.eslintrc.json +0 -27
- package/.github/workflows/codeql-analysis.yml +0 -72
- package/.travis.yml +0 -34
- package/bitwrench.css +0 -92
- package/bitwrench.js +0 -3348
- package/bitwrench.js_sri.txt +0 -1
- package/bitwrench.min.js +0 -1
- package/bitwrench.min.js_sri.txt +0 -1
- package/bitwrench_ESM.js +0 -3207
- package/bitwrench_ESM.js_sri.txt +0 -1
- package/bitwrench_ESM.min.js +0 -1
- package/bitwrench_ESM.min.js_sri.txt +0 -1
- package/dev/bitwrench-todo.md +0 -215
- package/dev/css-arrows.md +0 -23
- package/dev/docStringDev.js +0 -124
- package/dev/docStringParseDev.js +0 -171
- package/dev/example11-load-mjs-page.html +0 -17
- package/dev/figures.html +0 -37
- package/dev/html_gen.js +0 -349
- package/dev/htmld.md +0 -250
- package/dev/htmldev.html +0 -45
- package/dev/index-old.html +0 -87
- package/dev/misc-notes.md +0 -21
- package/dev/norm.css +0 -30
- package/dev/notes.md +0 -2
- package/dev/pageData.mjs +0 -69
- package/dev/sizes.html +0 -49
- package/dev/universal-js-module.js +0 -37
- package/examples/example1.html +0 -78
- package/examples/example10.html +0 -84
- package/examples/example11.html +0 -17
- package/examples/example12.html +0 -18
- package/examples/example2.html +0 -44
- package/examples/example3.html +0 -50
- package/examples/example4.html +0 -22
- package/examples/example5.html +0 -82
- package/examples/example6.html +0 -128
- package/examples/example7.html +0 -91
- package/examples/example8.html +0 -27
- package/examples/example9.html +0 -102
- package/examples/examplePageData12.mjs +0 -73
- package/examples/pageData.mjs +0 -69
- package/examples/pico.min.css +0 -5
- package/icon/bitwrench-dark-tall.png +0 -0
- package/icon/bitwrench-dark.png +0 -0
- package/icon/bitwrench-icon-lt-grey.png +0 -0
- package/icon/bitwrench-icon.vsd +0 -0
- package/icon/bitwrench-logo-dark.png +0 -0
- package/icon/bitwrench-logo-full.png +0 -0
- package/icon/bitwrench-logo-green.png +0 -0
- package/icon/bitwrench-logo-grey.png +0 -0
- package/icon/bitwrench-logo-white.png +0 -0
- package/icon/bitwrench-logos-colors.png +0 -0
- package/icon/bitwrench-thick-logo.png +0 -0
- package/icon/bitwrench-thick-teal/android-chrome-192x192.png +0 -0
- package/icon/bitwrench-thick-teal/android-chrome-512x512.png +0 -0
- package/icon/bitwrench-thick-teal/apple-touch-icon.png +0 -0
- package/icon/bitwrench-thick-teal/browserconfig.xml +0 -9
- package/icon/bitwrench-thick-teal/favicon-16x16.png +0 -0
- package/icon/bitwrench-thick-teal/favicon-32x32.png +0 -0
- package/icon/bitwrench-thick-teal/favicon.ico +0 -0
- package/icon/bitwrench-thick-teal/mstile-144x144.png +0 -0
- package/icon/bitwrench-thick-teal/mstile-150x150.png +0 -0
- package/icon/bitwrench-thick-teal/mstile-310x150.png +0 -0
- package/icon/bitwrench-thick-teal/mstile-310x310.png +0 -0
- package/icon/bitwrench-thick-teal/mstile-70x70.png +0 -0
- package/icon/bitwrench-thick-teal/site.webmanifest +0 -19
- package/icon/bitwrench-thick-teal.ico +0 -0
- package/icon/bitwrench-thick-teal.svg +0 -44
- package/icon/bitwrench-thick-teal.zip +0 -0
- package/icon/favicon-test.html +0 -20
- package/icon/logos-test.PNG +0 -0
- package/images/bitwrench-512x512.png +0 -0
- package/images/bitwrench-logo-med.png +0 -0
- package/images/bitwrench-thick-logo.png +0 -0
- package/images/bitwrench-thick-logo.svg +0 -64
- package/images/bitwrench-thick-teal.ico +0 -0
- package/images/favicon.ico +0 -0
- package/index.html +0 -282
- package/instr_tmp/bitwrench.js +0 -1350
- package/karma.conf.js +0 -140
- package/makefile +0 -21
- package/quick-docs.html +0 -206
- package/test/bitwrench_test.js +0 -1255
- package/test/karma-test.js +0 -1081
- package/tools/bw_deprecatedNames.js +0 -19
- package/tools/bwconsole.js +0 -20
- package/tools/createSimpleHTMLPage.js +0 -41
- package/tools/emitreadme.sh +0 -4
- package/tools/export-bw-default-css.js +0 -41
- package/tools/umd2ModuleHack.js +0 -32
- package/tools/update-bw-package.js +0 -36
- package/tools/updatereadme.js +0 -34
package/.eslintrc.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"node": true,
|
|
5
|
-
"amd" : true
|
|
6
|
-
},
|
|
7
|
-
"extends": "eslint:recommended",
|
|
8
|
-
"rules": {
|
|
9
|
-
//"indent": [
|
|
10
|
-
// "error",
|
|
11
|
-
// "tab"
|
|
12
|
-
//],
|
|
13
|
-
"linebreak-style": [
|
|
14
|
-
"error",
|
|
15
|
-
"unix"
|
|
16
|
-
],
|
|
17
|
-
"quotes": [
|
|
18
|
-
"error",
|
|
19
|
-
"double"
|
|
20
|
-
],
|
|
21
|
-
"semi": [
|
|
22
|
-
"error",
|
|
23
|
-
"always"
|
|
24
|
-
],
|
|
25
|
-
"allowEmptyCatch": true
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
-
# to commit it to your repository.
|
|
3
|
-
#
|
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
-
# or to provide custom queries or build logic.
|
|
6
|
-
#
|
|
7
|
-
# ******** NOTE ********
|
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
-
# supported CodeQL languages.
|
|
11
|
-
#
|
|
12
|
-
name: "CodeQL"
|
|
13
|
-
|
|
14
|
-
on:
|
|
15
|
-
push:
|
|
16
|
-
branches: [ master ]
|
|
17
|
-
pull_request:
|
|
18
|
-
# The branches below must be a subset of the branches above
|
|
19
|
-
branches: [ master ]
|
|
20
|
-
schedule:
|
|
21
|
-
- cron: '40 15 * * 4'
|
|
22
|
-
|
|
23
|
-
jobs:
|
|
24
|
-
analyze:
|
|
25
|
-
name: Analyze
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
permissions:
|
|
28
|
-
actions: read
|
|
29
|
-
contents: read
|
|
30
|
-
security-events: write
|
|
31
|
-
|
|
32
|
-
strategy:
|
|
33
|
-
fail-fast: false
|
|
34
|
-
matrix:
|
|
35
|
-
language: [ 'javascript' ]
|
|
36
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
37
|
-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
38
|
-
|
|
39
|
-
steps:
|
|
40
|
-
- name: Checkout repository
|
|
41
|
-
uses: actions/checkout@v3
|
|
42
|
-
|
|
43
|
-
# Initializes the CodeQL tools for scanning.
|
|
44
|
-
- name: Initialize CodeQL
|
|
45
|
-
uses: github/codeql-action/init@v2
|
|
46
|
-
with:
|
|
47
|
-
languages: ${{ matrix.language }}
|
|
48
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
49
|
-
# By default, queries listed here will override any specified in a config file.
|
|
50
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
51
|
-
|
|
52
|
-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
53
|
-
# queries: security-extended,security-and-quality
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
57
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
|
58
|
-
- name: Autobuild
|
|
59
|
-
uses: github/codeql-action/autobuild@v2
|
|
60
|
-
|
|
61
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
62
|
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
63
|
-
|
|
64
|
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
65
|
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
66
|
-
|
|
67
|
-
# - run: |
|
|
68
|
-
# echo "Run, Build Application using script"
|
|
69
|
-
# ./location_of_script_within_repo/buildscript.sh
|
|
70
|
-
|
|
71
|
-
- name: Perform CodeQL Analysis
|
|
72
|
-
uses: github/codeql-action/analyze@v2
|
package/.travis.yml
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#travis configuration for coverage testing of bitwrench
|
|
2
|
-
# M A Chatterjee 2018-07-05
|
|
3
|
-
|
|
4
|
-
language: node_js
|
|
5
|
-
node_js:
|
|
6
|
-
- "14"
|
|
7
|
-
#dist: trusty # needs Ubuntu Trusty
|
|
8
|
-
# Note: if you switch to sudo: false, you'll need to launch Chrome with --no-sandbox.
|
|
9
|
-
# See https://github.com/travis-ci/travis-ci/issues/8836
|
|
10
|
-
sudo: required
|
|
11
|
-
addons:
|
|
12
|
-
chrome: stable # have Travis install Chrome stable.
|
|
13
|
-
cache: npm
|
|
14
|
-
# yarn: true
|
|
15
|
-
# directories:
|
|
16
|
-
# - node_modules
|
|
17
|
-
#install:
|
|
18
|
-
# - npm
|
|
19
|
-
script:
|
|
20
|
-
- npm run test
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
#language: node_js
|
|
24
|
-
#node_js:
|
|
25
|
-
# - "4.0.0"
|
|
26
|
-
#
|
|
27
|
-
#before_install:
|
|
28
|
-
# - npm install coveralls
|
|
29
|
-
#
|
|
30
|
-
#after_success: npm run coveralls
|
|
31
|
-
#
|
|
32
|
-
#branches:
|
|
33
|
-
# only:
|
|
34
|
-
# - master
|
package/bitwrench.css
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/*"""
|
|
2
|
-
bitwrench.css version 1.2.16
|
|
3
|
-
bitwrench.js exported css classes (auto generated)
|
|
4
|
-
This file contains the same css classes (styles used by bitwrench.js) and can be used stand-alone.
|
|
5
|
-
|
|
6
|
-
It is not required to load this file when using bitwrench.js since its built in to the bitwrench.js library and autoloaded.
|
|
7
|
-
|
|
8
|
-
This file can be generated at runtime via bw.CSSSimpleStyles(false,{"basics":"load"}) and saving the data. Also note that this version includes global css (* {}) rules which aren't required but useful for quick-n-dirty development
|
|
9
|
-
|
|
10
|
-
"""*/
|
|
11
|
-
*{box-sizing:border-box;}
|
|
12
|
-
.bw-def-page-setup{height:100%;width:90%;margin:0 auto;padding-left:2%;padding-right:2%;left:0;top:1%;box-sizing:border-box;}
|
|
13
|
-
.bw-font-serif{font-family:Times New Roman, Times, serif;}
|
|
14
|
-
.bw-font-sans-serif{font-family:Arial, Helvetica, sans-serif;}
|
|
15
|
-
|
|
16
|
-
.bw-left{text-align:left;}
|
|
17
|
-
.bw-right{text-align:right;}
|
|
18
|
-
.bw-center{text-align:center;margin:0 auto;}
|
|
19
|
-
.bw-justify{text-align:justify;}
|
|
20
|
-
.bw-code{font-family:monospace;white-space:pre-wrap;}
|
|
21
|
-
.bw-pad1{padding-left:1%;padding-right:1%;}
|
|
22
|
-
|
|
23
|
-
.bw-table{border-collapse:collapse;border-spacing:0;border:1px solid #444;}
|
|
24
|
-
.bw-table th{background-color:#bbb;padding:4px;border:1px solid #444;}
|
|
25
|
-
.bw-table td{padding:4px;border:1px solid #444;}
|
|
26
|
-
.bw-table-stripe tr:nth-child(even){background-color:#f0f0f0;}
|
|
27
|
-
.bw-table tr td:first-child{font-weight:700;}
|
|
28
|
-
.bw-table-border-round{border-radius:2px;}
|
|
29
|
-
.bw-table-sort-upa::after{content:"\2191";}
|
|
30
|
-
.bw-table-sort-dna::after{content:"\2193";}
|
|
31
|
-
.bw-table-sort-xxa::after{content:"\00a0";}
|
|
32
|
-
|
|
33
|
-
.bw-tab-item-list{margin:0;padding-inline-start:0;}
|
|
34
|
-
.bw-tab-item{display:inline;padding-top:0.75em;padding-left:0.75em;padding-right:0.75em;border-top-right-radius:7px;border-top-left-radius:7px;}
|
|
35
|
-
.bw-tab-active{font-weight:700;}
|
|
36
|
-
.bw-tab:hover{cursor:pointer;font-weight:700;}
|
|
37
|
-
.bw-tab-content-list{margin:0;padding-top:0.0em;}
|
|
38
|
-
.bw-tab-content{display:none;border-radius:0;}
|
|
39
|
-
.bw-tab-content, .bw-tab-active{background-color:#ddd;padding:0.5em;}
|
|
40
|
-
|
|
41
|
-
.bw-accordian-container > div{padding:0.5em;}
|
|
42
|
-
|
|
43
|
-
.bw-container{margin:0 auto;}
|
|
44
|
-
.bw-row{width:100%;display:block;}
|
|
45
|
-
.bw-row [class^="bw-col"]{float:left;}
|
|
46
|
-
.bw-row::after{content:"";display:table;clear:both;}
|
|
47
|
-
.bw-box-1{padding-top:10px;padding-bottom:10px;border-radius:8px;}
|
|
48
|
-
|
|
49
|
-
.bw-sign{position:inherit;display:table;height:100%;width:100%;}
|
|
50
|
-
.bw-sign > div{display:table-cell;vertical-align:middle;}
|
|
51
|
-
.bw-sign > div > div{text-align:center;}
|
|
52
|
-
|
|
53
|
-
.bw-hide{display:none;}
|
|
54
|
-
.bw-show{display:block;}
|
|
55
|
-
.bw-h1{font-size:2.312rem;}
|
|
56
|
-
.bw-h2{font-size:1.965rem;}
|
|
57
|
-
.bw-h3{font-size:1.67rem;}
|
|
58
|
-
.bw-h4{font-size:1.419rem;}
|
|
59
|
-
.bw-h5{font-size:1.206rem;}
|
|
60
|
-
.bw-h6{font-size:1.025rem;}
|
|
61
|
-
|
|
62
|
-
.bw-col-1{width:8.333%;}
|
|
63
|
-
.bw-col-2{width:16.666%;}
|
|
64
|
-
.bw-col-3{width:25%;}
|
|
65
|
-
.bw-col-4{width:33.333%;}
|
|
66
|
-
.bw-col-5{width:41.666%;}
|
|
67
|
-
.bw-col-6{width:50%;}
|
|
68
|
-
.bw-col-7{width:58.333%;}
|
|
69
|
-
.bw-col-8{width:66.666%;}
|
|
70
|
-
.bw-col-9{width:75%;}
|
|
71
|
-
.bw-col-10{width:83.333%;}
|
|
72
|
-
.bw-col-11{width:91.666%;}
|
|
73
|
-
.bw-col-12{width:100%;}
|
|
74
|
-
|
|
75
|
-
.bw-color-color {color:#000}
|
|
76
|
-
.bw-color-background-color {background-color:#ddd}
|
|
77
|
-
.bw-color-active {active:#222}
|
|
78
|
-
.bw-thm-light
|
|
79
|
-
{
|
|
80
|
-
color: #020202 !important;;
|
|
81
|
-
background-color: #e2e2e2 !important;;
|
|
82
|
-
}
|
|
83
|
-
.bw-thm-dark
|
|
84
|
-
{
|
|
85
|
-
color: #e2e2e2 !important;;
|
|
86
|
-
background-color: #020202 !important;;
|
|
87
|
-
}
|
|
88
|
-
@media only screen and (min-width: 540px) {.bw-def-page-setup {width: 96%;}}
|
|
89
|
-
@media only screen and (min-width: 720px) {.bw-def-page-setup {width: 92%;}}
|
|
90
|
-
@media only screen and (min-width: 960px) {.bw-def-page-setup {width: 88%;}}
|
|
91
|
-
@media only screen and (min-width: 1100px){.bw-def-page-setup {width: 86%;}}
|
|
92
|
-
@media only screen and (min-width: 1600px){.bw-def-page-setup {width: 84%;}}
|