This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

23
node_modules/amfe-flexible/.editorconfig generated vendored Normal file
View File

@ -0,0 +1,23 @@
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = off
indent_style = space
indent_size = 2
[{package.json,.travis.yml,.eslintrc*}]
indent_style = space
indent_size = 2
[*.md]
max_line_length = off
trim_trailing_whitespace = false
[COMMIT_EDITMSG]
max_line_length = off

25
node_modules/amfe-flexible/.npmignore generated vendored Normal file
View File

@ -0,0 +1,25 @@
# OS
.DS_Store
Thumbs.db
Desktop.ini
# IDE
.idea/
.vscode/
.project
*.swp
*.swo
# Dependency, Cache, Temporary
node_modules/
bower_components/
.svn/
.sass-cache/
.nodejs-cache/
npm-debug.log
# Distribution
coverage/
dist/
docs/
*.iml

34
node_modules/amfe-flexible/README.md generated vendored Normal file
View File

@ -0,0 +1,34 @@
# amfe-flexible
[Classic edition (0.3.2)](https://github.com/amfe/lib-flexible/tree/master)
## Usage
#### Install
`npm i -S amfe-flexible`
#### Import
```html
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<script src="./node_modules/amfe-flexible/index.js"></script>
```
You can inline this file with [inline-source](https://npmjs.org/package/inline-source).
#### Develop
Use [postcss-adaptive](https://www.npmjs.com/package/postcss-adaptive).
## License
(The MIT License)
Copyright (c) 2016 Alibaba MFE
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

44
node_modules/amfe-flexible/index.js generated vendored Normal file
View File

@ -0,0 +1,44 @@
(function flexible (window, document) {
var docEl = document.documentElement
var dpr = window.devicePixelRatio || 1
// adjust body font size
function setBodyFontSize () {
if (document.body) {
document.body.style.fontSize = (12 * dpr) + 'px'
}
else {
document.addEventListener('DOMContentLoaded', setBodyFontSize)
}
}
setBodyFontSize();
// set 1rem = viewWidth / 10
function setRemUnit () {
var rem = docEl.clientWidth / 10
docEl.style.fontSize = rem + 'px'
}
setRemUnit()
// reset rem unit on page resize
window.addEventListener('resize', setRemUnit)
window.addEventListener('pageshow', function (e) {
if (e.persisted) {
setRemUnit()
}
})
// detect 0.5px supports
if (dpr >= 2) {
var fakeBody = document.createElement('body')
var testElement = document.createElement('div')
testElement.style.border = '.5px solid transparent'
fakeBody.appendChild(testElement)
docEl.appendChild(fakeBody)
if (testElement.offsetHeight === 1) {
docEl.classList.add('hairlines')
}
docEl.removeChild(fakeBody)
}
}(window, document))

1
node_modules/amfe-flexible/index.min.js generated vendored Normal file
View File

@ -0,0 +1 @@
!function(e,t){function n(){t.body?t.body.style.fontSize=12*o+"px":t.addEventListener("DOMContentLoaded",n)}function d(){var e=i.clientWidth/10;i.style.fontSize=e+"px"}var i=t.documentElement,o=e.devicePixelRatio||1;if(n(),d(),e.addEventListener("resize",d),e.addEventListener("pageshow",function(e){e.persisted&&d()}),o>=2){var a=t.createElement("body"),s=t.createElement("div");s.style.border=".5px solid transparent",a.appendChild(s),i.appendChild(a),1===s.offsetHeight&&i.classList.add("hairlines"),i.removeChild(a)}}(window,document);

56
node_modules/amfe-flexible/package.json generated vendored Normal file
View File

@ -0,0 +1,56 @@
{
"_from": "amfe-flexible@2.2.1",
"_id": "amfe-flexible@2.2.1",
"_inBundle": false,
"_integrity": "sha512-L2VfvDzoETBjhRptg5u/IUuzHSuxm22JpSRb404p/TBGeRfwWmmNEbB+TFPIP/sS/+pbM18bCFH9QnMojLuPNw==",
"_location": "/amfe-flexible",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "amfe-flexible@2.2.1",
"name": "amfe-flexible",
"escapedName": "amfe-flexible",
"rawSpec": "2.2.1",
"saveSpec": null,
"fetchSpec": "2.2.1"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/amfe-flexible/-/amfe-flexible-2.2.1.tgz",
"_shasum": "353f00289e4d38ca88a21eb3854420308af0b559",
"_spec": "amfe-flexible@2.2.1",
"_where": "C:\\Users\\zhouxueli\\Desktop\\scheduling-app",
"author": "",
"bugs": {
"url": "https://github.com/amfe/lib-flexible/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Build flexible page on mobile platform",
"devDependencies": {
"uglify-js": "^3.0.27"
},
"homepage": "https://github.com/amfe/lib-flexible",
"keywords": [
"lib",
"amfe",
"flexible",
"mobile",
"css",
"rem",
"vw"
],
"license": "MIT",
"name": "amfe-flexible",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/amfe/lib-flexible.git"
},
"scripts": {
"compress": "uglifyjs index.js -o index.min.js -c -m"
},
"version": "2.2.1"
}